/* BamaClaw — web pública (bamaclaw.com). Tema claro (preferencia de Ángel), identidad «Aurora» de la app:
   violeta/índigo + turquesa, Inter para el texto y Plus Jakarta Sans para los titulares. */

@font-face {
  font-family: "Jakarta";
  src: url("/recursos/fonts/jakarta.woff2?v=153fc85b70") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "InterW";
  src: url("/recursos/fonts/inter.woff2?v=3100e775e8") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --tinta: #0f1730;
  --tinta-2: #3d4766;
  --tinta-3: #6b7594;
  --tinta-4: #97a1bd;
  --fondo: #f7f8ff;
  --fondo-2: #eff1fd;
  --fondo-3: #e7eafb;
  --superficie: #ffffff;
  --linea: #e3e7f6;
  --linea-2: #d6dcf2;

  --violeta: #6d5efc;
  --violeta-fuerte: #4b3ff0;
  --indigo: #2c2a86;
  --violeta-suave: #efebff;
  --turquesa: #14b8c9;
  --cian: #22d3ee;
  --azul: #1d74d8;
  --rosa: #ec5fa8;
  --ambar: #f59e0b;
  --verde: #12b981;
  --rojo: #dc2f45;
  --marino: #070d2b;
  --marino-2: #0c1a4d;

  --degradado-marca: linear-gradient(135deg, #7464ff 0%, #5a4ff5 50%, #4b3ff0 100%);
  --degradado-texto: linear-gradient(100deg, #4b3ff0 0%, #6d5efc 35%, #2a8ff0 70%, #14b8c9 100%);

  --radio-s: 10px;
  --radio-m: 16px;
  --radio-l: 22px;
  --radio-xl: 30px;

  --sombra-xs: 0 1px 2px rgba(16, 24, 48, .06);
  --sombra-s: 0 2px 8px rgba(16, 24, 48, .06), 0 1px 2px rgba(16, 24, 48, .05);
  --sombra-m: 0 10px 30px rgba(16, 24, 48, .08), 0 2px 6px rgba(16, 24, 48, .05);
  --sombra-l: 0 24px 60px rgba(16, 24, 48, .14), 0 6px 16px rgba(16, 24, 48, .06);
  --sombra-marca: 0 12px 28px rgba(75, 63, 240, .32);
  --anillo: 0 0 0 4px rgba(109, 94, 252, .22);

  --texto: "InterW", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --titular: "Jakarta", "InterW", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --suave: cubic-bezier(.22, 1, .36, 1);
  --cabecera-alto: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--cabecera-alto) + 12px); }
