:root {
    --denim: #0061CF;
    --yale-blue: #013570;
    --light-blue: #8ECEFF;
    --palatinate: #6F0060;
    --white-cream: #fffcf2;
}

nav {
    position: sticky;
    top: 0;
    background: var(--white-cream);
    color: var(--blue-seal);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    column-gap: 1rem;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 2rem 25rem;
    z-index: 1000;
    border-bottom: 1px solid #eee;
}

.navbar-items {
    justify-self: center;
    display: flex;
    gap: 5rem;
}

.navbar-items a {
    color: var(--denim);
    text-decoration: none;
    font-family: "Roboto", sans-serif;
    font-weight: 900;
    font-size: x-large;
}

.navbar-items a:hover {
    color: var(--yale-blue);
}

.logo-left img {
    align-self: flex-start;
    height: 60px;
    width: auto;
}

.logo-right img {
    align-self: flex-end;
    height: 60px;
    width: auto;
}

body {
    margin: 0;
    font-family: sans-serif;
    color: #333;
    scroll-behavior: smooth;
}


#inicio {
    position: relative;
    overflow: hidden;
}

#inicio img {
    background-attachment: fixed;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 80%;
    width: auto;
    opacity: 0.12;
    filter: grayscale(100%);
    pointer-events: none;
    z-index: 1;
}

#inicio .main-content {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

#inicio .main-content::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to bottom right, var(--yale-blue), var(--denim));
    z-index: 0;
}

#inicio .content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    padding: 10rem 2rem;
    gap: 3.5rem;
    align-items: flex-start;
}

#inicio .startup {
    max-width: 560px;
    padding-left: 20rem;
}

#inicio p {
    margin-bottom: 1rem;
}

#inicio .startup-desc {
    color: var(--white-cream);
    font-size: 48px;
    font-weight: 700;
}

#inicio .startup-desc-extended {
    color: var(--light-blue);
    font-size: 20px
}

#inicio button {
    border: none;
    border-radius: 45px;
    background-color: var(--palatinate);
    padding: 20px 25px;
    text-decoration: none;
    text-align: center;
    display: inline-block;
    margin-top: 2rem;
}

#inicio a {
    color: var(--white-cream);
    text-decoration: none;
    font-size: 25px;
    font-weight: 600;
}

#inicio .video iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    display: block;
    border: 0;
    border-radius: 10px;
}

/* Misión y Visión */
.mission-vision {
    background: var(--white-cream);
    padding-top: 4rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

.mv-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.mv-card {
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    font-family: "Roboto", sans-serif;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

/* Diferenciar colores de misión y visión */
.mv-card.mission {
    background: linear-gradient(135deg, var(--yale-blue), var(--denim));
    color: var(--white-cream);
}

.mv-card.vision {
    background: linear-gradient(135deg, var(--palatinate), var(--light-blue));
    color: var(--white-cream);
}

.mv-card h2 {
    margin-top: 0;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.mv-card p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Responsivo */
@media (max-width: 820px) {
    .mv-container {
        grid-template-columns: 1fr;
    }
}


/* ¿Quiénes somos? */
.ourselfs {
    background: var(--white-cream);
    display: block;
    padding: 6rem 2rem;
}

.ourselfs-container {
    max-width: 1200px;
    margin: 0 auto;
}

.ourselfs-title {
    margin: 0;
    text-align: center;
    font-family: "Roboto", sans-serif;
    font-weight: 900;
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--yale-blue);
}

.ourselfs-subtitle {
    margin: 0.75rem auto 3rem auto;
    text-align: center;
    max-width: 800px;
    color: #3d4a5c;
    font-family: "Roboto", sans-serif;
    font-size: 1.1rem;
}

.team-grid {
    list-style: none;
    padding: 0;
    margin: 0 auto 3rem auto;
    display: grid;
    gap: 4rem;
    max-width: 1100px;
}

/* Fila superior: 3 columnas */
.top-row {
    grid-template-columns: repeat(3, minmax(200px, 1fr));
    justify-items: center;
}

/* Fila inferior: 2 columnas centradas */
.bottom-row {
    grid-template-columns: repeat(2, minmax(200px, 1fr));
    justify-content: center;
    /* centra las dos columnas en el contenedor */
    justify-items: center;
}

@media (max-width: 820px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid li:nth-child(4),
    .team-grid li:nth-child(5) {
        grid-column: auto;
        /* se normalizan en móviles */
    }
}

@media (max-width: 520px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

.member-card {
    width: 100%;
    max-width: 100%;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 20px;
    padding: 1.75rem 1.25rem;
    text-align: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.member-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.10);
    border-color: var(--light-blue);
}

.member-photo {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin: 0 auto 1rem auto;
    border: 4px solid var(--light-blue);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.member-name {
    margin: 0.25rem 0 0.25rem 0;
    font-family: "Roboto", sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--denim);
}

.member-role {
    margin: 0;
    color: #617086;
    font-size: 0.95rem;
}

/* Pequeños ajustes responsivos */
@media (max-width: 768px) {
    .ourselfs {
        padding: 4rem 1.25rem;
    }
}

.contact {
    background: var(--white-cream);
    padding: 4rem 1rem;
}

.contact-container {
    max-width: 1100px;
    margin: 0 auto;
}

.contact-header h2 {
    color: var(--yale-blue);
    margin: 0 0 .5rem;
    font-size: clamp(1.6rem, 2vw, 2rem);
}

.contact-header p {
    color: #374151;
    margin: 0 0 1.25rem;
}

/* Acciones / Redes */
.contact-links {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.contact .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .75rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    color: var(--white-cream);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
    transition: transform .15s ease, filter .2s ease, background .2s ease;
}

.contact .btn:hover {
    transform: translateY(-1px);
    filter: brightness(.98);
}

.contact .btn.link {
    background: var(--denim);
}

.contact .btn.ig {
    background: var(--palatinate);
}

.contact .btn.wa {
    background: #25D366;
    color: #fff;
}

.contact .btn.li {
    background: #0A66C2;
}

.contact-cta {
    margin-top: 1rem;
}

.contact .btn.demo {
    background: var(--denim);
}

.contact .btn.demo:hover {
    background: var(--yale-blue);
}

/* Tarjetas */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .9rem;
    margin: 1rem 0 1.25rem;
}

@media (max-width: 900px) {
    .contact-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .contact-cards {
        grid-template-columns: 1fr;
    }
}

.contact .card {
    background: #fff;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
    border: 1px solid rgba(1, 53, 112, .06);
}

.contact .card h3 {
    margin: 0 0 .25rem;
    color: var(--yale-blue);
    font-size: 1.05rem;
}

.contact .card p,
.contact .card a,
.contact .card small {
    margin: .1rem 0;
    color: #374151;
    display: block;
    text-decoration: none;
}

.contact .card a.mini {
    color: var(--denim);
    font-weight: 600;
    font-size: .92rem;
}

/* Mapa */
.contact-map {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .08);
    border: 1px solid rgba(1, 53, 112, .06);
}

