/* ============================================================
   AIDA — Sistema de diseño
   ------------------------------------------------------------
   Paleta muestreada del arte original del isotipo (el pingüino)
   y alineada con el Manual de Identidad Visual.
   Ningún color, espacio, radio o tiempo vive suelto: todo pasa
   por un token declarado acá abajo.
   ============================================================ */

/* ---------- 1. Tokens ------------------------------------- */
:root {
  /* Marca */
  --c-teal-50:     #F2FAFA;
  --c-teal-100:    #E4F4F4;
  --c-teal-200:    #C6E8E8;
  --c-teal-300:    #8FD5D2;
  --c-teal-400:    #3BB7B4;   /* secundario del manual */
  --c-teal-500:    #1FA6A0;   /* cabeza del isotipo */
  --c-teal-600:    #17878E;
  --c-primary:     #196F77;   /* primario del manual */
  --c-primary-700: #125A63;
  --c-primary-800: #0E464F;
  --c-primary-900: #0A343C;
  --c-blue:        #1E6E96;   /* base del degradado del cuerpo */
  --c-ink:         #14343E;   /* contorno del isotipo */
  --c-gold:        #F2B84D;   /* pico y patas — acento */
  --c-gold-600:    #DA9E2E;
  --c-gold-100:    #FDF2DC;

  /* Neutros */
  --c-white:       #FFFFFF;
  --c-surface:     #F6F9F9;
  --c-surface-2:   #EDF3F3;
  --c-border:      #DCE7E8;
  --c-border-soft: #E9F0F0;
  --c-text:        #22363C;
  --c-muted:       #55696F;
  --c-muted-2:     #7A8C92;

  /* Semántica */
  --c-bg:        var(--c-white);
  --c-bg-alt:    var(--c-surface);
  --c-danger:    #C0392F;
  --c-danger-bg: #FDECEA;
  --c-ok:        #1B8A5F;
  --c-ok-bg:     #E7F6EF;

  /* Degradados de marca */
  --g-brand: linear-gradient(140deg, var(--c-teal-500) 0%, var(--c-primary) 48%, var(--c-blue) 100%);
  --g-deep:  linear-gradient(160deg, var(--c-primary-900) 0%, var(--c-primary-700) 48%, #14707E 100%);
  --g-gold:  linear-gradient(135deg, #F8CE79 0%, var(--c-gold) 52%, var(--c-gold-600) 100%);

  /* Tipografía */
  --font-head: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

  /* Escala fluida */
  --text-xs:  0.875rem;
  --text-sm:  1rem;
  --text-md:  1.0625rem;
  --text-lg:  clamp(1.125rem, 0.4vw + 1.05rem, 1.3rem);
  --text-xl:  clamp(1.3rem, 0.8vw + 1.1rem, 1.65rem);
  --text-2xl: clamp(1.75rem, 1.7vw + 1.28rem, 2.6rem);
  --text-3xl: clamp(2.05rem, 3.1vw + 1.3rem, 3.7rem);

  /* Espaciado (base 8) */
  --sp-1: 0.5rem;  --sp-2: 1rem;   --sp-3: 1.5rem;  --sp-4: 2rem;
  --sp-5: 2.5rem;  --sp-6: 3rem;   --sp-8: 4rem;    --sp-10: 5rem;
  --sp-12: 6rem;

  /* Radios */
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 28px;
  --r-pill: 999px;

  /* Sombras en capas */
  --sh-xs:   0 1px 2px rgba(20,52,62,.06), 0 2px 6px rgba(20,52,62,.05);
  --sh-sm:   0 2px 4px rgba(20,52,62,.05), 0 6px 16px rgba(20,52,62,.07);
  --sh-md:   0 4px 8px rgba(20,52,62,.05), 0 14px 34px rgba(20,52,62,.10);
  --sh-lg:   0 8px 16px rgba(20,52,62,.06), 0 30px 60px rgba(20,52,62,.14);
  --sh-gold: 0 6px 22px rgba(218,158,46,.32);

  /* Movimiento */
  --ease:        cubic-bezier(.4, 0, .2, 1);
  --ease-out:    cubic-bezier(.16, .84, .44, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .64, 1);

  /* Layout */
  --content: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --nav-h: 74px;
}

/* Modo "texto grande": lo activa el usuario desde la barra superior.
   Como toda la escala es relativa, el sitio entero crece parejo. */
html.is-large { font-size: 19px; }
html.is-large body { line-height: 1.78; }

/* ---------- 2. Reset y base ------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + var(--sp-3));
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, textarea { font: inherit; }

:focus-visible {
  outline: 3px solid var(--c-teal-400);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

::selection { background: var(--c-teal-200); color: var(--c-primary-900); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--c-ink);
  text-wrap: balance;
}

p { text-wrap: pretty; }

/* ---------- 3. Utilidades --------------------------------- */
.container {
  width: 100%;
  max-width: var(--content);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 820px; }

.section { padding-block: clamp(3.5rem, 7vw, 7rem); }
.section--alt { background: var(--c-bg-alt); }
.section--tint {
  background:
    radial-gradient(66% 80% at 8% 0%, var(--c-teal-50) 0%, transparent 62%),
    var(--c-white);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; left: var(--sp-2); top: -120px; z-index: 200;
  background: var(--c-ink); color: var(--c-white);
  padding: .8rem 1.3rem; border-radius: var(--r-sm);
  font-weight: 600; transition: top 180ms var(--ease);
}
.skip-link:focus { top: var(--sp-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-head);
  font-size: var(--text-xs); font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-teal-600);
  margin-bottom: var(--sp-2);
}
.eyebrow::before {
  content: ''; width: 24px; height: 2px; border-radius: 2px;
  background: var(--c-teal-400);
}
.eyebrow--light { color: var(--c-teal-300); }
.eyebrow--light::before { background: var(--c-gold); }
.eyebrow--center { justify-content: center; }

.section-head { max-width: 720px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-title { font-size: var(--text-2xl); margin-bottom: var(--sp-2); }
.section-desc { font-size: var(--text-lg); color: var(--c-muted); line-height: 1.65; }
.lead { font-size: var(--text-lg); color: var(--c-muted); }

/* ---------- 4. Botones y píldoras ------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--font-head); font-weight: 600;
  font-size: var(--text-sm); line-height: 1;
  padding: .95rem 1.7rem;
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  transition: transform 200ms var(--ease-spring), box-shadow 220ms var(--ease),
              background 200ms var(--ease), color 200ms var(--ease),
              border-color 200ms var(--ease);
  white-space: nowrap;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--g-gold); color: var(--c-ink); box-shadow: var(--sh-gold); }
.btn--primary:hover { box-shadow: 0 10px 30px rgba(218,158,46,.42); }

.btn--dark { background: var(--c-primary); color: var(--c-white); box-shadow: 0 6px 20px rgba(25,111,119,.28); }
.btn--dark:hover { background: var(--c-primary-700); }

.btn--outline { background: var(--c-white); color: var(--c-primary); border-color: var(--c-border); }
.btn--outline:hover { border-color: var(--c-primary); background: var(--c-teal-50); }

.btn--ghost {
  background: rgba(255,255,255,.12); color: var(--c-white);
  border-color: rgba(255,255,255,.3);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.55); }

.btn--sm { padding: .62rem 1.15rem; font-size: var(--text-xs); }
.btn--block { width: 100%; }

.btn[data-loading] { pointer-events: none; opacity: .8; }
.btn[data-loading]::after {
  content: ''; width: 1em; height: 1em; border-radius: 50%;
  border: 2px solid currentColor; border-top-color: transparent;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.pill {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: var(--text-xs); font-weight: 600;
  padding: .38rem .85rem; border-radius: var(--r-pill);
  background: var(--c-teal-100); color: var(--c-primary);
}
.pill--gold { background: var(--c-gold-100); color: #8A6210; }
.pill--ok   { background: var(--c-ok-bg);   color: var(--c-ok); }
.pill--soft { background: var(--c-surface-2); color: var(--c-muted); }
.pill svg { width: 14px; height: 14px; }

/* ---------- 5. Barra de anuncio --------------------------- */
.topbar {
  position: relative; z-index: 60;
  background: var(--c-ink);
  color: rgba(255,255,255,.9);
  font-size: var(--text-xs);
}
.topbar__inner {
  display: flex; align-items: center; justify-content: center;
  gap: .7rem; padding-block: .65rem; text-align: center;
  flex-wrap: wrap;
}
.topbar strong { color: var(--c-gold); font-weight: 700; }
.topbar a {
  color: var(--c-white);
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: rgba(255,255,255,.35);
  white-space: nowrap; font-weight: 600;
}
.topbar a:hover { text-decoration-color: var(--c-gold); }

/* ---------- 6. Navegación --------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.84);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 250ms var(--ease), border-color 250ms var(--ease),
              background 250ms var(--ease);
}
.nav.is-scrolled {
  background: rgba(255,255,255,.95);
  border-bottom-color: var(--c-border-soft);
  box-shadow: var(--sh-xs);
}
.nav__inner { display: flex; align-items: center; gap: var(--sp-3); min-height: var(--nav-h); }

.brand { display: flex; align-items: center; gap: .6rem; flex: none; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--font-head); font-weight: 800;
  font-size: 1.35rem; letter-spacing: -.03em; color: var(--c-primary);
}
.brand__tag {
  font-size: .625rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--c-muted-2);
}

.nav__links { display: flex; align-items: center; gap: clamp(.4rem, 1.5vw, 1.4rem); margin-inline: auto; }
.nav__link {
  position: relative;
  font-size: var(--text-sm); font-weight: 500; color: var(--c-muted);
  padding: .5rem .3rem;
  white-space: nowrap;
  transition: color 160ms var(--ease);
}
.nav__link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; border-radius: 2px; background: var(--c-teal-400);
  transform: scaleX(0); transform-origin: left;
  transition: transform 220ms var(--ease);
}
.nav__link:hover { color: var(--c-primary); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--c-primary); font-weight: 600; }

.nav__actions { display: flex; align-items: center; gap: .6rem; flex: none; }

.a11y-toggle {
  display: inline-flex; align-items: center; gap: .4rem;
  border: 1px solid var(--c-border); border-radius: var(--r-pill);
  padding: .45rem .85rem;
  font-family: var(--font-head); font-weight: 600; font-size: var(--text-xs);
  color: var(--c-muted);
  transition: border-color 180ms var(--ease), color 180ms var(--ease), background 180ms var(--ease);
}
.a11y-toggle:hover { border-color: var(--c-primary); color: var(--c-primary); }
.a11y-toggle[aria-pressed="true"] {
  background: var(--c-primary); border-color: var(--c-primary); color: var(--c-white);
}
.a11y-toggle svg { width: 17px; height: 17px; }

.nav__burger {
  display: none; flex-direction: column; gap: 5px;
  padding: .6rem; border-radius: var(--r-sm);
  border: 1px solid var(--c-border);
}
.nav__burger span {
  display: block; width: 20px; height: 2px; border-radius: 2px;
  background: var(--c-ink);
  transition: transform 260ms var(--ease), opacity 200ms var(--ease);
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__drawer {
  display: none;
  border-top: 1px solid var(--c-border-soft);
  background: var(--c-white);
  padding: var(--sp-2) var(--gutter) var(--sp-4);
}
.nav__drawer ul { display: flex; flex-direction: column; }
.nav__drawer .nav__link {
  display: block; font-size: var(--text-lg); padding: .8rem 0;
  border-bottom: 1px solid var(--c-border-soft);
}
.nav__drawer .btn { margin-top: var(--sp-3); }

/* ---------- 7. Hero --------------------------------------- */
.hero {
  position: relative;
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(55% 55% at 85% 8%,  rgba(59,183,180,.20) 0%, transparent 60%),
    radial-gradient(60% 60% at 5% 55%,  rgba(242,184,77,.14) 0%, transparent 55%),
    linear-gradient(180deg, #FBFDFD 0%, var(--c-teal-50) 100%);
  overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(25,111,119,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25,111,119,.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(80% 60% at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(80% 60% at 50% 0%, #000 0%, transparent 75%);
}

.hero__inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero__title {
  font-size: var(--text-3xl);
  font-weight: 800;
  line-height: 1.04;
  margin-bottom: var(--sp-3);
  text-wrap: balance;
}
/* Dice qué es AIDA con las palabras que la gente busca. Va dentro del h1 porque
   es la señal más fuerte para los buscadores, pero chica, para no competir con
   el titular. */
.hero__kicker {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.3;
  color: var(--c-teal-600);
  margin-bottom: .55em;
}
/* El resaltado va como fondo del inline, no como pseudo-elemento:
   así se repinta en cada línea cuando el titular se parte en pantallas chicas. */
.hero__title em {
  font-style: normal;
  color: var(--c-primary);
  background-image: linear-gradient(90deg, rgba(242,184,77,.62), rgba(59,183,180,.46));
  background-repeat: no-repeat;
  background-size: 100% .28em;
  background-position: 0 84%;
  padding-inline: .06em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero__desc {
  font-size: var(--text-lg);
  color: var(--c-muted);
  max-width: 34em;
  margin-bottom: var(--sp-4);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-4); }

.hero__trust {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--c-border);
}
.hero__trust-label {
  font-size: var(--text-xs); color: var(--c-muted-2);
  font-weight: 600; letter-spacing: .04em;
}
.hero__trust ul { display: flex; flex-wrap: wrap; gap: .45rem; }
.hero__trust li {
  font-family: var(--font-head); font-weight: 600; font-size: var(--text-xs);
  color: var(--c-primary);
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  padding: .3rem .8rem;
}

/* Visual del hero: mockup de chat + pingüino */
.hero__visual { position: relative; display: flex; justify-content: center; }
.hero__peng {
  position: absolute; z-index: 2;
  width: clamp(110px, 15vw, 168px);
  right: -6%; bottom: -4%;
  filter: drop-shadow(0 18px 28px rgba(14,70,79,.28));
  animation: float 5.5s var(--ease) infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-12px) rotate(-2deg); }
}

/* ---------- 8. Mockup de chat ----------------------------- */
.chat {
  position: relative; z-index: 1;
  width: min(400px, 100%);
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  overflow: hidden;
}
.chat::before {
  content: ''; position: absolute; inset: -40% -20% auto -20%; height: 70%;
  background: radial-gradient(circle at 50% 0%, rgba(59,183,180,.18), transparent 70%);
  pointer-events: none;
}

.chat__bar {
  display: flex; align-items: center; gap: .7rem;
  padding: .85rem 1rem;
  background: var(--g-deep);
  color: var(--c-white);
}
.chat__avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--c-white); object-fit: contain; padding: 2px;
  flex: none;
}
.chat__name { font-family: var(--font-head); font-weight: 600; font-size: var(--text-sm); line-height: 1.2; }
.chat__status {
  display: flex; align-items: center; gap: .35rem;
  font-size: .75rem; color: rgba(255,255,255,.7);
}
.chat__status i {
  width: 7px; height: 7px; border-radius: 50%; background: #55D6A0;
  animation: blink 2.4s var(--ease) infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.chat__bar-icon { margin-left: auto; opacity: .6; width: 18px; height: 18px; }

.chat__body {
  display: flex; flex-direction: column; gap: .6rem;
  padding: 1rem;
  height: 430px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 15%, rgba(59,183,180,.07), transparent 45%),
    var(--c-surface);
  scroll-behavior: smooth;
}

.msg {
  display: none;
  max-width: 84%;
  font-size: .9375rem;
  line-height: 1.5;
  padding: .65rem .9rem;
  border-radius: var(--r-md);
  opacity: 0;
  transform: translateY(14px) scale(.97);
  transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-spring);
}
.msg.is-shown { display: block; }
.msg.is-in { opacity: 1; transform: none; }

