/* ============================================================
   unox1 — estilos
   Tema CLARO por defecto · tema OSCURO con [data-theme="dark"]
   ============================================================ */

:root {
  /* ---- Tema claro (por defecto) ---- */
  --bg:        #F4F3EE;
  --bg-2:      #FBFAF6;
  --surface:   #FFFFFF;
  --surface-2: #FAF9F4;
  --line:      #E7E4DB;
  --line-2:    #DAD7CC;
  --text:      #1A1A1E;
  --muted:     #5C5C66;
  --muted-2:   #8C8C94;

  --accent:      #CBF24A;  /* relleno (botones, puntos) */
  --accent-ink:  #14180B;  /* texto sobre el lima */
  --accent-text: #5A7310;  /* acento legible sobre fondo claro */

  --nav-bg: rgba(244, 243, 238, 0.72);
  --grid:   rgba(0, 0, 0, 0.045);
  --glow:   rgba(203, 242, 74, 0.16);
  --card-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 14px 34px -18px rgba(0,0,0,0.12);
  --tint:   rgba(203, 242, 74, 0.14);
  --tint-line: rgba(124, 158, 24, 0.35);

  --maxw: 1140px;
  --radius: 16px;
  --radius-lg: 24px;

  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  --bg:        #0B0B0F;
  --bg-2:      #101015;
  --surface:   #141419;
  --surface-2: #1A1A21;
  --line:      #26262E;
  --line-2:    #32323C;
  --text:      #F5F5F2;
  --muted:     #9A9AA3;
  --muted-2:   #6E6E78;

  --accent:      #CBF24A;
  --accent-ink:  #11160A;
  --accent-text: #CBF24A;

  --nav-bg: rgba(11, 11, 15, 0.72);
  --grid:   rgba(255, 255, 255, 0.025);
  --glow:   rgba(203, 242, 74, 0.10);
  --card-shadow: none;
  --tint:   rgba(203, 242, 74, 0.10);
  --tint-line: rgba(203, 242, 74, 0.30);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .4s var(--ease), color .4s var(--ease);
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Fondo decorativo ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -2;
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
}
.bg-glow {
  position: fixed; top: -260px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px; z-index: -2;
  background: radial-gradient(circle, var(--glow) 0%, transparent 65%);
  pointer-events: none;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 15px; line-height: 1;
  padding: 13px 22px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: #d6ff5e; transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(160,200,40,0.55); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--text); transform: translateY(-2px); }
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn--block { width: 100%; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: var(--nav-bg);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 18px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { border-radius: 9px; }
.brand__word { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; }
.brand__x { color: var(--accent-text); }

.nav__links { display: flex; gap: 30px; margin-left: auto; }
.nav__links a {
  font-size: 15px; color: var(--muted);
  transition: color .2s; position: relative;
}
.nav__links a:hover { color: var(--text); }

.nav__right { display: flex; align-items: center; gap: 14px; }

.status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted); font-weight: 500;
}
.status__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); position: relative;
  box-shadow: 0 0 0 0 rgba(160,200,40,0.6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(160,200,40,0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(160,200,40,0); }
  100% { box-shadow: 0 0 0 0 rgba(160,200,40,0); }
}

/* toggle de tema */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line-2);
  color: var(--text); cursor: pointer;
  transition: border-color .2s, transform .2s, background .2s;
}
.theme-toggle:hover { border-color: var(--text); transform: translateY(-1px); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav__toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }

/* ---------- HERO ---------- */
.hero { padding: 90px 0 70px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13.5px; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line);
  padding: 8px 16px; border-radius: 999px; margin-bottom: 30px; font-weight: 500;
  box-shadow: var(--card-shadow);
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  line-height: 1.02; letter-spacing: -0.035em;
  margin-bottom: 28px;
}
.hero__title span { display: block; }
.muted-line { color: var(--muted); }
.accent-line { color: var(--accent-text); }

.hero__sub {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--muted); max-width: 620px; margin-bottom: 36px;
}
.hero__sub strong { color: var(--text); font-weight: 600; }
.hero__sub em { color: var(--accent-text); font-style: normal; font-weight: 600; }

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

.hero__marquee {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
  list-style: none; padding-top: 28px; border-top: 1px solid var(--line);
  font-family: var(--font-display); font-size: 14px; color: var(--muted-2);
  text-transform: uppercase; letter-spacing: 0.06em;
}

/* ---------- Secciones genéricas ---------- */
.section { padding: 90px 0; }
.section__head { max-width: 720px; margin-bottom: 56px; }
.eyebrow {
  display: inline-block; font-family: var(--font-display);
  font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-text); margin-bottom: 16px;
}
.section__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.08; letter-spacing: -0.03em;
}
.lead { color: var(--muted); font-size: 1.1rem; margin-bottom: 22px; }
.lead strong { color: var(--text); }

/* ---------- Cards / Servicios ---------- */
.cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .3s var(--ease), border-color .3s, background .3s, box-shadow .3s;
  position: relative; overflow: hidden;
  box-shadow: var(--card-shadow);
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); background: var(--surface-2); }
.card__num { font-family: var(--font-display); font-size: 13px; color: var(--accent-text); font-weight: 600; letter-spacing: 0.08em; }
.card h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; letter-spacing: -0.02em; }
.card p { color: var(--muted); font-size: 0.98rem; }
.card--accent {
  background: linear-gradient(160deg, var(--tint), transparent);
  border-color: var(--tint-line);
}
.card--accent h3 { color: var(--text); }
.card__link { font-family: var(--font-display); font-weight: 600; color: var(--accent-text); margin-top: 6px; font-size: 0.98rem; }
.card__link:hover { opacity: 0.8; }

