/* ============================================================
   RoganLabs — Landing page
   Estética: laboratorio nocturno. Verde bosque profundo,
   verde menta como único acento, tipografía geométrica y
   detalles monospace. Solo tema oscuro (identidad de marca).
   ============================================================ */

:root {
  /* Marca (muestreado de los assets oficiales) */
  --forest-950: #0b1712;
  --forest-900: #10201b;   /* fondo de marca */
  --forest-800: #142921;
  --forest-700: #1c3f32;   /* forma decorativa del banner */
  --mint: #5be3a9;
  --mint-bright: #8df0c6;
  --cream: #f2f7f4;

  /* Oro champagne: acento editorial (palabras destacadas).
     El menta queda como acento funcional (botones, links, UI). */
  --gold-bright: #f7e4ae;
  --gold: #e8c46a;
  --gold-deep: #c9973f;

  /* Tokens de uso */
  --bg: var(--forest-900);
  --bg-deep: var(--forest-950);
  --surface: linear-gradient(180deg, #16291f 0%, #121f19 100%);
  --border: rgba(242, 247, 244, 0.08);
  --border-strong: rgba(91, 227, 169, 0.35);
  --text: var(--cream);
  --text-muted: #9db8aa;
  --primary: var(--mint);
  --primary-contrast: #08130e;
  --accent-soft: rgba(91, 227, 169, 0.10);
  --nav-bg: rgba(16, 32, 27, 0.82);
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
  --glow: 0 10px 34px rgba(91, 227, 169, 0.28);

  --radius: 22px;
  --radius-sm: 14px;
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --font-accent: "Unbounded", system-ui, sans-serif;
}

/* Palabra destacada: display dorada, más grande que el texto normal.
   Rompe la retícula de Sora a propósito. */
.hl {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 1.5em;
  line-height: 1.2;
  background: linear-gradient(95deg, var(--gold-bright) 0%, var(--gold) 48%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Que los anclajes no queden tapados por la nav fija */
[id] { scroll-margin-top: 92px; }

/* Solo para lectores de pantalla */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.015em; }

a { color: inherit; text-decoration: none; }

::selection { background: rgba(91, 227, 169, 0.35); color: var(--cream); }

/* ---------- Cursor circular (solo puntero fino; lo activa el JS) ----------
   Un punto menta que sigue al mouse al instante y un anillo que lo
   persigue con retardo. Sobre elementos interactivos el anillo crece y
   se llena; sobre los dorados cambia a oro. */
.has-cursor, .has-cursor * { cursor: none !important; }
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
}
.cursor-dot {
  width: 7px;
  height: 7px;
  background: var(--mint);
  z-index: 202;
}
.cursor-ring {
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(91, 227, 169, 0.6);
  z-index: 201;
  transition: width 0.25s ease, height 0.25s ease, background 0.25s ease,
              border-color 0.25s ease;
}
.cursor-ring--hot {
  width: 60px;
  height: 60px;
  background: rgba(91, 227, 169, 0.12);
  border-color: var(--mint);
}
.cursor-ring--gold {
  border-color: var(--gold);
}
.cursor-ring--gold.cursor-ring--hot {
  background: rgba(232, 196, 106, 0.12);
}

/* ---------- Grano de película (muy sutil) ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.7'/%3E%3C/svg%3E");
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 5vw, 3rem);
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background 0.35s ease, border-color 0.35s ease;
}
/* Sobre el video del hero: transparente; al scrollear, sólida. */
.nav--overlay {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.nav__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  color: var(--cream);
  line-height: 1;
}
.nav__brand-accent { color: var(--mint); }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2rem);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav__links a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.nav__links a:hover { color: var(--mint); }

.nav__actions { display: flex; align-items: center; gap: 0.75rem; }

