/* ==========================================================================
   TalkHero — estilos del sitio estático (landing + login)
   Depende de css/tokens.css (design tokens del TalkHero Design System)
   ========================================================================== */

/* --- Reset ---------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  background: var(--surface-page);
  min-height: 100vh;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

button, input, select, textarea { font: inherit; color: inherit; }

ul { list-style: none; padding: 0; }

:focus-visible { outline: none; box-shadow: var(--shadow-focus); border-radius: var(--radius-sm); }

/* --- Utilidades ----------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container--wide { max-width: 1200px; }

.eyebrow {
  font-size: var(--text-micro);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--violet-500);
}

.section { padding-block: clamp(64px, 9vw, 96px); }

.section-head { max-width: 760px; margin-inline: auto; text-align: center; }

.section-head h2 {
  font-size: clamp(28px, 4.4vw, 50px);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-wrap: balance;
}

.section-head p {
  font-size: var(--text-body-lg);
  line-height: 1.6;
  color: var(--text-secondary);
  margin: var(--space-4) auto 0;
  max-width: 600px;
  text-wrap: pretty;
}

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

/* --- Botones (Button del DS) ---------------------------------------------- */
.btn {
  font-family: var(--font-sans);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.01em;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  white-space: nowrap;
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}

.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: none; box-shadow: var(--shadow-focus); }

.btn--primary { background: var(--interactive-primary); color: var(--text-inverse); }
.btn--primary:hover { background: var(--interactive-primary-hover); color: var(--text-inverse); }
.btn--primary:active { background: var(--interactive-primary-active); }

.btn--accent { background: var(--interactive-accent); color: var(--navy-800); }
.btn--accent:hover { background: var(--interactive-accent-hover); color: var(--navy-800); }
.btn--accent:active { background: var(--interactive-accent-active); }

.btn--secondary { background: var(--surface-card); color: var(--text-brand); border-color: var(--border-strong); }
.btn--secondary:hover { background: var(--gray-50); color: var(--text-brand); }

.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.10); border-color: rgba(255, 255, 255, 0.45); color: #fff; }

.btn--sm { height: 32px; padding-inline: 14px; font-size: var(--text-caption); }
.btn--md { height: 40px; padding-inline: 18px; font-size: 14px; }
.btn--lg { height: 52px; padding-inline: 24px; font-size: 16px; }
.btn--full { width: 100%; }

/* --- Badge / Tag ---------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius-pill);
  padding: 6px 13px;
  font-size: var(--text-caption);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.005em;
}

.badge--accent { background: var(--surface-accent); color: var(--navy-800); }
.badge--soft { background: var(--lavender-100); color: var(--violet-600); }

.badge--glass {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--pink-300);
  font-size: 11.5px;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 14px;
}

.badge--glass .dot { width: 6px; height: 6px; border-radius: 2px; background: var(--pink-400); }

.tag {
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

/* --- Reveal on scroll -----------------------------------------------------
   El estado oculto solo se aplica cuando JS marca <html class="js-reveal">.
   Sin JS (o si el script falla) el contenido se ve siempre. */
.js-reveal .rv {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.16, 1, .3, 1);
}

.js-reveal .rv.is-in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .09s; }
.rv-d2 { transition-delay: .18s; }
.rv-d3 { transition-delay: .27s; }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(38, 42, 103, 0.85);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  height: 68px;
}

.nav__logo { width: 126px; flex: none; }
.nav__logo img { width: 100%; }

.nav__links { display: flex; gap: var(--space-6); margin-left: var(--space-4); }

.nav__links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: var(--weight-medium);
  transition: color var(--dur-fast) var(--ease-out);
}

.nav__links a:hover { color: #fff; }

.nav__actions { margin-left: auto; display: flex; gap: var(--space-5); align-items: center; }

.nav__login { color: rgba(255, 255, 255, 0.8); font-size: 14px; font-weight: var(--weight-medium); }
.nav__login:hover { color: #fff; }

.nav__lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  padding: 6px 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-caption);
  font-weight: var(--weight-semibold);
  cursor: pointer;
}

.nav__burger {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 6px;
}

/* Menú móvil */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--navy-800);
  color: #fff;
  flex-direction: column;
  display: none;
}

.mobile-menu[data-open="true"] { display: flex; animation: menuIn 250ms var(--ease-out); }

