/* ==========================================================================
   ABOUT PAGE STYLES — Que es SecurApp
   Mobile-first responsive approach
   ========================================================================== */

/* ── Storyline — Scroll-driven decorative SVG path ────── */
.about-storyline {
    position: relative;
}

.about-storyline__line {
    display: none;
}


.about-storyline__path {
    stroke: url(#storyline-grad);
}

@media (prefers-reduced-motion: reduce) {
    .about-storyline__path {
        stroke-dasharray: none;
        stroke-dashoffset: 0;
    }
}


/* ── Hero Mini ─────────────────────────────────────────── */
.hero-mini {
    position: relative;
    padding-top: calc(var(--nav-height, 72px) + var(--space-6));
    padding-bottom: var(--space-24);
    overflow: hidden;
}

.hero-mini__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hero-mini__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: var(--container-narrow);
    margin-inline: auto;
    padding-top: var(--space-8);
}

.hero-mini__title {
    font-size: var(--text-3xl);
    font-weight: var(--fw-extrabold);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    margin-bottom: var(--space-4);
}

.hero-mini__subtitle {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    color: var(--text-secondary);
    max-width: 560px;
    margin-inline: auto;
}

.hero-mini__descriptor {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    letter-spacing: var(--tracking-wide);
    margin-top: var(--space-4);
}


/* ── Vision Section ────────────────────────────────────── */
.about-vision {
    padding-top: var(--space-6);
    padding-bottom: var(--space-8);
}


.about-vision__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    align-items: center;
}

.about-vision__text {
    text-align: center;
}

.about-vision__text .badge {
    margin-bottom: var(--space-4);
}

.about-vision__text .section__title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-6);
}

.about-vision__text p {
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-4);
    text-align: justify;
    text-justify: inter-word;
}

.about-vision__actions {
    margin-top: var(--space-6);
    text-align: center;
}

.about-vision__visual {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-5);
}

/* Firma de continuidad bajo el logosímbolo animado */
.about-vision__signature {
    margin: 0;
    font-size: var(--text-sm);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.01em;
    color: var(--text-tertiary);
    text-align: center;
}

/* Logosímbolo Dynbel — trazo que se dibuja al entrar (réplica del hero) */
.about-vision__dmark {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    max-width: 640px;
    aspect-ratio: 1560 / 1010;
    color: #1E7BFF;
    filter:
        drop-shadow(0 4px 8px rgba(30, 123, 255, 0.12))
        drop-shadow(0 16px 32px rgba(30, 123, 255, 0.16))
        drop-shadow(0 32px 64px rgba(34, 211, 238, 0.10));
    animation: aboutLogoFloat 6s ease-in-out infinite;
}

[data-theme="dark"] .about-vision__dmark {
    color: #4D97FF;
    filter:
        drop-shadow(0 4px 8px rgba(255, 255, 255, 0.06))
        drop-shadow(0 16px 32px rgba(30, 123, 255, 0.10))
        drop-shadow(0 32px 64px rgba(34, 211, 238, 0.06));
}

.about-vision__dmark svg { width: 100%; height: 100%; overflow: visible; display: block; }
.about-vision__dmark .dmark__stroke,
.about-vision__dmark .dmark__fill { position: absolute; inset: 0; }
.about-vision__dmark .dmark__stroke { opacity: 0; }
.about-vision__dmark .dmark__fill {
    -webkit-mask-image: linear-gradient(90deg, transparent 38%, #000 56%);
    mask-image: linear-gradient(90deg, transparent 38%, #000 56%);
    -webkit-mask-size: 280% 100%; mask-size: 280% 100%;
    -webkit-mask-position: 100% 0%; mask-position: 100% 0%;
}

@keyframes aboutLogoFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-14px); }
}

@media (prefers-reduced-motion: reduce) {
    .about-vision__dmark { animation: none; }
}