.nav__burger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--cream);
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav__burger svg { width: 22px; height: 22px; }
.nav__burger .burger-close { display: none; }
.nav--open .nav__burger .burger-open { display: none; }
.nav--open .nav__burger .burger-close { display: block; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.78rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease,
              border-color 0.25s ease, color 0.25s ease;
}
.btn--primary {
  background: var(--mint);
  color: var(--primary-contrast);
}
.btn--primary:hover {
  background: var(--mint-bright);
  transform: translateY(-2px);
  box-shadow: var(--glow);
}
.btn--ghost {
  border: 1px solid rgba(242, 247, 244, 0.22);
  color: var(--cream);
}
.btn--ghost:hover {
  border-color: var(--mint);
  color: var(--mint);
  transform: translateY(-2px);
}
.btn--sm { padding: 0.6rem 1.15rem; font-size: 0.9rem; }
.btn--lg { padding: 0.95rem 1.9rem; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  /* Respaldo si el video no carga */
  background:
    radial-gradient(60% 50% at 70% 30%, rgba(91, 227, 169, 0.10), transparent 65%),
    radial-gradient(50% 60% at 20% 80%, rgba(28, 63, 50, 0.85), transparent 70%),
    var(--forest-950);
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 23, 18, 0.55) 0%, rgba(11, 23, 18, 0.25) 40%, var(--forest-900) 100%),
    radial-gradient(100% 70% at 50% 45%, transparent 40%, rgba(11, 23, 18, 0.55) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 60rem;
  padding: 7.5rem 1.25rem 4.5rem;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint);
  border: 1px solid rgba(91, 227, 169, 0.30);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  margin-bottom: 1.6rem;
  background: rgba(11, 23, 18, 0.45);
  backdrop-filter: blur(6px);
}

.hero__title {
  font-size: clamp(2.7rem, 7.4vw, 5.2rem);
  font-weight: 800;
  line-height: 1.04;
  color: var(--cream);
}
.hero__line { display: block; }
.hero__line--top {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.44em;
  letter-spacing: 0.01em;
  margin-bottom: 0.1em;
}
.hero__line--big {
  font-size: 1.14em;
  letter-spacing: -0.02em;
}
.hero__line--mid {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.44em;
  margin: 0.34em 0 0.2em;
}

/* Palabra rotativa del negocio */
.biz-carousel {
  position: relative;
  height: 1.22em;
}
/* La palabra se ancla por su borde SUPERIOR: nunca puede subirse
   sobre la línea "para tu", sin importar la métrica de la fuente.
   line-height 1.3: la caja debe cubrir ascendentes y descendentes,
   si no el background-clip:text deja las colas sin pintar. */
.biz-carousel { height: 1.85em; }
.cw {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 1.35em;
  line-height: 1.3;
  letter-spacing: -0.01em;
  background: linear-gradient(95deg, var(--gold-bright) 5%, var(--gold) 50%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 26px rgba(232, 196, 106, 0.35));
}

.ia-accent { color: var(--mint); }

.hero__subtitle {
  max-width: 44rem;
  margin: 1.4rem auto 2rem;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: #c4d6ca;
}
.hero__subtitle strong { color: var(--cream); }

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

/* ---------- Secciones ---------- */
.section {
  position: relative;
  max-width: 74rem;
  margin: 0 auto;
  padding: clamp(4.5rem, 9vw, 7.5rem) clamp(1.25rem, 5vw, 3rem);
}
.section--alt {
  max-width: none;
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.section--alt > * { max-width: 74rem; margin-left: auto; margin-right: auto; }
.section--narrow > .faq { max-width: 50rem; margin-left: auto; margin-right: auto; }

.section__head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.8rem);
}
.section__head--tight { margin-bottom: 1.8rem; }

.section__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 0.9rem;
}
.section__kicker::before {
  content: "";
  width: 0.55em;
  height: 0.55em;
  background: var(--mint);
  border-radius: 2px;
}

.section__title {
  font-size: clamp(1.85rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.9rem;
}
.section__desc { color: var(--text-muted); font-size: 1.05rem; }

/* Letra "r" gigante decorativa */
.ornament {
  position: absolute;
  right: -0.08em;
  bottom: -0.42em;
  z-index: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 34vmax;
  line-height: 1;
  color: rgba(91, 227, 169, 0.045);
  pointer-events: none;
  user-select: none;
}

/* ---------- Grillas y tarjetas ---------- */
.grid {
  display: grid;
  gap: 1.3rem;
  position: relative;
  z-index: 1;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow), 0 0 0 1px rgba(91, 227, 169, 0.10);
}

