/* ==========================================================================
   KOMUL AI · Remix Studio — hoja de estilos única
   Orden: tokens · base · cabecera · hero · tarjetas · secciones · demo ·
   CTA · cierre · footer · modal · páginas de texto · animaciones ·
   responsive · accesibilidad
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
  color-scheme: dark;
  /* Fondos y superficies */
  --bg: #020e07;
  --bg-deep: #021108;
  --surface: #051a0d;         /* campos de formulario, botones oscuros */
  --surface-2: #0a3519;       /* tarjetas elevadas, modal */
  --surface-3: #0b4423;       /* bloque de cierre */

  /* Texto, de más a menos contraste */
  --ink: #f8fff9;
  --ink-soft: #dfeee3;
  --muted: #b4cbba;
  --muted-2: #8caa95;

  /* Verde: el único acento del sistema. Menos fluorescente que la v2.2,
     mismo tono para no chocar con el verde del vídeo del hero. */
  --green: #2fdd6a;
  --lime: #4ef083;            /* palabra destacada de los titulares */
  --green-soft: #a3eeb6;      /* antetítulos */
  --green-link: #6ef09a;      /* enlaces dentro de texto */
  --green-line: #1d7c41;      /* bordes y separadores */

  /* Carmesí: reservado para la acción (CTA) y la marca. Nunca decorativo. */
  --red: #d53548;
  --red-hi: #e8485e;
  --red-lo: #b00c26;
  --red-soft: #ff9ba6;        /* mensajes de error */

  --card-bg: linear-gradient(160deg, rgba(13, 65, 30, .92) 0%, rgba(5, 33, 16, .94) 48%, rgba(3, 17, 9, .97) 100%);
  --card-border: rgba(74, 207, 104, .5);
  --card-border-hover: rgba(110, 250, 145, .85);
  --card-shadow: inset 0 1px rgba(204, 255, 213, .1), 0 14px 34px rgba(0, 0, 0, .22);
  --card-shadow-hover: inset 0 1px rgba(215, 255, 220, .14), 0 18px 38px rgba(0, 0, 0, .28), 0 0 26px rgba(66, 240, 111, .1);

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  /* Tipografía de titulares. Para volver a una sola familia, basta con dejar
     --font-display igual que --font: el resto del CSS no cambia. */
  --font-display: "Sora", var(--font);
  --container: 1220px;
  --gutter: clamp(16px, 4vw, 36px);
  --header-h: 84px;
  --radius-lg: 22px;
  --radius: 18px;
  --radius-sm: 14px;
  --section-y: clamp(48px, 6vw, 84px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* --- Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
/* El atributo hidden debe ganar a cualquier display de las reglas de abajo. */
[hidden] { display: none !important; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 37% 16% at 83% 7%, rgba(14, 111, 42, .095), transparent 82%),
    radial-gradient(ellipse 38% 11% at 13% 49%, rgba(7, 107, 45, .055), transparent 83%),
    radial-gradient(ellipse 36% 12% at 83% 82%, rgba(126, 26, 43, .037), transparent 82%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body.modal-open { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; border-radius: 4px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -.03em; text-wrap: balance; }
p { line-height: 1.65; text-wrap: pretty; }
main { position: relative; isolation: isolate; overflow-x: clip; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: var(--section-y); }

.skip-link {
  position: absolute; top: -60px; left: 12px; z-index: 100;
  padding: 10px 14px; border-radius: 8px;
  background: var(--ink); color: #05200e; font-weight: 700;
}
.skip-link:focus { top: 10px; }

/* --- Elementos comunes --------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--green-soft);
  font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
}
.eyebrow.center { justify-content: center; }
.eyebrow-led, .status-dot {
  display: inline-block; flex-shrink: 0;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(61, 255, 103, .08), 0 0 11px rgba(75, 255, 108, .3);
}

.section-title { max-width: 880px; margin: 0 auto clamp(24px, 3vw, 36px); text-align: center; }
.section-title h2 {
  margin: 12px 0 10px;
  font-size: clamp(28px, 3.4vw, 48px); font-weight: 800;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .16);
}
.section-title h2 span { color: var(--lime); }
.section-title p { max-width: 640px; margin: 0 auto; color: var(--muted); font-size: clamp(15px, 1.3vw, 17px); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px;
  border: 0; border-radius: 999px;
  font-weight: 800; line-height: 1.2; white-space: nowrap;
  transition: transform .24s var(--ease), box-shadow .24s ease, background .24s ease, border-color .24s ease;
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn-red {
  color: #fff;
  background: linear-gradient(180deg, var(--red-hi) 0%, var(--red-lo) 100%);
  box-shadow: inset 0 1px rgba(255, 255, 255, .28), 0 10px 24px rgba(176, 12, 38, .3);
}
.btn-outline {
  color: #fff;
  background: linear-gradient(180deg, rgba(7, 31, 16, .9), rgba(3, 17, 9, .9));
  border: 1.5px solid rgba(207, 255, 214, .72);
  box-shadow: inset 0 1px rgba(255, 255, 255, .14), 0 8px 24px rgba(0, 0, 0, .16);
}
.btn-small { padding: 12px 20px; font-size: 13px; }
.btn-large { padding: 16px 26px; font-size: 16px; }
.btn-xl { padding: 18px 42px; font-size: 18px; }
.btn-play {
  display: block; width: 0; height: 0;
  border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 11px solid currentColor;
  transition: transform .25s ease;
}
.btn-arrow { display: inline-block; transition: transform .25s ease; }
.text-link {
  padding: 0; border: 0; background: none;
  color: var(--green-link); font-size: 14px; font-weight: 800;
}

/* --- Cabecera ----------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: linear-gradient(180deg, rgba(2, 19, 8, .92), rgba(2, 19, 8, .8));
  -webkit-backdrop-filter: blur(18px) saturate(115%);
  backdrop-filter: blur(18px) saturate(115%);
  border-bottom: 1px solid rgba(59, 138, 78, .16);
  transition: box-shadow .3s ease, background .3s ease;
}
.site-header.is-scrolled {
  background: rgba(2, 17, 8, .94);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .35);
}
.nav-shell {
  position: relative;
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(12px, 1.3vw, 22px);
}
.brand { display: flex; align-items: center; gap: 13px; flex-shrink: 0; }
.brand-wave { width: 42px; height: 42px; color: var(--red-hi); }
.brand-line { width: 2px; height: 34px; background: var(--red-hi); }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name strong { font-size: 23px; font-weight: 800; letter-spacing: -.065em; white-space: nowrap; }
.brand-name em { font-style: normal; }
.brand-name small { margin-top: 6px; font-size: 10px; font-weight: 800; letter-spacing: .35em; white-space: nowrap; }

.header-external-links, .site-nav { display: flex; align-items: center; gap: clamp(12px, 1.15vw, 20px); }
.header-external-links a, .site-nav > a {
  position: relative;
  display: inline-flex; align-items: center; height: 40px;
  color: var(--muted-2); font-size: 12.5px; font-weight: 700; white-space: nowrap;
  transition: color .2s ease;
}
.header-external-links a::after, .site-nav > a::after {
  content: ""; position: absolute; left: 0; bottom: 4px;
  width: 100%; height: 1.5px; border-radius: 2px;
  background: var(--green);
  transform: scaleX(0); transform-origin: left;
  transition: transform .22s ease;
}
.header-external-links a:hover, .site-nav > a:hover, .site-nav > a.is-current { color: var(--lime); }
.header-external-links a:hover::after, .site-nav > a:hover::after, .site-nav > a.is-current::after { transform: scaleX(1); }
.nav-external-mobile { display: none; }
.header-cta { flex-shrink: 0; }
.header-cta .btn-play { border-top-width: 6px; border-bottom-width: 6px; border-left-width: 9px; }

.menu-toggle {
  display: none;
  width: 46px; height: 46px; flex-shrink: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  border: 1px solid rgba(46, 150, 75, .8); border-radius: 12px;
  background: rgba(3, 25, 12, .6);
}
.menu-toggle span {
  width: 20px; height: 2px; border-radius: 2px; background: #fff;
  transition: transform .25s ease, opacity .2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Hero --------------------------------------------------------------- */
.hero {
  --hero-video-right: clamp(110px, 9.5vw, 208px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(540px, 40vw, 720px);
  display: flex;
  background: var(--bg-deep);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 32% 43% at 73% 40%, rgba(29, 179, 61, .065), transparent 78%);
}
/* Detrás del vídeo se prolonga el verde de su borde para que la espalda del gorila
   se funda con el fondo sin un corte vertical. */
.hero-visual {
  position: absolute; inset: 0; z-index: -2; overflow: hidden;
  background:
    linear-gradient(0deg, rgba(2, 17, 8, .55) 0%, transparent 35%, transparent 75%, rgba(2, 17, 8, .35) 100%),
    linear-gradient(270deg,
      rgb(2, 19, 8) 0px,
      rgb(3, 26, 10) calc(var(--hero-video-right) * .3),
      rgb(3, 33, 11) calc(var(--hero-video-right) * .6),
      rgb(4, 40, 13) calc(var(--hero-video-right) * .9),
      rgb(4, 45, 14) calc(var(--hero-video-right) + 120px),
      rgb(4, 45, 14) calc(var(--hero-video-right) + 280px),
      rgba(4, 45, 14, 0) calc(var(--hero-video-right) + 460px)),
    var(--bg-deep);
}
.hero-video {
  position: absolute; top: 0; right: var(--hero-video-right);
  height: 100%; width: auto; max-width: none;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.45) 15%, #000 34%, #000 74%, rgba(0,0,0,.88) 81%, rgba(0,0,0,.65) 88%, rgba(0,0,0,.35) 94%, rgba(0,0,0,.12) 98%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.45) 15%, #000 34%, #000 74%, rgba(0,0,0,.88) 81%, rgba(0,0,0,.65) 88%, rgba(0,0,0,.35) 94%, rgba(0,0,0,.12) 98%, transparent 100%);
}
.hero-readability {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(1, 12, 6, .88) 0%, rgba(1, 12, 6, .75) 27%, rgba(1, 12, 6, .36) 46%, rgba(1, 12, 6, .04) 67%, transparent 100%),
    linear-gradient(0deg, rgba(1, 12, 5, .38), transparent 20%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center;
  padding-block: clamp(48px, 5vw, 72px) clamp(72px, 7vw, 96px);
}
.hero-copy { width: min(52%, 615px); }
.hero h1 {
  margin: 22px 0 20px;
  font-size: clamp(3rem, 4.8vw, 5.1rem); font-weight: 800;
  line-height: 1.06; letter-spacing: -.035em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .16);
}
.hero h1 span { color: var(--lime); text-shadow: 0 0 28px rgba(79, 255, 108, .11); }
.hero h1 .punctuation { color: #fff; text-shadow: none; }
.hero-lead { max-width: 520px; margin-bottom: 30px; color: var(--ink-soft); font-size: clamp(16px, 1.45vw, 19px); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero-note { display: flex; align-items: center; gap: 9px; margin-top: 26px; color: var(--muted-2); font-size: 12px; }
.hero-note .status-dot { width: 6px; height: 6px; box-shadow: 0 0 8px var(--green); }
.hero-chip {
  position: absolute; z-index: 2;
  right: clamp(18%, 22vw, 29%); bottom: 88px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 50px;
  border: 1px solid rgba(80, 230, 110, .36);
  background: linear-gradient(180deg, rgba(5, 30, 13, .92), rgba(3, 20, 9, .88));
  box-shadow: 0 0 18px rgba(69, 255, 105, .07), inset 0 1px rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px);
  color: var(--ink-soft); font-size: 10px; font-weight: 800; letter-spacing: .13em;
}
.chip-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 2.4s ease-in-out infinite; }
.floating-audio {
  position: absolute; z-index: 2;
  right: clamp(11%, 12vw, 18%); bottom: 96px;
  display: flex; align-items: center; gap: 4px; height: 54px;
  transform: rotate(-16deg);
  filter: drop-shadow(0 0 7px var(--green));
}
.floating-audio i {
  width: 3px; height: calc(10px + var(--h, 15px)); border-radius: 5px;
  background: var(--green);
  animation: equalize 1.2s ease-in-out infinite alternate;
}
.floating-audio i:nth-child(4n) { --h: 42px; animation-delay: -.4s; }
.floating-audio i:nth-child(4n + 1) { --h: 22px; animation-delay: -.2s; }
.floating-audio i:nth-child(4n + 2) { --h: 32px; animation-delay: -.7s; }
.floating-audio i:nth-child(4n + 3) { --h: 8px; animation-delay: -.5s; }

