/* ==========================================================================
   Página de Despegue — silviarodriguez.com/contacto
   Mundo: "cielo y oro" — fondo blanco perlado, franjas de color vivo con borde
   ondulado y hilos dorados (como las cintas de una partitura), tarjetas de
   cristal y teclas táctiles 3D. Paleta tomada de la foto de la cliente
   (azul zafiro, verde azulado, madera de la guitarra) + oro.
   Tipografía: Jost (titulares, hermana geométrica del logo) + Atkinson
   Hyperlegible Next (texto, diseñada para baja visión).
   ========================================================================== */

@font-face {
    font-family: "Jost";
    src: url("/fonts/despegue/jost-latin-wght-normal.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Atkinson Hyperlegible Next";
    src: url("/fonts/despegue/atkinson-hyperlegible-next-latin-wght-normal.woff2") format("woff2");
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Atkinson Hyperlegible Next";
    src: url("/fonts/despegue/atkinson-hyperlegible-next-latin-wght-italic.woff2") format("woff2");
    font-weight: 200 800;
    font-style: italic;
    font-display: swap;
}

:root {
    --ink: #0F1B33;          /* tinta azulada (16:1 sobre blanco) */
    --ink-soft: #3A4763;     /* texto secundario (9:1) */
    --paper: #FFFFFF;
    --pearl: #F3F7FF;
    --line: #DCE4F2;

    --navy-950: #061233;
    --navy-900: #0A1F5C;
    --sapphire: #1A4DBA;
    --royal:    #2D6FE6;

    --azure-a: #0C84AE;  --azure-b: #065783;     /* Demos     · texto blanco ≥4.6:1 */
    --gold-a:  #FFD16E;  --gold-b:  #EFA21A;     /* Contacto  · texto tinta ≥8:1    */
    --violet-a:#4B38B8;  --violet-b:#2A1B7C;     /* Streaming · texto blanco ≥8:1   */

    --gold-1: #FBE7A6;  --gold-2: #E3B04B;  --gold-3: #B98320;   /* hilo dorado */

    --display: "Jost", "Century Gothic", "Avenir Next", "Segoe UI", system-ui, sans-serif;
    --text: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --wave: 34px;                                  /* alto del borde ondulado */
    --ease-out: cubic-bezier(.22, 1, .36, 1);

    /* Borde ondulado (relleno por encima de la curva) y su hilo dorado doble */
    --wave-bottom: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 48' preserveAspectRatio='none'%3E%3Cpath d='M0 0V20C200 0 400 0 600 20S1000 40 1200 20V0Z'/%3E%3C/svg%3E");
    --wave-top: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 48' preserveAspectRatio='none'%3E%3Cpath d='M0 48V28C200 48 400 48 600 28S1000 8 1200 28V48Z'/%3E%3C/svg%3E");
    --gold-bottom: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 48' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g'%3E%3Cstop offset='0' stop-color='%23B98320'/%3E%3Cstop offset='.3' stop-color='%23FBE7A6'/%3E%3Cstop offset='.55' stop-color='%23E3B04B'/%3E%3Cstop offset='.8' stop-color='%23FBE7A6'/%3E%3Cstop offset='1' stop-color='%23B98320'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 27C200 7 400 7 600 27S1000 47 1200 27' fill='none' stroke='url(%23g)' stroke-opacity='.55' stroke-width='1.5' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M0 20C200 0 400 0 600 20S1000 40 1200 20' fill='none' stroke='url(%23g)' stroke-width='3.5' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
    --gold-top: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 48' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g'%3E%3Cstop offset='0' stop-color='%23B98320'/%3E%3Cstop offset='.3' stop-color='%23FBE7A6'/%3E%3Cstop offset='.55' stop-color='%23E3B04B'/%3E%3Cstop offset='.8' stop-color='%23FBE7A6'/%3E%3Cstop offset='1' stop-color='%23B98320'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 21C200 41 400 41 600 21S1000 1 1200 21' fill='none' stroke='url(%23g)' stroke-opacity='.55' stroke-width='1.5' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M0 28C200 48 400 48 600 28S1000 8 1200 28' fill='none' stroke='url(%23g)' stroke-width='3.5' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    color-scheme: light;
    scrollbar-color: var(--sapphire) #EEF2F8;
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; scroll-padding-top: 12px; } }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--text);
    font-size: 1.125rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