body {
  margin: 0;
  font-family: var(--texto);
  font-size: 16px;
  line-height: 1.6;
  color: var(--tinta);
  background: var(--fondo);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: "cv11", "ss01";
}
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
a { color: var(--violeta-fuerte); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--indigo); }
h1, h2, h3 { font-family: var(--titular); color: var(--tinta); margin: 0; letter-spacing: -.02em; line-height: 1.12; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(109, 94, 252, .55); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icono { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.solo-lectores { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.trampa { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--tinta); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; color: #fff; }

.contenedor { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }

/* ---------- Botones ---------- */
.boton {
  --alto: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--alto); padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15.5px; line-height: 1; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--suave), box-shadow .2s var(--suave), background-color .2s, color .2s, border-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.boton .icono { width: 18px; height: 18px; transition: transform .25s var(--suave); }
.boton:hover .icono use[href="#i-arrow"] { transform: none; }
.boton:hover > .icono { transform: translateX(2px); }
.boton:active { transform: translateY(1px) scale(.99); }
.boton--grande { --alto: 54px; padding: 0 28px; font-size: 16.5px; }
.boton--compacto { --alto: 40px; padding: 0 16px 0 14px; font-size: 15px; gap: 8px; }
.boton--ancho { width: 100%; }
.boton--primario { background: var(--degradado-marca); color: #fff; box-shadow: var(--sombra-marca); }
.boton--primario:hover { color: #fff; box-shadow: 0 16px 34px rgba(75, 63, 240, .42); transform: translateY(-1px); }
.boton--claro { background: var(--superficie); color: var(--tinta); border-color: var(--linea-2); box-shadow: var(--sombra-xs); }
.boton--claro:hover { color: var(--tinta); border-color: #c4cbea; box-shadow: var(--sombra-s); transform: translateY(-1px); }
.boton--blanco { background: #fff; color: var(--indigo); box-shadow: 0 12px 30px rgba(10, 8, 60, .25); }
.boton--blanco:hover { color: var(--violeta-fuerte); transform: translateY(-1px); }
.boton--transparente { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .28); }
.boton--transparente:hover { background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .45); }
.boton[disabled], .boton[aria-busy="true"] { opacity: .7; cursor: progress; transform: none; }
.enlace-sutil { color: var(--tinta-2); text-decoration: none; font-weight: 550; font-size: 15px; }
.enlace-sutil:hover { color: var(--violeta-fuerte); }
.enlace-boton { background: none; border: 0; padding: 0; color: var(--violeta-fuerte); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.punto { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--violeta); }
.punto--verde { background: var(--verde); box-shadow: 0 0 0 3px rgba(18, 185, 129, .18); }
.punto--latido { background: var(--violeta); box-shadow: 0 0 0 0 rgba(109, 94, 252, .5); animation: latido 2.4s infinite; }
@keyframes latido { 0% { box-shadow: 0 0 0 0 rgba(109, 94, 252, .45); } 70% { box-shadow: 0 0 0 9px rgba(109, 94, 252, 0); } 100% { box-shadow: 0 0 0 0 rgba(109, 94, 252, 0); } }

/* ---------- Cabecera ---------- */
.cabecera {
  position: sticky; top: 0; z-index: 50; height: var(--cabecera-alto);
  background: rgba(247, 248, 255, .72);
  -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.cabecera.con-sombra { border-bottom-color: var(--linea); box-shadow: 0 6px 24px rgba(16, 24, 48, .05); background: rgba(247, 248, 255, .86); }
.cabecera__fila { height: 100%; display: flex; align-items: center; gap: 24px; }
.marca { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--tinta); font-family: var(--titular); font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.marca:hover { color: var(--tinta); }
.marca img { width: 34px; height: 34px; }
.nav { display: none; }
.cabecera__acciones { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.solo-escritorio { display: none; }
.cabecera__menu { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--linea-2); background: var(--superficie); cursor: pointer; }
.cabecera__menu .icono--cerrar { display: none; }
.cabecera__menu[aria-expanded="true"] .icono--abrir { display: none; }
.cabecera__menu[aria-expanded="true"] .icono--cerrar { display: block; }
.nav__invitacion { display: none; }

@media (max-width: 1099px) {
  .nav.abierta {
    display: flex; flex-direction: column; gap: 2px;
    position: absolute; top: calc(var(--cabecera-alto) - 1px); left: 0; right: 0;
    padding: 10px clamp(16px, 4vw, 32px) 18px;
    background: #f7f8ff; border-bottom: 1px solid var(--linea);
    box-shadow: 0 18px 40px rgba(16, 24, 48, .1);
    animation: bajar .25s var(--suave);
  }
  .nav.abierta a { padding: 13px 4px; color: var(--tinta); text-decoration: none; font-weight: 600; font-size: 17px; border-bottom: 1px solid var(--linea); }
  .nav.abierta a:last-child { border-bottom: 0; }
  .nav.abierta .nav__invitacion { display: block; color: var(--violeta-fuerte); }
  .cabecera .boton--compacto span { display: none; }
  .cabecera .boton--compacto { padding: 0 12px; }
}
@media (min-width: 360px) {
  .cabecera .boton--compacto span { display: inline; }
  .cabecera .boton--compacto { padding: 0 16px 0 14px; }
}
@keyframes bajar { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

@media (min-width: 1100px) {
  .nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
  .nav a { white-space: nowrap; padding: 8px 12px; border-radius: 10px; color: var(--tinta-2); font-weight: 550; font-size: 15px; text-decoration: none; transition: color .2s, background-color .2s; }
  .nav a:hover { color: var(--tinta); background: rgba(109, 94, 252, .07); }
  .cabecera__menu { display: none; }
}
@media (min-width: 1240px) {
  .solo-escritorio { display: inline; }
}

/* ---------- Tipografía de secciones ---------- */
.etiqueta {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .75); border: 1px solid var(--linea-2); color: var(--tinta-2);
  font-size: 14px; font-weight: 600; box-shadow: var(--sombra-xs);
}
.antetitulo { color: var(--violeta-fuerte); font-weight: 700; font-size: 13.5px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.degradado { background: var(--degradado-texto); -webkit-background-clip: text; background-clip: text; color: transparent; }

.seccion { position: relative; padding-block: clamp(72px, 10vw, 124px); }
.seccion--suave { background: linear-gradient(180deg, var(--fondo-2), var(--fondo) 85%); }
.seccion__cabecera { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.seccion__cabecera h2 { font-size: clamp(30px, 4.6vw, 48px); font-weight: 800; }
.seccion__cabecera > p:not(.antetitulo) { margin-top: 16px; font-size: clamp(16.5px, 1.6vw, 19px); color: var(--tinta-2); }
.seccion__cabecera--izquierda { text-align: left; margin-inline: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-top: clamp(28px, 5vw, 64px); padding-bottom: clamp(56px, 8vw, 96px); isolation: isolate; }
.hero__fondo { position: absolute; inset: -20% -10% 0; z-index: -1; pointer-events: none; }
.hero__fondo span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.hero__fondo span:nth-child(1) { width: 560px; height: 560px; left: 52%; top: 4%; background: radial-gradient(circle, rgba(109, 94, 252, .55), transparent 65%); animation: flotar 18s ease-in-out infinite; }
.hero__fondo span:nth-child(2) { width: 460px; height: 460px; left: 72%; top: 34%; background: radial-gradient(circle, rgba(34, 211, 238, .45), transparent 65%); animation: flotar 22s ease-in-out infinite reverse; }
.hero__fondo span:nth-child(3) { width: 520px; height: 520px; left: -8%; top: -4%; background: radial-gradient(circle, rgba(236, 95, 168, .18), transparent 65%); animation: flotar 26s ease-in-out infinite; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(44, 42, 134, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(44, 42, 134, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
@keyframes flotar { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-30px, 24px) scale(1.06); } }

.hero__rejilla { display: grid; gap: clamp(40px, 6vw, 64px); align-items: center; }
.hero__texto { text-align: center; }
.hero h1 { margin-top: 22px; font-size: clamp(40px, 7.4vw, 74px); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }
.hero__entrada { margin: 22px auto 0; max-width: 560px; font-size: clamp(17px, 1.8vw, 20px); color: var(--tinta-2); }
.hero__botones { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero__plataformas { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.plataforma { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 11px; border-radius: 14px; background: rgba(255, 255, 255, .7); border: 1px solid var(--linea); color: var(--tinta-2); font-weight: 650; font-size: 14.5px; line-height: 1.15; }
.plataforma small { display: block; font-size: 11px; font-weight: 600; color: var(--tinta-4); text-transform: uppercase; letter-spacing: .06em; }
.plataforma .icono { width: 22px; height: 22px; color: var(--tinta-3); }
.plataforma--activa { border-color: rgba(18, 185, 129, .35); background: rgba(236, 253, 245, .85); }
.plataforma--activa small { color: #0d8a61; }
.plataforma--activa .icono { color: #0d8a61; }

@media (min-width: 1000px) {
  .hero__rejilla { grid-template-columns: 1.05fr .95fr; }
  .hero__texto { text-align: left; }
  .hero__entrada { margin-left: 0; }
  .hero__botones, .hero__plataformas { justify-content: flex-start; }
}

/* Teléfono de la demostración (calcado de la app real) */
.hero__visual { position: relative; display: grid; place-items: center; padding: 10px 0 20px; }
.telefono {
  position: relative; width: min(330px, 84vw); aspect-ratio: 330 / 680; border-radius: 52px; padding: 11px;
  background: linear-gradient(145deg, #2a2f4a, #0b0e1d 40%, #1c2036);
  box-shadow: 0 0 0 1.5px #3a3f5c inset, 0 40px 80px rgba(20, 18, 80, .28), 0 12px 24px rgba(16, 24, 48, .18);
}
.telefono__isla { position: absolute; top: 22px; left: 50%; width: 96px; height: 28px; transform: translateX(-50%); background: #05060c; border-radius: 20px; z-index: 3; }
.telefono__pantalla { position: relative; height: 100%; border-radius: 42px; overflow: hidden; background: linear-gradient(180deg, #eef0ff 0%, #e6e9fb 100%); display: flex; flex-direction: column; }
.app-estado { display: flex; justify-content: space-between; align-items: center; height: 46px; padding: 6px 30px 0 34px; font-size: 13.5px; font-weight: 700; color: #fff; background: linear-gradient(120deg, #4b3ff0, #5b4ff6 60%, #6d5efc); flex: none; }
.app-estado__iconos { display: flex; align-items: flex-end; gap: 2px; height: 11px; }
.app-estado__iconos i { width: 3px; background: #fff; border-radius: 1px; }
.app-estado__iconos i:nth-child(1) { height: 5px; } .app-estado__iconos i:nth-child(2) { height: 8px; } .app-estado__iconos i:nth-child(3) { height: 11px; }
.app-estado__iconos b { width: 22px; height: 11px; margin-left: 6px; border: 1.5px solid rgba(255, 255, 255, .85); border-radius: 3.5px; position: relative; }
.app-estado__iconos b::after { content: ""; position: absolute; inset: 1.5px 5px 1.5px 1.5px; background: #fff; border-radius: 1.5px; }
.app-cabecera { display: flex; align-items: center; gap: 10px; padding: 8px 16px 14px 12px; color: #fff; background: linear-gradient(120deg, #4b3ff0, #5b4ff6 60%, #6d5efc); box-shadow: 0 8px 20px rgba(75, 63, 240, .25); flex: none; }
.app-cabecera__atras { width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .16); display: grid; place-items: center; }
.app-cabecera__atras .icono { width: 16px; height: 16px; stroke-width: 2.4; }
.app-avatar { width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--tinta); display: grid; place-items: center; font-weight: 800; font-family: var(--titular); }
.app-cabecera__texto { display: flex; flex-direction: column; line-height: 1.2; flex: 1; min-width: 0; }
.app-cabecera__texto b { font-size: 16px; font-family: var(--titular); }
.app-cabecera__texto small { font-size: 12px; opacity: .85; transition: opacity .3s; }
.app-cabecera__accion .icono { width: 20px; height: 20px; }
.app-chat { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 14px 12px 10px; overflow: hidden; font-size: 12.5px; line-height: 1.45; }
.app-dia { align-self: center; padding: 3px 12px; border-radius: 999px; background: rgba(255, 255, 255, .85); font-size: 11px; font-weight: 700; color: var(--tinta-3); }
.burbuja { position: relative; max-width: 88%; padding: 10px 12px 18px; border-radius: 18px; transition: opacity .45s var(--suave), transform .45s var(--suave), max-height .5s var(--suave); }
.burbuja__hora { position: absolute; right: 10px; bottom: 5px; font-size: 9.5px; opacity: .65; }
.burbuja--yo { align-self: flex-end; background: linear-gradient(135deg, #6d5efc, #5a4ff5 55%, #4b3ff0); color: #fff; border-bottom-right-radius: 6px; box-shadow: 0 8px 18px rgba(75, 63, 240, .28); }
.burbuja--agente { align-self: flex-start; background: #fff; color: var(--tinta); border: 1px solid #e7ebf7; border-bottom-left-radius: 6px; box-shadow: 0 1px 2px rgba(16, 24, 48, .06), 0 6px 18px rgba(16, 24, 48, .05); }
.voz { display: flex; align-items: center; gap: 8px; }
.voz__play { width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .22); display: grid; place-items: center; flex: none; }
.voz__play .icono { width: 13px; height: 13px; }
.voz__onda { display: flex; align-items: center; gap: 2px; height: 22px; flex: 1; }
.voz__onda i { width: 3px; border-radius: 2px; background: rgba(255, 255, 255, .9); height: 30%; }
.voz__onda i:nth-child(3n) { height: 70%; } .voz__onda i:nth-child(4n+1) { height: 45%; } .voz__onda i:nth-child(5n+2) { height: 95%; } .voz__onda i:nth-child(7n) { height: 55%; }
.voz__tiempo { font-size: 11px; font-weight: 600; opacity: .9; }
.voz__transcripcion { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .22); font-size: 12px; opacity: .95; }
.voz__transcripcion::before { content: "Transcripción · "; font-weight: 700; opacity: .75; }
.trabajo__titulo { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--violeta-fuerte); }
.girador { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(109, 94, 252, .2); border-top-color: var(--violeta); animation: girar .8s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
.trabajo__pasos { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 5px; color: var(--tinta-3); }
.trabajo__pasos li { display: flex; align-items: center; gap: 7px; transition: color .3s, opacity .3s; opacity: .45; }
.trabajo__pasos li.hecho, .trabajo__pasos li.activo { opacity: 1; color: var(--tinta-2); }
.tic { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--linea-2); flex: none; position: relative; transition: background-color .3s, border-color .3s; }
.trabajo__pasos li.activo .tic { border-color: var(--violeta); border-top-color: transparent; animation: girar .8s linear infinite; }
.trabajo__pasos li.hecho .tic { background: var(--verde); border-color: var(--verde); }
.trabajo__pasos li.hecho .tic::after { content: ""; position: absolute; left: 4px; top: 1.5px; width: 3.5px; height: 7px; border: solid #fff; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
.resultado__titulo { font-weight: 800; font-family: var(--titular); font-size: 13px; }
.resultado__lista { margin: 6px 0 0; padding-left: 16px; display: grid; gap: 2px; }
.resultado__lista li::marker { color: var(--violeta); }
.resultado__adjunto { margin-top: 9px; display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 12px; background: var(--violeta-suave); }
.resultado__adjunto b { display: block; font-size: 12px; }
.resultado__adjunto small { display: block; font-size: 10.5px; color: var(--tinta-3); }
.resultado__icono { width: 28px; height: 28px; border-radius: 9px; background: #fff; color: var(--violeta-fuerte); display: grid; place-items: center; flex: none; }
.resultado__icono .icono { width: 16px; height: 16px; }
.resultado__acciones { margin-top: 9px; display: flex; gap: 6px; }
.resultado__acciones span { flex: 1; text-align: center; padding: 6px 0; border-radius: 999px; font-weight: 700; font-size: 11.5px; border: 1px solid var(--linea-2); color: var(--tinta-2); }
.resultado__acciones .resultado__enviar { background: var(--degradado-marca); color: #fff; border-color: transparent; }
.app-compositor { display: flex; align-items: center; gap: 8px; margin: 0 10px 18px; padding: 6px; border-radius: 999px; background: #fff; box-shadow: 0 6px 18px rgba(16, 24, 48, .08); flex: none; }
.app-compositor__mas { width: 34px; height: 34px; border-radius: 50%; background: var(--fondo-2); color: var(--violeta-fuerte); display: grid; place-items: center; }
.app-compositor__mas .icono { width: 17px; height: 17px; stroke-width: 2.4; }
.app-compositor__campo { flex: 1; font-size: 13.5px; color: var(--tinta-4); position: relative; height: 20px; }
.app-compositor__campo > span { position: absolute; inset: 0; transition: opacity .3s; white-space: nowrap; }
.campo-grabando { opacity: 0; color: var(--rojo); font-weight: 650; display: flex; align-items: center; gap: 6px; }
.campo-grabando i { width: 8px; height: 8px; border-radius: 50%; background: var(--rojo); animation: parpadeo 1s infinite; }
@keyframes parpadeo { 50% { opacity: .25; } }
.app-compositor__mic { width: 40px; height: 40px; border-radius: 50%; background: #171a44; color: #fff; display: grid; place-items: center; position: relative; transition: background-color .3s, transform .3s var(--suave); }
.app-compositor__mic .icono { width: 18px; height: 18px; }
.app-compositor__mic::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(220, 47, 69, .5); opacity: 0; }
.grabando .campo-texto { opacity: 0; }
.grabando .campo-grabando { opacity: 1; }
.grabando .app-compositor__mic { background: var(--rojo); transform: scale(1.08); }
.grabando .app-compositor__mic::after { animation: onda-mic 1.2s infinite; }
@keyframes onda-mic { 0% { opacity: .8; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.5); } }

/* Estados de la demo: los pasos aparecen por orden (JS); sin JS o con movimiento reducido se ven todos. */
.demo-activa [data-paso] { opacity: 0; transform: translateY(12px) scale(.98); max-height: 0; padding-block: 0; margin: 0; overflow: hidden; border-width: 0; }
.demo-activa [data-paso].visible { opacity: 1; transform: none; max-height: 340px; padding-block: 10px 18px; border-width: 1px; overflow: visible; }
.demo-activa .burbuja--yo.visible { border-width: 0; }
.demo-activa .burbuja--trabajo.visible { padding-bottom: 10px; }
.burbuja--trabajo { padding-bottom: 10px; }
.sin-demo .burbuja--trabajo { display: none; }

.flotante {
  position: absolute; display: none; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 16px;
  background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .9); box-shadow: var(--sombra-l); font-size: 13.5px; line-height: 1.25; z-index: 2;
  animation: levitar 7s ease-in-out infinite;
}
.flotante b { display: block; font-weight: 700; font-size: 14px; }
.flotante small { display: block; color: var(--tinta-3); font-size: 12.5px; }
.flotante__icono { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff; }
.flotante__icono--violeta { background: var(--degradado-marca); }
.escena { position: relative; }
.flotante--voz { right: calc(100% - 40px); top: 15%; }
.flotante--equipo { left: calc(100% - 34px); top: 47%; animation-delay: -2.5s; white-space: nowrap; }
.flotante--aviso { right: calc(100% - 30px); bottom: 16%; width: 250px; animation-delay: -4.5s; }
.flotante--aviso img { width: 36px; height: 36px; border-radius: 9px; }
.flotante--aviso b small { display: inline; font-weight: 500; }
.flotante--voz { white-space: nowrap; }
@keyframes levitar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
/* Solo cuando hay sitio a los lados del teléfono: no deben tapar la conversación. */
@media (min-width: 740px) and (max-width: 999px), (min-width: 1140px) { .flotante { display: flex; } }

.avatares { display: flex; }
.avatares .av + .av { margin-left: -9px; }
.av { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-style: normal; font-weight: 800; font-size: 13px; font-family: var(--titular); border: 2px solid #fff; flex: none; }
.av--violeta { background: linear-gradient(135deg, #7c6dff, #4b3ff0); }
.av--turquesa { background: linear-gradient(135deg, #2dd4bf, #0e9fb3); }
.av--rosa { background: linear-gradient(135deg, #f472b6, #db2777); }

/* ---------- Franja ---------- */
.franja { border-block: 1px solid var(--linea); background: rgba(255, 255, 255, .6); }
.franja__lista { list-style: none; margin: 0 auto; padding-block: 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 30px; }
.franja__lista li { display: inline-flex; align-items: center; gap: 9px; color: var(--tinta-2); font-weight: 600; font-size: 15px; }
.franja__lista .icono { color: var(--violeta); }

/* ---------- Pasos ---------- */
.pasos { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 860px) { .pasos { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.paso { position: relative; padding: 26px 26px 30px; border-radius: var(--radio-l); background: var(--superficie); border: 1px solid var(--linea); box-shadow: var(--sombra-s); }
.paso h3 { font-size: 21px; font-weight: 750; margin: 6px 0 8px; }
.paso p { color: var(--tinta-2); }
.paso__numero { font-family: var(--titular); font-weight: 800; font-size: 14px; color: var(--violeta); letter-spacing: .06em; }
.paso__visual { position: relative; height: 150px; margin-bottom: 22px; border-radius: 16px; background: linear-gradient(160deg, #f1efff, #eaf6ff); display: grid; place-items: center; overflow: hidden; }
.paso__mic { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #171a44; box-shadow: 0 14px 30px rgba(23, 26, 68, .3); position: relative; z-index: 1; }
.paso__mic .icono { width: 28px; height: 28px; }
.anillo { position: absolute; width: 68px; height: 68px; border-radius: 50%; border: 2px solid rgba(109, 94, 252, .45); animation: expandir 2.6s var(--suave) infinite; }
.anillo--2 { animation-delay: 1.3s; }
@keyframes expandir { from { transform: scale(1); opacity: .9; } to { transform: scale(2.4); opacity: 0; } }
.paso__visual--equipo { display: flex; justify-content: center; gap: 0; }
.paso__visual--equipo .av { width: 58px; height: 58px; font-size: 22px; border-width: 3px; box-shadow: var(--sombra-m); }
.paso__visual--equipo .av + .av { margin-left: -14px; }
.paso__visual--equipo .av:nth-child(1) { animation: saltito 2.4s ease-in-out infinite; }
.paso__visual--equipo .av:nth-child(2) { animation: saltito 2.4s ease-in-out .3s infinite; }
.paso__visual--equipo .av:nth-child(3) { animation: saltito 2.4s ease-in-out .6s infinite; }
@keyframes saltito { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-8px); } }
.paso__chispas { position: absolute; right: 22%; top: 22%; color: var(--violeta); }
.paso__chispas .icono { width: 26px; height: 26px; }
.paso__visual--hecho { gap: 12px; align-content: center; }
.paso__aviso { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: #fff; box-shadow: var(--sombra-m); font-weight: 650; font-size: 14px; }
.paso__aviso .icono { color: var(--violeta); width: 18px; height: 18px; }
.paso__ok { position: absolute; right: 18%; bottom: 18%; width: 34px; height: 34px; border-radius: 50%; background: var(--verde); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 18px rgba(18, 185, 129, .35); }
.paso__ok .icono { width: 18px; height: 18px; stroke-width: 2.6; }

/* ---------- Bento de funciones ---------- */
.bento { display: grid; gap: 18px; }
@media (min-width: 720px) { .bento { grid-template-columns: repeat(2, 1fr); } .tarjeta--ancha { grid-column: span 2; } }
@media (min-width: 1040px) { .bento { grid-template-columns: repeat(3, 1fr); } }
.tarjeta { position: relative; padding: 26px; border-radius: var(--radio-l); background: var(--superficie); border: 1px solid var(--linea); box-shadow: var(--sombra-s); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--suave), box-shadow .3s var(--suave); }
.tarjeta:hover { transform: translateY(-3px); box-shadow: var(--sombra-m); }
.tarjeta h3 { font-size: 20px; font-weight: 750; margin: 16px 0 8px; }
.tarjeta p { color: var(--tinta-2); font-size: 15.5px; }
.tarjeta__icono { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: var(--violeta-fuerte); background: var(--violeta-suave); }
.tarjeta__icono .icono { width: 22px; height: 22px; }
.tarjeta--ancha { display: grid; gap: 22px; }
@media (min-width: 720px) { .tarjeta--ancha { grid-template-columns: 1.1fr 1fr; align-items: center; } }

.tarjeta--walkie { background: radial-gradient(120% 140% at 100% 0%, rgba(109, 94, 252, .14), transparent 55%), var(--superficie); }
.walkie { position: relative; display: grid; justify-items: center; gap: 16px; padding: 22px 10px; border-radius: 18px; background: linear-gradient(160deg, #171a44, #2c2a86); color: #fff; overflow: hidden; }
.walkie__onda { display: flex; align-items: center; gap: 4px; height: 56px; }
.walkie__onda i { width: 5px; border-radius: 3px; background: linear-gradient(180deg, #8fe9ff, #8b7bff); height: 20%; animation: barra 1.1s ease-in-out infinite; }
.walkie__onda i:nth-child(2n) { animation-delay: -.2s; } .walkie__onda i:nth-child(3n) { animation-delay: -.45s; } .walkie__onda i:nth-child(5n) { animation-delay: -.7s; } .walkie__onda i:nth-child(7n) { animation-delay: -.9s; }
@keyframes barra { 0%, 100% { height: 18%; } 50% { height: 95%; } }
.walkie__boton { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #7c6dff, #4b3ff0); box-shadow: 0 0 0 10px rgba(139, 123, 255, .16), 0 0 0 22px rgba(139, 123, 255, .08), 0 16px 30px rgba(0, 0, 0, .35); }
.walkie__boton .icono { width: 30px; height: 30px; }
.walkie__pista { font-size: 13px; opacity: .8; font-weight: 600; letter-spacing: .02em; }

.mini-agentes { margin-top: 18px; display: grid; gap: 8px; }
.mini-agentes span { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--fondo-2); font-weight: 700; font-size: 14px; }
.mini-agentes small { margin-left: auto; color: var(--tinta-3); font-weight: 600; font-size: 12.5px; }
.mini-grupo { margin-top: 18px; display: grid; gap: 8px; }
.mini-burbuja { display: flex; align-items: flex-start; gap: 9px; padding: 9px 11px; border-radius: 14px; background: var(--fondo-2); font-size: 13.5px; line-height: 1.4; color: var(--tinta-2); }
.mini-burbuja .av { width: 24px; height: 24px; font-size: 11px; border-width: 0; }
.mini-mencion { margin-top: 18px; padding: 11px 13px; border-radius: 14px; background: var(--fondo-2); font-size: 14px; color: var(--tinta-2); }
.chip-mencion { display: inline-block; padding: 1px 8px; border-radius: 999px; background: rgba(109, 94, 252, .14); color: var(--violeta-fuerte); font-weight: 700; }
.mini-niveles { margin-top: auto; padding-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.mini-niveles span { text-align: center; padding: 8px 4px; border-radius: 10px; background: var(--fondo-2); font-size: 12.5px; font-weight: 700; color: var(--tinta-3); }
.mini-niveles .activo { background: var(--degradado-marca); color: #fff; box-shadow: var(--sombra-marca); }
.mini-niveles--permiso .activo { background: linear-gradient(135deg, #18c993, #0e9f72); box-shadow: 0 10px 22px rgba(18, 185, 129, .28); }
.herramientas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.herramientas li { display: grid; justify-items: center; gap: 8px; padding: 16px 6px; border-radius: 16px; background: var(--fondo-2); border: 1px solid var(--linea); font-weight: 650; font-size: 13.5px; color: var(--tinta-2); transition: transform .3s var(--suave), background-color .3s; }
.herramientas li:hover { transform: translateY(-2px); background: #fff; }
.herramientas .icono { width: 26px; height: 26px; color: var(--violeta-fuerte); }
.mini-agenda { list-style: none; margin: auto 0 0; padding: 18px 0 0; display: grid; gap: 6px; }
.mini-agenda li { padding: 9px 12px; border-radius: 12px; background: var(--fondo-2); font-size: 13.5px; color: var(--tinta-2); }
.mini-agenda b { color: var(--violeta-fuerte); margin-right: 6px; }
.mini-tabla { margin-top: auto; padding-top: 18px; display: grid; grid-template-columns: 1fr auto; font-size: 13.5px; }
.mini-tabla span { padding: 7px 10px; border-bottom: 1px solid var(--linea); }
.mini-tabla span:nth-child(-n+2) { font-weight: 700; color: var(--tinta-3); background: var(--fondo-2); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.mini-tabla span:nth-child(2n) { text-align: right; font-variant-numeric: tabular-nums; }
.mini-aviso { margin-top: auto; padding-top: 18px; display: flex; }
.mini-aviso { align-items: center; gap: 10px; font-size: 14px; }
.mini-aviso img { width: 28px; height: 28px; border-radius: 8px; }
.mini-aviso span { padding: 10px 12px; border-radius: 14px; background: var(--fondo-2); flex: 1; color: var(--tinta-2); }

/* ---------- Perfiles de agentes ---------- */
.perfiles { display: grid; gap: 16px; }
@media (min-width: 640px) { .perfiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .perfiles { grid-template-columns: repeat(3, 1fr); } }
.perfil { padding: 24px; border-radius: var(--radio-l); background: var(--superficie); border: 1px solid var(--linea); box-shadow: var(--sombra-xs); display: flex; flex-direction: column; gap: 8px; transition: transform .3s var(--suave), box-shadow .3s var(--suave), border-color .3s; }
.perfil:hover { transform: translateY(-3px); box-shadow: var(--sombra-m); border-color: var(--linea-2); }
.perfil h3 { font-size: 19px; font-weight: 750; margin-top: 8px; }
.perfil p { color: var(--tinta-2); font-size: 15.5px; }
.perfil__icono { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; }
.perfil__icono .icono { width: 24px; height: 24px; }
.perfil__icono--violeta { background: linear-gradient(135deg, #7c6dff, #4b3ff0); }
.perfil__icono--turquesa { background: linear-gradient(135deg, #2dd4bf, #0e9fb3); }
.perfil__icono--azul { background: linear-gradient(135deg, #38bdf8, #1d74d8); }
.perfil__icono--rosa { background: linear-gradient(135deg, #f472b6, #db2777); }
.perfil__icono--indigo { background: linear-gradient(135deg, #3b3a9e, #171a44); }
.perfil__icono--ambar { background: linear-gradient(135deg, #fbbf24, #ea7c0c); }
.perfil__ejemplo { margin-top: auto; padding-top: 10px; font-size: 14px; color: var(--violeta-fuerte); font-weight: 600; font-style: italic; }
.nota-pie { margin-top: 26px; text-align: center; color: var(--tinta-3); font-size: 14px; }

/* ---------- Seguridad (oscura) ---------- */
.seccion--oscura { background: linear-gradient(160deg, var(--marino) 0%, #0b1440 55%, var(--marino-2) 100%); color: #d9def3; overflow: hidden; isolation: isolate; }
.seguridad__fondo { position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 60% at 85% 10%, rgba(109, 94, 252, .35), transparent 70%), radial-gradient(40% 50% at 10% 90%, rgba(34, 211, 238, .18), transparent 70%); }
.seccion--oscura h2, .seccion--oscura h3 { color: #fff; }
.seccion--oscura .antetitulo { color: #a99fff; }
.seccion--oscura .seccion__cabecera > p:not(.antetitulo) { color: #b8c0de; }
.seccion--oscura .seccion__cabecera .boton { margin-top: 28px; }
.seguridad__rejilla { display: grid; gap: 40px; }
@media (min-width: 1000px) { .seguridad__rejilla { grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; } .seguridad__rejilla .seccion__cabecera { position: sticky; top: calc(var(--cabecera-alto) + 40px); margin-bottom: 0; } }
.garantias { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 640px) { .garantias { grid-template-columns: repeat(2, 1fr); } }
.garantia { padding: 22px; border-radius: var(--radio-l); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); transition: background-color .3s, border-color .3s; }
.garantia:hover { background: rgba(255, 255, 255, .08); border-color: rgba(169, 159, 255, .35); }
.garantia .icono { width: 26px; height: 26px; color: #9f95ff; }
.garantia h3 { font-size: 18px; margin: 14px 0 6px; font-weight: 700; }
.garantia p { color: #b8c0de; font-size: 15px; }

/* ---------- Apps ---------- */
.apps { display: grid; gap: 18px; }
@media (min-width: 860px) { .apps { grid-template-columns: 1.15fr 1fr 1fr; } }
.app-tarjeta { position: relative; padding: 28px; border-radius: var(--radio-l); background: var(--superficie); border: 1px solid var(--linea); box-shadow: var(--sombra-s); display: flex; flex-direction: column; gap: 10px; }
.app-tarjeta h3 { font-size: 22px; font-weight: 750; margin-top: 6px; }
.app-tarjeta p { color: var(--tinta-2); flex: 1; }
.app-tarjeta .boton { margin-top: 10px; align-self: flex-start; }
.app-tarjeta--activa { background: radial-gradient(120% 120% at 100% 0%, rgba(18, 185, 129, .1), transparent 60%), var(--superficie); border-color: rgba(18, 185, 129, .3); }
.app-tarjeta__icono { width: 40px; height: 40px; color: var(--violeta-fuerte); margin-top: 6px; }
.app-tarjeta__estado { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: rgba(18, 185, 129, .12); color: #0b7a56; }
.app-tarjeta__estado--pronto { background: var(--violeta-suave); color: var(--violeta-fuerte); }
.tienda { margin-top: 10px; align-self: flex-start; display: inline-flex; flex-direction: column; padding: 9px 18px; border-radius: 12px; background: #0f1730; color: #fff; font-weight: 700; font-size: 17px; line-height: 1.1; opacity: .9; }
.tienda small { font-size: 10.5px; font-weight: 500; opacity: .8; }

/* ---------- Invitación ---------- */
.invitacion { display: grid; gap: 36px; align-items: start; }
@media (min-width: 960px) { .invitacion { grid-template-columns: .9fr 1.1fr; gap: 64px; } }
.invitacion__texto h2 { font-size: clamp(30px, 4.6vw, 46px); font-weight: 800; }
.invitacion__texto > p { margin-top: 16px; font-size: 18px; color: var(--tinta-2); }
.lista-check { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.lista-check li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--tinta-2); }
.lista-check .icono { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: rgba(18, 185, 129, .14); color: #0d8a61; stroke-width: 2.6; }
.invitacion__ya { margin-top: 28px; color: var(--tinta-3); }
.formulario { position: relative; padding: clamp(22px, 3.4vw, 34px); border-radius: var(--radio-xl); background: var(--superficie); border: 1px solid var(--linea); box-shadow: var(--sombra-l); }
.formulario form { display: grid; gap: 16px; }
.formulario__fila { display: grid; gap: 16px; }
@media (min-width: 560px) { .formulario__fila { grid-template-columns: 1fr 1fr; } }
.campo-bloque { display: grid; gap: 7px; }
.campo-bloque label, .acceso__form > label { font-weight: 650; font-size: 14.5px; color: var(--tinta-2); }
.campo-bloque small { font-weight: 500; color: var(--tinta-4); }
input[type="text"], input[type="email"], textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--tinta); padding: 13px 15px; border-radius: 14px;
  border: 1.5px solid var(--linea-2); background: #fbfbff; transition: border-color .2s, box-shadow .2s, background-color .2s; outline: none;
}
textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: var(--tinta-4); }
input:focus, textarea:focus { border-color: var(--violeta); box-shadow: var(--anillo); background: #fff; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--rojo); box-shadow: 0 0 0 4px rgba(220, 47, 69, .12); }
.casilla { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--tinta-2); cursor: pointer; line-height: 1.5; }
.casilla input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--violeta-fuerte); flex: none; cursor: pointer; }
.aviso { padding: 12px 14px; border-radius: 12px; font-size: 14.5px; line-height: 1.45; }
.aviso--error { background: #fff1f3; border: 1px solid #ffc9d1; color: #a3172c; }
.aviso a { color: inherit; font-weight: 700; }
.formulario__exito { text-align: center; padding: 30px 10px; outline: none; }
.formulario__exito h3 { font-size: 26px; margin: 18px 0 10px; }
.formulario__exito p { color: var(--tinta-2); font-size: 17px; }
.formulario__exito-icono { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #18c993, #0e9f72); color: #fff; box-shadow: 0 14px 30px rgba(18, 185, 129, .35); animation: aparecer .5s var(--suave); }
.formulario__exito-icono .icono { width: 30px; height: 30px; stroke-width: 2.6; }
@keyframes aparecer { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Preguntas ---------- */
.preguntas { display: grid; gap: 36px; }
@media (min-width: 960px) { .preguntas { grid-template-columns: .8fr 1.2fr; gap: 64px; } }
.acordeon { display: grid; gap: 12px; }
.acordeon details { border-radius: 18px; background: var(--superficie); border: 1px solid var(--linea); box-shadow: var(--sombra-xs); transition: box-shadow .25s, border-color .25s; }
.acordeon details[open] { box-shadow: var(--sombra-m); border-color: var(--linea-2); }
.acordeon summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 19px 22px; font-family: var(--titular); font-weight: 700; font-size: 17.5px; letter-spacing: -.01em; }
.acordeon summary::-webkit-details-marker { display: none; }
.acordeon summary .icono { width: 22px; height: 22px; color: var(--violeta); transition: transform .3s var(--suave); flex: none; }
.acordeon details[open] summary .icono { transform: rotate(180deg); }
.acordeon details p { padding: 0 22px 20px; color: var(--tinta-2); }

/* ---------- Cierre ---------- */
.cierre { padding: clamp(24px, 4vw, 40px) 0 clamp(72px, 9vw, 112px); }
.cierre__tarjeta {
  position: relative; overflow: hidden; isolation: isolate; text-align: center; color: #fff;
  padding: clamp(48px, 7vw, 84px) clamp(22px, 5vw, 64px); border-radius: clamp(24px, 3vw, 36px);
  background: radial-gradient(70% 90% at 0% 0%, rgba(34, 211, 238, .35), transparent 60%), linear-gradient(135deg, #5a4ff5 0%, #3b2fd0 45%, #23207a 100%);
  box-shadow: 0 30px 70px rgba(44, 42, 134, .35);
}
.cierre__marca { position: absolute; right: -40px; bottom: -50px; width: 260px; height: 260px; opacity: .14; z-index: -1; transform: rotate(-12deg); }
.cierre h2 { color: #fff; font-size: clamp(30px, 4.8vw, 50px); font-weight: 800; }
.cierre p { margin: 16px auto 0; max-width: 560px; color: rgba(255, 255, 255, .85); font-size: clamp(16.5px, 1.6vw, 19px); }
.cierre__botones { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Pie ---------- */
.pie { background: var(--fondo-2); border-top: 1px solid var(--linea); padding-top: 56px; }
.pie__rejilla { display: grid; gap: 36px; padding-bottom: 40px; }
@media (min-width: 760px) { .pie__rejilla { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.pie__marca p { margin-top: 14px; color: var(--tinta-3); max-width: 340px; font-size: 15px; }
.pie__plataformas { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; font-weight: 600; font-size: 14.5px; color: var(--tinta-2); }
.pie__plataformas li { display: flex; align-items: center; gap: 10px; }
.punto--pronto { background: transparent; border: 2px solid var(--violeta); width: 9px; height: 9px; }
.pie__columna { display: flex; flex-direction: column; gap: 10px; }
.pie__columna h2 { font-family: var(--texto); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--tinta-3); margin-bottom: 4px; font-weight: 700; }
.pie__columna a { color: var(--tinta-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.pie__columna a:hover { color: var(--violeta-fuerte); }
.pie__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 22px calc(22px + env(safe-area-inset-bottom)); border-top: 1px solid var(--linea); color: var(--tinta-3); font-size: 14px; }

/* ---------- Ventana de acceso ---------- */
.acceso { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100dvh; width: 100%; color: var(--tinta); }
.acceso::backdrop { background: rgba(10, 14, 40, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.acceso[open] { display: flex; align-items: flex-end; justify-content: center; height: 100%; }
.acceso[open] .acceso__tarjeta { animation: subir .35s var(--suave); }
.acceso__tarjeta {
  position: relative; width: 100%; max-width: 440px; max-height: 100%; overflow-y: auto; text-align: center;
  padding: 34px clamp(20px, 5vw, 34px) calc(26px + env(safe-area-inset-bottom)); background: var(--superficie);
  border-radius: 28px 28px 0 0; box-shadow: 0 -10px 40px rgba(10, 14, 40, .2);
}
@media (min-width: 560px) {
  .acceso[open] { align-items: center; padding: 20px; }
  .acceso__tarjeta { border-radius: 28px; box-shadow: var(--sombra-l); padding-bottom: 28px; }
}
@keyframes subir { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.acceso__cerrar { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--fondo-2); display: grid; place-items: center; cursor: pointer; color: var(--tinta-2); }
.acceso__cerrar:hover { background: var(--fondo-3); }
.acceso__logo { width: 56px; height: 56px; margin: 0 auto; }
.acceso h2 { margin-top: 14px; font-size: 26px; font-weight: 800; }
.acceso__texto { margin-top: 8px; color: var(--tinta-2); font-size: 15.5px; }
.acceso__form { margin-top: 22px; display: grid; gap: 10px; text-align: left; }
.campo--icono { position: relative; }
.campo--icono .icono { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--tinta-4); pointer-events: none; }
.campo--icono input { padding-left: 46px; }
.acceso__form .boton { margin-top: 6px; }
.acceso__recordado { font-size: 14px; color: var(--tinta-2); background: var(--fondo-2); padding: 10px 12px; border-radius: 12px; }
.acceso__pie { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--linea); display: grid; gap: 10px; font-size: 14px; color: var(--tinta-3); }
.acceso__pie p:first-child .icono { display: inline-block; vertical-align: -2px; margin-right: 5px; }
.acceso__pie .icono { width: 15px; height: 15px; }
.marca { flex: none; }
.acceso__pie a { font-weight: 650; }
body.con-modal { overflow: hidden; }

/* ---------- Páginas legales y de soporte ---------- */
.doc-cabecera { position: relative; padding: clamp(48px, 7vw, 84px) 0 clamp(28px, 4vw, 40px); overflow: hidden; isolation: isolate; }
.doc-cabecera::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 120% at 80% 0%, rgba(109, 94, 252, .16), transparent 60%), radial-gradient(40% 90% at 10% 10%, rgba(34, 211, 238, .12), transparent 60%); }
.doc-cabecera h1 { font-size: clamp(34px, 5.4vw, 54px); font-weight: 800; letter-spacing: -.03em; }
.doc-cabecera p { margin-top: 14px; color: var(--tinta-2); font-size: 18px; max-width: 680px; }
.doc-cabecera .fecha { font-size: 14.5px; color: var(--tinta-3); }
.doc { max-width: 820px; margin-inline: auto; padding-bottom: clamp(64px, 9vw, 110px); }
.doc article { padding: clamp(24px, 4vw, 44px); border-radius: var(--radio-xl); background: var(--superficie); border: 1px solid var(--linea); box-shadow: var(--sombra-s); }
.doc h2 { font-size: 22px; font-weight: 750; margin: 36px 0 12px; scroll-margin-top: calc(var(--cabecera-alto) + 16px); }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 17.5px; font-weight: 700; margin: 22px 0 8px; }
.doc p, .doc li { color: var(--tinta-2); }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 22px; margin: 10px 0; }
.doc li { margin: 6px 0; }
.doc li::marker { color: var(--violeta); }
.doc .ficha { margin: 14px 0; padding: 16px 18px; border-radius: 16px; background: var(--fondo-2); border: 1px solid var(--linea); }
.doc .ficha p { margin: 0; }
.doc .ficha p + p { margin-top: 4px; }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--linea); vertical-align: top; color: var(--tinta-2); }
.doc th { background: var(--fondo-2); color: var(--tinta); font-weight: 700; font-size: 14px; }
.doc .tabla-scroll { overflow-x: auto; }
.indice { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.indice a { padding: 7px 13px; border-radius: 999px; background: rgba(255, 255, 255, .8); border: 1px solid var(--linea-2); text-decoration: none; color: var(--tinta-2); font-size: 14px; font-weight: 600; }
.indice a:hover { color: var(--violeta-fuerte); border-color: #c4cbea; }

.soporte-rejilla { display: grid; gap: 16px; margin-bottom: 28px; }
@media (min-width: 720px) { .soporte-rejilla { grid-template-columns: repeat(3, 1fr); } }
.soporte-tarjeta { padding: 22px; border-radius: var(--radio-l); background: var(--superficie); border: 1px solid var(--linea); box-shadow: var(--sombra-s); display: flex; flex-direction: column; gap: 8px; }
.soporte-tarjeta h2 { font-size: 18px; margin: 10px 0 0; }
.soporte-tarjeta p { color: var(--tinta-2); font-size: 15px; flex: 1; }
.soporte-tarjeta a.boton { align-self: flex-start; margin-top: 8px; }

/* ---------- 404 ---------- */
.error-404 { min-height: calc(100dvh - var(--cabecera-alto) - 220px); display: grid; place-items: center; text-align: center; padding-block: 72px; }
.error-404 .codigo { font-family: var(--titular); font-weight: 800; font-size: clamp(90px, 18vw, 160px); line-height: 1; letter-spacing: -.05em; }
.error-404 h1 { font-size: clamp(26px, 4vw, 36px); margin-top: 8px; }
.error-404 p { margin-top: 12px; color: var(--tinta-2); font-size: 18px; }
.error-404 .botones { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ---------- Aparición al hacer scroll ---------- */
.js .revelar { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--suave), transform .8s var(--suave); }
.js .revelar.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .revelar { opacity: 1; transform: none; }
}