/* ---------- Split / Enfoque ---------- */
.section--split { background: linear-gradient(180deg, transparent, var(--surface-2)); }
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.split__left .section__title { margin: 16px 0 24px; }
.split__right { display: flex; flex-direction: column; gap: 14px; }
.stat {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 28px;
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: var(--card-shadow);
}
.stat__num { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; line-height: 1; color: var(--accent-text); letter-spacing: -0.02em; }
.stat__label { color: var(--muted); font-size: 0.98rem; }

/* ---------- Proceso / Steps ---------- */
.steps {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.step {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px 24px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .3s var(--ease), border-color .3s;
  box-shadow: var(--card-shadow);
}
.step:hover { transform: translateY(-4px); border-color: var(--line-2); }
.step__num {
  font-family: var(--font-display); font-size: 14px; font-weight: 700;
  color: var(--accent-ink); background: var(--accent);
  width: 38px; height: 38px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 6px;
}
.step h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Lista de espera / Form ---------- */
.section--cta { padding-top: 70px; }
.waitlist {
  display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 56px; align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 54px;
  box-shadow: var(--card-shadow);
}
.waitlist__copy .section__title { margin: 16px 0 22px; }
.ticks { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.ticks li { position: relative; padding-left: 30px; color: var(--muted); font-size: 0.98rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--tint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237C9E18' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

/* form */
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-display); font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.optional { color: var(--muted-2); font-weight: 400; font-family: var(--font-body); }

.field input, .field textarea, .field select {
  width: 100%; font-family: var(--font-body); font-size: 16px;
  color: var(--text); background: var(--bg-2);
  border: 1px solid var(--line-2); border-radius: 12px;
  padding: 14px 16px; transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 100px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent-text);
  box-shadow: 0 0 0 3px var(--tint); background: var(--surface);
}
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #e0524f; }
.field__error { display: block; color: #d23c39; font-size: 13px; margin-top: 6px; min-height: 0; }
[data-theme="dark"] .field__error { color: #ff8a8a; }

.phone { display: grid; grid-template-columns: 130px 1fr; gap: 10px; }
.phone select {
  cursor: pointer; padding-right: 8px;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239A9AA3' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form__note { color: var(--muted-2); font-size: 13px; margin-top: 14px; text-align: center; }

/* spinner / loading */
.btn__spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(17,22,10,0.3); border-top-color: var(--accent-ink);
  animation: spin .7s linear infinite; display: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn.loading .btn__label { opacity: 0.6; }
.btn.loading .btn__spinner { display: inline-block; }

/* éxito */
.form__success {
  text-align: center; padding: 20px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  animation: fadeUp .5s var(--ease);
}
.form__success-mark { display: flex; }
.form__success h3 { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; }
.form__success p { color: var(--muted); max-width: 380px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq__item {
  border-bottom: 1px solid var(--line); padding: 6px 0;
}
.faq__item summary {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 500;
  padding: 22px 40px 22px 0; cursor: pointer; list-style: none; position: relative;
  transition: color .2s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; color: var(--accent-text); font-weight: 400; transition: transform .3s;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item summary:hover { color: var(--accent-text); }
.faq__item p { color: var(--muted); padding: 0 40px 22px 0; }

/* ---------- CTA final ---------- */
.finalcta__inner {
  text-align: center; max-width: 700px; margin: 0 auto;
  background: linear-gradient(160deg, var(--surface), var(--tint));
  border: 1px solid var(--line); border-radius: 28px; padding: 64px 40px;
  box-shadow: var(--card-shadow);
}
.finalcta h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 600; letter-spacing: -0.03em; margin-bottom: 16px; }
.finalcta p { color: var(--muted); font-size: 1.1rem; margin-bottom: 30px; }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: 40px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer__brand .brand { margin-bottom: 16px; }
.footer__brand p { color: var(--muted); font-size: 0.95rem; max-width: 300px; }
.footer__nav { display: flex; flex-direction: column; gap: 12px; }
.footer__nav a { color: var(--muted); font-size: 0.95rem; transition: color .2s; }
.footer__nav a:hover { color: var(--text); }
.footer__meta { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.footer__mail { font-family: var(--font-display); font-weight: 500; color: var(--text); border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }
.footer__mail:hover { border-color: var(--accent-text); color: var(--accent-text); }
.footer__copy { color: var(--muted-2); font-size: 0.85rem; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .waitlist { grid-template-columns: 1fr; gap: 36px; padding: 40px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav__links { display: none; }
  .nav__right .status { display: none; }
  .nav__toggle { display: flex; }

  /* menú móvil */
  .nav__links.open {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 70px; left: 0; right: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: 16px 24px 24px; margin-left: 0;
  }
  .nav__links.open a { padding: 12px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }

  .section { padding: 64px 0; }
  .hero { padding: 56px 0 50px; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .waitlist { padding: 28px 22px; }
  .phone { grid-template-columns: 116px 1fr; }
  .finalcta__inner { padding: 48px 24px; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
