/* ============================================================================
   Vaucai — the close of the home (2026-10-08): «Explicarlo es difícil.
   Probarlo es gratis.» and «Crear mi Vaucai», the last screen of the scene.
   The sentence at the poster size of the others; the button is the one of
   «Crea tu propia IA» (the blue pill with its ring of light), but this one
   is pressed by the visitor: it rises and is swept by light under the
   pointer. The scroll is in hero-scroll.js. Without JS everything is visible
   and usable.
   ============================================================================ */

/* The close is the scene's last screen (hero-scroll.js): it lights in the
   same centre as every sentence before it. Without the scroll scene it sits
   in flow under the others, readable. The type is the close's own: Inter,
   «gratis» in the brand's serif italic, one sentence per line. */
.hero-close { text-align: center; }
.hero-close h2 {
    font-family: 'Inter', 'Inter Fallback', 'Inter Fallback Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-weight: 800;
    font-size: clamp(2.25rem, 8.6vw, 2.75rem);
    line-height: 1.06;
    letter-spacing: -0.035em;
    color: var(--text);
    margin: 0 auto clamp(2.5rem, 6vh, 4rem);
}
@media (min-width: 769px) {
    .hero-close h2 { font-size: clamp(3rem, 5.2vw, 5rem); line-height: 1.04; }
}
/* The cut goes by the full stop: each sentence on its own line. */
.hero-close h2 .cta-linea { display: block; height: 0; }
.hero-close h2 .is-brand {
    font-family: 'Instrument Serif', 'Instrument Serif Fallback', 'Instrument Serif Fallback Noto', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    color: var(--vaucai-blue);
}
.hero-pin.is-scroll .hero-close {
    grid-area: 1 / 1;
    width: 100%;
    padding: 0 24px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: auto;
}

/* ----- The button. */
.hero-close .cr-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 380px;
    max-width: calc(100vw - 48px);
    height: 72px;
    padding: 0;
    border-radius: 999px;
    background: none;
    color: #fff;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    isolation: isolate;
}
@media (max-width: 768px) {
    .hero-close .cr-cta { width: 320px; height: 62px; }
}
/* The light under it, breathing. */
.cr-cta .cta-bloom {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 640px;
    height: 640px;
    margin: -320px 0 0 -320px;
    border-radius: 50%;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--vaucai-blue) 30%, transparent) 0%, color-mix(in srgb, var(--vaucai-blue) 9%, transparent) 48%, transparent 100%);
    z-index: -1;
    pointer-events: none;
    animation: cta-breathe 3.6s ease-in-out infinite;
}
/* --cta-on (0..1, from hero-scroll.js) lets the scroll bring the light in
   while the breathing keeps running. */
@keyframes cta-breathe {
    0%, 100% { transform: scale(0.92); opacity: calc(var(--cta-on, 1) * 0.75); }
    50%      { transform: scale(1.06); opacity: var(--cta-on, 1); }
}
/* Its body: the brand blue, lit from above, with a lit top edge. */
.cr-cta .cta-fill {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    overflow: hidden;
    background: linear-gradient(180deg, color-mix(in srgb, var(--vaucai-blue) 72%, #fff) 0%, var(--vaucai-blue) 52%, color-mix(in srgb, var(--vaucai-blue) 82%, #000) 100%);
    box-shadow:
        inset 0 1.5px 0 rgba(255, 255, 255, 0.5),
        inset 0 -3px 8px rgba(0, 0, 0, 0.18),
        0 22px 60px color-mix(in srgb, var(--vaucai-blue) 45%, transparent),
        0 4px 12px rgba(0, 0, 0, 0.45);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease, filter 0.2s ease;
}
/* The band of light that sweeps it under the pointer. */
.cr-cta .cta-shine {
    position: absolute;
    top: -30%;
    bottom: -30%;
    left: -40%;
    width: 34%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.45) 50%, transparent 100%);
    transform: translateX(0) skewX(-20deg);
    opacity: 0;
}
/* The ring of light that turns around it. */
@property --cta-turn {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}
.cr-cta .cta-ring {
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    padding: 2px;
    background: conic-gradient(from var(--cta-turn), transparent 0deg, color-mix(in srgb, var(--vaucai-blue) 60%, transparent) 70deg, #fff 110deg, var(--vaucai-blue) 150deg, transparent 230deg, transparent 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    filter: drop-shadow(0 0 6px color-mix(in srgb, var(--vaucai-blue) 80%, transparent));
    animation: cta-turn 2.6s linear infinite;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes cta-turn { to { --cta-turn: 360deg; } }
.cr-cta .cta-label {
    position: relative;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.01em;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@media (max-width: 768px) {
    .cr-cta .cta-label { font-size: 19px; }
}

/* Under the pointer: it rises, glows and a light sweeps it. Pressed: it sinks. */
@media (hover: hover) {
    .cr-cta:hover .cta-fill,
    .cr-cta:hover .cta-ring,
    .cr-cta:hover .cta-label { transform: translateY(-3px); }
    .cr-cta:hover .cta-fill {
        box-shadow:
            inset 0 1.5px 0 rgba(255, 255, 255, 0.55),
            inset 0 -3px 8px rgba(0, 0, 0, 0.18),
            0 28px 70px color-mix(in srgb, var(--vaucai-blue) 60%, transparent),
            0 6px 14px rgba(0, 0, 0, 0.45);
    }
    .cr-cta:hover .cta-shine {
        opacity: 1;
        transform: translateX(470%) skewX(-20deg);
        transition: transform 0.7s cubic-bezier(0.45, 0, 0.55, 1), opacity 0.1s linear;
    }
}
.cr-cta:active .cta-fill,
.cr-cta:active .cta-ring,
.cr-cta:active .cta-label { transform: translateY(0) scale(0.97); transition-duration: 0.08s; }
.cr-cta:active .cta-fill { filter: brightness(1.12); }
.cr-cta:focus-visible { outline: none; }
.cr-cta:focus-visible .cta-ring { inset: -6px; padding: 3px; }