.contact-map iframe {
    width: 100%;
    height: 320px;
    border: 0;
}

/* Formulario */
.contact-form {
    background: #fff;
    border-radius: 18px;
    margin-top: 1rem;
    padding: 1rem;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .08);
    border: 1px solid rgba(1, 53, 112, .06);
}

.contact-form h3 {
    margin: 0 0 .75rem;
    color: var(--yale-blue);
}

.contact-form .grid {
    display: grid;
    gap: .75rem;
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 600px) {
    .contact-form .grid {
        grid-template-columns: 1fr;
    }
}

.contact-form label {
    display: block;
}

.contact-form label span {
    display: block;
    font-weight: 600;
    margin-bottom: .25rem;
    color: #374151;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: .7rem .1rem;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    background: #fff;
    color: #111827;
    outline: none;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--light-blue);
    box-shadow: 0 0 0 3px rgba(142, 206, 255, .35);
}

.contact-form .chk {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: .5rem 0;
}

.contact-form .btn.submit {
    background: var(--denim);
    color: #fff;
    border: 0;
    cursor: pointer;
    margin-top: .3rem;
}

.contact-form .btn.submit:hover {
    background: var(--yale-blue);
}

.contact-form .hint {
    color: #6B7280;
    font-size: .85rem;
    margin-top: .4rem;
}

.footer {
    background: var(--yale-blue);
    color: var(--white-cream);
    padding: 1rem;
}

.footer a {
    color: var(--white-cream);
    text-decoration: none;
}

.footer a:hover {
    color: var(--light-blue);
}

.footer-wrap {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: wrap;
}

.footer .brand img {
    height: 28px;
}

.footer .links,
.footer .social {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

.footer .copy {
    display: block;
    text-align: center;
    opacity: .85;
    margin-top: .5rem;
    font-size: .9rem;
}

/* ODS */
.ods {
    background: var(--white-cream);
    padding: 6rem 2rem;
    font-family: "Roboto", sans-serif;
}

.ods-container {
    max-width: 1200px;
    margin: 0 auto;
}

.ods-title {
    margin: 0;
    text-align: center;
    font-weight: 900;
    font-size: clamp(1.8rem, 4.5vw, 2.4rem);
    color: var(--yale-blue);
}

.ods-subtitle {
    text-align: center;
    margin: .75rem auto 2.5rem auto;
    color: #3d4a5c;
    max-width: 800px;
}

.ods-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 2rem;
}

.ods-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.ods-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.10);
    border-color: var(--light-blue);
}

.ods-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: .75rem;
}

.ods-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--denim);
}

.ods-desc {
    margin: .25rem 0 1rem 0;
    color: #4c5b70;
    line-height: 1.6;
}

.ods-list {
    margin: 0;
    padding: 0 0 0 1.1rem;
    color: #4c5b70;
    line-height: 1.6;
}

/* Badge ODS (usa colores estándar ODS sobre estructura de marca) */
.ods-badge {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-weight: 900;
    color: #fff;
    flex: 0 0 48px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* Badge ODS */
.badge-10 {
    background: #DD1367;
}

/* ODS 10 - Reducción de las desigualdades */
.badge-4 {
    background: #C5192D;
}

/* ODS 4 - Educación de Calidad */


/* ODS 4 - Educación de Calidad */

/* Responsivo */
@media (max-width: 900px) {
    .ods-grid {
        grid-template-columns: 1fr;
    }
}