/* ==========================================================================
   Página Acerca
   ========================================================================== */

.page-hero-acerca {
    position: relative;
    margin-top: var(--header-height);
    padding: 5.5rem 0 4.5rem;
    overflow: hidden;
    color: #fff;
    isolation: isolate;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(115deg, rgba(20, 20, 20, 0.92) 0%, rgba(20, 20, 20, 0.72) 48%, rgba(237, 0, 140, 0.55) 100%),
        url("../img/home/fondo3.jpg") center / cover no-repeat;
    transform-origin: center;
    animation: acercaHeroKenBurns 20s ease-in-out infinite alternate;
}

@keyframes acercaHeroKenBurns {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}

.page-hero-acerca::before {
    content: "72";
    position: absolute;
    right: max(1rem, calc((100% - var(--container)) / 2 - 1rem));
    top: 50%;
    transform: translateY(-50%);
    z-index: 0;
    font-family: var(--font-display);
    font-size: clamp(8rem, 22vw, 16rem);
    font-weight: 800;
    line-height: 0.8;
    color: rgba(255, 255, 255, 0.06);
    pointer-events: none;
    user-select: none;
}

.page-hero-acerca::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    z-index: 1;
    background: linear-gradient(90deg, var(--color-magenta), transparent 70%);
}

.page-hero-inner {
    position: relative;
    z-index: 1;
    width: var(--container);
    margin: 0 auto;
    max-width: 40rem;
}

.page-hero-acerca .section-label {
    color: #ff7ec8;
}

.page-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.15rem, 4.5vw, 3.35rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
    color: #fff;
}

.page-hero-lead {
    margin: 0 0 1.5rem;
    font-size: 1.1rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
    max-width: 32rem;
}

.page-hero-meta {
    display: inline-block;
    margin: 0;
    padding: 0.4rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
}

.acerca-quienes {
    padding: 4rem 0;
    background: var(--color-surface);
}

.acerca-quienes-inner {
    width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
    align-items: center;
}

.acerca-quienes-copy p {
    color: var(--color-muted);
    line-height: 1.7;
    margin: 0 0 1rem;
}

.acerca-quienes-copy .btn {
    margin-top: 0.75rem;
}

.acerca-quienes-media {
    position: relative;
    border-radius: 20px;
    overflow: visible;
}

.acerca-quienes-media::before {
    content: "";
    position: absolute;
    inset: 14px -14px -14px 14px;
    border-radius: 20px;
    border: 2px solid var(--color-magenta);
    opacity: 0.45;
    z-index: 0;
}

.acerca-quienes-media img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 420px;
    border-radius: 20px;
    box-shadow:
        0 28px 60px rgba(22, 19, 20, 0.22),
        0 10px 24px rgba(237, 0, 140, 0.16);
}

.acerca-historia {
    padding: 4.5rem 0;
    background: var(--color-bg);
}

.acerca-historia-inner {
    width: var(--container);
    margin: 0 auto;
}

.acerca-historia-head {
    margin-bottom: 2.5rem;
    max-width: 36rem;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0 1rem;
    align-items: start;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    min-width: 0;
    text-align: center;
}

.timeline-item figure {
    position: relative;
    margin: 0 0 1.1rem;
    aspect-ratio: 5 / 4;
    overflow: hidden;
    background: var(--color-surface);
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(22, 19, 20, 0.1);
    outline: 2px solid transparent;
    outline-offset: 3px;
    transition: transform 0.4s ease, box-shadow 0.4s ease, outline-color 0.4s ease;
}

.timeline-item:nth-child(odd) figure {
    transform: rotate(-1.5deg);
}

.timeline-item:nth-child(even) figure {
    transform: rotate(1.5deg);
}

.timeline-item figure::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

.timeline-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.timeline-item:hover figure {
    transform: rotate(0deg) translateY(-4px);
    box-shadow: 0 16px 36px rgba(237, 0, 140, 0.18);
    outline-color: rgba(237, 0, 140, 0.35);
}

.timeline-item:hover img {
    transform: scale(1.06);
}

.timeline-marker {
    position: relative;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.65rem;
}

.timeline-marker::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-magenta);
    transform: translateY(-50%);
}