.msg--out {
  align-self: flex-end;
  background: var(--c-primary);
  color: var(--c-white);
  border-bottom-right-radius: 6px;
}
.msg--in {
  align-self: flex-start;
  background: var(--c-white);
  color: var(--c-text);
  border: 1px solid var(--c-border-soft);
  border-bottom-left-radius: 6px;
  box-shadow: var(--sh-xs);
}
.msg__time {
  display: block; margin-top: .25rem;
  font-size: .6875rem; opacity: .55; text-align: right;
}
.msg strong { color: inherit; font-weight: 700; }

/* Nota de voz */
.msg--voice.is-shown { display: flex; }
.msg--voice { align-items: center; gap: .65rem; min-width: 200px; }
.msg__play {
  display: grid; place-items: center; flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.22); color: currentColor;
}
.msg__play svg { width: 13px; height: 13px; }
.wave { display: flex; align-items: center; gap: 2px; height: 22px; flex: 1; }
.wave span {
  flex: 1; min-width: 2px; border-radius: 2px;
  background: currentColor; opacity: .55;
  animation: pulse-bar 1.3s var(--ease) infinite;
}
.wave span:nth-child(2n) { animation-delay: .12s; }
.wave span:nth-child(3n) { animation-delay: .30s; }
.wave span:nth-child(5n) { animation-delay: .45s; }
.wave span:nth-child(7n) { animation-delay: .62s; }
@keyframes pulse-bar {
  0%, 100% { height: 25%; } 50% { height: 100%; }
}
.msg__dur { font-size: .75rem; opacity: .8; flex: none; }

