/* ============================================================
   Tipografías autoalojadas (Space Grotesk, Inter) — SIL Open Font
   License. Sin dependencia de Google Fonts ni petición a terceros.
   ============================================================ */
@font-face{
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin-500-normal.woff2') format('woff2');
}
@font-face{
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin-600-normal.woff2') format('woff2');
}
@font-face{
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin-700-normal.woff2') format('woff2');
}
@font-face{
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-latin-400-normal.woff2') format('woff2');
}
@font-face{
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-latin-500-normal.woff2') format('woff2');
}
@font-face{
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-latin-600-normal.woff2') format('woff2');
}

/* ============================================================
   VanyaGo — sitio de presentación
   Sistema de diseño derivado de la identidad de marca ya definida
   ============================================================ */

:root{
  --bg: #FAFAFC;
  --bg-soft: #F1EFF8;
  --surface: #FFFFFF;
  --surface-2: #F4F3FA;
  --border: rgba(20,16,50,0.10);
  --border-soft: rgba(20,16,50,0.06);
  --text: #14102E;
  --text-dim: #55506E;
  --text-faint: #8B86A3;

  --blue: #4066FF;
  --violet: #783CFF;
  --magenta: #B80CFF;
  --sky: #5FC8FF;
  --gold: #FF9C3A;
  --coral: #FF8A30;
  --pink: #FF6CA7;

  /* Variantes de texto: el azul claro y el naranja de marca no alcanzan
     4.5:1 de contraste sobre fondo claro (WCAG AA) tal cual. Se usan
     solo para texto/iconos de interfaz; el resto de usos (fondos,
     degradados, botones) sigue con el hex de marca exacto. */
  --sky-text: #0073AF;
  --coral-text: #B64F00;

  --gradient-cool: linear-gradient(120deg, var(--sky), var(--blue), var(--violet), var(--magenta));
  --gradient-warm: linear-gradient(120deg, var(--magenta), var(--coral), var(--gold));
  --gradient-text: linear-gradient(90deg, var(--blue), var(--violet) 55%, var(--coral-text));

  --shadow-sm: 0 1px 2px rgba(20,16,50,0.04);
  --shadow-md: 0 12px 32px -14px rgba(20,16,50,0.18);
  --shadow-lg: 0 24px 60px -20px rgba(20,16,50,0.22);

  --font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 28px;
  --container: 1180px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img{ max-width:100%; display:block; }
a{ color: inherit; }

h1,h2,h3,h4{
  font-family: var(--font-display);
  margin:0;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.container{
  width:100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:9px;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--sky-text);
  margin-bottom: 18px;
}
.eyebrow::before{
  content:"";
  width: 22px; height: 2px;
  background: var(--gradient-cool);
  border-radius: 2px;
}
.eyebrow-hero{
  font-size: 25px;
}
.eyebrow-hero::before{
  width: 28px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor:pointer;
  text-decoration:none;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-2px); }
.btn:active{ transform: translateY(0); }

