/* ==========================================================================
   Ceres TPV — landing comercial
   Sistema de diseño alineado con la interfaz real de la aplicación:
   fondo oscuro #141417, superficies elevadas, acento naranja #f97316,
   radios 10/14/20/28 y sombras suaves. Sin dependencias externas.
   ========================================================================== */

/* ---------------------------------------------------------------- tokens -- */
:root {
  --bg: #141417;
  --bg-soft: #17171b;
  --surface: #1e1e24;
  --surface-raised: #26262e;
  --card: rgba(255, 255, 255, 0.045);
  --card-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f4f6;
  --text-2: #c4c4cc;
  --muted: #9b9ba6;

  --primary: #f97316;
  --primary-dark: #ea580c;
  --primary-soft: rgba(249, 115, 22, 0.14);
  --success: #22c55e;
  --success-soft: rgba(34, 197, 94, 0.14);
  --warning: #f59e0b;
  --warning-soft: rgba(245, 158, 11, 0.14);
  --danger: #ef4444;
  --info: #3b82f6;
  --info-soft: rgba(59, 130, 246, 0.14);
  --on-primary: #1a1206;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.28), 0 1px 3px rgba(0, 0, 0, 0.22);
  --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.4), 0 2px 6px -2px rgba(0, 0, 0, 0.34);
  --shadow-lg: 0 18px 44px -10px rgba(0, 0, 0, 0.6), 0 6px 16px -6px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 30px 70px -30px rgba(249, 115, 22, 0.35);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --shell: 1200px;
  --pad-x: clamp(1.1rem, 4vw, 2rem);
  --section-y: clamp(3.75rem, 8vw, 7rem);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 700px at 12% -8%, rgba(249, 115, 22, 0.1), transparent 60%),
    radial-gradient(900px 600px at 108% 12%, rgba(59, 130, 246, 0.07), transparent 55%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

picture {
  display: block;
  max-width: 100%;
}

picture img {
  width: 100%;
  height: auto;
}

iframe,
embed,
object,
video,
canvas {
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--primary);
  color: var(--on-primary);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1.15rem;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------- layout -- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section {
  padding-block: var(--section-y);
}

.section--tight {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.section--panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0));
  border-block: 1px solid var(--border);
}

.section__head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.15rem, 5.4vw, 3.75rem);
  line-height: 1.05;
}

h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 700;
}

.lead {
  margin-top: 1.15rem;
  color: var(--text-2);
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  max-width: 42rem;
}

.section__head--center .lead {
  margin-inline: auto;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.9rem;
}

.tiny {
  font-size: 0.82rem;
}

/* -------------------------------------------------------------- buttons -- */
.btn {
  --btn-bg: var(--primary);
  --btn-fg: var(--on-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.16s var(--ease), background-color 0.16s var(--ease),
    box-shadow 0.16s var(--ease), border-color 0.16s var(--ease);
}

.btn:hover {
  --btn-bg: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -12px rgba(249, 115, 22, 0.75);
}

.btn:active {
  transform: translateY(0);
}

.btn svg {
  flex: 0 0 auto;
}

.btn--lg {
  padding: 1.02rem 1.85rem;
  font-size: 1.06rem;
}

.btn--secondary {
  --btn-bg: rgba(255, 255, 255, 0.06);
  --btn-fg: var(--text);
  border-color: var(--border-strong);
  backdrop-filter: blur(6px);
}

.btn--secondary:hover {
  --btn-bg: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-md);
}

.btn--block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.btn-note {
  margin-top: 0.95rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--primary);
  font-weight: 700;
}

.link-arrow:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------------------------------------------------------------- chips -- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--text-2);
  font-size: 0.84rem;
  font-weight: 600;
}

.chip--accent {
  border-color: rgba(249, 115, 22, 0.35);
  background: var(--primary-soft);
  color: #ffd5b0;
}

.chip__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  white-space: nowrap;
}

.pill--live {
  background: var(--success-soft);
  border-color: rgba(34, 197, 94, 0.35);
  color: #9ff0bd;
}

.pill--warn {
  background: var(--warning-soft);
  border-color: rgba(245, 158, 11, 0.35);
  color: #ffd894;
}

.pill--info {
  background: var(--info-soft);
  border-color: rgba(59, 130, 246, 0.35);
  color: #b6d4ff;
}

.pill--muted {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border);
  color: var(--muted);
}

