/* ═══════════════════════════════════════════════════════
   NEXTOUR DESIGN SYSTEM — nx.css v3.0
   nextour.pro · Mgnt Services LLC
   ═══════════════════════════════════════════════════════ */

/* ── 1. TOKENS ─────────────────────────────────────────── */
:root {
  /* Fondos */
  --bg:    oklch(10% 0.008 94);   /* #0C0C0A equivalente */
  --bg-2:  oklch(13% 0.008 94);
  --bg-3:  oklch(16% 0.008 94);
  --bg-4:  oklch(19% 0.008 94);

  /* Texto */
  --fg:    oklch(97% 0.012 90);   /* #F5F2EA — blanco cálido */
  --fg-80: oklch(97% 0.012 90 / 0.82);
  --fg-60: oklch(97% 0.012 90 / 0.62);
  --fg-40: oklch(97% 0.012 90 / 0.42);
  --fg-20: oklch(97% 0.012 90 / 0.20);
  --fg-10: oklch(97% 0.012 90 / 0.10);

  /* Líneas */
  --line:        oklch(97% 0.012 90 / 0.08);
  --line-soft:   oklch(97% 0.012 90 / 0.04);
  --line-strong: oklch(97% 0.012 90 / 0.15);

  /* Acento principal — olive */
  --olive:      oklch(78% 0.112 104);   /* #BDC95A */
  --olive-dim:  oklch(70% 0.105 104);
  --olive-deep: oklch(20% 0.045 104);
  --olive-soft: oklch(78% 0.112 104 / 0.10);
  --olive-glow: oklch(78% 0.112 104 / 0.18);

  /* Acento VIP — solo en /servicios */
  --info:      oklch(70% 0.075 242);   /* #8AB5DD */
  --info-soft: oklch(70% 0.075 242 / 0.12);

  /* Estados */
  --ok:   oklch(68% 0.10 145);
  --warn: oklch(72% 0.10 65);
  --bad:  oklch(62% 0.12 25);

  /* Tipografía */
  --serif: 'Instrument Serif', Georgia, serif;
  --sans:  'DM Sans', system-ui, sans-serif;
  --mono:  'Geist Mono', ui-monospace, monospace;
  --num:   'Epilogue', 'DM Sans', sans-serif;

  /* Layout */
  --nav-h:   64px;
  --radius:  10px;
  --radius-sm: 6px;
  --radius-lg: 14px;

  /* Noise texture */
  --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='256' height='256'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='256' height='256' filter='url(%23n)' opacity='1'/></svg>");
}


/* ── 2. RESET ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: oklch(10% 0.008 94);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100dvh;
  position: relative;
}

/* Noise texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: var(--noise);
  background-repeat: repeat;
  background-size: 256px 256px;
  opacity: 0.038;
  pointer-events: none;
  z-index: 0;
}

/* Glow olive superior — más presencia */
body::after {
  content: '';
  position: fixed;
  top: -25vh;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, 100vw);
  height: 80vh;
  background: radial-gradient(ellipse at 50% 10%,
    oklch(78% 0.112 104 / 0.16) 0%,
    oklch(78% 0.112 104 / 0.06) 40%,
    transparent 68%);
  filter: blur(72px);
  pointer-events: none;
  z-index: 0;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--sans); cursor: pointer; border: none; background: none; }
*:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--olive-glow); border-radius: 3px; }
* { scrollbar-width: thin; scrollbar-color: var(--line) transparent; -webkit-tap-highlight-color: transparent; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 2px; }
::selection { background: var(--olive-soft); color: var(--fg); }


/* ── 3. TIPOGRAFÍA BASE ────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--fg);
}

p { max-width: 68ch; color: var(--fg-60); }

strong { font-weight: 600; color: var(--fg-80); }


/* ── 4. LAYOUT ─────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 48px;
}

.container--narrow {
  max-width: 820px;
  margin-inline: auto;
  padding-inline: 48px;
}

.section        { padding-block: 104px; position: relative; z-index: 1; }
.section--tight { padding-block: 68px;  position: relative; z-index: 1; }
.section--alt   { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* z-index base para todo el contenido sobre los pseudo-elementos */
main, header, nav, footer { position: relative; z-index: 1; }


