/* =====================================================
   Piofly — Landing Page Styles
   index.html only: Hero, Stats, How-it-works, Modules,
   Generator, Opportunities, Achievements, Community,
   Battle Pass preview, Pricing preview, CTA
   ===================================================== */

/* ── HERO + SISTEMA WRAPPER ──────────────────────────── */
.hero-sys-wrap {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 138, 0, 0.12) 0%, transparent 60%),
    linear-gradient(180deg, var(--slate-surface) 0%, var(--slate-bg) 100%);
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  position: relative;
  box-sizing: border-box;
}

/* ── HERO ────────────────────────────────────────────── */
.hero {
  background: none;
  padding: 160px 0 90px; overflow: hidden; position: relative; min-height: 100vh;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 55% at 80% 40%, rgba(255, 138, 0, 0.18) 0%, transparent 65%),
    radial-gradient(circle 320px at 12% 75%, rgba(255, 138, 0, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 45% 40% at 22% 18%, rgba(255, 255, 255, 0.04) 0%, transparent 70%),
    radial-gradient(circle 240px at 65% 88%, rgba(255, 163, 51, 0.06) 0%, transparent 60%);
}
/* Decorative circle — glow naranja sutil arriba derecha */
.hero::after {
  content: ''; position: absolute; right: -120px; top: -120px;
  width: 580px; height: 580px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 138, 0, 0.10) 0%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 100px; align-items: center;
  position: relative; z-index: 1;
}
.hero-grid > * { min-width: 0; }

/* Eyebrow pill */
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 138, 0,0.16); border: 1.5px solid rgba(255, 138, 0,0.4);
  border-radius: var(--r-full); padding: 7px 18px;
  font-size: 13px; font-weight: 700; color: var(--gold);
  margin-bottom: 28px;
}

/* Headline: massive, punchy, white lines + last line naranja */
.hero h1 {
  font-family: 'Nunito', sans-serif;
  color: var(--white); margin-bottom: 24px;
  font-size: clamp(2.8rem, 6.5vw, 4.8rem);
  font-weight: 900; letter-spacing: -0.035em; line-height: 0.95;
  /* Animación de entrada con stagger sutil — el visitor lo ve aparecer */
  animation: hero-headline-in 0.7s cubic-bezier(0.18, 0.89, 0.32, 1.28) 0.1s both;
  text-wrap: balance;
}
.hero h1 .headline-fit { font-size: clamp(2.5rem, 5.5vw, 4rem); }
.hero h1 em {
  color: var(--gold);
  font-style: normal;
  display: block;
  /* Glow sutil al texto naranja para que respire */
  text-shadow: 0 0 40px rgba(255, 138, 0, 0.32);
}
.mobile-br { display: none; }

@keyframes hero-headline-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-sub {
  font-size: 18px; color: rgba(255,255,255,0.78);
  margin-bottom: 36px; max-width: 520px; line-height: 1.65;
  font-weight: 500;
  animation: hero-headline-in 0.7s cubic-bezier(0.18, 0.89, 0.32, 1.28) 0.25s both;
  text-wrap: pretty;
}

/* CTAs */
.hero-ctas {
  display: flex; flex-direction: row; flex-wrap: wrap;
  align-items: center; gap: 12px; margin-bottom: 12px;
}
.hero-ctas .btn-gold {
  font-size: 17px; padding: 16px 40px; border-radius: 14px; font-weight: 900;
  background: var(--brand);
  color: var(--white);
  box-shadow: 0 8px 28px rgba(255, 138, 0, 0.40);
}
.hero-ctas .btn-gold:hover {
  background: var(--brand-mid);
  box-shadow: 0 12px 36px rgba(255, 138, 0, 0.55);
  animation: ob-tip 0.76s ease forwards;
}
.hero-ctas .btn-gold:active {
  animation: none;
  transform: scale(0.95);
  transition: transform 0.09s ease;
}

/* Botón secundario "Generar mi primera idea" — outline ghost
   blanco sobre fondo dark. Mismo padding que el primario para
   balance visual, pero color/peso menores para jerarquía clara. */
.hero-ctas .btn-outline {
  font-size: 15.5px;
  padding: 16px 32px;
  border-radius: 14px;
  font-weight: 800;
  background: transparent;
  color: rgba(255,255,255,0.92);
  border: 2px solid rgba(255,255,255,0.28);
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.12s ease;
}
.hero-ctas .btn-outline:hover {
  background: rgba(255,138,0,0.10);
  border-color: rgba(255,138,0,0.55);
  color: #FFFFFF;
}
.hero-ctas .btn-outline:active { transform: scale(0.97); }

/* Split de 2 CTAs contextuales: idea / negocio. Cada uno entra a
   ideas.html con ?intro= correspondiente para que el welcome
   cinematic apunte al destino correcto al cerrar. */
.hero-ctas-split {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
}
.hero-ctas-split .btn-outline {
  flex: 1 1 calc(50% - 5px);
  min-width: 180px;
  font-size: 14.5px;
  padding: 13px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}
.hero-cta-emoji {
  font-size: 17px;
  line-height: 1;
}
@media (max-width: 520px) {
  .hero-ctas-split .btn-outline {
    flex: 1 1 100%;
    font-size: 14px;
  }
}

/* CTA terciario debajo: link sutil "¿Ya tienes cuenta?" */
.hero-cta-tertiary {
  margin-bottom: 32px;
}
.hero-cta-tertiary .btn-ya-tengo-cuenta {
  /* Override del estilo de botón → ahora es un link más sutil */
  background: transparent;
  border: none;
  padding: 4px 0;
  font-size: 13.5px;
  font-weight: 700;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.15s ease;
  border-radius: 0;
}
.hero-cta-tertiary .btn-ya-tengo-cuenta:hover {
  background: transparent;
  border-color: transparent;
  color: #FFFFFF;
  text-decoration: underline;
  text-underline-offset: 3px;
  animation: none;
}

.btn-ya-tengo-cuenta {
  font-size: 15px; font-weight: 700;
  color: rgba(255,255,255,0.90);
  padding: 16px 40px;
  border-radius: 14px;
  border: 2px solid rgba(255,255,255,0.30);
  background: rgba(255,255,255,0.08);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  display: inline-block;
  text-align: center;
}
.btn-ya-tengo-cuenta:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.55);
  color: #fff;
  animation: ob-tip 0.76s ease forwards;
}
.btn-ya-tengo-cuenta:active {
  animation: none;
  transform: scale(0.95);
  transition: transform 0.09s ease;
}

/* Social proof */
.hero-social-proof { display: none; }
@media (max-width: 768px) {
  .hero-social-proof { margin-top: 24px; }
}
.proof-avatars { display: flex; }
.proof-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--gold); border: 2.5px solid rgba(0,100,160,0.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 900; color: var(--primary);
  margin-left: -10px; transition: transform 0.2s;
}
.proof-avatar:first-child { margin-left: 0; }
.proof-avatar:hover { transform: translateY(-3px); z-index: 1; }
.proof-text { color: rgba(255,255,255,0.65); font-size: 13px; font-weight: 600; }

/* ── HERO OPPORTUNITY CARD ───────────────────────────── */


:root {
  --hc-radius: 24px;
  --hc-pad: 36px;
  --hc-gap: 20px;
}

.hero-visual { position: relative; }
.hero-visual--empty { min-height: 0; }

/* ════════════════════════════════════════════════════════════════
   TWO-PATHS HERO — DIAGONAL SPLIT (Edgar 2026-06-29)
   2 paneles (Idea + Negocio) separados por una diagonal estilo comic.
   Hover en un lado = activate (color full + scale + glow), el otro
   se atenúa. Mobile = stack vertical, ambos full color.
   ════════════════════════════════════════════════════════════════ */
/* Edgar 2026-06-30: hint 'Desliza' SOLO se ve en mobile. En desktop
   el HTML existe pero hay que ocultarlo (antes solo tenía estilos
   en @media mobile, en desktop se rendereaba como texto plano
   suelto arriba a la derecha). */
.hero-carousel-hint,
.hero-carousel-dots {
  display: none;
}

.hero--split {
  position: relative;
  isolation: isolate;
  display: flex;
  /* Edgar 2026-06-30: padding-top REDUCIDO de 76px → 0 en desktop
     para que las imágenes suban hasta arriba del viewport (atrás
     del navbar que flota oscuro encima). Mobile se sobrescribe
     en su @media a padding: 0 también. */
  padding: 0 0 14px !important;
  gap: 0;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #0a0f1c;
  margin: 0 !important;
  /* Forzar full-bleed: el hero ocupa TODO el ancho del padre */
  left: 0;
  right: 0;
}
/* El .hero general (línea ~22) tiene ::before y ::after decorativos
   con right: -120px que se salen por la derecha y CAUSAN scroll
   horizontal aunque overflow esté hidden. Los desactivamos con
   más fuerza. */
.hero.hero--split::before,
.hero.hero--split::after {
  display: none !important;
  content: none !important;
}
/* Anular el ::before y ::after decorativos de la regla .hero general —
   crean glows naranjas radiales encima de las imágenes que las opacan. */
.hero--split::before,
.hero--split::after {
  display: none !important;
}

/* Cada panel ocupa la mitad pero con clip-path diagonal para crear
   el efecto comic. El left tiene clip que va de top-left a bottom-right
   inclinado; el right es el complemento. */
.hero-path {
  position: relative;
  flex: 1 1 50%;
  display: block;
  text-decoration: none;
  color: #fff;
  overflow: hidden;
  /* Edgar 2026-06-29: panel NO clickeable. Solo el CTA es el link.
     Quitado cursor:pointer porque la imagen entera ya no navega. */
  isolation: isolate;
  background: #0a0f1c;
}
/* El CTA dentro del path SÍ es link → cursor pointer solo ahí */
.hero-path-cta {
  cursor: pointer;
  text-decoration: none;
}
/* Edgar 2026-06-29: DIAGONAL TIPO CÓMIC — la línea oblicua al
   medio se crea con clip-path. Cada panel tiene corte diagonal
   en su lado interno; entre ambos queda el fondo oscuro visible
   en forma de paralelogramo (el "gutter" diagonal de viñetas).

   IZQUIERDA: top-right intacto (100% 0), bottom-right cortado
   hacia adentro (88% 100%) — diagonal de top-derecha → bottom-
   centro-izquierdo.

   DERECHA: top-left cortado hacia adentro (12% 0), bottom-left
   intacto (0 100%) — diagonal de top-centro-derecho → bottom-
   izquierda.

   Las 2 diagonales son PARALELAS — el gap visible se ve oblicuo. */
/* Edgar 2026-06-29: SIN border-radius — los paneles pegan al borde
   del viewport sin esquinas redondeadas en los lados. Solo la
   diagonal interna se ve como corte. */
/* Edgar 2026-06-29: clip-path diagonal. El flex 1 1 50% del .hero-path
   garantiza que cada panel ocupe 50% del viewport — NO usar width:100%
   porque pelea con el flex y causa overflow/espacio sobrante a la
   derecha. */
.hero-path--idea {
  clip-path: polygon(0 0, 100% 0, 96% 100%, 0 100%);
  -webkit-clip-path: polygon(0 0, 100% 0, 96% 100%, 0 100%);
  z-index: 1;
  margin: 0;
}
.hero-path--biz {
  clip-path: polygon(4% 0, 100% 0, 100% 100%, 0 100%);
  -webkit-clip-path: polygon(4% 0, 100% 0, 100% 100%, 0 100%);
  z-index: 1;
  margin: 0;
}

/* Background image fullbleed dentro de cada panel */
.hero-path-bg,
.hero-path-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-path-bg img {
  object-fit: cover;
  display: block;
  pointer-events: none;  /* Edgar 2026-06-30: no captura wheel */
  -webkit-user-drag: none;
  user-select: none;
  /* Edgar 2026-06-29: idle MÁS VIVO. Antes grayscale 45% + brightness
     0.7 se veía apagado y al hover el contraste era extremo (parecía
     "siempre activo"). Ahora idle casi full color y el hover solo
     agrega un toque — más Linear/Apple style. */
  filter: grayscale(15%) brightness(0.9) saturate(0.95);
  transform: scale(1);
  transition: filter 0.7s cubic-bezier(0.32, 0.72, 0, 1),
              transform 0.7s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: filter, transform;
}
/* Edgar 2026-06-30: imagen ideas restaurada al original (no flip).
   Vuelve a object-position: left center. */
.hero-path--idea .hero-path-bg img { object-position: left center; }
.hero-path--biz  .hero-path-bg img { object-position: right center; }

/* Overlay oscuro para legibilidad del texto */
.hero-path-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Idle overlay más suave — el gradient solo arriba abajo para
     legibilidad del texto, sin oscurecer toda la imagen. */
  background: linear-gradient(
    180deg,
    rgba(8, 12, 24, 0.15) 0%,
    rgba(8, 12, 24, 0.32) 55%,
    rgba(8, 12, 24, 0.7) 100%
  );
  transition: background 0.7s cubic-bezier(0.32, 0.72, 0, 1);
  pointer-events: none;
}

/* Contenido del panel: text + cta */
.hero-path-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(32px, 4vw, 56px);
  gap: 14px;
}
/* Edgar 2026-06-29: padding interno reducido — gutter más chico
   ya no necesita tanto buffer para el texto. */
.hero-path--idea .hero-path-content {
  align-items: flex-start;
  text-align: left;
  padding-right: clamp(32px, 4vw, 80px);
}
.hero-path--biz .hero-path-content {
  align-items: flex-end;
  text-align: right;
  padding-left: clamp(32px, 4vw, 80px);
}

/* .hero-path-eyebrow eliminado — Edgar quitó los chips
   '💡 SIN NEGOCIO TODAVÍA' y '🏪 YA VENDES' del HTML. */
.hero-path-title {
  position: relative;
  font-family: 'Nunito', sans-serif;
  font-size: clamp(36px, 5.4vw, 76px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -1.5px;
  margin: 0;
}
.hpt-default,
.hpt-hover {
  display: block;
  transition: opacity 0.7s cubic-bezier(0.32, 0.72, 0, 1),
              transform 0.7s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: opacity, transform;
}
.hpt-default { opacity: 1; transform: translateY(0); }
/* Edgar 2026-06-29: .hpt-hover absolute centrado verticalmente en
   el espacio del title. Reducido font-size + nowrap para que NO se
   amontone con el sub al hovers. Es un texto corto ("¡Vamos!" /
   "¡A ordenar!") que no necesita el tamaño del headline. */
.hpt-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: translateY(14px);
  color: var(--gold, #FF8A00);
  pointer-events: none;
  font-size: clamp(32px, 4.6vw, 64px);  /* un toque más chico que el default */
  white-space: nowrap;                   /* nunca wrap, evita amontonarse */
  overflow: visible;
}
/* En el biz path el .hpt-hover alinea text a la derecha */
.hero-path--biz .hpt-hover {
  justify-content: flex-end;
}
.hero-path-sub {
  font-size: clamp(16px, 1.25vw, 19px);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  max-width: 440px;
  margin: 0;
  line-height: 1.4;
}

/* Edgar 2026-06-29: bullets de promesas verificables — 3 puntos
   con check naranja a la izquierda. Visual cue de "esto sí pasa". */
.hero-path-bullets {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 440px;
}
.hero-path-bullets li {
  position: relative;
  padding-left: 28px;
  font-size: clamp(14px, 1vw, 15.5px);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
}
.hero-path-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold, #FF8A00);
  display: inline-flex;
}
.hero-path-bullets li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 9px;
  width: 8px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}
/* En el panel derecho (negocio), los bullets se alinean a la derecha
   pero el check sigue del lado izquierdo del texto para legibilidad. */
.hero-path--biz .hero-path-bullets li {
  text-align: right;
  padding-left: 0;
  padding-right: 28px;
}
.hero-path--biz .hero-path-bullets li::before {
  left: auto;
  right: 0;
}
.hero-path--biz .hero-path-bullets li::after {
  left: auto;
  right: 5px;
}

