@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@200;400;700&display=swap');

#quienes-somos,
#equipo {
    scroll-margin-top: 100px;
}

/* ── Intro ── */

.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    max-width: 1060px;
    margin: 0 auto;
}

.about-intro-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 1.25rem;
    line-height: 1.2;
    letter-spacing: 0.3px;
    padding-top: 2rem;
}

.about-intro-image img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

/* ── Shared ── */

.about-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64b5f6;
    margin-bottom: 0.75rem;
}

.about-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    margin: 3rem auto;
    max-width: 1060px;
}

/* ── Two column ── */

.about-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    max-width: 1060px;
    margin: 0 auto;
}

.about-col {
    padding: 2.5rem 3rem 2.5rem 0;
}

.about-col--right {
    border-left: 1px solid rgba(255, 255, 255, 0.07);
    padding: 2.5rem 0 2.5rem 3rem;
}

.about-col-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 1rem;
    letter-spacing: 0.3px;
}

.about-col-text {
    font-size: 1rem;
    line-height: 1.75;
    color: #9ab0c8;
    margin: 0 0 1rem;
}

.about-col-text:last-child {
    margin-bottom: 0;
}

.about-col-text--accent {
    color: rgba(100, 181, 246, 0.85);
    font-style: italic;
}

/* ── Timeline ── */

.timeline {
    position: relative;
    padding-left: 24px;
    margin-top: 1.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 6px;
    bottom: 6px;
    width: 1.5px;
    background: rgba(100, 181, 246, 0.2);
    border-radius: 2px;
}

.tl-item {
    position: relative;
    margin-bottom: 1.25rem;
}

.tl-item:last-child {
    margin-bottom: 0;
}

.tl-dot {
    position: absolute;
    left: -22px;
    top: 5px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #64b5f6;
    border: 2px solid #061323;
    box-sizing: border-box;
}

.tl-dot--latest {
    background: #ffffff;
    border-color: #64b5f6;
}

.tl-date {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #64b5f6;
    margin-bottom: 2px;
}

.tl-event {
    font-size: 0.88rem;
    color: #9ab0c8;
    line-height: 1.5;
}

/* ── Integrantes ── */

.about-section {
    max-width: 1060px;
    margin: 0 auto 3.5rem;
    text-align: center;
}

.about-section > p {
    font-size: 1rem;
    line-height: 1.75;
    color: #9ab0c8;
    max-width: 680px;
    margin: 0 auto 2rem;
}

.director-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 1.5rem auto 2.5rem;
    max-width: 720px;
}

.director-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(100, 181, 246, 0.2);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.director-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(100, 181, 246, 0.1);
    border: 2px solid rgba(100, 181, 246, 0.3);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.director-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.director-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.director-role {
    font-size: 0.78rem;
    color: #64b5f6;
    font-weight: 600;
    margin: 4px 0 0;
}

.director-degree {
    font-size: 0.75rem;
    color: #4a6080;
    margin: 2px 0 0;
}

.int-divider {
    display: block;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    margin: 2rem auto;
    max-width: 720px;
}

.team-block {
    max-width: 720px;
    margin: 0 auto 1.5rem;
    text-align: left;
}

.team-accordion {
    max-width: 720px;
    margin: 0 auto 4px;
    text-align: left;
}

.team-toggle {
    display: none;
}

.team-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #4a6080;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding: 12px 0;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease;
}

.team-heading:hover {
    color: #9ab0c8;
}

.team-chevron {
    font-size: 16px;
    line-height: 1;
    transition: transform 0.2s ease;
    display: inline-block;
}

.team-members {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.team-toggle:checked + .team-heading {
    color: #64b5f6;
    border-bottom-color: rgba(100, 181, 246, 0.2);
}

.team-toggle:checked + .team-heading .team-chevron {
    transform: rotate(180deg);
}

.team-toggle:checked ~ .team-members {
    max-height: 600px;
}

.coord-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
}

.coord-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
}

.coord-role {
    font-size: 0.78rem;
    color: #64b5f6;
    margin-top: 2px;
}

.coord-degree {
    font-size: 0.78rem;
    color: #4a6080;
    text-align: right;
}

.member-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    text-align: left;
}

.member-row:last-child {
    border-bottom: none;
}

.member-name {
    font-size: 0.88rem;
    color: #9ab0c8;
}

.member-degree {
    font-size: 0.78rem;
    color: #4a6080;
    text-align: right;
}

/* ── Fade in ── */

.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ── Mobile ── */

@media (max-width: 48em) {
    .about-intro {
        grid-template-columns: 1fr;
    }

    .about-intro-image img {
        height: 240px;
    }

    .about-two-col {
        grid-template-columns: 1fr;
    }

    .about-col {
        padding: 2rem 0 0;
    }

    .about-col--right {
        border-left: none;
        padding: 2rem 0 0;
        border-top: 1px solid rgba(255, 255, 255, 0.07);
    }

    .director-grid {
        grid-template-columns: 1fr;
    }

    .coord-row,
    .member-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .coord-degree,
    .member-degree {
        text-align: left;
    }

    .about-col {
        padding-bottom: 2.5rem;
    }

    .about-divider {
        margin: 1.5rem auto;
    }

    .about-col--right {
        padding-top: 2rem;
    }
}