/* Tarjeta de foto analizada */
.msg--card { padding: .5rem; max-width: 88%; }
.msg__thumb {
  display: flex; align-items: center; gap: .6rem;
  background: var(--c-surface-2);
  border-radius: var(--r-sm);
  padding: .55rem .7rem;
  margin-bottom: .5rem;
  font-size: .8125rem; color: var(--c-muted);
}
.msg__thumb svg { width: 18px; height: 18px; color: var(--c-primary); flex: none; }
.msg__body { padding: .1rem .4rem .35rem; }

.alert-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--c-danger-bg); color: var(--c-danger);
  font-weight: 700; font-size: .75rem;
  padding: .28rem .6rem; border-radius: var(--r-pill);
  margin-bottom: .4rem;
}
.alert-chip svg { width: 13px; height: 13px; }

/* Indicador de "escribiendo" */
.typing {
  align-self: flex-start;
  display: none; gap: 4px; align-items: center;
  background: var(--c-white); border: 1px solid var(--c-border-soft);
  border-radius: var(--r-md); border-bottom-left-radius: 6px;
  padding: .8rem .9rem; box-shadow: var(--sh-xs);
}
.typing.is-in { display: flex; }
.typing i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--c-teal-400);
  animation: typing 1.2s var(--ease) infinite;
}
.typing i:nth-child(2) { animation-delay: .18s; }
.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: .45; }
  30%           { transform: translateY(-5px); opacity: 1; }
}

.chat__input {
  display: flex; align-items: center; gap: .6rem;
  padding: .75rem 1rem;
  border-top: 1px solid var(--c-border-soft);
  background: var(--c-white);
  font-size: var(--text-xs); color: var(--c-muted-2);
}
.chat__field {
  flex: 1; min-width: 0; background: var(--c-surface-2);
  border-radius: var(--r-pill); padding: .55rem .9rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chat__mic {
  display: grid; place-items: center; flex: none;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--g-brand); color: var(--c-white);
}
.chat__mic svg { width: 16px; height: 16px; }

.chat__replay {
  position: absolute; left: .85rem; bottom: 4.5rem; z-index: 3;
  display: inline-flex; align-items: center; gap: .35rem;
  background: rgba(20,52,62,.86); color: var(--c-white);
  font-size: .75rem; font-weight: 600;
  padding: .4rem .8rem; border-radius: var(--r-pill);
  opacity: 0; pointer-events: none;
  transition: opacity 250ms var(--ease);
}
.chat__replay.is-visible { opacity: 1; pointer-events: auto; }
.chat__replay:hover { background: var(--c-ink); }
.chat__replay svg { width: 13px; height: 13px; }

/* ---------- 8b. Primera pantalla en escritorio ------------ */
/* Lo principal del hero (título, bajada, botones y el chat) tiene que entrar
   en la primera pantalla. El caso más ajustado es una notebook con la escala
   de Windows al 150 %: la ventana queda en unos 1280x600 y, descontando la
   barra del premio y la navegación, sobran unos 480 px de alto. Por eso los
   tamaños se atan también al alto de la ventana (vh), con tope: en pantallas
   grandes todo queda como antes. */
