/* =========================================================
   Cúcuta Come · landing para restaurantes
   Paleta y tipografía tomadas de la identidad de la marca.
   ========================================================= */

:root {
  --cream: #fdf7ea;
  --paper: #fffcf5;
  --ink: #191410;
  --ink-2: #3f352e;
  --muted: #6f6459;
  --red: #e5302a;
  --red-dark: #bf1f1a;
  --red-bright: #ff6a5e;
  --line: rgba(25, 20, 16, 0.12);

  --font-display: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 14px;
  --container: 1180px;
  --header-h: 78px;
}

/* ── Reset ───────────────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 14px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

[hidden] { display: none !important; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.03;
  margin: 0;
  text-wrap: balance;
}

p { text-wrap: pretty; }

a { color: inherit; }

ul, ol { margin: 0; }

::selection { background: rgba(229, 48, 42, 0.18); }

:focus-visible {
  outline: 3px solid rgba(229, 48, 42, 0.55);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ── Utilidades ──────────────────────────────────────────── */
.container {
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
}

.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;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 10px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 16px; }

/* ── Botones ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.18s ease, border-color 0.18s ease,
    color 0.18s ease;
}

.btn .icon { width: 18px; height: 18px; transition: transform 0.2s ease; }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: none; opacity: 0.9; }

.btn--lg { height: 56px; padding: 0 26px; font-size: 1rem; }
.btn--sm { height: 42px; padding: 0 18px; font-size: 0.9rem; }
.btn--block { width: 100%; }

.btn--primary {
  background: var(--red);
  color: #fff;
}
.btn--primary:hover {
  background: var(--red-dark);
}

.btn--ghost {
  border-color: rgba(25, 20, 16, 0.16);
  background: transparent;
  color: var(--ink);
}
.btn--ghost:hover {
  border-color: var(--ink);
}

.btn--outline {
  border-color: rgba(25, 20, 16, 0.18);
  color: var(--ink);
}
.btn--outline:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.btn--light {
  background: var(--cream);
  color: var(--ink);
}
.btn--light:hover { background: #fff; }

/* ── Cabecera ────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand__name {
  font-family: "Baloo 2", var(--font-display);
  font-weight: 800;
  font-size: 2.1rem;
  line-height: 1;
  letter-spacing: 0.005em;
  color: var(--ink);
  white-space: nowrap;
}
.brand__accent { color: var(--red); }

.nav { display: flex; align-items: center; gap: 32px; }

.nav__list {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  padding: 0;
}

.nav__list a {
  position: relative;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.18s ease;
}
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav__list a:hover { color: var(--red); }
.nav__list a:hover::after,
.nav__list a.is-active::after { transform: scaleX(1); }
.nav__list a.is-active { color: var(--ink); }

.nav__cta {
  height: 44px;
  padding: 0 7px 0 20px;
  gap: 12px;
  border-radius: 999px;
  border-color: var(--ink);
  background: var(--ink);
  color: var(--cream);
}
.nav__cta:hover {
  border-color: var(--red-dark);
  background: var(--red-dark);
  color: #fff;
}
.nav__cta-arrow {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.nav__cta:hover .nav__cta-arrow { background: var(--cream); color: var(--red); }
.nav__cta-arrow .icon { width: 15px; height: 15px; }

.burger {
  display: none;
  place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.burger .icon { width: 22px; height: 22px; }
.burger .icon--close { display: none; }
.site-header.is-open .burger .icon--menu { display: none; }
.site-header.is-open .burger .icon--close { display: block; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 5.5vw, 84px) 0 clamp(56px, 7vw, 90px);
  background: var(--cream);
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.16fr 0.84fr;
  gap: clamp(28px, 4.4vw, 56px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--red);
}
.eyebrow__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.hero h1 {
  margin: 20px 0 0;
  font-size: clamp(2.45rem, 4.5vw, 3.95rem);
  line-height: 0.97;
  letter-spacing: -0.035em;
}
.hero h1 .hl { color: var(--red); }

.hero__lead {
  margin: 24px 0 0;
  max-width: 33em;
  font-size: clamp(1.02rem, 1.25vw, 1.14rem);
  line-height: 1.62;
  color: var(--ink-2);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero__note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.hero__note .icon { width: 16px; height: 16px; color: var(--ink-2); stroke-width: 2.4; }
.hero__note strong { color: var(--ink); font-weight: 700; }

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 8px 0 16px;
}

/* Mockup tipo POS */
.mockup {
  position: relative;
  z-index: 1;
  width: min(100%, 400px);
  padding: 20px;
  background: var(--paper);
  border: 1px solid rgba(25, 20, 16, 0.1);
  border-radius: 14px;
}