::selection { background: var(--gold-a); color: var(--ink); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.sr-only {
    position: absolute !important;
    width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip {
    position: absolute; left: 12px; top: -64px; z-index: 100;
    background: var(--ink); color: #fff;
    padding: 12px 18px; border-radius: 10px;
    font-family: var(--display); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Encabezado: logo de la cliente + navegación ---------- */
.top {
    position: relative; z-index: 5;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}
.top__in {
    display: flex; align-items: center; justify-content: center;
    max-width: 78rem; margin: 0 auto;
    padding: 16px 20px;
}
.top__logo { display: block; line-height: 0; border-radius: 8px; padding: 6px 0; }
.top__logo img { width: min(250px, 64vw); height: auto; }
.top__nav { display: none; }

@media (min-width: 900px) {
    .top__in { justify-content: space-between; padding: 14px 32px; }
    .top__logo img { width: 270px; }
    .top__nav { display: flex; align-items: center; gap: 4px; }
    .top__nav a {
        position: relative;
        padding: 12px 14px; min-height: 44px;
        font-family: var(--display); font-weight: 600; font-size: 1.02rem;
        color: var(--ink); text-decoration: none;
        border-radius: 10px;
        transition: color .2s;
    }
    .top__nav a::after {
        content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 3px; border-radius: 2px;
        background: linear-gradient(90deg, var(--gold-3), var(--gold-1), var(--gold-3));
        transform: scaleX(0); transition: transform .3s var(--ease-out);
    }
    .top__nav a:hover { color: var(--sapphire); }
    .top__nav a:hover::after { transform: scaleX(1); }
    .top__nav .top__site {
        margin-left: 10px; padding: 12px 20px;
        color: #fff; background: linear-gradient(180deg, var(--royal), var(--sapphire));
        box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 8px 16px -8px rgba(26,77,186,.8);
        border-radius: 999px;
    }
    .top__nav .top__site::after { display: none; }
    .top__nav .top__site:hover { color: #fff; filter: brightness(1.08); }
}

/* ---------- Ornamento (notas + hilos dorados) ---------- */
.orn { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 10px; }
.orn i { display: block; width: clamp(34px, 12vw, 84px); height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-2)); }
.orn i:last-child { background: linear-gradient(270deg, transparent, var(--gold-2)); }
.orn .glyph { width: 26px; height: 26px; fill: var(--gold-1); filter: none; }

/* ---------- Secciones y franjas con borde ondulado ---------- */
.sec { position: relative; margin: 0; }
.sec--demos, .sec--streaming {
    background:
        radial-gradient(62% 34% at 92% 4%, rgba(45,111,230,.10), transparent 70%),
        radial-gradient(52% 30% at 4% 96%, rgba(239,162,26,.12), transparent 70%),
        var(--paper);
}
.sec--contacto {
    background:
        radial-gradient(60% 30% at 6% 8%, rgba(239,162,26,.12), transparent 70%),
        radial-gradient(60% 36% at 96% 70%, rgba(45,111,230,.10), transparent 70%),
        var(--paper);
}

.band, .sec--mision {
    --a: var(--sapphire); --b: var(--navy-900); --fg: #fff; --orn: var(--gold-1);
    position: relative; isolation: isolate;
    color: var(--fg);
}
.band {
    padding: clamp(30px, 5.4vw, 52px) 18px calc(var(--wave) + 22px);
    text-align: center;
}
/* fondo de color (recortado en onda) */
.band::before {
    content: ""; position: absolute; z-index: -2; left: 0; right: 0; top: 0; bottom: 0;
    background:
        radial-gradient(circle at 8% 24%,  rgba(255,255,255,.20) 0 48px,  transparent 49px),
        radial-gradient(circle at 15% 70%, rgba(255,255,255,.12) 0 22px,  transparent 23px),
        radial-gradient(circle at 90% 56%, rgba(255,255,255,.14) 0 92px,  transparent 93px),
        radial-gradient(circle at 76% 14%, rgba(255,255,255,.12) 0 30px,  transparent 31px),
        radial-gradient(120% 140% at 85% -20%, rgba(255,255,255,.22), transparent 55%),
        linear-gradient(100deg, var(--a), var(--b));
    -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--wave)) no-repeat, var(--wave-bottom) bottom / 100% calc(var(--wave) + 14px) no-repeat;
            mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--wave)) no-repeat, var(--wave-bottom) bottom / 100% calc(var(--wave) + 14px) no-repeat;
}
/* hilo dorado doble sobre la onda */
.band::after, .sec--mision::after, .foot::before {
    content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0;
    height: calc(var(--wave) + 14px);
    background: var(--gold-bottom) bottom / 100% 100% no-repeat;
    pointer-events: none;
}
.band::before, .band::after { content: ""; }