@media (min-width: 961px) {
  .hero { padding-top: clamp(1.5rem, 5vh, 4.5rem); }
  .hero__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: clamp(2rem, 4vw, 4rem);
  }
  .hero__title {
    font-size: clamp(2.4rem, min(4.4vw, 8.4vh), 3.7rem);
    margin-bottom: clamp(.75rem, 2.4vh, 1.5rem);
  }
  .hero__desc {
    font-size: clamp(1.05rem, 3.1vh, 1.3rem);
    margin-bottom: clamp(1rem, 3.5vh, 2rem);
  }
  .hero__actions { margin-bottom: clamp(1rem, 3.5vh, 2rem); }
  .hero__trust { padding-top: clamp(.75rem, 2.4vh, 1.5rem); }

  .chat { width: min(380px, 100%); }
  /* 380 px = barras de arriba de la página, cabecera y pie del chat, y aire. */
  .chat__body { height: clamp(220px, calc(100vh - 380px), 430px); }
  .hero__peng { width: clamp(96px, min(12vw, 22vh), 168px); }
}
/* Entre tablet horizontal y notebook chica los dos botones no entraban en una
   fila y empujaban todo para abajo: el texto se lleva más ancho. */
@media (min-width: 961px) and (max-width: 1100px) {
  .hero__inner { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); }
}

/* ---------- 9. Métricas ----------------------------------- */
.stats {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  background: var(--c-border);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-sm);
}
.stat { background: var(--c-white); padding: var(--sp-3) var(--sp-2); text-align: center; }
.stat__value {
  display: block;
  font-family: var(--font-head); font-weight: 800;
  font-size: var(--text-xl);
  color: var(--c-primary);
  line-height: 1.1;
}
.stat__label {
  display: block; margin-top: .3rem;
  font-size: var(--text-xs); color: var(--c-muted); line-height: 1.45;
}

/* ---------- 10. Premio ------------------------------------ */
.award {
  position: relative;
  background: var(--g-deep);
  color: var(--c-white);
  overflow: hidden;
}
.award::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(45% 50% at 88% 10%, rgba(242,184,77,.22), transparent 60%),
    radial-gradient(40% 45% at 5% 95%, rgba(59,183,180,.20), transparent 60%);
}
.award__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.award h2 { color: var(--c-white); font-size: var(--text-2xl); margin-bottom: var(--sp-3); }
.award p { color: rgba(255,255,255,.82); }
.award__quote {
  margin-top: var(--sp-3);
  padding: var(--sp-3);
  border-left: 3px solid var(--c-gold);
  background: rgba(255,255,255,.06);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: var(--text-md);
  color: rgba(255,255,255,.9);
  font-style: italic;
}
.award__facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: var(--sp-2); margin-top: var(--sp-4);
}
.award-fact {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-md);
  padding: var(--sp-2) var(--sp-3);
}
.award-fact__k {
  display: block; font-size: .6875rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--c-gold); margin-bottom: .25rem;
}
.award-fact__v { font-size: var(--text-sm); color: var(--c-white); font-weight: 500; line-height: 1.45; }

.award__media { position: relative; }
.award__media img {
  width: 100%; border-radius: var(--r-lg);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: var(--sh-lg);
}
.award__ribbon {
  position: absolute; top: -18px; left: -14px;
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--g-gold); color: var(--c-ink);
  font-family: var(--font-head); font-weight: 700; font-size: var(--text-xs);
  padding: .55rem 1.1rem; border-radius: var(--r-pill);
  box-shadow: var(--sh-md);
  transform: rotate(-3deg);
  white-space: nowrap;
}
.award__caption {
  margin-top: var(--sp-2); font-size: var(--text-xs);
  color: rgba(255,255,255,.6); text-align: center;
}

/* ---------- 11. Problema / propuesta ---------------------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split__text p + p { margin-top: var(--sp-2); }
.split__text p { color: var(--c-muted); font-size: var(--text-md); }

.principles { display: grid; gap: var(--sp-2); }
.principle {
  display: flex; gap: var(--sp-2);
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--sp-3);
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease),
              border-color 240ms var(--ease);
}
.principle:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
  border-color: var(--c-teal-300);
}
.principle__icon {
  flex: none; display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--c-teal-100); color: var(--c-primary);
}
.principle__icon svg { width: 22px; height: 22px; }
.principle h3 { font-size: var(--text-md); margin-bottom: .15rem; }
.principle p { font-size: var(--text-xs); color: var(--c-muted); line-height: 1.6; }

/* ---------- 12. Funciones --------------------------------- */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}

.f-card {
  position: relative;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  overflow: hidden;
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease),
              border-color 260ms var(--ease);
}
.f-card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--g-brand);
  transform: scaleX(0); transform-origin: left;
  transition: transform 320ms var(--ease-out);
}
.f-card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); border-color: var(--c-teal-200); }
.f-card:hover::before { transform: scaleX(1); }

.f-card__icon {
  display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 18px;
  background: var(--c-teal-100); color: var(--c-primary);
  margin-bottom: var(--sp-3);
  transition: background 260ms var(--ease), color 260ms var(--ease), transform 300ms var(--ease-spring);
}
.f-card__icon svg { width: 26px; height: 26px; }
.f-card:hover .f-card__icon { background: var(--g-brand); color: var(--c-white); transform: rotate(-6deg) scale(1.05); }
.f-card--gold .f-card__icon { background: var(--c-gold-100); color: var(--c-gold-600); }
.f-card--gold:hover .f-card__icon { background: var(--g-gold); color: var(--c-ink); }

.f-card h3 { font-size: var(--text-lg); margin-bottom: .4rem; }
.f-card p { font-size: var(--text-sm); color: var(--c-muted); }
/* Invitación a la página técnica, en la home. */
.tech-teaser {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--sp-4);
  align-items: start;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2.75rem);
  box-shadow: var(--sh-sm);
}
.tech-teaser__icon {
  display: grid; place-items: center; flex: none;
  width: 68px; height: 68px; border-radius: 22px;
  background: var(--g-brand); color: var(--c-white);
  box-shadow: 0 10px 26px rgba(25,111,119,.25);
}
.tech-teaser__icon svg { width: 32px; height: 32px; }

/* ---------- 13. Pasos ------------------------------------- */
.steps {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
  margin-top: var(--sp-8);
}
.steps::before {
  content: ''; position: absolute; top: 30px; left: 12%; right: 12%;
  height: 2px; border-radius: 2px;
  background: repeating-linear-gradient(90deg, var(--c-border) 0 8px, transparent 8px 16px);
}
.step { position: relative; text-align: center; }
.step__n {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 60px; height: 60px; margin: 0 auto var(--sp-3);
  border-radius: 50%;
  background: var(--c-white);
  border: 2px solid var(--c-border);
  font-family: var(--font-head); font-weight: 800; font-size: var(--text-lg);
  color: var(--c-muted-2);
  transition: background 300ms var(--ease), color 300ms var(--ease),
              border-color 300ms var(--ease), transform 320ms var(--ease-spring);
}
.step.is-lit .step__n {
  background: var(--g-brand); border-color: transparent;
  color: var(--c-white); transform: scale(1.06);
  box-shadow: 0 10px 24px rgba(25,111,119,.28);
}
.step h3 { font-size: var(--text-md); margin-bottom: .35rem; }
.step p { font-size: var(--text-sm); color: var(--c-muted); }