/* Sparkles — on the logo surface, like it's shining */
.about-vision__logo-wrap {
    position: relative;
    display: block;
    width: 100%;
    max-width: 640px;
    margin-inline: auto;
}

.about-vision__logo-wrap::before {
    content: '';
    position: absolute;
    inset: 10% 10%;
    z-index: 2;
    pointer-events: none;
    opacity: 0.95;
    background:
        var(--spark) no-repeat 28% 26%,
        var(--spark) no-repeat 68% 38%;
    background-size: 17px 17px, 13px 13px;
    animation: sparkle-a 4s var(--ease-in-out) infinite;
}

.about-vision__logo-wrap::after {
    content: '';
    position: absolute;
    inset: 10% 10%;
    z-index: 2;
    pointer-events: none;
    opacity: 0.9;
    background:
        var(--spark) no-repeat 70% 74%;
    background-size: 14px 14px;
    animation: sparkle-b 5.5s var(--ease-in-out) 2s infinite;
}

/* White sparkles for both themes — destello de puntas finas */
.about-vision__logo-wrap {
    --spark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5L12.9 11.1L22.5 12L12.9 12.9L12 22.5L11.1 12.9L1.5 12L11.1 11.1Z' fill='%23ffffff'/%3E%3C/svg%3E");
}

@media (min-width: 1024px) {
    .about-vision__logo-wrap,
    .about-vision__dmark {
        max-width: 760px;
    }
}


/* ── Manifesto — Lo que nos define ─────────────────────── */
.about-manifesto {
    padding-top: var(--space-8);
    padding-bottom: var(--space-24);
}

.about-manifesto .section__header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.about-manifesto__statements {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.about-manifesto__statement {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
    align-items: center;
}

.about-manifesto__number-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-manifesto__number {
    font-size: var(--text-5xl);
    font-weight: var(--fw-extrabold);
    letter-spacing: var(--tracking-tight);
    line-height: 1;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter:
        drop-shadow(0 2px 0 rgba(30, 123, 255, 0.4))
        drop-shadow(0 4px 0 rgba(30, 123, 255, 0.2))
        drop-shadow(0 8px 16px rgba(30, 123, 255, 0.25))
        drop-shadow(0 16px 32px rgba(30, 123, 255, 0.1));
    user-select: none;
}

[data-theme="dark"] .about-manifesto__number {
    filter:
        drop-shadow(0 2px 0 rgba(34, 211, 238, 0.4))
        drop-shadow(0 4px 0 rgba(34, 211, 238, 0.2))
        drop-shadow(0 8px 16px rgba(34, 211, 238, 0.3))
        drop-shadow(0 16px 32px rgba(34, 211, 238, 0.12));
}

.about-manifesto__body {
    text-align: center;
}

.about-manifesto__title {
    font-size: var(--text-2xl);
    font-weight: var(--fw-extrabold);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    margin-bottom: var(--space-3);
}

.about-manifesto__title .text-gradient {
    display: inline-block;
    transition: opacity var(--duration-normal) var(--ease-smooth),
                transform var(--duration-normal) var(--ease-spring);
}

.about-manifesto__text {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    max-width: 480px;
    margin-inline: auto;
    text-align: justify;
    text-justify: inter-word;
}

.about-manifesto__reveal {
    position: relative;
    text-align: center;
    font-size: var(--text-2xl);
    font-weight: var(--fw-extrabold);
    font-style: italic;
    letter-spacing: var(--tracking-tight);
    line-height: var(--leading-normal);
    color: var(--text-tertiary);
    margin-top: var(--space-12);
    overflow: visible;
}

/* Glow behind the phrase — appears during reveal */
.about-manifesto__reveal::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 200%;
    background: radial-gradient(ellipse, color-mix(in srgb, #1E7BFF 12%, transparent), transparent 70%);
    border-radius: 50%;
    opacity: var(--glow-opacity, 0);
    pointer-events: none;
    z-index: -1;
}

[data-theme="dark"] .about-manifesto__reveal::before {
    background: radial-gradient(ellipse, color-mix(in srgb, #22D3EE 15%, transparent), transparent 70%);
}

.about-manifesto__reveal-text {
    display: inline-block;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    clip-path: inset(0 100% 0 0);
    padding-right: 0.25em;
}

.about-manifesto__divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--border-default) 30%, var(--border-default) 70%, transparent 100%);
    margin: 0;
}


/* ══════════════════════════════════════════════════════════
   EVOLUTION — Fully Immersive Cinematic Experience
   ══════════════════════════════════════════════════════════ */

.evolution {
    position: relative;
    padding: 0;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background: #060610;
}

.evolution__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 0;
    pointer-events: none;
}