.mobile-menu__top {
  display: flex;
  align-items: center;
  height: 68px;
  padding-inline: var(--space-6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu__top img { width: 126px; }

.mobile-menu__close {
  margin-left: auto;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 6px;
}

.mobile-menu__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 28px 28px;
  overflow-y: auto;
}

.mobile-menu__links { display: flex; flex-direction: column; gap: 26px; margin-bottom: 36px; }

.mobile-menu__links a {
  color: #fff;
  font-size: clamp(30px, 9vw, 40px);
  font-weight: var(--weight-regular);
  letter-spacing: -0.02em;
  line-height: 1;
}

.mobile-menu__foot {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.mobile-menu__row { display: flex; align-items: center; gap: var(--space-4); }
.mobile-menu__row a { color: rgba(255, 255, 255, 0.85); font-size: 22px; font-weight: var(--weight-medium); }
.mobile-menu__row .nav__lang { margin-left: auto; padding: 7px 12px; font-size: 14px; }

@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  background: var(--navy-800);
  color: #fff;
  padding: 36px 0 0;
  text-align: center;
  overflow: hidden;
  position: relative;
}

.hero__inner {
  max-width: 960px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-inline: var(--space-6);
}

.hero h1 {
  font-size: clamp(30px, 6.4vw, 58px);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-display);
  line-height: 1.06;
  margin-top: var(--space-4);
  text-wrap: balance;
}

.hero h1 .flap { color: var(--pink-300); white-space: pre; }

.hero h1 .caret {
  display: inline-block;
  width: 0.06em;
  height: 0.86em;
  background: var(--pink-300);
  margin-left: 0.06em;
  vertical-align: -0.08em;
  animation: caret 1s steps(1) infinite;
}

