@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&family=Noto+Sans+JP:wght@300;400;700&family=Roboto:wght@300;400&display=swap');

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --bg-color:         #ffffff;
  --text-primary:     #161d38;
  --text-black:       #000000;
  --accent-color:     #01b3f8;

  --font-primary:     'Montserrat', sans-serif;
  --font-secondary:   'Roboto', sans-serif;
  --font-japanese:    'Noto Sans JP', sans-serif;

  --accent-hover:     #009fd9;
  --accent-subtle:    rgba(1, 179, 248, 0.10);
  --accent-subtle-20: rgba(1, 179, 248, 0.22);
  --primary-subtle:   rgba(22, 29, 56, 0.06);
  --shadow-sm:        0 2px 8px rgba(22, 29, 56, 0.07);
  --shadow-md:        0 8px 28px rgba(22, 29, 56, 0.10);
  --shadow-lg:        0 20px 60px rgba(22, 29, 56, 0.13);
  --shadow-accent:    0 8px 32px rgba(1, 179, 248, 0.28);
  --radius-sm:        6px;
  --radius-md:        12px;
  --radius-lg:        20px;
  --transition:       0.22s ease;
  --transition-slow:  0.4s ease;

  --nav-height:       72px;
  --container-max:    1160px;
  --section-pad:      96px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  background-color: var(--bg-color);
  color: var(--text-black);
  font-family: var(--font-secondary);
  font-weight: 400;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color .35s ease, color .35s ease;
}

/* Japanese overrides */
html[lang="ja"] body        { font-family: var(--font-japanese); }
html[lang="ja"] h1, html[lang="ja"] h2,
html[lang="ja"] h3, html[lang="ja"] h4 { font-family: var(--font-japanese); letter-spacing: 0.02em; }
html[lang="ja"] .btn        { font-family: var(--font-japanese); }
html[lang="ja"] .nav__link  { font-family: var(--font-japanese); }

img { display: block; max-width: 100%; }
ul  { list-style: none; }
a   { color: var(--accent-color); text-decoration: none; transition: color var(--transition); }
a:hover, a:focus-visible { color: var(--accent-hover); }
h1, h2, h3, h4 { font-family: var(--font-primary); color: var(--text-primary); line-height: 1.15; }
p   { font-family: var(--font-secondary); color: var(--text-black); }
:focus-visible { outline: 2px solid var(--accent-color); outline-offset: 3px; border-radius: 3px; }

/* Skip link — WCAG 2.1 AA */
.skip-link {
  position: fixed;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-color);
  color: #fff;
  padding: 12px 28px;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: .9rem;
  border-radius: 0 0 10px 10px;
  z-index: 9999;
  transition: top .2s ease;
  white-space: nowrap;
}
.skip-link:focus { top: 0; outline: none; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 28px;
}
.section { padding-block: var(--section-pad); }

.section__eyebrow {
  display: inline-block;
  font-family: var(--font-secondary);
  font-size: 0.75rem; font-weight: 400;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-color); margin-bottom: 14px;
}
.section__eyebrow--light { color: rgba(1, 179, 248, 0.85); }

.section__title {
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  font-weight: 800; color: var(--text-primary);
  margin-bottom: 18px; letter-spacing: -0.02em;
}
.section__lead {
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  font-weight: 300; color: rgba(0,0,0,0.6);
  max-width: 560px; line-height: 1.75;
}
.section__header { margin-bottom: 64px; }
.section__header--center { text-align: center; }
.section__header--center .section__lead { margin-inline: auto; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-primary); font-weight: 700;
  font-size: 0.9375rem; padding: 14px 30px;
  border-radius: 50px; border: 2px solid transparent;
  cursor: pointer; white-space: nowrap; line-height: 1;
  transition: background-color var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
}
.btn--primary { background-color: var(--accent-color); color: #fff; border-color: var(--accent-color); }
.btn--primary:hover, .btn--primary:focus-visible { background-color: var(--accent-hover); border-color: var(--accent-hover); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-accent); }
.btn--outline { background-color: transparent; color: var(--accent-color); border-color: var(--accent-color); }
.btn--outline:hover, .btn--outline:focus-visible { background-color: var(--accent-color); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-accent); }
.btn--ghost { background-color: transparent; color: var(--text-primary); border-color: rgba(22,29,56,0.2); }
.btn--ghost:hover, .btn--ghost:focus-visible { background-color: var(--primary-subtle); color: var(--text-primary); border-color: var(--text-primary); transform: translateY(-2px); }
.btn--ghost-light { background-color: transparent; color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.3); }
.btn--ghost-light:hover, .btn--ghost-light:focus-visible { background-color: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.6); transform: translateY(-2px); }
.btn--nav { background-color: var(--accent-color); color: #fff; border-color: var(--accent-color); padding: 10px 22px; font-size: 0.875rem; }
.btn--nav:hover, .btn--nav:focus-visible { background-color: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn--lg { padding: 17px 38px; font-size: 1rem; }

/* "Conocer más" link */
.card__more-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-secondary); font-size: 0.875rem;
  color: var(--accent-color); margin-top: 4px;
  transition: gap var(--transition), color var(--transition);
}
.card__more-link:hover { gap: 10px; color: var(--accent-hover); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-up {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--delay, 0s);
}
.fade-up.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 200;
  min-height: var(--nav-height);
  /* Respect iOS safe area so the header content sits BELOW the notch/Dynamic
     Island on iPhone 15 Pro Max and similar, regardless of viewport-fit. */
  padding-top: env(safe-area-inset-top, 0);
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
  background-color: #ffffff;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.site-header.scrolled { border-bottom-color: var(--accent-subtle); box-shadow: var(--shadow-sm); }

.nav {
  display: flex; align-items: center; gap: 28px;
  height: 100%; max-width: var(--container-max);
  margin-inline: auto; padding-inline: 28px;
}
.nav__logo { display: flex !important; align-items: center; flex-shrink: 0; text-decoration: none; margin-right: auto; }
.nav__logo-wordmark {
  display: inline-flex !important;
  align-items: center;
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 1.5rem;
  color: #161d38;                  /* Explicit hex — avoids var() resolution races on iOS */
  -webkit-text-fill-color: #161d38; /* Forces iOS Safari to paint text color */
  letter-spacing: 0.06em;
  line-height: 1.2;
}
.nav__logo-dot { color: #01b3f8; -webkit-text-fill-color: #01b3f8; }

.nav__menu { display: flex; align-items: center; gap: 26px; }
.nav__link { font-family: var(--font-secondary); font-weight: 400; font-size: 0.9rem; color: var(--text-primary); position: relative; padding-block: 4px; }
.nav__link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--accent-color); border-radius: 2px; transition: width var(--transition); }
.nav__link:hover, .nav__link:focus-visible, .nav__link.active { color: var(--accent-color); }
.nav__link:hover::after, .nav__link:focus-visible::after, .nav__link.active::after { width: 100%; }

/* Lang switcher */
.lang-switcher { position: relative; flex-shrink: 0; }
.lang-switcher__btn { display: flex; align-items: center; gap: 6px; background: none; border: 1px solid rgba(22,29,56,0.16); border-radius: 50px; padding: 8px 14px; cursor: pointer; font-family: var(--font-secondary); font-size: 0.8125rem; color: var(--text-primary); transition: border-color var(--transition), background-color var(--transition); white-space: nowrap; }
.lang-switcher__btn:hover, .lang-switcher__btn:focus-visible { border-color: var(--accent-color); background-color: var(--accent-subtle); color: var(--accent-color); }
.lang-switcher__chevron { transition: transform var(--transition); flex-shrink: 0; }
.lang-switcher__btn[aria-expanded="true"] .lang-switcher__chevron { transform: rotate(180deg); }
.lang-switcher__menu { position: absolute; top: calc(100% + 10px); right: 0; background: #fff; border: 1px solid rgba(22,29,56,0.10); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); min-width: 164px; overflow: hidden; opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity 0.2s ease, transform 0.2s ease; z-index: 300; }
.lang-switcher__menu.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.lang-option { display: flex; align-items: center; gap: 10px; padding: 13px 18px; cursor: pointer; font-family: var(--font-secondary); font-size: 0.875rem; color: var(--text-primary); transition: background-color 0.15s; border: none; background: none; width: 100%; text-align: left; }
.lang-option:hover { background-color: var(--accent-subtle); color: var(--accent-color); }
.lang-option--active { color: var(--accent-color); background-color: var(--accent-subtle); }
.lang-option__flag { font-size: 1.1rem; line-height: 1; }

/* Hamburger */
.nav__hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; width: 40px; height: 40px; flex-shrink: 0; }
.hamburger__bar { display: block; width: 22px; height: 2px; background-color: var(--text-primary); border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }
.nav__hamburger[aria-expanded="true"] .hamburger__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger[aria-expanded="true"] .hamburger__bar:nth-child(2) { opacity: 0; }
.nav__hamburger[aria-expanded="true"] .hamburger__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO — SPLIT LAYOUT + CANVAS
   ============================================================ */
.hero {
  position: relative;
  background-color: var(--bg-color);
  padding-block: 96px 80px;
  overflow: hidden;
}