.timeline-item:first-child .timeline-marker::before {
    left: 50%;
}

.timeline-item:last-child .timeline-marker::before {
    right: 50%;
}

.timeline-dot {
    position: relative;
    z-index: 1;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-magenta);
    border: 3px solid var(--color-bg);
    box-shadow: 0 0 0 2px var(--color-magenta);
}

.timeline-year {
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 1.5vw, 1.35rem);
    font-weight: 700;
    color: var(--color-magenta);
    margin: 0 0 0.25rem;
}

.timeline-label {
    margin: 0;
    font-size: clamp(0.8rem, 1.1vw, 0.95rem);
    line-height: 1.35;
    color: var(--color-muted);
}

.acerca-cta {
    padding: 5.5rem 0;
    background: var(--color-surface);
}

.acerca-cta-inner {
    width: var(--container);
    margin: 0 auto;
    max-width: 40rem;
}

.acerca-cta-text {
    font-size: 1.12rem;
    line-height: 1.7;
    color: var(--color-muted);
    margin: 0 0 1.75rem;
}

@media (max-width: 900px) {
    .page-hero-acerca::before {
        opacity: 0.5;
        right: 0.5rem;
    }

    .acerca-quienes-inner {
        grid-template-columns: 1fr;
    }

    .acerca-quienes-media::before {
        inset: 10px -10px -10px 10px;
    }

    .acerca-quienes-media img {
        min-height: 280px;
        max-height: 380px;
    }

    .timeline {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 2.25rem 1rem;
    }

    .timeline-item:nth-child(odd) figure,
    .timeline-item:nth-child(even) figure {
        transform: none;
    }

    .timeline-item:hover figure {
        transform: translateY(-4px);
    }

    .timeline-item:nth-child(3n + 1) .timeline-marker::before {
        left: 50%;
    }

    .timeline-item:nth-child(3n) .timeline-marker::before {
        right: 50%;
    }

    .timeline-item:nth-child(4) .timeline-marker::before {
        left: 50%;
        right: 0;
    }

    .timeline-item:last-child .timeline-marker::before {
        right: 50%;
    }
}

@media (max-width: 640px) {
    .timeline {
        grid-template-columns: 1fr;
        gap: 0;
        max-width: 100%;
        margin: 0 auto;
        position: relative;
    }

    .timeline::before {
        content: "";
        position: absolute;
        top: 0.55rem;
        bottom: 0.55rem;
        left: 50%;
        width: 2px;
        background: var(--color-magenta);
        transform: translateX(-50%);
        z-index: 0;
    }

    .timeline-item {
        display: grid;
        grid-template-columns: 1fr 1.25rem 1fr;
        grid-template-areas:
            "figure marker year"
            "figure marker label";
        column-gap: 0.75rem;
        row-gap: 0.15rem;
        align-items: center;
        text-align: left;
        padding-bottom: 1.5rem;
        position: relative;
        z-index: 1;
    }

    .timeline-item:nth-child(even) {
        grid-template-areas:
            "year marker figure"
            "label marker figure";
        text-align: right;
    }

    .timeline-item:last-child {
        padding-bottom: 0;
    }

    .timeline-marker {
        grid-area: marker;
        height: auto;
        align-self: center;
        margin: 0;
        justify-content: center;
        align-items: center;
        padding: 0;
    }

    .timeline-marker::before {
        display: none;
    }

    .timeline-item:last-child .timeline-marker::before {
        display: none;
    }

    .timeline-year {
        grid-area: year;
        font-size: 1.05rem;
        margin: 0;
        align-self: end;
    }

    .timeline-label {
        grid-area: label;
        font-size: 0.85rem;
        margin: 0;
        align-self: start;
    }

    .timeline-item:nth-child(even) .timeline-year,
    .timeline-item:nth-child(even) .timeline-label {
        text-align: right;
    }

    .timeline-item figure {
        grid-area: figure;
        margin: 0;
        max-width: 120px;
        width: 100%;
        aspect-ratio: 5 / 4;
        border-radius: 12px;
        transform: none !important;
        justify-self: end;
        align-self: center;
    }

    .timeline-item:nth-child(even) figure {
        justify-self: start;
    }

    .timeline-item:hover figure {
        transform: none !important;
    }
}