.btn-primary{
  background: linear-gradient(120deg, #27007E, #001980);
  color: #FFFFFF;
  box-shadow: 0 10px 30px -10px rgba(39,0,126,0.55), inset 0 0 0 1px rgba(255,255,255,0.12);
}
.btn-primary:hover{
  box-shadow: 0 14px 36px -8px rgba(39,0,126,0.7), inset 0 0 0 1px rgba(255,255,255,0.18);
}
.btn-primary:focus-visible{
  outline: 2px solid var(--sky-text);
  outline-offset: 2px;
}
.btn-primary:disabled,
.btn-primary[aria-disabled="true"]{
  opacity: .5;
  cursor: not-allowed;
  box-shadow: none;
}
.btn-primary:disabled:hover,
.btn-primary[aria-disabled="true"]:hover{
  transform: none;
}

.btn-ghost{
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover{ border-color: rgba(20,16,50,0.28); background: var(--surface); }

.btn-block{ width:100%; }

/* ---------- Skip link (accesibilidad de teclado) ---------- */
.skip-link{
  position: absolute;
  top: -60px;
  left: 12px;
  z-index: 100;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  padding: 10px 18px;
  font-family: var(--font-display);
  font-size: 14px;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: top .2s ease;
}
.skip-link:focus{
  top: 12px;
}

/* ---------- Barra de contacto superior ---------- */
.topbar{
  background: var(--text);
  color: rgba(255,255,255,0.85);
}
.topbar-inner{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  padding: 7px 0;
  font-size: 13px;
}
.topbar-item{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
  opacity: 0.88;
  transition: opacity .18s ease;
}
.topbar-item:hover{ opacity: 1; }
.topbar-item svg{ width: 14px; height: 14px; flex-shrink: 0; }
@media (max-width: 480px){
  .topbar-inner{ justify-content: center; gap: 16px; font-size: 12px; }
}

/* ---------- Nav ---------- */
.nav{
  position: sticky;
  top:0;
  z-index: 50;
  padding: 18px 0;
  background: rgba(250,250,252,0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, padding .25s ease, box-shadow .25s ease;
}
.nav.is-scrolled{
  padding: 12px 0;
  background: rgba(255,255,255,0.92);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.nav .container{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 20px;
}
.logo-chip{
  display:inline-flex;
  align-items:center;
  line-height:0;
  flex-shrink: 0;
}
.logo-chip img{ height: 102px; width:auto; }

.nav-links{
  display:flex;
  align-items:center;
  gap: 34px;
  list-style:none;
  margin:0; padding:0;
  font-size: 14.5px;
  color: var(--text-dim);
}
.nav-links a{
  text-decoration:none;
  transition: color .18s ease;
}
.nav-links a:hover{ color: var(--text); }

.nav-right{
  display:flex;
  align-items:center;
  gap: 16px;
}

.lang-switch{
  display:flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.lang-switch button{
  border:none;
  background: transparent;
  color: var(--text-faint);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .03em;
  padding: 6px 12px;
  border-radius: 999px;
  cursor:pointer;
  transition: background .18s ease, color .18s ease;
}
.lang-switch button.is-active{
  background: var(--surface-2);
  color: var(--text);
}

.nav-toggle{
  display:none;
  background:none;
  border:1px solid var(--border);
  border-radius: 10px;
  width:42px; height:42px;
  flex-shrink: 0;
  color: var(--text);
  cursor:pointer;
}

/* Menú móvil: controlado por una clase en <nav>, no por estilos inline en JS */
@media (max-width: 720px){
  .nav-links{
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    box-shadow: var(--shadow-md);
    padding: 20px 24px;
    gap: 18px;
    align-items: flex-start;
  }
  .nav.nav-menu-open .nav-links{
    display: flex;
  }
}

/* ---------- Hero ---------- */
.hero{
  position: relative;
  overflow: hidden;
  padding: 108px 0 96px;
}
.hero .container{
  display:grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items:center;
}
.hero-copy h1{
  font-size: clamp(2.4rem, 4.4vw, 3.8rem);
  margin-bottom: 22px;
}
.hero-copy h1 .accent{
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy p{
  font-size: 18px;
  color: var(--text-dim);
  max-width: 46ch;
  margin-bottom: 34px;
}
.hero-actions{
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-visual{
  position: relative;
}
.hero-decor-frame{
  position: relative;
  aspect-ratio: 1/1;
}
.hero-decor{
  position: absolute;
  inset: 0;
  display:flex;
  align-items:center;
  justify-content:center;
}
.loop-assembly{
  position: absolute;
  inset: 0;
  display:flex;
  align-items:center;
  justify-content:center;
  transform: translate(-9.5%, -10.5%);
}
.loop-stage{
  position: absolute;
  width: 92%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(20,16,46,0.20) 0%,
    rgba(20,16,46,0.13) 28%,
    rgba(20,16,46,0.06) 48%,
    rgba(20,16,46,0) 68%);
}
.loop-rings{
  position: absolute;
  width: 66%;
  height: auto;
  animation: spin-slow 50s linear infinite;
}
.loop-rings circle{ fill:none; }
.loop-icon{
  position: relative;
  width: 65%;
  filter: drop-shadow(0 20px 50px rgba(124,58,237,0.22));
  animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe{
  0%, 100%{ transform: scale(1); }
  50%{ transform: scale(1.035); }
}
.vibe-switcher{
  position: relative;
  z-index: 2;
  margin-top: -28%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  background: rgba(255,255,255,0.42);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 12px 20px;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  font: inherit;
  transition: box-shadow .18s ease, transform .18s ease, background .18s ease;
  animation: vibe-glow 2.8s ease-in-out infinite;
}
.vibe-switcher:hover{ box-shadow: var(--shadow-lg); background: rgba(255,255,255,0.62); }
.vibe-switcher:active{ transform: scale(0.98); }
.vibe-switcher[aria-expanded="true"]{ animation: none; }
@keyframes vibe-glow{
  0%, 100%{ box-shadow: var(--shadow-md), 0 0 0 0 rgba(64,102,255,0.32); }
  50%{ box-shadow: var(--shadow-lg), 0 0 18px 4px rgba(64,102,255,0.32); }
}
.vibe-switcher-light{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gradient-cool);
  box-shadow: 0 0 5px 1px rgba(64,102,255,.5);
  animation: vibe-pulse-rest 2.2s ease-in-out infinite;
  transition: background .25s ease, box-shadow .25s ease;
  flex-shrink: 0;
}
@keyframes vibe-pulse-rest{
  0%, 100%{ box-shadow: 0 0 5px 1px rgba(64,102,255,.5); }
  50%{ box-shadow: 0 0 11px 3px rgba(64,102,255,.8); }
}
.vibe-switcher[aria-expanded="true"] .vibe-switcher-light{
  background: var(--gradient-warm);
  animation: vibe-pulse 1.6s ease-in-out infinite;
}
@keyframes vibe-pulse{
  0%, 100%{ box-shadow: 0 0 6px 2px rgba(255,122,69,.55); }
  50%{ box-shadow: 0 0 13px 4px rgba(255,122,69,.85); }
}
.vibe-switcher-label{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-dim);
  text-shadow: 0 1px 6px rgba(255,255,255,0.55);
}

.sample-tracks-wrapper{
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: 0fr;
  margin-top: 10px;
  transition: grid-template-rows .35s ease;
}
.sample-tracks-wrapper.is-open{
  grid-template-rows: 1fr;
}
.sample-tracks-inner{
  overflow: hidden;
  min-height: 0;
}
.sample-tracks{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding-top: 2px;
}
.hero-badge{
  background: rgba(255,255,255,0.42);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 14px 18px;
  display:flex;
  align-items:center;
  gap: 12px;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  font: inherit;
  text-align: left;
  width: fit-content;
  transition: box-shadow .18s ease, transform .18s ease, background .18s ease;
}
.hero-badge:hover{ box-shadow: var(--shadow-lg); background: rgba(255,255,255,0.62); }
.hero-badge:active{ transform: scale(0.98); }
.hero-badge .eq{
  display:flex;
  align-items:flex-end;
  gap: 3px;
  width: 16px;
  height: 14px;
  flex-shrink: 0;
}
.hero-badge .eq span{
  display:block;
  width: 3px;
  border-radius: 2px;
  background: var(--gradient-warm);
  transform-origin: bottom;
  height: 30%;
  animation: eq-bounce 1.1s ease-in-out infinite;
  animation-play-state: paused;
}
/* Barras quietas (a media altura) hasta que se confirma la reproducción real */
.hero-badge[aria-pressed="true"] .eq span{ animation-play-state: running; }
.hero-badge .eq span:nth-child(1){ height: 40%; animation-delay: -0.9s; }
.hero-badge .eq span:nth-child(2){ height: 100%; animation-delay: -0.4s; }
.hero-badge .eq span:nth-child(3){ height: 65%; animation-delay: -0.65s; }
.hero-badge .eq span:nth-child(4){ height: 85%; animation-delay: -0.2s; }
@keyframes eq-bounce{
  0%, 100%{ transform: scaleY(0.35); }
  50%{ transform: scaleY(1); }
}
.hero-badge span:not(.eq){
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--text-dim);
  text-shadow: 0 1px 6px rgba(255,255,255,0.55);
}
.hero-badge .badge-icon{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--coral-text);
}
.hero-badge .badge-icon svg{ width: 100%; height: 100%; }

/* ---------- Demo de anuncio integrado (tarjeta "Audio pensado para negocios") ---------- */
/* Deliberadamente independiente del Vibe Switcher / muestras de ambiente del hero:
   audio propio, sin estado compartido, para no mezclar el ejemplo de anuncio con
   las pistas de ambiente que ya estaban en la web (pedido explícito del cliente). */
.ad-demo-toggle{
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  padding: 9px 16px;
  background: rgba(255,154,58,0.10);
  border: 1px solid rgba(255,138,48,0.3);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  transition: background .18s ease, box-shadow .18s ease;
}
.ad-demo-toggle:hover{ background: rgba(255,154,58,0.18); }
.ad-demo-toggle .badge-icon{ color: var(--coral-text); }
.ad-demo-toggle[aria-pressed="true"]{
  background: rgba(255,154,58,0.2);
  box-shadow: 0 0 0 3px rgba(255,154,58,0.18);
}
.ad-demo-label{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--coral-text);
}

@keyframes spin{ to{ transform: rotate(360deg); } }
@keyframes spin-slow{ to{ transform: rotate(360deg); } }

/* ---------- Intro strip ---------- */
.intro{
  padding: 10px 0 88px;
  border-bottom: 1px solid var(--border-soft);
}
.intro .container{
  max-width: 820px;
  text-align:center;
}
.intro p{
  font-size: 19px;
  color: var(--text-dim);
}

/* ---------- Section shell ---------- */
.section{
  padding: 96px 0;
  position: relative;
}
.section-watermark{
  position:absolute;
  top: 0; right: -80px;
  width: 480px;
  opacity: 0.14;
  pointer-events: none;
  z-index: 0;
}
.section > .container{
  position: relative;
  z-index: 1;
}
.section-head{
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head.center{
  margin-left:auto;
  margin-right:auto;
  text-align:center;
}
.section-head h2{
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  margin-bottom: 14px;
}
.section-head p{
  color: var(--text-dim);
  font-size: 17px;
}

/* ---------- Sectors ---------- */
.sectors-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.sector-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform .2s ease, box-shadow .2s ease;
}
.sector-card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.sector-media{
  position: relative;
  aspect-ratio: 4/3;
  min-height: 180px;
  overflow: hidden;
  background: var(--surface-2);
}
.sector-media img{
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.sector-card:hover .sector-media img{ transform: scale(1.05); }
.sector-media::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(10,9,24,0) 40%, rgba(10,9,24,0.85) 100%);
}

.sector-body{
  padding: 24px 24px 28px;
}
.sector-card h3{
  font-size: 20px;
  margin-bottom: 10px;
}
.sector-card p{
  color: var(--text-dim);
  font-size: 15px;
  margin:0;
}

/* ---------- Features ---------- */
/* Sección con fondo decorativo (remolino en degradado de marca) detrás de
   la rejilla — puramente CSS (radial-gradients + blur), sin imagen de fondo. */
#servicio{ position:relative; overflow:hidden; }
.services-decor{
  position:absolute;
  top:-18%; right:-12%;
  width:60%; aspect-ratio:1/1;
  min-width: 380px;
  pointer-events:none;
  z-index:0;
  opacity:0.5;
  background:
    radial-gradient(circle at 30% 30%, rgba(95,200,255,0.55), transparent 60%),
    radial-gradient(circle at 65% 20%, rgba(120,60,255,0.5), transparent 55%),
    radial-gradient(circle at 55% 65%, rgba(184,12,255,0.4), transparent 60%),
    conic-gradient(from 200deg at 50% 50%, rgba(95,200,255,0.35), rgba(120,60,255,0.35), rgba(184,12,255,0.35), rgba(95,200,255,0.35));
  border-radius:50%;
  filter: blur(48px);
}
#servicio .container{ position:relative; z-index:1; }

.features-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
  display:flex;
  flex-direction:column;
}
.feature-card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Foto + insignias flotantes */
.feature-media{
  position:relative;
  aspect-ratio: 4/3;
  overflow:hidden;
  background: var(--surface-2);
}
.feature-media img{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit: cover;
  object-position: top center;
  display:block;
}
.feature-media::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(20,16,50,0) 55%, rgba(20,16,50,0.35) 100%);
  pointer-events:none;
}