.mockup__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px 14px;
}
.mockup__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--ink-2);
  font-size: 0.7rem;
  font-weight: 600;
}
.live i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
}

.ticket {
  padding: 16px;
  background: #fff;
  border: 1px solid rgba(25, 20, 16, 0.08);
  border-radius: 10px;
}
.ticket__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ticket__id { font-size: 0.74rem; color: var(--muted); }

.tag {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(25, 20, 16, 0.05);
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.tag--new { background: rgba(229, 48, 42, 0.1); color: var(--red); }
.tag--strong {
  background: var(--ink);
  color: var(--cream);
  font-size: 0.6rem;
  padding: 4px 8px;
  margin-left: 4px;
  vertical-align: 1px;
}

.ticket__from {
  margin: 12px 0 0;
  font-size: 0.88rem;
  color: var(--ink-2);
}
.ticket__from strong { color: var(--ink); }
.ticket__from span { color: rgba(25, 20, 16, 0.3); }

.ticket__items {
  list-style: none;
  margin: 12px 0 0;
  padding: 10px 0;
  border-top: 1px dashed rgba(25, 20, 16, 0.16);
  border-bottom: 1px dashed rgba(25, 20, 16, 0.16);
}
.ticket__items li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  font-size: 0.87rem;
  color: var(--ink-2);
}
.ticket__items li span:last-child {
  color: var(--ink);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.ticket__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 0.92rem;
}
.ticket__total strong {
  font-family: var(--font-display);
  font-size: 1.14rem;
  font-variant-numeric: tabular-nums;
}

.ticket__fee {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.ticket__pay {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(25, 20, 16, 0.1);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--red);
}
.ticket__pay strong {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-variant-numeric: tabular-nums;
}

.ticket__actions { display: flex; gap: 8px; margin-top: 14px; }
.fake-btn {
  flex: 1;
  display: grid;
  place-items: center;
  height: 42px;
  border: 1px solid rgba(25, 20, 16, 0.14);
  border-radius: 6px;
  color: var(--ink-2);
  font-size: 0.84rem;
  font-weight: 600;
}
.fake-btn--primary { background: var(--red); border-color: transparent; color: #fff; }

/* Franja de confianza */
.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(44px, 6vw, 74px);
  padding: 26px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.trust li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 0 28px;
  border-left: 1px solid var(--line);
}
.trust li:first-child { padding-left: 0; border-left: 0; }
.trust__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px; height: 28px;
  color: var(--red);
}
.trust__icon .icon { width: 19px; height: 19px; }
.trust strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.trust small {
  display: block;
  margin-top: 3px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--muted);
}

/* ── Secciones ───────────────────────────────────────────── */
.section {
  position: relative;
  padding: clamp(56px, 6.6vw, 96px) 0;
}
.section--alt {
  background: #f5efe4;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section__head {
  max-width: 720px;
  margin-bottom: clamp(30px, 4vw, 48px);
}
.section__head h2 {
  margin: 14px 0 0;
  font-size: clamp(2rem, 3.6vw, 3rem);
}
.section__lead {
  margin: 16px 0 0;
  max-width: 62ch;
  font-size: clamp(1rem, 1.15vw, 1.08rem);
  line-height: 1.62;
  color: var(--ink-2);
}
.section__head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  max-width: none;
}
.section__head--row > div { max-width: 720px; }

.pill-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  margin: 0 0 6px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--ink-2);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pill-note .icon { width: 13px; height: 13px; color: var(--ink-2); }
.pill-note--dark {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}
.pill-note--dark .icon { color: var(--red-bright); }

/* ── Módulos ─────────────────────────────────────────────── */
.modules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.module {
  display: flex;
  flex-direction: column;
  padding: 30px 28px 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s ease;
}
.module:hover {
  border-color: rgba(25, 20, 16, 0.32);
}
.module__kicker {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}
.module h3 { margin: 10px 0 8px; font-size: 1.42rem; }
.module p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-2);
}
.module__tag {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: auto !important;
  padding-top: 24px;
  font-size: 0.8rem !important;
  font-weight: 600;
  color: var(--muted) !important;
}
.module__tag .icon { width: 15px; height: 15px; color: var(--ink-2); }
.module--featured {
  border: 1px solid var(--ink);
  background: var(--paper);
}
.module--featured .module__tag { color: var(--ink) !important; }
.module--featured .module__tag .icon { color: var(--red); }