/* ── 5. BARRA DE PROGRESO ──────────────────────────────── */
#nx-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--olive);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 1000;
  transition: transform 0.1s linear;
  pointer-events: none;
}


/* ── 6. NAV ────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 40px;
  background: oklch(10% 0.008 94 / 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  transition: background 0.3s ease;
}

.nav.scrolled { background: oklch(10% 0.008 94 / 0.97); }

/* Logo */
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav__iso {
  width: 26px; height: 26px;
  flex-shrink: 0;
  background: var(--olive);
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><path d='M20 70C20 70 30 20 50 20C70 20 60 70 60 70M60 70C60 70 65 40 85 40' fill='none' stroke='black' stroke-width='9' stroke-linecap='round'/></svg>");
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><path d='M20 70C20 70 30 20 50 20C70 20 60 70 60 70M60 70C60 70 65 40 85 40' fill='none' stroke='black' stroke-width='9' stroke-linecap='round'/></svg>");
  mask-size: contain; mask-repeat: no-repeat; mask-position: center;
  -webkit-mask-size: contain; -webkit-mask-repeat: no-repeat; -webkit-mask-position: center;
  filter: drop-shadow(0 0 8px var(--olive-glow));
}

.nav__brand {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--fg);
  line-height: 1;
}

/* Links */
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  padding: 7px 13px;
  font-size: 13.5px;
  font-weight: 450;
  color: var(--fg-60);
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

.nav__link:hover { color: var(--fg); background: var(--line-soft); }
.nav__link.active { color: var(--olive); font-weight: 500; }

.nav__sep { width: 1px; height: 16px; background: var(--line); margin-inline: 4px; flex-shrink: 0; }

/* Lang toggle */
.nav__lang {
  display: flex;
  gap: 2px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 3px;
}

.nav__lang-btn {
  padding: 4px 9px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--fg-40);
  border-radius: 4px;
  transition: all 0.15s;
  background: none;
  border: none;
}

.nav__lang-btn.active { background: var(--bg-2); color: var(--olive); }

/* CTA nav */
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--bg);
  background: var(--olive);
  border-radius: var(--radius-sm);
  transition: background 0.18s, transform 0.18s;
  white-space: nowrap;
}

.nav__cta:hover { background: var(--olive-dim); transform: translateY(-1px); }

/* Hamburger */
.nav__hamburger {
  display: none;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.nav__hamburger span {
  width: 15px; height: 1.5px;
  background: var(--fg-60);
  border-radius: 1px;
  transition: all 0.22s cubic-bezier(.22,1,.36,1);
  display: block;
}

.nav__hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  z-index: 199;
  background: oklch(10% 0.008 94 / 0.98);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  padding: 20px 24px 28px;
  flex-direction: column;
  gap: 4px;
  animation: slideDown 0.22s cubic-bezier(.22,1,.36,1);
}

.nav__mobile.open { display: flex; }

.nav__mobile .nav__link {
  padding: 13px 14px;
  font-size: 15px;
  width: 100%;
  border-radius: var(--radius-sm);
  display: block;
}

.nav__mobile .nav__lang { width: fit-content; margin-top: 10px; }


/* ── 7. BOTONES ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(.22,1,.36,1);
  white-space: nowrap;
  text-decoration: none;
  padding: 10px 20px;
  position: relative;
  outline: none;
}

.btn:focus-visible {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--olive);
}

/* Primary */
.btn--primary {
  background: var(--olive);
  color: oklch(10% 0.008 94);
}
.btn--primary:hover { background: var(--olive-dim); transform: translateY(-1px); box-shadow: 0 6px 20px var(--olive-soft); }
.btn--primary:active { transform: translateY(0); }

/* Secondary */
.btn--secondary {
  background: var(--olive-soft);
  color: var(--olive);
  box-shadow: inset 0 0 0 1px oklch(78% 0.112 104 / 0.3);
}
.btn--secondary:hover { background: oklch(78% 0.112 104 / 0.16); transform: translateY(-1px); }