/* Qué hacemos */
.feature { padding: 1.9rem 1.7rem; }
.feature__icon {
  width: 76px;
  height: 76px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--accent-soft);
  border: 1px solid rgba(91, 227, 169, 0.18);
  margin-bottom: 1.3rem;
}
.feature__icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature h3 { font-size: 1.18rem; margin-bottom: 0.55rem; }
.feature p { color: var(--text-muted); font-size: 0.97rem; }

/* Cómo trabajamos */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem;
  position: relative;
  z-index: 1;
  counter-reset: step;
}
.step {
  padding: 1.6rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(20, 41, 33, 0.45);
  transition: border-color 0.28s ease, background 0.28s ease;
}
.step:hover { border-color: var(--border-strong); background: rgba(20, 41, 33, 0.8); }
.step__num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(91, 227, 169, 0.55);
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.08rem; margin-bottom: 0.5rem; }
.step p { color: var(--text-muted); font-size: 0.94rem; }

/* Productos y precios */
.pricing { padding: 1.8rem 1.7rem; }
.pricing__group {
  font-size: 1.05rem;
  color: var(--mint);
  margin-bottom: 1.1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}
.pricing__list { list-style: none; }
.pricing__list li {
  padding: 0.78rem 0 0.78rem 1.15rem;
  position: relative;
  border-bottom: 1px dashed rgba(242, 247, 244, 0.09);
}
.pricing__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.28rem;
  width: 0.42rem;
  height: 0.42rem;
  background: var(--mint);
  border-radius: 2px;
}
.pricing__list li:last-child { border-bottom: none; }
.pricing__list li strong {
  display: block;
  font-weight: 600;
  color: var(--cream);
  font-size: 0.98rem;
}
.pricing__list li small {
  display: block;
  color: var(--text-muted);
  font-size: 0.87rem;
  line-height: 1.5;
  margin-top: 0.1rem;
}

/* Ítems de Soluciones: magnéticos y clickeables (la ficha se abre con JS) */
#productos .pricing__list li {
  padding: 0.78rem 0.85rem 0.78rem 1.4rem;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  will-change: transform;
  transition: background 0.25s ease;
}
#productos .pricing__list li::before { left: 0.4rem; }
#productos .pricing__list li:hover { background: rgba(91, 227, 169, 0.07); }
#productos .card { overflow: visible; }

/* Ficha expandida sobre la sección */
.sol-panel {
  position: absolute;
  z-index: 30;
  background: linear-gradient(180deg, #1a3126, #142720);
  border: 1px solid rgba(91, 227, 169, 0.35);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  padding: clamp(1.5rem, 4vw, 2.8rem);
  overflow: hidden;   /* nunca barras de scroll */
  visibility: hidden;
}
.sol-panel__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  height: 100%;
}
.sol-panel__kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 0.7rem;
}
.sol-panel__title {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  line-height: 1.2;
  background: linear-gradient(95deg, var(--gold-bright), var(--gold) 50%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.6rem;
}
.sol-panel__lead { color: var(--text-muted); margin-bottom: 1.3rem; max-width: 36rem; }
.sol-panel__list { list-style: none; margin-bottom: 1.6rem; }
.sol-panel__list li {
  position: relative;
  padding: 0.38rem 0 0.38rem 1.5rem;
  font-size: 0.98rem;
}
.sol-panel__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--mint);
  font-weight: 700;
}
.sol-panel__icon {
  justify-self: center;
  width: min(240px, 100%);
  aspect-ratio: 1;
  border-radius: 30px;
  border: 1px solid rgba(91, 227, 169, 0.3);
  overflow: hidden;
  box-shadow: 0 0 60px rgba(91, 227, 169, 0.15);
}
.sol-panel__icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sol-panel__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: rgba(16, 32, 27, 0.6);
  color: var(--cream);
  font-size: 1.05rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.sol-panel__close:hover { border-color: var(--mint); color: var(--mint); }