.evolution__atmosphere {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(ellipse at 50% 50%,
        rgba(30, 123, 255, 0.08) 0%,
        transparent 70%);
    transition: background 1.5s ease;
}

.evolution__vignette {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: radial-gradient(ellipse at center,
        transparent 40%,
        rgba(6, 6, 16, 0.5) 80%,
        rgba(6, 6, 16, 0.85) 100%);
}

.evolution__pin {
    position: relative;
    z-index: 3;
}

.evolution__track {
    display: flex;
    flex-direction: column;
}

.evolution__stage {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: var(--space-8) var(--space-6);
    text-align: center;
}

/* ═══════════════════════════════════════════════════════
   INTRO — Cinematic welcome
   ═══════════════════════════════════════════════════════ */
.evolution__stage--intro {
    min-height: 100vh;
}

.evolution__intro-overline {
    font-size: var(--text-base);
    font-weight: var(--fw-semibold);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-6);
    text-shadow: 0 0 24px rgba(30, 123, 255, 0.5),
                 0 0 48px rgba(30, 123, 255, 0.2);
}

.evolution__intro-title {
    font-size: var(--text-3xl);
    font-weight: var(--fw-extrabold);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    color: #fff;
    margin-bottom: var(--space-6);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.evolution__intro-gradient {
    background: linear-gradient(135deg, #60A5FA, #22D3EE);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 24px rgba(30, 123, 255, 0.5));
}

.evolution__intro-sub {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.65);
    font-weight: var(--fw-normal);
    line-height: var(--leading-relaxed);
    max-width: 560px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6),
                 0 0 24px rgba(0, 0, 0, 0.3);
}

/* ═══════════════════════════════════════════════════════
   OUTRO — Cinematic farewell
   ═══════════════════════════════════════════════════════ */
.evolution__stage--outro {
    min-height: 100vh;
}

.evolution__outro-logo {
    display: block;
    width: auto;
    height: 64px;
    margin: 0 auto var(--space-6);
    filter: drop-shadow(0 0 28px rgba(34, 211, 238, 0.45))
            drop-shadow(0 0 60px rgba(30, 123, 255, 0.25));
}

.evolution__outro-overline {
    font-size: var(--text-base);
    font-weight: var(--fw-semibold);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-6);
    text-shadow: 0 0 24px rgba(34, 211, 238, 0.5),
                 0 0 48px rgba(34, 211, 238, 0.2);
}

@media (min-width: 1024px) {
    .evolution__outro-logo { height: 84px; }
}

.evolution__outro-title {
    font-size: var(--text-3xl);
    font-weight: var(--fw-extrabold);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    color: #fff;
    margin-bottom: var(--space-6);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.evolution__outro-gradient {
    background: linear-gradient(135deg, #22D3EE, #22D3EE);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 24px rgba(34, 211, 238, 0.5));
}

.evolution__outro-message {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.65);
    font-weight: var(--fw-normal);
    line-height: var(--leading-relaxed);
    max-width: 560px;
    margin-bottom: var(--space-4);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6),
                 0 0 24px rgba(0, 0, 0, 0.3);
}