/* Ghost */
.btn--ghost {
  background: transparent;
  color: var(--fg-60);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn--ghost:hover { color: var(--fg); background: var(--line-soft); transform: translateY(-1px); }

/* Info (solo servicios) */
.btn--info {
  background: var(--info-soft);
  color: var(--info);
  box-shadow: inset 0 0 0 1px oklch(70% 0.075 242 / 0.3);
}
.btn--info:hover { background: oklch(70% 0.075 242 / 0.2); transform: translateY(-1px); }

/* Sizes */
.btn--lg { padding: 13px 26px; font-size: 15px; border-radius: var(--radius); }
.btn--sm { padding: 7px 14px; font-size: 12.5px; border-radius: 6px; }
.btn--xl { padding: 16px 34px; font-size: 16px; border-radius: var(--radius); }


/* ── 8. EYEBROW ────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 20px;
}

.eyebrow::before {
  content: '';
  display: block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--olive);
  flex-shrink: 0;
}

/* Eyebrow para secciones VIP */
.eyebrow--info { color: var(--info); }
.eyebrow--info::before { background: var(--info); }


/* ── 9. CARDS ──────────────────────────────────────────── */
.card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s, transform 0.35s cubic-bezier(.22,1,.36,1);
}

.card:hover { border-color: var(--line-strong); transform: translateY(-3px); }

.card__icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--olive-soft);
  border: 1px solid oklch(78% 0.112 104 / 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--olive);
  margin-bottom: 18px;
  flex-shrink: 0;
}

.card__icon--info {
  background: var(--info-soft);
  border-color: oklch(70% 0.075 242 / 0.2);
  color: var(--info);
}

.card__title {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--fg);
  margin-bottom: 10px;
  line-height: 1.2;
}

.card__body {
  font-size: 14px;
  line-height: 1.65;
  color: var(--fg-60);
  max-width: 100%;
}


/* ── 10. BENTO GRID (21st.dev pattern) ─────────────────── */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

.bento__cell {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.bento__cell:hover { border-color: var(--line-strong); }

/* Tamaños de celda */
.bento__cell--4  { grid-column: span 4; }
.bento__cell--6  { grid-column: span 6; }
.bento__cell--8  { grid-column: span 8; }
.bento__cell--12 { grid-column: span 12; }

/* Featured cell — olive border top */
.bento__cell--featured {
  border-top: 2px solid var(--olive);
}

.bento__cell--featured-info {
  border-top: 2px solid var(--info);
}


/* ── 11. FEATURE SPOTLIGHT (layout asimétrico) ─────────── */
.feature-spotlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.feature-spotlight--reverse { direction: rtl; }
.feature-spotlight--reverse > * { direction: ltr; }

.feature-spotlight__content { display: flex; flex-direction: column; gap: 24px; }

.feature-spotlight__visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-3);
  border: 1px solid var(--line);
}

/* Lista de features en spotlight */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--fg-60);
  line-height: 1.55;
}

.feature-list li::before {
  content: '';
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--olive);
  background: var(--olive-soft);
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.feature-list li::after {
  content: '';
  position: absolute;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--olive);
  margin-left: 4.5px;
  margin-top: 7px;
}

/* Números de paso */
.step-number {
  font-family: var(--num);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--olive);
  background: var(--olive-soft);
  border: 1px solid oklch(78% 0.112 104 / 0.2);
  border-radius: 6px;
  padding: 2px 8px;
  display: inline-block;
  margin-bottom: 10px;
}


/* ── 12. PILLS / TAGS ──────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--olive-soft);
  color: var(--olive);
  border: 1px solid oklch(78% 0.112 104 / 0.2);
  white-space: nowrap;
}

.pill--info {
  background: var(--info-soft);
  color: var(--info);
  border-color: oklch(70% 0.075 242 / 0.2);
}


/* ── 13. REVEAL ANIMATIONS ─────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.85s cubic-bezier(.22,1,.36,1),
              transform 0.85s cubic-bezier(.22,1,.36,1);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.42s; }


/* ── 14. HERO ──────────────────────────────────────────── */
.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--nav-h) + 48px);
  padding-bottom: 72px;
}