@keyframes caret { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

.hero__sub {
  font-size: var(--text-body-lg);
  line-height: 1.5;
  color: var(--lavender-300);
  margin: var(--space-4) auto 0;
  max-width: 560px;
  text-wrap: pretty;
}

.hero__cta { display: flex; gap: var(--space-3); margin-top: var(--space-5); flex-wrap: wrap; justify-content: center; }
.hero__note { font-size: var(--text-caption); color: rgba(255, 255, 255, 0.55); margin-top: 10px; }

/* Escenario: globo + foto */
.hero__stage {
  position: relative;
  width: 100%;
  margin-top: var(--space-4);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: clamp(280px, 42vh, 440px);
}

.hero__globe {
  position: absolute;
  left: 50%;
  top: 58%;
  transform: translateX(-50%);
  width: min(1120px, 190vw);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: radial-gradient(circle at 32% 28%, rgba(195, 169, 250, 0.28) 0%, rgba(106, 63, 168, 0.18) 45%, rgba(38, 42, 103, 0.05) 75%);
  box-shadow: inset -30px -40px 80px rgba(24, 27, 71, 0.5), 0 -20px 80px rgba(251, 139, 247, 0.12);
  pointer-events: none;
}

.hero__globe::before,
.hero__globe::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.hero__globe::before {
  background-image: radial-gradient(rgba(255, 255, 255, 0.28) 1.5px, transparent 1.5px);
  background-size: 34px 34px;
  overflow: hidden;
  animation: globeSpin 36s linear infinite;
}

.hero__globe::after {
  background-image: repeating-linear-gradient(0deg, transparent 0 79px, rgba(255, 255, 255, 0.10) 79px 80px);
}

@keyframes globeSpin { from { background-position: 0 0; } to { background-position: 0 680px; } }

.hero__glow {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(640px, 100%);
  height: 85%;
  background: radial-gradient(ellipse at 50% 100%, rgba(251, 139, 247, 0.22) 0%, rgba(106, 63, 168, 0.12) 45%, transparent 72%);
  pointer-events: none;
}

.hero__photo { position: relative; height: 100%; width: auto; object-fit: contain; object-position: bottom; }

/* Burbujas de chat animadas */
.hero__bubbles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

.bubble-slot { position: absolute; transform: translateX(-50%); }

.bubble {
  position: relative;
  border-radius: 18px;
  border-bottom-left-radius: 6px;
  padding: 10px 13px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  display: flex;
  align-items: center;
  min-height: 16px;
  pointer-events: none;
  animation-name: chatUp;
  animation-timing-function: var(--ease-out);
  animation-iteration-count: infinite;
}

.bubble__lines { display: flex; flex-direction: column; gap: 6px; animation: chatLines linear infinite; animation-duration: inherit; animation-delay: inherit; }
.bubble__lines span { display: block; height: 7px; border-radius: 4px; background: var(--gray-200); }
.bubble__lines span:last-child { width: 62%; background: var(--gray-100); }

.bubble__check {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  opacity: 0;
  display: inline-flex;
  animation: chatCheck linear infinite;
  animation-duration: inherit;
  animation-delay: inherit;
}

@keyframes chatUp {
  0%   { opacity: 0; transform: translateY(10px) scale(0.6); background: #fff; }
  12%  { opacity: 1; transform: translateY(-16px) scale(1); background: #fff; }
  48%  { background: #fff; transform: translateY(-52px); }
  58%  { background: var(--success); }
  82%  { opacity: 1; transform: translateY(-88px); background: var(--success); }
  100% { opacity: 0; transform: translateY(-116px); background: var(--success); }
}

@keyframes chatLines { 0%, 48% { opacity: 1; } 58%, 100% { opacity: 0; } }

@keyframes chatCheck {
  0%, 50%  { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
  60%, 82% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100%     { opacity: 0; }
}

/* Stats bajo el hero */
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 26px 0 34px;
  position: relative;
  z-index: 2;
}

.hero__stats > div { padding-inline: 28px; text-align: center; }
.hero__stats > div + div { border-left: 1px solid rgba(255, 255, 255, 0.15); }

.hero__stats .n {
  display: flex;
  align-items: center;
  gap: 9px;
  justify-content: center;
  color: var(--pink-300);
  font-size: 26px;
  font-weight: var(--weight-bold);
  letter-spacing: -0.02em;
}

.hero__stats .l { font-size: 12.5px; color: rgba(255, 255, 255, 0.6); margin-top: 4px; }

/* ==========================================================================
   LOGO STRIP
   ========================================================================== */
.logos {
  background: var(--surface-page);
  padding-block: var(--space-10);
  border-bottom: 1px solid var(--border-subtle);
}

.logos__title {
  font-size: 12px;
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}

.logos__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-8);
  margin-top: 22px;
  flex-wrap: wrap;
}

.logos__row span { font-size: 22px; letter-spacing: -0.02em; color: var(--gray-400); }

/* ==========================================================================
   FEATURES (círculos de stats)
   ========================================================================== */
.features { position: relative; background: var(--lavender-50); overflow: hidden; }

.features__dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(var(--lavender-300) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 42%, #000 10%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 42%, #000 10%, transparent 78%);
}

.features .container { position: relative; }

.features h2 .accent { color: var(--pink-500); }

.features__circles {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: clamp(36px, 6vw, 64px) 0 clamp(36px, 5vw, 56px);
}

.features__circles > div {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-inline: 44px;
  text-align: center;
  flex: none;
  background: radial-gradient(circle at 50% 38%, var(--surface-page), rgba(255, 255, 255, 0.55));
  border: 1px solid rgba(214, 79, 203, 0.30);
  box-shadow: 0 26px 70px rgba(106, 63, 168, 0.10), inset 0 -30px 60px rgba(251, 139, 247, 0.10);
  backdrop-filter: blur(6px);
  position: relative;
}

.features__circles > div + div { margin-left: -40px; }
.features__circles > div:nth-child(1) { z-index: 3; }
.features__circles > div:nth-child(2) { z-index: 2; }
.features__circles > div:nth-child(3) { z-index: 1; }

.features__circles .n {
  font-size: 52px;
  font-weight: var(--weight-semibold);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--pink-500);
}

.features__circles .l { font-size: 15px; line-height: 1.45; color: var(--text-secondary); margin-top: 14px; text-wrap: pretty; }

/* ==========================================================================
   INDUSTRIAS
   ========================================================================== */
.industries { background: var(--surface-page); }

.industries__tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: var(--space-8) 0 var(--space-6);
}

.ind-tab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 46px;
  padding-inline: 20px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: var(--weight-semibold);
  border: 1px solid var(--border-default);
  background: var(--surface-page);
  color: var(--text-secondary);
  transition: all var(--dur-fast) var(--ease-out);
}

