* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BODY */
body {
    font-family: 'Epilogue', Arial, Helvetica, sans-serif;
    background: linear-gradient(to bottom, #edf7f6 0%, #f4e2f1 100%);
    color: #111;
    min-height: 100vh;
}

/* NAV */
.navbar {
    display: flex;
    justify-content: center;
    gap: 70px;
    padding: 35px 0;

}
.navbar a {
    text-decoration: none;
    color: #4b8d8f;
    font-size: 18px;
    font-weight: 500;
}

/* HERO
   Estructura: foto (columna fija) + info (columna fluida), ambos centrados en su grupo */
.hero {
    max-width: 1100px;
    margin: 30px auto 60px;
    padding: 0 24px;
    display: flex;
    justify-content: center; /* centra el grupo en la página */
    gap: 60px; /* distancia entre foto y bloque de texto */
    align-items: flex-start;
    box-sizing: border-box;
    margin-bottom: 200px;
    margin-top: 60px;
}

.foto-container {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}
.foto-container img {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    object-fit: cover;
}
.foto-container h2 {
    margin-top: 30px;
    font-size: 36px;
    font-weight: 900;
    text-align: center;
    color: #923b92
}

.info-principal {
    flex: 1 1 1;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.info-principal h1 {
    font-size: 90px;
    line-height: 0.95;
    color: #923b92;
    font-weight: 900;
    margin: 0;
}
.grupo {
    margin-top: 25px;
    font-size: 26px;
}

/* BOTONES (usar .btn para enlaces con aspecto de botón) */
.botones {
    margin-top: 35px;
    display: flex;
    gap: 25px;
}
.botones .btn,
.botones button {
    padding: 16px 35px;
    border-radius: 40px;
    border: 2px solid #6fb0b4;
    background: transparent;
    color: #5d9ca1;
    font-size: 24px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.botones .btn:hover,
.botones button:hover {
    background: rgba(111,176,180,0.08);
}

/* PERFIL */
.perfil {
    width: 90%;
    max-width: 1100px;
    margin: 80px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-bottom: 70px;
    box-sizing: border-box;
}
    .perfil h2 {
        font-size: 42px;
        color: #923b92;
        margin: 0;
        text-align: center;
        width: 100%;
        margin-bottom: 30px;
    }
    .perfil p {
        font-size: 18px;
        line-height: 1.6;
        text-align: left;
        width: 100%;
        max-width: none;
        margin: 0;
        margin-bottom: 30px;
    }
.perfil .botones {
    margin-top: 10px;
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* FOJA */
.foja {
    width: 90%;
    max-width: 1100px;
    margin: 120px auto 0;
    text-align: center;
    box-sizing: border-box;
}
    .foja h2 {
        font-size: 42px;
        margin-bottom: 50px;
        color: #923b92;
    }

/* NIVELES / TARJETAS */
.niveles {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 25px;
    flex-wrap: wrap;
    align-items: flex-start;
}

/* TARJETA: flexible para 4 columnas en desktop */
.nivel-card {
    flex: 0 1 calc((100% - 75px) / 4); /* cuatro columnas con gaps */
    max-width: calc((100% - 75px) / 4);
    background: #ecc9e8;
    border-radius: 10px;
    padding: 20px;
    transition: transform .2s ease, background .2s ease;
    box-sizing: border-box;
}
.nivel-card summary {
    list-style: none;
    cursor: pointer;
    font-size: 28px;
    font-weight: 600;
    padding: 6px 0;
}
.nivel-card summary::-webkit-details-marker { display: none; }

/* CONTENIDO DENTRO DE TARJETA */
.contenido {
    margin-top: 16px;
}
.contenido p {
    font-size: 18px;
    margin: 12px 0;
}
.nivel-card:hover {
    transform: translateY(-5px);
}
.nivel-card[open] {
    background: #e6bfe1;
}

/* DATOS */
.datos {
    width: 90%;
    max-width: 1100px;
    margin: 120px auto;
    box-sizing: border-box;
}
    .datos h2 {
        text-align: center;
        color: #923b92;
        font-size: 48px;
        margin-bottom: 80px;
    }

.grid-datos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 70px 40px;
    text-align: center;
}

.grid-datos p:first-child { font-size: 24px; margin-bottom 30px; }
.grid-datos p:last-child { font-size: 28px; font-weight: 500; margin-bottom 20px; }

/* EQUIPO */
.equipo {
    width: 90%;
    max-width: 1100px;
    margin: 120px auto;
    box-sizing: border-box;
}
    .equipo h2 {
        font-size: 42px;
        color: #923b92;
        margin-bottom: 50px;
        text-align: center;
    }

    .equipo .niveles {
        justify-content: center;
        gap: 25px;
        row-gap: 20px;
        align-items: stretch;
    }

    .equipo .niveles .nivel-card {
        flex: 0 0 420px;
        max-width: 420px;
        padding: 28px 26px;
        border-radius: 12px;
    }

        .equipo .niveles .nivel-card .contenido h3 {
            font-size: 30px;
            margin: 0 0 8px;
            line-height: 1.15;
        }

        .equipo .niveles .nivel-card .contenido p {
            font-size: 24px;
            margin: 6px 0 14px;
            line-height: 1.6;
            color: #222;
        }

        .equipo .niveles .nivel-card .contenido .btn,
        .equipo .niveles .nivel-card .contenido a.btn {
            padding: 16px 35px;
            border-radius: 40px;
            border: 2px solid #6fb0b4;
            background: transparent;
            color: #5d9ca1;
            font-size: 24px;
            cursor: pointer;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

            .equipo .niveles .nivel-card .contenido .btn:hover,
            .equipo .niveles .nivel-card .contenido a.btn:hover {
                background: rgba(111,176,180,0.08);
            }

@media (max-width: 900px) {
    .equipo .niveles .nivel-card {
        flex: 1 1 calc(50% - 12.5px);
        max-width: none;
        padding: 20px;
    }
}

@media (max-width: 600px) {
    .equipo .niveles .nivel-card {
        flex: 1 1 100%;
        max-width: 520px;
        padding: 18px;
    }
}
    }

/* hover-swap: visual y cursor */
.contenido p.hover-swap {
    cursor: pointer;
    transition: color .12s ease, transform .12s ease;
}
.contenido p.hover-swap:hover {
    color: #923b92;
    transform: translateY(-2px);
}

/* Responsive: tablet / móvil */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        align-items: center;
        gap: 18px;
        padding: 0 16px;
        margin-bottom: 60px;
    }
    .foto-container { flex: 0 0 auto; }
    .foto-container img { width: 220px; height: 220px; }
    .info-principal { max-width: none; width: 100%; text-align: center; }
    .info-principal h1 { font-size: 54px; }

    .nivel-card { flex: 1 1 calc(50% - 12.5px); max-width: none; }
    .contenido p { font-size: 16px; margin: 10px 0; }

    .grid-datos { grid-template-columns: repeat(2, 1fr); }
    .perfil p { width: 100%; text-align: center; font-size: 16px; }
}

@media (max-width: 600px) {
    .foto-container img { width: 200px; height: 200px; }
    .info-principal h1 { font-size: 42px; }
    .botones .btn, .botones button { font-size: 18px; padding: 12px 28px; }
    .nivel-card summary { font-size: 22px; }
    .contenido p { font-size: 15px; margin: 8px 0; }
    .grid-datos { grid-template-columns: 1fr; }
    .texto-final p { font-size: 15px; }
    .texto-final .aclaracion { font-size: 13px; }
}

/* scroll suave para anclas internas */
html {
    scroll-behavior: smooth;
}

/* SWEEP: overlay animado cuando la sección es target (#equipo) */
:root { --sweep-duration: 700ms; }

.equipo:target::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    background: linear-gradient(90deg,
        rgba(146,59,146,0.10) 0%,
        rgba(146,59,146,0.18) 40%,
        rgba(146,59,146,0.10) 100%);
    transform: translateX(-100%);
    animation: sweep var(--sweep-duration) cubic-bezier(.22,.9,.26,1) forwards;
}