.evolution__outro-cta {
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.55);
    font-weight: var(--fw-normal);
    line-height: var(--leading-relaxed);
    max-width: 520px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5),
                 0 0 20px rgba(0, 0, 0, 0.3);
}

/* ═══════════════════════════════════════════════════════
   CONTENT STAGES — Era, Title, Phrases
   ═══════════════════════════════════════════════════════ */

.evolution__era {
    display: inline-block;
    font-size: var(--text-base);
    font-weight: var(--fw-extrabold);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-5);
    padding: var(--space-2) var(--space-4);
    border: none;
    border-radius: var(--radius-full);
}

.evolution__title {
    font-size: var(--text-4xl);
    font-weight: var(--fw-extrabold);
    line-height: 1.15;
    letter-spacing: var(--tracking-tight);
    padding-bottom: 0.08em;
    margin-bottom: var(--space-3);
    color: #fff;
}

.evolution__desc {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.55);
    line-height: var(--leading-relaxed);
    max-width: 460px;
    margin-top: var(--space-4);
    margin-bottom: 0;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    will-change: transform, opacity, filter;
}

/*
 * Stage-specific gradient titles — NO filter: drop-shadow here,
 * it clips descenders (g, y, p) when combined with background-clip: text.
 * Glow is achieved via a ::after pseudo-element instead.
 */
.evolution__stage[data-stage] .evolution__title {
    position: relative;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.evolution__stage[data-stage] .evolution__title::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    z-index: -1;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: blur(28px);
    opacity: 0.55;
    pointer-events: none;
}