.ind-tab:hover { background: var(--gray-50); }
.ind-tab[aria-selected="true"] { background: var(--navy-800); color: #fff; border-color: transparent; }

.ind-panel {
  background: var(--navy-800);
  border-radius: 32px;
  padding: clamp(24px, 4vw, 40px) clamp(24px, 4vw, 48px);
  color: #fff;
  display: flex;
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
  overflow: hidden;
  flex-wrap: wrap;
  animation: fadeIn 420ms var(--ease-out);
}

@keyframes fadeIn { from { opacity: 0; } }

.ind-panel__media {
  position: relative;
  width: 330px;
  height: 380px;
  flex: none;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.ind-panel__media img { width: 100%; height: 100%; object-fit: cover; }

.ind-panel__stat {
  position: absolute;
  inset: auto 0 0 0;
  padding: 44px 20px 18px;
  background: linear-gradient(180deg, transparent, rgba(24, 27, 71, 0.92));
}

.ind-panel__stat .n { font-size: 26px; font-weight: var(--weight-semibold); letter-spacing: -0.03em; line-height: 1; }
.ind-panel__stat .l { font-size: 12.5px; color: var(--lavender-300); margin-top: 3px; text-wrap: pretty; }

.ind-panel__body { flex: 1 1 340px; min-width: 0; }
.ind-panel__body .eyebrow { color: var(--pink-300); }

.ind-panel__body h3 {
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.025em;
  margin-top: 10px;
  line-height: 1.18;
  white-space: pre-line;
}

.ind-panel__body p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--lavender-300);
  margin-top: 14px;
  max-width: 520px;
  text-wrap: pretty;
}

.ind-panel__tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: 22px; }

/* ==========================================================================
   DASHBOARD SHOWCASE
   ========================================================================== */
.showcase { background: var(--lavender-50); }

.showcase__frame-row { margin-top: var(--space-12); display: flex; align-items: center; gap: var(--space-4); }

.showcase__nav {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-default);
  background: #fff;
  box-shadow: var(--shadow-sm);
  color: var(--text-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow var(--dur-fast) var(--ease-out);
}

.showcase__nav:hover { box-shadow: var(--shadow-md); }