.hero__glow {
  position: absolute;
  top: 42%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(1000px, 100vw);
  height: 70vh;
  background: radial-gradient(ellipse at center,
    oklch(78% 0.112 104 / 0.18) 0%,
    oklch(78% 0.112 104 / 0.06) 42%,
    transparent 68%);
  filter: blur(60px);
  pointer-events: none;
  animation: hero-glow-breathe 8s ease-in-out infinite;
}

/* Orbs ambientales — se usan en páginas con fondo dramático */
.nx-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(var(--orb-blur, 90px));
  opacity: 0;
  animation:
    orb-in 1.6s cubic-bezier(.22,1,.36,1) var(--orb-delay, 0s) forwards,
    orb-breathe var(--orb-dur, 16s) ease-in-out calc(var(--orb-delay, 0s) + 1.6s) infinite;
  will-change: transform, opacity;
}

.hero__eyebrow { margin-bottom: 28px; justify-content: center; }

.hero__title {
  font-size: clamp(44px, 7.5vw, 92px);
  line-height: 1.03;
  letter-spacing: -0.04em;
  margin-bottom: 26px;
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}

.hero__title em { color: var(--olive); font-style: italic; }

.hero__subtitle {
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.7;
  color: var(--fg-60);
  max-width: 580px;
  margin-inline: auto;
  margin-bottom: 44px;
  text-align: center;
}

.hero__ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: var(--fg-20);
  animation: float 2.8s ease-in-out infinite;
}

.hero__scroll span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}


/* ── 15. SECCIÓN DE ESTADÍSTICAS ───────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stat-item {
  background: var(--bg-2);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-item__value {
  font-family: var(--num);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--fg);
  font-feature-settings: 'tnum' 1;
  line-height: 1;
}

.stat-item__label {
  font-size: 13px;
  color: var(--fg-40);
  line-height: 1.4;
}


/* ── 16. PRICING ────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: border-color 0.2s, transform 0.3s cubic-bezier(.22,1,.36,1);
}

.pricing-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }

.pricing-card--featured {
  border-color: oklch(78% 0.112 104 / 0.4);
  background: oklch(78% 0.112 104 / 0.04);
}

.pricing-card--featured:hover { border-color: var(--olive); }

.pricing-card__name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 8px;
}

.pricing-card__price {
  font-family: var(--num);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--fg);
  font-feature-settings: 'tnum' 1;
  line-height: 1;
  margin-block: 20px 4px;
}

.pricing-card__price sup {
  font-size: 20px;
  font-weight: 600;
  vertical-align: super;
  letter-spacing: 0;
}

.pricing-card__period {
  font-size: 12px;
  color: var(--fg-40);
  font-family: var(--mono);
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.pricing-card__divider {
  height: 1px;
  background: var(--line);
  margin-bottom: 24px;
}

.pricing-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
  margin-bottom: 28px;
}

.pricing-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--fg-60);
}

.pricing-card__features li::before {
  content: '';
  width: 16px; height: 16px;
  flex-shrink: 0;
  background: var(--olive);
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 8l3.5 3.5L13 4.5' stroke='black' stroke-width='2' stroke-linecap='round' fill='none'/></svg>");
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 8l3.5 3.5L13 4.5' stroke='black' stroke-width='2' stroke-linecap='round' fill='none'/></svg>");
  mask-size: contain; mask-repeat: no-repeat;
  -webkit-mask-size: contain; -webkit-mask-repeat: no-repeat;
  margin-top: 1px;
}

/* Pricing placeholder (antes de que Stripe esté activo) */
.pricing-placeholder {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  background: var(--bg-2);
}

.pricing-placeholder__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--fg-40);
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 24px;
}

.pricing-placeholder__badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--warn);
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}


/* ── 17. FORMULARIO ────────────────────────────────────── */
.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-field { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-40);
}

.form-label .required { color: var(--olive); margin-left: 2px; }

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 14px;
  padding: 11px 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
  -webkit-appearance: none;
}

.form-input::placeholder, .form-textarea::placeholder {
  color: var(--fg-20);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: oklch(78% 0.112 104 / 0.5);
  box-shadow: 0 0 0 3px var(--olive-soft);
}

.form-input.error, .form-select.error { border-color: var(--bad); box-shadow: 0 0 0 3px oklch(62% 0.12 25 / 0.1); }