/* Anti-fricción line — chip pequeño que elimina objeciones */
.hero-path-friction {
  display: inline-block;
  margin-top: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.3px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-path-cta {
  display: inline-block;
  margin-top: 8px;
  padding: 14px 26px;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.3px;
  /* Mismo timing que el resto — todo se sincroniza */
  transition: background 0.7s cubic-bezier(0.32, 0.72, 0, 1),
              border-color 0.7s cubic-bezier(0.32, 0.72, 0, 1),
              transform 0.7s cubic-bezier(0.32, 0.72, 0, 1),
              box-shadow 0.7s cubic-bezier(0.32, 0.72, 0, 1),
              color 0.7s cubic-bezier(0.32, 0.72, 0, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-path-sub {
  transition: color 0.7s cubic-bezier(0.32, 0.72, 0, 1),
              transform 0.7s cubic-bezier(0.32, 0.72, 0, 1);
}

/* ─── HOVER STATE — game-button effect MÁS SUTIL ───
       Edgar 2026-06-29: el hover anterior era muy dramático (58/42 +
       scale 1.05 + grayscale dramatic). Al entrar a la página el
       cursor caía sobre un lado y parecía 'siempre activo'. Ahora
       el cambio es más sutil — un acento, no una transformación. ─── */
@media (hover: hover) {
  /* Edgar 2026-06-29: SIN flex-basis change. Antes los 2 paneles
     crecían/encogían pero el desbalance visual (margen negativo +
     clip) hacía que "solo creciera la derecha". Ahora ambos
     mantienen 50/50 SIEMPRE — el efecto game-button viene del color,
     scale, header morph y CTA, NO del cambio de ancho. */
  /* Edgar 2026-06-30: transform comentado — el JS hero-parallax.js
     controla scale y translate de la imagen para hacer eye-tracking.
     CSS solo controla filter. */
  .hero-path:hover .hero-path-bg img {
    filter: grayscale(0%) brightness(1) saturate(1);
  }
  .hero-path:hover .hero-path-overlay {
    background: linear-gradient(
      180deg,
      rgba(8, 12, 24, 0.05) 0%,
      rgba(8, 12, 24, 0.2) 60%,
      rgba(8, 12, 24, 0.6) 100%
    );
  }
  /* Header morph: default fade out, hover fade in */
  .hero-path:hover .hpt-default { opacity: 0; transform: translateY(-12px); }
  .hero-path:hover .hpt-hover   { opacity: 1; transform: translateY(0); }
  /* CTA glow */
  .hero-path:hover .hero-path-cta {
    background: var(--gold, #FF8A00);
    border-color: var(--gold, #FF8A00);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(255, 138, 0, 0.45),
                0 4px 14px rgba(255, 138, 0, 0.3);
  }
  /* El panel pasivo se atenúa LIGERAMENTE (antes grayscale 70% +
     brightness 50% era agresivo, parecía apagado). */
  .hero--split:hover .hero-path:not(:hover) .hero-path-bg img {
    filter: grayscale(30%) brightness(0.78) saturate(0.85);
  }
  .hero--split:hover .hero-path:not(:hover) .hero-path-overlay {
    background: linear-gradient(
      180deg,
      rgba(8, 12, 24, 0.25) 0%,
      rgba(8, 12, 24, 0.4) 55%,
      rgba(8, 12, 24, 0.78) 100%
    );
  }
}
.hero-path:active .hero-path-cta {
  transform: translateY(0);
  box-shadow: 0 4px 14px rgba(255, 138, 0, 0.3);
}

/* ─── BOTTOM STRIP — "Ya tengo cuenta" ─── */
.hero-bottom-strip {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  pointer-events: auto;
}
/* Edgar 2026-06-29: hover NARANJA igual que los CTAs de los paneles.
   Antes era hover blanco translúcido — Edgar pidió que se ilumine
   en naranja como los otros 2 botones. */
.hero-login-link {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.85);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  cursor: pointer;
  padding: 10px 22px;
  border-radius: 999px;
  transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  backdrop-filter: blur(6px);
}
.hero-login-link:hover {
  color: #fff;
  background: var(--gold, #FF8A00);
  box-shadow: 0 4px 22px rgba(255, 138, 0, 0.42);
  transform: translateY(-1px);
}
.hero-login-link:active {
  transform: translateY(0);
}

/* ─── MOBILE: CARRUSEL de 2 slides (idea + negocio) ───
       Edgar 2026-06-29: en móvil ambos paths se ven como un carrusel
       horizontal swipeable. Usa scroll-snap nativo — sin JS, smooth y
       compatible con touch. Dots de navegación abajo. ─── */
@media (max-width: 760px) {
  .hero--split {
    /* Edgar 2026-06-29: carrusel con transform:translateX en cada
       slide (JS hero-carousel.js). NO usar will-change aquí porque
       creaba un containing block que rompía position:fixed de los
       dots (Edgar reportó que se ocultaban al scroll vertical). */
    flex-direction: row;
    overflow: hidden;
    min-height: 100vh;
    min-height: 100dvh;
    height: 100vh;
    height: 100dvh;
    padding: 0 !important;
    background: transparent !important;
  }
  .hero--split::-webkit-scrollbar { display: none; }

  /* Cada slide ocupa 100% del viewport. JS hace translateX.
     will-change en el SLIDE (no en el container) para que el
     containing block del fixed de los dots quede en el viewport. */
  .hero-path {
    flex: 0 0 100vw;
    width: 100vw;
    min-width: 100vw;
    clip-path: none !important;
    margin: 0 !important;
    z-index: auto !important;
    will-change: transform;
  }
  /* Edgar 2026-06-29: imagen FIJA — sin transform, sin transition,
     sin filter. La imagen es absolute inset:0 con object-fit:cover
     para que NO se estire al hacer overscroll vertical (iOS Safari
     rubber-banding deformaba la imagen estilo zoom). */
  .hero-path-bg img {
    filter: none !important;
    transform: none !important;
    transition: none !important;
    object-position: center top;
    will-change: auto !important;
  }
  .hero-path-bg {
    overflow: hidden;
  }
  /* Edgar 2026-06-29: gradient bajado — el sombreado empieza más
     abajo (más imagen visible arriba) ahora que el contenido baja.
     transition: none → el overlay aparece INSTANTÁNEO al deslizar,
     no espera 0.7s del cubic-bezier (Edgar reportó delay 1-2s en
     mobile cuando aparecía el segundo slide). */
  .hero-path-overlay {
    background: linear-gradient(
      180deg,
      rgba(8, 12, 24, 0) 0%,
      rgba(8, 12, 24, 0) 50%,
      rgba(8, 12, 24, 0.55) 70%,
      rgba(8, 12, 24, 0.92) 90%,
      rgba(8, 12, 24, 0.98) 100%
    ) !important;
    transition: none !important;
  }
  /* Edgar 2026-06-29: pointer-events solo en el CTA — el overlay y
     el content NO bloquean el swipe del usuario. */
  .hero-path-overlay { pointer-events: none; }
  /* Edgar 2026-06-29: padding-bottom reducido de 100px → 48px porque
     ya quitamos 'Ya tengo cuenta'. El contenido (text + CTA) baja
     hasta donde antes era el strip. Los dots quedan debajo del CTA. */
  .hero-path-content {
    align-items: flex-start !important;
    text-align: left !important;
    padding: 0 22px 48px !important;
    justify-content: flex-end;
    pointer-events: none;
  }
  .hpt-hover { display: none; }
  .hero-path-sub { max-width: 100%; font-size: 16px; }
  .hero-path-title { font-size: clamp(38px, 9vw, 56px); }
  .hero-path-cta {
    width: 100%;
    text-align: center;
    padding: 16px 24px;
    pointer-events: auto;  /* solo el botón es interactivo */
  }

  /* DOTS de navegación — más cerca del bottom ahora que no hay strip.
     display: flex !important para override el display: none del desktop. */
  .hero-carousel-dots {
    position: fixed;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex !important;
    gap: 8px;
    z-index: 8;
    pointer-events: none;
  }
  .hero-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transition: background 0.3s, transform 0.3s, width 0.3s;
  }
  .hero-carousel-dot.is-active {
    background: var(--gold, #FF8A00);
    width: 24px;
    border-radius: 999px;
  }

  /* Edgar 2026-06-29: "Ya tengo cuenta" eliminado del HTML.
     hero-bottom-strip ya no existe en la página. */

  /* Edgar 2026-06-30: hint 'Desliza' ELIMINADO de mobile.
     Los dots del carrusel ya indican implícitamente que hay
     más slides. Look más limpio. */
  .hero-carousel-hint { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════════
   HERO LLOROSO FULL-BLEED — Edgar 2026-06-29
   La imagen 3D Pixar cubre TODA la pantalla del hero como background.
   El texto del hero vive ENCIMA gracias a position relative + z-index.
   El lado izquierdo de la imagen está limpio por diseño (40-45%),
   con un gradient overlay sutil para garantizar legibilidad.
   ═══════════════════════════════════════════════════════════════ */
.hero--lloroso {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;        /* mobile safe (notch + barra browser) */
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero--lloroso .hero-bg,
.hero--lloroso .hero-bg img,
.hero--lloroso .hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero--lloroso .hero-bg-img {
  object-fit: cover;
  /* En desktop la imagen es 16:9 y el viewport puede ser más ancho/alto.
     object-position right concentra el foco en Pio cuando cropea. */
  object-position: right center;
  display: block;
}
.hero--lloroso .hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* Gradient horizontal: muy oscuro a la izquierda (donde vive el texto),
     transparente a la derecha (donde vive Pio). Garantiza contraste para
     que el texto se lea sin quemar la imagen del personaje. */
  background: linear-gradient(
    to right,
    rgba(8, 12, 24, 0.88) 0%,
    rgba(8, 12, 24, 0.72) 28%,
    rgba(8, 12, 24, 0.35) 48%,
    rgba(8, 12, 24, 0.05) 70%,
    rgba(8, 12, 24, 0) 100%
  );
}
/* Edgar 2026-06-29: container del hero pegado al borde izquierdo —
   el texto se va MÁS a la izquierda del estándar. El container global
   tiene padding 0 32px + max-width centrado, pero acá overridemos
   para que el texto del hero coma todo el lado izquierdo. */
.hero--lloroso > .container {
  position: relative;
  z-index: 2;
  width: 100%;
  /* Padding-left grande pero no exagerado, padding-right libre. */
  padding-left: clamp(24px, 6vw, 96px);
  padding-right: 0;
  max-width: none;
}
.hero--lloroso .hero-grid {
  align-items: center;
}
/* Bloque del texto: ancho máximo controlado para que el copy se lea
   en columnas humanas (max ~520px), no se estire a todo el viewport. */
.hero--lloroso .hero-content {
  max-width: 560px;
  /* margin-left negativo opcional si necesitas pegarlo todavía más al
     borde — comentado por ahora. */
}
.hero--lloroso .hero-text-zone {
  margin-bottom: 28px;
}
.hero--lloroso #hero-headline {
  /* Pegado al borde izq, sin sangría. Si tu tipografía tiene
     side-bearing visible, descomenta el negative margin sutil. */
  /* margin-left: -3px; */
  line-height: 1.05;
  letter-spacing: -1.2px;
}
.hero--lloroso #hero-sub {
  font-size: clamp(17px, 1.25vw, 20px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  max-width: 480px;
  margin-top: 22px;
  font-weight: 500;
}
.hero--lloroso #hero-sub strong {
  color: var(--gold, #FF8A00);
  font-weight: 800;
}
/* CTAs nuevos: solo 2 botones en fila, segundo más sutil */
.hero--lloroso .hero-ctas-anon {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.hero--lloroso .hero-ctas-anon .btn-lg { min-width: 180px; }
.hero--lloroso .hero-visual--empty {
  display: block;
  min-height: 1px;
}

@media (max-width: 760px) {
  /* Edgar 2026-06-29: la imagen mobile ahora ES PORTRAIT (1080×1935),
     diseñada específicamente para pantallas verticales. Llena el hero
     full-height sin crop pesado. Pio queda en la zona superior, el texto
     se acomoda en la zona inferior con un gradient que oscurece desde
     abajo hacia arriba. */
  .hero--lloroso {
    min-height: 100vh;
    min-height: 100svh;
    padding: 0;
    align-items: flex-end;        /* texto pegado abajo, Pio respira arriba */
  }
  .hero--lloroso .hero-bg-img {
    object-position: center top;  /* Pio centrado en la parte superior */
  }
  .hero--lloroso .hero-bg-overlay {
    /* Gradient vertical: transparente arriba (Pio brilla), oscuro abajo
       (texto se lee con contraste fuerte). */
    background: linear-gradient(
      to bottom,
      rgba(8, 12, 24, 0) 0%,
      rgba(8, 12, 24, 0) 35%,
      rgba(8, 12, 24, 0.55) 55%,
      rgba(8, 12, 24, 0.88) 80%,
      rgba(8, 12, 24, 0.95) 100%
    );
  }
  .hero--lloroso > .container {
    padding: 40px 22px 56px;
  }
  .hero--lloroso .hero-content { max-width: 100%; }
  .hero--lloroso .hero-text-zone { margin-bottom: 20px; }
  .hero--lloroso #hero-sub { max-width: 100%; font-size: 16px; }
  .hero--lloroso .hero-ctas-anon .btn-lg { flex: 1; min-width: 0; }
}

/* ═══════════════════════════════════════════════════════════════
   PIO HERO — La mascota ES el hero (patrón Duolingo).
   3 iteraciones del dashboard mockup demostraron que mostrar
   screenshots dentro del dark hero NUNCA se ve premium. Pivot a
   mascota + glow + chat bubbles flotantes — emocional, brand-
   aligned, SaaS-2026 standard (Duolingo $5B con un búho).
   ═══════════════════════════════════════════════════════════════ */

.pio-hero {
  position: relative;
  width: 100%;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

/* Glow naranja masivo de fondo — 2 capas para profundidad */
.pio-hero-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255, 138, 0, 0.55) 0%,
    rgba(255, 138, 0, 0.32) 25%,
    rgba(255, 138, 0, 0.12) 50%,
    rgba(255, 138, 0, 0.04) 70%,
    transparent 100%
  );
  filter: blur(40px);
  z-index: -2;
  animation: pio-hero-glow 6s ease-in-out infinite;
  pointer-events: none;
}
.pio-hero-glow--2 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle,
    rgba(255, 200, 100, 0.45) 0%,
    rgba(255, 138, 0, 0.20) 40%,
    transparent 100%
  );
  filter: blur(24px);
  animation: pio-hero-glow 4s ease-in-out infinite reverse;
  z-index: -1;
}
@keyframes pio-hero-glow {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.85; }
  50%      { transform: translate(-50%, -50%) scale(1.12); opacity: 1; }
}

/* Ring decorativo concéntrico detrás de Pio */
.pio-hero-ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 360px;
  height: 360px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 138, 0, 0.18);
  z-index: -1;
  animation: pio-hero-ring 24s linear infinite;
  pointer-events: none;
}
@keyframes pio-hero-ring {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Mascot — el protagonista */
.pio-hero-mascot {
  position: relative;
  z-index: 2;
  animation: pio-hero-float 4s ease-in-out infinite;
  filter: drop-shadow(0 18px 32px rgba(255, 138, 0, 0.48));
}
.pio-hero-img {
  width: 280px;
  height: 280px;
  object-fit: contain;
  display: block;
}
@keyframes pio-hero-float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-12px) rotate(1.5deg); }
}

/* Burbujas de chat flotando con frases reales del producto */
.pio-hero-bubble {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  font-family: 'Nunito', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
  z-index: 3;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
  opacity: 0;
  animation: pio-hero-bubble-in 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Burbuja del usuario — fondo dark + texto blanco */
.pio-hero-bubble--user {
  background: linear-gradient(180deg, #0F172A 0%, #1A2336 100%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #F1F5F9;
  border-radius: 14px 14px 14px 4px;
}
.pio-hero-bubble-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF8A00, #FFA333);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Burbuja de Pio — fondo naranja translúcido */
.pio-hero-bubble--pio {
  background: linear-gradient(180deg, rgba(255, 138, 0, 0.96) 0%, rgba(230, 122, 0, 0.96) 100%);
  border: 1px solid rgba(255, 200, 100, 0.40);
  color: #FFFFFF;
  border-radius: 14px 14px 4px 14px;
}

/* Posicionamiento de cada burbuja (animación de entrada con stagger) */
.pio-hero-bubble--1 {
  top: 12%; left: -8%;
  animation-delay: 0.4s;
}
.pio-hero-bubble--2 {
  top: 38%; right: -10%;
  animation-delay: 0.8s;
}
.pio-hero-bubble--3 {
  bottom: 14%; left: 4%;
  animation-delay: 1.2s;
}

@keyframes pio-hero-bubble-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.85);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Float continuo de las burbujas después de aparecer */
.pio-hero-bubble--1 { animation: pio-hero-bubble-in 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s forwards, pio-hero-bubble-float-1 5s ease-in-out 1.5s infinite; }
.pio-hero-bubble--2 { animation: pio-hero-bubble-in 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.8s forwards, pio-hero-bubble-float-2 5.5s ease-in-out 2s infinite; }
.pio-hero-bubble--3 { animation: pio-hero-bubble-in 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 1.2s forwards, pio-hero-bubble-float-3 6s ease-in-out 2.5s infinite; }
@keyframes pio-hero-bubble-float-1 {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-8px) rotate(0deg); }
}
@keyframes pio-hero-bubble-float-2 {
  0%, 100% { transform: translateY(0) rotate(1deg); }
  50%      { transform: translateY(-10px) rotate(-1deg); }
}
@keyframes pio-hero-bubble-float-3 {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-6px) rotate(2deg); }
}

/* Reduced motion: sin float, sin glow pulse, sin ring */
@media (prefers-reduced-motion: reduce) {
  .pio-hero-glow,
  .pio-hero-ring,
  .pio-hero-mascot,
  .pio-hero-bubble { animation: none; }
  .pio-hero-bubble { opacity: 1; transform: none; }
}

/* Responsive: tablet — scale down */
@media (max-width: 1024px) {
  .pio-hero { min-height: 420px; }
  .pio-hero-img { width: 240px; height: 240px; }
  .pio-hero-glow { width: 440px; height: 440px; }
  .pio-hero-glow--2 { width: 260px; height: 260px; }
  .pio-hero-ring { width: 300px; height: 300px; }
  .pio-hero-bubble { font-size: 12.5px; padding: 9px 12px; }
}

/* Responsive: mobile — más compacto */
@media (max-width: 640px) {
  .pio-hero { min-height: 320px; }
  .pio-hero-img { width: 180px; height: 180px; }
  .pio-hero-glow { width: 320px; height: 320px; }
  .pio-hero-glow--2 { width: 200px; height: 200px; }
  .pio-hero-ring { width: 220px; height: 220px; }
  .pio-hero-bubble {
    font-size: 11.5px;
    padding: 7px 10px;
    gap: 6px;
  }
  .pio-hero-bubble-avatar { width: 18px; height: 18px; font-size: 10px; }
  .pio-hero-bubble--1 { top: 8%; left: 0%; }
  .pio-hero-bubble--2 { top: 36%; right: -2%; }
  .pio-hero-bubble--3 { bottom: 8%; left: 8%; }
}

.opp-card-hero {
  background: #ffffff;
  border-radius: var(--hc-radius);
  padding: var(--hc-pad);
  box-shadow:
    0 2px 4px rgba(0,0,0,0.04),
    0 8px 24px rgba(0,0,0,0.08),
    0 24px 56px rgba(0,0,0,0.10);
  border: 1px solid rgba(0,0,0,0.06);
  position: relative;
  z-index: 2;
  max-width: 440px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Tag */
.hc-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 138, 0,0.08);
  border: 1.5px solid rgba(255, 138, 0,0.28);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 11.5px;
  font-weight: 700;
  color: #c47f00;
  letter-spacing: 0.01em;
  margin-bottom: var(--hc-gap);
}

/* Title block */
.hc-title-block { margin-bottom: var(--hc-gap); }
.hc-city {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}
.hc-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
  line-height: 1.2;
  font-family: 'Nunito', sans-serif;
  letter-spacing: -0.01em;
}

/* Metrics grid: ingreso full-width, los dos menores lado a lado */
.hc-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: var(--hc-gap);
}

.hc-metric {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-radius: 14px;
  padding: 14px 16px;
}

.hc-metric--primary {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #FFFBF0 0%, #FFF8E6 100%);
  border: 1.5px solid rgba(255, 138, 0,0.25);
  align-items: center;
}

.hc-metric--secondary {
  background: #F8F9FA;
  border: 1.5px solid #EEEFF1;
}

.hc-metric-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.hc-metric--primary .hc-metric-icon { font-size: 22px; margin-top: 0; }

.hc-metric-body { display: flex; flex-direction: column; gap: 2px; }