/* ── Pasos de domicilio ──────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 0;
  list-style: none;
}
.step {
  position: relative;
  padding: 22px 22px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.step__num {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--red);
}
.step h3 { margin: 0 0 6px; font-size: 1.08rem; letter-spacing: -0.015em; }
.step p { margin: 0; font-size: 0.9rem; line-height: 1.5; color: var(--ink-2); }
.footnote {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 22px 0 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}
.footnote .icon { width: 16px; height: 16px; margin-top: 2px; color: var(--red); }

/* ── Inventario ──────────────────────────────────────────── */
.inv {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.inv__steps { list-style: none; padding: 0; }
.inv__steps li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 4px;
  border-bottom: 1px dashed rgba(25, 20, 16, 0.16);
}
.inv__steps li:last-child { border-bottom: 0; }
.inv__num {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--red);
}
.inv__steps h3 { margin: 0 0 4px; font-size: 1.06rem; }
.inv__steps p { margin: 0; font-size: 0.92rem; color: var(--ink-2); line-height: 1.5; }

.product-card {
  position: relative;
  padding: 28px 26px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.product-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.product-card__menu {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.product-card h3 { margin: 16px 0 0; font-size: 1.45rem; }
.product-card__rows { display: grid; gap: 10px; margin: 20px 0 16px; }
.product-card__rows div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.product-card__rows dt { font-size: 0.9rem; color: var(--ink-2); }
.product-card__rows dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.product-card__rows .is-total {
  margin-top: 2px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.product-card__rows .is-total dd { color: var(--red); font-size: 1.22rem; }

.bar {
  display: flex;
  gap: 2px;
  height: 8px;
  border-radius: 3px;
  overflow: hidden;
}
.bar__cost { background: rgba(25, 20, 16, 0.2); }
.bar__margin { background: var(--red); }

.product-card__legend {
  display: flex;
  gap: 16px;
  margin: 10px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}
.dot {
  display: inline-block;
  width: 8px; height: 8px;
  margin-right: 6px;
  border-radius: 50%;
}
.dot--cost { background: rgba(25, 20, 16, 0.28); }
.dot--margin { background: var(--red); }

.product-card__note {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--muted);
}

/* ── Reportes ────────────────────────────────────────────── */
.report {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.report__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 26px;
  background: transparent;
  border-bottom: 1px solid var(--line);
}
.report__head h3 { font-size: 1.12rem; }
.report__head .pill-note { margin: 0; }
.report__list { list-style: none; padding: 0; }
.report__list li {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 16px 26px;
  border-bottom: 1px solid rgba(25, 20, 16, 0.08);
}
.report__list li:last-child { border-bottom: 0; }
.report__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.99rem;
}
.report__desc { font-size: 0.93rem; color: var(--ink-2); }

/* ── Panel oscuro ────────────────────────────────────────── */
.panel-dark {
  position: relative;
  padding: clamp(30px, 4.6vw, 60px);
  border-radius: 18px;
  background: #17130f;
  color: var(--cream);
}
.panel-dark__head { position: relative; }
.panel-dark__head h2 {
  margin: 14px 0 0;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
}
.panel-dark__head p {
  margin: 14px 0 0;
  max-width: 56ch;
  font-size: 1.02rem;
  line-height: 1.62;
  color: rgba(253, 247, 234, 0.72);
}
.eyebrow--light { color: var(--red-bright); position: relative; }

.panel-dark__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: clamp(28px, 4vw, 44px);
}
.panel-dark__grid article {
  padding: 22px 0 0;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(253, 247, 234, 0.16);
  border-radius: 0;
}
.panel-dark__icon {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  margin-bottom: 16px;
  color: var(--red-bright);
}
.panel-dark__icon .icon { width: 21px; height: 21px; }
.panel-dark__grid h3 { margin: 0 0 8px; font-size: 1.12rem; color: var(--cream); }
.panel-dark__grid p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(253, 247, 234, 0.68);
}
.panel-dark__grid em {
  font-style: normal;
  color: rgba(253, 247, 234, 0.92);
  border-bottom: 1px dotted rgba(253, 247, 234, 0.35);
}
.panel-dark__note {
  position: relative;
  margin: 24px 0 0;
  font-size: 0.84rem;
  color: rgba(253, 247, 234, 0.5);
}