.browser {
  flex: 1;
  min-width: 0;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.browser__bar {
  height: 40px;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding-inline: var(--space-4);
  background: var(--navy-900);
}

.browser__bar i { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.browser__bar i:nth-child(1) { background: #FF5F57; }
.browser__bar i:nth-child(2) { background: #FEBC2E; }
.browser__bar i:nth-child(3) { background: #28C840; }

.browser__url {
  margin-inline: auto;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.75);
  padding: 3px 14px;
}

.browser img { width: 100%; }

.showcase__dots { display: none; justify-content: center; gap: var(--space-2); margin-top: var(--space-4); }
.showcase__dots button { width: 8px; height: 8px; border-radius: 50%; border: none; background: var(--gray-300); cursor: pointer; padding: 0; }
.showcase__dots button[aria-current="true"] { background: var(--navy-800); width: 22px; border-radius: 4px; }

.cards-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-12);
}

.card-soft { background: #fff; border-radius: var(--radius-xl); padding: 28px 26px; }

.card-soft .ic {
  display: inline-flex;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--lavender-100);
  color: var(--violet-600);
  align-items: center;
  justify-content: center;
}

.card-soft h3 { font-size: var(--text-body-lg); font-weight: var(--weight-semibold); letter-spacing: -0.01em; margin: var(--space-4) 0 6px; }
.card-soft p { font-size: 14px; line-height: 1.6; color: var(--text-secondary); }

/* ==========================================================================
   PRECIOS
   ========================================================================== */
.pricing { background: var(--surface-page); padding-bottom: clamp(64px, 9vw, 96px); }

.pricing__panel {
  background: var(--violet-700);
  background-image: radial-gradient(rgba(255, 255, 255, 0.10) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  border-radius: 40px;
  padding: clamp(48px, 7vw, 72px) clamp(20px, 5vw, 56px);
  color: #fff;
}

.pricing__panel .section-head h2,
.pricing__panel .section-head p { color: #fff; }
.pricing__panel .section-head p { color: var(--lavender-300); }

.pricing__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-5);
  margin: var(--space-8) 0 clamp(40px, 6vw, 72px);
}

.pricing__stats > div { text-align: center; border-left: 1px solid rgba(255, 255, 255, 0.12); }
.pricing__stats .n { font-size: clamp(34px, 4.4vw, 46px); font-weight: var(--weight-semibold); letter-spacing: -0.03em; color: var(--pink-300); }
.pricing__stats .l { font-size: var(--text-caption); color: var(--lavender-300); margin-top: 4px; }

.pricing__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.pricing__head h3 { font-size: clamp(26px, 3.4vw, 34px); font-weight: var(--weight-semibold); letter-spacing: -0.03em; }

.toggle {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  padding: 4px;
  gap: 2px;
}

.toggle button {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: var(--weight-semibold);
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}

.toggle button[aria-selected="true"] { background: #fff; color: var(--navy-800); }

/* Tabla comparativa (desktop) */
.plan-table-wrap { background: #fff; border-radius: var(--radius-xl); overflow-x: auto; color: var(--text-primary); }
.plan-table { width: 100%; border-collapse: collapse; min-width: 820px; font-size: 13.5px; }
.plan-table th { text-align: left; padding: 22px 20px; vertical-align: top; width: 24%; font-weight: var(--weight-regular); }
.plan-table th:first-child { width: 28%; padding-inline: 24px; }
.plan-table th.is-featured, .plan-table td.is-featured { background: var(--lavender-50); }
.plan-table .plan-name { display: flex; align-items: center; gap: var(--space-2); font-size: 16px; font-weight: var(--weight-bold); }
.plan-table .plan-price { font-size: 26px; font-weight: var(--weight-semibold); letter-spacing: -0.03em; margin-top: var(--space-2); }
.plan-table .plan-price small { font-size: 12px; font-weight: var(--weight-medium); color: var(--text-muted); letter-spacing: normal; }
.plan-table .plan-actions { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-4); max-width: 210px; }
.plan-table tbody tr { border-top: 1px solid var(--border-subtle); }
.plan-table td { padding: 12px 20px; color: var(--text-secondary); }
.plan-table td:first-child { padding-inline: 24px; font-weight: var(--weight-semibold); color: var(--text-primary); }
.plan-table .no { color: var(--gray-300); }
.plan-table .yes { color: var(--success); }

/* Tarjetas de plan (móvil) */
.plan-cards { display: none; flex-direction: column; gap: var(--space-4); }

.plan-card { background: #fff; border-radius: var(--radius-xl); padding: 24px 22px; color: var(--text-primary); }
.plan-card.is-featured { border: 2px solid var(--pink-300); }
.plan-card__top { display: flex; align-items: center; gap: var(--space-2); }
.plan-card__top .name { font-size: 18px; font-weight: var(--weight-bold); }
.plan-card__price { font-size: 30px; font-weight: var(--weight-semibold); letter-spacing: -0.03em; margin-top: 10px; }
.plan-card__price small { font-size: 12px; font-weight: var(--weight-medium); color: var(--text-muted); letter-spacing: normal; }
.plan-card__actions { display: flex; flex-direction: column; gap: var(--space-2); margin: var(--space-4) 0; }
.plan-card ul { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--border-subtle); padding-top: var(--space-4); }
.plan-card li { display: flex; gap: 10px; font-size: 14px; line-height: 1.45; color: var(--text-secondary); }
.plan-card li svg { flex: none; margin-top: 2px; color: var(--success); }
.plan-card li.off { color: var(--text-muted); }
.plan-card li.off svg { color: var(--gray-300); }

.enterprise {
  margin-top: var(--space-4);
  background: rgba(0, 0, 0, 0.28);
  border-radius: var(--radius-xl);
  padding: 22px 28px;
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.enterprise .t { font-size: 16px; font-weight: var(--weight-bold); }
.enterprise .d { font-size: var(--text-caption); color: var(--lavender-300); margin-top: 2px; }
.enterprise .price { margin-left: auto; font-size: 30px; font-weight: var(--weight-semibold); letter-spacing: -0.03em; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { background: var(--surface-page); }

.faq .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(32px, 5vw, 56px);
  align-items: start;
}

.faq h2 { font-size: clamp(40px, 6vw, 56px); font-weight: var(--weight-semibold); letter-spacing: -0.035em; line-height: 1.05; }
.faq__aside p { font-size: 14px; color: var(--text-secondary); margin-top: var(--space-4); line-height: 1.6; }

.faq__list { border-top: 1px solid var(--border-default); }
.faq__item { border-bottom: 1px solid var(--border-default); }

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: 20px 4px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font-sans);
  text-align: left;
}

.faq__q span:first-child {
  font-size: var(--text-body-lg);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.01em;
  color: var(--text-primary);
  flex: 1;
}

.faq__plus {
  color: var(--gray-400);
  display: inline-flex;
  transition: transform var(--dur-base) var(--ease-out);
  font-size: 22px;
  line-height: 1;
}

.faq__q[aria-expanded="true"] .faq__plus { transform: rotate(45deg); }

.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-base) var(--ease-out); }
.faq__a > div { overflow: hidden; }
.faq__item[data-open="true"] .faq__a { grid-template-rows: 1fr; }
.faq__a p { margin: 0 4px 20px; font-size: 15px; line-height: 1.6; color: var(--text-secondary); max-width: 560px; }