@media (max-width: 900px) {
  /* En mobile la ficha es solo texto, con altura del contenido */
  .sol-panel__grid { grid-template-columns: 1fr; }
  .sol-panel__icon { display: none; }
}

.pricing__note {
  margin-top: 1.6rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 52rem;
}
.pricing__note a { color: var(--mint); font-weight: 600; }
.pricing__note a:hover { color: var(--mint-bright); }

/* Proyectos */
.project { overflow: hidden; display: flex; flex-direction: column; }
.project__banner {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--forest-800);
}
.project__banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s ease;
}
.project:hover .project__banner img { transform: scale(1.045); }
.project__body { padding: 1.5rem 1.6rem 1.7rem; }
.project__body h3 { font-size: 1.18rem; margin-bottom: 0.55rem; }
.project__ext {
  color: var(--mint);
  font-size: 0.82em;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.project:hover .project__ext { opacity: 1; }
.project__body p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1rem; }
.project__tags { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--mint);
  background: var(--accent-soft);
  border: 1px solid rgba(91, 227, 169, 0.20);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
}

/* FAQ */
.faq { display: flex; flex-direction: column; }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0.2rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.06rem;
  cursor: pointer;
  transition: color 0.2s ease;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--mint);
  transition: transform 0.25s ease;
}
.faq__item[open] summary { color: var(--mint); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary:hover { color: var(--mint); }
.faq__item p {
  padding: 0 2.5rem 1.4rem 0.2rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Contacto */
.section--contact { padding-top: clamp(3rem, 6vw, 5rem); }
.contact-panel {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  background:
    radial-gradient(70% 120% at 50% -20%, rgba(91, 227, 169, 0.12), transparent 60%),
    var(--surface);
}
.contact-panel .section__head { max-width: 40rem; margin-left: auto; margin-right: auto; }
.contact-panel .section__kicker { justify-content: center; }
.contact-panel__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
  margin-top: 0.5rem;
}
.contact-panel__alt {
  position: relative;
  z-index: 1;
  margin-top: 1.6rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.contact-panel__alt a { color: var(--mint); font-weight: 600; }
.ornament--contact { font-size: 22rem; right: -0.06em; bottom: -0.5em; }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 1.8rem clamp(1.25rem, 5vw, 3rem);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer a { color: var(--cream); }
.footer a:hover { color: var(--mint); }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav__links {
    position: fixed;
    top: 64px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.6rem 1.4rem 1.2rem;
    background: var(--forest-900);
    border-bottom: 1px solid var(--border);
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .nav--open .nav__links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav__links a { padding: 0.8rem 0; width: 100%; font-size: 1.05rem; }
  .nav__burger { display: inline-flex; }
  .nav--open { background: var(--forest-900); }
}

@media (max-width: 680px) {
  .grid--3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1 1 auto; justify-content: center; }
  .contact-panel__actions .btn { width: 100%; justify-content: center; }
}

/* La palabra dorada del hero se achica antes que el resto del título
   para que los rubros largos no desborden en pantallas angostas */
@media (max-width: 1024px) {
  .cw { font-size: 1.05em; }
  .biz-carousel { height: 1.45em; }
}
@media (max-width: 680px) {
  .cw { font-size: 0.85em; }
  .biz-carousel { height: 1.18em; }
}

/* ============================================================
   Página de demos
   ============================================================ */

.section--demos { padding-top: clamp(7rem, 12vw, 9rem); }

/* Solapas */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 2.2rem;
}
.tab {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  color: #c9d8ce;
  background: rgba(20, 41, 33, 0.45);
  border: 1px solid rgba(242, 247, 244, 0.14);
  border-radius: 999px;
  padding: 0.6rem 1.1rem;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.tab:hover { color: var(--mint); border-color: var(--border-strong); }
.tab[aria-selected="true"] {
  background: var(--mint);
  border-color: var(--mint);
  color: var(--primary-contrast);
}

.tabpanel[hidden] { display: none; }

/* Intro: texto + visual */
.demo__intro {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.demo__text h2 {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  margin-bottom: 0.7rem;
}
.demo__text > p { color: #b7cdbf; margin-bottom: 1.1rem; }

.demo__bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.demo__bullets li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.96rem;
}
.demo__bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--mint);
  font-weight: 700;
}