.band > span:last-child {
    display: block;
    max-width: 20ch; margin-inline: auto;
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(2.15rem, 8.2vw, 3.9rem);
    line-height: 1.04;
    letter-spacing: -.018em;
    text-wrap: balance;
    text-shadow: 0 2px 24px rgba(5,18,60,.28);
}
@media (min-width: 700px) { .band > span:last-child { max-width: none; } }
.band .orn .glyph { fill: var(--orn); }

.sec--demos     .band { --a: var(--azure-a);  --b: var(--azure-b); }
.sec--streaming .band { --a: var(--violet-a); --b: var(--violet-b); }
.sec--contacto  .band { --a: var(--gold-a);   --b: var(--gold-b); --fg: var(--ink); --orn: var(--navy-900); }
.sec--contacto  .band > span:last-child { text-shadow: 0 1px 0 rgba(255,255,255,.35); }
.sec--contacto  .band .orn i { background: linear-gradient(90deg, transparent, var(--navy-900)); }
.sec--contacto  .band .orn i:last-child { background: linear-gradient(270deg, transparent, var(--navy-900)); }

.wrap { max-width: 56rem; margin: 0 auto; padding: 22px 20px 64px; }
.wrap--wide { max-width: 74rem; }

/* ---------- 1) Misión - Visión (portada con foto) ---------- */
.sec--mision {
    --hero-h: min(96vw, 430px);
    background: var(--navy-900);
    padding: calc(var(--hero-h) - 70px) 18px calc(var(--wave) + 40px);
    background: transparent;
}
.hb__bg {
    position: absolute; z-index: -2; left: 0; right: 0; top: 0; bottom: 0; overflow: hidden;
    background: linear-gradient(180deg, var(--navy-900) 0, var(--navy-900) var(--hero-h), var(--navy-950) 100%);
    -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--wave)) no-repeat, var(--wave-bottom) bottom / 100% calc(var(--wave) + 14px) no-repeat;
            mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--wave)) no-repeat, var(--wave-bottom) bottom / 100% calc(var(--wave) + 14px) no-repeat;
}
.hb__bg picture, .hb__bg img { position: absolute; left: 0; top: 0; width: 100%; height: var(--hero-h); }
.hb__bg img { object-fit: cover; object-position: 92% 8%; }
/* tinte zafiro sobre el fondo negro de la foto + fundido hacia el azul marino */
.hb__bg::before {
    content: ""; position: absolute; left: 0; top: 0; width: 100%; height: var(--hero-h);
    background:
        radial-gradient(60% 50% at 78% 28%, rgba(120,170,255,.30), transparent 70%),
        linear-gradient(160deg, #0B2A8A 0%, #1A4DBA 55%, #2D6FE6 100%);
    mix-blend-mode: lighten;
}
.hb__bg::after {
    content: ""; position: absolute; left: 0; top: 0; width: 100%; height: var(--hero-h);
    background: linear-gradient(180deg, rgba(10,31,92,0) 48%, var(--navy-900) 100%);
}
/* bokeh de luz */
.hb__in::before {
    content: ""; position: absolute; z-index: -1; left: -18px; right: -18px; top: 0; bottom: 0;
    background:
        radial-gradient(circle at 12% 38%, rgba(255,255,255,.10) 0 38px, transparent 39px),
        radial-gradient(circle at 24% 80%, rgba(255,255,255,.07) 0 22px, transparent 23px);
    pointer-events: none;
}
.hb__in { position: relative; max-width: 40rem; margin: 0 auto; text-align: center; }
.hb__title {
    font-family: var(--display); font-weight: 800;
    font-size: clamp(2.3rem, 9.2vw, 4.2rem);
    line-height: 1.02; letter-spacing: -.02em; color: #fff;
    text-shadow: 0 3px 28px rgba(3,10,40,.55);
    margin-bottom: 20px;
}
.hb__title .orn .glyph { fill: var(--gold-1); }

.card {
    position: relative; text-align: center;
    padding: clamp(22px, 5vw, 34px);
    border-radius: 26px;
    background: rgba(255,255,255,.965);
    border: 1px solid rgba(255,255,255,.9);
    box-shadow:
        0 1px 0 rgba(255,255,255,.9) inset,
        0 2px 4px rgba(3,10,40,.18),
        0 24px 48px -16px rgba(3,10,40,.6);
}
.card::before {                                  /* filete dorado superior */
    content: ""; position: absolute; left: 26px; right: 26px; top: 0; height: 3px; border-radius: 0 0 4px 4px;
    background: linear-gradient(90deg, var(--gold-3), var(--gold-1), var(--gold-2), var(--gold-1), var(--gold-3));
}
.mision {
    font-size: clamp(1.14rem, 1.02rem + .55vw, 1.34rem);
    line-height: 1.72;
    color: var(--ink);
    text-wrap: pretty;
    hyphens: none;
}

@media (min-width: 900px) {
    .sec--mision {
        --hero-h: 100%;
        padding: clamp(56px, 7vw, 92px) 32px calc(var(--wave) + 64px);
        min-height: 640px;
    }
    .hb__bg picture { left: auto; right: 0; width: 70%; height: 100%; }
    .hb__bg img { left: 0; width: 100%; height: 100%; }
    .hb__bg img { object-position: 78% 12%; }
    .hb__bg picture, .hb__bg::before {
        -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 38%);
                mask-image: linear-gradient(90deg, transparent 0, #000 38%);
    }
    .hb__bg::before { left: auto; right: 0; width: 70%; height: 100%; }
    .hb__bg::after {
        width: 100%; height: 100%;
        background: linear-gradient(90deg, rgba(10,31,92,.9) 0%, rgba(10,31,92,.75) 34%, rgba(10,31,92,.25) 52%, rgba(10,31,92,0) 70%);
    }
    .hb__in::before { left: -32px; right: 45%; }
    .hb__in { max-width: 78rem; text-align: left; }
    .hb__in > * { max-width: 36rem; }
    .hb__title { font-size: clamp(3rem, 4.8vw, 4.6rem); }
    .hb__title .orn { justify-content: flex-start; }
    .hb__title .orn i:first-child { display: none; }
    .card { padding: 34px 38px; }
}

/* ---------- 2) Videos: 2 filas × 3 columnas ---------- */
.videos { display: grid; grid-template-columns: 1fr; gap: 40px 28px; }
@media (min-width: 760px) { .videos { grid-template-columns: repeat(3, 1fr); } }

.video__title {
    margin-bottom: 14px;
    text-align: center;
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(1.28rem, 1.12rem + .5vw, 1.5rem);
    line-height: 1.2;
    letter-spacing: -.005em;
    color: var(--navy-900);
    text-wrap: balance;
}
.video__title::after {                           /* hilo dorado bajo el título */
    content: ""; display: block; width: 46px; height: 3px; margin: 9px auto 0; border-radius: 3px;
    background: linear-gradient(90deg, var(--gold-3), var(--gold-1), var(--gold-3));
}

.video__frame {
    position: relative;
    height: 0; padding-bottom: 56.25%;         /* 16:9, compatible con iOS antiguos */
    border-radius: 20px;
    overflow: hidden;
    background: #0a1428;
    box-shadow:
        0 0 0 1px rgba(10,31,92,.10),
        0 2px 4px rgba(10,31,92,.10),
        0 14px 22px -10px rgba(10,31,92,.38),
        0 30px 40px -24px rgba(12,132,174,.55);
}
.video__frame iframe,
.video__play { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

.video__play {
    padding: 0; margin: 0; cursor: pointer; display: block;
    background: #0a1428;
}
.video__play::after {                         /* velo para que el botón siempre se lea */
    content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(6,18,51,0) 36%, rgba(6,18,51,.5) 100%);
}
.video__play img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .6s var(--ease-out);
}
.video__icon {
    position: absolute; z-index: 1; left: 50%; top: 50%;
    display: grid; place-items: center;
    width: 66px; height: 66px;
    margin: -33px 0 0 -33px;
    border-radius: 50%;
    background: linear-gradient(180deg, #fff, #E8EFFC);
    color: var(--sapphire);
    box-shadow:
        0 0 0 6px rgba(255,255,255,.28),
        0 0 0 7px rgba(251,231,166,.7),
        0 12px 24px -6px rgba(0,0,0,.55);
    transition: transform .3s var(--ease-out);
}
.video__icon svg { width: 28px; height: 28px; margin-left: 3px; fill: currentColor; }
.video__play:hover img { transform: scale(1.05); }
.video__play:hover .video__icon { transform: scale(1.1); }
.video__play:active .video__icon { transform: scale(.96); }
.video__play:focus-visible { outline-offset: -5px; outline-color: #fff; border-radius: 20px; }
.video__fallback { position: absolute; z-index: 2; left: 10px; right: 10px; bottom: 10px; color: #fff; }

/* ---------- 3) Foto + "Búscanos como" + teclas ---------- */
.sec--contacto .wrap { padding-top: 14px; }

.hero { margin: 0 -20px; position: relative; }                 /* a sangre en móvil */
.hero img { width: 100%; }
@media (min-width: 720px) {
    .hero { margin: 0 auto; max-width: 56rem; padding: 6px; border-radius: 34px;
        background: linear-gradient(135deg, var(--gold-1), var(--gold-3) 45%, var(--gold-1)); }
    .hero img {
        border-radius: 29px;
        box-shadow: 0 0 0 3px #fff inset;
    }
}

.findus { margin: 28px auto 8px; text-align: center; }
.findus__arrow { display: block; width: 50px; height: 50px; margin: 0 auto 8px; fill: var(--gold-b); filter: drop-shadow(0 7px 7px rgba(239,162,26,.5)); }
.findus__lead {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.9rem);
    line-height: 1.2;
    color: var(--ink-soft);
}
.findus__handle {
    margin-top: 4px;
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(1.5rem, 6.1vw, 3.1rem);
    line-height: 1.12;
    letter-spacing: -.012em;
    color: var(--navy-900);
    overflow-wrap: anywhere;
    text-decoration: underline;
    text-decoration-color: var(--gold-b);
    text-decoration-thickness: .13em;
    text-underline-offset: .16em;
    text-decoration-skip-ink: none;
}

/* Panel azul marino con las 8 teclas en una fila */
.connect {
    position: relative; isolation: isolate; overflow: hidden;
    margin: 30px auto 0; max-width: 72rem;
    padding: 36px 14px 40px;
    border-radius: 30px;
    color: #fff;
    background:
        radial-gradient(circle at 6% 20%,  rgba(255,255,255,.10) 0 40px, transparent 41px),
        radial-gradient(circle at 94% 80%, rgba(255,255,255,.08) 0 80px, transparent 81px),
        radial-gradient(90% 120% at 100% 0, rgba(45,111,230,.55), transparent 60%),
        linear-gradient(160deg, #0F3AA0, var(--navy-900) 60%, var(--navy-950));
    box-shadow:
        0 0 0 1px rgba(251,231,166,.55) inset,
        0 2px 4px rgba(6,18,51,.2),
        0 30px 50px -24px rgba(10,31,92,.75);
}
.connect::after {                               /* hilos dorados de partitura */
    content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 64px;
    background: var(--gold-bottom) bottom / 100% 100% no-repeat; opacity: .75;
    transform: translateY(26px);
    pointer-events: none;
}

/* ---------- Teclas 3D (iconos-botón) ---------- */
.keys {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 28px 18px;
}
.keys > li { margin: 0; }

.key {
    --a: #666; --b: #222; --glow: rgba(20,32,46,.4); --glyph: #fff; --knock: #222;
    --size: 88px;
    display: flex; flex-direction: column; align-items: center;
    width: calc(var(--size) + 28px);
    text-decoration: none; color: var(--ink);
    -webkit-tap-highlight-color: transparent;
}
.key--big { --size: 108px; }
.connect .key { color: #fff; }

.key__tile {
    position: relative;
    display: grid; place-items: center;
    width: var(--size); height: var(--size);
    border-radius: 29%;
    color: var(--glyph);
    background:
        radial-gradient(120% 78% at 50% -8%, rgba(255,255,255,.50) 0%, rgba(255,255,255,0) 58%),
        linear-gradient(165deg, var(--a) 0%, var(--b) 100%);
    box-shadow:
        inset 0 1.5px 0 rgba(255,255,255,.75),             /* luz de borde superior */
        inset 0 -3px 5px rgba(0,0,0,.16),
        inset 0 -16px 20px -12px rgba(0,0,0,.34),          /* volumen: sombra inferior interna */
        0 1px 2px rgba(6,18,51,.35),                       /* contacto */
        0 10px 14px -6px var(--glow),
        0 24px 32px -14px var(--glow);                     /* sombra suave del color de la marca */
    transition: transform .28s var(--ease-out), box-shadow .28s var(--ease-out);
}
.key__tile::after {                                         /* borde de cristal */
    content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), 0 0 0 1px rgba(0,0,0,.06);
    pointer-events: none;
}
.glyph {
    width: 50%; height: 50%;
    fill: currentColor;
    filter: drop-shadow(0 2px 1.5px rgba(0,0,0,.28));
}

.key__label {
    margin-top: 14px;
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.02rem;
    line-height: 1.15;
    text-align: center;
    color: inherit;
}
.key--big .key__label { font-size: 1.15rem; color: var(--navy-900); }

.key:hover .key__tile { transform: translateY(-5px); }
.key:active .key__tile {
    transform: translateY(1px) scale(.965);
    box-shadow:
        inset 0 1.5px 0 rgba(255,255,255,.6),
        inset 0 -2px 4px rgba(0,0,0,.2),
        inset 0 -8px 12px -8px rgba(0,0,0,.34),
        0 1px 2px rgba(6,18,51,.35),
        0 4px 6px -3px var(--glow);
}
.key:focus-visible { outline: none; }
.key:focus-visible .key__tile { outline: 3px solid var(--ink); outline-offset: 5px; }
.connect .key:focus-visible .key__tile { outline-color: #fff; }

/* Colores (marca / identidad) */
.key--phone     { --a:#52D96F; --b:#1D9E43; --glow:rgba(29,200,87,.6); }
.key--mail      { --a:#FFC04A; --b:#EE7E0C; --glow:rgba(238,126,12,.6); --knock:#E8780A; }
.key--web       { --a:#2ED1D4; --b:#0A8A94; --glow:rgba(30,200,210,.55); }
.key--facebook  { --a:#4D9BFF; --b:#0A5AD6; --glow:rgba(40,120,255,.6); }
.key--whatsapp  { --a:#3EE68A; --b:#0E9A4C; --glow:rgba(30,210,110,.6); }
.key--instagram { --glow:rgba(225,60,160,.6); }
.key--instagram .key__tile {
    background:
        radial-gradient(120% 78% at 50% -8%, rgba(255,255,255,.45) 0%, rgba(255,255,255,0) 58%),
        radial-gradient(circle at 28% 108%, #FFD86B 0%, #FF9A3D 28%, #E8386D 58%, #B22DB0 80%, #5B4FE0 100%);
}
.key--youtube   { --a:#FF5B5B; --b:#D40000; --glow:rgba(255,40,40,.55); }
.key--tiktok    { --a:#3b3f45; --b:#06080b; --glow:rgba(110,225,235,.40); }
.key--applemusic{ --a:#FF6E8A; --b:#E40F34; --glow:rgba(228,15,52,.55); }
.key--spotify   { --a:#47E383; --b:#12A24A; --glow:rgba(18,162,74,.55); --glyph:#06210f; }
.key--spotify .glyph { filter: drop-shadow(0 1.5px 0 rgba(255,255,255,.35)); }
.key--youtubemusic { --a:#FF5E5E; --b:#C90000; --glow:rgba(201,0,0,.5); }

/* ---------- 4) Streaming + notas musicales ---------- */
.keys--stream { gap: 44px 40px; padding-top: 12px; }
.stream { position: relative; padding: 18px 22px 4px; }

.note {
    position: absolute; z-index: 0;
    width: 28px; height: 28px;
    fill: var(--gold-3);
    pointer-events: none;
}
.note.n1 { left: 0;   top: -2px;   width: 30px; height: 30px; transform: rotate(-14deg); fill: var(--violet-a); }
.note.n2 { right: 0;  top: 8px;    width: 24px; height: 24px; transform: rotate(12deg);  fill: var(--azure-a); }
.note.n3 { right: 6px; bottom: 56px; width: 26px; height: 26px; transform: rotate(10deg); fill: var(--gold-b); }
.stream .key { position: relative; z-index: 1; }

.js [data-notes] .note {
    opacity: 0;
    translate: 0 14px;
    scale: .5;
}
.js [data-notes].is-in .note {
    opacity: .95; translate: 0 0; scale: 1;
    transition: opacity .6s var(--ease-out) var(--d, 0ms),
                translate .8s var(--ease-out) var(--d, 0ms),
                scale .8s var(--ease-out) var(--d, 0ms);
}

/* ---------- Pie azul marino con borde ondulado ---------- */
.foot {
    position: relative; isolation: isolate;
    margin-top: -8px;
    padding: calc(var(--wave) + 34px) 20px 44px;
    text-align: center;
    color: #fff;
}
.foot::after {
    content: ""; position: absolute; z-index: -2; left: 0; right: 0; top: 0; bottom: 0;
    background:
        radial-gradient(circle at 10% 70%, rgba(255,255,255,.08) 0 60px, transparent 61px),
        radial-gradient(90% 100% at 90% 0, rgba(45,111,230,.45), transparent 60%),
        linear-gradient(180deg, #0F3AA0, var(--navy-900) 45%, var(--navy-950));
    -webkit-mask: linear-gradient(#000 0 0) bottom / 100% calc(100% - var(--wave)) no-repeat, var(--wave-top) top / 100% calc(var(--wave) + 14px) no-repeat;
            mask: linear-gradient(#000 0 0) bottom / 100% calc(100% - var(--wave)) no-repeat, var(--wave-top) top / 100% calc(var(--wave) + 14px) no-repeat;
}
.foot::before { top: 0; bottom: auto; background-image: var(--gold-top); background-position: top; }
.foot__in { max-width: 40rem; margin: 0 auto; }
.foot__logo { width: min(250px, 66vw); height: auto; margin: 0 auto 14px; }
.foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 26px; }
.foot a {
    font-family: var(--display); font-weight: 600; font-size: 1.05rem;
    color: #fff;
    text-underline-offset: .22em; text-decoration-thickness: .08em; text-decoration-color: var(--gold-2);
    padding: 10px 2px;
}
.foot a:hover { color: var(--gold-1); }
.foot a:focus-visible { outline-color: #fff; }
.foot__c { margin-top: 10px; font-size: .92rem; color: #C9D5F2; }

/* ---------- Escritorio ---------- */
@media (min-width: 900px) {
    :root { --wave: 46px; }
    .wrap { padding-top: 34px; }
    .sec--contacto .wrap { padding-top: 20px; }
    .connect { padding: 44px 30px 48px; }
    .connect .keys { flex-wrap: nowrap; gap: 0; justify-content: space-between; }
    .connect .key { --size: 92px; width: 120px; }
    .key--big { --size: 120px; }
    .key--big .key__label { font-size: 1.25rem; }
}

/* ---------- Móviles angostos: 4 teclas por fila ---------- */
@media (max-width: 440px) {
    :root { --wave: 28px; }
    .wrap { padding: 20px 14px 52px; }
    .hero { margin: 0 -14px; }
    .connect { margin-inline: -4px; padding: 30px 8px 36px; border-radius: 26px; }
    .keys { gap: 24px 4px; }
    .key { --size: 64px; width: 78px; }
    .key__label { font-size: .84rem; margin-top: 11px; }
    .keys--stream { flex-wrap: nowrap; gap: 8px 0; }
    .key--big { --size: 76px; width: 98px; }
    .key--big .key__label { font-size: .95rem; }
    .stream { padding: 20px 9px 2px; }
    .note.n1 { width: 24px; height: 24px; left: 2px; }
    .note.n2 { width: 20px; height: 20px; right: 2px; }
    .note.n3 { width: 20px; height: 20px; right: 0; bottom: 70px; }
}

/* ---------- Preferencias del sistema ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
    .js [data-notes] .note { opacity: .95; translate: none; scale: 1; }
}
@media (forced-colors: active) {
    .band, .card, .connect, .key__tile { border: 2px solid CanvasText; }
}
@media print {
    .video__play, .note { display: none; }
}