.form-error {
  font-size: 12px;
  color: var(--bad);
  display: none;
}
.form-error.visible { display: block; }

.form-textarea { min-height: 100px; resize: vertical; }

.form-select-wrapper { position: relative; }
.form-select-wrapper::after {
  content: '';
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  width: 10px; height: 6px;
  background: var(--fg-40);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  pointer-events: none;
}

.form-legal {
  font-size: 12px;
  color: var(--fg-20);
  line-height: 1.55;
}

.form-legal a { color: var(--fg-40); text-decoration: underline; text-underline-offset: 3px; }

/* Form success state */
.form-success {
  display: none;
  text-align: center;
  padding: 40px 0 24px;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.form-success.visible { display: flex; }

.form-success__check {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--olive-soft);
  border: 1px solid oklch(78% 0.112 104 / 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--olive);
}


/* ── 18. COOKIE BANNER ─────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 520px;
  z-index: 300;
  background: var(--bg-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: 0 8px 40px oklch(0% 0 0 / 0.5);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.35s, transform 0.35s cubic-bezier(.22,1,.36,1);
}

.cookie-banner.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.cookie-banner__icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }

.cookie-banner__text { flex: 1; }

.cookie-banner__title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--fg-80);
  margin-bottom: 5px;
}

.cookie-banner__desc {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--fg-40);
}

.cookie-banner__desc a { color: var(--fg-60); text-decoration: underline; text-underline-offset: 2px; }

.cookie-banner__actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}


/* ── 19. FOOTER ────────────────────────────────────────── */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding-top: 72px;
  position: relative;
  z-index: 1;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}

.footer__brand .nav__logo { margin-bottom: 14px; }

.footer__brand-sub {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--fg-20);
  margin-top: 4px;
  display: block;
}

.footer__desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--fg-40);
  margin-top: 14px;
  max-width: 280px;
}

.footer__copy {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--fg-20);
  margin-top: 24px;
}

.footer__col-title {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fg-40);
  margin-bottom: 16px;
}

.footer__links { display: flex; flex-direction: column; gap: 10px; }

.footer__link {
  font-size: 13.5px;
  color: var(--fg-40);
  transition: color 0.15s;
  text-decoration: none;
}

.footer__link:hover { color: var(--fg-80); }

.footer__bottom {
  border-top: 1px solid var(--line);
  padding-block: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__legal {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer__legal a {
  font-size: 12px;
  color: var(--fg-20);
  transition: color 0.15s;
}

.footer__legal a:hover { color: var(--fg-60); }

.footer__address {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--fg-20);
}


/* ── 20. MAINTENANCE OVERLAY ───────────────────────────── */
.nx-maintenance {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  /* Bloquea todo lo de debajo */
  pointer-events: all;
  cursor: default;
}

/* Evita scroll en body cuando está activo */
body.is-maintenance { overflow: hidden; }

.nx-maintenance__iso {
  width: 48px; height: 48px;
  background: var(--olive);
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><path d='M20 70C20 70 30 20 50 20C70 20 60 70 60 70M60 70C60 70 65 40 85 40' fill='none' stroke='black' stroke-width='9' stroke-linecap='round'/></svg>");
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><path d='M20 70C20 70 30 20 50 20C70 20 60 70 60 70M60 70C60 70 65 40 85 40' fill='none' stroke='black' stroke-width='9' stroke-linecap='round'/></svg>");
  mask-size: contain; mask-repeat: no-repeat; mask-position: center;
  -webkit-mask-size: contain; -webkit-mask-repeat: no-repeat; -webkit-mask-position: center;
  animation: maintenance-pulse 2.8s ease-in-out infinite;
  filter: drop-shadow(0 0 16px var(--olive-glow));
}

.nx-maintenance__pulse {
  position: absolute;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--olive-soft);
  animation: maintenance-ring 2.8s ease-out infinite;
  pointer-events: none;
}

.nx-maintenance__title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin: 28px 0 8px;
  text-align: center;
}

.nx-maintenance__subtitle {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fg-40);
  text-align: center;
  margin: 0;
}