/* ---------- 14. Audiencias -------------------------------- */
.audience {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--sp-3); margin-top: var(--sp-6);
}
.aud-card {
  position: relative;
  border-radius: var(--r-lg);
  padding: clamp(1.75rem, 3vw, 2.75rem);
  overflow: hidden;
}
.aud-card--a { background: var(--g-brand); color: var(--c-white); box-shadow: var(--sh-md); }
.aud-card--a h3 { color: var(--c-white); }
.aud-card--b { background: var(--c-white); border: 1px solid var(--c-border); }
.aud-card__tag {
  display: inline-block; font-size: .6875rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: var(--sp-2);
}
.aud-card--a .aud-card__tag { color: var(--c-gold); }
.aud-card--b .aud-card__tag { color: var(--c-teal-600); }
.aud-card h3 { font-size: var(--text-xl); margin-bottom: .5rem; }
.aud-card > p { font-size: var(--text-sm); }
.aud-card--a > p { color: rgba(255,255,255,.85); }
.aud-card--b > p { color: var(--c-muted); }
.check-list { display: grid; gap: .7rem; margin-top: var(--sp-3); }
.check-list li { display: flex; gap: .65rem; font-size: var(--text-sm); line-height: 1.5; }
.check-list svg { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.aud-card--a .check-list li { color: rgba(255,255,255,.92); }
.aud-card--a .check-list svg { color: var(--c-gold); }
.aud-card--b .check-list li { color: var(--c-muted); }
.aud-card--b .check-list svg { color: var(--c-teal-500); }

/* ---------- 15. Video ------------------------------------- */
.video-wrap {
  position: relative;
  margin-top: var(--sp-6);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  background: var(--c-ink);
  aspect-ratio: 16 / 9;
}
.video-wrap iframe, .video-wrap img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0; object-fit: cover;
}
.video-wrap img { z-index: 0; }
.video-facade {
  position: absolute; inset: 0; z-index: 1;
  display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(10,52,60,.45) 0%, rgba(10,52,60,.72) 100%);
  cursor: pointer;
  transition: background 300ms var(--ease);
}
.video-facade:hover { background: linear-gradient(180deg, rgba(10,52,60,.35) 0%, rgba(10,52,60,.65) 100%); }
.video-wrap iframe { z-index: 2; }
.video-facade__play {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--c-white); color: var(--c-primary);
  box-shadow: 0 12px 40px rgba(0,0,0,.3);
  transition: transform 280ms var(--ease-spring);
}
.video-facade__play svg { width: 30px; height: 30px; margin-left: 4px; }
.video-facade:hover .video-facade__play { transform: scale(1.09); }
.video-facade__label {
  position: absolute; z-index: 1; bottom: clamp(1rem, 3vw, 2rem);
  color: var(--c-white); font-family: var(--font-head); font-weight: 600;
  font-size: var(--text-sm); text-align: center; padding-inline: 1rem;
}

/* ---------- 16. Tecnología -------------------------------- */
.tech-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--sp-2); margin-top: var(--sp-6);
}
.tech-item p { margin: 0; }
.tech-item {
  display: flex; gap: .85rem;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--sp-3);
  transition: border-color 220ms var(--ease), box-shadow 220ms var(--ease);
}
.tech-item:hover { border-color: var(--c-teal-300); box-shadow: var(--sh-sm); }
.tech-item__dot {
  flex: none; width: 10px; height: 10px; border-radius: 50%;
  background: var(--g-brand); margin-top: .45rem;
}
.tech-item__cat {
  font-size: .6875rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--c-teal-600);
}
.tech-item__name { font-family: var(--font-head); font-weight: 600; font-size: var(--text-sm); color: var(--c-ink); }
.tech-item__desc { font-size: var(--text-xs); color: var(--c-muted); line-height: 1.55; }

.diagram {
  margin-top: var(--sp-6);
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: clamp(1.25rem, 3vw, 2.5rem);
  box-shadow: var(--sh-sm);
}
.diagram h3 { font-size: var(--text-md); margin-bottom: .3rem; }
.diagram > p { font-size: var(--text-xs); color: var(--c-muted-2); margin-bottom: var(--sp-3); }
.diagram__scroll { overflow-x: auto; padding-bottom: .5rem; }
.diagram__scroll svg { min-width: 660px; width: 100%; height: auto; }

/* ---------- 17. Estado del proyecto ----------------------- */
.roadmap { display: grid; gap: var(--sp-2); margin-top: var(--sp-6); }
.rm-item {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto;
  align-items: center; gap: var(--sp-3);
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--sp-2) var(--sp-3);
}
.rm-item--done { border-left-color: var(--c-ok); }
.rm-item--now  { border-left-color: var(--c-gold); }
.rm-item--next { border-left-color: var(--c-teal-300); }
.rm-item h3 { font-size: var(--text-sm); margin-bottom: .1rem; }
.rm-item p { font-size: var(--text-xs); color: var(--c-muted); }
.rm-item__when {
  font-family: var(--font-head); font-weight: 700; font-size: var(--text-xs);
  color: var(--c-muted-2); letter-spacing: .06em; text-transform: uppercase;
}

/* ---------- 17b. Próximamente: Android -------------------- */
.soon-badge {
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--c-white);
  border: 1px solid var(--c-teal-300);
  color: var(--c-primary);
  font-family: var(--font-head); font-weight: 600; font-size: var(--text-xs);
  padding: .45rem 1rem .45rem .8rem;
  border-radius: var(--r-pill);
  margin-bottom: var(--sp-3);
}
.soon-badge__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--c-gold);
  box-shadow: 0 0 0 4px rgba(242,184,77,.25);
  animation: blink 2.4s var(--ease) infinite;
}

.soon-note {
  display: flex; gap: .85rem; align-items: flex-start;
  margin-top: var(--sp-3);
  background: var(--c-gold-100);
  border: 1px solid rgba(218,158,46,.35);
  border-radius: var(--r-md);
  padding: var(--sp-2) var(--sp-3);
}
.soon-note svg { width: 22px; height: 22px; flex: none; color: var(--c-gold-600); margin-top: .15rem; }
.split__text .soon-note p { color: #5E4610; font-size: var(--text-sm); margin: 0; }
.soon-note strong { color: #4A370A; }
.android__actions { margin-top: var(--sp-3); }

.android__visual {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-3);
}
.android__visual::before {
  content: ''; position: absolute; z-index: 0;
  width: min(440px, 100%); aspect-ratio: 1; top: 6%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,183,180,.28) 0%, rgba(59,183,180,.08) 55%, transparent 70%);
  pointer-events: none;
}