/* Insignia flotante tipo "cristal esmerilado" (mismo lenguaje que .hero-badge) */
.feature-pill{
  position:absolute;
  z-index:2;
  display:flex;
  align-items:center;
  gap:6px;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: var(--radius-s);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}
.feature-pill svg{ width:14px; height:14px; stroke: var(--sky-text); flex-shrink:0; }
.feature-pill .dot{
  width:8px; height:8px; border-radius:50%;
  background:#2ECC71; flex-shrink:0;
  box-shadow: 0 0 0 3px rgba(46,204,113,0.25);
}
.feature-pill--top-left{ top:14px; left:14px; }
.feature-pill--top-right{ top:14px; right:14px; }
.feature-pill--bottom-left{ bottom:14px; left:14px; }
.feature-pill--bottom-right{ bottom:14px; right:14px; }

/* -- Variante 1: onda de audio animada (tarjeta "Curación musical") -- */
.feature-pill .wave{
  display:flex; align-items:flex-end; gap:2px;
  height:14px; flex-shrink:0;
}
.feature-pill .wave span{
  display:block; width:3px; border-radius:2px;
  background: var(--sky-text);
  transform-origin: bottom;
  animation: feature-wave 1.1s ease-in-out infinite;
}
.feature-pill .wave span:nth-child(1){ height:40%; animation-delay:0s; }
.feature-pill .wave span:nth-child(2){ height:100%; animation-delay:.15s; }
.feature-pill .wave span:nth-child(3){ height:65%; animation-delay:.3s; }
.feature-pill .wave span:nth-child(4){ height:85%; animation-delay:.45s; }
@keyframes feature-wave{
  0%, 100%{ transform: scaleY(0.35); }
  50%{ transform: scaleY(1); }
}