/* --- Tarjetas (base compartida) ------------------------------------------ */
.quick-card, .step-card, .feature-card, .style-card {
  position: relative; isolation: isolate; min-width: 0;
  border: 1.5px solid var(--card-border);
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  transition: transform .28s var(--ease), border-color .28s ease, box-shadow .28s ease;
}
/* Halo discreto que sigue al puntero (variables escritas por script.js). */
.quick-card::before, .step-card::before, .feature-card::before, .style-card::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(250px circle at var(--glow-x, 50%) var(--glow-y, 30%), rgba(105, 255, 143, .1), transparent 67%);
  opacity: 0; transition: opacity .32s ease;
}
.quick-card > *, .step-card > *, .style-card > *, .feature-copy { position: relative; z-index: 2; }
.card-icon { transition: transform .32s var(--ease), filter .32s ease; }

/* --- Cifras del proyecto -------------------------------------------------- */
.proof { position: relative; z-index: 2; padding-block: clamp(26px, 3.4vw, 42px) clamp(20px, 2.6vw, 30px); }
.proof-list {
  display: flex; flex-wrap: wrap; align-items: stretch; justify-content: center;
  gap: clamp(20px, 4vw, 64px);
  margin: 0; padding: 0; list-style: none;
}
.proof-list li {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  text-align: center;
}
/* Separador fino entre cifras, solo cuando van en la misma línea. */
.proof-list li:not(:last-child)::after {
  content: ""; position: absolute; top: 12%; bottom: 12%;
  right: calc(clamp(20px, 4vw, 64px) / -2); width: 1px;
  background: linear-gradient(180deg, transparent, rgba(80, 160, 100, .38), transparent);
}
.proof-list strong {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px); font-weight: 800; line-height: 1;
  letter-spacing: -.035em; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.proof-list span {
  color: var(--muted-2);
  font-size: clamp(10.5px, 1vw, 12px); font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
}

