/* ═══════════════════════════════════════════════════════════════
   R2Codes — Portal corporativo
   Marca: naranja #F4631E · azul marino #2E3A4E · script (logo)
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Marca (tomada del logo y del sitio) */
  --orange: #F4631E;
  --orange-600: #D8521A;
  --orange-300: #FF8A4D;
  --orange-100: #FDE8DD;
  --navy: #2E3A4E;
  --navy-700: #24334E;
  --navy-800: #1B2740;
  --navy-900: #131C2E;
  --navy-950: #0E1522;

  /* Neutros */
  --bg: #FFFFFF;
  --bg-alt: #F6F8FB;
  --ink: #222B3A;
  --muted: #5A6577;
  --line: #E6EAF1;
  --green: #22A55B;
  --green-soft: #E3F5EB;
  --red: #D8402F;
  --red-soft: #FBE6E3;
  --amber-soft: #FCF0DC;

  /* Tipografía */
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-script: "Yellowtail", cursive;

  /* Forma */
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(19, 28, 46, .06), 0 4px 14px rgba(19, 28, 46, .05);
  --shadow-md: 0 6px 28px rgba(19, 28, 46, .10);
  --shadow-lg: 0 20px 60px rgba(19, 28, 46, .22);
  --shadow-orange: 0 10px 30px rgba(244, 99, 30, .32);

  --container: 1180px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--orange); color: #fff; }
:focus-visible { outline: 3px solid var(--orange-300); outline-offset: 2px; border-radius: 6px; }

section[id] { scroll-margin-top: 5.2rem; } /* anclajes bajo el navbar fijo */

.container { width: min(var(--container), 100% - 3rem); margin-inline: auto; }
.container-narrow { width: min(820px, 100% - 3rem); margin-inline: auto; }
.center { text-align: center; margin-top: 3rem; }

.ic { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ── Botones ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 700; border-radius: 999px; border: 0;
  padding: .8rem 1.5rem; font-size: .95rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  will-change: transform;
}
.btn-lg { padding: 1rem 1.9rem; font-size: 1.02rem; }
.btn-sm { padding: .55rem 1.1rem; font-size: .88rem; }
.btn:active { transform: scale(.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--orange-300), var(--orange) 55%, var(--orange-600));
  color: #fff; box-shadow: var(--shadow-orange);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(244, 99, 30, .42); }

.btn-ghost { background: rgba(255,255,255,.06); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.28); }
.btn-ghost:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }

.btn-white { background: #fff; color: var(--navy-900); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0,0,0,.25); }

.btn-ghost-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }

/* ── Navbar ────────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 60;
  padding: 1rem 0;
  transition: padding .3s var(--ease), background .3s, box-shadow .3s;
}
.nav.scrolled {
  padding: .55rem 0;
  background: rgba(14, 21, 34, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,.07), 0 10px 30px rgba(0,0,0,.25);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: .1rem; }
.brand-mark {
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, var(--orange-300), var(--orange) 60%, var(--orange-600));
  color: #fff; font-family: var(--font-script); font-size: 1.35rem;
  display: grid; place-items: center; padding-bottom: .35rem;
  box-shadow: 0 4px 14px rgba(244, 99, 30, .45);
}
.brand-name { font-family: var(--font-script); font-size: 1.75rem; color: #fff; line-height: 1; padding-bottom: .3rem; }

.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a:not(.btn) {
  color: rgba(255,255,255,.78); font-weight: 600; font-size: .93rem;
  position: relative; transition: color .2s;
}
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px;
  background: var(--orange); border-radius: 2px; transition: right .3s var(--ease);
}
.nav-links a:not(.btn):hover { color: #fff; }
.nav-links a:not(.btn):hover::after { right: 0; }
.nav-cta { margin-left: .4rem; }

.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; padding: .5rem;
}
.nav-burger span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--navy-950), var(--navy-900) 70%, var(--navy-800));
  color: #fff;
  padding: 9.5rem 0 6.5rem;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5;
  will-change: transform;
}
.blob-1 { width: 560px; height: 560px; right: -160px; top: -180px;
  background: radial-gradient(circle, rgba(244,99,30,.55), transparent 65%); }
.blob-2 { width: 460px; height: 460px; left: -180px; bottom: -220px;
  background: radial-gradient(circle, rgba(46,88,166,.4), transparent 65%); }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, #000 30%, transparent 75%);
}

.hero-inner {
  position: relative;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.5rem; align-items: center;
}
.eyebrow {
  color: var(--orange-300); font-weight: 800; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .14em; margin-bottom: 1.1rem;
}
.eyebrow-orange { color: var(--orange); }

.hero h1 {
  font-size: clamp(2.5rem, 5.2vw, 3.9rem);
  line-height: 1.08; font-weight: 800; letter-spacing: -.02em;
}
.script-accent {
  font-family: var(--font-script); font-weight: 400; font-style: normal;
  color: var(--orange); font-size: 1.12em; letter-spacing: 0;
  text-shadow: 0 6px 30px rgba(244, 99, 30, .35);
}
.hero-sub { margin-top: 1.4rem; font-size: 1.1rem; color: rgba(255,255,255,.75); max-width: 34rem; }
.hero-sub strong { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }
.hero-note {
  display: flex; align-items: center; gap: .5rem;
  margin-top: 1.4rem; font-size: .88rem; color: rgba(255,255,255,.6);
}
.hero-note .ic { color: var(--green); stroke-width: 3; }

/* Entrada del hero (CSS pura; Motion la realza si carga) */
.hero-anim { opacity: 0; transform: translateY(26px); filter: blur(5px);
  animation: heroIn .85s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes heroIn { to { opacity: 1; transform: none; filter: none; } }

/* Maqueta POS */
.hero-visual { position: relative; }
.mock {
  background: #fff; color: var(--ink); border-radius: 22px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.08);
  padding: 1.1rem 1.3rem 1.3rem; max-width: 30rem; margin-left: auto;
  transform-style: preserve-3d; will-change: transform;
}
.mock-bar {
  display: flex; align-items: center; gap: .4rem;
  padding-bottom: .8rem; margin-bottom: .9rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted); font-size: .8rem;
}
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: #E3E7EF; }
.mock-bar span:nth-child(1) { background: #F5846C; }
.mock-bar span:nth-child(2) { background: #F5C06C; }
.mock-bar span:nth-child(3) { background: #8FD6A8; }
.mock-bar strong { margin-left: auto; font-weight: 600; color: var(--navy); font-size: .78rem; }

.mock-row {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .65rem 0; border-bottom: 1px dashed var(--line); font-size: .93rem;
}
.mock-row small { color: var(--muted); display: block; font-size: .76rem; }
.mock-row em { color: var(--muted); font-style: normal; font-size: .82em; }
.mock-product strong { font-size: .95rem; }
.mock-price { text-align: right; font-weight: 700; color: var(--navy); font-size: .9rem; line-height: 1.35; }
.mock-sub { color: var(--orange-600); }
.mock-total {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: .9rem; font-weight: 800; color: var(--navy); font-size: 1.05rem;
}
.mock-total strong { color: var(--orange); font-size: 1.3rem; }

.chip-float {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: .5rem;
  background: #fff; color: var(--ink); font-weight: 700; font-size: .8rem;
  padding: .6rem .95rem; border-radius: 999px; box-shadow: var(--shadow-md);
  white-space: nowrap; will-change: transform;
}
.chip-offline { top: -18px; right: -8px; }
.chip-margin { bottom: -16px; left: -10px; }

/* Ventana de código (ilustración "software" del hero del index) */
.mock-code { padding-bottom: .5rem; }
.code-lines { padding: 1.2rem .6rem 1.4rem; display: grid; gap: .62rem; }
.cl { height: 11px; border-radius: 6px; }
.c-orange { background: linear-gradient(90deg, var(--orange-300), var(--orange)); }
.c-navy { background: #C7D0DF; }
.c-gray { background: #E9EDF3; }
.c-green { background: #9BD9B4; }
.cl-cursor {
  width: 14px; background: var(--orange);
  animation: clBlink 1.1s steps(1) infinite;
}
@keyframes clBlink { 50% { opacity: 0; } }

.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot-red { background: #E8483A; box-shadow: 0 0 0 4px rgba(232, 72, 58, .18); }
.dot-green { background: var(--green); box-shadow: 0 0 0 4px rgba(34, 165, 91, .16); }

/* ── Marquee ───────────────────────────────────────────────── */
.marquee {
  overflow: hidden; padding: 1.15rem 0;
  background: var(--orange-100);
  border-block: 1px solid rgba(244, 99, 30, .18);
}
.marquee-track {
  display: flex; align-items: center; gap: 2.4rem; width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-weight: 800; color: var(--orange-600);
  text-transform: uppercase; letter-spacing: .1em; font-size: .82rem; white-space: nowrap;
}
.marquee-track i { color: rgba(244, 99, 30, .5); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Secciones ─────────────────────────────────────────────── */
.section { padding: 6.5rem 0; position: relative; }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 46rem; margin-bottom: 3.5rem; }
.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.15;
  font-weight: 800; letter-spacing: -.02em; color: var(--navy-900);
}
.section-sub { margin-top: 1rem; color: var(--muted); font-size: 1.05rem; }
.section-sub strong { color: var(--navy-900); }

.section-dark {
  background:
    radial-gradient(60% 50% at 80% 0%, rgba(244, 99, 30, .12), transparent 60%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950));
  color: #fff; overflow: hidden;
}
.section-dark .section-head h2 { color: #fff; }
.section-dark .section-sub { color: rgba(255,255,255,.72); }
.section-dark .section-sub strong { color: var(--orange-300); }

/* ── Cards / spotlight (patrón 21st.dev) ───────────────────── */
.grid { display: grid; gap: 1.4rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.7rem 1.6rem;
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(244, 99, 30, .35); }

.spotlight::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%),
              rgba(244, 99, 30, .10), transparent 45%);
  opacity: 0; transition: opacity .35s;
}
.spotlight:hover::before { opacity: 1; }

.card-ic {
  width: 3rem; height: 3rem; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 1.1rem;
}
.card-ic svg {
  width: 1.4rem; height: 1.4rem; stroke-width: 1.9;
  fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round;
}
.ic-orange { background: var(--orange-100); color: var(--orange-600); }
.ic-navy { background: #E8EDF6; color: var(--navy); }

.card h3 { font-size: 1.12rem; font-weight: 800; color: var(--navy-900); margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .95rem; }

.card-featured { border: 1.5px solid rgba(244, 99, 30, .5); background: linear-gradient(180deg, #FFF9F5, #fff 40%); }
.card-flag {
  position: absolute; top: 1.1rem; right: 1.1rem;
  background: var(--orange); color: #fff; font-size: .68rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em;
  padding: .3rem .65rem; border-radius: 999px;
}
.card-link {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: 1rem; font-weight: 700; font-size: .9rem; color: var(--orange-600);
}
.card-link .ic { transition: transform .25s var(--ease); }
.card-link:hover .ic { transform: translateX(4px); }

/* ── Demos r2inventory ─────────────────────────────────────── */
.demo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.demo-card {
  position: relative;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 1.8rem 1.6rem;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform .35s var(--ease), border-color .3s, background .3s;
}
.demo-card:hover { transform: translateY(-5px); border-color: rgba(244, 99, 30, .5); background: rgba(255,255,255,.07); }
.demo-tag {
  display: inline-block; font-size: .68rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .12em; color: var(--orange-300);
  background: rgba(244, 99, 30, .12); border: 1px solid rgba(244, 99, 30, .3);
  padding: .28rem .7rem; border-radius: 999px; margin-bottom: 1rem;
}
.demo-card h3 { font-size: 1.15rem; font-weight: 800; color: #fff; margin-bottom: .5rem; }
.demo-sub { color: rgba(255,255,255,.65); font-size: .92rem; margin-bottom: 1.2rem; }
.demo-foot {
  margin-top: 1.2rem; padding-top: 1rem; border-top: 1px dashed rgba(255,255,255,.15);
  color: rgba(255,255,255,.6); font-size: .85rem;
}
.demo-foot strong { color: #fff; }

/* Demo 1: conversor en vivo */
.demo-form { display: grid; gap: .9rem; }
.demo-form label {
  display: grid; gap: .35rem; font-size: .8rem; font-weight: 700;
  color: rgba(255,255,255,.75); text-transform: uppercase; letter-spacing: .06em;
}
.demo-form input, .demo-form select {
  font: inherit; font-weight: 600; color: #fff;
  background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.18);
  border-radius: var(--radius-sm); padding: .65rem .85rem; width: 100%;
  transition: border-color .25s, background .25s;
}
.demo-form input:focus, .demo-form select:focus {
  outline: none; border-color: var(--orange); background: rgba(244, 99, 30, .1);
}
.demo-form select option { color: var(--ink); background: #fff; }

.demo-out {
  margin-top: 1.2rem; padding: 1.1rem 1.2rem;
  background: rgba(14, 21, 34, .55); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; gap: .9rem;
  flex-wrap: wrap;
}
.demo-out-main { display: inline-flex; align-items: baseline; gap: .35rem; }
.demo-out-main strong {
  font-size: 1.5rem; font-weight: 800; color: var(--orange-300);
  font-variant-numeric: tabular-nums; transition: transform .2s var(--ease);
}
.demo-out-main em { color: rgba(255,255,255,.55); font-style: normal; font-size: .8rem; }
.demo-out-eq { color: rgba(255,255,255,.4); font-size: 1.2rem; font-weight: 700; }
.demo-out.bump strong { animation: bump .3s var(--ease); }
@keyframes bump { 40% { transform: scale(1.12); } }

/* Demo 2: margen */
.margin-row {
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm); padding: .8rem .95rem; margin-bottom: .7rem;
}
.margin-info strong { display: block; font-size: .9rem; color: #fff; }
.margin-info small { color: rgba(255,255,255,.6); font-size: .78rem; }
.margin-info em { color: var(--orange-300); font-style: normal; font-weight: 700; }
.pill { font-size: .74rem; font-weight: 800; padding: .32rem .7rem; border-radius: 999px; white-space: nowrap; }
.pill-red { background: var(--red-soft); color: var(--red); }
.pill-green { background: var(--green-soft); color: var(--green); }
.margin-suggest {
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  border: 1.5px dashed rgba(244, 99, 30, .55); border-radius: var(--radius-sm);
  padding: .8rem .95rem; font-size: .9rem; color: #fff;
}
.margin-suggest strong { color: var(--orange-300); font-size: 1.1rem; }
.margin-suggest span { color: rgba(255,255,255,.55); font-size: .74rem; text-align: right; }

/* Demo 3: offline */
.offline-box {
  background: rgba(14, 21, 34, .55); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm); padding: 1rem; position: relative; overflow: hidden;
}
.offline-status { display: flex; align-items: center; gap: .55rem; margin-bottom: .8rem; }
.offline-label { font-size: .82rem; font-weight: 700; color: #fff; }
.offline-queue {
  margin-left: auto; font-size: .72rem; font-weight: 800;
  background: rgba(232, 72, 58, .16); color: #FF9B8F;
  padding: .25rem .6rem; border-radius: 999px; transition: background .3s, color .3s;
}
.offline-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: .5rem .2rem; border-top: 1px dashed rgba(255,255,255,.12);
  font-size: .85rem; color: rgba(255,255,255,.8);
}
.offline-st { font-size: .72rem; font-weight: 700; color: rgba(255,255,255,.45); transition: color .3s; }
.offline-box[data-state="sending"] .offline-queue { background: rgba(244, 99, 30, .18); color: var(--orange-300); }
.offline-box[data-state="sending"] .offline-st { color: var(--orange-300); }
.offline-box[data-state="synced"] .offline-queue { background: rgba(34, 165, 91, .16); color: #7BE0A6; }
.offline-box[data-state="synced"] .offline-st { color: #7BE0A6; }
.offline-sync {
  position: absolute; inset: auto 0 0; height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--orange-300));
  transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease);
}
.offline-box[data-state="sending"] .offline-sync { transform: scaleX(1); }

/* Lista de características */
.feat-list {
  list-style: none; padding: 0; margin: 3rem 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem 2rem;
}
.feat-list li {
  display: flex; align-items: center; gap: .7rem;
  color: rgba(255,255,255,.85); font-weight: 600; font-size: .97rem;
}
.feat-list .ic {
  width: 1.5rem; height: 1.5rem; padding: .28rem;
  background: rgba(34, 165, 91, .18); color: #7BE0A6;
  border-radius: 50%; stroke-width: 3;
}

/* ── Proceso ───────────────────────────────────────────────── */
.steps {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
  padding-top: 1rem;
}
.steps-line {
  position: absolute; top: calc(1rem + 1.55rem); left: 6%; right: 6%; height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--orange-300));
  border-radius: 3px; transform: scaleX(var(--p, 0)); transform-origin: left;
  opacity: .35;
}
.step { position: relative; }
.step-n {
  width: 3.1rem; height: 3.1rem; border-radius: 50%;
  background: #fff; border: 3px solid var(--orange);
  color: var(--orange-600); font-weight: 800; font-size: 1.15rem;
  display: grid; place-items: center; margin-bottom: 1.1rem;
  box-shadow: 0 6px 18px rgba(244, 99, 30, .22);
  position: relative; z-index: 1;
}
.step h3 { font-size: 1.08rem; font-weight: 800; color: var(--navy-900); margin-bottom: .45rem; }
.step p { color: var(--muted); font-size: .93rem; }

/* ── FAQ ───────────────────────────────────────────────────── */
.faq { display: grid; gap: .8rem; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: border-color .3s, box-shadow .3s;
}
.faq-item[open] { border-color: rgba(244, 99, 30, .45); box-shadow: var(--shadow-md); }
.faq-item summary {
  list-style: none; cursor: pointer; user-select: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.3rem; font-weight: 700; color: var(--navy-900); font-size: .98rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chev { color: var(--orange); transition: transform .3s var(--ease); flex: none; }
.faq-item[open] .faq-chev { transform: rotate(180deg); }
.faq-item p { padding: 0 1.3rem 1.2rem; color: var(--muted); font-size: .95rem; }
.faq-item p strong { color: var(--navy-900); }

/* ── CTA final ─────────────────────────────────────────────── */
.cta-panel {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-600) 100%);
  border-radius: 28px; padding: 4.5rem 2rem; color: #fff;
  box-shadow: 0 24px 70px rgba(244, 99, 30, .38);
}
.cta-panel .hero-bg { inset: 0; }
.cta-panel .blob { opacity: .35; }
.cta-panel h2 {
  position: relative; font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  font-weight: 800; letter-spacing: -.02em; line-height: 1.12;
}
.cta-panel p { position: relative; margin-top: 1rem; font-size: 1.08rem; color: rgba(255,255,255,.9); }
.cta-actions {
  position: relative;
  display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; margin-top: 2.2rem;
}

/* ── Footer ────────────────────────────────────────────────── */
.footer { background: var(--navy-950); color: rgba(255,255,255,.72); padding: 4.5rem 0 2rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem;
  padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.09);
}
.footer-brand p { margin-top: 1.1rem; font-size: .92rem; max-width: 20rem; }
.footer-col { display: flex; flex-direction: column; gap: .55rem; }
.footer-col h4 {
  color: #fff; font-size: .8rem; text-transform: uppercase;
  letter-spacing: .12em; margin-bottom: .4rem;
}
.footer-col a { font-size: .92rem; color: rgba(255,255,255,.65); transition: color .2s; width: fit-content; }
.footer-col a:hover { color: var(--orange-300); }
.footer-base { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.6rem; font-size: .85rem; color: rgba(255,255,255,.45); }

/* ── WhatsApp flotante ─────────────────────────────────────── */
.wa-float {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 50;
  width: 3.6rem; height: 3.6rem; border-radius: 50%;
  background: #25D366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, .45);
  transition: transform .25s var(--ease);
}
.wa-float svg { width: 1.7rem; height: 1.7rem; fill: #fff; stroke: none; }
.wa-float:hover { transform: scale(1.08); }
.wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #25D366; animation: waPulse 2.2s ease-out infinite;
}
@keyframes waPulse {
  0% { transform: scale(1); opacity: .8; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* ── Reveals (JS añade .js a <html>; sin JS todo es visible) ─ */
.js [data-reveal] {
  opacity: 0; transform: translateY(26px); filter: blur(6px);
  transition: opacity .75s var(--ease), transform .75s var(--ease), filter .75s var(--ease);
  transition-delay: var(--rd, 0s);
}
.js [data-reveal].revealed { opacity: 1; transform: none; filter: none; }

/* Flotación de respaldo cuando Motion (CDN) no carga */
.float-css { animation: floaty 3.4s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-9px); } }

/* ── Submenu Productos (dropdown) ──────────────────────────── */
.nav-drop { position: relative; }
.nav-drop-btn {
  display: inline-flex; align-items: center; gap: .35rem;
  background: none; border: 0; padding: 0;
  color: rgba(255,255,255,.78); font-weight: 600; font-size: .93rem;
  transition: color .2s;
}
.nav-drop-btn:hover { color: #fff; }
.nav-drop-btn .ic { width: 1em; height: 1em; transition: transform .3s var(--ease); }
.nav-drop.open .nav-drop-btn { color: #fff; }
.nav-drop.open .nav-drop-btn .ic { transform: rotate(180deg); }

.nav-drop-menu {
  position: absolute; top: calc(100% + 14px); left: 50%;
  transform: translate(-50%, -6px);
  min-width: 260px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: .5rem; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.nav-drop.open .nav-drop-menu { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.nav-drop-menu::before {
  content: ""; position: absolute; top: -6px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px; height: 12px; background: #fff;
  border-left: 1px solid var(--line); border-top: 1px solid var(--line);
}
.nav-drop-menu a, .nav-drop-soon { display: grid; gap: .1rem; padding: .65rem .85rem; border-radius: 10px; }
.nav-drop-menu a { transition: background .2s; }
.nav-drop-menu a:hover { background: var(--orange-100); }
.nav-drop-menu strong { font-size: .93rem; font-weight: 800; color: var(--navy-900); }
.nav-drop-menu a:hover strong { color: var(--orange-600); }
.nav-drop-menu span { font-size: .78rem; color: var(--muted); }
.nav-drop-menu a[aria-current="page"] { background: var(--orange-100); }
.nav-drop-menu a[aria-current="page"] strong { color: var(--orange-600); }
.nav-drop-soon { opacity: .55; cursor: default; }

/* ── Miga de pan (página de producto) ─────────────────────── */
.crumb { display: flex; align-items: center; gap: .5rem; margin-bottom: 1.4rem; font-size: .85rem; }
.crumb a { color: rgba(255,255,255,.68); transition: color .2s; }
.crumb a:hover { color: var(--orange-300); }
.crumb i { font-style: normal; opacity: .45; }
.crumb span { color: #fff; font-weight: 700; }

/* ── Cards y extras de la nueva estructura ─────────────────── */
.card-soon { background: var(--bg-alt); border-style: dashed; }
.card-soon:hover { border-color: rgba(46, 58, 78, .35); }
.card-flag-soon { background: var(--navy); }
.script-accent-white { font-family: var(--font-script); font-style: normal; font-weight: 400; font-size: 1.12em; }

.agenda-meta {
  position: relative; list-style: none; padding: 0;
  margin: 1.7rem auto 0; display: flex; flex-wrap: wrap;
  gap: .6rem 1.6rem; justify-content: center;
}
.agenda-meta li { display: flex; align-items: center; gap: .5rem; font-size: .9rem; font-weight: 600; color: rgba(255,255,255,.94); }
.agenda-meta .ic { width: 1.35rem; height: 1.35rem; padding: .27rem; background: rgba(255,255,255,.2); border-radius: 50%; stroke-width: 3; }

.agenda-num { position: relative; margin-top: 1.7rem; font-size: .92rem; color: rgba(255,255,255,.88); }
.agenda-num strong { font-size: 1.06rem; color: #fff; letter-spacing: .02em; }

.footer-soon { font-size: .92rem; color: rgba(255,255,255,.38); }

/* ── Capturas reales del sistema ───────────────────────────── */
.shots-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.shot-frame {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.08);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.shot-frame:hover { transform: translateY(-6px); box-shadow: 0 28px 70px rgba(19,28,46,.32); }
.shot-bar {
  display: flex; align-items: center; gap: .4rem;
  padding: .7rem 1rem; background: #EEF1F6;
  border-bottom: 1px solid var(--line);
  color: var(--navy); font-size: .78rem; font-weight: 600;
}
.shot-bar span { width: 10px; height: 10px; border-radius: 50%; background: #E3E7EF; }
.shot-bar span:nth-child(1) { background: #F5846C; }
.shot-bar span:nth-child(2) { background: #F5C06C; }
.shot-bar span:nth-child(3) { background: #8FD6A8; }
.shot-bar strong { margin-left: auto; font-weight: 600; font-size: .76rem; color: var(--muted); }
.shot-frame img { width: 100%; display: block; }
.shot-frame figcaption {
  padding: .9rem 1.1rem; font-size: .88rem; font-weight: 700; color: var(--navy);
  border-top: 1px solid var(--line);
}
.shots-note {
  display: flex; align-items: center; gap: .6rem; justify-content: center;
  margin-top: 2rem; text-align: left;
  color: var(--muted); font-size: .95rem;
}
.shots-note .ic {
  width: 1.5rem; height: 1.5rem; padding: .28rem; flex: none;
  background: var(--green-soft); color: var(--green);
  border-radius: 50%; stroke-width: 3;
}

/* Submenu en móvil (panel del burger) */
@media (max-width: 720px) {
  .nav-drop { width: 100%; }
  .nav-drop-btn { width: 100%; justify-content: space-between; padding: .6rem .8rem; border-radius: 10px; }
  .nav-drop-btn:hover { background: rgba(255,255,255,.06); }
  .nav-drop-menu {
    position: static; transform: none; opacity: 1; pointer-events: auto;
    display: none; min-width: 0; margin: .2rem 0 .4rem;
    background: rgba(255,255,255,.05); border: 0; box-shadow: none;
  }
  .nav-drop.open .nav-drop-menu { display: grid; }
  .nav-drop-menu::before { display: none; }

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

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; gap: 4rem; }
  .mock { margin-inline: auto; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .demo-grid { grid-template-columns: 1fr; max-width: 34rem; margin-inline: auto; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 2rem; }
  .steps-line { display: none; }
  .feat-list { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 4.5rem 0; }
  .hero { padding: 7.5rem 0 4.5rem; }

  .nav-burger { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 1rem; right: 1rem;
    flex-direction: column; align-items: stretch; gap: .3rem;
    background: rgba(14, 21, 34, .97); border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius); padding: 1rem;
    box-shadow: var(--shadow-lg);
    opacity: 0; transform: translateY(-8px); pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .nav.nav-open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a:not(.btn) { padding: .6rem .8rem; border-radius: 10px; }
  .nav-links a:not(.btn):hover { background: rgba(255,255,255,.06); }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-cta { margin: .6rem 0 0; justify-content: center; }

  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .feat-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-base { flex-direction: column; align-items: center; text-align: center; }
  .cta-panel { padding: 3.2rem 1.4rem; }
  .chip-offline { right: 0; }
  .chip-margin { left: 0; }
  .demo-out-main strong { font-size: 1.25rem; }
}

/* ── Accesibilidad: movimiento reducido ────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js [data-reveal], .hero-anim { opacity: 1; transform: none; filter: none; }
}