.hc-metric-value {
  font-size: 20px;
  font-weight: 900;
  color: #c47f00;
  font-family: 'Nunito', sans-serif;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.hc-metric-value-sm {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}

.hc-metric-label {
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Steps block */
.hc-steps {
  background: #F8F9FA;
  border: 1px solid #EEEFF1;
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: var(--hc-gap);
}

.hc-steps-label {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.hc-steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: hc-steps;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hc-steps-list li {
  counter-increment: hc-steps;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-mid);
  line-height: 1.4;
}

.hc-steps-list li::before {
  content: counter(hc-steps);
  min-width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* CTA */
.hc-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  padding: 14px 20px;
  border-radius: 14px;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 4px 14px rgba(0,100,160,0.28);
  letter-spacing: 0.01em;
}
.hc-cta:hover {
  background: #1a5fa8;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,100,160,0.35);
}

/* ── HERO CARD MOBILE (solo visible en ≤768px) ───────── */
.hc-mobile-wrap {
  display: none; position: relative; /* shown only inside @media ≤768px */
}
.hc-mobile-card {
  opacity: 0;
}
.hc-mobile-card.hc-visible {
  opacity: 1;
}
.hc-m-float {
  position: absolute; top: -50px; right: -8px;
  background: var(--white); border-radius: var(--r-lg);
  padding: 10px 14px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 8px; font-size: 12px; z-index: 3;
  animation: floatCard2 5s ease-in-out infinite;
}


@media (max-width: 768px) {

  /* Hero title: exactamente 3 líneas */
  .hero-content h1 {
    font-size: clamp(1.65rem, 6vw, 2rem);
    line-height: 1.15;
  }
  .hero h1 em { display: inline; }
  .mobile-br { display: initial; }

  /* Card wrapper visible en mobile */
  .hc-mobile-wrap { display: block; }

  /* Card container — mismo radio y sombra que desktop */
  .hc-mobile-wrap { margin: 28px 0 36px; }
  .hc-mobile-card {
    display: block; /* opacity:0 lo oculta visualmente hasta .hc-visible */
    width: 100%;
    box-sizing: border-box;
    background: var(--white);
    border-radius: var(--hc-radius);
    padding: 24px 20px;
    margin: 0;
    box-shadow:
      0 2px 4px rgba(0,0,0,0.04),
      0 8px 24px rgba(0,0,0,0.08),
      0 24px 56px rgba(0,0,0,0.10);
    border: 1px solid rgba(0,0,0,0.06);
    text-align: left;
  }

  .hc-m-gancho { display: none; }

  /* Título */
  .hc-m-title {
    font-size: 20px;
    font-weight: 900;
    color: var(--text);
    line-height: 1.2;
    font-family: 'Nunito', sans-serif;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
  }

  /* Bloque ingreso — idéntico a .hc-metric--primary */
  .hc-m-income-block {
    background: linear-gradient(135deg, #FFFBF0 0%, #FFF8E6 100%);
    border: 1.5px solid rgba(255, 138, 0,0.25);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .hc-m-income-icon { font-size: 22px; flex-shrink: 0; }
  .hc-m-income {
    font-size: 22px;
    font-weight: 900;
    color: #c47f00;
    font-family: 'Nunito', sans-serif;
    line-height: 1.15;
    letter-spacing: -0.02em;
  }
  .hc-m-income-label {
    font-size: 10.5px;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.01em;
    margin-top: 3px;
  }

  .hc-m-validacion { display: none; }
  .hc-m-validacion-line {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 14px;
    padding-left: 2px;
  }

  /* Chips — idéntico a .hc-metric--secondary */
  .hc-m-chips {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .hc-m-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #F8F9FA;
    border: 1.5px solid #EEEFF1;
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-mid);
    line-height: 1.3;
  }

  /* Pasos — igual que .hc-steps desktop */
  .hc-m-steps-label {
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 14px;
  }
  .hc-m-steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: hcm-steps;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .hc-m-steps-list li {
    counter-increment: hcm-steps;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-mid);
    line-height: 1.4;
  }
  .hc-m-steps-list li::before {
    content: counter(hcm-steps);
    min-width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
}

/* ── IDEAS APP CARD (Panel 0) ────────────────────────── */

/* Header — light white, bleeds to card edges */
.ia-header {
  margin: calc(-1 * var(--hc-pad)) calc(-1 * var(--hc-pad)) 12px;
  padding: 12px 18px;
  border-radius: var(--hc-radius) var(--hc-radius) 0 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.ia-header-user { display: flex; align-items: center; gap: 10px; }
.ia-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--light-gray);
  border: 2px solid var(--border);
  overflow: hidden; flex-shrink: 0;
}
.ia-avatar img    { width: 100%; height: 100%; object-fit: cover; }
.ia-user-name     { font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.2; }
.ia-user-level    { font-size: 10px; font-weight: 500; color: var(--text-muted); }
.ia-header-stats  { display: flex; align-items: center; gap: 9px; }
.ia-stat          { display: flex; align-items: center; gap: 3px; font-size: 12px; }
.ia-stat-val      { font-size: 12px; font-weight: 800; }
.ia-stat--streak  { color: #EF4444; }
.ia-stat--fz      { color: #FF8A00; }
.ia-stat--mxn     { color: #16A34A; }

/* Section indicator — orange brand tint (no más azul del pre-rebrand) */
.ia-section {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 11px; border-radius: 10px;
  background: rgba(255,138,0,0.07); border: 1px solid rgba(255,138,0,0.18);
  margin-bottom: 10px; flex-shrink: 0;
}
.ia-section-left  { display: flex; align-items: center; gap: 8px; }
.ia-section-icon  { font-size: 15px; line-height: 1; color: #FF8A00; }
.ia-section-title { font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.2; }
.ia-section-status {
  font-size: 9.5px; font-weight: 800; letter-spacing: 0.05em;
  background: rgba(22,163,74,0.10); border: 1px solid rgba(22,163,74,0.25);
  color: #16A34A; border-radius: 6px; padding: 3px 9px;
}

/* Idea content */
.ia-idea       { flex: 1; display: flex; flex-direction: column; min-height: 0; gap: 8px; }
.ia-idea-tag   {
  font-size: 9.5px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.ia-idea-title {
  font-size: 16px; font-weight: 900; color: var(--text);
  line-height: 1.2; letter-spacing: -0.01em;
  font-family: 'Nunito', sans-serif; margin-top: -2px;
}

/* Income potential */
.ia-potential {
  display: flex; align-items: center; gap: 8px;
  background: rgba(22,163,74,0.06); border: 1px solid rgba(22,163,74,0.18);
  border-radius: 8px; padding: 7px 11px; flex-shrink: 0;
}
.ia-potential-label {
  font-size: 9px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.09em; color: var(--text-muted); flex-shrink: 0;
}
.ia-potential-range { font-size: 13px; font-weight: 700; color: var(--text); }
.ia-potential-range strong { color: #16A34A; }

/* Mini AI chat */
.ia-chat { display: flex; flex-direction: column; gap: 5px; flex-shrink: 0; }
.ia-chat-msg {
  font-size: 11.5px; font-weight: 600; border-radius: 10px;
  padding: 5px 10px; max-width: 88%; line-height: 1.3;
}
.ia-chat-msg--ai {
  background: rgba(255,138,0,0.08); border: 1px solid rgba(255,138,0,0.18);
  color: var(--text); align-self: flex-start;
  border-radius: 4px 10px 10px 10px;
}
.ia-chat-msg--user {
  background: rgba(15,23,42,0.04); border: 1px solid var(--border);
  color: var(--text-mid); align-self: flex-end;
  border-radius: 10px 4px 10px 10px;
}

/* Next step action block */
.ia-nextstep {
  background: var(--light-gray); border: 1px solid var(--border);
  border-radius: 10px; padding: 9px 12px; flex: 1; min-height: 0;
}
.ia-nextstep-label {
  font-size: 9px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.10em; color: var(--text-muted); margin-bottom: 4px;
}
.ia-nextstep-action {
  font-size: 12px; font-weight: 700; color: var(--text); margin-bottom: 8px; line-height: 1.3;
}
.ia-nextstep-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ia-btn {
  font-size: 11px; font-weight: 700; border-radius: 7px; padding: 6px 8px;
  border: none; cursor: pointer; text-align: center; font-family: inherit;
  transition: opacity 0.15s ease; line-height: 1.2;
}
.ia-btn--primary {
  background: linear-gradient(135deg, #FF8A00 0%, #FFA333 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255,138,0,0.32);
}
.ia-btn--secondary {
  background: var(--white); border: 1.5px solid var(--border);
  color: var(--text-mid);
}

/* Bottom nav — bleeds to card edges */
.ia-bottom-nav {
  margin: auto calc(-1 * var(--hc-pad)) calc(-1 * var(--hc-pad));
  padding: 9px calc(var(--hc-pad) - 4px) 11px;
  border-top: 1px solid var(--border);
  background: var(--white);
  border-radius: 0 0 var(--hc-radius) var(--hc-radius);
  display: flex; align-items: center;
  flex-shrink: 0;
}
.ia-nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  gap: 3px; cursor: pointer;
  opacity: 0.42; transition: opacity 0.15s ease;
}
.ia-nav-item:hover         { opacity: 0.70; }
.ia-nav-item--active       { opacity: 1; }
.ia-nav-icon               { width: 22px; height: 22px; display: block; color: var(--text-muted); flex-shrink: 0; }
.ia-nav-lbl                { font-size: 9px; font-weight: 700; color: var(--text-muted); }
.ia-nav-item--active .ia-nav-icon { color: #FF8A00; }
.ia-nav-item--active .ia-nav-lbl  { color: #FF8A00; }

/* ═══════════════════════════════════════════════════════════════
   PANEL 0 — DEMO EN VIVO del momento mágico
   Loop animado de ~17s. Split-panel: chat (izq) + CRM creciendo (der).
   Orquestado por JS (window.PIOFLY_DEMO en index.html).
   Clases con prefijo .dm- (demo).

   Diseño thinking:
   - El visual TIENE QUE demostrar la promesa "habla → se construye".
   - Welcome states no venden. Producto poblado en movimiento sí.
   - Patrón aprendido de Linear/Cursor/Cal.com.
   ═══════════════════════════════════════════════════════════════ */

.opp-card-hero--demo {
  display: flex;
  flex-direction: column;
  padding: 0 !important;
  overflow: hidden;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFD 100%);
}

/* ── Strip superior: live indicator + progress + brand ── */
.dm-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  background: #0F172A;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.dm-strip-left { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.dm-live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 0 0 rgba(34,197,94,0.6);
  animation: dm-live-pulse 1.6s ease-out infinite;
}
@keyframes dm-live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
.dm-strip-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94A3B8;
}
.dm-strip-progress {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
}
.dm-strip-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #FF8A00, #FFA333);
  border-radius: 999px;
  transition: width 0.1s linear;
}
.dm-strip-brand {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 900;
  color: #F1F5F9;
  letter-spacing: -0.2px;
  flex-shrink: 0;
}
.dm-strip-logo { width: 16px; height: 16px; object-fit: contain; }
.dm-strip-brand span { color: #FFFFFF; }

/* ── Split body ── */
.dm-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 1;
  min-height: 380px;
  background: #FFFFFF;
}

.dm-col {
  display: flex;
  flex-direction: column;
  padding: 12px 12px 10px;
  min-width: 0;
}
.dm-col--chat {
  background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
  border-right: 1px solid rgba(15,23,42,0.08);
}
.dm-col--crm {
  background: linear-gradient(180deg, #FFFAF3 0%, #FFFFFF 100%);
}

.dm-col-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 9px;
  flex-shrink: 0;
}
.dm-col-icon { font-size: 13px; line-height: 1; }
.dm-col-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748B;
}

/* ── Chat feed ── */
.dm-chat-feed {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
  overflow: hidden;
  padding-bottom: 8px;
}

/* Mensaje base */
.dm-msg {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  padding: 7px 10px;
  border-radius: 10px;
  max-width: 92%;
  opacity: 0;
  transform: translateY(6px) scale(0.96);
  animation: dm-msg-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes dm-msg-in {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.dm-msg--pio {
  background: linear-gradient(135deg, rgba(255,138,0,0.10), rgba(255,138,0,0.05));
  border: 1px solid rgba(255,138,0,0.20);
  color: #0F172A;
  align-self: flex-start;
  border-radius: 4px 12px 12px 12px;
}
.dm-msg--user {
  background: #0F172A;
  color: #FFFFFF;
  align-self: flex-end;
  border-radius: 12px 4px 12px 12px;
  font-weight: 500;
}

/* Typing dots (mientras Pio "piensa") */
.dm-msg--typing {
  background: rgba(15,23,42,0.04);
  border: 1px solid rgba(15,23,42,0.08);
  align-self: flex-start;
  display: inline-flex;
  gap: 4px;
  padding: 9px 12px;
}
.dm-typing-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #94A3B8;
  animation: dm-typing 1.2s ease-in-out infinite;
}
.dm-typing-dot:nth-child(2) { animation-delay: 0.15s; }
.dm-typing-dot:nth-child(3) { animation-delay: 0.30s; }
@keyframes dm-typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30% { transform: translateY(-3px); opacity: 1; }
}

/* Input "vivo": muestra el texto siendo tecleado + caret parpadeante */
.dm-chat-input {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 8px 12px;
  background: #FFFFFF;
  border: 1.5px solid rgba(15,23,42,0.10);
  border-radius: 999px;
  min-height: 32px;
  flex-shrink: 0;
  transition: border-color 0.2s ease;
}
.dm-chat-input.is-typing { border-color: rgba(255,138,0,0.4); }
.dm-chat-input-text {
  font-size: 11.5px;
  font-weight: 500;
  color: #0F172A;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dm-chat-input-caret {
  font-size: 13px;
  color: #FF8A00;
  font-weight: 700;
  margin-left: 1px;
  animation: dm-caret 1s steps(2, end) infinite;
}
@keyframes dm-caret { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

/* ── CRM column ── */
.dm-crm-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  overflow: hidden;
}

/* Estado vacío inicial */
.dm-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 7px;
  padding: 16px 8px;
  color: #94A3B8;
  transition: opacity 0.4s ease;
}
.dm-empty.is-hidden { opacity: 0; pointer-events: none; }
.dm-empty-spark {
  font-size: 22px;
  filter: drop-shadow(0 2px 4px rgba(255,138,0,0.18));
  animation: dm-spark 2.2s ease-in-out infinite;
}
@keyframes dm-spark {
  0%, 100% { transform: scale(1) rotate(0); }
  50% { transform: scale(1.15) rotate(8deg); }
}
.dm-empty-text {
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.4;
  max-width: 140px;
}

/* Card de negocio — slide-in desde la derecha */
.dm-biz {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  background: #FFFFFF;
  border: 1px solid rgba(255,138,0,0.32);
  border-radius: 11px;
  box-shadow: 0 4px 12px rgba(255,138,0,0.14);
  opacity: 0;
  transform: translateX(20px) scale(0.95);
  animation: dm-biz-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes dm-biz-in {
  to { opacity: 1; transform: translateX(0) scale(1); }
}
.dm-biz-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(255,138,0,0.16), rgba(255,138,0,0.06));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.dm-biz-info { flex: 1; min-width: 0; }
.dm-biz-name {
  font-size: 12px;
  font-weight: 900;
  color: #0F172A;
  line-height: 1.2;
  margin-bottom: 2px;
}
.dm-biz-tag {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9.5px;
  font-weight: 700;
  color: #64748B;
}
.dm-biz-chip {
  background: rgba(255,138,0,0.10);
  color: #FF8A00;
  padding: 1.5px 6px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.dm-biz-loc { font-size: 9.5px; }

/* Stats grid — aparece con burst, counters animan */
.dm-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  opacity: 0;
  transform: translateY(8px);
  animation: dm-stats-in 0.4s ease forwards;
}
@keyframes dm-stats-in {
  to { opacity: 1; transform: translateY(0); }
}
.dm-stat {
  background: #FFFFFF;
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 9px;
  padding: 7px 9px;
  position: relative;
  overflow: hidden;
}
.dm-stat::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255,138,0,0.15), transparent 70%);
  opacity: 0;
  animation: dm-stat-burst 0.7s ease forwards;
}
@keyframes dm-stat-burst {
  0% { opacity: 1; transform: scale(0.6); }
  100% { opacity: 0; transform: scale(1.5); }
}
.dm-stat-label {
  font-size: 8.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94A3B8;
  margin-bottom: 2px;
}
.dm-stat-val {
  font-size: 16px;
  font-weight: 900;
  color: #0F172A;
  font-family: 'Nunito', sans-serif;
  letter-spacing: -0.02em;
}
.dm-stat--revenue .dm-stat-val { color: #16A34A; }

/* Lista de clientes — 12 cards en grid stagger */
.dm-clients {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.dm-clients-label {
  font-size: 8.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94A3B8;
}
.dm-clients-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}
.dm-client {
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0;
  opacity: 0;
  transform: scale(0.4);
  animation: dm-client-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes dm-client-in {
  to { opacity: 1; transform: scale(1); }
}

/* Fade global durante reset */
.opp-card-hero--demo.is-resetting .dm-split { opacity: 0.18; transition: opacity 0.5s ease; }

/* ── Responsive: en mobile stack vertical ── */
@media (max-width: 600px) {
  .dm-split {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .dm-col--chat {
    border-right: none;
    border-bottom: 1px solid rgba(15,23,42,0.08);
  }
  .dm-chat-feed { min-height: 160px; }
  .dm-crm-body { min-height: 180px; }
  .dm-clients-grid { grid-template-columns: repeat(6, 1fr); }
}

/* ── Accesibilidad: reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .dm-live-dot,
  .dm-typing-dot,
  .dm-empty-spark,
  .dm-chat-input-caret { animation: none; }
  .dm-msg,
  .dm-biz,
  .dm-stats,
  .dm-client { opacity: 1; transform: none; animation: none; }
  .dm-strip-progress-fill { transition: none; }
}

/* ═══════════════════════════════════════════════════════════════
   PANEL 0 — Mini-replica fiel del dashboard (dashboard/ideas.html)
   Reemplaza el viejo .ia-* layout. La idea: que el visitante vea
   en pequeño EXACTAMENTE lo que va a ver al loguearse — no un
   mockup inventado de banca + battle pass.
   Clases con prefijo .dh- (dashboard hero).
   ═══════════════════════════════════════════════════════════════ */

/* Variante del card-hero que prepara el contexto para .dh-* */
.opp-card-hero--dash {
  display: flex;
  flex-direction: column;
  padding: 0 !important;            /* el header/chatbar manejan su propio padding y bleed */
  overflow: hidden;
}

/* ── Header: bleed-to-edges, replica del header del dashboard ── */
.dh-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 16px;
  background: #FFFFFF;
  border-bottom: 1px solid rgba(15,23,42,0.08);
  flex-shrink: 0;
}
.dh-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}
.dh-brand-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.dh-brand-text {
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 900;
  color: #0F172A;
  letter-spacing: -0.2px;
}
.dh-brand-fly { color: #FF8A00; }

/* Nav central — Inicio / Ideas (active) */
.dh-nav {
  display: flex;
  gap: 2px;
  flex: 1;
  justify-content: center;
}
.dh-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 700;
  color: #64748B;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.dh-nav-item svg { stroke: currentColor; }
.dh-nav-item:hover { background: rgba(255,138,0,0.06); color: #FF8A00; }
.dh-nav-item--active {
  color: #FF8A00;
  background: rgba(255,138,0,0.10);
}

/* Stats + user pill al lado derecho */
.dh-header-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.dh-hstat {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}
.dh-hstat--fire {
  background: rgba(239,68,68,0.10);
  border: 1px solid rgba(239,68,68,0.22);
  color: #EF4444;
}
.dh-hstat--coins {
  background: rgba(255,138,0,0.10);
  border: 1px solid rgba(255,138,0,0.22);
  color: #FF8A00;
}
.dh-userpill {
  display: flex;
  align-items: center;
  margin-left: 2px;
}
.dh-userpill-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF8A00, #FFA333);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(255,138,0,0.32);
}

/* ── Workspace: contenedor que cambia entre welcome y feed ── */
.dh-workspace {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  min-height: 0;
}

/* ── Body: welcome-state — saludo + 4 cards + upload CTA ── */
.dh-welcome {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px 18px 12px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFD 100%);
  overflow: hidden;
  transition: opacity 0.32s ease, transform 0.32s ease;
}
.dh-welcome.is-fading-out {
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
}
.dh-greet {
  font-size: 14px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.2px;
  line-height: 1.25;
  margin-bottom: 4px;
}
.dh-wave {
  display: inline-block;
  animation: dh-wave 2.5s ease-in-out infinite;
  transform-origin: 70% 70%;
}
@keyframes dh-wave {
  0%, 60%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  30% { transform: rotate(14deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
}
.dh-greet-sub {
  font-size: 11.5px;
  font-weight: 500;
  color: #64748B;
  margin-bottom: 14px;
  line-height: 1.4;
}

/* 4 cards en grid 2x2 — los prompts del feed-welcome real */
.dh-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-bottom: 12px;
}
.dh-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 10px 11px;
  background: #FFFFFF;
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}
.dh-card:hover,
.dh-card.is-highlighted {
  border-color: rgba(255,138,0,0.45);
  background: rgba(255,138,0,0.06);
  transform: translateY(-1px);
  box-shadow: 0 0 0 3px rgba(255,138,0,0.10);
}
.dh-card.is-highlighted {
  animation: dh-card-pulse 1.2s ease-out;
}
@keyframes dh-card-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,138,0,0.32); }
  60%  { box-shadow: 0 0 0 8px rgba(255,138,0,0); }
  100% { box-shadow: 0 0 0 3px rgba(255,138,0,0.10); }
}
.dh-card.is-clicking {
  animation: dh-card-click 0.35s ease;
}
@keyframes dh-card-click {
  0%   { transform: translateY(-1px) scale(1); }
  40%  { transform: translateY(0) scale(0.96); }
  100% { transform: translateY(-1px) scale(1); }
}
.dh-card-icon {
  font-size: 16px;
  line-height: 1;
}
.dh-card-label {
  font-size: 10.5px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.25;
}

/* "¿Ya tienes un negocio?" + CTA "Subir mi negocio" */
.dh-upload {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: linear-gradient(135deg, rgba(255,138,0,0.08), rgba(255,138,0,0.03));
  border: 1px solid rgba(255,138,0,0.22);
  border-radius: 10px;
}
.dh-upload-text { flex: 1; min-width: 0; }
.dh-upload-title {
  font-size: 11.5px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.2;
}
.dh-upload-sub {
  font-size: 10px;
  font-weight: 600;
  color: #64748B;
  line-height: 1.3;
  margin-top: 1px;
}
.dh-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  background: linear-gradient(135deg, #FF8A00, #FFA333);
  color: #FFFFFF;
  border: none;
  border-radius: 7px;
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(255,138,0,0.28);
  transition: transform 0.12s ease, box-shadow 0.15s ease;
}
.dh-upload-btn:hover { transform: translateY(-1px); box-shadow: 0 5px 12px rgba(255,138,0,0.36); }

/* ── Chat feed: aparece in-place sobre el workspace cuando el chat
       arranca (welcome state hace fade-out, feed hace fade-in). ── */
.dh-feed {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 16px 12px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFD 100%);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  inset: 0;
  transition: opacity 0.35s ease;
}
.dh-feed.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Mensajes — burbujas estilo chat normal, Pio izq + usuario der */
.dh-msg {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  max-width: 92%;
  opacity: 0;
  transform: translateY(6px) scale(0.97);
  animation: dh-msg-in 0.32s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes dh-msg-in {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.dh-msg--pio { align-self: flex-start; }
.dh-msg--user {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.dh-msg-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,138,0,0.15), rgba(255,138,0,0.06));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1.5px solid rgba(255,138,0,0.24);
  overflow: hidden;
}
.dh-msg-avatar img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}
.dh-msg-bubble {
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.4;
  padding: 7px 11px;
  border-radius: 12px;
}
.dh-msg--pio .dh-msg-bubble {
  background: linear-gradient(135deg, rgba(255,138,0,0.10), rgba(255,138,0,0.04));
  border: 1px solid rgba(255,138,0,0.22);
  color: #0F172A;
  border-radius: 4px 12px 12px 12px;
}
.dh-msg--user .dh-msg-bubble {
  background: #0F172A;
  color: #FFFFFF;
  font-weight: 500;
  border-radius: 12px 4px 12px 12px;
}
.dh-msg--user .dh-msg-avatar {
  background: linear-gradient(135deg, #FF8A00, #FFA333);
  border-color: transparent;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 900;
}
.dh-msg--user .dh-msg-avatar::after { content: 'E'; }

/* Typing dots dentro de la burbuja Pio */
.dh-msg--typing .dh-msg-bubble {
  display: inline-flex;
  gap: 4px;
  padding: 9px 12px;
}
.dh-typing-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #FF8A00;
  animation: dh-typing 1.2s ease-in-out infinite;
}
.dh-typing-dot:nth-child(2) { animation-delay: 0.15s; }
.dh-typing-dot:nth-child(3) { animation-delay: 0.30s; }
@keyframes dh-typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30% { transform: translateY(-3px); opacity: 1; }
}

/* ── Chat bar al fondo, replica de .chat-bar del dashboard ── */
.dh-chatbar {
  padding: 9px 14px 12px;
  background: #FFFFFF;
  border-top: 1px solid rgba(15,23,42,0.08);
  flex-shrink: 0;
}
.dh-chatbar-hint {
  font-size: 10px;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.dh-chatbar-row {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #F8FAFC;
  border: 1.5px solid rgba(15,23,42,0.08);
  border-radius: 999px;
  padding: 4px 4px 4px 14px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.dh-chatbar-row:has(.dh-chatbar-typewriter:not(:empty)) {
  border-color: rgba(255,138,0,0.4);
  background: rgba(255,138,0,0.04);
}
.dh-chatbar-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 6px 0;
}
.dh-chatbar-typewriter {
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  color: #0F172A;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
}
.dh-chatbar-caret {
  font-size: 14px;
  color: #FF8A00;
  font-weight: 700;
  margin-left: 1px;
  animation: dh-caret 1s steps(2, end) infinite;
}
.dh-chatbar-placeholder {
  position: absolute;
  left: 0;
  font-size: 12px;
  font-weight: 500;
  color: #94A3B8;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
@keyframes dh-caret { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
.dh-chatbar-send {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF8A00, #FFA333);
  color: #FFFFFF;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(255,138,0,0.32);
  flex-shrink: 0;
}
.dh-chatbar-send svg { transform: translateX(-1px); }

/* Reset transition durante loop */
.opp-card-hero--dash.is-resetting .dh-feed { opacity: 0.4; transition: opacity 0.5s ease; }
.opp-card-hero--dash.is-resetting .dh-welcome { opacity: 0.4; transition: opacity 0.5s ease; }

/* ═══════════════════════════════════════════════════════════════
   VIDEO HERO — Cuando Edgar sube hero-demo.mp4 + .webm + poster,
   descomenta el bloque del video en index.html y comenta la
   animación. Estos estilos quedan listos.
   ═══════════════════════════════════════════════════════════════ */

.opp-card-hero--video {
  padding: 0 !important;
  background: #0F172A;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dh-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* object-position: center top — ajustar después según el crop del video */
}

/* Pill "Piofly en vivo" en la esquina, sutil pero presente */
.dh-video-live {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #F1F5F9;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0,0,0,0.32);
}
.dh-video-live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 0 0 rgba(34,197,94,0.6);
  animation: dh-video-live-pulse 1.6s ease-out infinite;
}
@keyframes dh-video-live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .dh-wave,
  .dh-typing-dot,
  .dh-chatbar-caret { animation: none; }
  .dh-msg, .dh-card { opacity: 1; transform: none; animation: none; }
}

/* Floating cards */
.float-card {
  position: absolute; background: var(--white); border-radius: var(--r-lg);
  padding: 14px 18px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px; font-size: 13px; z-index: 3;
}
.float-card-1 { bottom: -20px; left: -56px; animation: floatCard1 4s ease-in-out infinite; }
.float-card-2 { top: -44px; right: -48px; animation: floatCard2 5s ease-in-out infinite; }
.float-icon { font-size: 24px; }
.float-title { font-weight: 700; color: var(--text); font-size: 13px; }
.float-sub   { color: var(--text-muted); font-size: 12px; }

/* ── CARD MASCOT GUIDE ───────────────────────────────── */
.hc-mascot {
  position: absolute;
  right: -36px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  pointer-events: none;
  animation: hcMascotFloat 3.2s ease-in-out infinite;
  filter:
    drop-shadow(0 4px 10px rgba(0,143,200,0.22))
    drop-shadow(0 1px 3px rgba(0,0,0,0.10));
}
.hc-mascot-img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  display: block;
}
@keyframes hcMascotFloat {
  0%,  100% { transform: translateY(-50%) rotate(-2deg); }
  50%        { transform: translateY(calc(-50% - 9px)) rotate(2deg); }
}

@media (max-width: 900px) {
  .hc-mascot { right: -24px; }
  .hc-mascot-img { width: 52px; height: 52px; }
}
@media (max-width: 640px) {
  .hc-mascot { display: none; }
}

/* ── COURSES CARD MASCOT GUIDE ───────────────────────── */
.cs-mascot {
  position: absolute;
  right: -52px;
  top: 46%;
  transform: translateY(-50%);
  z-index: 4;
  pointer-events: none;
  animation: csMascotFloat 3.6s ease-in-out infinite, csMascotGlow 2.4s ease-in-out infinite;
  filter:
    drop-shadow(0 0 8px rgba(255, 138, 0,0.90))
    drop-shadow(0 0 18px rgba(255, 138, 0,0.55))
    drop-shadow(0 0 32px rgba(255, 138, 0,0.30))
    drop-shadow(0 2px 6px rgba(0,0,0,0.12));
}
.cs-mascot-img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  display: block;
}
@keyframes csMascotFloat {
  0%,  100% { transform: translateY(-50%) rotate(-2.5deg); }
  50%        { transform: translateY(calc(-50% - 8px)) rotate(2deg); }
}
@keyframes csMascotGlow {
  0%,  100% {
    filter:
      drop-shadow(0 0 4px rgba(255, 138, 0,0.45))
      drop-shadow(0 0 10px rgba(255, 138, 0,0.22))
      drop-shadow(0 2px 5px rgba(0,0,0,0.10));
  }
  50% {
    filter:
      drop-shadow(0 0 7px rgba(255, 138, 0,0.65))
      drop-shadow(0 0 16px rgba(255, 138, 0,0.35))
      drop-shadow(0 2px 5px rgba(0,0,0,0.10));
  }
}