/* El teléfono de ejemplo */
.phone {
  position: relative; z-index: 1;
  width: min(300px, 100%);
  aspect-ratio: 9 / 18.5;
  padding: 10px;
  background: var(--c-ink);
  border-radius: 42px;
  box-shadow: var(--sh-lg), inset 0 0 0 2px rgba(255,255,255,.08);
}
.phone__screen {
  position: relative;
  height: 100%;
  border-radius: 33px;
  overflow: hidden;
  background: var(--c-surface);
  display: flex; flex-direction: column;
  font-size: .8125rem; line-height: 1.45;
}
.phone__status {
  display: flex; justify-content: space-between; align-items: center;
  padding: .55rem 1.1rem .3rem;
  font-size: .6875rem; font-weight: 600; color: var(--c-white);
  background: var(--c-primary-800);
}
.phone__status-icons { display: flex; gap: 3px; }
.phone__status-icons i { width: 5px; border-radius: 1px; background: currentColor; opacity: .85; }
.phone__status-icons i:nth-child(1) { height: 5px; margin-top: 4px; }
.phone__status-icons i:nth-child(2) { height: 7px; margin-top: 2px; }
.phone__status-icons i:nth-child(3) { height: 9px; }

.phone__app { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.phone__appbar {
  display: flex; align-items: center; gap: .55rem;
  padding: .55rem .8rem;
  background: var(--c-primary-800); color: var(--c-white);
}
.phone__back { font-size: 1.3rem; line-height: 1; opacity: .8; }
.phone__contact {
  display: grid; place-items: center; flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--c-gold); color: var(--c-ink);
  font-family: var(--font-head); font-weight: 700; font-size: .8rem;
}
.phone__who { display: flex; flex-direction: column; line-height: 1.2; }
.phone__who b { font-family: var(--font-head); font-weight: 600; font-size: .8125rem; }
.phone__who small { font-size: .625rem; opacity: .7; }

.phone__thread {
  flex: 1; display: flex; flex-direction: column; gap: .5rem;
  padding: .8rem .7rem;
  background: radial-gradient(circle at 80% 10%, rgba(59,183,180,.08), transparent 50%), var(--c-surface-2);
}
.p-msg {
  max-width: 80%;
  padding: .45rem .7rem;
  border-radius: 12px; border-bottom-left-radius: 4px;
  background: var(--c-white); color: var(--c-text);
  box-shadow: var(--sh-xs);
}
.p-photo {
  align-self: flex-end;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem;
  width: 62%; aspect-ratio: 4 / 3;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--c-teal-200), var(--c-teal-100));
  color: var(--c-primary); font-size: .6875rem; font-weight: 600;
}
.p-photo svg { width: 28px; height: 28px; }

.phone__composer {
  display: flex; align-items: center; gap: .45rem;
  padding: .5rem .6rem .8rem;
  background: var(--c-surface-2);
}
.phone__field {
  flex: 1; background: var(--c-white);
  border-radius: var(--r-pill); padding: .5rem .8rem;
  color: var(--c-muted-2); font-size: .75rem;
}
.phone__send {
  display: grid; place-items: center; flex: none;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--c-primary); color: var(--c-white);
  transition: box-shadow 300ms var(--ease), transform 300ms var(--ease-spring);
}
.phone__send svg { width: 16px; height: 16px; margin-left: 2px; }
.phone[data-state="speaking"] .phone__send {
  transform: scale(1.12);
  box-shadow: 0 0 0 4px var(--c-white), 0 0 0 8px var(--c-gold);
  animation: send-hint 1.4s var(--ease) infinite;
}
@keyframes send-hint {
  0%, 100% { box-shadow: 0 0 0 4px var(--c-white), 0 0 0 8px var(--c-gold); }
  50%      { box-shadow: 0 0 0 4px var(--c-white), 0 0 0 12px rgba(242,184,77,.45); }
}

/* La burbuja de AIDA */
.bubble {
  position: absolute; right: 10px; top: 44%;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--c-white);
  box-shadow: 0 6px 16px rgba(14,70,79,.32);
  display: grid; place-items: center;
  transition: transform 300ms var(--ease-spring);
}
.bubble img { width: 46px; height: 46px; object-fit: contain; }
.bubble__badge {
  position: absolute; right: -3px; bottom: -3px;
  display: grid; place-items: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--c-primary); color: var(--c-white);
  border: 2px solid var(--c-white);
}
.bubble__mic { width: 12px; height: 12px; }
.bubble__bars { display: none; align-items: center; gap: 2px; height: 11px; }
.bubble__bars i {
  width: 2.5px; height: 70%; border-radius: 2px; background: currentColor;
  animation: pulse-bar 0.9s var(--ease) infinite;
}
.bubble__bars i:nth-child(2) { animation-delay: .15s; }
.bubble__bars i:nth-child(3) { animation-delay: .3s; }

.bubble__ring, .bubble__arc {
  position: absolute; inset: -6px; border-radius: 50%;
  opacity: 0; transition: opacity 250ms var(--ease);
  pointer-events: none;
}
.bubble__ring { border: 3px solid var(--c-teal-400); }
.bubble__arc {
  border: 3px solid transparent;
  border-top-color: var(--c-gold);
  border-right-color: var(--c-gold);
}

.phone[data-state="tap"] .bubble { transform: scale(.88); }
.phone[data-state="listening"] .bubble__ring { opacity: 1; animation: ring-pulse 1.2s var(--ease) infinite; }
.phone[data-state="thinking"] .bubble__arc { opacity: 1; animation: spin .9s linear infinite; }
.phone[data-state="speaking"] .bubble__mic { display: none; }
.phone[data-state="speaking"] .bubble__bars { display: flex; }
@keyframes ring-pulse {
  0%   { transform: scale(.94); opacity: .95; }
  70%  { transform: scale(1.18); opacity: 0; }
  100% { transform: scale(1.18); opacity: 0; }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Lo que dice la persona y lo que contesta AIDA */
.phone__ask {
  position: absolute; right: 78px; top: calc(44% - 4px);
  max-width: 150px;
  padding: .5rem .7rem;
  border-radius: 12px; border-bottom-right-radius: 4px;
  background: var(--c-primary); color: var(--c-white);
  font-size: .75rem; line-height: 1.4;
  box-shadow: var(--sh-sm);
  opacity: 0; transform: translateX(8px) scale(.96);
  transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-spring);
}
.phone[data-state="listening"] .phone__ask,
.phone[data-state="thinking"] .phone__ask { opacity: 1; transform: none; }

.phone__answer {
  position: absolute; left: 10px; right: 10px; bottom: 62px;
  padding: .75rem .9rem;
  background: var(--c-white);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(14,70,79,.28);
  font-size: .875rem; line-height: 1.45; color: var(--c-text);
  opacity: 0; transform: translateY(16px);
  transition: opacity 350ms var(--ease-out), transform 350ms var(--ease-out);
}
.phone__answer strong { color: var(--c-primary); }
.phone__answer-head {
  display: flex; align-items: center; gap: .35rem;
  font-family: var(--font-head); font-weight: 700; font-size: .75rem;
  color: var(--c-primary); margin-bottom: .2rem;
}
.phone__answer-head span { width: 7px; height: 7px; border-radius: 50%; background: var(--c-teal-400); }
.phone[data-state="speaking"] .phone__answer { opacity: 1; transform: none; }