/* ==========================================================================
   CTA FINAL
   ========================================================================== */
.cta {
  position: relative;
  padding-block: clamp(80px, 12vw, 128px);
  background: var(--navy-700);
  text-align: center;
  overflow: hidden;
}

.cta__dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.11) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 66% 76% at 50% 46%, #000 12%, transparent 82%);
  -webkit-mask-image: radial-gradient(ellipse 66% 76% at 50% 46%, #000 12%, transparent 82%);
}

.cta__glow {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  width: min(1000px, 140vw);
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(251, 139, 247, 0.13), transparent 70%);
  pointer-events: none;
}

.cta__inner { position: relative; max-width: 820px; margin-inline: auto; padding-inline: var(--space-6); }

.cta h2 {
  font-size: clamp(28px, 4.6vw, 48px);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: #fff;
  margin-top: var(--space-6);
  text-wrap: balance;
}

.cta p { font-size: var(--text-body-lg); line-height: 1.6; color: var(--lavender-300); margin: var(--space-5) auto 0; max-width: 560px; text-wrap: pretty; }
.cta__buttons { display: flex; gap: var(--space-3); justify-content: center; margin-top: var(--space-8); flex-wrap: wrap; }
.cta__note { font-size: var(--text-caption); color: rgba(255, 255, 255, 0.5); margin-top: var(--space-4); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--navy-900); color: rgba(255, 255, 255, 0.65); }
.footer .container { padding-block: 72px 0; }

.footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--space-10); }
.footer__brand img { width: 180px; }
.footer__brand .slogan { font-size: var(--text-caption); color: #fff; margin-top: -18px; letter-spacing: -0.01em; text-align: center; padding-left: 52px; }

.footer__col h4 {
  font-size: 12px;
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: var(--space-4);
}

.footer__col ul { display: flex; flex-direction: column; gap: 11px; }
.footer__col a { font-size: 14px; color: rgba(255, 255, 255, 0.75); }
.footer__col a:hover { color: var(--pink-300); }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: clamp(32px, 5vw, 56px);
  padding-block: 22px;
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
  font-size: var(--text-caption);
  color: rgba(255, 255, 255, 0.5);
}

.footer__bottom a { color: rgba(255, 255, 255, 0.5); }
.footer__bottom a:hover { color: var(--pink-300); }
.footer__bottom .mail { color: var(--pink-300); font-weight: var(--weight-semibold); }
.footer__links { margin-left: auto; display: flex; gap: var(--space-5); }
.footer__links button { background: none; border: none; padding: 0; cursor: pointer; font-family: var(--font-sans); font-size: var(--text-caption); color: rgba(255, 255, 255, 0.5); }
.footer__links button:hover { color: var(--pink-300); }

/* ==========================================================================
   MODAL LEGAL
   ========================================================================== */
.modal { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: var(--space-6); }
.modal[data-open="true"] { display: flex; }
.modal__scrim { position: absolute; inset: 0; background: rgba(24, 27, 71, 0.52); backdrop-filter: blur(4px); animation: fadeIn 200ms var(--ease-out); }

.modal__dialog {
  position: relative;
  width: min(720px, 100%);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  background: var(--surface-page);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: popIn 240ms var(--ease-out);
}

@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(.985); } }

.modal__head { padding: 26px 32px 20px; border-bottom: 1px solid var(--border-subtle); display: flex; align-items: flex-start; gap: var(--space-4); }
.modal__head h3 { font-size: 22px; font-weight: var(--weight-semibold); letter-spacing: -0.025em; color: var(--text-primary); }
.modal__head .updated { font-size: 12.5px; color: var(--text-muted); margin-top: 5px; }

.modal__close {
  margin-left: auto;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  border: 1px solid var(--border-default);
  background: var(--surface-page);
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.modal__close:hover { background: var(--gray-50); }

.modal__body { overflow-y: auto; padding: 24px 32px 32px; }
.modal__body > p { font-size: 15.5px; line-height: 1.6; color: var(--text-secondary); text-wrap: pretty; }
.modal__body section { margin-top: 26px; }
.modal__body section .h { display: flex; align-items: center; gap: 10px; margin-bottom: var(--space-2); }

.modal__body section .num {
  width: 22px; height: 22px; border-radius: 7px;
  background: var(--lavender-100); color: var(--violet-600);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: var(--weight-bold); flex: none;
}

.modal__body section h4 { font-size: 16px; font-weight: var(--weight-semibold); letter-spacing: -0.015em; color: var(--text-primary); }
.modal__body section p { font-size: 14.5px; line-height: 1.65; color: var(--text-secondary); padding-left: 32px; text-wrap: pretty; }

.modal__foot {
  padding: 16px 32px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--surface-subtle);
  font-size: var(--text-caption);
  color: var(--text-muted);
}