.cta-note {
  display: inline-flex; align-items: center; gap: 9px;
  margin: 20px 0 0; color: var(--muted-2); font-size: 12.5px;
}
.cta-note .status-dot { width: 6px; height: 6px; box-shadow: 0 0 8px var(--green); }

@media (max-width: 560px) {
  .proof-list { gap: 18px 26px; }
  .proof-list li:not(:last-child)::after { display: none; }
  .proof-list li { flex: 1 1 40%; }
}

/* Accesos rápidos */
.quick-modes {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
  margin-top: 20px;
}
.quick-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 160px; padding: 22px 12px 18px;
  border-radius: 19px; text-align: center;
}
.icon-wrap { display: grid; place-items: center; height: 54px; margin-bottom: 8px; }
.icon-wrap svg { width: 46px; height: 46px; fill: none; stroke: currentColor; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.icon-wrap { color: var(--green); }
.quick-card h2 { margin: 0 0 4px; font-size: clamp(18px, 1.8vw, 22px); letter-spacing: -.028em; }
.quick-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.4; }

/* Flujo de trabajo */
.workflow-grid, .styles-grid { margin: 0; padding: 0; list-style: none; }
.workflow-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); }
.step-card {
  display: flex; align-items: center; gap: 16px;
  min-height: 101px; padding: 22px 18px 19px;
  border-radius: 17px;
}
.step-card:not(:last-child)::after {
  content: ""; position: absolute; z-index: 3; top: 50%;
  left: calc(100% + clamp(3px, .5vw, 7px));
  width: clamp(8px, 1vw, 12px); height: clamp(8px, 1vw, 12px);
  border-top: 2px solid var(--green); border-right: 2px solid var(--green);
  transform: translateY(-50%) rotate(45deg);
}
.step-number {
  position: absolute; top: -13px; left: -9px;
  display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%;
  background: linear-gradient(135deg, var(--lime), #16a44d);
  box-shadow: 0 5px 18px rgba(28, 190, 88, .28);
  color: #04210f;
  font-size: 12px; font-weight: 900;
}
.step-icon { display: grid; place-items: center; width: 42px; min-width: 42px; height: 44px; }
.step-icon svg { width: 42px; height: 42px; fill: none; stroke: var(--ink); stroke-width: 2.3; stroke-linejoin: round; stroke-linecap: round; }
.step-card h3 { margin: 0 0 4px; font-size: 19px; letter-spacing: -.022em; }
.step-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }

/* --- El programa por dentro (capturas reales) ---------------------------- */
.product-shell {
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
.product-tabs {
  display: flex; gap: 2px;
  padding: 10px 10px 0;
  border-bottom: 1px solid rgba(60, 150, 82, .3);
  overflow-x: auto; overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.product-tabs::-webkit-scrollbar { display: none; }
.product-tab {
  position: relative;
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 48px; padding: 12px 18px;
  flex: 1 0 auto;
  border: 0; border-radius: 12px 12px 0 0;
  background: none; color: var(--muted-2);
  font-size: 14px; font-weight: 800; white-space: nowrap;
  transition: color .22s ease, background .22s ease;
}
.product-tab .tab-num {
  font-size: 11px; font-weight: 900; letter-spacing: .06em;
  color: var(--green);
  transition: color .22s ease;
}
.product-tab::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px;
  height: 2.5px; border-radius: 3px 3px 0 0; background: var(--lime);
  transform: scaleX(0); transition: transform .26s var(--ease);
}
.product-tab[aria-selected="true"] { color: var(--ink); background: rgba(10, 56, 26, .55); }
.product-tab[aria-selected="true"]::after { transform: scaleX(1); }

.product-panel {
  display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr);
  gap: clamp(20px, 2.6vw, 34px); align-items: center;
  padding: clamp(18px, 2.4vw, 30px);
  animation: panel-in .3s var(--ease);
}
.product-panel[hidden] { display: none; }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } }

.shot {
  margin: 0; overflow: hidden;
  border: 1px solid rgba(96, 120, 220, .34);
  border-radius: var(--radius);
  background: #0b0d1a;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .42);
}
.shot img { width: 100%; height: auto; }
.shot-copy h3 { margin: 0 0 10px; font-size: clamp(20px, 2.2vw, 27px); }
.shot-copy > p { margin: 0 0 18px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.spec-list { margin: 0; padding: 0; list-style: none; }
.spec-list li {
  position: relative;
  margin-bottom: 9px; padding-left: 26px;
  color: var(--muted); font-size: 13.5px; line-height: 1.5;
}
.spec-list li strong { color: var(--ink-soft); }
.spec-list li::before {
  content: ""; position: absolute; left: 2px; top: 6px;
  width: 9px; height: 5px;
  border-left: 2px solid var(--lime); border-bottom: 2px solid var(--lime);
  transform: rotate(-45deg);
}

/* --- Demo --------------------------------------------------------------- */
.demo-section { position: relative; isolation: isolate; padding-block: var(--section-y); }
.demo-section::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 48% 55% at 50% 58%, rgba(14, 130, 43, .12), transparent 76%);
}
.demo-stage { width: min(100% - 2 * var(--gutter), 1080px); margin-inline: auto; }
.demo-frame {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  background: var(--bg-deep);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .31), 0 0 0 1px rgba(64, 222, 100, .22), 0 0 22px rgba(67, 255, 104, .065);
}
.demo-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.demo-controls { position: absolute; z-index: 5; top: 16px; right: 16px; display: flex; gap: 8px; }
.demo-btn {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid rgba(113, 255, 150, .56); border-radius: 50%;
  background: rgba(0, 20, 9, .72); color: #fff;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.demo-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.demo-btn .icon-play, .demo-btn .icon-sound-on { display: none; }
.demo-btn.is-paused .icon-pause, .demo-btn.sound-on .icon-sound-off { display: none; }
.demo-btn.is-paused .icon-play, .demo-btn.sound-on .icon-sound-on { display: block; }
.demo-btn.sound-on { background: rgba(15, 130, 60, .8); }
.demo-caption {
  margin: 18px 0 0; text-align: center;
  color: var(--muted-2); font-size: 12px; font-weight: 700; letter-spacing: .11em;
}
.demo-caption span { margin-inline: 8px; color: var(--green); }

/* --- Potencial ---------------------------------------------------------- */
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.feature-card { min-height: 235px; overflow: hidden; border-radius: var(--radius-lg); }
.feature-copy { max-width: 64%; padding: clamp(24px, 2.6vw, 34px); }
.feature-icon { display: block; margin-bottom: 10px; color: var(--green); }
.feature-icon svg { width: 38px; height: 38px; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linejoin: round; }
.feature-card h3 { max-width: 240px; margin: 0 0 8px; font-size: clamp(21px, 2.1vw, 27px); }
.feature-card p { max-width: 285px; margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.55; }
.feature-card img {
  position: absolute; z-index: 0; right: -2%; bottom: 0;
  width: 53%; height: 100%; object-fit: cover; object-position: 70% center;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 38%);
  mask-image: linear-gradient(90deg, transparent, #000 38%);
  opacity: .96;
}
.feature-card:nth-child(2) img { width: 58%; object-position: center; }

/* --- Estilos ------------------------------------------------------------ */
.styles-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.style-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 112px; padding: 16px 8px;
  border-radius: var(--radius);
}
.style-card svg { width: 36px; height: 36px; color: var(--green); fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.style-card strong { font-size: 17px; letter-spacing: -.02em; }

/* --- Reproductor A/B/Remix ----------------------------------------------- */
.player {
  width: min(100%, 940px); margin-inline: auto;
  padding: clamp(18px, 2.4vw, 30px);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
}

.player-tracks { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(20px, 2.4vw, 28px); }
.track-chip {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 44px; padding: 10px 18px;
  border: 1px solid rgba(74, 207, 104, .34); border-radius: 999px;
  background: rgba(4, 26, 13, .6); color: var(--muted);
  font-size: 13.5px; font-weight: 700; white-space: nowrap;
  transition: color .22s ease, border-color .22s ease, background .22s ease;
}
.track-chip .chip-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  background: var(--green-line);
  transition: background .22s ease, box-shadow .22s ease;
}
.track-chip[aria-selected="true"] {
  color: var(--ink); border-color: var(--green);
  background: rgba(16, 78, 38, .6);
}
.track-chip[aria-selected="true"] .chip-dot { background: var(--green); box-shadow: 0 0 10px var(--green); }
.track-chip[disabled] { opacity: .38; cursor: not-allowed; }
/* La pista resultante se marca como el destino del recorrido. */
.track-chip.is-result::after {
  content: "IA"; margin-left: 2px;
  font-size: 9.5px; font-weight: 900; letter-spacing: .1em;
  color: var(--green);
}