/* Red neuronal canvas — fondo completo del hero */
.neural-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Split layout */
.hero__split {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* Texto izquierda */
.hero__text { display: flex; flex-direction: column; align-items: flex-start; }

.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  background-color: var(--accent-subtle); border: 1px solid var(--accent-subtle-20);
  color: var(--accent-color); font-family: var(--font-secondary);
  font-size: 0.8125rem; letter-spacing: 0.06em;
  padding: 7px 18px; border-radius: 50px; margin-bottom: 24px;
}
.badge__dot { width: 7px; height: 7px; border-radius: 50%; background-color: var(--accent-color); flex-shrink: 0; animation: pulse-dot 2s ease-in-out infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.8); } }

.hero__title { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 800; color: var(--text-primary); letter-spacing: -0.03em; margin-bottom: 18px; line-height: 1.1; }
.text-gradient { background: linear-gradient(135deg, var(--accent-color) 0%, #0077bb 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.hero__mission { font-size: clamp(1rem, 1.7vw, 1.1rem); font-weight: 400; color: var(--text-primary); max-width: 480px; margin-bottom: 8px; line-height: 1.65; }
.hero__subtitle { font-size: clamp(0.9rem, 1.5vw, 1rem); font-weight: 300; color: rgba(0,0,0,0.55); max-width: 480px; margin-bottom: 36px; line-height: 1.8; }

.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }

.hero__trust { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.trust__label { font-family: var(--font-secondary); font-size: 0.8125rem; color: rgba(0,0,0,0.4); white-space: nowrap; }
.trust__pills { display: flex; gap: 8px; flex-wrap: wrap; }
.trust__pill { font-family: var(--font-secondary); font-size: 0.8125rem; color: rgba(22,29,56,0.5); background-color: var(--primary-subtle); border: 1px solid rgba(22,29,56,0.08); padding: 4px 12px; border-radius: 50px; }

/* ===== MOCKUP CSS (columna derecha del hero) ===== */
.hero__visual { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 0; }

.mockup {
  position: relative;
  width: 360px; height: 380px;
  flex-shrink: 0;
}

/* Pill de estado */
.mockup__pill {
  position: absolute; top: 0; right: 0; z-index: 10;
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid rgba(22,29,56,0.10);
  border-radius: 50px; padding: 8px 16px;
  font-family: var(--font-secondary); font-size: 0.8125rem; color: var(--text-primary);
  box-shadow: var(--shadow-md);
  animation: float-pill 4s ease-in-out infinite;
}
.mockup__pill-dot { width: 8px; height: 8px; border-radius: 50%; background-color: #22c55e; flex-shrink: 0; animation: pulse-dot 2s ease-in-out infinite; }
@keyframes float-pill { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ── MOCKUP VARIANTES ── */
.mockup__variant {
  display: none;
  position: absolute;
  inset: 0;
  padding-top: 44px; /* espacio para el pill de estado */
  padding-bottom: 40px; /* espacio para el ai-pill */
  flex-direction: column;
  gap: 10px;
}
.mockup__variant--active { display: flex; animation: variant-in 0.35s ease; }
@keyframes variant-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.mockup__card { background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); overflow: hidden; }
.mockup__card--browser,
.mockup__card--analytics,
.mockup__card--goals,
.mockup__card--terminal { flex: 1; min-height: 0; }

.mockup__card--stat,
.mockup__card--badge-alert,
.mockup__card--calendar,
.mockup__card--badge-green {
  flex-shrink: 0;
  padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
}

/* Placeholder — mantiene compatibilidad con CSS antiguo */
.mockup__card--main { display: none; }

.mockup__card-header {
  background-color: var(--text-primary); padding: 10px 14px;
  display: flex; align-items: center; gap: 10px;
}
.mockup__dots { display: flex; gap: 5px; }
.mockup__dots span { width: 9px; height: 9px; border-radius: 50%; }
.mockup__dots span:nth-child(1) { background: #ff5f57; }
.mockup__dots span:nth-child(2) { background: #febc2e; }
.mockup__dots span:nth-child(3) { background: #28c840; }
.mockup__url-bar { flex: 1; background: rgba(255,255,255,0.08); border-radius: 4px; padding: 4px 10px; font-family: var(--font-secondary); font-size: 0.7rem; color: rgba(255,255,255,0.5); }

.mockup__card-body { padding: 20px 18px; display: flex; flex-direction: column; gap: 14px; }
.mockup__avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-color), #0077bb); flex-shrink: 0; }
.mockup__lines { display: flex; flex-direction: column; gap: 7px; }
.mockup__line { height: 8px; border-radius: 4px; background-color: rgba(22,29,56,0.08); }
.mockup__line--wide  { width: 100%; }
.mockup__line--medium { width: 72%; }
.mockup__line--short { width: 48%; }
.mockup__tag-row { display: flex; gap: 8px; }
.mockup__tag { font-family: var(--font-secondary); font-size: 0.7rem; padding: 4px 10px; border-radius: 50px; background: var(--primary-subtle); color: var(--text-primary); }
.mockup__tag--live { background: rgba(34,197,94,0.12); color: #16a34a; }

/* Card stat (variante Sites) */
.mockup__mini-header { font-family: var(--font-secondary); font-size: 0.7rem; color: rgba(0,0,0,0.4); margin-bottom: 2px; }
.mockup__mini-stat { font-family: var(--font-primary); font-size: 1.3rem; font-weight: 800; color: var(--text-primary); margin-bottom: 10px; }
.mockup__bars { display: flex; align-items: flex-end; gap: 3px; height: 32px; }
.mockup__bars span { flex: 1; background: var(--accent-subtle); border-radius: 2px 2px 0 0; height: var(--h); }
.mockup__bars span:last-child { background: var(--accent-color); }

/* Analytics card */
.mockup__card-header--analytics { background-color: #0c1430; }
.mockup__card-body--analytics { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.mockup__kpi-row { display: flex; gap: 14px; }
.mockup__kpi { display: flex; flex-direction: column; gap: 2px; }
.mockup__kpi-val { font-family: var(--font-primary); font-size: 0.95rem; font-weight: 800; color: var(--text-primary); }
.mockup__kpi-val--red { color: #ef4444; }
.mockup__kpi-label { font-family: var(--font-secondary); font-size: 0.6rem; color: rgba(0,0,0,0.4); }
.mockup__chart-label { font-family: var(--font-secondary); font-size: 0.65rem; color: rgba(0,0,0,0.35); }
.mockup__chart-bars { display: flex; align-items: flex-end; gap: 3px; height: 40px; }
.mockup__chart-bars span { flex: 1; background: var(--accent-subtle); border-radius: 2px 2px 0 0; height: var(--h); }
.mockup__chart-bars span:last-child { background: var(--accent-color); }

/* Goals card */
.mockup__card-body--goals { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.mockup__goals-title { font-family: var(--font-secondary); font-size: 0.65rem; color: rgba(0,0,0,0.35); letter-spacing: 0.04em; }
.mockup__goal-item { display: flex; align-items: center; gap: 8px; }
.mockup__goal-label { font-family: var(--font-secondary); font-size: 0.7rem; color: var(--text-primary); min-width: 80px; flex-shrink: 0; }
.mockup__progress-bar { flex: 1; height: 5px; background: var(--primary-subtle); border-radius: 3px; overflow: hidden; }
.mockup__progress-fill { height: 100%; background: var(--accent-color); border-radius: 3px; width: var(--pct); }
.mockup__goal-pct { font-family: var(--font-secondary); font-size: 0.65rem; font-weight: 700; color: var(--accent-color); min-width: 26px; text-align: right; }

/* Terminal card (Factory) */
.mockup__card-header--terminal { background-color: #1a1a2e; }
.mockup__url-bar--terminal { color: rgba(1,179,248,0.55); font-size: 0.62rem; }
.mockup__card-body--terminal { padding: 12px 14px; display: flex; flex-direction: column; gap: 7px; background: #0d0d1a; }
.mockup__terminal-line { font-family: 'Courier New', monospace; font-size: 0.7rem; color: rgba(255,255,255,0.5); display: flex; align-items: center; gap: 5px; }
.mockup__terminal-line--active { color: rgba(1,179,248,0.9); }
.mockup__terminal-prompt { color: var(--accent-color); font-weight: bold; flex-shrink: 0; }
.mockup__cursor { animation: cursor-blink 1s step-end infinite; }
@keyframes cursor-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.mockup__deploy-progress { margin-top: 4px; display: flex; flex-direction: column; gap: 4px; }
.mockup__deploy-label { font-family: var(--font-secondary); font-size: 0.62rem; color: rgba(255,255,255,0.35); }
.mockup__deploy-bar { height: 3px; background: rgba(255,255,255,0.1); border-radius: 2px; overflow: hidden; }
.mockup__deploy-fill { height: 100%; background: var(--accent-color); border-radius: 2px; animation: deploy-progress 3s ease-in-out infinite; }
@keyframes deploy-progress { 0% { width: 10%; } 75% { width: 88%; } 100% { width: 88%; } }

/* Badge / Alert / Calendar cards */
.mockup__alert-icon { font-size: 1.1rem; flex-shrink: 0; }
.mockup__cal-icon   { font-size: 1.1rem; flex-shrink: 0; }
.mockup__alert-title { font-family: var(--font-secondary); font-size: 0.8rem; font-weight: 400; color: var(--text-primary); }
.mockup__alert-sub   { font-family: var(--font-secondary); font-size: 0.68rem; color: rgba(0,0,0,0.4); }
.mockup__card--badge-alert { background: linear-gradient(135deg, rgba(1,179,248,0.06), rgba(1,179,248,0.02)); border: 1px solid rgba(1,179,248,0.14); box-shadow: none; }
.mockup__card--badge-green { background: linear-gradient(135deg, rgba(34,197,94,0.06), rgba(34,197,94,0.02)); border: 1px solid rgba(34,197,94,0.14); box-shadow: none; }
.mockup__card--calendar    { background: rgba(22,29,56,0.03); border: 1px solid rgba(22,29,56,0.08); box-shadow: none; }

/* AI pill (parte inferior del mockup) */
.mockup__ai-pill {
  position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 6px; z-index: 10;
  background: linear-gradient(135deg, var(--text-primary), #0c1430);
  color: rgba(255,255,255,0.85); font-family: var(--font-secondary); font-size: 0.7rem;
  padding: 7px 14px; border-radius: 50px; box-shadow: var(--shadow-md);
  white-space: nowrap; animation: float-pill 5s ease-in-out infinite;
}
.mockup__ai-pill svg { color: var(--accent-color); flex-shrink: 0; }
.mockup__ai-label { line-height: 1; }

/* Mockup nav (debajo del mockup) */
.mockup-nav {
  display: flex; gap: 8px; justify-content: center;
  margin-top: 16px; flex-wrap: wrap;
}
.mockup-nav__btn {
  background: none; border: 1px solid rgba(22,29,56,0.12);
  border-radius: 50px; padding: 6px 18px;
  font-family: var(--font-secondary); font-size: 0.8125rem;
  color: rgba(22,29,56,0.45); cursor: pointer;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}
.mockup-nav__btn:hover { border-color: var(--accent-color); color: var(--accent-color); }
.mockup-nav__btn.active { background: var(--accent-color); border-color: var(--accent-color); color: #fff; }

/* Scroll hint */
.hero__scroll-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 1; }
.scroll-mouse { width: 24px; height: 38px; border: 2px solid rgba(22,29,56,0.2); border-radius: 12px; display: flex; justify-content: center; padding-top: 6px; }
.scroll-wheel { width: 4px; height: 8px; background-color: var(--accent-color); border-radius: 2px; animation: scroll-wheel 2s ease infinite; }
@keyframes scroll-wheel { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(12px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }

/* ============================================================
   STATS
   ============================================================ */
.stats { background-color: #ffffff; border-top: 1px solid var(--primary-subtle); border-bottom: 1px solid var(--primary-subtle); padding-block: 52px; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 16px 24px; }
.stat + .stat { border-left: 1px solid rgba(22,29,56,.07); }
.stat__value { display: flex; align-items: baseline; gap: 2px; }
.stat__number { font-family: var(--font-primary); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--text-primary); line-height: 1; }
.stat__suffix { font-family: var(--font-primary); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; color: var(--accent-color); line-height: 1; }
.stat__label { font-family: var(--font-secondary); font-size: 0.875rem; color: rgba(0,0,0,0.45); }

/* ============================================================
   VIDEO SHOWCASE — Cinematic full-bleed
   ============================================================ */
.video-showcase {
  position: relative;
  background: linear-gradient(135deg, #0a0e1a 0%, #0d1225 50%, #080c18 100%);
  padding: 72px 0 80px;
  overflow: hidden;
}
.video-showcase__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 80%, rgba(1,179,248,0.08) 0%, transparent 60%),
              radial-gradient(ellipse 50% 40% at 80% 30%, rgba(124,58,237,0.05) 0%, transparent 50%);
  pointer-events: none;
}
.video-showcase__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}
.video-showcase__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.video-showcase__title {
  font-family: var(--font-primary);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.video-showcase__subtitle {
  font-family: var(--font-secondary);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  line-height: 1.75;
  max-width: 600px;
}
.video-showcase__sound-btn {
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
}
.video-showcase__sound-btn.is-unmuted svg { display: none; }
.video-showcase__sound-btn.is-unmuted::before {
  content: '🔊';
  font-size: 14px;
}

/* Player — FULL WIDTH, prominent */
.video-showcase__player {
  position: relative;
  width: 100%;
  max-width: 1120px;
  border-radius: 18px;
  overflow: hidden;
  border: 1.5px solid rgba(1,179,248,.2);
  box-shadow:
    0 30px 100px rgba(0,0,0,.6),
    0 0 0 1px rgba(1,179,248,.1),
    0 0 80px rgba(1,179,248,.08);
  aspect-ratio: 16 / 9;
  background: #0d1117;
  cursor: pointer;
}
.video-showcase__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-showcase__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.4);
  backdrop-filter: blur(6px);
  border: none;
  cursor: pointer;
  color: #fff;
  transition: background .3s ease;
}
.video-showcase__play:hover { background: rgba(0,0,0,.25); }
.video-showcase__play svg {
  filter: drop-shadow(0 4px 20px rgba(1,179,248,.5));
  transition: transform .25s ease;
}
.video-showcase__play:hover svg { transform: scale(1.12); }
.video-showcase__player.is-playing .video-showcase__play {
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}

@media (max-width: 768px) {
  .video-showcase { padding: 52px 0 60px; }
  .video-showcase__inner { gap: 28px; }
  .video-showcase__player { border-radius: 12px; }
}

/* ============================================================
   SOLUCIONES — "El problema que resolvemos"
   ============================================================ */
.soluciones { background-color: #ffffff; }
.soluciones__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.solucion-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(22,29,56,0.07);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}
.solucion-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.solucion-card__icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background-color: var(--accent-subtle);
  color: var(--accent-color);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.solucion-card__title { font-family: var(--font-primary); font-size: 1.05rem; font-weight: 700; color: var(--text-primary); }
.solucion-card__desc  { font-family: var(--font-secondary); font-size: 0.9375rem; color: rgba(0,0,0,0.6); line-height: 1.75; }

/* ============================================================
   HISTORIA — dos columnas: narrativa + tarjeta etimología
   ============================================================ */
.historia { background-color: #f7f9fc; }
.historia__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }

/* Founder blockquote */
.historia__founder {
  border-left: 3px solid var(--accent-color);
  padding-left: 20px;
  margin: 0 0 24px;
}
.historia__founder p {
  font-family: var(--font-primary);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.65;
  margin-bottom: 10px;
}
.historia__founder cite {
  font-family: var(--font-secondary);
  font-size: .8125rem;
  font-style: normal;
  color: var(--accent-color);
  letter-spacing: .05em;
}

.historia__body { font-size: .9375rem; line-height: 1.8; color: var(--text-black); margin-bottom: 28px; }

.historia__values { display: flex; flex-direction: column; gap: 12px; }
.value-item { display: flex; align-items: center; gap: 12px; font-family: var(--font-secondary); font-size: .9375rem; color: var(--text-black); }
.value-item__icon { width: 28px; height: 28px; border-radius: 50%; background-color: var(--accent-subtle); color: var(--accent-color); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* Etymology card — single dark card, columna derecha */
.etymology-card {
  position: relative;
  background: linear-gradient(145deg, var(--text-primary) 0%, #0b1228 100%);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.etymology-card__glow {
  position: absolute; top: -80px; right: -80px;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(1,179,248,.22) 0%, transparent 70%);
  pointer-events: none;
}

/* Root block */
.etymology-root { display: flex; flex-direction: column; gap: 6px; position: relative; z-index: 1; }
.etymology-root__badge {
  display: inline-block;
  font-family: var(--font-secondary);
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-color);
  background: rgba(1,179,248,.1);
  border: 1px solid rgba(1,179,248,.2);
  border-radius: 50px;
  padding: 4px 12px;
  align-self: flex-start;
  margin-bottom: 4px;
}
.etymology-root__word {
  font-family: var(--font-primary);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: #fff;
  line-height: 1;
}
.etymology-root__meaning {
  font-family: var(--font-secondary);
  font-size: .875rem;
  font-style: italic;
  color: rgba(255,255,255,.6);
}
.etymology-root__desc {
  font-family: var(--font-secondary);
  font-size: .8125rem;
  line-height: 1.65;
  color: rgba(255,255,255,.4);
}

/* Divider entre raíces */
.etymology-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 24px 0;
  position: relative; z-index: 1;
}
.etymology-divider__line { flex: 1; height: 1px; background: rgba(1,179,248,.2); }
.etymology-divider__label {
  font-family: var(--font-primary); font-weight: 800;
  font-size: .85rem; color: var(--accent-color);
  width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid rgba(1,179,248,.3);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* Result strip at the bottom */
.etymology-result {
  display: flex; flex-direction: column; gap: 4px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(1,179,248,.15);
  position: relative; z-index: 1;
}
.etymology-result__label {
  font-family: var(--font-secondary);
  font-size: .75rem; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.35);
}
.etymology-result__value {
  font-family: var(--font-primary);
  font-size: 1rem; font-weight: 700;
  color: #fff;
}

/* Dark mode */
[data-theme="dark"] .historia { background-color: var(--bg-color); }
[data-theme="dark"] .historia__founder p  { color: var(--text-primary); }
[data-theme="dark"] .historia__body       { color: var(--text-black); }
[data-theme="dark"] .value-item           { color: var(--text-black); }

/* Responsive */
@media (max-width: 768px) {
  .historia__inner { grid-template-columns: 1fr; gap: 40px; }
  .historia__visual { order: -1; }
  .etymology-card { padding: 32px 28px; }
}

/* ============================================================
   IMPACT BANNER — fondo oscuro
   ============================================================ */
.impact-banner { background-color: var(--text-primary); padding-block: 56px; }
.impact-banner__inner {
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: wrap;
}
.impact-banner__stat { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 16px 48px; gap: 8px; }
.impact-banner__number { font-family: var(--font-primary); font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; color: #ffffff; line-height: 1; letter-spacing: -0.02em; }
.impact-banner__label { font-family: var(--font-secondary); font-size: 0.875rem; font-weight: 300; color: rgba(255,255,255,0.5); letter-spacing: 0.04em; }
.impact-banner__divider { width: 1px; height: 64px; background: rgba(255,255,255,0.12); flex-shrink: 0; }

/* ============================================================
   PRODUCTOS — fondo blanco
   ============================================================ */
.productos { background-color: #ffffff; }
.productos__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

.product-card { position: relative; background-color: #ffffff; border-radius: var(--radius-lg); border: 1px solid rgba(22,29,56,0.07); padding: 44px 40px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow-md); transition: transform var(--transition-slow), box-shadow var(--transition-slow); overflow: hidden; }
.product-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent-color), #0077bb); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.product-card__tag { display: inline-flex; align-items: center; align-self: flex-start; font-family: var(--font-secondary); font-size: 0.72rem; font-weight: 400; letter-spacing: 0.09em; text-transform: uppercase; background-color: var(--accent-subtle); color: var(--accent-color); padding: 5px 12px; border-radius: 50px; border: 1px solid var(--accent-subtle-20); }
.product-card__tag--soon { background-color: rgba(22,29,56,0.05); color: rgba(22,29,56,0.45); border-color: rgba(22,29,56,0.08); }
.product-card__icon { width: 56px; height: 56px; border-radius: var(--radius-md); background-color: var(--accent-subtle); color: var(--accent-color); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.product-card__name { font-family: var(--font-primary); font-size: 1.4rem; font-weight: 800; color: var(--text-primary); letter-spacing: -0.02em; }
.product-card__tagline { font-family: var(--font-secondary); font-size: 0.9375rem; color: var(--accent-color); margin-top: -8px; }
.product-card__description { font-family: var(--font-secondary); font-size: 0.9375rem; color: rgba(0,0,0,0.6); line-height: 1.75; }
.product-card__features { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-card__features li { display: flex; align-items: center; gap: 10px; font-family: var(--font-secondary); font-size: 0.9rem; color: var(--text-black); }
.product-card__features li svg { color: var(--accent-color); flex-shrink: 0; }

/* ============================================================
   VALORES — fondo claro
   ============================================================ */
.valores { background-color: #f7f9fc; }
.valores__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.valor-card { background-color: #ffffff; border-radius: var(--radius-lg); padding: 40px 32px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow-sm); border: 1px solid rgba(22,29,56,0.06); transition: transform var(--transition-slow), box-shadow var(--transition-slow); }
.valor-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.valor-card__icon { width: 56px; height: 56px; border-radius: var(--radius-md); background-color: var(--accent-subtle); color: var(--accent-color); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.valor-card__title { font-family: var(--font-primary); font-size: 1.125rem; font-weight: 700; color: var(--text-primary); letter-spacing: -0.01em; }
.valor-card__desc { font-family: var(--font-secondary); font-size: 0.9375rem; color: rgba(0,0,0,0.6); line-height: 1.75; }

/* ============================================================
   TECNOLOGÍA — fondo blanco
   ============================================================ */
.tecnologia { background-color: #ffffff; }
.tech__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tech-item { background-color: #fff; border: 1px solid rgba(22,29,56,0.08); border-radius: var(--radius-md); padding: 32px 24px; display: flex; flex-direction: column; gap: 12px; transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition); }
.tech-item:hover { border-color: var(--accent-subtle-20); box-shadow: 0 8px 32px rgba(1,179,248,0.10); transform: translateY(-3px); }
.tech-item__number { font-family: var(--font-primary); font-size: 0.75rem; font-weight: 800; color: var(--accent-color); letter-spacing: 0.08em; opacity: 0.55; }
.tech-item__icon { width: 52px; height: 52px; border-radius: var(--radius-sm); background-color: var(--accent-subtle); color: var(--accent-color); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tech-item__title { font-family: var(--font-primary); font-size: 1rem; font-weight: 700; color: var(--text-primary); }
.tech-item__desc { font-family: var(--font-secondary); font-size: 0.875rem; color: rgba(0,0,0,0.55); line-height: 1.75; }
.tech-item__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tech-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-family: var(--font-secondary);
  font-size: .72rem;
  font-weight: 400;
  background: rgba(1,179,248,.08);
  color: var(--accent-color);
  border: 1px solid rgba(1,179,248,.2);
  border-radius: 20px;
  letter-spacing: .02em;
}
.tech__stack-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(22,29,56,.07);
  flex-wrap: wrap;
}
.tech__stack-label {
  font-family: var(--font-secondary);
  font-size: .78rem;
  font-weight: 400;
  color: #94a3b8;
  white-space: nowrap;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.tech__stack-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.tech__pill {
  padding: 6px 14px;
  font-family: var(--font-primary);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--text-primary);
  background: rgba(22,29,56,.04);
  border: 1.5px solid rgba(22,29,56,.09);
  border-radius: 8px;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.tech__pill:hover {
  background: rgba(1,179,248,.08);
  border-color: rgba(1,179,248,.3);
  color: var(--accent-color);
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section { position: relative; background: linear-gradient(135deg, var(--text-primary) 0%, #0b1126 100%); padding-block: 104px; overflow: hidden; text-align: center; }
.cta-section__glow { position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at 50% 110%, rgba(1,179,248,0.22) 0%, transparent 70%); pointer-events: none; }
.cta-section__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.cta-section__title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; color: #fff; letter-spacing: -0.03em; margin-bottom: 16px; }
.cta-section__subtitle { font-family: var(--font-secondary); font-size: clamp(1rem, 1.8vw, 1.125rem); font-weight: 300; color: rgba(255,255,255,0.6); max-width: 500px; margin-bottom: 48px; line-height: 1.8; }
.cta-section__actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background-color: #0c1020; padding-top: 72px; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px 32px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.footer__brand { display: flex; flex-direction: column; gap: 12px; }
.footer__wordmark { font-family: var(--font-primary); font-weight: 800; font-size: 1.5rem; color: #fff; letter-spacing: 0.06em; }
.footer__dot { color: var(--accent-color); }
.footer__tagline { font-family: var(--font-secondary); font-size: 0.875rem; color: rgba(255,255,255,0.5); }
.footer__desc { font-family: var(--font-secondary); font-size: 0.875rem; font-weight: 300; color: rgba(255,255,255,0.35); line-height: 1.7; max-width: 280px; }
.footer__col-title { font-family: var(--font-secondary); font-size: 0.8125rem; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 20px; }
.footer__links { display: flex; flex-direction: column; gap: 12px; }
.footer__link { font-family: var(--font-secondary); font-size: 0.9rem; color: rgba(255,255,255,0.55); transition: color var(--transition); }
.footer__link:hover, .footer__link:focus-visible { color: var(--accent-color); }
.footer__soon { font-size: .75rem; color: rgba(255,255,255,.25); font-weight: 400; }
.footer__bottom { padding-block: 24px; }
.footer__bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.footer__copy, .footer__made { font-family: var(--font-secondary); font-size: 0.8125rem; font-weight: 300; color: rgba(255,255,255,0.28); }

/* ============================================================
   RESPONSIVE — ≤ 1024px
   ============================================================ */
@media (max-width: 1024px) {
  :root { --section-pad: 80px; }
  .hero__split { grid-template-columns: 1fr 1fr; gap: 40px; }
  .tech__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__desc { max-width: 100%; }
  .mockup { width: 300px; height: 320px; }
}

/* ============================================================
   RESPONSIVE — ≤ 768px
   ============================================================ */
@media (max-width: 768px) {
  :root { --nav-height: 64px; --section-pad: 64px; }

  .btn--nav { display: none; }
  .nav__hamburger { display: flex; }
  .nav { gap: 16px; }
  .nav__menu { position: absolute; top: var(--nav-height); left: 0; right: 0; background-color: #ffffff; flex-direction: column; align-items: flex-start; gap: 0; max-height: 0; overflow: hidden; border-bottom: 1px solid var(--accent-subtle); transition: max-height 0.35s ease, padding 0.35s ease; z-index: 150; }
  .nav__menu.nav-open { max-height: 360px; padding-block: 12px; }
  .nav__menu li { width: 100%; }
  .nav__link { display: block; padding: 12px 28px; }
  .nav__link::after { display: none; }
  .lang-switcher__menu { right: auto; left: 0; }

  /* Hero stacks */
  .hero { padding-block: 72px 56px; }
  .hero__split { grid-template-columns: 1fr; gap: 48px; }
  .hero__text { align-items: center; text-align: center; }
  .hero__subtitle, .hero__trust, .hero__mission { max-width: 100%; }
  .hero__trust { justify-content: center; }
  .trust__pills { justify-content: center; flex-wrap: wrap; }
  .hero__actions { justify-content: center; }
  .hero__visual { display: none; } /* mockup oculto en móvil */
  .hero__scroll-hint { display: none; }
  .neural-canvas { pointer-events: none; }
  /* Testimonials — card narrower on mobile */
  .testimonial-card { width: 280px; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-left: 1px solid rgba(22,29,56,.07); }
  .stat:nth-child(3) { border-left: none; border-top: 1px solid rgba(22,29,56,.07); }
  .stat:nth-child(4) { border-top: 1px solid rgba(22,29,56,.07); }

  .historia__inner { grid-template-columns: 1fr; gap: 48px; }
  .historia__visual { order: -1; }
  .visual-card { min-height: 200px; padding: 36px 28px; }

  .impact-banner__inner { flex-direction: column; }
  .impact-banner__divider { width: 64px; height: 1px; }
  .impact-banner__stat { padding: 16px 24px; }

  .soluciones__grid { grid-template-columns: 1fr; }
  .productos__grid { grid-template-columns: 1fr; }
  .valores__grid { grid-template-columns: 1fr; }
  .tech__grid { grid-template-columns: 1fr 1fr; gap: 16px; }

  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__brand { grid-column: auto; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }
}

/* ============================================================
   RESPONSIVE — ≤ 480px
   ============================================================ */
@media (max-width: 480px) {
  :root { --section-pad: 52px; }
  .hero { padding-block: 60px 48px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
  .tech__grid { grid-template-columns: 1fr; }
  .tech__stack-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .product-card { padding: 32px 24px; }
  .cta-section { padding-block: 72px; }
  .cta-section__actions { flex-direction: column; align-items: stretch; }
  .cta-section__actions .btn { justify-content: center; }
  /* Smaller testimonial cards on very small screens */
  .testimonial-card { width: 260px; padding: 22px 20px 18px; }
}

/* ============================================================
   FEATURE 1 — SCROLL PROGRESS BAR
   ============================================================ */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent-color);
  z-index: 9999;
  transition: width .1s linear;
}

/* ============================================================
   FEATURE 2 — CUSTOM CURSOR
   ============================================================ */
@media (pointer: fine) {
  body { cursor: none; }
  a, button, [role="button"] { cursor: none; }
}

.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform .08s ease, width .18s ease, height .18s ease, opacity .2s ease;
  z-index: 9998;
  opacity: 0;
  /* Doble borde: blanco exterior + cian interior — visible sobre cualquier fondo */
  box-shadow:
    0 0 0 2px var(--accent-color),
    0 0 0 3.5px rgba(255,255,255,.7);
}
.cursor-ring.cursor-ring--active { opacity: 1; }
.cursor-ring.cursor-ring--hover {
  width: 50px; height: 50px;
  background: rgba(1,179,248,.1);
  box-shadow:
    0 0 0 2px var(--accent-color),
    0 0 0 3.5px rgba(255,255,255,.6);
}
.cursor-ring.cursor-ring--click {
  width: 22px; height: 22px;
  background: rgba(1,179,248,.25);
}

/* ============================================================
   FEATURE 3 — DARK MODE
   ============================================================ */
[data-theme="dark"] {
  --bg-color:          #0d1117;
  --text-primary:      #e2e8f0;
  --text-black:        #b0bec5;
  --accent-color:      #01b3f8;
  --accent-hover:      #0099d9;
  --primary-subtle:    rgba(255,255,255,.05);
  --accent-subtle:     rgba(1,179,248,.1);
  --accent-subtle-20:  rgba(1,179,248,.2);
  --shadow-sm:         0 2px 8px rgba(0,0,0,.3);
  --shadow-md:         0 8px 28px rgba(0,0,0,.4);
  --shadow-lg:         0 20px 60px rgba(0,0,0,.5);
  --surface:           #161d2e;
  --surface-2:         #1e2740;
  --border:            rgba(255,255,255,.08);
}

/* Base */
[data-theme="dark"] body              { background: var(--bg-color); color: var(--text-black); }
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4                { color: var(--text-primary); }
[data-theme="dark"] .section__title   { color: var(--text-primary); }
[data-theme="dark"] .section__lead    { color: var(--text-black); }

/* Navigation */
[data-theme="dark"] .site-header              { background-color: rgba(13,17,23,.95); border-bottom-color: var(--border); }
[data-theme="dark"] .site-header.scrolled     { background-color: rgba(13,17,23,.98); box-shadow: 0 2px 12px rgba(0,0,0,.5); }
[data-theme="dark"] .nav__link                { color: var(--text-black); }
[data-theme="dark"] .nav__link:hover,
[data-theme="dark"] .nav__link.active         { color: var(--accent-color); }
[data-theme="dark"] .nav__menu                { background-color: #0d1117; border-bottom-color: var(--border); }

/* Logo wordmark: ajustar color en dark mode. -webkit-text-fill-color override
   is needed because it has higher priority than `color` on iOS Safari. */
[data-theme="dark"] .nav__logo-wordmark       { color: #e2e8f0; -webkit-text-fill-color: #e2e8f0; }
[data-theme="dark"] .lang-switcher__btn       { border-color: var(--border); color: var(--text-primary); background: none; }
[data-theme="dark"] .lang-switcher__btn:hover { border-color: var(--accent-color); background: rgba(1,179,248,.1); }
[data-theme="dark"] .lang-switcher__menu      { background: var(--surface); border-color: var(--border); box-shadow: 0 8px 32px rgba(0,0,0,.5); }
[data-theme="dark"] .lang-option              { color: var(--text-primary); }
[data-theme="dark"] .lang-option:hover        { background-color: var(--surface-2); color: var(--accent-color); }
[data-theme="dark"] .lang-option--active      { background-color: var(--surface-2); color: var(--accent-color); }
[data-theme="dark"] .btn--ghost               { color: var(--text-primary); border-color: var(--border); }
[data-theme="dark"] .btn--ghost:hover         { background: var(--surface); }
[data-theme="dark"] .btn--outline             { border-color: var(--border); color: var(--text-primary); }
[data-theme="dark"] .btn--outline:hover       { background: var(--accent-color); border-color: var(--accent-color); color: #fff; }

/* Hero */
[data-theme="dark"] .hero__subtitle        { color: var(--text-black); }
[data-theme="dark"] .trust__label          { color: rgba(255,255,255,.35); }
[data-theme="dark"] .trust__pill           { background-color: var(--surface); border-color: var(--border); color: var(--text-black); }

/* Stats */
[data-theme="dark"] .stats                 { background-color: var(--bg-color); border-color: var(--border); }
[data-theme="dark"] .stat__label           { color: var(--text-black); }
[data-theme="dark"] .stat + .stat          { border-left-color: var(--border); }
[data-theme="dark"] .stat:nth-child(3),
[data-theme="dark"] .stat:nth-child(4)     { border-top-color: var(--border); }

/* Video showcase — ya es oscuro por defecto, solo refinar en dark */
[data-theme="dark"] .video-showcase        { background: linear-gradient(135deg, #060912 0%, #0a0f1e 50%, #060912 100%); }
[data-theme="dark"] .video-showcase__player { border-color: rgba(1,179,248,.3); box-shadow: 0 24px 80px rgba(0,0,0,.6), 0 0 60px rgba(1,179,248,.1); }

/* Soluciones */
[data-theme="dark"] .soluciones            { background-color: var(--bg-color); }
[data-theme="dark"] .solucion-card         { background: var(--surface); border-color: var(--border); }
[data-theme="dark"] .solucion-card__desc   { color: var(--text-black); }

/* Mockup */
[data-theme="dark"] .mockup__card                      { background: var(--surface); }
[data-theme="dark"] .mockup__card--calendar            { background: var(--surface-2); border-color: var(--border); }
[data-theme="dark"] .mockup__line                      { background-color: var(--border); }
[data-theme="dark"] .mockup__mini-header,
[data-theme="dark"] .mockup__kpi-label,
[data-theme="dark"] .mockup__chart-label,
[data-theme="dark"] .mockup__goals-title,
[data-theme="dark"] .mockup__alert-sub                 { color: rgba(255,255,255,.3); }
[data-theme="dark"] .mockup-nav__btn                   { border-color: var(--border); color: var(--text-black); }

/* Historia */
[data-theme="dark"] .historia             { background-color: var(--bg-color); }
[data-theme="dark"] .historia__body       { color: var(--text-black); }

/* Productos */
[data-theme="dark"] .productos                         { background-color: var(--bg-color); }
[data-theme="dark"] .product-card                      { background: var(--surface); border-color: var(--border); }
[data-theme="dark"] .product-card:hover                { border-color: var(--accent-color); box-shadow: 0 8px 32px rgba(1,179,248,.15); }
[data-theme="dark"] .product-card__description         { color: var(--text-black); }
[data-theme="dark"] .product-card__tag--soon           { background-color: var(--surface-2); color: var(--text-black); border-color: var(--border); }

/* Valores */
[data-theme="dark"] .valores              { background-color: var(--surface); }
[data-theme="dark"] .valor-card           { background-color: var(--surface-2); border-color: var(--border); }
[data-theme="dark"] .valor-card__desc     { color: var(--text-black); }

/* Tecnología */
[data-theme="dark"] .tecnologia           { background-color: var(--bg-color); }
[data-theme="dark"] .tech-item            { background-color: var(--surface); border-color: var(--border); }
[data-theme="dark"] .tech-item:hover      { border-color: var(--accent-subtle-20); }
[data-theme="dark"] .tech-item__desc      { color: var(--text-black); }

/* Comparison */
[data-theme="dark"] .comparison               { background: var(--bg-color); }
[data-theme="dark"] .comparison__col--old     { background: var(--surface); border-color: var(--border); }
[data-theme="dark"] .comparison__col--old .comparison__col-header { background: rgba(255,255,255,.03); border-bottom-color: var(--border); }
[data-theme="dark"] .comparison__col--new     { background: rgba(1,179,248,.06); border-color: rgba(1,179,248,.3); box-shadow: 0 0 0 1.5px rgba(1,179,248,.3); }
[data-theme="dark"] .comparison__item         { color: var(--text-black); border-bottom-color: var(--border); }

/* Testimonials */
[data-theme="dark"] .testimonials             { background: linear-gradient(160deg, #0d1a2e 0%, #0f1628 50%, #130f28 100%); }
[data-theme="dark"] .testimonial-card         { background: rgba(255,255,255,.04); border-color: var(--border); backdrop-filter: none; }
[data-theme="dark"] .testimonial-card:hover   { box-shadow: 0 8px 32px rgba(1,179,248,.12); }
[data-theme="dark"] .testimonial-card__text   { color: var(--text-black); }
[data-theme="dark"] .testimonial-card__name   { color: #e2e8f0; }
[data-theme="dark"] .testimonial-card__role   { color: rgba(255,255,255,.35); }
/* Tech tags dark */
[data-theme="dark"] .tech-tag                 { background: rgba(1,179,248,.1); border-color: rgba(1,179,248,.25); }
[data-theme="dark"] .tech__stack-row          { border-top-color: var(--border); }
[data-theme="dark"] .tech__pill               { background: var(--surface); border-color: var(--border); color: #e2e8f0; }
[data-theme="dark"] .tech__pill:hover         { background: rgba(1,179,248,.1); border-color: rgba(1,179,248,.3); color: var(--accent-color); }
[data-theme="dark"] .comparison__col-tag      { background: rgba(255,255,255,.06); color: rgba(255,255,255,.4); }

/* Impact banner */
[data-theme="dark"] .impact-banner            { background-color: #0c1428; }

/* CTA section — gradiente usa var(--text-primary) que en dark es claro */
[data-theme="dark"] .cta-section              { background: linear-gradient(135deg, #0f1628 0%, #0b1126 100%); }

/* Hero — mockup pill, card-header, ai-pill usan var(--text-primary) que en dark es claro */
[data-theme="dark"] .mockup__pill             { background: var(--surface); border-color: var(--border); color: var(--text-primary); }
[data-theme="dark"] .mockup__card-header      { background-color: #1a2035; }
[data-theme="dark"] .mockup__ai-pill          { background: linear-gradient(135deg, #1e2a45, #0c1430); }
[data-theme="dark"] .mockup__tag              { background: var(--surface-2); color: var(--text-primary); }
[data-theme="dark"] .mockup__kpi-val          { color: var(--text-primary); }
[data-theme="dark"] .mockup__goal-label       { color: var(--text-primary); }
[data-theme="dark"] .mockup__alert-title      { color: var(--text-primary); }
[data-theme="dark"] .mockup__card--calendar   { background: var(--surface); border-color: var(--border); }
[data-theme="dark"] .mockup__card--badge-alert{ background: rgba(1,179,248,.08); border-color: rgba(1,179,248,.2); }
[data-theme="dark"] .mockup__card--badge-green{ background: rgba(34,197,94,.08); border-color: rgba(34,197,94,.2); }

/* Scroll hint */
[data-theme="dark"] .scroll-mouse             { border-color: rgba(255,255,255,.2); }

/* Agent terminal */
[data-theme="dark"] .agent-feed               { background: var(--bg-color); }
[data-theme="dark"] .agent-terminal           { background: #0a0e14; border-color: rgba(1,179,248,.25); }

/* Waitlist */
[data-theme="dark"] .waitlist                 { background: var(--surface); }
[data-theme="dark"] .waitlist__form-wrap      { background: var(--surface-2); border-color: var(--border); }
[data-theme="dark"] .waitlist__input          { background: var(--bg-color); color: var(--text-primary); border-color: var(--border); }
[data-theme="dark"] .waitlist__label          { color: var(--text-primary); }
[data-theme="dark"] .waitlist__privacy        { color: rgba(255,255,255,.3); }
[data-theme="dark"] .waitlist__social-text    { color: rgba(255,255,255,.35); }
[data-theme="dark"] .waitlist__avatar         { border-color: var(--surface-2); }

/* Dark toggle button */
.dark-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: 1.5px solid rgba(22,29,56,.15);
  border-radius: 50%;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
  flex-shrink: 0;
}
.dark-toggle:hover { background: rgba(1,179,248,.1); border-color: var(--accent-color); color: var(--accent-color); }

.dark-toggle__icon { display: none; }
.dark-toggle__sun  { display: block; }
[data-theme="dark"] .dark-toggle__sun  { display: none; }
[data-theme="dark"] .dark-toggle__moon { display: block; }
[data-theme="dark"] .dark-toggle { border-color: rgba(255,255,255,.15); color: var(--text-primary); }

/* ============================================================
   FEATURE 4 — BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent-color);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(1,179,248,.4);
  transform: translateY(80px);
  opacity: 0;
  transition: transform .3s ease, opacity .3s ease, background .2s;
  z-index: 900;
}
.back-to-top.back-to-top--visible { transform: translateY(0); opacity: 1; }
.back-to-top:hover { background: #0099d4; }

/* ============================================================
   FEATURE 5 — TYPEWRITER CARET
   ============================================================ */
.typewriter-caret {
  display: inline-block;
  width: 3px;
  height: .9em;
  background: var(--accent-color);
  margin-left: 4px;
  vertical-align: middle;
  animation: blink-caret .7s step-end infinite;
}
@keyframes blink-caret {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ============================================================
   FEATURE 6 — COMPARISON TABLE
   ============================================================ */
.comparison { background: #f8fafc; }

.comparison__eyebrow-wrap { text-align: center; margin-bottom: 40px; }
.comparison__table {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  align-items: start;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
}
.comparison__col {
  border: 1.5px solid rgba(22,29,56,.1);
  border-radius: 16px;
  overflow: hidden;
}
.comparison__col--old { border-radius: 16px 0 0 16px; border-right: none; }
.comparison__col--new {
  border-radius: 0 16px 16px 0;
  border-left: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 1.5px var(--accent-color), 0 8px 32px rgba(1,179,248,.12);
}
.comparison__col-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 16px 20px;
  background: rgba(22,29,56,.04);
  border-bottom: 1.5px solid rgba(22,29,56,.08);
}
.comparison__col--new .comparison__col-header {
  background: rgba(1,179,248,.06);
  border-bottom-color: rgba(1,179,248,.2);
}
.comparison__col-label {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-primary);
}
.comparison__col-label--accent { color: var(--accent-color); }
.comparison__col-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: .68rem;
  font-family: var(--font-secondary);
  font-weight: 400;
  background: rgba(100,116,139,.12);
  color: #64748b;
  border-radius: 20px;
  letter-spacing: .03em;
  vertical-align: middle;
}
.comparison__list {
  list-style: none;
  margin: 0; padding: 12px 0;
}
.comparison__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: .92rem;
  color: var(--text-black);
  border-bottom: 1px solid rgba(22,29,56,.05);
}
.comparison__item:last-child { border-bottom: none; }
.comparison__item svg { flex-shrink: 0; }
.comparison__item--bad        { color: #64748b; }
.comparison__item--bad  svg   { color: #94a3b8; }
.comparison__item--good svg   { color: #22c55e; }
.comparison__vs {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: .8rem;
  color: var(--text-primary);
  opacity: .4;
  padding-top: 60px;
}
@media (max-width: 600px) {
  .comparison__table { grid-template-columns: 1fr; }
  .comparison__col--old  { border-radius: 16px 16px 0 0; border-right: 1.5px solid rgba(22,29,56,.1); border-bottom: none; }
  .comparison__col--new  { border-radius: 0 0 16px 16px; border-left: 1.5px solid var(--accent-color); }
  .comparison__vs { padding: 12px; }
}

/* ============================================================
   FEATURE 7 — TESTIMONIALS MARQUEE
   ============================================================ */
.testimonials {
  background: linear-gradient(160deg, #f0f9ff 0%, #e8f4ff 50%, #f5f0ff 100%);
  padding-block: var(--section-pad);
  overflow: hidden;
}

.testimonials__track-wrap {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  margin-bottom: 20px;
}
.testimonials__track-wrap--reverse { margin-bottom: 0; }
.testimonials__track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: marquee-scroll 45s linear infinite;
}
.testimonials__track--reverse { animation: marquee-scroll-reverse 50s linear infinite; }
.testimonials__track:hover,
.testimonials__track--reverse:hover { animation-play-state: paused; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes marquee-scroll-reverse {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}
.testimonial-card {
  position: relative;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(1,179,248,.15);
  border-radius: 20px;
  padding: 28px 28px 24px;
  width: 320px;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.04);
  transition: box-shadow .25s ease, transform .25s ease;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(1,179,248,.18), 0 2px 6px rgba(0,0,0,.06);
  transform: translateY(-2px);
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 16px;
  right: 22px;
  font-family: Georgia, serif;
  font-size: 4rem;
  line-height: 1;
  color: var(--accent-color);
  opacity: .15;
  pointer-events: none;
}
.testimonial-card__rating {
  color: #f59e0b;
  font-size: .9rem;
  letter-spacing: .06em;
  margin-bottom: 12px;
}
.testimonial-card__text {
  font-family: var(--font-secondary);
  font-size: .93rem;
  color: var(--text-black);
  line-height: 1.65;
  margin-bottom: 20px;
}
.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-card__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--av, #01b3f8);
  color: #fff;
  font-family: var(--font-primary);
  font-size: .75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: .03em;
}
.testimonial-card__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.testimonial-card__name {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: .82rem;
  color: var(--text-primary);
  line-height: 1.3;
}
.testimonial-card__role {
  font-size: .76rem;
  color: #64748b;
  line-height: 1.3;
}

/* ============================================================
   FEATURE 8 — AGENT LIVE FEED
   ============================================================ */
.agent-feed { background: var(--bg-color); }

.agent-terminal {
  background: #0d1117;
  border: 1.5px solid rgba(1,179,248,.2);
  border-radius: 16px;
  overflow: hidden;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: 0 8px 40px rgba(1,179,248,.08);
}
.agent-terminal__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.agent-terminal__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.agent-terminal__dot--red   { background: #ff5f57; }
.agent-terminal__dot--yellow{ background: #febc2e; }
.agent-terminal__dot--green { background: #28c840; }
.agent-terminal__title {
  margin-left: 8px;
  font-family: 'Courier New', monospace;
  font-size: .78rem;
  color: rgba(255,255,255,.4);
}
.agent-terminal__body {
  padding: 20px 24px;
  min-height: 180px;
  font-family: 'Courier New', monospace;
  font-size: .85rem;
  line-height: 1.8;
  color: #a8b5c8;
}
.agent-line { display: block; }
.agent-line .agent-line__prefix { color: #01b3f8; }
.agent-line .agent-line__task   { color: #22c55e; }
.agent-line .agent-line__status { color: rgba(255,255,255,.4); font-size: .78rem; }

/* ============================================================
   FEATURE 9 — WAITLIST FORM
   ============================================================ */
.waitlist { background: #f8fafc; }

.waitlist__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.waitlist__eyebrow { margin-bottom: 12px; }
.waitlist__desc { color: var(--text-black); font-size: 1.05rem; margin-bottom: 24px; }
.waitlist__perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0; margin: 0;
}
.waitlist__perk {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .92rem;
  color: var(--text-black);
}
.waitlist__perk::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-color);
  flex-shrink: 0;
}
.waitlist__form-wrap {
  background: #fff;
  border: 1.5px solid rgba(1,179,248,.15);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
}

.waitlist__label {
  display: block;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: .85rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.waitlist__input-row { display: flex; gap: 10px; margin-bottom: 12px; }
.waitlist__input {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid rgba(22,29,56,.15);
  border-radius: 10px;
  font-family: var(--font-secondary);
  font-size: .95rem;
  color: var(--text-primary);
  background: #f8fafc;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.waitlist__input:focus { border-color: var(--accent-color); box-shadow: 0 0 0 3px rgba(1,179,248,.12); }
.waitlist__select-label {
  font-family: var(--font-secondary);
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.waitlist__products {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.waitlist__chip {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.waitlist__chip input { display: none; }
.waitlist__chip span {
  font-family: var(--font-primary);
  font-size: .78rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 20px;
  border: 1.5px solid rgba(22,29,56,.1);
  color: var(--text-primary);
  background: transparent;
  transition: all .2s ease;
  user-select: none;
}
.waitlist__chip input:checked + span {
  background: rgba(1,179,248,.1);
  border-color: var(--accent-color);
  color: var(--accent-color);
}
.waitlist__chip:hover span { border-color: var(--accent-color); }
[data-theme="dark"] .waitlist__chip span { border-color: var(--border); color: var(--text-primary); }
[data-theme="dark"] .waitlist__chip input:checked + span { background: rgba(1,179,248,.15); border-color: var(--accent-color); color: var(--accent-color); }
.waitlist__privacy { font-size: .78rem; color: #94a3b8; margin-bottom: 20px; }
.waitlist__success {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: rgba(34,197,94,.08);
  border: 1.5px solid rgba(34,197,94,.3);
  border-radius: 10px;
  font-size: .9rem;
  color: #16a34a;
  margin-bottom: 20px;
}
.waitlist__success svg { flex-shrink: 0; color: #22c55e; }
.waitlist__social-proof { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.waitlist__avatars { display: flex; }
.waitlist__avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -8px;
}
.waitlist__avatar:first-child { margin-left: 0; }
.waitlist__social-text { font-size: .82rem; color: #64748b; }

@media (max-width: 768px) {
  .waitlist__inner { grid-template-columns: 1fr; gap: 32px; }
  .waitlist__input-row { flex-direction: column; }
}

/* ============================================================
   FEATURE 10 — 3D TILT (JS-driven, CSS only sets transform-style)
   ============================================================ */
.product-card { transform-style: preserve-3d; will-change: transform; }
.product-card .product-card__icon,
.product-card .product-card__title { transform: translateZ(8px); }

/* ============================================================
   TRANSICIONES SUAVES PARA CAMBIO DE TEMA
   Aplican a todos los elementos sensibles para evitar saltos bruscos
   ============================================================ */
.site-header, .nav__menu, .lang-switcher__menu,
.product-card, .solucion-card, .valor-card, .tech-item,
.testimonial-card, .mockup__card, .mockup__pill, .mockup__ai-pill,
.agent-terminal, .waitlist__form-wrap, .waitlist__input,
.comparison__col, .comparison__col-header, .comparison__item,
.historia, .valores, .testimonials, .comparison, .waitlist, .tecnologia, .video-showcase,
.footer, .btn, a, h1, h2, h3, h4, p,
.section__title, .section__lead, .stat__label,
.trust__pill, .nav__link, .dark-toggle {
  transition:
    background-color .35s ease,
    background      .35s ease,
    color            .25s ease,
    border-color     .25s ease,
    box-shadow       .25s ease !important;
}

/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9990;
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner {
  max-width: 680px;
  margin: 0 auto 24px;
  padding: 28px 32px;
  background: var(--bg-color);
  border: 1.5px solid rgba(1,179,248,.15);
  border-radius: 20px;
  box-shadow: 0 -8px 60px rgba(0,0,0,.15), 0 0 0 1px rgba(0,0,0,.03);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cookie-banner__title {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.cookie-banner__desc {
  font-family: var(--font-secondary);
  font-size: .88rem;
  color: rgba(0,0,0,.55);
  line-height: 1.65;
}
.cookie-banner__controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid rgba(22,29,56,.06);
  border-bottom: 1px solid rgba(22,29,56,.06);
}
.cookie-banner__controls[hidden] { display: none; }
.cookie-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.cookie-toggle__label {
  font-family: var(--font-primary);
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 110px;
}
.cookie-toggle input { display: none; }
.cookie-toggle__switch {
  position: relative;
  width: 44px;
  height: 24px;
  background: rgba(22,29,56,.12);
  border-radius: 12px;
  flex-shrink: 0;
  transition: background .2s ease;
}
.cookie-toggle__switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.cookie-toggle input:checked + .cookie-toggle__switch {
  background: var(--accent-color);
}
.cookie-toggle input:checked + .cookie-toggle__switch::after {
  transform: translateX(20px);
}
.cookie-toggle__switch--locked {
  background: var(--accent-color);
  opacity: .6;
}
.cookie-toggle__switch--locked::after {
  transform: translateX(20px);
}
.cookie-toggle__hint {
  font-family: var(--font-secondary);
  font-size: .78rem;
  color: #94a3b8;
  flex: 1;
}
.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cookie-banner__btn { font-size: .85rem; padding: 10px 20px; }
.cookie-banner__link {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-secondary);
  font-size: .78rem;
  color: var(--accent-color);
  text-decoration: underline;
  align-self: flex-start;
  padding: 0;
}

/* Dark mode */
[data-theme="dark"] .cookie-banner__inner { background: var(--surface); border-color: rgba(1,179,248,.25); box-shadow: 0 -8px 60px rgba(0,0,0,.4); }
[data-theme="dark"] .cookie-banner__desc { color: var(--text-black); }
[data-theme="dark"] .cookie-banner__controls { border-color: var(--border); }
[data-theme="dark"] .cookie-toggle__switch { background: rgba(255,255,255,.1); }

@media (max-width: 768px) {
  .cookie-banner__inner { margin: 0 12px 12px; padding: 22px 20px; border-radius: 16px; }
  .cookie-banner__actions { flex-direction: column; }
  .cookie-banner__btn { width: 100%; justify-content: center; }
}

/* ============================================================
   LEGAL MODAL — Full-screen overlay
   ============================================================ */
.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.legal-modal.is-open {
  opacity: 1;
  visibility: visible;
}
.legal-modal[hidden] { display: none; }
.legal-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(8px);
}
.legal-modal__panel {
  position: relative;
  width: 90vw;
  max-width: 720px;
  max-height: 85vh;
  background: var(--bg-color);
  border: 1px solid rgba(22,29,56,.08);
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0,0,0,.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px);
  transition: transform .3s ease;
}
.legal-modal.is-open .legal-modal__panel { transform: translateY(0); }
.legal-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  border-bottom: 1px solid rgba(22,29,56,.06);
  flex-shrink: 0;
}
.legal-modal__title {
  font-family: var(--font-primary);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}
.legal-modal__close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  padding: 8px;
  border-radius: 8px;
  transition: background .2s ease;
  display: flex;
}
.legal-modal__close:hover { background: rgba(22,29,56,.06); }
.legal-modal__body {
  padding: 32px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.legal-modal__body h3 {
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 28px 0 10px;
}
.legal-modal__body h3:first-of-type { margin-top: 0; }
.legal-modal__body h4 {
  font-family: var(--font-primary);
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 20px 0 8px;
}
.legal-modal__body p {
  font-family: var(--font-secondary);
  font-size: .9rem;
  color: var(--text-black);
  line-height: 1.75;
  margin-bottom: 12px;
}
.legal-modal__body ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 12px;
}
.legal-modal__body li {
  font-family: var(--font-secondary);
  font-size: .88rem;
  color: var(--text-black);
  line-height: 1.7;
  margin-bottom: 4px;
}
.legal-modal__body a { color: var(--accent-color); text-decoration: underline; }
.legal__meta {
  font-size: .8rem;
  color: var(--accent-color);
  background: rgba(1,179,248,.06);
  padding: 8px 14px;
  border-radius: 8px;
  margin-bottom: 24px;
  display: inline-block;
}
.legal__table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-family: var(--font-secondary);
  font-size: .85rem;
}
.legal__table th, .legal__table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(22,29,56,.06);
}
.legal__table th { font-weight: 600; color: var(--text-primary); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.legal__table td { color: var(--text-black); }
.legal__table code { font-size: .82rem; background: rgba(1,179,248,.08); padding: 2px 6px; border-radius: 4px; color: var(--accent-color); }
.legal__region {
  padding: 12px 16px;
  border-radius: 10px;
  font-family: var(--font-secondary);
  font-size: .85rem;
  margin-bottom: 24px;
  line-height: 1.5;
}
.legal__region--eu { background: rgba(0,51,153,.08); border-left: 3px solid #003399; color: #003399; }
.legal__region--am { background: rgba(1,179,248,.06); border-left: 3px solid var(--accent-color); color: var(--accent-color); }
[data-theme="dark"] .legal__region--eu { background: rgba(0,51,153,.15); color: #6699ff; }
[data-theme="dark"] .legal__region--am { background: rgba(1,179,248,.1); }

/* Dark mode */
[data-theme="dark"] .legal-modal__panel { background: var(--surface); border-color: var(--border); }
[data-theme="dark"] .legal-modal__header { border-bottom-color: var(--border); }
[data-theme="dark"] .legal-modal__close:hover { background: rgba(255,255,255,.06); }
[data-theme="dark"] .legal__table th, [data-theme="dark"] .legal__table td { border-bottom-color: var(--border); }

@media (max-width: 768px) {
  .legal-modal__panel { width: 100vw; max-width: 100%; max-height: 100vh; border-radius: 0; }
  .legal-modal__body { padding: 24px 20px; }
}

/* ============================================================
   MEJORAS DE ACCESIBILIDAD — FOCUS VISIBLE
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible {
  outline-offset: 4px;
}

/* ============================================================
   UX — MEJORAS VISUALES Y MICRO-INTERACCIONES
   ============================================================ */

/* Selección de texto con color de marca */
::selection {
  background: rgba(1, 179, 248, 0.2);
  color: var(--text-primary);
}
[data-theme="dark"] ::selection {
  background: rgba(1, 179, 248, 0.3);
  color: var(--text-primary);
}

/* Scroll suave nativo en todo el documento */
html {
  scroll-behavior: smooth;
}

/* Links de texto con subrayado al hover (mejor affordance) */
main a:not(.btn):not(.nav__link):not(.footer__link):not([class]) {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(1, 179, 248, 0.4);
}
main a:not(.btn):not(.nav__link):not(.footer__link):not([class]):hover {
  text-decoration-color: var(--accent-color);
}

/* Mejor affordance en cards interactivas */
.product-card, .solucion-card, .valor-card, .tech-item {
  cursor: default;
}

/* Botón nav CTA más destacado */
.btn--nav {
  box-shadow: 0 2px 10px rgba(1, 179, 248, 0.25);
}
.btn--nav:hover {
  box-shadow: 0 4px 18px rgba(1, 179, 248, 0.4);
}

/* Dark toggle tooltip */
.dark-toggle { position: relative; }
.dark-toggle::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--text-primary);
  color: var(--bg-color);
  font-family: var(--font-secondary);
  font-size: .75rem;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity .15s ease, transform .15s ease;
}
.dark-toggle:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   PREFERS-REDUCED-MOTION — Respeta usuarios sensibles
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .fade-up {
    opacity: 1 !important;
    transform: none !important;
  }
  .testimonials__track,
  .testimonials__track--reverse {
    animation: none !important;
  }
  html { scroll-behavior: auto !important; }
}

/* ============================================================
   WAITLIST — email inline error (typo / disposable / invalid)
   ============================================================ */
.waitlist__email-error {
  display: none;
  margin: 10px 0 0;
  color: #ef4444;
  font-family: var(--font-secondary, sans-serif);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
}
.waitlist__email-suggestion {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: #01b3f8;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}
.waitlist__email-suggestion:hover,
.waitlist__email-suggestion:focus-visible {
  color: #009fd9;
}

/* ============================================================
   WAITLIST — product chips error state
   ============================================================ */
.waitlist__products--error {
  position: relative;
  animation: waitlistShake 0.5s ease-in-out;
}
.waitlist__products--error .waitlist__chip {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15) !important;
}
.waitlist__products-error {
  display: none;
  margin: 10px 0 0;
  color: #ef4444;
  font-family: var(--font-secondary, sans-serif);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
}
@keyframes waitlistShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}
@media (prefers-reduced-motion: reduce) {
  .waitlist__products--error { animation: none; }
}

/* ============================================================
   iOS DEFENSIVE — guarantee logo visibility on all iPhones
   in both light and dark mode regardless of font loading state.
   ============================================================ */
@media (max-width: 768px) {
  .site-header {
    /* Enforce a minimum visible header height that accommodates the safe-area
       inset. `calc()` with env() ensures the notch area is added on top of
       the nav height so the wordmark is always visible below the notch. */
    min-height: calc(var(--nav-height) + env(safe-area-inset-top, 0));
  }
  .nav {
    padding-inline: max(20px, env(safe-area-inset-left, 0)) max(20px, env(safe-area-inset-right, 0));
    gap: 12px;
  }
  .nav__logo {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .nav__logo-wordmark {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 1.25rem;
    color: #161d38 !important;
    -webkit-text-fill-color: #161d38 !important;
  }
  [data-theme="dark"] .nav__logo-wordmark {
    color: #e2e8f0 !important;
    -webkit-text-fill-color: #e2e8f0 !important;
  }
}

/* ============================================================
   FEATURE 14 — CELEBRATION OVERLAY (waitlist success)
   Full-screen modal with confetti burst + animated checkmark.
   Triggered by the waitlist form submit handler in script.js.
   ============================================================ */
.celebration-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 17, 38, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: celebrationFadeIn 0.35s ease-out;
}
.celebration-overlay.fade-out {
  animation: celebrationFadeOut 0.6s ease-out forwards;
}
.celebration-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
}
.celebration-card {
  position: relative;
  z-index: 2;
  max-width: 440px;
  width: 100%;
  text-align: center;
  padding: 48px 32px;
  color: #ffffff;
  animation: celebrationPop 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}
.celebration-checkmark {
  width: 96px;
  height: 96px;
  margin: 0 auto 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #01b3f8 0%, #0cce6b 100%);
  box-shadow: 0 0 80px rgba(1, 179, 248, 0.6), 0 0 40px rgba(12, 206, 107, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: checkmarkBounce 0.9s cubic-bezier(0.68, -0.55, 0.27, 1.55) both;
}
.celebration-checkmark svg {
  width: 52px;
  height: 52px;
  stroke: #ffffff;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: checkmarkDraw 0.5s ease-out 0.35s forwards;
}
.celebration-title {
  font-family: var(--font-primary, -apple-system, 'Segoe UI', sans-serif);
  font-size: clamp(1.9rem, 6.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 14px;
  color: #ffffff;
  letter-spacing: 0.01em;
}
.celebration-subtitle {
  font-family: var(--font-secondary, -apple-system, 'Segoe UI', sans-serif);
  font-size: 1.0625rem;
  line-height: 1.6;
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.88);
}
.celebration-email {
  font-family: var(--font-secondary, -apple-system, 'Segoe UI', sans-serif);
  font-size: 0.95rem;
  color: #01b3f8;
  font-weight: 600;
  margin: 0;
  word-break: break-all;
}

@keyframes celebrationFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes celebrationFadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}
@keyframes celebrationPop {
  0%   { opacity: 0; transform: scale(0.6) translateY(24px); }
  60%  { opacity: 1; transform: scale(1.03) translateY(-4px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes checkmarkBounce {
  0%   { transform: scale(0) rotate(-180deg); }
  60%  { transform: scale(1.15) rotate(10deg); }
  80%  { transform: scale(0.95) rotate(-4deg); }
  100% { transform: scale(1) rotate(0deg); }
}
@keyframes checkmarkDraw {
  to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .celebration-overlay,
  .celebration-overlay.fade-out,
  .celebration-card,
  .celebration-checkmark,
  .celebration-checkmark svg {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