.modal__foot .btn { margin-left: auto; }

/* ==========================================================================
   LOGIN
   ========================================================================== */
.login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  min-height: 100svh;
}

.login__form-col {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-10) clamp(24px, 4vw, 56px);
  background: var(--surface-inverse);
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  overflow: hidden;
}

.login__blob {
  position: absolute;
  top: -160px;
  right: -160px;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 139, 247, 0.26), transparent 68%);
  pointer-events: none;
}

.login__logo { position: relative; display: inline-block; width: 150px; }

.login__center { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; padding-block: var(--space-10); }
.login__box { width: 100%; max-width: 400px; animation: loginIn 420ms var(--ease-out); }

@keyframes loginIn { from { opacity: 0; transform: translateY(8px); } }

.login__box h1 { font-size: clamp(28px, 4.4vw, 34px); font-weight: var(--weight-semibold); letter-spacing: -0.03em; color: #fff; }
.login__box > p { font-size: 14.5px; color: var(--lavender-300); margin-top: var(--space-2); }

.login__form { margin-top: 30px; display: flex; flex-direction: column; gap: 18px; }

.field label,
.field .label { font-size: var(--text-caption); font-weight: var(--weight-semibold); color: var(--lavender-300); display: block; margin-bottom: 7px; }

.field__row { display: flex; align-items: baseline; margin-bottom: 7px; }
.field__row .label { margin-bottom: 0; }
.field__row a { margin-left: auto; font-size: var(--text-caption); font-weight: var(--weight-medium); color: var(--pink-300); }
.field__row a:hover { color: var(--pink-200); }

.field input[type="email"],
.field input[type="password"],
.field input[type="text"] {
  height: 50px;
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  padding: 0 44px 0 14px;
  font-family: var(--font-sans);
  font-size: 15px;
  outline: none;
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}

.field input::placeholder { color: rgba(255, 255, 255, 0.4); }
.field input:focus { border-color: var(--pink-300); background: rgba(255, 255, 255, 0.09); box-shadow: none; }
.field input[aria-invalid="true"] { border-color: var(--danger); }

.field__pw { position: relative; }

.field__toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  display: inline-flex;
  padding: 4px;
  border-radius: var(--radius-sm);
}

.field__toggle:hover { color: #fff; }

.field__error { display: none; font-size: 12.5px; color: var(--pink-200); margin-top: 6px; }
.field[data-error="true"] .field__error { display: block; }

.login__check { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--lavender-300); cursor: pointer; }
.login__check input { width: 16px; height: 16px; accent-color: var(--pink-300); cursor: pointer; }

.login__divider { display: flex; align-items: center; gap: var(--space-4); margin: 26px 0; }
.login__divider span:first-child, .login__divider span:last-child { flex: 1; height: 1px; background: rgba(255, 255, 255, 0.16); }
.login__divider .t { font-size: 12px; color: rgba(255, 255, 255, 0.55); }

.login__social { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.login__social button {
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: var(--weight-semibold);
  color: #fff;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
}

.login__social button:hover { background: rgba(255, 255, 255, 0.10); }

.login__back { display: inline-flex; align-items: center; gap: var(--space-2); margin-top: 28px; font-size: 14px; font-weight: var(--weight-medium); color: var(--lavender-300); }
.login__back:hover { color: #fff; }

.login__legal { position: relative; font-size: 12.5px; color: rgba(255, 255, 255, 0.45); text-align: center; }

/* Columna derecha */
.login__aside {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding: 56px clamp(24px, 4vw, 56px);
  background: var(--surface-subtle);
}

.login__hero-img { position: relative; border-radius: var(--radius-xl); overflow: hidden; height: 300px; flex: none; }
.login__hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.login__hero-img .scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(24, 27, 71, 0) 40%, rgba(24, 27, 71, 0.82) 100%); }
.login__hero-img .cap { position: absolute; left: 26px; right: 26px; bottom: 22px; }
.login__hero-img .cap .eyebrow { color: var(--pink-300); font-size: 11.5px; letter-spacing: 0.14em; }
.login__hero-img .cap .t { font-size: 23px; font-weight: var(--weight-semibold); letter-spacing: -0.02em; color: #fff; margin-top: 6px; text-wrap: pretty; }

.login__features { display: flex; flex-direction: column; }
.login__features > div { display: flex; gap: var(--space-4); padding-block: var(--space-5); }
.login__features > div + div { border-top: 1px solid var(--border-subtle); }

.login__features .ic {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--lavender-100); color: var(--violet-600);
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}