/* Los tres pasos debajo del teléfono */
.bubble-steps {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem;
}
.bubble-steps li {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  padding: .35rem .85rem .35rem .4rem;
  font-size: var(--text-xs); font-weight: 600; color: var(--c-muted);
  transition: background 250ms var(--ease), color 250ms var(--ease), border-color 250ms var(--ease);
}
.bubble-steps li span {
  display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--c-teal-100); color: var(--c-primary);
  font-family: var(--font-head); font-size: .75rem;
}
.bubble-steps li.is-on { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-white); }
.bubble-steps li.is-on span { background: var(--c-gold); color: var(--c-ink); }

/* Ocho tarjetas: de a cuatro o de a dos, para que nunca quede una fila coja. */
.android__cards {
  margin-top: clamp(3rem, 6vw, 5rem);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.android__cards .f-card { padding: var(--sp-3); }
@media (max-width: 1080px) { .android__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .android__cards { grid-template-columns: 1fr; } }

/* ---------- 18. Equipo ------------------------------------ */
.skills {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem;
  margin-top: var(--sp-3);
}
.team {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--sp-3); margin-top: var(--sp-6);
}
.member {
  position: relative;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  text-align: center;
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease);
}
.member:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
/* Panel ilustrado: el pingüino entero, sin recortar, apoyado sobre el borde. */
.member__photo {
  display: flex; align-items: flex-end; justify-content: center;
  height: 210px; overflow: hidden;
  margin: calc(-1 * var(--sp-4)) calc(-1 * var(--sp-4)) var(--sp-3);
  border-radius: calc(var(--r-lg) - 1px) calc(var(--r-lg) - 1px) 0 0;
  background:
    radial-gradient(72% 78% at 50% 108%, var(--c-teal-100) 0%, transparent 72%),
    var(--c-surface);
}
.member__photo img {
  height: 100%; width: auto; max-width: none;
  transition: transform 340ms var(--ease-spring);
}
.member:hover .member__photo img { transform: translateY(-6px) scale(1.03); }

.member h3 { font-size: var(--text-md); margin-bottom: var(--sp-2); }
.member__link {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: var(--text-xs); font-weight: 600; color: var(--c-primary);
  border: 1px solid var(--c-border); border-radius: var(--r-pill);
  padding: .45rem 1rem;
  transition: background 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease);
}
.member__link:hover { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-white); }
.member__link svg { width: 15px; height: 15px; }

/* ---------- 19. Agradecimientos --------------------------- */
.thanks {
  margin-top: var(--sp-6);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--sp-2);
}
.thanks-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--sp-3);
}
.thanks-card h3 { font-size: var(--text-sm); margin-bottom: .25rem; }
.thanks-card p { font-size: var(--text-xs); color: var(--c-muted); line-height: 1.6; }

/* ---------- 20. FAQ --------------------------------------- */
.faq { max-width: 800px; margin: var(--sp-6) auto 0; display: grid; gap: .75rem; }
.faq details {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color 220ms var(--ease), box-shadow 220ms var(--ease);
}
.faq details[open] { border-color: var(--c-teal-300); box-shadow: var(--sh-sm); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2);
  padding: var(--sp-3);
  font-family: var(--font-head); font-weight: 600; font-size: var(--text-md);
  color: var(--c-ink);
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none;
  width: 12px; height: 12px;
  border-right: 2px solid var(--c-teal-500);
  border-bottom: 2px solid var(--c-teal-500);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 260ms var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq summary:hover { color: var(--c-primary); }
.faq__answer { padding: 0 var(--sp-3) var(--sp-3); }
.faq__answer p { font-size: var(--text-sm); color: var(--c-muted); }
.faq__answer p + p { margin-top: var(--sp-1); }
.faq__answer a { color: var(--c-primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 21. Lista de espera --------------------------- */
.cta {
  position: relative;
  background: var(--g-deep);
  color: var(--c-white);
  overflow: hidden;
  padding-block: clamp(3.5rem, 7vw, 6rem);
}
.cta::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(45% 55% at 82% 15%, rgba(59,183,180,.24), transparent 60%),
    radial-gradient(40% 50% at 10% 90%, rgba(242,184,77,.16), transparent 60%);
}
.cta__inner { position: relative; text-align: center; max-width: 640px; margin-inline: auto; }
.cta__peng {
  width: clamp(88px, 12vw, 120px); margin: 0 auto var(--sp-3);
  filter: drop-shadow(0 14px 24px rgba(0,0,0,.28));
}
.cta h2 { color: var(--c-white); font-size: var(--text-2xl); margin-bottom: var(--sp-2); }
.cta p { color: rgba(255,255,255,.8); font-size: var(--text-md); }

.wl-form { margin-top: var(--sp-4); }
.wl-form__row { display: flex; gap: .6rem; }
.wl-input {
  flex: 1; min-width: 0;
  padding: 1rem 1.3rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: var(--r-pill);
  color: var(--c-white);
  font-size: var(--text-sm);
  outline: none;
  transition: border-color 200ms var(--ease), background 200ms var(--ease);
}
.wl-input::placeholder { color: rgba(255,255,255,.5); }
.wl-input:focus { border-color: var(--c-gold); background: rgba(255,255,255,.16); }
.wl-error {
  margin-top: var(--sp-2); font-size: var(--text-xs);
  color: #FFD79A; font-weight: 600;
}
.wl-note { margin-top: var(--sp-3); font-size: var(--text-xs); color: rgba(255,255,255,.55); }
.wl-note a { color: rgba(255,255,255,.8); text-decoration: underline; text-underline-offset: 3px; }
.wl-success {
  display: none; align-items: center; justify-content: center; gap: .7rem;
  margin-top: var(--sp-4);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--r-md);
  padding: var(--sp-3);
  font-weight: 600;
}
.wl-success.is-visible { display: flex; }
.wl-success svg { width: 22px; height: 22px; color: #7BE0B0; flex: none; }

.cta__alt {
  margin-top: var(--sp-4); padding-top: var(--sp-4);
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2);
}
.cta__alt a {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--text-xs); font-weight: 600; color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.24); border-radius: var(--r-pill);
  padding: .55rem 1.1rem;
  transition: background 200ms var(--ease), border-color 200ms var(--ease);
}
.cta__alt a:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.45); }
.cta__alt svg { width: 15px; height: 15px; }

