/* ============================================================
   Acerca de – Conoce a Fernanda
   ============================================================ */

/* Hero
   ============================================================ */

#hero-acercade .grid {
    align-items: center;
    gap: 6rem;
}

#hero-acercade picture {
    border-radius: 2rem;
    overflow: hidden;
}

#hero-acercade img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2rem;
}

#hero-acercade .eyebrow {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: #c31c4a;
    margin-bottom: 1.5rem;
}

#hero-acercade h1 {
    font-size: 3.6rem;
    line-height: 1.15;
    color: #2d1d44;
    text-align: left;
    margin-bottom: 2rem;
}

#hero-acercade p {
    font-size: 1.8rem;
    color: #747474;
    text-align: left;
    max-width: 50rem;
    margin-bottom: 3rem;
}

/* Stats
   ============================================================ */

#stats-fer {
    background-color: #2d1d44;
    padding: 4rem 1rem;
}

#stats-fer .contain {
    gap: 2rem;
}

#stats-fer .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#stats-fer .num {
    font-size: 4.8rem;
    font-weight: 900;
    color: #c31c4a;
    line-height: 1;
}

#stats-fer .etiqueta {
    font-size: 1.4rem;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    margin-top: .6rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

/* Historia
   ============================================================ */

#historia-fer .contain {
    max-width: 80rem;
    margin: 0 auto;
}

#historia-fer p {
    font-size: 1.8rem;
    line-height: 1.8;
    color: #555;
    text-align: left;
    margin-bottom: 2.5rem;
}

#historia-fer blockquote {
    border-left: .5rem solid #c31c4a;
    margin: 4rem 0;
    padding: 2rem 3rem;
    background-color: #f9f6ff;
    border-radius: 0 1.5rem 1.5rem 0;
}

#historia-fer blockquote,
#historia-fer blockquote p {
    font-size: 2.2rem;
    font-weight: 600;
    color: #2d1d44;
    font-style: italic;
    text-align: left;
    margin: 0;
}

/* Línea de tiempo
   ============================================================ */

#linea-tiempo {
    background-color: #f9f6ff;
}

#linea-tiempo h2 {
    text-align: center;
    color: #2d1d44;
    margin-bottom: 1rem;
}

#linea-tiempo .subtitulo {
    text-align: center;
    font-size: 1.7rem;
    color: #747474;
    max-width: 60rem;
    margin: 0 auto 6rem;
}

.timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    max-width: 70rem;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: calc(12rem + 2rem + 1.5rem); /* col años + gap + mitad del col punto */
    top: 2.5rem;     /* alinea con el primer punto */
    bottom: 2.5rem;  /* termina en el último punto */
    width: .2rem;
    background: linear-gradient(to bottom, #c31c4a, #2d1d44);
}

.hito {
    display: grid;
    grid-template-columns: 12rem 3rem 1fr;
    gap: 0 2rem;
    align-items: start;
    padding: 2.5rem 0;
}

.hito .año {
    font-size: 1.4rem;
    font-weight: 700;
    color: #c31c4a;
    text-align: right;
    padding-top: .4rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.hito .punto {
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 50%;
    background: white;
    border: .3rem solid #c31c4a;
    margin-top: .3rem;
    position: relative;
    z-index: 1;
    justify-self: center;
}

.hito.activo .punto {
    background: #c31c4a;
    box-shadow: 0 0 0 .5rem rgba(195, 28, 74, 0.15);
}

.hito .contenido h3 {
    font-size: 1.8rem;
    color: #2d1d44;
    margin-bottom: .8rem;
    text-align: left;
}

.hito .contenido p {
    font-size: 1.5rem;
    color: #747474;
    line-height: 1.6;
    text-align: left;
    margin: 0;
}

/* Especialidades
   ============================================================ */

#especialidades-fer h2 {
    text-align: center;
    color: #2d1d44;
    margin-bottom: 4rem;
}

#especialidades-fer .grid {
    gap: 3rem;
    align-items: start;
}

.esp-item {
    padding: 3rem 2.5rem;
    border-radius: 1.5rem;
    border: .15rem solid #e8e4f0;
    background: white;
    transition: box-shadow .2s, border-color .2s;
}

.esp-item:hover {
    border-color: #c31c4a;
    box-shadow: 0 6px 24px rgba(195, 28, 74, 0.1);
}

.esp-item h3 {
    font-size: 1.7rem;
    color: #2d1d44;
    margin-bottom: 1rem;
    text-align: left;
}

.esp-item p {
    font-size: 1.5rem;
    color: #747474;
    text-align: left;
    margin: 0;
}

/* Cierre
   ============================================================ */

#cierre-fer {
    background-color: #2d1d44;
}

#cierre-fer blockquote.grande {
    font-size: 2.2rem;
    font-weight: 500;
    font-style: italic;
    color: white;
    line-height: 1.7;
    text-align: center;
    max-width: 80rem;
    margin: 0 auto 3rem;
}

#cierre-fer .firma {
    text-align: center;
    font-size: 1.5rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 3rem;
}

#cierre-fer .llamado {
    text-align: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 3rem;
}

#cierre-fer .llamado b {
    color: #c31c4a;
}

/* Animaciones de scroll
   ============================================================ */

.reveal,
.reveal-left,
.reveal-right {
    transition-property: opacity, transform;
    transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    transition-duration: 650ms;
    transition-delay: calc(var(--i, 0) * 55ms);
}

.reveal      { opacity: 0; transform: translateY(24px); }
.reveal-left { opacity: 0; transform: translateX(-32px); }
.reveal-right { opacity: 0; transform: translateX(32px); }

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal-left,
    .reveal-right {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Responsive
   ============================================================ */

@media (max-width: 1024px) {
    #hero-acercade .grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    #hero-acercade picture {
        max-width: 50rem;
        margin: 0 auto;
    }

    #hero-acercade h1,
    #hero-acercade p {
        text-align: center;
        max-width: 100%;
    }

    #hero-acercade .flex { justify-content: center; }

    #especialidades-fer .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #hero-acercade h1 { font-size: 2.8rem; }

    #stats-fer .contain { flex-direction: column; gap: 3rem; }

    .timeline::before { left: calc(8rem + 1.5rem + 1.5rem); }

    .hito {
        grid-template-columns: 8rem 3rem 1fr;
        gap: 0 1.5rem;
    }

    .hito .año { font-size: 1.2rem; }

    #linea-tiempo .subtitulo { margin-bottom: 4rem; }

    #especialidades-fer .grid { grid-template-columns: 1fr; }

    #cierre-fer blockquote.grande { font-size: 1.8rem; }
}

@media (max-width: 480px) {
    .timeline::before { left: calc(6rem + 1rem + 1.25rem); }

    .hito {
        grid-template-columns: 6rem 2.5rem 1fr;
        gap: 0 1rem;
    }

    .hito .año { font-size: 1.1rem; }
}