.login__features .t { font-size: 15.5px; font-weight: var(--weight-semibold); color: var(--text-primary); }
.login__features .d { font-size: 13.5px; line-height: 1.5; color: var(--text-muted); margin-top: 4px; text-wrap: pretty; }

.login__stats { display: flex; gap: 36px; padding-top: 22px; border-top: 1px solid var(--border-subtle); flex-wrap: wrap; }
.login__stats .n { font-size: 26px; font-weight: var(--weight-semibold); color: var(--text-primary); letter-spacing: -0.03em; }
.login__stats .l { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .features__circles > div { width: 260px; height: 260px; padding-inline: 32px; }
  .features__circles .n { font-size: 44px; }
  .ind-panel__media { width: 280px; height: 320px; }
}

@media (max-width: 900px) {
  /* El formulario va primero: es lo que la persona vino a hacer. */
  .login { grid-template-columns: 1fr; min-height: 0; }
  .login__form-col { min-height: 100svh; }
  .login__center { padding-block: var(--space-8); }
  .login__aside { padding-block: var(--space-8); gap: var(--space-6); }
  .login__hero-img { height: 210px; }
  .login__hero-img .scrim { background: linear-gradient(180deg, rgba(24, 27, 71, 0) 20%, rgba(24, 27, 71, 0.88) 100%); }
  .login__hero-img .cap { left: 20px; right: 20px; bottom: 18px; }
  .login__hero-img .cap .t { font-size: 20px; }
  .login__features { display: none; }
  .login__stats { justify-content: center; gap: var(--space-8); }
}

@media (max-width: 880px) {
  .nav__links, .nav__actions .desktop-only { display: none; }
  .nav__burger { display: inline-flex; }

  .features__circles { gap: var(--space-4); }
  .features__circles > div + div { margin-left: 0; }

  .plan-table-wrap { display: none; }
  .plan-cards { display: flex; }

  .showcase__nav { display: none; }
  .showcase__dots { display: flex; }
  .showcase__frame-row { margin-top: var(--space-8); }
}

@media (max-width: 720px) {
  .hero { padding-top: var(--space-6); }
  .hero__stage { height: clamp(230px, 36vh, 320px); }
  /* Las burbujas taparían al personaje en pantallas angostas. */
  .hero__bubbles { display: none; }

  .hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    padding-bottom: 28px;
  }
  .hero__stats > div { padding-inline: var(--space-2); }
  .hero__stats > div + div { border-left: none; }
  .hero__stats .n { font-size: 20px; gap: 5px; }
  .hero__stats .n svg { width: 15px; height: 15px; }
  .hero__stats .l { font-size: 11.5px; line-height: 1.35; }

  .logos__row { justify-content: center; gap: var(--space-6); }
  .logos__row span { font-size: 18px; }

  .ind-panel { border-radius: var(--radius-xl); }
  .ind-panel__media { width: 100%; height: 240px; }

  .industries__tabs { gap: var(--space-2); }
  .ind-tab { height: 40px; padding-inline: 14px; font-size: 13.5px; }

  .pricing__panel { border-radius: var(--radius-xl); }
  .pricing__stats > div { border-left: none; }
  .enterprise { padding: 20px; }
  .enterprise .price { margin-left: 0; font-size: 24px; }
  .enterprise .btn { width: 100%; }

  .footer .container { padding-block: var(--space-10) 0; }
  .footer__links { margin-left: 0; }

  .modal { padding: 0; }
  .modal__dialog { max-height: 100vh; height: 100%; border-radius: 0; width: 100%; }
  .modal__head, .modal__body, .modal__foot { padding-inline: var(--space-5); }
  .modal__body section p { padding-left: 0; }
}

@media (max-width: 420px) {
  .login__social { grid-template-columns: 1fr; }
  .hero__cta .btn { width: 100%; }
  .cta__buttons .btn { width: 100%; }
}

/* --- Motion reducida ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-reveal .rv { opacity: 1; transform: none; transition: none; }
  .hero__globe::before, .bubble, .bubble__check, .bubble__lines, .hero h1 .caret { animation: none; }
  .bubble { display: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