.player-body {
  display: grid; align-items: center;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "play info time" "play wave wave";
  gap: 6px clamp(16px, 2vw, 24px);
}
.player-play {
  grid-area: play;
  display: grid; place-items: center;
  width: clamp(58px, 6vw, 70px); height: clamp(58px, 6vw, 70px); padding: 0;
  border: 0; border-radius: 50%;
  background: var(--ink); color: #04210f;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .4);
  transition: transform .22s var(--ease), box-shadow .22s ease;
}
.player-play svg { width: 26px; height: 26px; fill: currentColor; stroke: currentColor; stroke-width: 0; }
.player-play .icon-pause { display: none; fill: none; stroke-width: 2.4; stroke-linecap: round; }
.player-play.is-playing .icon-play { display: none; }
.player-play.is-playing .icon-pause { display: block; }
.player-play[disabled] { opacity: .45; cursor: progress; }

.player-info { grid-area: info; min-width: 0; }
.player-title {
  margin: 0 0 2px; font-family: var(--font-display);
  font-size: clamp(17px, 1.9vw, 21px); font-weight: 700; letter-spacing: -.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.player-meta { margin: 0; color: var(--muted-2); font-size: 12.5px; }

.player-time {
  grid-area: time; margin: 0;
  display: flex; align-items: center; gap: 7px;
  color: var(--muted-2); font-size: 13px; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.player-time .sep { opacity: .45; }
#player-current { color: var(--ink-soft); }

.player-wave {
  grid-area: wave; position: relative;
  height: clamp(54px, 6vw, 72px);
  cursor: pointer; touch-action: none;
}
.player-wave canvas { display: block; width: 100%; height: 100%; }
.player-wave:focus-visible { outline-offset: 6px; }

@media (max-width: 620px) {
  .player-body {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "play info" "wave wave" "time time";
    gap: 14px clamp(14px, 3vw, 18px);
  }
  .player-time { justify-content: space-between; }
  .player-time .sep { display: none; }
  .player-time #player-duration { margin-left: auto; }
  .track-chip { flex: 1 1 auto; justify-content: center; padding: 10px 12px; font-size: 12.5px; }
}

/* --- Preguntas frecuentes ------------------------------------------------ */
.faq-list { max-width: 820px; margin-inline: auto; }
.faq-item {
  border: 1.5px solid rgba(74, 207, 104, .38);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(10, 52, 25, .72), rgba(4, 25, 12, .86));
  transition: border-color .25s ease, background .25s ease;
}
.faq-item + .faq-item { margin-top: 10px; }
.faq-item[open] { border-color: var(--card-border-hover); background: linear-gradient(160deg, rgba(13, 65, 30, .9), rgba(5, 30, 15, .92)); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px; padding: 16px clamp(16px, 2vw, 24px);
  cursor: pointer; list-style: none;
  font-family: var(--font-display);
  font-size: clamp(15px, 1.5vw, 17.5px); font-weight: 700; letter-spacing: -.015em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { border-radius: var(--radius); }
/* Signo + que gira a × al abrirse. */
.faq-mark {
  position: relative; flex-shrink: 0; width: 18px; height: 18px;
  transition: transform .3s var(--ease);
}
.faq-mark::before, .faq-mark::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 15px; height: 2px; border-radius: 2px; background: var(--lime);
  transform: translate(-50%, -50%);
}
.faq-mark::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-mark { transform: rotate(135deg); }
.faq-answer { padding: 0 clamp(16px, 2vw, 24px) 20px; }
.faq-answer p { margin: 0; max-width: 64ch; color: var(--muted); font-size: 14.5px; }

/* --- Botón fijo en móvil -------------------------------------------------- */
.mobile-cta { display: none; }

/* --- CTA ---------------------------------------------------------------- */
.cta-section {
  position: relative; overflow: hidden; text-align: center;
  background: radial-gradient(ellipse 45% 75% at 50% 75%, rgba(10, 125, 42, .23), transparent);
}
.cta-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 28% 22% at 12% 70%, rgba(24, 255, 97, .12), transparent 72%),
    radial-gradient(ellipse 22% 22% at 88% 72%, rgba(255, 41, 70, .1), transparent 72%);
}
.cta-inner { position: relative; z-index: 2; }
.cta-inner h2 { margin: 12px 0 6px; font-size: clamp(28px, 3.8vw, 51px); font-weight: 800; }
.cta-inner h2 span { color: var(--lime); }
.cta-inner p { margin: 0 0 26px; color: var(--muted); font-size: clamp(17px, 1.6vw, 21px); }

/* --- Cierre ------------------------------------------------------------- */
.end-card {
  display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); align-items: center;
  min-height: 280px; margin-block: clamp(8px, 2vw, 24px) clamp(40px, 5vw, 64px);
  overflow: hidden; border-radius: var(--radius);
  background: var(--surface-3);
}
.end-copy { max-width: 610px; padding: clamp(26px, 3vw, 40px) 0 clamp(26px, 3vw, 40px) clamp(24px, 3.4vw, 44px); }
.end-copy h2 { margin: 0 0 12px; font-size: clamp(27px, 3.1vw, 42px); font-weight: 800; }
.end-copy h2 span { color: var(--ink); }
.end-copy p { max-width: 465px; margin: 0 0 16px; color: var(--ink-soft); font-size: 15px; line-height: 1.55; }
.end-visual { display: flex; align-items: flex-end; justify-content: flex-end; height: 100%; padding-right: 20px; }
.end-visual img { width: auto; height: 280px; max-width: 100%; object-fit: contain; object-position: right bottom; }