/* ── Comisión y calculadora ──────────────────────────────── */
.commission {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
  padding: clamp(24px, 3.4vw, 40px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.commission__price {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.commission__price span {
  display: inline-block;
  margin-right: 6px;
  font-size: clamp(2.4rem, 4.2vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--red);
}
.commission__copy p:last-child {
  margin: 14px 0 0;
  font-size: 0.96rem;
  line-height: 1.62;
  color: var(--ink-2);
}
.commission__copy strong { color: var(--ink); }

.calc {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.calc__label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--muted);
}
.calc__value {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.calc__range {
  width: 100%;
  height: 26px;
  margin: 10px 0 4px;
  accent-color: var(--red);
  cursor: pointer;
}
.calc__rows { display: grid; gap: 2px; margin-top: 6px; }
.calc__rows div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 7px 0;
  font-size: 0.9rem;
  color: var(--ink-2);
}
.calc__rows strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.calc__rows .is-total {
  margin-top: 4px;
  padding-top: 11px;
  border-top: 1px dashed rgba(25, 20, 16, 0.18);
  font-size: 0.94rem;
}
.calc__rows .is-total strong {
  font-family: var(--font-display);
  font-size: 1.18rem;
  color: var(--red);
}
.calc__help {
  margin: 10px 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--muted);
}

/* ── Planes ──────────────────────────────────────────────── */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: clamp(30px, 4vw, 46px);
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.plan h3 { font-size: 1.5rem; }
.plan__desc {
  margin: 8px 0 0;
  min-height: 3em;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.plan__label {
  margin: 22px 0 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.plan__price {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 2.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.plan__month {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-weight: 700;
  color: var(--red);
}
.plan__month span {
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--muted);
}
.plan__features {
  display: grid;
  gap: 11px;
  margin: 24px 0 26px;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.plan__features li {
  display: flex;
  gap: 10px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink-2);
}
.plan__features .icon {
  width: 16px; height: 16px;
  margin-top: 2px;
  color: var(--red);
  stroke-width: 2.4;
}
.plan__fineprint {
  margin: -8px 0 20px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
}
.plan__cta { width: 100%; margin-top: auto; }

.plan--featured {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}
.plan--featured .plan__desc,
.plan--featured .plan__features li { color: rgba(253, 247, 234, 0.72); }
.plan--featured .plan__label { color: rgba(253, 247, 234, 0.48); }
.plan--featured .plan__price { color: var(--cream); }
.plan--featured .plan__month { color: var(--red-bright); }
.plan--featured .plan__month span { color: rgba(253, 247, 234, 0.55); }
.plan--featured .plan__features { border-color: rgba(253, 247, 234, 0.16); }
.plan--featured .plan__features .icon { color: var(--red-bright); }

.plan__badge {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 4px 9px;
  border-radius: 4px;
  background: var(--red);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ¿Qué plan me conviene? */
.advice { margin-top: clamp(44px, 5vw, 66px); }
.advice h3 { margin: 0 0 18px; font-size: 1.25rem; }
.advice__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.advice__grid article {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.advice__grid p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.58;
  color: var(--ink-2);
}
.plan-chip {
  align-self: flex-start;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 600;
}
.plan-chip--dark { background: var(--ink); border-color: var(--ink); color: var(--cream); }

/* Primer mes */
.first-month { margin-top: clamp(44px, 5vw, 66px); }
.first-month h3 { margin: 0 0 16px; font-size: 1.25rem; }

/* ── Tablas ──────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
table { width: 100%; border-collapse: collapse; min-width: 620px; }

thead th {
  padding: 15px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(25, 20, 16, 0.022);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-align: left;
}
tbody th {
  padding: 15px 22px;
  border-bottom: 1px solid rgba(25, 20, 16, 0.07);
  font-size: 0.94rem;
  font-weight: 600;
  text-align: left;
}
tbody td {
  padding: 15px 22px;
  border-bottom: 1px solid rgba(25, 20, 16, 0.07);
  font-size: 0.94rem;
  font-variant-numeric: tabular-nums;
}
tbody tr:last-child th,
tbody tr:last-child td { border-bottom: 0; }

.first-month tbody td:nth-child(2) {
  font-family: var(--font-display);
  font-weight: 700;
}

/* Comparación */
.compare thead th,
.compare tbody td { text-align: center; }
.compare thead th:first-child,
.compare tbody th { text-align: left; }
.compare tbody th { font-weight: 500; }
.compare .is-hl { background: transparent; }
.compare thead .is-hl { color: var(--red); }
.compare .group th {
  padding: 11px 22px;
  background: #f3ede2;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.icon--check { width: 18px; height: 18px; color: var(--red); stroke-width: 2.5; }
.dash { color: rgba(25, 20, 16, 0.3); font-weight: 600; }

.exclusions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}
.exclusions article {
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.exclusions h3 { margin: 0 0 14px; font-size: 1.02rem; }
.exclusions ul { display: grid; gap: 10px; padding: 0; list-style: none; }
.exclusions li {
  display: flex;
  gap: 10px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-2);
}

/* ── FAQ ─────────────────────────────────────────────────── */
.faq__intro { max-width: 720px; }
.faq__intro h2 { margin: 14px 0 0; font-size: clamp(1.95rem, 3.3vw, 2.75rem); }
.faq__list { max-width: 900px; margin-top: 36px; }

.faq__more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 28px 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}
.faq__more a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.faq__more a:hover { color: var(--red); }
.faq__more .icon { width: 16px; height: 16px; }

.faq__item { border-bottom: 1px solid rgba(25, 20, 16, 0.12); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  list-style: none;
  cursor: pointer;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  transition: color 0.18s ease;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--red); }
.faq__item summary .icon {
  width: 20px; height: 20px;
  color: var(--red);
  transition: transform 0.25s ease;
}
.faq__item[open] summary .icon { transform: rotate(45deg); }
.faq__item p {
  margin: 0;
  padding: 0 40px 20px 0;
  max-width: 64ch;
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--ink-2);
}

/* ── Contacto ────────────────────────────────────────────── */
.contact {
  background: var(--cream);
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.contact h2 {
  margin: 14px 0 0;
  font-size: clamp(2rem, 3.6vw, 2.95rem);
}
.contact__steps { display: grid; gap: 12px; margin-top: 28px; padding: 0; list-style: none; }
.contact__steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--ink-2);
}
.contact__steps span {
  display: grid;
  place-items: center;
  flex: none;
  width: 22px; height: 22px;
  background: transparent;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 700;
}
.contact__person {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.contact__avatar {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
}
.contact__person p { margin: 0; font-size: 0.94rem; }
.muted { font-size: 0.84rem !important; color: var(--muted) !important; }

.contact__form-wrap {
  padding: clamp(22px, 3vw, 34px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 0.81rem; font-weight: 600; color: var(--ink-2); }
.optional { font-weight: 500; color: var(--muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid rgba(25, 20, 16, 0.16);
  border-radius: 8px;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.94rem;
  transition: border-color 0.18s ease;
}
.field textarea { min-height: 88px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--red);
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(25, 20, 16, 0.34); }
.field.is-invalid input,
.field.is-invalid select { border-color: var(--red); background: #fff7f5; }

.form__legal {
  margin: 0;
  font-size: 0.77rem;
  line-height: 1.5;
  text-align: center;
  color: var(--muted);
}
.form__error {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 600;
  text-align: center;
  color: var(--red);
}
.form__success {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 20px 6px;
  text-align: center;
}
.form__success-icon {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: rgba(25, 20, 16, 0.06);
  color: var(--ink);
}
.form__success-icon .icon { width: 30px; height: 30px; stroke-width: 2.6; }
.form__success h3 { font-size: 1.45rem; }
.form__success p {
  margin: 0 0 8px;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--ink-2);
}

/* ── Pie ─────────────────────────────────────────────────── */
.footer {
  padding: clamp(48px, 6vw, 72px) 0 28px;
  background: var(--ink);
  color: rgba(253, 247, 234, 0.62);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer__brand .brand { display: inline-flex; }
.footer__brand .brand__name { font-size: 2rem; color: var(--cream); }
.footer__brand .brand__accent { color: var(--red-bright); }
.footer__brand p {
  margin: 18px 0 0;
  max-width: 30ch;
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(253, 247, 234, 0.5);
}
.footer__col h3 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(253, 247, 234, 0.42);
}
.footer__col ul { display: grid; gap: 10px; padding: 0; list-style: none; }
.footer__col a {
  font-size: 0.9rem;
  color: rgba(253, 247, 234, 0.78);
  text-decoration: none;
  transition: color 0.18s ease;
}
.footer__col a:hover { color: #fff; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(253, 247, 234, 0.12);
  font-size: 0.78rem;
  color: rgba(253, 247, 234, 0.42);
}
.footer__bottom p { margin: 0; }

/* ── Animaciones de entrada ──────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1040px) {
  .nav { gap: 20px; }
  .nav__list { gap: 18px; }
  .nav__list a { font-size: 0.9rem; }
}

@media (max-width: 920px) {
  :root { --header-h: 68px; }

  .burger { display: grid; }
  .brand__name { font-size: 1.85rem; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px 24px 26px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.26s ease, transform 0.26s ease, visibility 0.26s;
  }
  .site-header.is-open .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list a {
    display: block;
    padding: 14px 0;
    font-size: 1.02rem;
    border-bottom: 1px solid rgba(25, 20, 16, 0.07);
  }
  .nav__list a::after { display: none; }
  .nav__cta {
    margin-top: 18px;
    justify-content: space-between;
    height: 48px;
    padding: 0 8px 0 22px;
  }

  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .hero__copy { max-width: 620px; }
  .hero__visual { margin-top: 4px; }

  .modules,
  .steps { grid-template-columns: 1fr 1fr; }
  .inv { grid-template-columns: 1fr; }
  .product-card { max-width: 520px; }

  .panel-dark__grid { grid-template-columns: 1fr; }
  .commission { grid-template-columns: 1fr; }

  .plans {
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 520px;
    margin-inline: auto;
  }
  .plan--featured { transform: none; }
  .plan--featured:hover { transform: none; }
  .plan__desc { min-height: 0; }

  .advice__grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .exclusions { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }

  .trust { grid-template-columns: 1fr; gap: 16px; padding-top: 22px; }
  .trust li {
    padding: 16px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .trust li:first-child { padding-top: 0; border-top: 0; }

  .section__head--row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

@media (max-width: 720px) {
  .container { width: calc(100% - 40px); }

  .hero { padding-top: 28px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__actions { gap: 10px; }

  .mockup { transform: none; padding: 16px; }
  .ticket { padding: 14px; }

  .modules,
  .steps { grid-template-columns: 1fr; }

  .report__list li {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 20px;
  }
  .report__head { padding: 16px 20px; }
  .report__head h3 { font-size: 1.04rem; }

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

  .table-wrap { border-radius: 10px; }

  /* Las tablas caben en el celular sin scroll horizontal */
  .first-month table,
  .compare {
    min-width: 0;
    width: 100%;
    table-layout: fixed;
  }
  .first-month thead th,
  .compare thead th {
    padding: 10px 6px;
    font-size: 0.5rem;
    letter-spacing: 0.03em;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }
  .first-month tbody th,
  .first-month tbody td,
  .compare tbody th,
  .compare tbody td {
    padding: 12px 8px;
    font-size: 0.8rem;
    line-height: 1.4;
  }
  .first-month thead th:nth-child(1) { width: 28%; }
  .first-month thead th:nth-child(2) { width: 36%; }
  .first-month thead th:nth-child(3) { width: 36%; }
  .compare thead th:nth-child(1) { width: 46%; }
  .compare thead th:nth-child(n + 2) { width: 18%; }
  .first-month thead th:first-child,
  .first-month tbody th,
  .compare thead th:first-child,
  .compare tbody th { padding-left: 14px; }
  .compare .group th { padding: 9px 14px; font-size: 0.58rem; }

  .footer__bottom { flex-direction: column; gap: 6px; }

  .section__head h2 { font-size: clamp(1.85rem, 6.5vw, 2.4rem); }
  .panel-dark { border-radius: 14px; }
  .commission { border-radius: 12px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: clamp(2.25rem, 10.5vw, 2.9rem); }
  .hero__note { font-size: 0.82rem; }
  .plan { padding: 26px 22px; }
  .contact__form-wrap { padding: 20px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
}

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

/* ── Impresión ───────────────────────────────────────────── */
@media print {
  .site-header, .burger { display: none !important; }
  body { background: #fff; }
  .section { padding: 24px 0; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}