.demo__visual { position: relative; }

/* Sticker decorativo (tile de vidrio) */
.demo__sticker {
  position: absolute;
  right: -10px;
  bottom: -16px;
  width: 96px;
  height: 96px;
  border-radius: 22px;
  border: 1px solid rgba(91, 227, 169, 0.30);
  box-shadow: var(--shadow);
  object-fit: cover;
}
.demo__sticker--ghost {
  position: static;
  width: 132px;
  height: 132px;
  margin-top: 1.3rem;
}

/* Mock genérico */
.mock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--shadow);
}
.mock__bar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
}
.mock__bar img { border-radius: 9px; }
.mock__who { display: flex; flex-direction: column; line-height: 1.35; flex: 1; }
.mock__who strong { font-size: 0.94rem; }
.mock__who span { color: var(--text-muted); font-size: 0.78rem; }
.mock__badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--mint);
  background: var(--accent-soft);
  border: 1px solid rgba(91, 227, 169, 0.25);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  white-space: nowrap;
}

/* Chat */
.mock__chatbody { display: flex; flex-direction: column; gap: 0.55rem; }
.bubble {
  max-width: 86%;
  padding: 0.6rem 0.85rem;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.45;
}
.bubble time {
  display: block;
  text-align: right;
  font-size: 0.66rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}
.bubble--in {
  align-self: flex-start;
  background: rgba(242, 247, 244, 0.07);
  border-bottom-left-radius: 4px;
}
.bubble--out {
  align-self: flex-end;
  background: rgba(91, 227, 169, 0.14);
  border: 1px solid rgba(91, 227, 169, 0.22);
  border-bottom-right-radius: 4px;
}

/* Tienda */
.mock__row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.45rem 0;
  border-bottom: 1px dashed rgba(242, 247, 244, 0.09);
}
.mock__row em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--cream);
}
.mock__row--total { border-bottom: none; font-weight: 700; justify-content: space-between; }
.mock__thumb {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  background: var(--accent-soft);
  border-radius: 11px;
}
.mock__pay {
  display: block;
  text-align: center;
  background: var(--mint);
  color: var(--primary-contrast);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 999px;
  padding: 0.65rem;
}
.mock__toast {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--mint);
  background: rgba(91, 227, 169, 0.08);
  border: 1px solid rgba(91, 227, 169, 0.22);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
}

/* Panel de clientes */
.mock__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.mock__stat {
  background: rgba(242, 247, 244, 0.045);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
}
.mock__stat span { display: block; color: var(--text-muted); font-size: 0.74rem; }
.mock__stat strong { display: block; font-family: var(--font-display); font-size: 1.12rem; margin: 0.15rem 0; }
.mock__stat em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--mint);
}
.mock__chart {
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
  height: 86px;
  padding: 0.3rem 0.2rem 0;
}
.mock__chart i {
  flex: 1;
  height: var(--h);
  background: linear-gradient(180deg, var(--mint), rgba(91, 227, 169, 0.25));
  border-radius: 5px 5px 0 0;
  opacity: 0.85;
}
.mock__ask span {
  display: inline-block;
  background: rgba(242, 247, 244, 0.07);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
}
.mock__ask p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--mint);
  background: var(--accent-soft);
  border: 1px solid rgba(91, 227, 169, 0.22);
  border-radius: 12px;
  padding: 0.6rem 0.85rem;
}

/* Turnos */
.mock__slot {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.55rem 0.3rem;
  border-bottom: 1px dashed rgba(242, 247, 244, 0.09);
}
.mock__slot:last-child { border-bottom: none; }
.mock__slot em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--cream);
}
.mock__slot--free {
  background: rgba(91, 227, 169, 0.06);
  border: 1px dashed rgba(91, 227, 169, 0.35);
  border-radius: 12px;
  padding: 0.55rem 0.7rem;
}