@media (max-width: 900px) {
  .cs-mascot { right: -22px; }
  .cs-mascot-img { width: 50px; height: 50px; }
}
@media (max-width: 640px) {
  .cs-mascot { display: none; }
}

/* ── HERO SLIDE SYSTEM ───────────────────────────────── */
.hero-slides-container { display: grid; }
.hero-slide-panel {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(14px) scale(0.99);
  transition: opacity 0.5s cubic-bezier(0.4,0,0.2,1),
              transform 0.5s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
}
.hero-slide-panel.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Text fade zone */
.hero-text-zone {
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.hero-text-zone.fading {
  opacity: 0;
  transform: translateY(-8px);
}

/* Slide dot indicators — absolute, bottom center of hero */
.hero-dots {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 7px; z-index: 2;
}
.hero-dot {
  height: 4px; width: 22px; border-radius: 2px;
  background: rgba(255,255,255,0.28);
  border: none; cursor: pointer; padding: 0; flex-shrink: 0;
  transition: background 0.35s ease, width 0.35s cubic-bezier(0.4,0,0.2,1);
}
.hero-dot.active { width: 38px; background: var(--gold); }
.hero-dot:hover:not(.active) { background: rgba(255,255,255,0.55); }

/* ── SLIDE CARD ELEMENTS (hs-*) ──────────────────────── */
.hs-progress-wrap { margin-bottom: var(--hc-gap); }
.hs-progress-header {
  display: flex; justify-content: space-between;
  font-size: 13px; color: var(--text-muted); margin-bottom: 8px; font-weight: 600;
}
.hs-progress-track { height: 8px; background: #EEF4FF; border-radius: 4px; overflow: hidden; }
.hs-progress-fill {
  height: 100%; background: var(--primary); border-radius: 4px;
}
.hs-progress-fill--gold { background: var(--gold); }

.hs-lesson-card {
  display: flex; align-items: center; gap: 12px;
  background: #EEF4FF; border-radius: var(--r-lg);
  padding: 13px 16px; margin-bottom: var(--hc-gap);
}
.hs-lesson-icon { font-size: 22px; flex-shrink: 0; }
.hs-lesson-name { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.hs-lesson-meta { font-size: 11px; color: var(--text-muted); }

/* ── COURSES TABBED CARD (Panel 2) ───────────────────── */
.cs-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; flex-shrink: 0;
}
.cs-header-label { font-size: 16px; font-weight: 800; color: var(--text); }
.cs-header-count {
  font-size: 12px; font-weight: 700; color: var(--primary);
  background: rgba(0,143,200,0.08); border: 1px solid rgba(0,143,200,0.16);
  border-radius: 20px; padding: 3px 11px; white-space: nowrap;
}

/* Segmented tabs */
.cs-tabs {
  display: flex; background: var(--light-gray);
  border-radius: 10px; padding: 3px; gap: 3px;
  margin-bottom: 14px; flex-shrink: 0;
}
.cs-tab {
  flex: 1; text-align: center;
  padding: 8px 8px; border-radius: 8px;
  font-size: 13px; font-weight: 700; color: var(--text-muted);
  cursor: pointer; transition: all 0.18s ease; user-select: none;
  display: flex; align-items: center; justify-content: center; gap: 5px;
}
.cs-tab:hover { background: var(--white); color: var(--text); }
.cs-tab--active { background: var(--white); color: var(--primary); box-shadow: 0 1px 5px rgba(0,0,0,0.10); }

/* Panes */
.cs-pane { display: none; flex: 1; flex-direction: column; min-height: 0; }
.cs-pane--active { display: flex; }

/* ── APRENDER PANE ─────────────────────────────────── */
.cs-catalog {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 9px; margin-bottom: 10px; flex-shrink: 0;
}
.cs-course-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
  cursor: pointer; transition: box-shadow 0.18s ease, transform 0.18s ease;
  display: flex; flex-direction: column;
}
.cs-course-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.10); transform: translateY(-2px); }