@keyframes sweep {
    0%   { transform: translateX(-100%); }
    45%  { transform: translateX(0%); }   /* overlay cubre la pantalla */
    100% { transform: translateX(100%); } /* sale hacia la derecha */
}


/* Responsive: 2 columnas en tablet, 1 columna en móvil */
@media (max-width: 900px) {
    .equipo .niveles .nivel-card {
        flex: 1 1 calc(50% - 12.5px);
        max-width: none;
    }
}

@media (max-width: 600px) {
    .equipo .niveles {
        flex-direction: column;
        align-items: center;
    }
    .equipo .niveles .nivel-card {
        width: 100%;
        max-width: 520px;
    }
}

.aclaracion {
    margin-top: 60px;
    font-size: 14px;
    font-style: italic;
}

/* TXT_COLUMNS + footer adjustments */
.texto-columns {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto 24px;
    box-sizing: border-box;
}
.texto-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 40px;
    align-items: start;
}
.texto-grid .col p {
    margin: 8px 0;
    font-size: 16px;
    line-height: 1.6;
}
.texto-grid .col p strong { font-weight: 700; }

/* Footer container */
.site-footer {
    padding: 160px 0 20px;
    color: ghostwhite;
    background: linear-gradient( to bottom, rgba(146,59,146,0) 0%, rgba(146,59,146,0.35) 20%, rgba(146,59,146,0.75) 50%, rgba(146,59,146,1) 100% );
}

 .site-footer .texto-final {
        width: 90%;
        max-width: 1100px;
        margin: auto;
        padding-bottom: 70px;
        box-sizing: border-box;
    }

.site-footer .texto-final p {
    font-size: 16px;
    line-height: 1.6;
}

/* Responsive: 2 columns tablet, 1 column mobile */
@media (max-width: 900px) {
    .texto-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 600px) {
    .texto-grid { grid-template-columns: 1fr; gap: 12px; }
    .site-footer { padding-bottom: 40px; }
}