.pill--free {
  background: var(--success-soft);
  border-color: rgba(34, 197, 94, 0.32);
  color: #9ff0bd;
}

.pill--occupied {
  background: var(--primary-soft);
  border-color: rgba(249, 115, 22, 0.35);
  color: #ffd5b0;
}

.pill--reserved {
  background: var(--info-soft);
  border-color: rgba(59, 130, 246, 0.35);
  color: #b6d4ff;
}

/* ----------------------------------------------------------------- cards -- */
.card {
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.35rem, 2.6vw, 1.9rem);
}

.card--lift {
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease),
    box-shadow 0.22s var(--ease);
}

.card--lift:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.grid {
  display: grid;
  gap: clamp(1rem, 2.2vw, 1.5rem);
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}

.split--reverse .split__text {
  order: 2;
}

.split__visual {
  min-width: 0;
}

/* --------------------------------------------------------------- header -- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 20, 23, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.header.is-stuck {
  border-bottom-color: var(--border);
  background: rgba(16, 16, 19, 0.94);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex: 0 0 auto;
}

.brand__mark {
  width: 38px;
  height: 31px;
  border-radius: 8px;
  border: none;
  object-fit: contain;
  background: transparent;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__name {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.03rem;
}

.brand__sub {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav a {
  color: var(--text-2);
  font-size: 0.93rem;
  font-weight: 600;
  transition: color 0.16s var(--ease);
}

.nav a:hover {
  color: var(--text);
}

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

.header__cta .btn {
  padding: 0.62rem 1.05rem;
  font-size: 0.92rem;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  box-shadow: 0 6px 0 var(--text), 0 -6px 0 var(--text);
  transition: transform 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] span {
  transform: rotate(45deg);
  box-shadow: none;
}

.nav-toggle[aria-expanded="true"] span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  transform: rotate(90deg);
}

.mobile-nav {
  display: none;
  border-bottom: 1px solid var(--border);
  background: rgba(16, 16, 19, 0.98);
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav ul {
  display: grid;
  gap: 0.15rem;
  padding-block: 0.85rem 1.35rem;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0.7rem 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-2);
  font-weight: 600;
}

.mobile-nav .btn {
  margin-top: 1rem;
}

/* ----------------------------------------------------------------- hero -- */
.hero {
  position: relative;
  padding-top: clamp(2.25rem, 5vw, 4rem);
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  gap: clamp(2rem, 4.5vw, 3.5rem);
  align-items: center;
}

.hero__copy {
  max-width: 40rem;
}

.hero h1 {
  margin-top: 0.35rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--primary);
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.75rem;
}

.hero__visual {
  position: relative;
  /* Sin esto, la fila de categorías del mockup (chips que no envuelven)
     imponía su ancho mínimo a la rejilla del hero y el hero desbordaba en
     móvil: el mínimo del ítem debe poder bajar de su contenido. */
  min-width: 0;
}

.hero__visual::after {
  content: "";
  position: absolute;
  inset: auto 8% -6% 8%;
  height: 60%;
  background: radial-gradient(60% 60% at 50% 100%, rgba(249, 115, 22, 0.28), transparent 70%);
  filter: blur(30px);
  z-index: -1;
  pointer-events: none;
}

/* ---------------------------------------------------------- trust strip -- */
.trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.trust__item {
  display: flex;
  gap: 0.9rem;
  padding: clamp(1.1rem, 2.2vw, 1.5rem);
  background: var(--bg-soft);
}

.trust__item h3 {
  font-size: 0.98rem;
  font-weight: 700;
}

.trust__item p {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--primary-soft);
  color: var(--primary);
}

.icon svg {
  width: 19px;
  height: 19px;
}

.icon--plain {
  background: var(--card);
  color: var(--text-2);
}

.icon--success {
  background: var(--success-soft);
  border-color: rgba(34, 197, 94, 0.25);
  color: var(--success);
}

/* ------------------------------------------------------------- listas -- */
.check-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.25rem;
}

/* El contenido va en flujo normal (envuelve bien) y el marcador se coloca en
   absoluto: con display:flex, cada <strong> y cada tramo de texto se convertían
   en flex items y la línea podía desbordar en anchos intermedios. */