/* Documentos */
.mock__file {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  background: rgba(242, 247, 244, 0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
}
.mock__extract { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.mock__extract div {
  background: rgba(242, 247, 244, 0.045);
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
}
.mock__extract span { display: block; color: var(--text-muted); font-size: 0.7rem; }
.mock__extract strong { font-size: 0.84rem; }

/* Día a día */
.mock__task {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0.2rem;
  border-bottom: 1px dashed rgba(242, 247, 244, 0.09);
}
.mock__task:last-child { border-bottom: none; }
.mock__task em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}
.mock__task span { flex: 1; font-size: 0.9rem; }
.mock__task strong { color: var(--mint); }
.mock__task--next { opacity: 0.7; }

/* Flujo paso a paso */
.flow {
  display: flex;
  align-items: stretch;
  gap: 0.6rem;
  margin-top: 2.2rem;
  flex-wrap: wrap;
}
.flow__step {
  flex: 1;
  min-width: 10rem;
  background: rgba(20, 41, 33, 0.45);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.15rem 1rem;
  transition: border-color 0.28s ease, background 0.28s ease;
}
.flow__step:hover { border-color: var(--border-strong); background: rgba(20, 41, 33, 0.8); }
.flow__step p { font-size: 0.88rem; color: var(--text-muted); }
/* Número grande estilo display, como los pasos de "Cómo trabajamos" */
.flow__num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(91, 227, 169, 0.55);
  margin-bottom: 0.55rem;
}
/* Paso final = éxito: dorado y blanco */
.flow__step--goal {
  border-color: rgba(232, 196, 106, 0.45);
  background:
    radial-gradient(130% 150% at 100% 0%, rgba(232, 196, 106, 0.14), transparent 60%),
    rgba(20, 41, 33, 0.6);
}
.flow__step--goal:hover {
  border-color: rgba(232, 196, 106, 0.7);
  background:
    radial-gradient(130% 150% at 100% 0%, rgba(232, 196, 106, 0.2), transparent 65%),
    rgba(20, 41, 33, 0.85);
}
.flow__step--goal .flow__num {
  -webkit-text-stroke: 0;
  background: linear-gradient(160deg, var(--gold-bright) 10%, var(--gold) 55%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 14px rgba(232, 196, 106, 0.35));
}
.flow__step--goal p { color: var(--cream); }
.flow__arrow {
  align-self: center;
  color: var(--mint);
  flex: 0 0 auto;
}
.flow__arrow svg { width: 20px; height: 20px; display: block; }

/* Ejemplos rotativos */
.demo__cases {
  display: grid;
  margin-top: 1.8rem;
}
.demo__case {
  grid-area: 1 / 1;
  opacity: 0;
  background: var(--accent-soft);
  border: 1px solid rgba(91, 227, 169, 0.18);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  font-size: 0.95rem;
}
.demo__case:first-child { opacity: 1; }
.demo__case strong {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 1.5em;
  line-height: 1.2;
  color: var(--gold);
}
.demo__dots { display: flex; gap: 0.45rem; margin-top: 0.9rem; justify-content: center; }
.demo__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(242, 247, 244, 0.2);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}
.demo__dot--on { background: var(--mint); transform: scale(1.25); }

.demo__cta { margin-top: 1.8rem; text-align: center; }
.btn--whatsapp {
  background: var(--mint);
  color: var(--primary-contrast);
}
.btn--whatsapp:hover {
  background: var(--mint-bright);
  transform: translateY(-2px);
  box-shadow: var(--glow);
}

@media (max-width: 980px) {
  .demo__intro { grid-template-columns: 1fr; }
  .demo__sticker { right: 6px; bottom: -12px; }
}
@media (max-width: 760px) {
  .flow { flex-direction: column; }
  .flow__step { min-width: 0; }
  .flow__arrow { transform: rotate(90deg); align-self: flex-start; margin-left: 1.1rem; }
}

/* ---------- Accesibilidad: menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