/* Rampa de azules Dynbel: del más claro (origen) al más saturado, cerrando con la marca */
.evolution__stage[data-stage="origin"] .evolution__title,
.evolution__stage[data-stage="origin"] .evolution__title::after {
    background-image: linear-gradient(135deg, #93C5FD, #60A5FA);
}
.evolution__stage[data-stage="origin"] .evolution__era {
    color: #93C5FD;
    text-shadow: 0 0 18px rgba(147, 197, 253, 0.7), 0 0 40px rgba(96, 165, 250, 0.4), 0 0 80px rgba(147, 197, 253, 0.2);
}

.evolution__stage[data-stage="foundation"] .evolution__title,
.evolution__stage[data-stage="foundation"] .evolution__title::after {
    background-image: linear-gradient(135deg, #60A5FA, #38BDF8);
}
.evolution__stage[data-stage="foundation"] .evolution__era {
    color: #60A5FA;
    text-shadow: 0 0 18px rgba(96, 165, 250, 0.7), 0 0 40px rgba(56, 189, 248, 0.4), 0 0 80px rgba(96, 165, 250, 0.2);
}

.evolution__stage[data-stage="network"] .evolution__title,
.evolution__stage[data-stage="network"] .evolution__title::after {
    background-image: linear-gradient(135deg, #38BDF8, #22D3EE);
}
.evolution__stage[data-stage="network"] .evolution__era {
    color: #38BDF8;
    text-shadow: 0 0 18px rgba(56, 189, 248, 0.7), 0 0 40px rgba(34, 211, 238, 0.4), 0 0 80px rgba(56, 189, 248, 0.2);
}

.evolution__stage[data-stage="intelligence"] .evolution__title,
.evolution__stage[data-stage="intelligence"] .evolution__title::after {
    background-image: linear-gradient(135deg, #4D97FF, #22D3EE);
}
.evolution__stage[data-stage="intelligence"] .evolution__era {
    color: #4D97FF;
    text-shadow: 0 0 18px rgba(77, 151, 255, 0.7), 0 0 40px rgba(34, 211, 238, 0.4), 0 0 80px rgba(77, 151, 255, 0.2);
}

.evolution__stage[data-stage="scale"] .evolution__title,
.evolution__stage[data-stage="scale"] .evolution__title::after {
    background-image: linear-gradient(135deg, #3B82F6, #1E7BFF);
}
.evolution__stage[data-stage="scale"] .evolution__era {
    color: #4D97FF;
    text-shadow: 0 0 18px rgba(59, 130, 246, 0.7), 0 0 40px rgba(30, 123, 255, 0.4), 0 0 80px rgba(59, 130, 246, 0.2);
}

.evolution__stage[data-stage="future"] .evolution__title,
.evolution__stage[data-stage="future"] .evolution__title::after {
    background-image: linear-gradient(135deg, #2563EB, #1E7BFF);
}
.evolution__stage[data-stage="future"] .evolution__era {
    color: #4D97FF;
    text-shadow: 0 0 18px rgba(37, 99, 235, 0.7), 0 0 40px rgba(30, 123, 255, 0.4), 0 0 80px rgba(37, 99, 235, 0.2);
}

/* Rebrand — gradiente de marca desde tokens (faltaba esta regla: el título quedaba invisible) */
.evolution__stage[data-stage="rebrand"] .evolution__title,
.evolution__stage[data-stage="rebrand"] .evolution__title::after {
    background-image: linear-gradient(135deg, var(--gradient-text-from), var(--gradient-text-to));
}
.evolution__stage[data-stage="rebrand"] .evolution__era {
    color: #22D3EE;
    text-shadow: 0 0 18px rgba(34, 211, 238, 0.7), 0 0 40px rgba(30, 123, 255, 0.4), 0 0 80px rgba(34, 211, 238, 0.2);
}

/* ── Phrase — sequential text, floats in the scene ────── */
.evolution__phrase {
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.75);
    font-weight: var(--fw-normal);
    letter-spacing: var(--tracking-wide);
    line-height: var(--leading-relaxed);
    max-width: 380px;
    margin-bottom: var(--space-2);
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.9),
                 0 0 40px rgba(0, 0, 0, 0.5),
                 0 0 60px rgba(0, 0, 0, 0.3);
    will-change: transform, opacity, filter;
}

.evolution__phrase .text-gradient {
    font-weight: var(--fw-semibold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.evolution__stage[data-stage="origin"] .evolution__phrase .text-gradient {
    background-image: linear-gradient(135deg, #93C5FD, #60A5FA);
}
.evolution__stage[data-stage="foundation"] .evolution__phrase .text-gradient {
    background-image: linear-gradient(135deg, #60A5FA, #38BDF8);
}
.evolution__stage[data-stage="network"] .evolution__phrase .text-gradient {
    background-image: linear-gradient(135deg, #38BDF8, #22D3EE);
}
.evolution__stage[data-stage="intelligence"] .evolution__phrase .text-gradient {
    background-image: linear-gradient(135deg, #4D97FF, #22D3EE);
}
.evolution__stage[data-stage="scale"] .evolution__phrase .text-gradient {
    background-image: linear-gradient(135deg, #3B82F6, #1E7BFF);
}
.evolution__stage[data-stage="future"] .evolution__phrase .text-gradient {
    background-image: linear-gradient(135deg, #2563EB, #1E7BFF);
}
.evolution__stage[data-stage="rebrand"] .evolution__phrase .text-gradient {
    background-image: linear-gradient(135deg, var(--gradient-text-from), var(--gradient-text-to));
}

/* ── Progress — hidden on mobile ─────────────────────── */
.evolution__progress {
    display: none;
}

/* ── Audio toggle — stage-dynamic gradient ────────────── */
.evolution__audio-toggle {
    --audio-c1: 34, 211, 238;
    --audio-c2: 30, 123, 255;
    position: absolute;
    bottom: var(--space-6);
    right: var(--space-6);
    z-index: 20;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(var(--audio-c1), 0.10), rgba(var(--audio-c2), 0.06));
    border: 1px solid rgba(var(--audio-c1), 0.22);
    border-radius: var(--radius-full);
    color: rgba(var(--audio-c1), 0.6);
    cursor: pointer;
    transition: color var(--duration-normal) var(--ease-smooth),
                border-color var(--duration-normal) var(--ease-smooth),
                background var(--duration-normal) var(--ease-smooth),
                box-shadow var(--duration-normal) var(--ease-smooth);
}

.evolution__audio-off {
    display: none;
}

.evolution__audio-toggle svg {
    width: 22px;
    height: 22px;
}

.evolution__audio-toggle:hover {
    color: rgba(var(--audio-c1), 0.9);
    background: linear-gradient(135deg, rgba(var(--audio-c1), 0.18), rgba(var(--audio-c2), 0.10));
    border-color: rgba(var(--audio-c1), 0.35);
    box-shadow: 0 0 20px rgba(var(--audio-c1), 0.15);
}

.evolution__audio-toggle[data-active="true"] {
    color: rgb(var(--audio-c1));
    border-color: rgba(var(--audio-c1), 0.40);
    background: linear-gradient(135deg, rgba(var(--audio-c1), 0.20), rgba(var(--audio-c2), 0.12));
    box-shadow: 0 0 24px rgba(var(--audio-c1), 0.25), 0 0 60px rgba(var(--audio-c2), 0.10);
}

.evolution__audio-toggle[data-active="true"] .evolution__audio-on path {
    animation: audio-bar-bounce 0.6s var(--ease-in-out) infinite alternate;
}

.evolution__audio-toggle[data-active="true"] .evolution__audio-on path:nth-child(2) {
    animation-delay: 0.1s;
}

.evolution__audio-toggle[data-active="true"] .evolution__audio-on path:nth-child(3) {
    animation-delay: 0.2s;
}

.evolution__audio-toggle[data-active="true"] .evolution__audio-on path:nth-child(4) {
    animation-delay: 0.3s;
}

.evolution__audio-toggle[data-active="true"] .evolution__audio-on path:nth-child(5) {
    animation-delay: 0.15s;
}

/* ── CSS fallback (no Three.js) ──────────────────────── */
.evolution--css-fallback .evolution__canvas {
    display: none;
}

.evolution--css-fallback .evolution__atmosphere {
    background:
        radial-gradient(ellipse at 30% 40%, rgba(30, 123, 255, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 60%, rgba(34, 211, 238, 0.08) 0%, transparent 60%);
    animation: evolution-breathe 8s var(--ease-in-out) infinite;
}

/* ── Reduced motion ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .evolution__canvas {
        display: none;
    }

    .evolution__atmosphere {
        animation: none;
    }

    .evolution__stage {
        min-height: auto;
        padding: var(--space-16) var(--space-6);
    }

    .evolution__era,
    .evolution__title,
    .evolution__phrase,
    .evolution__intro-overline,
    .evolution__intro-title,
    .evolution__intro-sub,
    .evolution__outro-overline,
    .evolution__outro-title,
    .evolution__outro-message,
    .evolution__outro-cta {
        opacity: 1;
        transform: none;
    }

    .evolution__progress {
        display: none;
    }
}


/* ═══════════════════════════════════════════════════════
   RESPONSIVE — Mobile-first breakpoints
   ═══════════════════════════════════════════════════════ */

/* ── Tablet (640px+) ──────────────────────────────────── */
@media (min-width: 640px) {
    .hero-mini__title {
        font-size: var(--text-4xl);
    }

    .about-manifesto__number {
        font-size: clamp(4rem, 8vw, 6rem);
    }

    .about-manifesto__title {
        font-size: var(--text-2xl);
    }

    .evolution__phrase {
        font-size: var(--text-lg);
    }

    .evolution__intro-title,
    .evolution__outro-title {
        font-size: var(--text-4xl);
    }

    .evolution__intro-overline,
    .evolution__outro-overline {
        font-size: var(--text-lg);
    }

    .evolution__intro-sub,
    .evolution__outro-message {
        font-size: var(--text-xl);
    }
}

/* ── Desktop (1024px+) ────────────────────────────────── */
@media (min-width: 1024px) {
    .about-storyline__line {
        display: block;
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 1400px;
        height: 100%;
        z-index: 2;
        pointer-events: none;
        opacity: 0;
    }

    .about-storyline .section {
        z-index: 1;
    }

    .about-storyline .section .container {
        position: relative;
        z-index: 3;
    }

    .hero-mini {
        padding-top: calc(var(--nav-height, 72px) + var(--space-12));
        padding-bottom: var(--space-16);
    }

    .about-vision__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-12);
    }

    .about-vision__text {
        text-align: left;
    }

    .about-vision__text .section__title {
        font-size: var(--text-3xl);
    }

    .about-vision__actions {
        text-align: left;
    }

    .about-manifesto__statements {
        gap: var(--space-10);
    }

    .about-manifesto__statement {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-10);
    }

    /* 2nd statement (child 3 counting hr dividers) — number flips to right */
    .about-manifesto__statements > :nth-child(3) .about-manifesto__number-wrap {
        order: 2;
    }

    .about-manifesto__number {
        font-size: clamp(5rem, 10vw, 9rem);
    }

    .about-manifesto__body {
        text-align: left;
    }

    .about-manifesto__title {
        font-size: var(--text-3xl);
    }


    .about-manifesto__text {
        font-size: var(--text-lg);
        margin-inline: 0;
        max-width: none;
    }

    .about-manifesto__reveal {
        font-size: var(--text-3xl);
        margin-top: var(--space-16);
    }

    .about-manifesto__divider {
        margin-block: var(--space-4);
    }

    /* ── Evolution — Desktop horizontal scroll ──────────── */
    .evolution {
        overflow: visible;
    }

    .evolution__canvas,
    .evolution__atmosphere,
    .evolution__vignette {
        position: absolute;
    }

    .evolution__pin {
        height: 100vh;
        overflow: hidden;
    }

    .evolution__track {
        flex-direction: row;
        width: calc(8 * 100vw);
        height: 100vh;
    }

    .evolution__stage {
        min-width: 100vw;
        min-height: 100vh;
        padding: 0;
    }

    .evolution__era {
        font-size: var(--text-lg);
        padding: var(--space-2) var(--space-5);
    }

    .evolution__title {
        font-size: var(--text-hero);
    }

    .evolution__desc {
        font-size: var(--text-lg);
        max-width: 540px;
        margin-top: var(--space-5);
    }

    .evolution__intro-title,
    .evolution__outro-title {
        font-size: var(--text-hero);
    }

    .evolution__intro-overline,
    .evolution__outro-overline {
        font-size: var(--text-xl);
    }

    .evolution__intro-sub,
    .evolution__outro-message {
        font-size: var(--text-xl);
        max-width: 640px;
    }

    /* ── Phrases — positioned by JS per-stage, top and bottom zones ── */
    .evolution__phrase {
        position: absolute;
        font-size: var(--text-lg);
        max-width: 360px;
        text-align: left;
        will-change: transform, opacity, filter;
    }

    .evolution__desc {
        will-change: transform, opacity, filter;
    }

    .evolution__era,
    .evolution__title {
        will-change: transform, opacity, filter, clip-path;
    }

    /* ── Progress — year labels ── */
    .evolution__progress {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: var(--space-3);
        position: fixed;
        bottom: var(--space-8);
        left: 0;
        right: 0;
        margin-inline: auto;
        width: fit-content;
        z-index: 10;
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--duration-normal) var(--ease-smooth);
    }

    .evolution__progress.is-visible {
        opacity: 1;
        pointer-events: auto;
    }

    .evolution__progress-bar {
        width: 320px;
        height: 3px;
        background: rgba(255, 255, 255, 0.10);
        border-radius: var(--radius-full);
        overflow: hidden;
        position: relative;
    }

    .evolution__progress-bar::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: var(--progress, 0%);
        background: linear-gradient(90deg, var(--bar-from, var(--color-primary)), var(--bar-to, var(--color-secondary)));
        border-radius: var(--radius-full);
        transition: width 100ms linear, background var(--duration-slow) var(--ease-smooth);
    }

    .evolution__progress-years {
        display: flex;
        gap: var(--space-6);
        align-items: center;
    }

    .evolution__year {
        font-size: var(--text-sm);
        font-weight: var(--fw-semibold);
        letter-spacing: var(--tracking-wide);
        color: rgba(255, 255, 255, 0.30);
        border: none;
        background: none;
        padding: var(--space-1) 0;
        cursor: pointer;
        transition: color var(--duration-normal) var(--ease-smooth),
                    transform var(--duration-fast) var(--ease-spring),
                    text-shadow var(--duration-normal) var(--ease-smooth);
    }

    .evolution__year:hover {
        color: rgba(255, 255, 255, 0.60);
    }

    .evolution__year.is-active {
        transform: scale(1.18);
    }

    .evolution__audio-toggle {
        position: fixed;
        bottom: var(--space-8);
        right: var(--space-8);
        width: 56px;
        height: 56px;
    }

    .evolution__audio-toggle svg {
        width: 24px;
        height: 24px;
    }
}


/* ── La nueva era — Dynbel (antes SecurApp) + casa matriz PRL ──────────── */
.rebrand-era .section__header {
    text-align: center;
    max-width: 640px;
    margin-inline: auto;
}

.rebrand-era__list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(2.5rem, 6vw, 4rem);
    margin-top: clamp(2.5rem, 6vw, 4rem);
    max-width: 620px;
    margin-inline: auto;
}

.rebrand-evo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    text-align: center;
}

.rebrand-evo__eyebrow {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand-a);
    background: color-mix(in srgb, var(--brand-a) 10%, var(--glass-bg));
    backdrop-filter: var(--glass-backdrop-soft);
    -webkit-backdrop-filter: var(--glass-backdrop-soft);
    box-shadow:
        var(--glass-shadow),
        0 8px 24px -10px color-mix(in srgb, var(--brand-a) 35%, transparent);
}

.rebrand-evo__eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
    box-shadow: 0 0 8px color-mix(in srgb, var(--brand-a) 60%, transparent);
}

/* Transición visual SecurApp → Dynbel (antes apagado, ahora vivo) */
.rebrand-evo__morph {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1rem, 4vw, 2.25rem);
    margin: 0.25rem 0 0.5rem;
}

.rebrand-evo__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    margin: 0;
}

.rebrand-evo__step img {
    height: clamp(54px, 9.5vw, 82px);
    width: auto;
    display: block;
}

.rebrand-evo__step--from img {
    filter: grayscale(0.55) opacity(0.5);
}

.rebrand-evo__step--to img {
    filter: drop-shadow(0 10px 30px color-mix(in srgb, var(--brand-a) 38%, transparent));
}

.rebrand-evo__step figcaption {
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.rebrand-evo__step--from figcaption { color: var(--text-tertiary); }
.rebrand-evo__step--to figcaption { color: var(--brand-a); }

.rebrand-evo__arrow {
    display: inline-flex;
    color: var(--brand-a);
    filter: drop-shadow(0 0 10px color-mix(in srgb, var(--brand-a) 55%, transparent));
    animation: rebrandArrow 1.8s var(--ease-in-out) infinite;
}

.rebrand-evo__name {
    margin: 0;
    font-size: var(--text-4xl);
    font-weight: 800;
    line-height: 1.15;
    padding-bottom: 0.1em;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.rebrand-evo__tagline {
    margin: 0;
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text-primary);
}

.rebrand-evo__desc {
    margin: 0;
    max-width: 460px;
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Casa matriz — referencia a PRL (sin tarjeta de Glymdo, sin divisores) */
.rebrand-era__matrix {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-5);
    text-align: center;
}

.rebrand-era__matrix-note {
    margin: 0;
    max-width: 480px;
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-tertiary);
}