/* -- Variante 2: controles de reproducción (tarjeta "Control remoto") -- */
.feature-pill--controls{ gap:10px; padding:7px 14px; }
.feature-pill--controls svg{ width:13px; height:13px; opacity:.55; }
.feature-pill--controls .is-play{
  width:20px; height:20px; border-radius:50%;
  background: var(--sky-text);
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.feature-pill--controls .is-play svg{
  width:9px; height:9px; opacity:1;
  stroke:#fff; fill:#fff;
}

/* -- Variante 3: interruptor día/noche animado (tarjeta "Automatización") -- */
.feature-pill--schedule svg{ width:13px; height:13px; opacity:.7; }
.feature-pill--schedule .track{
  width:28px; height:14px; border-radius:10px;
  background: var(--border);
  position:relative; flex-shrink:0;
}
.feature-pill--schedule .thumb{
  position:absolute; top:2px; left:2px;
  width:10px; height:10px; border-radius:50%;
  background: var(--gold);
  animation: feature-toggle 3.2s ease-in-out infinite alternate;
}
@keyframes feature-toggle{
  0%{ left:2px; background: var(--gold); }
  100%{ left:16px; background: var(--violet); }
}

/* -- Variante 4: aviso de oferta con pulso suave (tarjeta "Audio para negocios") -- */
.feature-pill--promo{ color: var(--coral-text); }
.feature-pill--promo svg{ stroke: var(--coral-text); }
.feature-pill--promo{ animation: feature-promo-pulse 2.1s ease-in-out infinite; }
@keyframes feature-promo-pulse{
  0%, 100%{ transform: scale(1); }
  50%{ transform: scale(1.045); }
}

/* -- Variante 5: punto "en línea" con pulso (tarjeta "Continuidad") -- */
.feature-pill--online .dot{ animation: feature-dot-pulse 1.8s infinite; }
@keyframes feature-dot-pulse{
  0%{ box-shadow: 0 0 0 0 rgba(46,204,113,0.55); }
  70%{ box-shadow: 0 0 0 7px rgba(46,204,113,0); }
  100%{ box-shadow: 0 0 0 0 rgba(46,204,113,0); }
}

/* -- Variante 6: etiqueta de panel multilocal (tarjeta "Panel de control") -- */
.feature-pill--panel{ gap:6px; padding:6px 10px; }
.feature-pill--panel .tag{
  background: var(--gradient-cool);
  color:#fff;
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 10.5px;
  font-weight:700;
}

.feature-body{
  padding: 24px 24px 26px;
  display:flex;
  flex-direction:column;
  flex:1;
}
.feature-icon{
  width: 38px; height: 38px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--surface);
  display:flex; align-items:center; justify-content:center;
  margin-bottom: 14px;
  flex-shrink:0;
}
.feature-icon svg{ width:19px; height:19px; stroke: var(--sky-text); }
.feature-card h3{
  font-size: 17px;
  margin-bottom: 8px;
}
.feature-card p{
  font-size: 14.5px;
  color: var(--text-dim);
  margin:0;
}