/* --- Footer ------------------------------------------------------------- */
.site-footer { position: relative; color: var(--muted-2); font-size: 12px; }
.site-footer::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(84, 255, 123, .14), transparent);
}
.footer-external-links {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 10px clamp(22px, 2.4vw, 42px);
  padding-block: 22px;
}
.footer-external-links a {
  position: relative; display: inline-flex; align-items: center; min-height: 36px;
  color: var(--muted); font-size: 14px; font-weight: 700;
  transition: color .18s ease;
}
.footer-external-links a::after {
  content: ""; position: absolute; left: 0; bottom: 4px; width: 100%; height: 1px;
  background: var(--green); transform: scaleX(0); transition: transform .18s ease;
}
.footer-external-links a:hover { color: var(--lime); }
.footer-external-links a:hover::after { transform: scaleX(1); }
.footer-legal-links {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 6px clamp(18px, 2vw, 32px);
  padding-bottom: 18px;
}
.footer-legal-links a {
  display: inline-flex; align-items: center; min-height: 40px;
  color: var(--muted); font-size: 13px;
  transition: color .18s ease;
}
.footer-legal-links a:hover { color: var(--green-soft); text-decoration: underline; text-underline-offset: 3px; }
.footer-legal-band { padding-block: 20px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(60, 115, 71, .32); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer-inner strong { color: var(--ink-soft); }
.footer-inner > div span { letter-spacing: .12em; }
.footer-inner p { margin: 0; }
.footer-inner a:hover { color: var(--lime); }

/* --- Modal -------------------------------------------------------------- */
.access-modal {
  width: min(490px, 100% - 24px); max-height: min(92dvh, 900px);
  padding: 0; overflow: auto;
  border: 1px solid rgba(74, 207, 104, .6); border-radius: 23px;
  background: linear-gradient(135deg, var(--surface-2), var(--bg-deep) 74%);
  color: #fff;
  box-shadow: 0 25px 90px rgba(0, 0, 0, .85), 0 0 65px rgba(20, 255, 75, .19);
}
.access-modal::backdrop { background: rgba(0, 0, 0, .78); -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px); }
.access-modal[open] { animation: modal-in .28s var(--ease); }
.modal-inner { position: relative; padding: 35px; }
.modal-close {
  position: absolute; top: 18px; right: 18px;
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--green-line); border-radius: 50%;
  background: var(--surface); color: #fff;
  transition: background .2s ease, border-color .2s ease;
}
.modal-close svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.modal-close:hover { background: var(--surface-2); border-color: var(--lime); }
.modal-inner h2 { margin: 14px 0 8px; font-size: clamp(28px, 7vw, 36px); }
.modal-inner h2 span { color: var(--lime); }
.modal-inner > p { margin-bottom: 20px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.modal-inner form { display: flex; flex-direction: column; gap: 8px; }
.modal-inner label { margin-top: 6px; font-size: 13px; font-weight: 700; }
.modal-inner label span { color: var(--red-hi); }
.modal-inner label small { color: var(--muted); font-weight: 400; }
.modal-inner input, .modal-inner select, .modal-inner textarea {
  width: 100%; min-height: 46px; padding: 12px 13px;
  border: 1px solid var(--green-line); border-radius: 10px;
  background: var(--surface); color: var(--ink-soft);
  font-size: 16px; /* evita el zoom automático en iOS */
  transition: border-color .2s ease, box-shadow .2s ease;
}
.modal-inner textarea { resize: vertical; }
.modal-inner input:focus, .modal-inner select:focus, .modal-inner textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(77, 255, 119, .18);
}
.modal-inner input::placeholder, .modal-inner textarea::placeholder { color: var(--muted-2); }
.form-notice { margin: 7px 0 3px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.form-notice.is-error { color: var(--red-soft); font-weight: 700; }
.btn-submit { margin-top: 6px; padding: 14px; font-size: 15px; }
.btn-submit[disabled] { opacity: .62; cursor: progress; }
.form-help { margin: 8px 0 0; color: var(--muted-2); font-size: 12px; text-align: center; }
.form-help a { color: var(--green-link); text-decoration: underline; }

/* Campo trampa: fuera de la vista pero accesible para los bots. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; }
.form-consent input {
  width: 20px; min-width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; padding: 0;
  accent-color: var(--green); cursor: pointer;
}
.form-consent label { margin: 0; color: var(--muted); font-size: 12.5px; font-weight: 400; line-height: 1.5; cursor: pointer; }
.form-consent label a { color: var(--green-link); text-decoration: underline; }
.form-consent label span { color: var(--red-hi); }

.form-success { padding: 8px 0 4px; text-align: center; }
.success-mark {
  display: grid; place-items: center; width: 62px; height: 62px; margin: 6px auto 18px;
  border: 2px solid rgba(77, 255, 119, .5); border-radius: 50%;
  background: rgba(16, 92, 42, .4);
  box-shadow: 0 0 30px rgba(61, 255, 103, .18);
}
.success-mark svg { width: 30px; height: 30px; fill: none; stroke: var(--lime); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.form-success h3 { margin: 0 0 8px; font-size: 23px; }
.form-success p { margin: 0 0 22px; color: var(--muted); font-size: 14px; }

/* Desplegable con la flecha propia, para que no use la del sistema. */
.modal-inner select {
  appearance: none; -webkit-appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%2377ff94' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
}
.modal-inner select option { background: var(--surface); color: var(--ink-soft); }

/* --- Páginas de texto (legales y 404) ------------------------------------ */
.doc-page { width: min(100% - 2 * var(--gutter), 760px); margin-inline: auto; padding-block: clamp(40px, 6vw, 72px); }
.doc-page .eyebrow { margin-bottom: 14px; }
.doc-page h1 { margin: 0 0 10px; font-size: clamp(30px, 4.6vw, 46px); font-weight: 800; }
.doc-page h1 span { color: var(--lime); }
.doc-page > p:first-of-type { color: var(--muted); }
.doc-page h2 {
  margin: clamp(30px, 3.4vw, 44px) 0 10px;
  padding-top: clamp(22px, 2.6vw, 30px);
  border-top: 1px solid rgba(60, 115, 71, .32);
  font-size: clamp(19px, 2.1vw, 24px); font-weight: 800;
}
.doc-page h3 { margin: 24px 0 6px; font-size: 16px; font-weight: 800; color: var(--green-soft); }
.doc-page p, .doc-page li { color: var(--ink-soft); font-size: 15px; }
.doc-page ul { margin: 0 0 16px; padding-left: 20px; }
.doc-page li { margin-bottom: 7px; }
.doc-page a { color: var(--green-link); text-decoration: underline; text-underline-offset: 3px; }
.doc-page .doc-meta { margin-bottom: 0; color: var(--muted-2); font-size: 13px; }
.doc-page .doc-back { display: inline-flex; align-items: center; min-height: 44px; margin-top: 32px; font-weight: 800; }

.error-page { display: grid; place-items: center; min-height: 62vh; text-align: center; }
.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(76px, 15vw, 150px); font-weight: 800; line-height: 1;
  letter-spacing: -.04em; color: var(--lime);
  text-shadow: 0 0 44px rgba(79, 255, 108, .18);
}
.error-page h1 { margin: 10px 0 12px; }
.error-page p { max-width: 460px; margin-inline: auto; color: var(--muted); }
.error-page .hero-actions { justify-content: center; margin-top: 26px; }