/* ── 21. MOCKUP / VISUAL ASSETS ────────────────────────── */
.mockup-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 0 0 1px var(--line),
    0 24px 80px oklch(0% 0 0 / 0.55),
    0 8px 24px oklch(0% 0 0 / 0.3);
}

/* Perspectiva sutil en mockups de hero */
.mockup-wrapper--perspective {
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
  transition: transform 0.6s cubic-bezier(.22,1,.36,1);
}

.mockup-wrapper--perspective:hover {
  transform: perspective(1200px) rotateY(-2deg) rotateX(0deg);
}

/* Frame del browser en mockups */
.mockup-chrome {
  background: oklch(13% 0.008 94);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
}

.mockup-chrome__dots {
  display: flex;
  gap: 5px;
}

.mockup-chrome__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}

.mockup-chrome__bar {
  flex: 1;
  height: 18px;
  background: var(--bg-4);
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding-inline: 10px;
}

.mockup-chrome__url {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--fg-20);
  letter-spacing: 0.02em;
}


/* ── 22. DIVISOR ────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--line);
  width: 100%;
}

.divider--olive {
  background: linear-gradient(90deg,
    transparent 0%,
    oklch(78% 0.112 104 / 0.4) 50%,
    transparent 100%);
}


/* ── 23. KEYFRAMES ─────────────────────────────────────── */

@keyframes hero-glow-breathe {
  0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  50%       { opacity: 0.75; transform: translate(-50%, -50%) scale(1.08); }
}

@keyframes orb-in {
  from { opacity: 0; transform: var(--orb-t0, scale(0.85)); }
  to   { opacity: 1; transform: var(--orb-t1, scale(1)); }
}

@keyframes orb-breathe {
  0%, 100% {
    opacity: var(--orb-lo, 0.75);
    transform: translate(0, 0) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(var(--orb-dx, 0px), var(--orb-dy, -28px)) scale(1.12);
  }
}

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

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

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

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

@keyframes maintenance-pulse {
  0%, 100% { opacity: 1; filter: drop-shadow(0 0 16px oklch(78% 0.112 104 / 0.3)); }
  50%       { opacity: 0.6; filter: drop-shadow(0 0 28px oklch(78% 0.112 104 / 0.5)); }
}

@keyframes maintenance-ring {
  0%   { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(3.5); opacity: 0; }
}

@keyframes shimmer {
  from { background-position: -200% 0; }
  to   { background-position: 200% 0; }
}

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg,
    var(--bg-3) 25%,
    var(--bg-4) 50%,
    var(--bg-3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.8s ease-in-out infinite;
  border-radius: 4px;
}


/* ── 24. RESPONSIVE ────────────────────────────────────── */

/* Tablet grande (≤1100px) */
@media (max-width: 1100px) {
  .container, .container--narrow { padding-inline: 36px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .bento__cell--4 { grid-column: span 6; }
}

/* Tablet (≤900px) */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }

  .feature-spotlight,
  .feature-spotlight--reverse {
    grid-template-columns: 1fr;
    gap: 48px;
    direction: ltr;
  }

  .bento { grid-template-columns: 1fr 1fr; }
  .bento__cell--4,
  .bento__cell--6,
  .bento__cell--8,
  .bento__cell--12 { grid-column: span 2; }

  .stat-grid { grid-template-columns: 1fr 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .section { padding-block: 72px; }
  .section--tight { padding-block: 52px; }
}

/* Móvil (≤600px) */
@media (max-width: 600px) {
  .container, .container--narrow { padding-inline: 20px; }

  .nav { padding-inline: 20px; }

  .hero { padding-bottom: 80px; }
  .hero__title { letter-spacing: -0.03em; }

  .bento { grid-template-columns: 1fr; }
  .bento__cell--4,
  .bento__cell--6,
  .bento__cell--8,
  .bento__cell--12 { grid-column: span 1; }

  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-item { padding: 24px 18px; }

  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 12px; }

  .pricing-grid { grid-template-columns: 1fr; }

  .cookie-banner { bottom: 16px; left: 16px; right: 16px; }

  .hero__ctas { flex-direction: column; align-items: center; }
  .btn--lg, .btn--xl { width: 100%; justify-content: center; }
}