.cs-course-thumb {
  width: 100%; height: 64px; flex-shrink: 0;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.cs-thumb-foto { background: linear-gradient(135deg, #1c1c3a 0%, #2d4aa8 100%); }
.cs-thumb-biz  { background: linear-gradient(135deg, #0d3b2e 0%, #1a7a5e 100%); }
.cs-thumb-copy { background: linear-gradient(135deg, #3b1060 0%, #9b3fb5 100%); }
.cs-thumb-fin  { background: linear-gradient(135deg, #0d2137 0%, #1a5276 100%); }

.cs-thumb-cat {
  position: absolute; bottom: 6px; left: 7px;
  font-size: 7.5px; font-weight: 800; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.75);
  background: rgba(0,0,0,0.28); border-radius: 3px; padding: 1px 5px;
}
.cs-thumb-play {
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255,255,255,0.20);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; color: #fff; flex-shrink: 0;
}

.cs-course-body { padding: 9px 10px; display: flex; flex-direction: column; flex: 1; }
.cs-course-title {
  font-size: 13px; font-weight: 700; color: var(--text);
  line-height: 1.3; margin-bottom: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cs-course-instructor {
  font-size: 11px; color: var(--text-muted); font-weight: 500; margin-bottom: 6px; flex: 1;
}
.cs-course-bottom {
  display: flex; align-items: center; justify-content: space-between;
}
.cs-course-stars { font-size: 11px; color: #E6A817; font-weight: 700; }
.cs-course-price { font-size: 13.5px; font-weight: 900; color: var(--primary); }

.cs-catalog-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 13px;
  background: var(--light-gray); border-radius: 9px;
  font-size: 12px; font-weight: 600; color: var(--text-muted);
  flex-shrink: 0; margin-top: auto;
}
.cs-catalog-link { font-weight: 700; color: var(--primary); cursor: pointer; }

/* ── ENSEÑAR PANE ──────────────────────────────────── */
.cs-upload-zone {
  border: 2px dashed #CBD5E1; border-radius: 12px;
  padding: 18px 14px; text-align: center;
  margin-bottom: 12px; cursor: pointer; flex-shrink: 0;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.cs-upload-zone:hover { border-color: var(--primary); background: rgba(0,143,200,0.03); }
.cs-upload-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 8px;
}
.cs-upload-text { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.cs-upload-hint { font-size: 11.5px; color: var(--text-muted); }

.cs-field { margin-bottom: 10px; flex-shrink: 0; }
.cs-field-row { display: flex; gap: 8px; margin-bottom: 10px; flex-shrink: 0; }
.cs-field--half { flex: 1; min-width: 0; margin-bottom: 0; }
.cs-field-label {
  font-size: 11px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 5px;
}
.cs-field-input {
  height: 36px; border: 1.5px solid var(--border); border-radius: 8px;
  display: flex; align-items: center; padding: 0 12px;
  font-size: 13px; color: var(--text);
  transition: border-color 0.18s ease;
}
.cs-field-input:hover { border-color: var(--primary); }
.cs-field-ph { color: var(--text-light); }

.cs-teach-btn {
  width: 100%; padding: 12px;
  background: var(--primary); color: #fff;
  font-size: 14px; font-weight: 700; border-radius: 9px;
  text-align: center; cursor: pointer; flex-shrink: 0;
  margin-bottom: 12px;
  transition: background 0.18s ease;
  box-shadow: 0 3px 10px rgba(0,143,200,0.28);
}
.cs-teach-btn:hover { background: var(--primary-mid); }

.cs-teach-metrics {
  display: flex; gap: 8px;
  margin-top: auto; flex-shrink: 0;
}
.cs-teach-metric {
  flex: 1; background: var(--light-gray);
  border-radius: 9px; padding: 10px 6px; text-align: center;
}
.cs-teach-metric-val {
  display: block; font-size: 18px; font-weight: 900; color: var(--text);
  line-height: 1; margin-bottom: 5px;
}
.cs-teach-metric-lbl { font-size: 11.5px; color: var(--text-muted); font-weight: 500; }

.cs-teach-metric--income {
  background: linear-gradient(135deg, rgba(40,167,69,0.10), rgba(40,167,69,0.05));
  border: 1px solid rgba(40,167,69,0.22);
}
.cs-teach-metric--income .cs-teach-metric-val {
  color: var(--green);
  font-size: 15px;
}
.cs-teach-metric--income .cs-teach-metric-lbl {
  color: rgba(40,167,69,0.75);
}

/* ── FENIX WALLET CARD (Panel 3) ─────────────────────── */

/* Header — dark, bleeds to edges */
.fw-header {
  margin: calc(-1 * var(--hc-pad)) calc(-1 * var(--hc-pad)) 16px;
  padding: 15px 22px;
  border-radius: var(--hc-radius) var(--hc-radius) 0 0;
  background: linear-gradient(135deg, #071322 0%, #0C1F3F 60%, #0A192F 100%);
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.fw-header-user  { display: flex; align-items: center; gap: 11px; }
.fw-header-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.10);
  border: 2px solid rgba(255,255,255,0.18);
  overflow: hidden; flex-shrink: 0;
}
.fw-header-avatar img { width: 100%; height: 100%; object-fit: cover; }
.fw-header-name  { font-size: 15px; font-weight: 700; color: #fff; line-height: 1.2; }
.fw-header-level { font-size: 11px; font-weight: 500; color: rgba(255,255,255,0.45); }
.fw-header-stats { display: flex; align-items: center; gap: 12px; }
.fw-header-stat  { display: flex; align-items: center; gap: 4px; font-size: 14px; }
.fw-stat-val     { font-size: 13px; font-weight: 800; }
.fw-stat--streak { color: #FF6B6B; }
.fw-stat--fz     { color: #FF8A00; }

/* Hero balance grid: FZ + Saldo */
.fw-heroes {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; margin-bottom: 10px; flex-shrink: 0;
}
.fw-hero {
  border-radius: 12px; padding: 12px 14px;
  border: 1px solid transparent;
}
.fw-hero--fz {
  background: linear-gradient(135deg, rgba(255, 138, 0,0.10) 0%, rgba(255, 138, 0,0.05) 100%);
  border-color: rgba(255, 138, 0,0.22);
}
.fw-hero--money {
  background: linear-gradient(135deg, rgba(40,167,69,0.12) 0%, rgba(40,167,69,0.05) 100%);
  border-color: rgba(40,167,69,0.25);
}
.fw-hero-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 6px;
}
.fw-hero-val {
  font-size: 26px; font-weight: 900; line-height: 1;
  letter-spacing: -0.02em;
}
.fw-hero--fz    .fw-hero-val { color: var(--gold-dark); }
.fw-hero--money .fw-hero-val { color: #1A9E45; }
.fw-hero-delta {
  font-size: 11px; font-weight: 700; margin-top: 4px;
}
.fw-hero--fz    .fw-hero-delta { color: var(--green); }
.fw-hero--money .fw-hero-delta { color: #1A9E45; font-size: 12px; font-weight: 600; }

/* Karma — secondary, compact */
.fw-karma-row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 9px;
  background: rgba(40,167,69,0.06); border: 1px solid rgba(40,167,69,0.14);
  margin-bottom: 10px; flex-shrink: 0;
}
.fw-karma-icon  { font-size: 14px; flex-shrink: 0; }
.fw-karma-label { font-size: 11px; font-weight: 600; color: var(--text-muted); flex: 1; }
.fw-karma-val   { font-size: 13px; font-weight: 800; color: var(--green); }

/* Stats row — inline */
.fw-stats-row {
  display: flex; align-items: center;
  padding: 10px 14px; border-radius: 10px;
  background: var(--light-gray); border: 1px solid var(--border);
  margin-bottom: 12px; flex-shrink: 0;
}
.fw-stat-item  { flex: 1; text-align: center; }
.fw-stat-num   { display: block; font-size: 17px; font-weight: 900; color: var(--text); line-height: 1; }
.fw-stat-lbl   { display: block; font-size: 9.5px; font-weight: 600; color: var(--text-muted); margin-top: 3px; }
.fw-stat-div   { width: 1px; height: 28px; background: var(--border); flex-shrink: 0; }

/* Conversion block — dark fintech */
.fw-convert-block {
  background: linear-gradient(135deg, #071322 0%, #0C1F3F 100%);
  border-radius: 14px; padding: 14px 16px;
  margin-top: auto; flex-shrink: 0;
}
.fw-convert-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 11px;
}
.fw-convert-title { font-size: 13px; font-weight: 700; color: #fff; }
.fw-convert-rate-chip {
  font-size: 10px; font-weight: 700;
  background: rgba(40,167,69,0.18); color: #4ADE80;
  border: 1px solid rgba(40,167,69,0.28);
  border-radius: 20px; padding: 3px 10px;
}
.fw-conv-rows { display: flex; flex-direction: column; gap: 8px; }
.fw-conv-row  {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px; border-radius: 9px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07);
}
.fw-conv-equation { display: flex; align-items: center; gap: 8px; }
.fw-conv-fz     { font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.70); }
.fw-conv-arrow  { font-size: 13px; color: rgba(255,255,255,0.28); }
.fw-conv-money  { font-size: 14px; font-weight: 900; color: #4ADE80; }
.fw-conv-money--big { font-size: 16px; }
.fw-conv-btn {
  font-size: 11.5px; font-weight: 700;
  background: rgba(40,167,69,0.18); color: #4ADE80;
  border: 1px solid rgba(40,167,69,0.30);
  border-radius: 8px; padding: 6px 14px;
  cursor: pointer; transition: background 0.15s ease; flex-shrink: 0;
}
.fw-conv-btn:hover { background: rgba(40,167,69,0.32); }
.fw-conv-btn--primary {
  background: linear-gradient(135deg, #16A34A 0%, #22C55E 100%);
  color: #fff; border-color: transparent;
  box-shadow: 0 3px 10px rgba(22,163,74,0.40);
}
.fw-conv-btn--primary:hover { opacity: 0.90; }

.hs-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.hs-badge { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10px; font-weight: 600; color: var(--text-muted); }
.hs-badge-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.hs-badge-locked { opacity: 0.38; }

/* ── VERTICAL LEARNING PATH ──────────────────────────── */
.hs-vpath {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin-bottom: 18px;
  padding: 0 4px 0 2px;
}

.hs-vp-node {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

/* Vertical connector line — margin-left centers it under the 58px circle */
.hs-vp-line {
  width: 3px;
  height: 30px;
  border-radius: 2px;
  /* 58px/2 - 3px/2 = 27.5px */
  margin-left: 27.5px;
  flex-shrink: 0;
}
.hs-vp-line--done     { background: linear-gradient(to bottom, #1AADDA, #0073A8); }
.hs-vp-line--active   { background: linear-gradient(to bottom, #0073A8, rgba(255, 138, 0,0.55)); }
.hs-vp-line--inactive { background: linear-gradient(to bottom, rgba(255, 138, 0,0.35), #E4EAF3); }

/* Level circles */
.hs-vp-circle {
  width: 58px; height: 58px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* Level number */
.hs-gp-num {
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  color: #fff;
}

/* Done → blue */
.hs-vp-node--done .hs-vp-circle {
  background: linear-gradient(145deg, #1AADDA 0%, #006FA3 100%);
  box-shadow:
    0 4px 14px rgba(0,143,200,0.40),
    0 0 0 4px rgba(0,143,200,0.10),
    inset 0 2px 0 rgba(255,255,255,0.22);
}

/* Active → gold + scale + glow */
.hs-vp-circle--active {
  background: linear-gradient(145deg, #FACC3C 0%, #F07A0A 100%);
  transform: scale(1.18);
  animation: hsGpGlow 2.2s ease-in-out infinite;
}
.hs-vp-circle--active .hs-gp-num { font-size: 24px; }
@keyframes hsGpGlow {
  0%, 100% {
    box-shadow:
      0 6px 20px rgba(255, 138, 0,0.55),
      0 0 0 5px rgba(255, 138, 0,0.22),
      inset 0 2px 0 rgba(255,255,255,0.30);
  }
  50% {
    box-shadow:
      0 6px 24px rgba(255, 138, 0,0.30),
      0 0 0 14px rgba(255, 138, 0,0),
      inset 0 2px 0 rgba(255,255,255,0.30);
  }
}

/* Locked → small gray */
.hs-vp-circle--locked {
  background: linear-gradient(145deg, #E8EDF4 0%, #D4DCE8 100%);
  transform: scale(0.85);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.07);
}
.hs-gp-lock { font-size: 18px; }

/* Text body */
.hs-vp-body { flex: 1; min-width: 0; }

/* Coin reward badge for completed levels */
.hs-vp-reward {
  display: inline-flex; align-items: center;
  background: rgba(255, 138, 0,0.11);
  border: 1px solid rgba(255, 138, 0,0.26);
  color: var(--gold-dark);
  font-size: 11px; font-weight: 800;
  border-radius: 6px;
  padding: 3px 8px;
  margin-top: 6px;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

/* Bird mascot beside active node */
.hs-vp-bird {
  height: 74px; width: 74px;
  object-fit: contain;
  flex-shrink: 0;
  margin-left: 0px;
  animation: hsBirdBounce 2.6s cubic-bezier(0.36, 0.07, 0.19, 0.97) infinite;
  filter: none;
}
@keyframes hsBirdBounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  20%       { transform: translateY(-9px) rotate(-6deg); }
  40%       { transform: translateY(-3px) rotate(3deg); }
  60%       { transform: translateY(-6px) rotate(-2deg); }
  80%       { transform: translateY(-1px) rotate(1deg); }
}

/* Node labels */
.hs-gp-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.hs-vp-node--active .hs-gp-label { color: var(--gold); }
.hs-vp-node--locked .hs-gp-label { color: #B8C4D4; }

.hs-gp-sublabel {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.2;
  margin-top: 3px;
}
.hs-vp-node--active .hs-gp-sublabel { color: rgba(255, 138, 0,0.75); }
.hs-vp-node--locked .hs-gp-sublabel { color: #C8D3E0; }

/* XP badge */
.hs-gp-xp-badge {
  display: inline-block;
  background: linear-gradient(135deg, #FF8A00 0%, #FACC3C 100%);
  color: #fff;
  font-size: 11px; font-weight: 800;
  padding: 3px 9px;
  border-radius: 8px;
  white-space: nowrap;
  margin-top: 6px;
  box-shadow: 0 2px 8px rgba(255, 138, 0,0.40);
  letter-spacing: 0.02em;
}

/* Entrance pop animation when panel becomes active */
.hero-slide-panel.active .hs-vp-node:nth-child(1) { animation: hsNodePop 0.45s cubic-bezier(0.34,1.56,0.64,1) 0.05s both; }
.hero-slide-panel.active .hs-vp-node:nth-child(3) { animation: hsNodePop 0.45s cubic-bezier(0.34,1.56,0.64,1) 0.18s both; }
.hero-slide-panel.active .hs-vp-node:nth-child(5) { animation: hsNodePop 0.45s cubic-bezier(0.34,1.56,0.64,1) 0.31s both; }
@keyframes hsNodePop {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Mobile */
@media (max-width: 768px) {
  .hs-app-topbar { padding: 13px 16px; }
  .hs-vp-circle  { width: 46px; height: 46px; }
  .hs-gp-num     { font-size: 18px; }
  .hs-vp-bird    { height: 40px; width: 40px; }
  /* 46px/2 - 3px/2 = 21.5px */
  .hs-vp-line    { margin-left: 21.5px; }
}

/* ── APP UI TOPBAR (Panel 1) ─────────────────────────── */
.hs-app-topbar {
  margin: calc(-1 * var(--hc-pad)) calc(-1 * var(--hc-pad)) 20px;
  padding: 16px 22px;
  border-radius: var(--hc-radius) var(--hc-radius) 0 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hs-app-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hs-app-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--light-gray);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.hs-app-avatar img { width: 100%; height: 100%; object-fit: cover; }

.hs-app-user-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.hs-app-user-level {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.2;
}

.hs-app-stats {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hs-app-stat {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
}

.hs-app-stat-val {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-mid);
}
.hs-stat--streak { color: #E84855; }
.hs-stat--coins  { color: var(--gold-dark); }
.hs-stat--xp     { color: var(--primary); }

/* Module heading */
.hs-app-module {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.hs-app-module-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--primary);
  margin-bottom: 5px;
}

.hs-app-module-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}

/* Active lesson row */
.hs-app-lesson {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #FFFBF0 0%, #FFF6E0 100%);
  border: 1.5px solid rgba(255, 138, 0,0.20);
  border-radius: 12px;
}

.hs-app-lesson-play {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF8A00 0%, #FACC3C 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(255, 138, 0,0.38);
}

.hs-app-lesson-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.hs-app-lesson-meta {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 2px;
}

.hs-xp-text { color: var(--gold); font-weight: 800; }

/* ── STATS BAR ───────────────────────────────────────── */
.stats-bar { background: var(--white); border-bottom: 1px solid var(--border); }
.stats-bar .container {
  display: flex; justify-content: space-around;
  padding: 32px 32px; flex-wrap: wrap; gap: 24px;
}
.stat-item { text-align: center; position: relative; flex: 1; min-width: 120px; }
.stat-item::after {
  content: ''; position: absolute; right: 0; top: 10%;
  height: 80%; width: 1px; background: var(--border);
}
.stat-item:last-child::after { display: none; }
.stat-val { font-size: 2.2rem; font-weight: 900; color: var(--primary); display: block; font-family: 'Nunito', sans-serif; }
.stat-label { font-size: 13px; color: var(--text-muted); font-weight: 600; }

/* ── CÓMO FUNCIONA ───────────────────────────────────── */
.how-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.how-card {
  background: var(--white); border-radius: var(--r-xl);
  padding: 28px; border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); position: relative; transition: var(--transition);
}
.how-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: rgba(0,143,200,0.2); }
.how-number {
  position: absolute; top: 16px; right: 16px;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(0,143,200,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: var(--primary);
}
.how-icon {
  width: 52px; height: 52px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 16px;
}
.how-card h3 { margin-bottom: 8px; color: var(--text); }
.how-card p  { font-size: 14px; line-height: 1.65; }

/* ── MÓDULOS / LEARN PREVIEW ─────────────────────────── */
.module-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.module-card {
  background: var(--white); border-radius: var(--r-xl);
  padding: 24px; border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); transition: var(--transition);
}
.module-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: rgba(0,143,200,0.15); }
.module-icon {
  width: 48px; height: 48px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 12px;
}
.module-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; flex-wrap: wrap; gap: 4px; }
.module-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 12px; line-height: 1.4; }
.module-start { color: var(--primary); font-size: 14px; font-weight: 700; }

/* ── GENERADOR DE IDEAS ──────────────────────────────── */
.generator-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
  padding: 80px 0;
}
.generator-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.generator-section h2 { color: var(--white); }
.generator-section p  { color: rgba(255,255,255,0.65); }
.generator-section .section-label { color: rgba(255,255,255,0.5); }
.generator-section .section-label::before,
.generator-section .section-label::after { background: rgba(255,255,255,0.2); }
.suggestion-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.suggestion-chip {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--r-full); padding: 7px 14px;
  font-size: 13px; color: rgba(255,255,255,0.8); cursor: pointer; transition: var(--transition);
}
.suggestion-chip:hover { background: rgba(255, 138, 0,0.18); color: var(--gold); border-color: rgba(255, 138, 0,0.35); }
.generator-card {
  background: var(--white); border-radius: var(--r-xl); padding: 28px; box-shadow: var(--shadow-lg);
}
.generator-card label { font-size: 14px; font-weight: 700; color: var(--text-mid); display: block; margin-bottom: 8px; }
.generator-input-row { display: flex; gap: 10px; margin-bottom: 16px; }
.generator-input {
  flex: 1; display: flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--border); border-radius: var(--r-md);
  padding: 12px 16px; background: var(--off-white); font-size: 14px; color: var(--text-muted);
}
.generator-btn {
  width: 48px; height: 48px; border-radius: var(--r-md);
  background: var(--gold); display: flex; align-items: center; justify-content: center;
  font-size: 20px; cursor: pointer; flex-shrink: 0; transition: var(--transition);
}
.generator-btn:hover { background: var(--gold-dark); transform: scale(1.05); }
.result-preview { background: var(--off-white); border-radius: var(--r-lg); padding: 16px; margin-bottom: 16px; }
.result-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.result-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.result-stats { display: flex; gap: 16px; flex-wrap: wrap; }
.result-stat { display: flex; align-items: center; gap: 6px; }
.result-stat-icon { font-size: 14px; }
.result-stat-val   { font-size: 13px; font-weight: 700; color: var(--text); }
.result-stat-label { font-size: 11px; color: var(--text-muted); }

/* ── OPORTUNIDADES ───────────────────────────────────── */
.opp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.opp-card {
  background: var(--off-white); border-radius: var(--r-xl);
  padding: 24px; border: 1px solid var(--border); transition: var(--transition);
}
.opp-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: transparent; }
.opp-card.featured { border-color: rgba(255, 138, 0,0.45); background: #FFFDF0; }
.opp-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.opp-icon { width: 48px; height: 48px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.opp-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 8px; line-height: 1.4; }
.opp-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; line-height: 1.6; }
.opp-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.opp-tag { background: var(--light-gray); padding: 3px 10px; border-radius: var(--r-full); font-size: 11px; font-weight: 700; color: var(--text-muted); }
.opp-metrics { display: flex; background: var(--white); border-radius: var(--r-md); padding: 12px; gap: 8px; margin-bottom: 12px; }
.opp-metric { flex: 1; text-align: center; }
.opp-metric-val   { font-size: 12px; font-weight: 700; color: var(--text); }
.opp-metric-label { font-size: 10px; color: var(--text-muted); }
.opp-cta {
  display: block; text-align: center; padding: 10px;
  border-radius: var(--r-md); font-size: 13px; font-weight: 700; color: var(--white); transition: var(--transition);
}

/* ── GAMIFICACIÓN / LOGROS ───────────────────────────── */
.achievements-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; align-items: center; }
.achievements-left .feature-list { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.feature-item { display: flex; align-items: center; gap: 14px; }
.feature-icon { width: 40px; height: 40px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.feature-text { font-size: 15px; color: var(--text-mid); }
.badges-grid { grid-column: 2 / 4; display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.achievement-badge { display: flex; flex-direction: column; align-items: center; gap: 8px; width: calc(33% - 14px); }
.badge-icon-wrap {
  width: 72px; height: 72px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; border: 2px solid transparent; transition: var(--transition);
}
.badge-icon-wrap:hover { transform: scale(1.08); }
.achievement-badge.locked { opacity: 0.4; }
.badge-label { font-size: 11px; font-weight: 700; color: var(--text-mid); text-align: center; }

/* ── COMUNIDAD ───────────────────────────────────────── */
.community-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 32px; }
.post-card { background: var(--white); border-radius: var(--r-xl); padding: 24px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.post-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.post-user { display: flex; align-items: center; gap: 12px; }
.post-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 800; color: var(--gold); }
.post-name { font-size: 14px; font-weight: 700; color: var(--text); }
.post-meta { font-size: 12px; color: var(--text-muted); }
.post-text { font-size: 14px; color: var(--text-mid); line-height: 1.7; margin-bottom: 12px; }
.post-footer { display: flex; gap: 12px; align-items: center; border-top: 1px solid var(--border); padding-top: 12px; }
.post-action { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--text-muted); cursor: pointer; padding: 4px 8px; border-radius: var(--r-sm); transition: var(--transition); }
.post-action:hover { background: var(--light-gray); color: var(--text); }

/* ── BATTLE PASS PREVIEW ─────────────────────────────── */
.battle-pass-section {
  background: linear-gradient(135deg, #0F1340 0%, var(--primary) 50%, #1A237E 100%);
  padding: 80px 0; overflow: hidden; position: relative;
}
.battle-pass-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(255, 138, 0,0.08), transparent 60%);
}
.battle-pass-section .section-label { color: rgba(255,255,255,0.5); }
.battle-pass-section .section-label::before,
.battle-pass-section .section-label::after { background: rgba(255,255,255,0.15); }
.battle-pass-section h2 { color: var(--white); }
.battle-pass-section p  { color: rgba(255,255,255,0.65); }
.bp-track {
  display: flex; gap: 8px; overflow-x: auto; padding: 20px 0;
  scrollbar-width: none; -ms-overflow-style: none;
}
.bp-track::-webkit-scrollbar { display: none; }
.bp-node {
  flex-shrink: 0; width: 72px; display: flex; flex-direction: column;
  align-items: center; gap: 8px; position: relative;
}
.bp-node::after {
  content: ''; position: absolute; top: 24px; left: calc(50% + 16px);
  width: calc(100% - 32px); height: 2px; background: rgba(255,255,255,0.15);
}
.bp-node:last-child::after { display: none; }
.bp-circle {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  position: relative; z-index: 1;
  border: 2px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06); transition: var(--transition);
}
.bp-circle.unlocked {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-color: var(--gold); box-shadow: 0 4px 12px rgba(255, 138, 0,0.4);
}
.bp-circle.premium { background: linear-gradient(135deg, #7C3AED, #5B21B6); border-color: #A78BFA; }
.bp-level  { font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.5); }
.bp-reward { font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.7); text-align: center; line-height: 1.3; }
.bp-premium-tag { font-size: 8px; background: rgba(124,58,237,0.4); color: #C4B5FD; padding: 2px 6px; border-radius: 20px; font-weight: 700; }

/* ── PRICING PREVIEW ─────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pricing-card {
  background: var(--white); border-radius: var(--r-xl);
  padding: 32px 28px; border: 2px solid var(--border);
  transition: var(--transition); position: relative; margin-top: 16px;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card.featured { border-color: var(--gold); background: linear-gradient(135deg, #FFFBF0, var(--white)); }
.pricing-card.featured::before {
  content: 'MÁS POPULAR'; position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--primary); font-size: 10px; font-weight: 900;
  padding: 5px 18px; border-radius: 20px; letter-spacing: 0.15em; white-space: nowrap;
}
.pricing-plan-name { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 8px; }
.pricing-price { font-family: 'Nunito', sans-serif; font-size: 2.5rem; font-weight: 900; color: var(--text); line-height: 1; margin-bottom: 4px; }
.pricing-price span { font-size: 1rem; font-weight: 600; color: var(--text-muted); }
.pricing-period { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.pricing-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.pricing-feature { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-mid); }
.pricing-feature .check { color: var(--green); font-weight: 800; flex-shrink: 0; }
.pricing-feature .cross { color: var(--text-light); flex-shrink: 0; }

/* ── CTA FINAL ───────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, #005E8A 0%, var(--primary) 50%, #1AAAD9 100%);
  padding: 100px 0; text-align: center; position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 100%, rgba(255, 138, 0,0.1), transparent);
  pointer-events: none;
}
.cta-section .eyebrow {
  font-size: 13px; font-weight: 800; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--gold); margin-bottom: 16px;
}
.cta-section h2 { color: var(--white); margin-bottom: 16px; }
.cta-section p  { color: rgba(255,255,255,0.7); max-width: 480px; margin: 0 auto 44px; font-size: 17px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.cta-note { font-size: 13px; color: rgba(255,255,255,0.4); }

/* ── RETOS / CHALLENGES ──────────────────────────────── */
.challenge-card {
  background: var(--white); border-radius: var(--r-lg);
  padding: 16px 20px; border: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px; transition: var(--transition);
}
.challenge-card:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.challenge-icon { font-size: 24px; flex-shrink: 0; }
.challenge-info { flex: 1; }
.challenge-name { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.challenge-reward { font-size: 12px; color: var(--gold); font-weight: 700; }
.challenge-done { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--green-bg); color: var(--green); font-size: 14px; flex-shrink: 0; }
.challenge-todo { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border); flex-shrink: 0; }

/* ── SISTEMA / FLUJO ─────────────────────────────────── */
.sys-section {
  padding: 90px 0 100px;
  background: none;
  position: relative; overflow: hidden;
}
.sys-section::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 15% 80%, rgba(255,255,255,0.05) 0%, transparent 65%),
    radial-gradient(ellipse 50% 60% at 85% 20%, rgba(255, 138, 0,0.07) 0%, transparent 65%);
}

.sys-header {
  text-align: center; margin-bottom: 64px; position: relative; z-index: 1;
}
.sys-header h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  font-weight: 900; color: #fff; margin-bottom: 10px;
}
.sys-header h2 em { color: var(--gold); font-style: normal; }
.sys-header p { font-size: 15px; color: rgba(255,255,255,0.6); font-weight: 500; }

.sys-flow {
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
}

/* ── Connector ── */
.sys-conn {
  flex: 1; max-width: 56px; min-width: 16px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px; margin-bottom: 60px;
}
.sys-conn span {
  display: block; width: 100%; height: 1.5px;
  background: rgba(255,255,255,0.2); position: relative;
  transition: background 0.5s ease;
}
.sys-conn span::after {
  content: '';
  position: absolute; right: -1px; top: -5px;
  width: 0; height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 8px solid rgba(255,255,255,0.2);
  transition: border-left-color 0.5s ease;
}
.sys-conn.lit span { background: rgba(255,255,255,0.55); }
.sys-conn.lit span::after { border-left-color: rgba(255,255,255,0.55); }

/* ── Step ── */
.sys-step {
  flex: 1; max-width: 175px; min-width: 110px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; cursor: default;
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.sys-step.sys-visible { opacity: 1; transform: none; }

.sys-icon-wrap {
  width: 68px; height: 68px; border-radius: 20px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center; font-size: 28px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}
.sys-step:hover .sys-icon-wrap {
  transform: translateY(-6px);
  background: rgba(255,255,255,0.18);
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}

/* Featured: Genera */
.sys-step--featured .sys-icon-wrap {
  width: 80px; height: 80px; font-size: 34px; border-radius: 24px;
  background: rgba(255, 138, 0,0.2);
  border-color: rgba(255, 138, 0,0.5);
  box-shadow: 0 0 0 6px rgba(255, 138, 0,0.1), 0 6px 24px rgba(255, 138, 0,0.25);
}
.sys-step--featured .sys-title { color: var(--gold); font-size: 17px; }
.sys-step--featured:hover .sys-icon-wrap {
  background: rgba(255, 138, 0,0.28);
  box-shadow: 0 0 0 8px rgba(255, 138, 0,0.1), 0 12px 32px rgba(255, 138, 0,0.3);
}

.sys-step-body { width: 100%; }
.sys-title {
  font-size: 15px; font-weight: 800; color: #fff; margin-bottom: 8px;
}
.sys-desc {
  font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.62);
  line-height: 1.6;
}

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid, .generator-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .achievements-grid { grid-template-columns: 1fr; }
  .badges-grid { grid-column: 1; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .battle-pass-section > .container > div { grid-template-columns: 1fr !important; gap: 40px; }
}
@media (max-width: 768px) {
  /* Sistema flow — mobile vertical */
  .sys-flow { flex-direction: column; align-items: center; }
  .sys-step { max-width: 300px; width: 100%; flex-direction: row; text-align: left; gap: 16px; }
  .sys-step--featured .sys-icon-wrap { width: 68px; height: 68px; font-size: 28px; }
  .sys-icon-wrap { margin-bottom: 0; flex-shrink: 0; }
  .sys-conn { max-width: none; min-width: auto; width: 2px; height: 28px; flex-direction: column; margin-bottom: 0; padding: 4px 0; }
  .sys-conn span { width: 2px; height: 100%; }
  .sys-conn span::after {
    top: auto; bottom: -7px; right: auto; left: -5px;
    border-top: 8px solid rgba(255,255,255,0.2); border-left: 6px solid transparent;
    border-right: 6px solid transparent; border-bottom: none;
  }
  .sys-conn.lit span::after { border-top-color: rgba(255,255,255,0.55); }

  .opp-card-hero   { padding: 24px 20px; max-width: 100%; }
  .hc-title        { font-size: 18px; }
  .hc-metric-value { font-size: 14px; }
  .hero       { padding: 136px 0 48px; }
  .hero h1    { font-size: clamp(1.8rem, 7vw, 2.6rem); text-align: center; }
  .hero-content { text-align: center; }
  .hero-ctas  { align-items: center; }
  .hero-sub   { font-size: 15px; }
  .hero-ctas  { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn-gold { text-align: center; justify-content: center; }
  .hero-ctas .btn-outline { text-align: center; justify-content: center; }
  .hero-cta-tertiary { text-align: center; }
  .btn-ya-tengo-cuenta { text-align: center; align-self: center; }
  .hero-ctas .btn { text-align: center; justify-content: center; }
  .hero-eyebrow { font-size: 12px; padding: 6px 14px; }
  .stats-bar .container { flex-wrap: wrap; gap: 0; }
  .stat-item  { min-width: 50%; padding: 20px 0; }
  .stat-item::after { display: none; }
  .stat-val   { font-size: 1.8rem; }
  .how-grid   { grid-template-columns: 1fr; gap: 14px; }
  .module-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .opp-grid   { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: 1fr; }
  .achievements-grid { grid-template-columns: 1fr; gap: 24px; }
  .badges-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .battle-pass-section { padding: 52px 0; }
  .pricing-grid { grid-template-columns: 1fr; gap: 14px; }
  .cta-section  { padding: 64px 0; }
  .cta-buttons  { flex-direction: column; align-items: stretch; }
  .cta-buttons .btn { text-align: center; justify-content: center; }
}
@media (max-width: 480px) {
  .hc-metrics { grid-template-columns: 1fr; }
  .hc-metric--primary { grid-column: 1; }
  .opp-card-hero { padding: 20px 16px; }
  .module-grid { grid-template-columns: 1fr; }
  .badge-icon-wrap { width: 56px; height: 56px; font-size: 22px; }
  .badges-grid { grid-template-columns: repeat(2, 1fr); }
  .bp-node { width: 60px; }
  .bp-circle { width: 40px; height: 40px; font-size: 14px; }
}

/* ═══════════════════════════════════════════════════════
   IDEA GENERATOR — Modal overlay experience
   ═══════════════════════════════════════════════════════ */

.ig-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(10,24,48,0.65);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.ig-overlay.open { opacity: 1; pointer-events: all; }

.ig-modal {
  background: white; border-radius: 20px;
  width: 100%; max-width: 620px; max-height: 90vh;
  overflow-y: auto; display: flex; flex-direction: column;
  transform: translateY(24px) scale(0.98);
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 32px 80px rgba(0,0,0,0.22);
  scrollbar-width: thin;
}
.ig-overlay.open .ig-modal { transform: translateY(0) scale(1); }

.ig-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.4rem 0; flex-shrink: 0;
}
.ig-header-brand { display: flex; align-items: center; gap: 8px; }
.ig-header-logo  { height: 22px; }
.ig-header-label {
  font-size: 0.72rem; font-weight: 800; color: var(--primary);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.ig-close {
  width: 32px; height: 32px; border-radius: 50%;
  border: none; background: var(--off-white);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 1.1rem; line-height: 1;
  transition: background 0.15s; flex-shrink: 0;
}
.ig-close:hover { background: #e8e8e8; }

.ig-dots { display: flex; gap: 6px; align-items: center; }
.ig-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--border); transition: all 0.25s;
}
.ig-dot.active { background: var(--primary); width: 18px; border-radius: 4px; }
.ig-dot.done   { background: var(--primary); opacity: 0.35; }

.ig-step {
  padding: 1.5rem 1.75rem 1.75rem;
  display: none; flex-direction: column;
  animation: ig-fadein 0.28s ease;
}
.ig-step.active { display: flex; }

@keyframes ig-fadein {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}

.ig-eyebrow {
  font-size: 0.7rem; font-weight: 800; color: var(--primary);
  text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 0.3rem;
}
.ig-step h2 {
  font-size: 1.3rem; font-weight: 900; color: var(--text);
  margin: 0 0 0.35rem; line-height: 1.2;
}
.ig-step > p { font-size: 0.85rem; color: var(--text-muted); margin: 0 0 1.4rem; }

.ig-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.1rem; }
.ig-chip {
  padding: 0.45rem 1rem; border-radius: 99px;
  border: 1.5px solid var(--border);
  background: white; color: var(--text-mid);
  font-size: 0.82rem; font-weight: 700;
  cursor: pointer; transition: all 0.15s; user-select: none;
  font-family: inherit;
}
.ig-chip:hover { border-color: var(--primary); color: var(--primary); background: #f0f8fd; }
.ig-chip.sel   { border-color: var(--primary); background: var(--primary); color: white; }

.ig-input-wrap { position: relative; margin-bottom: 1.25rem; }
.ig-input-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; background-color: var(--text-light);
  mask: url(../assets/ui/icons/lightbulb.svg) center/contain no-repeat;
  -webkit-mask: url(../assets/ui/icons/lightbulb.svg) center/contain no-repeat;
  pointer-events: none;
}
.ig-input-icon--city {
  mask-image: url(../assets/ui/icons/chart.svg);
  -webkit-mask-image: url(../assets/ui/icons/chart.svg);
}
.ig-input {
  width: 100%; padding: 0.8rem 1rem 0.8rem 2.6rem;
  border: 1.5px solid var(--border); border-radius: 12px;
  font-family: inherit; font-size: 0.9rem; color: var(--text);
  background: var(--off-white); outline: none; box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ig-input:focus { border-color: var(--primary); background: white; box-shadow: 0 0 0 3px rgba(0,143,200,0.1); }
.ig-input.err   { border-color: #E53935; }
.ig-error { font-size: 0.75rem; color: #E53935; margin-top: 0.3rem; display: none; }
.ig-error.show  { display: block; }

.ig-btn {
  width: 100%; padding: 0.9rem;
  border: none; border-radius: 12px; cursor: pointer;
  font-family: inherit; font-size: 0.95rem; font-weight: 800;
  transition: background 0.15s, transform 0.1s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.ig-btn:active { transform: scale(0.98); }
.ig-btn--primary { background: var(--primary); color: white; }
.ig-btn--primary:hover { background: #0077b3; }
.ig-btn--gold    { background: var(--gold); color: white; }
.ig-btn--gold:hover { background: var(--gold-dark); }
.ig-btn--outline { background: white; color: var(--primary); border: 1.5px solid var(--primary); }
.ig-btn--outline:hover { background: #f0f8fd; }

/* Loading */
.ig-loading { align-items: center; padding: 2.5rem 1.75rem; gap: 0; }
.ig-loading-visual {
  width: 80px; height: 80px; margin: 0 auto 1.75rem; position: relative;
}
.ig-loading-ring {
  width: 80px; height: 80px; border-radius: 50%;
  border: 3px solid var(--off-white);
  border-top-color: var(--primary); border-right-color: var(--primary);
  animation: ig-spin 1s linear infinite;
  position: absolute; inset: 0;
}
.ig-loading-center {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.ig-loading-center img { width: 32px; height: 32px; opacity: 0.7; }
@keyframes ig-spin { to { transform: rotate(360deg); } }

.ig-loading-msgs { text-align: center; min-height: 80px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.ig-loading-msg  { font-size: 0.86rem; color: var(--text-mid); font-weight: 600; opacity: 0; transition: opacity 0.4s ease; }
.ig-loading-msg.vis { opacity: 1; }

.ig-loading-bar-wrap {
  width: 100%; max-width: 280px; margin: 1.4rem auto 0;
  height: 4px; background: var(--off-white); border-radius: 99px; overflow: hidden;
}
.ig-loading-bar { height: 100%; background: var(--primary); border-radius: 99px; width: 0; transition: width 0.45s ease; }

/* Result */
.ig-result { padding: 1.25rem 1.5rem 0.5rem; display: flex; flex-direction: column; gap: 0.75rem; }

.ig-result-hero {
  background: linear-gradient(135deg, #005E8A, var(--primary));
  border-radius: 14px; padding: 1.25rem 1.4rem; color: white;
  display: flex; align-items: flex-start; gap: 1rem;
}
.ig-result-hero-icon {
  width: 44px; height: 44px; background: rgba(255,255,255,0.15);
  border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.ig-result-hero-icon img { width: 22px; height: 22px; filter: brightness(0) invert(1); }
.ig-result-badge {
  font-size: 0.66rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
  background: rgba(255,255,255,0.18); border-radius: 99px; padding: 2px 10px;
  display: inline-block; margin-bottom: 6px;
}
.ig-result-title { font-size: 1.1rem; font-weight: 900; line-height: 1.2; margin: 0 0 5px; }
.ig-result-desc  { font-size: 0.81rem; opacity: 0.87; line-height: 1.5; margin: 0; }

.ig-result-grid  { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; }
.ig-card {
  background: #F8FAFD; border: 1.5px solid var(--border);
  border-radius: 12px; padding: 0.85rem 1rem;
}
.ig-card--full { grid-column: 1 / -1; }
.ig-card-head  { display: flex; align-items: center; gap: 8px; margin-bottom: 0.45rem; }
.ig-card-icon  {
  width: 18px; height: 18px; flex-shrink: 0;
  background-color: var(--primary);
  mask: url(../assets/ui/icons/star.svg) center/contain no-repeat;
  -webkit-mask: url(../assets/ui/icons/star.svg) center/contain no-repeat;
}
.ig-card-icon--users  { mask-image: url(../assets/ui/icons/users.svg);  -webkit-mask-image: url(../assets/ui/icons/users.svg); }
.ig-card-icon--coin   { mask-image: url(../assets/ui/icons/coin.svg);   -webkit-mask-image: url(../assets/ui/icons/coin.svg);  background-color: #B8860B; }
.ig-card-icon--chart  { mask-image: url(../assets/ui/icons/chart.svg);  -webkit-mask-image: url(../assets/ui/icons/chart.svg); background-color: #10B981; }
.ig-card-icon--check  { mask-image: url(../assets/ui/icons/check.svg);  -webkit-mask-image: url(../assets/ui/icons/check.svg); background-color: #28A745; }
.ig-card-icon--book   { mask-image: url(../assets/ui/icons/book.svg);   -webkit-mask-image: url(../assets/ui/icons/book.svg);  background-color: #8B5CF6; }
.ig-card-icon--fire   { mask-image: url(../assets/ui/icons/fire.svg);   -webkit-mask-image: url(../assets/ui/icons/fire.svg);  background-color: #E53935; }
.ig-card-icon--trophy { mask-image: url(../assets/ui/icons/trophy.svg); -webkit-mask-image: url(../assets/ui/icons/trophy.svg); background-color: #B8860B; }
.ig-card-label { font-size: 0.7rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.ig-card p     { font-size: 0.83rem; color: var(--text-mid); line-height: 1.5; margin: 0; }

.ig-steps-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.ig-steps-list li {
  display: flex; align-items: flex-start; gap: 0.6rem;
  font-size: 0.83rem; color: var(--text-mid); line-height: 1.45;
}
.ig-steps-list li::before {
  content: attr(data-n); width: 20px; height: 20px; border-radius: 50%;
  background: var(--primary); color: white; font-size: 0.62rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.ig-errors-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.ig-errors-list li {
  display: flex; align-items: flex-start; gap: 0.5rem;
  font-size: 0.83rem; color: var(--text-mid); line-height: 1.45;
}
.ig-errors-list li::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #E53935; flex-shrink: 0; margin-top: 6px;
}

/* Expansions */
.ig-expand-section { padding: 0 1.5rem; }
.ig-expand-divider {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.ig-expand-divider::before, .ig-expand-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.ig-expand-divider span { font-size: 0.7rem; font-weight: 800; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
.ig-expand-btns { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.ig-expand-btn {
  padding: 0.45rem 0.9rem; border-radius: 99px;
  border: 1.5px solid var(--border); background: white;
  font-family: inherit; font-size: 0.78rem; font-weight: 700;
  color: var(--text-mid); cursor: pointer; transition: all 0.15s;
}
.ig-expand-btn:hover { border-color: var(--primary); color: var(--primary); background: #f0f8fd; }
.ig-expand-btn.loading { border-color: var(--primary); color: var(--primary); opacity: 0.7; cursor: wait; }
.ig-expand-btn.used    { opacity: 0.35; cursor: not-allowed; pointer-events: none; }

.ig-expansion-card {
  background: #F0F8FD; border: 1.5px solid var(--primary);
  border-radius: 12px; padding: 1rem 1.1rem; margin-bottom: 0.75rem;
  display: none;
}
.ig-expansion-card.show { display: block; animation: ig-fadein 0.3s ease; }
.ig-expansion-card h4   { font-size: 0.88rem; font-weight: 800; color: var(--primary); margin: 0 0 0.5rem; }
.ig-expansion-card p    { font-size: 0.82rem; color: var(--text-mid); line-height: 1.55; margin: 0; }
.ig-expansion-card ul   { padding-left: 1.2rem; margin: 0.45rem 0 0; }
.ig-expansion-card li   { font-size: 0.82rem; color: var(--text-mid); line-height: 1.5; margin-bottom: 3px; }

.ig-typing { display: inline-flex; gap: 4px; align-items: center; padding: 0.3rem 0; }
.ig-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); opacity: 0.3; animation: ig-bounce 1.2s ease infinite; }
.ig-typing span:nth-child(2) { animation-delay: 0.2s; }
.ig-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes ig-bounce {
  0%,60%,100% { transform: translateY(0); opacity: 0.3; }
  30%          { transform: translateY(-5px); opacity: 1; }
}

.ig-paywall {
  background: linear-gradient(135deg, #FFF9F0, white);
  border: 1.5px solid #F5C842; border-radius: 12px;
  padding: 1rem 1.1rem; text-align: center; margin-bottom: 0.75rem;
  display: none;
}
.ig-paywall.show { display: block; animation: ig-fadein 0.3s ease; }
.ig-paywall p    { font-size: 0.84rem; color: var(--text-mid); margin: 0 0 0.75rem; }
.ig-paywall strong { color: #B8860B; }

/* Save CTA */
.ig-save-section {
  background: #F8FAFD; border-top: 1px solid var(--border);
  padding: 1.25rem 1.5rem 1.5rem; margin-top: 0.25rem; flex-shrink: 0;
}
.ig-save-section p { font-size: 0.79rem; color: var(--text-muted); text-align: center; margin: 0.55rem 0 0; line-height: 1.5; }

/* ── Result hero (ig-r-* system) ─────────────── */
.ig-r-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0072A8 100%);
  padding: 1.4rem 1.5rem 1.25rem;
  box-sizing: border-box;
  overflow: hidden;
  width: 100%;
}
.ig-r-hero__top {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.35rem;
}
.ig-r-hero__badge {
  background: rgba(255,255,255,0.18); color: white;
  font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.65rem;
  border-radius: 20px; letter-spacing: 0.02em; white-space: nowrap;
}
.ig-r-hero__loc {
  font-size: 0.72rem; color: rgba(255,255,255,0.75); font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px;
}
.ig-r-hero__micro {
  font-size: 0.73rem; color: rgba(255,255,255,0.65); margin: 0 0 0.75rem; line-height: 1.4;
}
.ig-r-hero__titulo {
  font-size: 1.2rem; font-weight: 800; color: white;
  margin: 0 0 0.3rem; line-height: 1.3;
  word-break: break-word;
}
.ig-r-hero__tagline {
  font-size: 0.82rem; color: rgba(255,255,255,0.8); margin: 0 0 1.1rem; line-height: 1.5;
}

.ig-r-metrics {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem;
}
.ig-r-metric {
  background: rgba(255,255,255,0.14); border-radius: var(--r-md);
  padding: 0.6rem 0.5rem; text-align: center;
  min-width: 0; box-sizing: border-box;
}
.ig-r-metric__label {
  display: block; font-size: 0.63rem; color: rgba(255,255,255,0.7);
  font-weight: 600; letter-spacing: 0.03em; margin-bottom: 0.2rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ig-r-metric__value {
  display: block; font-size: 0.82rem; font-weight: 800; color: white;
  word-break: break-word;
}

.ig-r-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; margin-bottom: 0.65rem;
}

.ig-r-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 0.85rem 1rem;
  box-sizing: border-box; min-width: 0; overflow: hidden;
}
.ig-r-card--accent {
  background: linear-gradient(135deg, #EBF7FF, #F0F9FF);
  border-color: rgba(0,143,200,0.2);
}
.ig-r-card--green {
  background: linear-gradient(135deg, #F0FFF4, #ECFDF5);
  border-color: rgba(45,106,79,0.2);
}
.ig-r-card__label {
  display: block; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--text-muted); text-transform: uppercase; margin-bottom: 0.3rem;
}
.ig-r-card p {
  font-size: 0.82rem; color: var(--text-mid); margin: 0; line-height: 1.55;
  word-break: break-word;
}

.ig-r-section__title {
  font-size: 0.8rem; font-weight: 700; color: var(--text-mid);
  letter-spacing: 0.03em; margin: 1.1rem 0 0.5rem; text-transform: uppercase;
}
.ig-r-steps {
  padding-left: 1.2rem; margin: 0;
}
.ig-r-steps li {
  font-size: 0.83rem; color: var(--text-mid); line-height: 1.55; margin-bottom: 0.45rem;
}
.ig-r-errors {
  list-style: none; padding: 0; margin: 0;
}
.ig-r-errors li {
  font-size: 0.83rem; color: var(--text-mid); line-height: 1.55;
  margin-bottom: 0.4rem; padding-left: 1.1rem; position: relative;
}
.ig-r-errors li::before {
  content: '✗'; position: absolute; left: 0; color: #E05252; font-weight: 700; font-size: 0.78rem;
}
.ig-r-hint {
  font-size: 0.74rem; color: var(--primary); opacity: 0.8;
  margin: 0.5rem 0 0; font-style: italic; line-height: 1.4;
}

/* ── Expansion cards ─────────────────────────── */
.ig-expansion-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.1rem 1.25rem;
  margin-top: 0.85rem; animation: ig-fadein 0.28s ease;
  box-sizing: border-box; overflow: hidden;
}
.ig-expansion-body p  { font-size: 0.84rem; color: var(--text-mid); line-height: 1.6; margin: 0 0 0.6rem; }
.ig-expansion-body ul,
.ig-expansion-body ol { margin: 0.5rem 0; padding-left: 1.25rem; }
.ig-expansion-body li { font-size: 0.84rem; color: var(--text-mid); line-height: 1.55; margin-bottom: 0.35rem; }

.ig-week-plan      { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 0.75rem; }
.ig-week           { background: var(--off-white); border-radius: var(--r-md); padding: 0.7rem 0.9rem; }
.ig-week-label     { display: block; font-size: 0.72rem; font-weight: 800; color: var(--primary); letter-spacing: 0.04em; margin-bottom: 0.25rem; }
.ig-week p         { font-size: 0.82rem; color: var(--text-mid); margin: 0; line-height: 1.5; }

.ig-budget-list    { list-style: none; padding: 0; margin: 0.75rem 0; }
.ig-budget-list li { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0; border-bottom: 1px solid var(--border); font-size: 0.82rem; color: var(--text-mid); }
.ig-budget-list li:last-child { border-bottom: none; }
.ig-budget-list li strong { color: var(--primary); font-weight: 800; white-space: nowrap; margin-left: 0.5rem; }
.ig-budget-note    { font-size: 0.79rem; color: var(--text-muted); margin-top: 0.75rem; }

.ig-projection     { margin: 0.75rem 0; }
.ig-proj-row       { display: flex; justify-content: space-between; align-items: center; padding: 0.55rem 0.75rem; border-radius: var(--r-sm); margin-bottom: 0.4rem; font-size: 0.83rem; color: var(--text-mid); background: var(--off-white); }
.ig-proj-row.highlight { background: linear-gradient(135deg, #EBF7FF, #F0F9FF); }
.ig-proj-row.highlight strong { color: var(--primary); }
.ig-proj-row strong { font-weight: 800; color: var(--text); white-space: nowrap; margin-left: 0.5rem; }
.ig-proj-note      { font-size: 0.76rem; color: var(--text-muted); margin-top: 0.5rem; }

.ig-comp-grid      { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin-top: 0.75rem; }
.ig-comp-card      { border-radius: var(--r-md); padding: 0.75rem; min-width: 0; box-sizing: border-box; }
.ig-comp-card strong { display: block; font-size: 0.75rem; font-weight: 800; margin-bottom: 0.35rem; }
.ig-comp-card p    { font-size: 0.78rem; color: var(--text-mid); margin: 0; line-height: 1.4; }
.ig-comp-card--green  { background: #F0FFF4; }
.ig-comp-card--green strong { color: #2D6A4F; }
.ig-comp-card--yellow { background: #FFFBEB; }
.ig-comp-card--yellow strong { color: #92400E; }
.ig-comp-card--blue   { background: #EBF7FF; }
.ig-comp-card--blue strong { color: var(--primary); }

.ig-channels        { padding-left: 1.25rem; margin: 0.75rem 0 0; }
.ig-channels li     { margin-bottom: 0.85rem; font-size: 0.84rem; }
.ig-channels li strong { display: block; color: var(--text); margin-bottom: 0.2rem; }
.ig-channels li p  { font-size: 0.81rem; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* ── Utility ─────────────────────────────────── */
.ig-hidden { display: none !important; }

/* ── Step sub-text ───────────────────────────── */
.ig-step-sub {
  font-size: 0.85rem; color: var(--text-muted); margin: 0 0 1rem; line-height: 1.5;
}

/* ── Step action row (back + primary) ──────────── */
.ig-step-actions {
  display: flex; gap: 0.6rem; margin-top: 0.25rem;
}
.ig-step-actions .ig-btn--outline { flex-shrink: 0; }
.ig-step-actions .ig-btn--primary { flex: 1; }

/* ── City detection animation ───────────────── */
.ig-detect-anim {
  position: relative; width: 68px; height: 68px;
  margin: 2rem auto 1.25rem;
}
.ig-detect-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 3px solid rgba(0,143,200,0.2);
  border-top-color: var(--primary);
  animation: ig-spin 1s linear infinite;
}
.ig-detect-pin {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.ig-detect-msg {
  text-align: center; font-size: 0.88rem; font-weight: 600;
  color: var(--text-mid); transition: opacity 0.2s ease;
  margin: 0 0 2rem;
}

/* ── City detection confirmation ────────────── */
.ig-detect-prelabel {
  font-size: 0.78rem; font-weight: 600; color: var(--text-muted);
  text-align: center; margin: 0 0 0.55rem; letter-spacing: 0.02em;
}
.ig-detect-result {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: #EBF7FF; border: 1px solid rgba(0,143,200,0.25);
  border-radius: var(--r-lg); padding: 0.9rem 1.25rem; margin-bottom: 1.1rem;
}
.ig-detect-result strong {
  font-size: 0.95rem; color: var(--text); font-weight: 700; word-break: break-word;
}
.ig-detect-actions {
  display: flex; gap: 0.6rem;
}
.ig-detect-actions .ig-btn--outline { flex-shrink: 0; }
.ig-detect-actions .ig-btn--primary { flex: 1; }
.ig-detect-hint {
  font-size: 0.72rem; color: var(--text-muted); text-align: center;
  margin: 0.65rem 0 0; line-height: 1.4;
}

/* ── Result body — spacing ───────────────────── */
.ig-r-body {
  padding: 1.25rem 1.5rem 2rem;
  box-sizing: border-box; overflow: hidden; width: 100%;
}
.ig-r-pasos-preview { margin-top: 1.1rem; }

/* ── Premium gate ────────────────────────────── */
.ig-gate {
  background: linear-gradient(135deg, #F0F7FF, #E8F2FF);
  border: 1.5px solid rgba(0,143,200,0.2);
  border-radius: var(--r-xl);
  padding: 1.5rem 1.25rem 1.5rem;
  text-align: center;
  margin-top: 1.5rem;
  box-sizing: border-box;
}
.ig-gate-emoji {
  display: block; font-size: 1.75rem; margin-bottom: 0.55rem;
}
.ig-gate-title {
  font-size: 1rem; font-weight: 800; color: var(--text); margin: 0 0 0.45rem; line-height: 1.3;
}
.ig-gate-desc {
  font-size: 0.82rem; color: var(--text-mid); line-height: 1.6; margin: 0 0 1rem;
}
.ig-gate-list {
  list-style: none; padding: 0; margin: 0 0 1.1rem;
  display: inline-flex; flex-direction: column; gap: 0.35rem; text-align: left;
}
.ig-gate-list li {
  font-size: 0.8rem; color: var(--text-mid); padding-left: 1.2rem;
  position: relative; font-weight: 600;
}
.ig-gate-list li::before {
  content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: 800;
}
.ig-gate-cta {
  display: block; text-align: center; text-decoration: none; margin: 0 auto; max-width: 260px;
}
.ig-gate-footer { font-size: 0.7rem; color: var(--text-muted); margin: 0.55rem 0 0; }

/* ── Retry button ────────────────────────────── */
.ig-retry-btn {
  display: block; margin: 1rem auto 0;
  padding: 0.55rem 1.5rem; font-size: 0.84rem;
  border-radius: var(--r-md); border: 1.5px solid var(--border);
  background: white; color: var(--text-mid); cursor: pointer;
  font-family: 'Nunito', sans-serif; font-weight: 600;
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 600px) {
  .ig-overlay:not(.ig-overlay--chat) { padding: 0; align-items: flex-end; }
  .ig-modal:not(.ig-modal--chat) { max-height: 92vh; border-radius: 20px 20px 0 0; transform: translateY(100%); }
  .ig-overlay:not(.ig-overlay--chat).open .ig-modal { transform: translateY(0); }
  .ig-step    { padding: 1.1rem 1rem 1.25rem; }
  .ig-r-hero  { padding: 1.1rem 1rem 1rem; }
  .ig-r-metrics { grid-template-columns: repeat(3, 1fr); gap: 0.35rem; }
  .ig-r-metric  { padding: 0.5rem 0.35rem; }
  .ig-r-metric__label { font-size: 0.58rem; }
  .ig-r-metric__value { font-size: 0.78rem; }
  .ig-r-body  { padding: 1rem 1rem 1.5rem; }
  .ig-r-grid  { grid-template-columns: 1fr; }
  .ig-r-card  { padding: 0.75rem 0.85rem; }
  .ig-comp-grid { grid-template-columns: 1fr; }
  .ig-gate    { padding: 1.25rem 1rem; }
  .ig-gate-cta { max-width: 100%; }
  .ig-step-actions  { gap: 0.5rem; }
  .ig-detect-actions { gap: 0.5rem; }
}

@media (max-width: 400px) {
  .ig-r-metrics { grid-template-columns: 1fr 1fr; }
  .ig-r-metric:last-child { grid-column: 1 / -1; }
  .ig-r-hero__titulo { font-size: 1.05rem; }
}

/* ── ONBOARDING OVERLAY ──────────────────────────────── */
.ob-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: #fff;
  display: flex; flex-direction: column; align-items: center;
  padding-top: 8px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  opacity: 0; pointer-events: none;
  transition: opacity 0.22s ease;
}
.ob-overlay::-webkit-scrollbar { display: none; }
.ob-overlay.ob-open { opacity: 1; pointer-events: all; }

.ob-shell {
  width: 100%; max-width: 860px;
  min-height: 100%;
  display: flex; flex-direction: column;
  transform: translateY(14px);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.ob-overlay.ob-open .ob-shell { transform: translateY(0); }

/* Step 1 — staggered fade-in cuando abre el form */
@keyframes ob-step1-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ob-overlay.ob-open #ob-step-1 .ob-question {
  animation: ob-step1-in 0.38s ease both;
  animation-delay: 0.22s;
}
.ob-overlay.ob-open #ob-step-1 #ob-options-1 .ob-option {
  animation: ob-step1-in 0.38s ease both;
}
.ob-overlay.ob-open #ob-step-1 #ob-options-1 .ob-option:nth-child(1) { animation-delay: 0.32s; }
.ob-overlay.ob-open #ob-step-1 #ob-options-1 .ob-option:nth-child(2) { animation-delay: 0.44s; }
.ob-overlay.ob-open #ob-step-1 #ob-options-1 .ob-option:nth-child(3) { animation-delay: 0.56s; }

.ob-main {
  display: flex; flex-direction: column;
  flex: 1;
}

/* Header */
.ob-header {
  display: flex; align-items: center; gap: 18px;
  padding: 12px 20px;
  border-bottom: 1px solid #F1F5F9;
  flex-shrink: 0;
}
.ob-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
@media (min-width: 541px) { .ob-header { padding-left: 0; } }
@media (max-width: 540px) { .ob-brand { margin-left: -4px; } }
.ob-brand-mascot {
  width: 40px; height: 40px; object-fit: contain; flex-shrink: 0;
}
.ob-brand-text { display: flex; flex-direction: column; gap: 1px; }
.ob-brand-name {
  font-family: 'Nunito', sans-serif; font-size: 18px; font-weight: 800;
  color: var(--text); letter-spacing: -0.3px; line-height: 1;
}
.ob-brand-sub {
  font-size: 11px; font-weight: 500; color: var(--text-muted); line-height: 1;
}
.ob-header-center { flex: 1; }
.ob-progress-wrap { display: flex; flex-direction: column; gap: 6px; }
.ob-progress-meta {
  display: flex; align-items: center; justify-content: space-between;
}
.ob-progress-label {
  font-size: 17px; font-weight: 700; color: var(--primary);
  transition: opacity 0.22s ease;
}
.ob-progress-pct {
  font-size: 15px; font-weight: 800; color: #CBD5E1;
}
.ob-progress-track {
  height: 6px; background: #EFF6FF;
  border-radius: 99px; overflow: hidden;
}
.ob-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 99px;
  transition: width 0.50s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 0 8px rgba(0,143,200,0.30);
}
.ob-close {
  width: 34px; height: 34px; border-radius: 50%;
  background: #F1F5F9; color: #94A3B8;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none; flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.ob-close:hover { background: #E2E8F0; color: #0F172A; }

/* Step progress dots */
.ob-step-dot-row {
  display: inline-flex; align-items: center; gap: 5px; margin-right: 6px;
}
.ob-sdot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #E2E8F0;
  transition: background 0.2s ease, transform 0.2s ease;
}
.ob-sdot--active { background: var(--primary); transform: scale(1.4); }
.ob-sdot--done   { background: #BAD8F0; }

/* Viewport */
.ob-viewport {
  position: relative; overflow: hidden;
}

/* Steps */
.ob-step {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; flex-direction: column;
  align-items: center;
  transition: transform 0.40s cubic-bezier(0.4,0,0.2,1), opacity 0.35s ease;
  opacity: 0;
  padding: 40px 24px 40px;
}
.ob-step--active { position: relative; transform: translateX(0); opacity: 1; }
.ob-step--right  { transform: translateX(100%); }
.ob-step--left   { transform: translateX(-100%); }

.ob-step-inner {
  display: flex; flex-direction: column;
  gap: 0; width: 100%; max-width: 540px;
}
.ob-step-inner--wide,
#ob-step-3 .ob-step-inner { max-width: 780px; }
.ob-step-num {
  font-size: 10.5px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--primary);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 6px;
}
.ob-question {
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  font-weight: 900; color: #334155; line-height: 1.2;
  font-family: 'Nunito', sans-serif; letter-spacing: -0.02em;
  margin-bottom: 36px; text-align: center;
}
.ob-hint { font-size: 15px; font-weight: 600; color: #64748B; margin-bottom: 28px; line-height: 1.5; text-align: center; }

/* Option cards — Duolingo grid */
.ob-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
/* 5th item (odd last) spans full width */
.ob-option:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* Step 3 — 3 columnas en desktop */
@media (min-width: 541px) {
  #ob-chips-3  { grid-template-columns: repeat(3, 1fr); }
  #ob-chips-3  .ob-option:last-child { grid-column: unset; }
  #ob-chips-3  .ob-option:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
  #ob-chips-3  .ob-option:last-child:nth-child(3n+2) { grid-column: span 1; }
  #ob-chips-3b { grid-template-columns: repeat(3, 1fr); }
  #ob-chips-3b .ob-option:last-child { grid-column: unset; }
  #ob-chips-3b .ob-option:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
  #ob-chips-3b .ob-option:last-child:nth-child(3n+2) { grid-column: span 1; }
}

.ob-option {
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; padding: 26px 18px 22px;
  border-radius: 18px;
  border: 3px solid #E2E8F0; background: #fff;
  cursor: pointer; text-align: center; width: 100%;
  transition: background 0.18s ease, box-shadow 0.20s ease;
}
.ob-option:hover {
  background: #E4E8ED;
  box-shadow: 0 6px 22px rgba(0,0,0,0.09);
  animation: ob-tip 0.76s ease forwards;
}
.ob-option:active {
  animation: none;
  transform: scale(0.95);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: transform 0.09s ease, box-shadow 0.09s ease;
}
.ob-option.ob-selected {
  box-shadow: 0 6px 20px rgba(0,0,0,0.10);
}
@keyframes ob-tip {
  0%   { transform: rotate(0deg)   translateY(0); }
  18%  { transform: rotate(-4deg)  translateY(-3px); }
  40%  { transform: rotate(3.5deg) translateY(-2px); }
  58%  { transform: rotate(-2deg)  translateY(-1px); }
  74%  { transform: rotate(1.5deg) translateY(0); }
  88%  { transform: rotate(-0.8deg); }
  100% { transform: rotate(0deg); }
}

.ob-opt-icon {
  font-size: 52px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.26s cubic-bezier(0.34,1.70,0.64,1);
  color: var(--primary);
}
.ob-opt-icon i { font-size: inherit; line-height: 1; }
.ob-option:hover .ob-opt-icon { transform: scale(1.18); }
.ob-option:active .ob-opt-icon { transform: scale(0.90); }

.ob-icon--green  { color: #16A34A; }
.ob-icon--orange { color: #F97316; }
.ob-icon--blue   { color: #008FC8; }
.ob-icon--purple { color: #8B5CF6; }
.ob-icon--yellow { color: #EAB308; }
.ob-icon--red    { color: #EF4444; }
.ob-icon--pink   { color: #EC4899; }
.ob-option--soft .ob-opt-icon { color: #94A3B8; }
.ob-option--soft:hover .ob-opt-icon { color: #64748B; }

.ob-opt-body { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.ob-opt-title { font-size: 20px; font-weight: 800; color: #0F172A; line-height: 1.2; text-align: center; }
.ob-opt-sub   { font-size: 16px; font-weight: 600; color: #64748B; text-align: center; line-height: 1.4; }
.ob-opt-arr   { display: none; }

.ob-option--soft { border: 3px solid #EDF0F5; }
.ob-option--soft .ob-opt-title { color: #94A3B8; font-weight: 600; }
.ob-option--soft .ob-opt-icon  { background: none; }
.ob-option--soft:hover .ob-opt-title { color: #64748B; }

/* Skill chips */
.ob-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 16px; }
.ob-chip {
  padding: 11px 19px; border-radius: 99px;
  border: 3px solid #E2E8F0; background: #FAFBFD;
  font-size: 13.5px; font-weight: 700; color: #334155;
  cursor: pointer; transition: all 0.18s ease;
}
.ob-chip:hover {
  border-color: var(--primary); background: rgba(0,143,200,0.06);
  color: var(--primary); transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(0,143,200,0.10);
}
.ob-chip--write { border-style: dashed; color: #94A3B8; background: #fff; }
.ob-chip--write:hover { color: var(--primary); background: rgba(0,143,200,0.05); }

/* Custom input */
.ob-custom-wrap { display: flex; flex-direction: column; gap: 11px; }
.ob-input-label { font-size: 12px; font-weight: 700; color: var(--text-muted); letter-spacing: 0.3px; }
.ob-input-label-opt { font-weight: 500; color: var(--text-light); }
#ob-negocio-wrap {
  margin-top: 28px;
  animation: ob-negocio-in 0.35s cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes ob-negocio-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ob-custom-input {
  padding: 15px 18px; border-radius: 13px;
  border: 2px solid var(--primary);
  font-size: 15px; font-family: 'Nunito', sans-serif;
  outline: none; color: #0F172A; width: 100%;
  box-sizing: border-box;
  box-shadow: 0 0 0 4px rgba(0,143,200,0.08);
}

/* GPS button */
.ob-gps-btn {
  display: flex; align-items: center; gap: 16px;
  width: 100%; padding: 20px 22px; border-radius: 18px;
  border: 3px solid #E2E8F0; background: #fff;
  cursor: pointer; text-align: left; margin-bottom: 4px;
  transition: background 0.18s ease, border-color 0.15s ease,
              box-shadow 0.20s ease;
}
.ob-gps-btn:hover {
  background: #E4E8ED;
  animation: ob-tip 0.76s ease forwards;
}
.ob-gps-btn:active { transform: scale(0.97); transition: transform 0.09s ease; }
.ob-gps-icon {
  font-size: 42px; color: var(--primary); flex-shrink: 0; line-height: 1;
  transition: transform 0.26s cubic-bezier(0.34,1.70,0.64,1);
}
.ob-gps-btn:hover .ob-gps-icon { transform: scale(1.14); }
.ob-gps-body { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.ob-gps-title { font-size: 17px; font-weight: 800; color: #0F172A; }
.ob-gps-sub   { font-size: 13px; font-weight: 600; color: #64748B; }
.ob-gps-arr   { font-size: 18px; color: #CBD5E1; flex-shrink: 0; }
.ob-gps-loading .ob-gps-icon { animation: ob-spin 0.85s linear infinite; color: var(--primary); }
.ob-gps-done { border-color: var(--green); background: #F0FFF4; }
.ob-gps-done .ob-gps-title { color: var(--green); }
.ob-gps-done .ob-gps-icon  { color: var(--green); }

/* Divider */
.ob-city-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0; color: #94A3B8; font-size: 13px; font-weight: 700;
}
.ob-city-divider::before,
.ob-city-divider::after {
  content: ''; flex: 1; height: 1px; background: #E2E8F0;
}

/* City input */
.ob-city-field {
  display: flex; align-items: flex-start; gap: 16px;
  margin-bottom: 12px;
}

/* Mensaje de Pio (validación de ciudad) — tono cálido, no error agresivo */
.ob-city-msg {
  display: none;
  margin: 4px 0 22px;
  padding: 12px 14px 12px 44px;
  position: relative;
  border-radius: 14px;
  background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
  border: 1.5px solid #FDBA74;
  color: #9A3412;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  box-shadow: 0 4px 14px rgba(251,146,60,0.12);
  animation: ob-msg-in 0.32s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
.ob-city-msg::before {
  content: '';
  position: absolute;
  left: 14px; top: 50%;
  width: 22px; height: 22px;
  margin-top: -11px;
  background: #FB923C;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-8,56a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm8,112a12,12,0,1,1,12-12A12,12,0,0,1,128,192Z'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-8,56a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm8,112a12,12,0,1,1,12-12A12,12,0,0,1,128,192Z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.ob-city-msg.is-visible { display: block; }
@keyframes ob-msg-in {
  0%   { opacity: 0; transform: translateY(-6px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* Cuando hay mensaje, el input se ve "atendido" pero suave */
.ob-city-input.is-flagged {
  border-color: #FB923C !important;
  background: #FFFBF6 !important;
  box-shadow: 0 0 0 4px rgba(251,146,60,0.12) !important;
}
.ob-city-icon {
  font-size: 52px; color: var(--primary); flex-shrink: 0;
  margin-top: 4px; line-height: 1;
}
.ob-city-wrap { position: relative; flex: 1; }
.ob-city-input {
  width: 100%; padding: 20px 22px; border-radius: 18px;
  border: 3px solid #E2E8F0; font-size: 17px;
  font-family: 'Nunito', sans-serif; font-weight: 700; color: #0F172A;
  outline: none; box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: #FAFBFD;
}
.ob-city-input::placeholder { font-weight: 500; color: #94A3B8; }
.ob-city-input:focus {
  border-color: var(--primary); background: #fff;
  box-shadow: 0 0 0 4px rgba(0,143,200,0.09);
}
.ob-city-suggestions {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: #fff; border: 3px solid #E2E8F0; border-radius: 13px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.09); overflow: hidden;
  display: none; z-index: 10;
}
.ob-city-suggestions.ob-sugg-open { display: block; }
.ob-city-sugg-item {
  padding: 14px 20px; font-size: 15px; cursor: pointer; font-weight: 700;
  color: #0F172A; transition: background 0.12s, color 0.12s;
  display: flex; align-items: center; gap: 10px;
}
.ob-city-sugg-item::before { content: '📍'; font-size: 14px; }
.ob-city-sugg-item:hover { background: #F0F8FD; color: var(--primary); }

/* Continue CTA */
.ob-continue {
  width: 100%; padding: 17px 28px; border-radius: 13px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff; font-size: 15.5px; font-weight: 800;
  font-family: 'Nunito', sans-serif; border: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 16px rgba(0,143,200,0.28);
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.ob-continue:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,143,200,0.38);
}
.ob-continue--city { font-size: 17px; padding: 20px 32px; border-radius: 16px; }
.ob-continue--city i { font-size: 22px; }
.ob-btn-logo { height: 22px; width: auto; object-fit: contain; }

/* Step 3 selected state */
.ob-option.ob-selected {
  border-color: var(--primary);
  background: rgba(0,143,200,0.08);
  box-shadow: 0 4px 16px rgba(0,143,200,0.18);
}
.ob-option.ob-selected .ob-opt-title { color: var(--primary); }

/* Step 3 — dimmed cuando ya hay 3 seleccionadas */
.ob-option.ob-option--dim {
  opacity: 0.35;
  pointer-events: none;
}

/* Step 3 combo tip — mini insight flotante */
.ob-combo-tip {
  display: flex; align-items: center; gap: 8px;
  margin-top: 16px; margin-bottom: 4px;
  padding: 9px 14px 9px 12px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(0,100,160,0.13), 0 1px 4px rgba(0,0,0,0.06);
  border-radius: 16px;
  align-self: center;
  max-width: 400px;
  animation: ob-combo-in 0.55s cubic-bezier(0.22,1,0.36,1) both;
}
.ob-combo-tip-icon {
  width: 32px; height: 32px; object-fit: contain;
  flex-shrink: 0; transform: scaleX(-1);
}
.ob-combo-tip-text {
  font-size: 12.5px; font-weight: 500; color: var(--text-mid);
  line-height: 1.3; letter-spacing: -0.2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
@keyframes ob-combo-in {
  0%   { opacity: 0; transform: translateX(60px) translateY(-20px) rotate(6deg) scale(0.85); }
  60%  { opacity: 1; transform: translateX(-6px) translateY(3px) rotate(-1deg) scale(1.02); }
  80%  { transform: translateX(3px) translateY(-1px) rotate(0.5deg) scale(0.99); }
  100% { opacity: 1; transform: translateX(0) translateY(0) rotate(0deg) scale(1); }
}

/* Step 3 footer */
.ob-step3-footer {
  display: none; align-items: center; gap: 14px;
  margin-top: 16px;
}
.ob-step3-counter {
  font-size: 13px; font-weight: 700; color: var(--text-muted);
  white-space: nowrap;
}
.ob-step3-footer .ob-continue { margin: 0; flex: 1; padding: 15px 24px; }

@keyframes ob-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

/* Generating screen */
.ob-generating {
  display: none; flex-direction: column;
  align-items: center; justify-content: center;
  flex: 1; gap: 28px; text-align: center;
  padding: 48px 40px;
}
.ob-generating.ob-gen-active { display: flex; }
.ob-gen-icon {
  font-size: 76px; color: var(--primary); line-height: 1;
  animation: ob-gen-float 2.2s ease-in-out infinite;
}
.ob-gen-mascot {
  width: 110px; height: 110px; object-fit: contain;
  animation: ob-gen-float 2.2s ease-in-out infinite;
  filter: drop-shadow(0 8px 20px rgba(0,100,160,0.18));
}
@keyframes ob-gen-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-10px) scale(1.06); }
}
.ob-gen-head { display: flex; flex-direction: column; gap: 8px; }
.ob-gen-title {
  font-size: 1.65rem; font-weight: 900; color: #0F172A;
  font-family: 'Nunito', sans-serif; letter-spacing: -0.02em; line-height: 1.15;
  margin: 0;
}
.ob-gen-sub {
  font-size: 14px; color: #94A3B8;
  font-family: 'Nunito', sans-serif; font-weight: 600; margin: 0;
}
.ob-gen-messages {
  display: flex; flex-direction: column; gap: 8px;
  width: 100%; max-width: 320px;
}
.ob-gen-msg {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 14px; text-align: left;
  font-size: 15px; font-family: 'Nunito', sans-serif; font-weight: 700;
  color: #CBD5E1; background: transparent;
  border: 2px solid transparent;
  transition: color 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}
.ob-gen-msg-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
  background: #E2E8F0;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.ob-gen-msg.ob-msg-active {
  color: var(--primary);
  background: rgba(0,143,200,0.07);
  border-color: rgba(0,143,200,0.18);
}
.ob-gen-msg.ob-msg-active .ob-gen-msg-dot {
  background: var(--primary);
  animation: ob-dot-pulse 1.2s ease-in-out infinite;
}
@keyframes ob-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(0,143,200,0.22); }
  50%       { box-shadow: 0 0 0 7px rgba(0,143,200,0.07); }
}
.ob-gen-msg.ob-msg-done { color: #94A3B8; }
.ob-gen-msg.ob-msg-done .ob-gen-msg-dot { background: #CBD5E1; }

/* Último mensaje — zoom */
.ob-gen-msg.ob-msg-final.ob-msg-active {
  color: var(--gold-dark);
  background: rgba(255, 138, 0,0.09);
  border-color: rgba(255, 138, 0,0.25);
  font-weight: 700;
  animation: ob-final-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.ob-gen-msg.ob-msg-final.ob-msg-active .ob-gen-msg-dot {
  background: var(--gold);
  animation: none;
  box-shadow: 0 0 0 4px rgba(255, 138, 0,0.2);
}
@keyframes ob-final-pop {
  0%   { transform: scale(0.94); opacity: 0.6; }
  60%  { transform: scale(1.06); }
  100% { transform: scale(1);    opacity: 1; }
}

/* ── Responsive ── */
@media (max-width: 540px) {
  .ob-header { padding: 16px 20px 14px; }
  .ob-brand-logo { width: 28px; height: 28px; }
  .ob-brand-name { font-size: 18px; }
  .ob-progress-label { font-size: 15px; }
  .ob-progress-pct { font-size: 11px; }
  .ob-step { padding: 56px 20px 32px; }
  .ob-generating { padding: 36px 20px; gap: 22px; }
  .ob-gen-icon { font-size: 60px; }
  .ob-question { font-size: 1.4rem; margin-bottom: 28px; }
  .ob-option { padding: 22px 14px; gap: 14px; }
  .ob-opt-icon { font-size: 44px; }
  .ob-opt-title { font-size: 16px; }
  .ob-opt-sub   { font-size: 13px; }
}

/* ── SAVE MODAL ──────────────────────────────────────── */
.sm-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(15,23,42,0.55);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.22s ease;
}
.sm-overlay.sm-open {
  opacity: 1; pointer-events: all;
}
.sm-card {
  background: #fff; border-radius: 24px;
  width: 100%; max-width: 420px;
  padding: 36px 32px 28px;
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,0.18);
  transform: scale(0.94);
  transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1);
}
.sm-overlay.sm-open .sm-card {
  transform: scale(1);
}
.sm-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  background: #F1F5F9; color: #64748B;
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none; transition: background 0.15s;
}
.sm-close:hover { background: #E2E8F0; color: #0F172A; }

.sm-icon { font-size: 36px; margin-bottom: 12px; }
.sm-title {
  font-size: 1.25rem; font-weight: 900; color: #0F172A;
  line-height: 1.25; margin-bottom: 10px;
}
.sm-sub {
  font-size: 14px; color: #64748B; line-height: 1.6;
  margin-bottom: 6px;
}
.sm-note {
  display: inline-block; font-size: 12px; font-weight: 700;
  color: var(--green); background: var(--green-bg);
  padding: 3px 10px; border-radius: 99px; margin-bottom: 20px;
}

.sm-actions { display: flex; flex-direction: column; gap: 10px; }
.sm-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 14px 20px; border-radius: 14px;
  font-size: 15px; font-weight: 700; font-family: 'Nunito', sans-serif;
  cursor: pointer; border: none; transition: opacity 0.15s, transform 0.1s;
  text-decoration: none;
}
.sm-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.sm-btn-google {
  background: #fff; color: #0F172A;
  border: 1.5px solid #E2E8F0 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.sm-google-icon { width: 18px; height: 18px; flex-shrink: 0; }
.sm-btn-email {
  background: var(--primary); color: #fff;
}
.sm-btn-primary {
  background: var(--primary); color: #fff; margin-top: 4px;
}

.sm-legal {
  font-size: 11px; color: #94A3B8; text-align: center;
  margin-top: 16px;
}
.sm-legal a { color: var(--primary); }

/* Email view */
.sm-back {
  background: none; border: none; cursor: pointer;
  font-size: 13px; font-weight: 700; color: #64748B;
  padding: 0; margin-bottom: 16px;
  font-family: 'Nunito', sans-serif;
  transition: color 0.15s;
}
.sm-back:hover { color: var(--primary); }
.sm-email-form { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.sm-input {
  padding: 14px 16px; border-radius: 12px;
  border: 2px solid #E2E8F0; font-size: 15px;
  font-family: 'Nunito', sans-serif; color: #0F172A;
  outline: none; transition: border-color 0.15s;
}
.sm-input:focus { border-color: var(--primary); }
.sm-email-sent {
  text-align: center; padding: 20px 0;
}
.sm-sent-icon { font-size: 40px; display: block; margin-bottom: 12px; }
.sm-email-sent p { font-size: 14px; color: #64748B; }

@media (max-width: 480px) {
  .sm-card { padding: 28px 20px 22px; }
}

/* ── JERARQUÍA TIPOGRÁFICA ────────────────────────────── */

/* Dinero / números */
.ia-stat-val,
.ia-stat--mxn,
.ia-potential-range,
.ia-potential-range strong,
.fw-stat-val,
.fw-hero-val,
.fw-conv-fz,
.hs-app-stat-val,
.cs-course-price,
.stat-val,
.result-stat-val {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
}

/* Gamificados (streaks, XP, coins, badges) — Nunito Bold */
.ia-stat--streak,
.ia-stat--fz,
.ia-section-status,
.fw-stat--streak,
.fw-stat--fz,
.hs-stat--streak,
.hs-stat--coins,
.hs-stat--xp,
.hs-xp-text,
.ob-progress-label,
.ob-progress-pct {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
}

/* ═════════════════════════════════════════════════════════════════
   LOGIN MODAL — overlay encima del landing
   ═════════════════════════════════════════════════════════════════ */
.login-modal {
  position: fixed; inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.32s ease;
}
/* is-open SOLO añade display:flex — la opacity se mantiene en 0.
   La animación de entrada se dispara cuando JS añade .is-visible en
   el siguiente frame (double-rAF), forzando al navegador a animar
   la transición en lugar de saltarla por el cambio simultáneo de
   display+opacity. Patrón estándar para modales con fade-in real. */
.login-modal.is-open { display: flex; }
.login-modal.is-open.is-visible { opacity: 1; }
/* is-closing mantiene display:flex mientras corre el fade-out, evitando
   el snap de display:none → instantáneo. */
.login-modal.is-closing { display: flex; opacity: 0; }
.login-modal.is-closing .login-modal-card { transform: scale(0.96) translateY(10px); opacity: 0; }

.login-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(8, 12, 24, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
}

/* Card dark premium — coincide con landing/login.php, registro.php,
   y el auth-modal del dashboard. Naranja de marca, no azul. */
.login-modal-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  /* Gradient sutil + multi-layer shadow + inset highlight = profundidad
     premium sin gritar. Same pattern que login.php (auth pages). */
  background: linear-gradient(180deg, #1A2336 0%, #161E2E 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 40px 36px 32px;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.55),
    0 12px 32px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.02),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: scale(0.92) translateY(20px);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.18, 0.89, 0.32, 1.28), opacity 0.32s ease;
}
/* Estado activo se dispara con .is-visible (no con .is-open) para que
   el double-rAF del JS pueda forzar al navegador a animar la entrada. */
.login-modal.is-visible .login-modal-card { transform: scale(1) translateY(0); opacity: 1; }

.login-modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: rgba(241,245,249,0.62);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.login-modal-close:hover {
  background: rgba(255,138,0,0.10);
  color: #FF8A00;
  border-color: rgba(255,138,0,0.32);
  transform: rotate(90deg);
}

/* Logo: mascota flame + wordmark pio/fly */
.login-modal-logo {
  display: flex; align-items: center; justify-content: center;
  gap: 9px;
  margin-bottom: 22px;
}
.login-modal-logo img {
  width: 40px; height: 40px;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
}
.login-modal-brand {
  font-size: 24px; font-weight: 900;
  letter-spacing: -0.5px; line-height: 1;
  display: inline-flex;
}
.login-modal-brand span:first-child { color: #F1F5F9; }
.login-modal-brand span:last-child  { color: #FF8A00; }

.login-modal-title {
  margin: 0 0 8px;
  font-family: 'Nunito', sans-serif;
  font-size: 26px;
  font-weight: 900;
  color: #F1F5F9;
  text-align: center;
  letter-spacing: -0.5px;
  line-height: 1.15;
}
.login-modal-sub {
  margin: 0 0 24px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(241,245,249,0.68);
  text-align: center;
  line-height: 1.45;
}

.login-modal-error {
  display: none;
  margin: 0 0 14px;
  padding: 10px 13px;
  border-radius: 8px;
  background: rgba(239,68,68,0.10);
  border: 1px solid rgba(239,68,68,0.32);
  color: #FECACA;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.45;
}
.login-modal-error.is-visible {
  display: block;
  animation: lm-shake 0.32s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}
@keyframes lm-shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-3px); }
  40%, 60% { transform: translateX(3px); }
}

.lm-fg {
  margin-bottom: 16px;
}
.lm-fg { margin-bottom: 14px; }
.lm-fg label {
  display: block;
  margin-bottom: 8px;
  font-size: 10.5px;
  font-weight: 800;
  color: rgba(241,245,249,0.55);
  text-transform: uppercase;
  letter-spacing: 1.3px;
}

.lm-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.lm-input-icon {
  position: absolute;
  left: 15px;
  color: rgba(241,245,249,0.42);
  pointer-events: none;
  transition: color 0.18s ease;
}
.lm-input-wrap input {
  width: 100%;
  padding: 13px 14px 13px 44px;
  border: 1.5px solid rgba(255,255,255,0.10);
  border-radius: 11px;
  background: rgba(255,255,255,0.03);
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #F1F5F9;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  -webkit-appearance: none;
  appearance: none;
}
.lm-input-wrap input::placeholder { color: rgba(241,245,249,0.32); font-weight: 500; }
.lm-input-wrap input:hover:not(:focus) {
  border-color: rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.04);
}
.lm-input-wrap input:focus {
  border-color: #FF8A00;
  background: rgba(255,255,255,0.05);
  box-shadow: 0 0 0 3px rgba(255,138,0,0.18);
}
.lm-input-wrap input:focus ~ .lm-input-icon,
.lm-input-wrap:focus-within .lm-input-icon { color: #FF8A00; }
/* Neutralizar autofill amarillo de Chrome */
.lm-input-wrap input:-webkit-autofill,
.lm-input-wrap input:-webkit-autofill:hover,
.lm-input-wrap input:-webkit-autofill:focus {
  -webkit-text-fill-color: #F1F5F9;
  -webkit-box-shadow: 0 0 0 1000px #1A2336 inset;
  caret-color: #F1F5F9;
  transition: background-color 5000s ease-in-out 0s;
}

/* Edgar 2026-07-02: link a forgot_password.html */
.lm-forgot {
  transition: color 0.15s ease;
}
.lm-forgot:hover {
  color: #FF8A00 !important;
}
/* Ocultar en modo signup del auth modal */
.login-modal[data-mode="signup"] .lm-forgot { display: none !important; }

.lm-pw-toggle {
  position: absolute;
  right: 6px;
  width: 32px; height: 32px;
  border: none;
  background: transparent;
  color: rgba(241,245,249,0.42);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
.lm-pw-toggle:hover { color: #FF8A00; background: rgba(255,138,0,0.08); }

.lm-submit {
  width: 100%;
  margin-top: 8px;
  padding: 14px 18px;
  border: none;
  border-radius: 11px;
  background: linear-gradient(180deg, #FF9A1F 0%, #FF8A00 50%, #E67A00 100%);
  color: #FFFFFF;
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow:
    0 6px 18px rgba(255, 138, 0, 0.32),
    inset 0 1px 0 rgba(255,255,255,0.22);
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s ease, filter 0.18s ease;
  position: relative;
  overflow: hidden;
}
.lm-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.14), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.lm-submit:hover:not(:disabled) {
  transform: translateY(-1.5px);
  box-shadow:
    0 12px 26px rgba(255, 138, 0, 0.42),
    0 4px 12px rgba(255,138,0,0.24),
    inset 0 1px 0 rgba(255,255,255,0.28);
  filter: brightness(1.04);
}
.lm-submit:hover:not(:disabled)::before { opacity: 1; }
.lm-submit:active:not(:disabled) { transform: translateY(0) scale(0.99); }
.lm-submit:disabled { opacity: 0.65; cursor: wait; }
.lm-submit.is-success {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.32);
}

.lm-submit-spinner {
  display: none;
  width: 16px; height: 16px;
  margin-left: 10px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: lm-spin 0.7s linear infinite;
  vertical-align: middle;
}
.lm-submit.is-loading .lm-submit-spinner { display: inline-block; }
@keyframes lm-spin { to { transform: rotate(360deg); } }

/* Spinner inline genérico para botones del landing en estado loading.
   Edgar: 'es bien chafa como el botón se hace verde con palomita'.
   Loading state minimalista estilo Stripe/Linear. El botón mantiene
   su color brand (naranja); solo cambia el contenido. */
.btn-inline-spinner {
  display: inline-block;
  width: 14px; height: 14px;
  margin-left: 8px;
  border: 2px solid rgba(255,255,255,0.32);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: lm-spin 0.7s linear infinite;
  vertical-align: middle;
}
/* Estado is-loading: mantiene el color brand del botón (no verde),
   reduce cursor a wait + ligeramente disabled. */
.is-loading {
  cursor: wait !important;
  pointer-events: none;
  opacity: 0.92;
}

.lm-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
  color: rgba(241,245,249,0.38);
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.6px;
}
.lm-divider::before, .lm-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.10), transparent);
}
.lm-divider:first-of-type::before { background: linear-gradient(90deg, rgba(255,255,255,0.10), transparent); }
.lm-divider:last-of-type::after { background: linear-gradient(90deg, transparent, rgba(255,255,255,0.10)); }
.lm-divider span { padding: 0; }

.lm-footer {
  text-align: center;
  margin-top: 22px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(241,245,249,0.52);
}
.lm-link {
  color: #FF8A00;
  font-weight: 800;
  text-decoration: none;
  transition: color 0.15s ease;
}
.lm-link:hover {
  color: #FFA333;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Mobile ajustes */
@media (max-width: 520px) {
  .login-modal { padding: 16px; }
  .login-modal-card { padding: 28px 22px 24px; border-radius: 20px; }
  .login-modal-logo img { width: 32px; height: 32px; }
  .login-modal-brand { font-size: 20px; }
  .login-modal-title { font-size: 22px; }
  .login-modal-sub { font-size: 13.5px; margin-bottom: 20px; }
  .lm-input-wrap input { font-size: 16px; padding: 13px 14px 13px 42px; }
  .lm-submit { padding: 14px; font-size: 15px; }
}

/* Phone XS — modal aún más comprimido */
@media (max-width: 360px) {
  .login-modal { padding: 12px; }
  .login-modal-card { padding: 24px 18px 22px; border-radius: 18px; }
  .login-modal-title { font-size: 20px; letter-spacing: -0.3px; }
  .login-modal-sub { font-size: 13px; margin-bottom: 18px; }
  .login-modal-logo { gap: 7px; margin-bottom: 16px; }
  .login-modal-logo img { width: 30px; height: 30px; }
  .login-modal-brand { font-size: 19px; }
  .lm-input-wrap input { padding: 12px 12px 12px 40px; }
  .lm-input-icon { left: 12px; }
}

/* Landscape phone — modal alineado arriba para no cortarse */
@media (max-height: 600px) {
  .login-modal { align-items: flex-start; padding-top: 20px; padding-bottom: 20px; overflow-y: auto; }
  .login-modal-card { padding: 22px 24px 20px; max-height: none; }
  .login-modal-logo { margin-bottom: 12px; }
  .login-modal-title { margin-bottom: 4px; }
  .login-modal-sub { margin-bottom: 14px; }
  .lm-fg { margin-bottom: 12px; }
}

/* ─── Botón "Continuar con Google" en el modal ─────────────── */
.lm-google {
  width: 100%;
  margin-bottom: 14px;
  padding: 13px 16px;
  border: 2px solid #E2E8F0;
  border-radius: 14px;
  background: #FFFFFF;
  color: #1F2937;
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}
.lm-google:hover:not(:disabled) {
  border-color: #CBD5E1;
  background: #F8FAFC;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}
.lm-google:active:not(:disabled) { transform: translateY(0); }
.lm-google:disabled { opacity: 0.55; cursor: wait; }
.lm-google svg { flex-shrink: 0; }

.lm-divider--small { margin: 16px 0 14px; }
.lm-divider--small::before, .lm-divider--small::after { background: rgba(255,255,255,0.08); }

/* ── Botón Google: host directo (sin overlay trick) ───────────────
   Antes había un overlay con opacity:0.001 para superponer un botón
   custom estilo dark. Google Identity Services detecta esa técnica
   como posible clickjacking y RECHAZA silenciosamente el flujo OAuth.
   Ahora el host muestra el botón oficial filled_black de Google.

   Width DINÁMICO: el JS calcula el ancho real del contenedor y se
   lo pasa a renderButton. No forzamos width:auto !important porque
   eso producía el bug del "cuadrado blanco" alrededor del icono G
   cuando el iframe oficial no cabía en el modal mobile. */
/* ── Google button: wrapper premium ──
   Google Identity Services puede renderizar 2 estilos:
   (A) "Continuar con Google" estándar (cuando NO hay sesión activa
       de Google en el browser)
   (B) "Continuar como [Usuario]" personalizado con avatar + email
       (cuando SÍ hay sesión activa) — REQUERIDO con fondo blanco
       por las brand guidelines de Google.

   No podemos forzar siempre (A) — Google decide. Pero podemos hacer
   que (B) se vea PREMIUM dentro del modal dark: lo enmarcamos como
   un widget intencional (Apple Pay-style) con bordes redondeados,
   sombra suave y un container que separa visualmente del resto. */
.lm-google-host {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
  min-height: 44px;
  width: 100%;
  position: relative;
  /* Wrapper sutil: sombra que abraza el iframe blanco y lo integra
     con el dark theme en lugar de competir con él. */
  padding: 2px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0));
  box-shadow:
    0 1px 0 rgba(255,255,255,0.05) inset,
    0 8px 24px rgba(0,0,0,0.32);
}
.lm-google-host > div { max-width: 100%; }
/* El iframe del botón Google oficial — borders redondeados parejos
   con el wrapper. */
.lm-google-host iframe {
  border-radius: 12px !important;
  /* Forzar el ancho a 100% del wrapper para evitar el "white square"
     residual cuando Google renderiza más estrecho que el container */
  width: 100% !important;
}

/* ═══════════════════════════════════════════════════════════════
   "Desbloqueo" cinematic — modal landing (login_modal).
   Duplicado del de login.css porque el landing no carga ese CSS.
   La función JS playUnlockCinematic vive en el script del modal.
   ═══════════════════════════════════════════════════════════════ */

.auth-unlock {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
}
.auth-unlock-bg {
  position: absolute; inset: 0;
  background: #0B1120;
  opacity: 0;
  animation: lm-unlock-bg 1.3s ease-in forwards;
}
.auth-unlock-core {
  position: absolute;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255, 235, 180, 1) 0%,
    rgba(255, 180, 70, 0.95) 22%,
    rgba(255, 138, 0, 0.65) 45%,
    rgba(255, 90, 0, 0.20) 70%,
    transparent 100%
  );
  filter: blur(0.5px);
  opacity: 0;
  transform: scale(0.4);
  animation: lm-unlock-core 1.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.auth-unlock-ring {
  position: absolute;
  width: 90px; height: 90px;
  border-radius: 50%;
  border: 3px solid rgba(255, 138, 0, 0.9);
  opacity: 0;
  transform: scale(0);
  animation: lm-unlock-ring 1.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  box-shadow:
    0 0 24px rgba(255, 138, 0, 0.5),
    inset 0 0 12px rgba(255, 138, 0, 0.35);
}
.auth-unlock-ring--1 { animation-delay: 200ms; }
.auth-unlock-ring--2 {
  animation-delay: 360ms;
  border-color: rgba(255, 200, 120, 0.75);
  box-shadow: 0 0 20px rgba(255, 200, 120, 0.4);
}
.auth-unlock-ring--3 {
  animation-delay: 520ms;
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.3);
}
.auth-unlock-text {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, 80px);
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.96);
  text-shadow:
    0 0 18px rgba(255, 138, 0, 0.85),
    0 0 6px rgba(255, 180, 70, 0.6);
  opacity: 0;
  white-space: nowrap;
  animation: lm-unlock-text 1.3s ease forwards;
  animation-delay: 480ms;
}
.login-modal-card.auth-card--unlocking {
  animation: lm-unlock-card 1.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  pointer-events: none;
}
body.auth-unlocking { overflow: hidden; }

@keyframes lm-unlock-card {
  0%   { transform: translateY(0) scale(1); opacity: 1; filter: brightness(1); }
  12%  { transform: translateY(2px) scale(0.97); opacity: 1; filter: brightness(0.78); }
  20%  { transform: translateY(-2px) scale(1.035); opacity: 1; filter: brightness(1.35); }
  30%  { transform: translateY(-4px) scale(1.02); opacity: 0.95; filter: brightness(1.1); }
  60%  { transform: translateY(-14px) scale(1.08); opacity: 0.45; filter: brightness(0.9); }
  100% { transform: translateY(-28px) scale(1.16); opacity: 0; filter: brightness(0.5); }
}
@keyframes lm-unlock-core {
  0%   { opacity: 0; transform: scale(0.4); }
  18%  { opacity: 1; transform: scale(0.95); }
  35%  { opacity: 1; transform: scale(1.45); }
  65%  { opacity: 0.85; transform: scale(2.6); }
  100% { opacity: 0; transform: scale(5); }
}
@keyframes lm-unlock-ring {
  0%   { opacity: 0; transform: scale(0); border-width: 4px; }
  8%   { opacity: 1; transform: scale(0.35); border-width: 4px; }
  50%  { opacity: 0.8; transform: scale(2.8); border-width: 2px; }
  100% { opacity: 0; transform: scale(7.5); border-width: 0.5px; }
}
@keyframes lm-unlock-text {
  0%   { opacity: 0; transform: translate(-50%, 90px); letter-spacing: 2px; }
  28%  { opacity: 1; transform: translate(-50%, 70px); letter-spacing: 4px; }
  70%  { opacity: 1; transform: translate(-50%, 64px); letter-spacing: 5px; }
  100% { opacity: 0; transform: translate(-50%, 50px); letter-spacing: 6px; }
}
@keyframes lm-unlock-bg {
  0%   { opacity: 0; }
  55%  { opacity: 0.35; }
  100% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-unlock { display: none; }
  .login-modal-card.auth-card--unlocking {
    animation: none;
    transition: opacity 0.25s ease;
    opacity: 0;
  }
}

/* ═══════════════════════════════════════════════════════════════
   CHAT MODAL — Demo público sin registro (.igc-*)
   Reemplazó el wizard de 4 steps. Reutiliza la base de .ig-overlay
   pero con layout de chat real estilo dashboard.
   ═══════════════════════════════════════════════════════════════ */

.ig-modal--chat {
  max-width: 540px;
  height: min(620px, 92vh);
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ── Header: avatar Pio + identidad + close ── */
.igc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: #FFFFFF;
  border-bottom: 1px solid rgba(15,23,42,0.08);
  flex-shrink: 0;
}
.igc-header-pio { display: flex; align-items: center; gap: 11px; }
.igc-header-avatar {
  position: relative;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,138,0,0.16), rgba(255,138,0,0.06));
  border: 2px solid rgba(255,138,0,0.22);
  flex-shrink: 0;
}
.igc-header-avatar img {
  width: 70%; height: 70%;
  object-fit: contain;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.igc-header-online {
  position: absolute;
  bottom: -1px; right: -1px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #22C55E;
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 0 0 rgba(34,197,94,0.45);
  animation: igc-online-pulse 2s ease-out infinite;
}
@keyframes igc-online-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.45); }
  70% { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
.igc-header-info { line-height: 1.2; }
.igc-header-name { font-size: 15px; font-weight: 900; color: #0F172A; }
.igc-header-role { font-size: 11.5px; font-weight: 600; color: #64748B; }

.igc-close {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid rgba(15,23,42,0.10);
  color: #64748B;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.igc-close:hover {
  background: rgba(255,138,0,0.08);
  color: #FF8A00;
  border-color: rgba(255,138,0,0.32);
  transform: rotate(90deg);
}

/* ── Feed: scrollable chat area ── */
.igc-feed {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(180deg, #FAFBFD 0%, #FFFFFF 100%);
  scroll-behavior: smooth;
}
.igc-feed::-webkit-scrollbar { width: 6px; }
.igc-feed::-webkit-scrollbar-thumb { background: rgba(15,23,42,0.12); border-radius: 999px; }

/* Mensajes */
.igc-msg {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 92%;
  opacity: 0;
  transform: translateY(6px) scale(0.97);
  animation: igc-msg-in 0.32s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes igc-msg-in {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.igc-msg--pio { align-self: flex-start; }
.igc-msg--user { align-self: flex-end; flex-direction: row-reverse; }

.igc-msg-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,138,0,0.15), rgba(255,138,0,0.06));
  border: 1.5px solid rgba(255,138,0,0.24);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.igc-msg-avatar img { width: 70%; height: 70%; object-fit: contain; }

.igc-msg-bubble {
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.45;
  padding: 9px 13px;
  border-radius: 14px;
}
.igc-msg--pio .igc-msg-bubble {
  background: linear-gradient(135deg, rgba(255,138,0,0.10), rgba(255,138,0,0.04));
  border: 1px solid rgba(255,138,0,0.22);
  color: #0F172A;
  border-radius: 4px 14px 14px 14px;
  font-weight: 600;
}
.igc-msg--user .igc-msg-bubble {
  background: #0F172A;
  color: #FFFFFF;
  border-radius: 14px 4px 14px 14px;
}

.igc-msg--typing .igc-msg-bubble {
  display: inline-flex;
  gap: 5px;
  padding: 11px 14px;
}
.igc-typing-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #FF8A00;
  animation: igc-typing 1.2s ease-in-out infinite;
}
.igc-typing-dot:nth-child(2) { animation-delay: 0.15s; }
.igc-typing-dot:nth-child(3) { animation-delay: 0.30s; }
@keyframes igc-typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30% { transform: translateY(-3px); opacity: 1; }
}
.igc-typing-text { animation: igc-fade-in 0.25s ease both; }
@keyframes igc-fade-in { from { opacity: 0.4; } to { opacity: 1; } }

/* Result card embebido en bubble final */
.igc-msg-bubble--result { padding: 12px 14px; }
.igc-result-intro {
  font-size: 13.5px; font-weight: 700; color: #0F172A; margin: 0 0 10px;
}
.igc-result-card {
  background: #FFFFFF;
  border: 1px solid rgba(255,138,0,0.32);
  border-radius: 12px;
  padding: 12px 13px;
  margin-bottom: 10px;
  box-shadow: 0 4px 14px rgba(255,138,0,0.10);
}
.igc-result-title {
  font-size: 15px; font-weight: 900; color: #0F172A;
  line-height: 1.25; margin-bottom: 4px; letter-spacing: -0.01em;
}
.igc-result-summary {
  font-size: 12.5px; font-weight: 500; color: #475569;
  line-height: 1.45; margin-bottom: 10px;
}
.igc-result-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}
.igc-result-stat {
  display: flex; flex-direction: column; gap: 2px;
  padding: 6px 8px;
  background: rgba(255,138,0,0.05);
  border: 1px solid rgba(255,138,0,0.14);
  border-radius: 8px;
}
.igc-result-stat-label {
  font-size: 9px; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: #94A3B8;
}
.igc-result-stat-val { font-size: 12px; font-weight: 800; color: #0F172A; }
.igc-result-cta-text {
  font-size: 12.5px; font-weight: 600; color: #64748B;
  margin: 0; line-height: 1.4;
}

/* Gate CTA */
.igc-gate {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  align-self: stretch;
  animation: igc-msg-in 0.35s 0.1s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}
.igc-gate-btn {
  padding: 13px 18px;
  border-radius: 11px;
  font-family: inherit;
  font-size: 14px; font-weight: 800;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: none;
}
.igc-gate-btn--primary {
  background: linear-gradient(135deg, #FF8A00, #FFA333);
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(255,138,0,0.32);
}
.igc-gate-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(255,138,0,0.42);
}
.igc-gate-btn--ghost {
  background: transparent;
  color: #64748B;
  border: 1.5px solid rgba(15,23,42,0.10);
}
.igc-gate-btn--ghost:hover {
  background: rgba(15,23,42,0.04);
  color: #0F172A;
}

/* ── Chips de respuesta rápida ── */
.igc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 18px 0;
  flex-shrink: 0;
}
.igc-chip {
  padding: 7px 13px;
  background: rgba(255,138,0,0.08);
  border: 1px solid rgba(255,138,0,0.24);
  border-radius: 999px;
  font-family: inherit;
  font-size: 12px; font-weight: 700;
  color: #FF8A00;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
.igc-chip:hover {
  background: rgba(255,138,0,0.16);
  border-color: rgba(255,138,0,0.45);
  transform: translateY(-1px);
}

/* ── Input bar al fondo ── */
.igc-input-bar {
  padding: 12px 18px 14px;
  background: #FFFFFF;
  border-top: 1px solid rgba(15,23,42,0.08);
  flex-shrink: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.igc-input-bar.is-hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  height: 0;
  padding: 0;
  overflow: hidden;
}
.igc-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F8FAFC;
  border: 1.5px solid rgba(15,23,42,0.10);
  border-radius: 999px;
  padding: 4px 4px 4px 16px;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.igc-input-row:focus-within {
  border-color: #FF8A00;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(255,138,0,0.12);
}
.igc-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px; font-weight: 500;
  color: #0F172A;
  padding: 9px 0;
}
.igc-input::placeholder { color: #94A3B8; font-weight: 500; }
.igc-send {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF8A00, #FFA333);
  color: #FFFFFF;
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(255,138,0,0.32);
  flex-shrink: 0;
  transition: transform 0.12s ease, opacity 0.15s ease;
}
.igc-send:hover:not(:disabled) { transform: scale(1.06); }
.igc-send:disabled { opacity: 0.45; cursor: not-allowed; }
.igc-send svg { transform: translateX(-1px); }
.igc-input-hint {
  margin-top: 7px;
  font-size: 10.5px;
  font-weight: 700;
  color: #94A3B8;
  text-align: center;
  letter-spacing: 0.03em;
}

/* ── Mobile chat ── */
@media (max-width: 600px) {
  .ig-modal--chat {
    height: 100%;
    max-height: 100%;
    border-radius: 0;
  }
  .igc-msg-bubble { font-size: 13px; }
  .igc-result-title { font-size: 14px; }
  .igc-result-stats { grid-template-columns: 1fr 1fr; }
  .igc-input { font-size: 16px; /* iOS no zoom */ }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .igc-msg,
  .igc-header-online,
  .igc-typing-dot { animation: none; }
}