/* --- Animaciones -------------------------------------------------------- */
.can-reveal .reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s ease, transform .7s var(--ease);
  transition-delay: var(--delay, 0s);
}
.can-reveal .reveal.is-visible { opacity: 1; transform: none; }
@keyframes equalize { from { transform: scaleY(.65); } to { transform: scaleY(1.2); } }
@keyframes pulse { 50% { opacity: .45; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }

/* Hover solo en dispositivos con ratón */
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); }
  .btn-red:hover { box-shadow: inset 0 1px rgba(255, 255, 255, .34), 0 12px 30px rgba(176, 12, 38, .36), 0 0 19px rgba(213, 53, 72, .14); }
  .btn-outline:hover { background: var(--surface-2); box-shadow: 0 12px 28px rgba(18, 255, 76, .14), inset 0 1px rgba(255, 255, 255, .16); }
  .btn:hover .btn-play { transform: translateX(2px); }
  .btn:hover .btn-arrow, .text-link:hover .btn-arrow { transform: translate(2px, -2px); }
  .text-link:hover { text-decoration: underline; }
  .quick-card:hover, .step-card:hover, .feature-card:hover, .style-card:hover {
    transform: translateY(-3px);
    border-color: var(--card-border-hover);
    box-shadow: var(--card-shadow-hover);
  }
  .quick-card:hover::before, .step-card:hover::before, .feature-card:hover::before, .style-card:hover::before { opacity: 1; }
  .quick-card:hover .card-icon, .step-card:hover .card-icon, .feature-card:hover .card-icon, .style-card:hover .card-icon {
    transform: translateY(-2px) scale(1.045);
    filter: drop-shadow(0 0 5px rgba(69, 255, 105, .14));
  }
  .demo-btn:hover { transform: scale(1.07); border-color: var(--lime); background: rgba(7, 76, 36, .87); }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Escritorio estrecho / tablet horizontal: la navegación pasa a menú desplegable. */
@media (max-width: 1180px) {
  .header-external-links { display: none; }
  .menu-toggle { display: flex; }
  .header-cta { margin-left: auto; }
  .site-nav {
    position: absolute; top: 100%; left: 50%; z-index: 60;
    width: 100vw; transform: translateX(-50%);
    display: none; flex-direction: column; align-items: stretch; gap: 2px;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain;
    padding: 16px var(--gutter) 24px;
    background: rgba(3, 25, 14, .98);
    border-top: 1px solid var(--green-line); border-bottom: 1px solid rgba(46, 186, 82, .44);
    box-shadow: 0 22px 40px rgba(0, 0, 0, .6);
  }
  .site-nav.is-open { display: flex; animation: menu-in .22s ease; }
  .site-nav > a { height: auto; min-height: 46px; padding: 10px 4px; color: var(--ink); font-size: 16px; border-bottom: 1px solid rgba(41, 96, 58, .45); }
  .site-nav > a::after { display: none; }
  .site-nav > a.is-current { color: var(--lime); }
  .nav-external-mobile { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; padding-top: 16px; }
  .nav-external-label { width: 100%; color: var(--muted-2); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
  .nav-external-mobile a { display: inline-flex; align-items: center; min-height: 42px; color: var(--green-soft); font-size: 14px; }

  .styles-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .end-card { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
}
@keyframes menu-in { from { opacity: 0; transform: translate(-50%, -6px); } }

/* Tablet: hero con el encuadre más cerca del borde y pasos en 2 columnas. */
@media (max-width: 1060px) {
  .hero { --hero-video-right: clamp(40px, 6.5vw, 85px); min-height: 520px; }
  .hero-readability { background: linear-gradient(90deg, rgba(1, 12, 5, .94) 0%, rgba(1, 12, 5, .77) 33%, rgba(1, 12, 5, .2) 61%, transparent 81%); }
  .hero-copy { width: 54%; }
  .hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); }
  .hero-chip { right: 21%; bottom: 60px; }
  .floating-audio { right: 7%; bottom: 70px; }

  .quick-modes { gap: 12px; }
  .workflow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 18px; }
  .step-card:not(:last-child)::after { display: none; }
  .feature-card h3 { font-size: 22px; }
  .feature-card p { font-size: 14px; }

  .product-panel { grid-template-columns: 1fr; }
  .product-tab { flex: 0 0 auto; font-size: 13px; padding: 12px 15px; }
}

/* Tablet vertical: las tarjetas de potencial a una columna. */
@media (max-width: 860px) {
  .quick-modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-copy { max-width: 60%; }
  .btn-large { padding: 14px 20px; font-size: 15px; }
}