.check-list li {
  position: relative;
  padding-left: 1.9rem;
  min-width: 0;
  color: var(--text-2);
  font-size: 0.96rem;
  line-height: 1.55;
  overflow-wrap: break-word;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.26rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-soft);
  border: 1px solid rgba(249, 115, 22, 0.4);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23f97316' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E");
  background-size: 11px 11px;
  background-position: center;
  background-repeat: no-repeat;
}

.check-list strong {
  color: var(--text);
  font-weight: 700;
}

.problem-list {
  display: grid;
  gap: clamp(0.9rem, 2vw, 1.25rem);
}

.problem {
  display: flex;
  gap: 1rem;
  padding: clamp(1.1rem, 2.2vw, 1.5rem);
  border: 1px solid var(--border);
  border-left: 3px solid rgba(239, 68, 68, 0.55);
  border-radius: var(--radius-md);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
}

.problem h3 {
  font-size: 1.02rem;
}

.problem p {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.problem__x {
  flex: 0 0 auto;
  color: rgba(239, 68, 68, 0.85);
  margin-top: 0.15rem;
}

.tcard__total {
  color: var(--primary);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.mods {
  display: grid;
  gap: 0.4rem;
}

.mod {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.42rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  font-size: 0.74rem;
}

.mod b {
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

/* -------------------------------------------------------------- precios -- */
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.5rem);
  align-items: start;
}

.plan {
  position: relative;
  display: grid;
  align-content: start;
  gap: 1.1rem;
  padding: clamp(1.4rem, 2.6vw, 1.9rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  box-shadow: var(--shadow-sm);
}

.plan--featured {
  border-color: rgba(249, 115, 22, 0.45);
  background: linear-gradient(170deg, rgba(249, 115, 22, 0.13), rgba(255, 255, 255, 0.015));
  box-shadow: var(--shadow-md), 0 24px 60px -30px rgba(249, 115, 22, 0.55);
}

.plan__flag {
  position: absolute;
  top: -0.75rem;
  left: clamp(1.4rem, 2.6vw, 1.9rem);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.plan__head {
  display: grid;
  gap: 0.35rem;
}

.plan__name {
  font-size: 1.15rem;
  font-weight: 800;
}

.plan__tagline {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.plan__amount {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.plan__period {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.plan__vat {
  color: var(--muted);
  font-size: 0.78rem;
}

.plan__list {
  display: grid;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: var(--text-2);
}

.plan__list li {
  display: flex;
  gap: 0.55rem;
  line-height: 1.45;
}

.plan__list li::before {
  content: "";
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin-top: 0.3rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23f4f4f6' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E")
    center / 9px 9px no-repeat;
}

.plan__list li.plan__plus::before {
  background-color: var(--primary-soft);
}

.plan__list .plan__group {
  margin-top: 0.35rem;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.plan__group::before {
  display: none;
}

.plan__list .plan__group::after {
  content: none;
}

.launch {
  display: flex;
  gap: 0.7rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(249, 115, 22, 0.4);
  border-radius: var(--radius-md);
  background: var(--primary-soft);
  color: #ffddc2;
  font-size: 0.83rem;
  line-height: 1.45;
  font-weight: 600;
}

.pricing-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.pricing-note {
  display: flex;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.pricing-note b {
  color: var(--text-2);
}

/* ----------------------------------------------------------- comparativa -- */
.compare {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.compare table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.compare th,
.compare td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.compare thead th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.compare tbody th {
  color: var(--muted);
  font-weight: 600;
  width: 30%;
}

.compare td {
  color: var(--text-2);
}

.compare .col-us {
  background: rgba(249, 115, 22, 0.07);
  color: var(--text);
  font-weight: 600;
}

.compare thead .col-us {
  color: var(--primary);
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
  border-bottom: 0;
}

/* ------------------------------------------------------------------ faq -- */
.faq {
  display: grid;
  gap: 0.7rem;
}

details.qa {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}

details.qa[open] {
  border-color: var(--border-strong);
}

details.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.2rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.98rem;
  list-style: none;
}

details.qa summary::-webkit-details-marker {
  display: none;
}

details.qa summary:hover {
  color: var(--primary);
}

.qa__icon {
  flex: 0 0 auto;
  position: relative;
  width: 16px;
  height: 16px;
}

.qa__icon::before,
.qa__icon::after {
  content: "";
  position: absolute;
  inset: 7px 0 auto 0;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
  transition: transform 0.2s var(--ease);
}

.qa__icon::after {
  transform: rotate(90deg);
}

details.qa[open] .qa__icon::after {
  transform: rotate(0);
}

.qa__body {
  padding: 0 1.2rem 1.15rem;
  color: var(--text-2);
  font-size: 0.93rem;
  line-height: 1.65;
  max-width: 62ch;
}

.qa__body p + p {
  margin-top: 0.6rem;
}

/* ------------------------------------------------------------- cta band -- */
.cta-band {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(249, 115, 22, 0.35);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(900px 400px at 15% -20%, rgba(249, 115, 22, 0.22), transparent 65%),
    linear-gradient(170deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  padding: clamp(1.75rem, 4vw, 3rem);
}

.cta-band__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.steps {
  display: grid;
  gap: 0.85rem;
}

.step {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.step__num {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(249, 115, 22, 0.4);
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
}

.step p {
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.5;
}

.step b {
  color: var(--text);
}

.mail-box {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.35rem;
}

.mail-box a {
  font-family: var(--mono);
  font-size: 0.92rem;
  color: var(--primary);
  word-break: break-all;
}

/* -------------------------------------------------------------- footer -- */
.footer {
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  padding-block: clamp(2.25rem, 4vw, 3rem);
  color: var(--muted);
  font-size: 0.88rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
}

.footer h3 {
  color: var(--text);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.footer__links {
  display: grid;
  gap: 0.15rem;
}

.footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding-block: 0.2rem;
}

.footer__links a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__contact a {
  color: var(--primary);
}

.footer__brand {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 0.9rem;
}

.footer__brand img {
  width: 46px;
  height: 38px;
  border-radius: 9px;
  border: 1px solid var(--border);
  object-fit: cover;
}

.footer__brand strong {
  display: block;
  color: var(--text);
  font-size: 1.02rem;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
}

/* --------------------------------------------------------- animaciones -- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover,
  .card--lift:hover {
    transform: none;
  }
}

/* ----------------------------------------------------------- responsive -- */
/* El hero pasa a dos columnas solo cuando el mockup del TPV tiene ancho
   suficiente para verse entero (por debajo, texto arriba y producto a ancho
   completo: se lee mejor el mockup que apretado en un tercio). */
@media (min-width: 1140px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.08fr);
  }
}

@media (max-width: 1080px) {
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plans {
    grid-template-columns: 1fr;
    max-width: 34rem;
    margin-inline: auto;
  }

  .plan--featured {
    order: -1;
  }

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

@media (max-width: 1120px) {

  .row__num--iva {
    display: none;
  }
}

@media (max-width: 980px) {
  .nav,
  .header__cta .btn--desktop {
    display: none;
  }

  .footer__links a,
  .mail-box a,
  .qa__body .link-arrow {
    min-height: 42px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .split,
  .cta-band__grid,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .split--reverse .split__text {
    order: 0;
  }

  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .grid--2,
  .grid--3,
  .grid--4,
  .trust {
    grid-template-columns: 1fr;
  }

  .trust__item {
    border-radius: 0;
  }

  .compare {
    border: 0;
    border-radius: 0;
    overflow: visible;
  }

  .compare table,
  .compare tbody,
  .compare tr,
  .compare td,
  .compare th {
    display: block;
    width: 100%;
  }

  .compare thead {
    display: none;
  }

  .compare tbody tr {
    margin-bottom: 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
  }

  .compare tbody th {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    width: 100%;
  }

  .compare tbody td {
    display: grid;
    grid-template-columns: 7.5rem minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.6rem 1rem;
  }

  .compare tbody td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .compare tbody tr:last-child th,
  .compare tbody tr:last-child td {
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 460px) {
  .hero h1 {
    font-size: clamp(1.95rem, 9vw, 2.4rem);
  }

  .btn-row .btn {
    width: 100%;
  }

  .row__num--hide {
    display: none;
  }
}

/* ==========================================================================
   CAPTURAS REALES DEL TPV
   Todas las imágenes de producto son capturas de la aplicación en uso: no se
   recrea ni se retoca la interfaz. El marco es solo presentación (borde,
   radio y sombra) y nunca tapa controles de la propia pantalla.
   ========================================================================== */
.shot {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.shot__frame {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: #0a0a0c;
  overflow: hidden;
  box-shadow: 0 28px 60px -34px rgba(0, 0, 0, 0.95), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

.shot__frame img {
  display: block;
  width: 100%;
  height: auto;
}

.shot__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-3, rgba(255, 255, 255, 0.55));
}

.shot__tag {
  flex: 0 0 auto;
  padding: 0.16rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(249, 115, 22, 0.35);
  background: rgba(249, 115, 22, 0.12);
  color: #fdba74;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.shot--hero .shot__frame {
  border-radius: 16px;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 1), 0 0 0 1px rgba(249, 115, 22, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.shot--crop .shot__frame {
  border-radius: 12px;
}

.shot--wide {
  max-width: 900px;
  margin-inline: auto;
}

/* Teléfonos: marco neutro, sin logotipos ni detalles de ningún sistema */
.phones {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.8rem, 2vw, 1.35rem);
  align-items: start;
}

.shot--phone .shot__frame {
  border-radius: 26px;
  padding: 0.5rem;
  background: linear-gradient(160deg, #17171c, #0b0b0e);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.95);
}

.shot--phone .shot__frame img {
  border-radius: 18px;
}

.shot--phone .shot__caption {
  font-size: 0.78rem;
}

@media (max-width: 980px) {
  .phones {
    gap: 0.9rem;
  }
}

@media (max-width: 560px) {
  .phones {
    grid-template-columns: minmax(0, 1fr);
    max-width: min(300px, 100%);
    margin-inline: auto;
  }
}

/* ==========================================================================
   ENDURECIMIENTO RESPONSIVE — ver en cualquier dispositivo y pantalla
   Capa final: anti-desbordamiento, safe-areas, plegables, landscape,
   tablets intermedias, ultrawide y objetivos táctiles.
   ========================================================================== */

/* 1. Ningún hijo de rejilla/flex puede forzar desbordamiento horizontal. */
.grid > *,
.split > *,
.hero__grid > *,
.trust > *,
.plans > *,
.pricing-notes > *,
.cta-band__grid > *,
.footer__grid > *,
.phones > * {
  min-width: 0;
}

/* Las tarjetas usan flex inline (icono + texto): el texto debe poder encoger. */
.card > div,
.problem > div,
.step,
.launch > *,
.pricing-note > p,
.trust__item > div {
  min-width: 0;
}

.split__text,
.hero__copy,
.card,
.plan,
.trust__item,
.problem,
.step,
.launch,
.compare,
.shot {
  min-width: 0;
}

/* 2. Texto que siempre envuelve: nada se sale por palabras largas o emails. */
body,
h1, h2, h3,
p, li, td, th,
.lead, .plan__tagline,
.check-list li,
.problem p,
.qa__body {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

h1, h2 {
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* 3. Safe-areas para móviles con notch / gestos (iPhone, Pixel, etc.). */
.shell {
  padding-left: max(var(--pad-x), env(safe-area-inset-left));
  padding-right: max(var(--pad-x), env(safe-area-inset-right));
}

.header__inner {
  padding-left: max(0px, env(safe-area-inset-left));
  padding-right: max(0px, env(safe-area-inset-right));
}

.footer {
  padding-bottom: max(clamp(2.25rem, 4vw, 3rem), env(safe-area-inset-bottom));
}

/* 4. El header nunca tapa ni se rompe en pantallas estrechas. */
.header__inner {
  flex-wrap: nowrap;
  min-width: 0;
}

.brand {
  min-width: 0;
  overflow: hidden;
}

.brand__text {
  min-width: 0;
}

.brand__name,
.brand__sub {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 5. Botones y enlaces: táctiles (44px) y sin desbordar. */
.btn {
  min-height: 44px;
  max-width: 100%;
  white-space: normal;
  text-align: center;
  overflow-wrap: break-word;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
}

.mobile-nav .btn {
  margin-bottom: max(1rem, env(safe-area-inset-bottom));
}

.footer__links a,
details.qa summary {
  min-height: 44px;
}

/* 6. Hero a prueba de todo: usa unidades dinámicas y evita saltos con la
   barra del navegador móvil (svh/dvh). */
.hero {
  min-height: auto;
}

.hero__copy,
.hero__visual {
  min-width: 0;
  max-width: 100%;
}

.btn-row {
  max-width: 100%;
}

.btn-row .btn {
  flex: 1 1 auto;
  min-width: 0;
}

.hero__proof {
  max-width: 100%;
}

.hero__proof .chip {
  max-width: 100%;
  overflow-wrap: break-word;
}

/* 7. Tablas intermedias (tablet): scroll interno elegante en vez de romper. */
.compare {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.compare table {
  min-width: 0;
}

.compare th,
.compare td {
  overflow-wrap: break-word;
  word-break: normal;
}

/* 8. Teléfonos y capturas: nunca más anchos que la pantalla. */
.shot,
.shot__frame,
.shot--wide,
.shot--hero {
  max-width: 100%;
}

/* 9. Pantallas muy grandes / ultrawide / 4K: centra y respira, sin estirar. */
@media (min-width: 1400px) {
  :root {
    --shell: 1280px;
    --section-y: clamp(4rem, 6vw, 7.5rem);
  }
}

@media (min-width: 1920px) {
  :root {
    --shell: 1360px;
  }

  body {
    background-size: 1400px 900px, 1100px 750px;
  }
}

/* 10. Rangos intermedios problemáticos (tablets portrait, portátiles peq.). */
@media (max-width: 1080px) and (min-width: 721px) {
  .compare {
    border-radius: var(--radius-lg);
  }

  .compare table {
    font-size: 0.84rem;
  }

  .compare th,
  .compare td {
    padding: 0.75rem 0.85rem;
  }
}

@media (max-width: 980px) and (min-width: 721px) {
  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero__copy {
    max-width: 44rem;
  }
}

/* 11. Móviles pequeños y plegables (≤400px, Galaxy Fold 280px, iPhone SE). */
@media (max-width: 400px) {
  :root {
    --pad-x: clamp(0.85rem, 5vw, 1.1rem);
    --section-y: clamp(2.75rem, 10vw, 3.75rem);
  }

  body {
    font-size: 15px;
  }

  h1 {
    font-size: clamp(1.7rem, 8.5vw, 2.1rem);
    line-height: 1.12;
  }

  h2 {
    font-size: clamp(1.35rem, 6.5vw, 1.6rem);
  }

  .lead {
    font-size: clamp(0.96rem, 4.2vw, 1.05rem);
  }

  .btn--lg {
    padding: 0.95rem 1.25rem;
    font-size: 1rem;
  }

  .chip {
    font-size: 0.78rem;
    padding: 0.36rem 0.65rem;
  }

  .card,
  .plan {
    padding: 1.15rem;
  }

  .trust__item {
    padding: 1rem;
  }

  .compare tbody td {
    grid-template-columns: minmax(5rem, 6.5rem) minmax(0, 1fr);
    gap: 0.6rem;
    padding: 0.55rem 0.85rem;
  }

  .brand__sub {
    display: none;
  }

  .cta-band {
    padding: 1.4rem;
  }

  .mail-box a {
    font-size: 0.82rem;
  }
}

@media (max-width: 320px) {
  .hero__proof .chip {
    flex: 1 1 100%;
    justify-content: center;
    text-align: center;
  }

  .plan__amount {
    font-size: 1.9rem;
  }

  .step p,
  .check-list li {
    font-size: 0.9rem;
  }
}

/* 12. Landscape con poca altura (móviles apaisados, netbooks): compacta. */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .section {
    padding-block: clamp(2rem, 6vh, 3rem);
  }

  .header__inner {
    min-height: 56px;
  }
}

/* 13. Zoom al 200% / texto grande: la rejilla colapsa antes de romperse. */
@media (max-width: 860px) {
  .split {
    gap: 1.5rem;
  }
}

/* 14. Pantallas táctiles: sin hover pegajoso, sin zoom accidental en inputs. */
@media (hover: none) and (pointer: coarse) {
  .card--lift:hover,
  .btn:hover {
    transform: none;
  }

  .btn {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  details.qa summary {
    -webkit-tap-highlight-color: transparent;
  }
}

/* 15. Alto contraste / modo forzado (Windows HC): bordes siempre visibles. */
@media (forced-colors: active) {
  .card,
  .plan,
  .trust__item,
  .shot__frame,
  .compare {
    border: 1px solid CanvasText;
  }

  .btn {
    border: 1px solid CanvasText;
  }
}

/* 16. Impresión: la landing también debe verse bien en papel/PDF. */
@media print {
  .header__cta,
  .nav-toggle,
  .mobile-nav,
  .hero__visual::after {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  .card,
  .plan,
  .trust__item {
    break-inside: avoid;
    border: 1px solid #999;
    box-shadow: none;
  }
}