/* ---------- CTA band ---------- */
/* Se mantiene como una "isla oscura" intencionada sobre la foto,
   por eso fuerza colores claros propios en vez de heredar el tema. */
.cta-band{
  margin: 0 24px;
  max-width: calc(var(--container) - 0px);
  margin: 0 auto;
  border-radius: var(--radius-l);
  padding: 56px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  color: #F4F2FF;
}
.cta-band::before{
  content:"";
  position:absolute;
  width: 340px; height: 340px;
  right: -120px; top: -120px;
  background: var(--gradient-cool);
  filter: blur(90px);
  opacity: .35;
}
.cta-band h2{
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  max-width: 480px;
  position: relative;
  color: #F4F2FF;
}
.cta-band .actions{
  display:flex;
  gap: 14px;
  position: relative;
  flex-wrap: wrap;
}
/* Aviso de música libre de derechos, oferta adicional al catálogo con licencia
   (no lo sustituye). Mismo lenguaje "cristal esmerilado" que .hero-badge/.feature-pill,
   adaptado a fondo oscuro del .cta-band (blanco translúcido en vez de blanco opaco). */
.cta-highlight{
  display:inline-block;
  max-width: 520px;
  position: relative;
  margin: 0 0 18px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: var(--radius-m);
  font-size: 13.5px;
  line-height: 1.45;
  color: rgba(244,242,255,0.85);
}
.cta-highlight strong{ color: #F4F2FF; }

/* ---------- Contact ---------- */
.contact{
  display:grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
}
.contact-info h2{
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 16px;
}
.contact-info p{
  color: var(--text-dim);
  margin-bottom: 30px;
  max-width: 40ch;
}
.contact-line{
  display:flex;
  align-items:center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--border-soft);
}
.contact-line:last-child{ border-bottom: 1px solid var(--border-soft); }
.contact-line .icon{
  width: 38px; height:38px;
  border-radius: 10px;
  background: var(--surface-2);
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.contact-line .icon svg{ width:18px; height:18px; stroke: var(--sky-text); }
.contact-line .label{
  font-size: 12.5px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.contact-line .value{ font-size: 15px; }
.contact-line .value.disabled{ color: var(--text-faint); }

.form-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.form-row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.field{ margin-bottom: 16px; }
.field label{
  display:block;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.field-optional{
  font-weight: 400;
  color: var(--text-dim);
  opacity: 0.6;
}
.field input,
.field textarea{
  width:100%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  padding: 13px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  resize: vertical;
}
.field input:focus,
.field textarea:focus{
  outline: 2px solid var(--sky-text);
  outline-offset: 1px;
  border-color: transparent;
}
.field.honeypot{
  position:absolute;
  left: -9999px;
  width: 1px; height:1px;
  overflow: hidden;
}
.consent{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  font-size: 13px;
  color: var(--text-dim);
  margin: 4px 0 22px;
}
.consent input{ margin-top: 3px; }
.consent a{ color: var(--sky-text); text-decoration: underline; }

.form-note{
  font-size: 12.5px;
  color: var(--text-faint);
  margin-top: 14px;
}
.form-status{
  font-size: 14px;
  margin-top: 14px;
  display:none;
}
.form-status.show{ display:block; }
.form-status.ok{ color: var(--sky-text); }
.form-status.err{ color: var(--coral-text); }

/* ---------- Footer ---------- */
footer{
  border-top: 1px solid var(--border-soft);
  padding: 56px 0 32px;
}
.footer-top{
  display:flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.footer-brand{ max-width: 340px; }
.footer-brand .logo-chip{ margin-bottom: 16px; }
.footer-brand .logo-chip img{ height: 110px; }
.footer-brand p{
  font-size: 14px;
  color: var(--text-dim);
}
.footer-cols{
  display:flex;
  gap: 64px;
  flex-wrap: wrap;
}
.footer-col h4{
  font-size: 13px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}
.footer-col ul{
  list-style:none;
  margin:0; padding:0;
  display:flex; flex-direction:column;
  gap: 10px;
}
.footer-col a, .footer-col span{
  font-size: 14px;
  color: var(--text-dim);
  text-decoration:none;
}
.footer-col a:hover{ color: var(--text); }

.footer-bottom{
  display:flex;
  justify-content: space-between;
  align-items:center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  font-size: 12.5px;
  color: var(--text-faint);
}
.footer-bottom a{ color: var(--text-faint); text-decoration: underline; }
/* Nota legal de licencias musicales, reubicada aquí (antes al final de "Diseñado para
   tu sector") a petición de Mario — se mantiene, no se elimina, solo se mueve más abajo. */
.footer-legal-note{
  max-width: 640px;
  margin: 16px auto 0;
  text-align:center;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text-faint);
}

/* ---------- WhatsApp floating ---------- */
.wa-float{
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 56px; height: 56px;
  border-radius: 28px;
  background: var(--gradient-warm);
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 14px 30px -10px rgba(255,122,69,.55);
  cursor: not-allowed;
  opacity: .55;
  transition: width .3s ease, padding .3s ease, transform .18s ease, box-shadow .18s ease;
}
.wa-float svg{ flex: none; width:26px; height:26px; fill:#0A0918; }
.wa-float-text{
  flex: none;
  max-width: 0;
  opacity: 0;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: #0A0918;
  transition: max-width .3s ease, opacity .2s ease .05s;
}
.wa-float[data-active="true"]{
  cursor:pointer;
  opacity: 1;
}
.wa-float[data-active="true"]:hover,
.wa-float[data-active="true"]:focus-visible{
  width: 156px;
  padding: 0 18px;
  box-shadow: 0 18px 36px -8px rgba(255,122,69,.65);
}
.wa-float[data-active="true"]:hover .wa-float-text,
.wa-float[data-active="true"]:focus-visible .wa-float-text{
  max-width: 120px;
  opacity: 1;
}

/* ---------- Legal pages ---------- */
.legal{
  padding: 150px 24px 100px;
  padding-inline: 24px;
  max-width: 780px;
  margin: 0 auto;
}
.legal h1{ font-size: 2rem; margin-bottom: 8px; }
.legal .updated{ color: var(--text-faint); font-size: 13px; margin-bottom: 40px; }
.legal h2{ font-size: 1.2rem; margin-top: 40px; margin-bottom: 12px; }
.legal p, .legal li{ color: var(--text-dim); font-size: 15px; line-height: 1.65; }
.legal ul{ padding-left: 20px; }
.legal .flag{
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--coral);
  border-radius: var(--radius-s);
  padding: 16px 18px;
  font-size: 13.5px;
  color: var(--text-dim);
  margin: 18px 0;
}

@media (max-width: 720px){
  .legal{ padding-top: 96px; padding-bottom: 64px; }
}
@media (max-width: 480px){
  .legal{ padding-inline: 16px; }
}

/* ---------- Aparición progresiva al hacer scroll ---------- */
/* Seguro por defecto: el contenido es visible sin depender de JS.
   Solo se oculta momentáneamente (.pre-reveal) si main.js confirma
   que puede animarlo y observarlo; si el script falla o no carga,
   el contenido nunca desaparece. Usa `translate` (no `transform`)
   para no chocar con el `transform` que ya usan algunas cards en :hover. */
.pre-reveal{
  opacity: 0;
  translate: 0 22px;
  transition: opacity .6s ease, translate .6s ease;
}
.pre-reveal.is-visible{
  opacity: 1;
  translate: 0 0;
}
@media (prefers-reduced-motion: reduce){
  .pre-reveal{
    opacity: 1;
    translate: 0 0;
    transition: none;
  }
}

/* ---------- Utility: reduced motion ---------- */
@media (prefers-reduced-motion: reduce){
  .loop-icon, .loop-rings{ animation: none; }
  .btn, .sector-card{ transition: none; }
  .vibe-switcher, .vibe-switcher-light{ animation: none; }
  .feature-pill .wave span,
  .feature-pill--schedule .thumb,
  .feature-pill--promo,
  .feature-pill--online .dot{ animation: none; }
}

/* ---------- Utility: texto solo para lectores de pantalla ---------- */
.sr-only{
  position:absolute;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* ---------- Focus visibility ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible{
  outline: 2px solid var(--sky-text);
  outline-offset: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .hero .container{ grid-template-columns: 1fr; }
  .hero-visual{ max-width: 420px; margin: 0 auto; }
  .contact{ grid-template-columns: 1fr; }
  .sectors-grid{ grid-template-columns: 1fr; }
  .features-grid{ grid-template-columns: 1fr 1fr; }
  .footer-top{ flex-direction: column; }
}

@media (max-width: 720px){
  .nav-right .btn-primary{ display:none; }
  .nav-toggle{ display:flex; align-items:center; justify-content:center; }
  .form-row{ grid-template-columns: 1fr; }
  .features-grid{ grid-template-columns: 1fr; }
  .cta-band{ padding: 36px 26px; }
  .hero{ padding-top: 96px; }
  /* El botón flotante de WhatsApp (fixed, right:22px/bottom:22px, 56x56px) puede
     coincidir con el final de la página en móvil. La nota legal reubicada en el
     footer (ver index.html) añadió una línea más de texto al final — espacio extra
     para que no quede debajo del botón al hacer scroll hasta el final. */
  footer{ padding-bottom: 92px; }
}

@media (max-width: 480px){
  .container{ padding: 0 16px; }
  .nav-right{ gap: 8px; }
  .logo-chip img{ height: 78px; }
  .lang-switch button{ padding: 5px 9px; font-size: 12px; }
  .nav-toggle{ width: 38px; height: 38px; }
  .nav-right .btn-ghost{ padding: 8px 14px; font-size: 13px; }
}