/* Móvil: el vídeo del hero arriba, a ancho completo, y el texto debajo. */
@media (max-width: 760px) {
  :root { --header-h: 70px; }
  .brand { gap: 10px; }
  .brand-wave { width: 34px; height: 34px; }
  .brand-line { height: 28px; }
  .brand-name strong { font-size: 19px; }
  .brand-name small { font-size: 8px; letter-spacing: .32em; }
  .header-cta { display: none; }
  .menu-toggle { margin-left: auto; }

  /* El CTA pasa a una barra fija: en móvil la cabecera no lo muestra. */
  .mobile-cta {
    position: fixed; z-index: 35; left: 0; right: 0; bottom: 0;
    display: flex; justify-content: center;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: linear-gradient(0deg, rgba(2, 17, 8, .97) 62%, rgba(2, 17, 8, 0));
    transform: translateY(120%);
    transition: transform .3s var(--ease);
    pointer-events: none;
  }
  .mobile-cta.is-visible { transform: none; pointer-events: auto; }
  .mobile-cta .btn { width: 100%; max-width: 420px; padding: 15px 24px; font-size: 15px; }
  body.modal-open .mobile-cta { transform: translateY(120%); }
  /* Que la barra no tape el final del footer. */
  .site-footer { padding-bottom: 72px; }

  .hero { display: block; min-height: 0; background: var(--bg-deep); }
  .hero::before { display: none; }
  .hero-visual { position: relative; inset: auto; aspect-ratio: 16 / 9; background: var(--bg-deep); }
  .hero-video {
    inset: 0; width: 100%; height: 100%;
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  }
  .hero-readability { display: none; }
  .hero-inner { display: block; padding-block: 8px 40px; }
  .hero-copy { width: 100%; max-width: 600px; }
  .hero h1 { margin: 14px 0 14px; font-size: clamp(2.3rem, 9.6vw, 3.6rem); line-height: 1.08; letter-spacing: -.03em; }
  .hero-lead { margin-bottom: 22px; font-size: clamp(15px, 3.9vw, 17px); line-height: 1.55; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-note { margin-top: 18px; font-size: 11px; }
  .hero-chip { position: static; margin-top: 18px; padding: 7px 12px; font-size: 9.5px; }
  .floating-audio { display: none; }

  .eyebrow { font-size: 10px; letter-spacing: .14em; }
  .quick-modes { margin-top: 4px; gap: 10px; }
  .quick-card { min-height: 128px; padding: 16px 8px 14px; border-radius: 15px; }
  .icon-wrap { height: 44px; margin-bottom: 4px; }
  .icon-wrap svg { width: 36px; height: 36px; }
  .quick-card h2 { font-size: clamp(16px, 4.4vw, 20px); }
  .quick-card p { font-size: 12.5px; }

  .workflow-grid { gap: 20px 10px; }
  .step-card { flex-direction: column; align-items: flex-start; gap: 8px; min-height: 0; padding: 18px 14px 16px; border-radius: 14px; }
  .step-icon, .step-icon svg { width: 30px; min-width: 30px; height: 30px; }
  .step-card h3 { font-size: 16px; }
  .step-card p { font-size: 12.5px; }
  .step-number { width: 26px; height: 26px; top: -10px; left: -6px; font-size: 11px; }

  .product-shell { border-radius: 16px; }
  .product-tabs { padding: 8px 8px 0; }
  .product-tab { min-height: 44px; padding: 10px 13px; font-size: 12.5px; gap: 7px; }
  .product-panel { padding: 14px; gap: 18px; }
  .shot { border-radius: 12px; }
  .shot-copy > p { font-size: 14px; }

  .demo-stage { width: calc(100% - 2 * var(--gutter)); }
  .demo-frame { border-radius: var(--radius-sm); }
  .demo-controls { top: 10px; right: 10px; }
  .demo-btn { width: 40px; height: 40px; }
  .demo-caption { margin-top: 12px; font-size: 10px; letter-spacing: .06em; }

  .feature-card { min-height: 190px; border-radius: 16px; }
  .feature-copy { max-width: 66%; padding: 22px 18px; }
  .feature-icon svg { width: 30px; height: 30px; }
  .feature-card h3 { font-size: clamp(18px, 5vw, 22px); }
  .feature-card p { font-size: 13px; }
  .feature-card img { width: 48%; }
  .feature-card:nth-child(2) img { width: 50%; }

  .styles-grid { gap: 10px; }
  .style-card { min-height: 96px; padding: 12px 6px; border-radius: var(--radius-sm); }
  .style-card svg { width: 30px; height: 30px; }
  .style-card strong { font-size: 14px; }

  .cta-inner .btn-xl { padding: 15px 28px; font-size: 16px; }

  .end-card { grid-template-columns: 1fr; border-radius: 16px; }
  .end-copy { padding: 26px 22px 6px; max-width: none; }
  .end-copy h2 { font-size: clamp(25px, 6.8vw, 34px); }
  .end-copy p { font-size: 14px; }
  .end-visual { justify-content: center; height: 230px; padding: 0; }
  .end-visual img { height: 230px; object-position: center bottom; }

  .footer-external-links { gap: 4px 20px; padding-block: 16px; }
  .footer-external-links a { font-size: 13px; }
  .footer-inner { flex-wrap: wrap; gap: 6px 16px; }
  .footer-inner p { order: 3; flex-basis: 100%; font-size: 11px; }

  .modal-inner { padding: 28px 20px 24px; }
  .modal-close { top: 14px; right: 14px; }
}

/* Móviles pequeños */
@media (max-width: 420px) {
  .hero h1 { font-size: clamp(2.05rem, 9.6vw, 2.6rem); }
  .hero-actions .btn { padding-inline: 14px; font-size: 14px; }
  .feature-copy { max-width: 70%; }
  .feature-card img { width: 45%; }
  .styles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .style-card { flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 64px; padding: 12px 16px; }
  .style-card svg { width: 26px; height: 26px; }
}

/* Pantallas grandes: más aire sin estirar el contenido. */
@media (min-width: 1600px) {
  :root { --container: 1320px; }
}

/* --- Accesibilidad ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .can-reveal .reveal { opacity: 1; transform: none; }
}