/* ---------- 22. Footer ------------------------------------ */
.footer { background: var(--c-ink); color: rgba(255,255,255,.7); padding-block: var(--sp-8) var(--sp-4); }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: var(--sp-4);
}
.footer__brand { display: flex; align-items: center; gap: .6rem; margin-bottom: var(--sp-2); }
.footer__brand img { width: 40px; height: 40px; object-fit: contain; }
.footer__brand span {
  font-family: var(--font-head); font-weight: 800; font-size: 1.35rem;
  color: var(--c-white); letter-spacing: -.03em;
}
.footer__about { font-size: var(--text-xs); line-height: 1.7; max-width: 34ch; }
.footer__award {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: var(--sp-2);
  font-size: .75rem; font-weight: 600; color: var(--c-gold);
  background: rgba(242,184,77,.12);
  border: 1px solid rgba(242,184,77,.28);
  border-radius: var(--r-pill); padding: .35rem .8rem;
}
.footer h3 {
  font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-white); margin-bottom: var(--sp-2);
}
.footer li + li { margin-top: .5rem; }
.footer a { font-size: var(--text-xs); color: rgba(255,255,255,.65); transition: color 160ms var(--ease); }
.footer a:hover { color: var(--c-white); }
.footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--sp-2);
  margin-top: var(--sp-6); padding-top: var(--sp-3);
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: var(--text-xs); color: rgba(255,255,255,.45);
}

/* ---------- 23. Páginas de texto (privacidad) ------------- */
.page-hero {
  padding-block: clamp(2.5rem, 5vw, 4rem);
  background:
    radial-gradient(60% 70% at 90% 0%, var(--c-teal-50) 0%, transparent 60%),
    var(--c-surface);
  border-bottom: 1px solid var(--c-border);
}
.page-hero h1 { font-size: var(--text-2xl); margin-bottom: var(--sp-2); }
.page-hero p { color: var(--c-muted); }

.toc {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--sp-3);
  margin-bottom: var(--sp-6);
}
.toc h2 { font-size: var(--text-sm); margin-bottom: var(--sp-2); }
.toc ol { counter-reset: toc; display: grid; gap: .4rem; }
.toc li { counter-increment: toc; font-size: var(--text-sm); }
.toc li::before { content: counter(toc) '. '; color: var(--c-teal-500); font-weight: 700; }
.toc a { color: var(--c-primary); }
.toc a:hover { text-decoration: underline; text-underline-offset: 3px; }

.prose { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.prose h2 {
  font-size: var(--text-xl);
  margin-top: var(--sp-6); margin-bottom: var(--sp-2);
  padding-top: var(--sp-2);
}
.prose h2:first-of-type { margin-top: 0; }
.prose h3 { font-size: var(--text-md); color: var(--c-primary); margin-top: var(--sp-3); margin-bottom: var(--sp-1); }
.prose p, .prose li { color: var(--c-muted); font-size: var(--text-sm); line-height: 1.75; }
.prose p + p, .prose ul + p, .prose p + ul { margin-top: var(--sp-2); }
.prose ul { list-style: disc; padding-left: 1.35rem; display: grid; gap: .4rem; }
.prose a { color: var(--c-primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--c-text); }
.prose__note {
  background: var(--c-teal-50);
  border: 1px solid var(--c-teal-200);
  border-radius: var(--r-md);
  padding: var(--sp-3);
  margin-block: var(--sp-3);
}
.prose__note p { color: var(--c-primary-800); }
.updated {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--text-xs); font-weight: 600;
  background: var(--c-teal-100); color: var(--c-primary);
  border-radius: var(--r-pill); padding: .3rem .9rem;
}

/* ---------- 24. Animaciones de scroll --------------------- */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }

.stagger > * {
  opacity: 0; transform: translateY(18px);
  transition: opacity 520ms var(--ease-out), transform 520ms var(--ease-out);
}
.stagger.is-visible > * { opacity: 1; transform: none; }
.stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.stagger.is-visible > *:nth-child(2) { transition-delay: 70ms; }
.stagger.is-visible > *:nth-child(3) { transition-delay: 140ms; }
.stagger.is-visible > *:nth-child(4) { transition-delay: 210ms; }
.stagger.is-visible > *:nth-child(5) { transition-delay: 280ms; }
.stagger.is-visible > *:nth-child(6) { transition-delay: 350ms; }
.stagger.is-visible > *:nth-child(7) { transition-delay: 420ms; }
.stagger.is-visible > *:nth-child(8) { transition-delay: 490ms; }

/* ---------- 25. Responsive -------------------------------- */
@media (max-width: 1080px) {
  .nav__links { gap: .8rem; }
  .brand__tag { display: none; }
}

/* En modo de texto grande la barra necesita más aire: pasa antes al menú. */
@media (max-width: 1240px) {
  html.is-large .nav__links { display: none; }
  html.is-large .nav__burger { display: flex; }
}
@media (max-width: 1080px) {
  html.is-large .a11y-toggle span:not(.sr-only) { display: none; }
  html.is-large .a11y-toggle { padding: .5rem .6rem; }
}

@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__drawer.is-open { display: block; }
  .a11y-toggle span { display: none; }
  .a11y-toggle { padding: .5rem .6rem; }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__copy { text-align: center; }
  .hero__desc { margin-inline: auto; }
  .hero__actions, .hero__trust { justify-content: center; }
  .hero__visual { margin-top: var(--sp-4); }
  .hero__peng { right: 2%; bottom: -3%; }

  .stats { grid-template-columns: repeat(2, 1fr); }

  .award__inner, .split { grid-template-columns: 1fr; }
  .award__media { order: -1; }
  .award__ribbon { left: 50%; transform: translateX(-50%) rotate(-3deg); }

  .tech-teaser { grid-template-columns: 1fr; }

  .android__visual { margin-top: var(--sp-2); }

  .steps { grid-template-columns: repeat(2, 1fr); row-gap: var(--sp-6); }
  .steps::before { display: none; }

  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  :root { --nav-h: 64px; }

  .topbar__inner { font-size: .8125rem; }
  .brand img { width: 36px; height: 36px; }
  .brand__name { font-size: 1.2rem; }

  .hero__actions .btn { width: 100%; }
  .hero__peng { display: none; }
  .stats { grid-template-columns: 1fr; }
  .chat__body { height: 380px; }

  .rm-item { grid-template-columns: 1fr; gap: .4rem; }
  .rm-item__when { order: -1; }

  .wl-form__row { flex-direction: column; }
  .wl-input { text-align: center; }

  .footer__grid { grid-template-columns: 1fr; gap: var(--sp-3); }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- 26. Preferencias del sistema ------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal, .stagger > * { opacity: 1 !important; transform: none !important; }
  .msg { display: block; opacity: 1 !important; transform: none !important; }
  .msg--voice { display: flex; }
}

@media (prefers-contrast: more) {
  :root {
    --c-muted: #33474D;
    --c-muted-2: #465A60;
    --c-border: #B9CACC;
  }
}

@media print {
  .topbar, .nav, .cta, .video-wrap, .chat__replay { display: none !important; }
  body { color: #000; }
  .section { padding-block: 1.5rem; }
}
