/* ============================================================
   Avirato POS — Landing page
   Estilos principales
   ============================================================ */

/* ── Variables de marca ── */
:root {
  --primary: #1a56db;
  --primary-dark: #1e429f;
  --primary-darker: #16308f;
  --accent: #0ea5e9;
  --green: #059669;
  --green-soft: #d1fae5;
  --orange: #d97706;
  --orange-soft: #fef3c7;

  --text: #0f172a;
  --text-muted: #64748b;
  --text-soft: #475569;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-soft: #f1f5f9;
  --border: #e5e7eb;
  --border-soft: #eef2f7;

  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 8px 24px -8px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 24px 60px -18px rgba(15, 23, 42, 0.25);
  --shadow-primary: 0 14px 30px -10px rgba(26, 86, 219, 0.5);

  --maxw: 1180px;
  --gradient: linear-gradient(135deg, var(--primary), var(--accent));
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Tipografía global ── */
h1, h2, h3, h4 { line-height: 1.18; letter-spacing: -0.02em; font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.15rem; font-weight: 700; }

.grad-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ── Secciones genéricas ── */
.section { padding: 84px 0; }

.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; max-width: 720px; margin-inline: auto; }

.kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: #eff4ff;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.kicker.amber { color: var(--orange); background: var(--orange-soft); }
.kicker.green { color: var(--green); background: var(--green-soft); }
.kicker.light { color: #fff; background: rgba(255, 255, 255, 0.15); }

.section-lead {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-top: 14px;
}

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 12px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn-sm { padding: 9px 16px; font-size: 0.875rem; border-radius: 10px; }
.btn-lg { padding: 15px 28px; font-size: 1.02rem; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }

.btn-outline {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

.btn-ghost { background: transparent; color: var(--text-soft); }
.btn-ghost:hover { color: var(--primary); }

.play-dot { font-size: 0.7rem; color: var(--primary); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-icon {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--gradient);
  color: #fff;
  border-radius: 11px;
  box-shadow: var(--shadow-primary);
}
.brand-name { font-size: 1.25rem; letter-spacing: -0.03em; color: var(--text); }
.brand-name strong { color: var(--primary); }

.main-nav { display: flex; gap: 28px; }
.main-nav a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-soft);
  position: relative;
  transition: color 0.2s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width 0.2s ease;
}
.main-nav a:hover { color: var(--primary); }
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 72px 0 56px;
  overflow: hidden;
  /* Capas (de arriba a abajo): imagen de la dependienta + brillos azules + degradado base */
  background:
    url("assets/img/dependienta.webp") right bottom / auto 100% no-repeat,
    radial-gradient(1100px 600px at 78% -8%, rgba(232, 241, 255, 0.85) 0%, transparent 55%),
    radial-gradient(800px 500px at 10% 0%, rgba(240, 249, 255, 0.9) 0%, transparent 50%),
    linear-gradient(to bottom, #f3f1f2 0%, #dfdcde 100%);
}
/* Sustituir por imagen real de mayor resolución si se desea: assets/img/dependienta-b.png */
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-dark);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero-title {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}
.hero-sub {
  font-size: 1.18rem;
  color: var(--text-muted);
  margin: 22px 0 32px;
  max-width: 540px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 500;
}
.hero-trust li { display: inline-flex; align-items: center; gap: 7px; }
.check {
  display: inline-grid; place-items: center;
  width: 18px; height: 18px;
  background: var(--green-soft);
  color: var(--green);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 800;
}

/* ── Mockup del hero ── */
.hero-mockup { position: relative; }

.device {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.device-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.device-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.amber { background: #febc2e; }
.dot.green { background: #28c840; }
.device-url {
  margin-left: 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 3px 12px;
}

.pos-app { display: flex; min-height: 320px; }
.pos-sidebar {
  width: 56px;
  background: var(--primary-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
}
.pos-logo {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-weight: 800;
  border-radius: 9px;
  margin-bottom: 8px;
}
.pos-nav-item {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 9px;
  font-size: 1.05rem;
  opacity: 0.65;
  filter: grayscale(0.2);
}
.pos-nav-item.active { background: rgba(255,255,255,0.22); opacity: 1; }

.pos-main { flex: 1; display: grid; grid-template-columns: 1.4fr 1fr; }
.pos-products { padding: 16px; background: var(--bg-alt); }
.pos-product-title { font-size: 0.78rem; font-weight: 700; color: var(--text-muted); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.pos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pos-prod {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 10px;
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-sm);
}
.pos-prod small { font-weight: 700; color: var(--primary); font-size: 0.8rem; }
.pos-prod.p1 { border-top: 3px solid #1a56db; }
.pos-prod.p2 { border-top: 3px solid #0ea5e9; }
.pos-prod.p3 { border-top: 3px solid #059669; }
.pos-prod.p4 { border-top: 3px solid #d97706; }
.pos-prod.p5 { border-top: 3px solid #7c3aed; }
.pos-prod.p6 { border-top: 3px solid #db2777; }

.pos-ticket {
  padding: 16px;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.pos-ticket-head { font-size: 0.8rem; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.pos-line {
  display: flex; justify-content: space-between;
  font-size: 0.82rem; color: var(--text-soft);
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
}
.pos-total {
  display: flex; justify-content: space-between;
  font-weight: 800; font-size: 1rem;
  margin-top: 12px; padding-top: 10px;
  border-top: 2px solid var(--text);
}
.pos-pay {
  margin-top: auto;
  background: var(--primary);
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 11px;
  border-radius: 10px;
}

/* Tarjetas flotantes */
.float-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 14px 16px;
  animation: floaty 5s ease-in-out infinite;
}
.float-sales {
  top: -22px; right: -10px;
  display: flex; flex-direction: column; gap: 2px;
}
.float-stock {
  bottom: -24px; left: -18px;
  display: flex; align-items: center; gap: 10px;
  animation-delay: 1.2s;
}
.fc-label { font-size: 0.72rem; color: var(--text-muted); font-weight: 600; }
.fc-value { font-size: 1.3rem; font-weight: 800; }
.fc-trend { font-size: 0.76rem; font-weight: 700; }
.fc-trend.up { color: var(--green); }
.fc-icon { font-size: 1.5rem; }
.fc-mini { display: block; font-size: 0.72rem; color: var(--text-muted); }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ── Barra de logos / sectores ── */
.logos-caption {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 600;
  margin: 56px 0 18px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.logos-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 30px;
}
.logos-row li {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-soft);
  opacity: 0.85;
}

/* ============================================================
   BENEFICIOS
   ============================================================ */
.benefits { background: var(--bg-alt); }
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.benefit-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: #d4def0;
}
.benefit-ico {
  display: inline-grid; place-items: center;
  width: 52px; height: 52px;
  font-size: 1.6rem;
  background: #eff4ff;
  border-radius: 13px;
  margin-bottom: 18px;
}
.benefit-card h3 { margin-bottom: 8px; }
.benefit-card p { color: var(--text-muted); font-size: 0.96rem; }

/* ============================================================
   SECTORES
   ============================================================ */
.sector-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.sector-block {
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.sector-block:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.sector-block.hosteleria { background: linear-gradient(160deg, #fffbeb, #fff); border-color: #fde68a; }
.sector-block.comercio { background: linear-gradient(160deg, #ecfdf5, #fff); border-color: #a7f3d0; }

.sector-block-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.sector-emoji {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  font-size: 1.9rem;
  background: #fff;
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
}
.sector-block-head h3 { font-size: 1.5rem; }
.sector-block-head p { color: var(--text-muted); font-size: 0.94rem; }

.chip-list { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 24px; }
.chip-list li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
}
.hosteleria .chip-list li { border-color: #fde68a; }
.comercio .chip-list li { border-color: #a7f3d0; }

.sector-link { font-weight: 700; font-size: 0.95rem; }
.hosteleria .sector-link { color: var(--orange); }
.comercio .sector-link { color: var(--green); }
.sector-link:hover { text-decoration: underline; }

/* ============================================================
   FUNCIONALIDADES
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d4def0; }
.feature-ico {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px;
  font-size: 1.4rem;
  background: var(--bg-soft);
  border-radius: 12px;
  margin-bottom: 16px;
}
.feature-card h3 { margin-bottom: 7px; }
.feature-card p { color: var(--text-muted); font-size: 0.92rem; }

/* ============================================================
   DETALLE POR VERTICAL (hostelería / comercio)
   ============================================================ */
.hosteleria-detail { background: linear-gradient(180deg, #fffdf5, var(--bg)); }
.comercio-detail { background: linear-gradient(180deg, #f3fdf8, var(--bg)); }

.split-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split-feature.reverse .split-text { order: 2; }

.split-text .section-lead { margin-bottom: 24px; }

.check-list { display: flex; flex-direction: column; gap: 13px; margin-bottom: 30px; }
.check-list li {
  position: relative;
  padding-left: 34px;
  font-size: 1rem;
  color: var(--text-soft);
}
.check-list li strong { color: var(--text); }
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 1px;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 800;
}
.check-list.amber li::before { background: var(--orange-soft); color: var(--orange); }
.check-list.green li::before { background: var(--green-soft); color: var(--green); }

/* Paneles mockup */
.split-visual { display: flex; justify-content: center; }
.panel {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.95rem;
}
.panel-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange);
}
.panel-tag.green { background: var(--green-soft); color: var(--green); }

/* Plano de mesas */
.tables-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 22px 18px;
}
.table-dot {
  aspect-ratio: 1;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  border: 2px solid;
}
.table-dot small { font-weight: 600; font-size: 0.68rem; margin-top: 2px; }
.table-dot.free { background: var(--bg-soft); border-color: var(--border); color: var(--text-muted); }
.table-dot.busy { background: #eff4ff; border-color: #bcd0f7; color: var(--primary-dark); }
.table-dot.pay { background: var(--orange-soft); border-color: #fcd34d; color: var(--orange); }
.tables-legend {
  display: flex;
  gap: 18px;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
}
.tables-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.lg.free { background: var(--bg-soft); border: 1px solid var(--border); }
.lg.busy { background: #bcd0f7; }
.lg.pay { background: #fcd34d; }

/* Control de stock */
.stock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.92rem;
}
.sk-name { font-weight: 500; color: var(--text-soft); }
.sk-qty {
  font-weight: 800;
  font-size: 0.82rem;
  padding: 3px 11px;
  border-radius: 999px;
  min-width: 44px;
  text-align: center;
}
.sk-qty.ok { background: var(--green-soft); color: var(--green); }
.sk-qty.low { background: var(--orange-soft); color: var(--orange); }
.sk-qty.out { background: #fee2e2; color: #dc2626; }
.stock-foot { padding: 14px 18px; }
.scanner {
  display: inline-block;
  font-family: monospace;
  letter-spacing: 1px;
  font-size: 0.82rem;
  color: var(--text-soft);
  background: var(--bg-soft);
  padding: 6px 12px;
  border-radius: 8px;
}

/* ============================================================
   DIFERENCIADORES
   ============================================================ */
.differentiators { background: var(--bg-alt); }
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.diff-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.diff-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.diff-card.wide { grid-column: span 3; display: flex; align-items: center; gap: 20px; }
.diff-card.wide .diff-ico { margin-bottom: 0; flex-shrink: 0; }
.diff-ico {
  display: inline-grid; place-items: center;
  width: 50px; height: 50px;
  font-size: 1.5rem;
  background: var(--gradient);
  border-radius: 13px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-primary);
}
.diff-card h3 { margin-bottom: 7px; }
.diff-card p { color: var(--text-muted); font-size: 0.94rem; }

/* ============================================================
   SHOWCASE / MOCKUPS
   ============================================================ */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.show-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.show-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.show-head {
  padding: 14px 18px;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--text-soft);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.show-body { padding: 18px; min-height: 220px; }
.show-body-center { display: grid; place-items: center; }

/* mini pos */
.mini-pos { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 7px; margin-bottom: 14px; }
.mini-prod {
  background: var(--bg-soft);
  border-radius: 8px;
  padding: 12px 4px;
  text-align: center;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-soft);
}
.mini-ticket { display: flex; flex-direction: column; gap: 4px; }
.mini-line { display: flex; justify-content: space-between; font-size: 0.84rem; color: var(--text-soft); }
.mini-line.total { font-weight: 800; color: var(--text); border-top: 2px solid var(--text); padding-top: 8px; margin-top: 4px; }

/* chart */
.chart {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  height: 130px;
  padding: 10px 4px;
}
.chart .bar {
  flex: 1;
  height: var(--h);
  background: linear-gradient(180deg, var(--accent), var(--primary));
  border-radius: 6px 6px 0 0;
  opacity: 0.9;
  transition: height 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.chart-foot { display: flex; justify-content: space-between; margin-top: 14px; }
.chart-foot small { display: block; font-size: 0.74rem; color: var(--text-muted); }
.chart-kpi { font-size: 1.2rem; font-weight: 800; }
.chart-kpi.up { color: var(--green); }

/* receipt */
.receipt {
  width: 100%;
  max-width: 200px;
  background: #fff;
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 16px 14px;
  font-family: monospace;
  font-size: 0.76rem;
  color: var(--text-soft);
}
.receipt-logo { text-align: center; font-weight: 800; letter-spacing: 1px; color: var(--text); font-family: 'Inter', sans-serif; }
.receipt-sub { text-align: center; font-size: 0.62rem; color: var(--text-muted); margin-bottom: 12px; }
.receipt-line { display: flex; justify-content: space-between; padding: 2px 0; }
.receipt-line.bold { font-weight: 800; color: var(--text); }
.receipt-dash { border-top: 1px dashed var(--border); margin: 8px 0; }
.receipt-verifactu {
  margin-top: 10px;
  text-align: center;
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--green);
  font-family: 'Inter', sans-serif;
}
.receipt-qr {
  width: 48px; height: 48px;
  margin: 10px auto 0;
  border-radius: 6px;
  background:
    conic-gradient(#0f172a 90deg, #fff 90deg 180deg, #0f172a 180deg 270deg, #fff 270deg) ,
    repeating-conic-gradient(#0f172a 0 25%, #fff 0 50%);
  background-size: 16px 16px;
  border: 3px solid #0f172a;
}

/* cash panel */
.cash-row {
  display: flex; justify-content: space-between;
  font-size: 0.86rem; color: var(--text-soft);
  padding: 9px 0;
  border-bottom: 1px solid var(--border-soft);
}
.cash-row.total { font-weight: 800; color: var(--text); border-top: 2px solid var(--text); border-bottom: none; margin-top: 6px; padding-top: 11px; }
.cash-status {
  margin-top: 14px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  padding: 8px;
  border-radius: 8px;
}

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust-strip { padding: 64px 0; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.trust-item {
  text-align: center;
  padding: 22px;
  border-right: 1px solid var(--border);
}
.trust-item:last-child { border-right: none; }
.trust-num {
  display: block;
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}
.trust-lbl { color: var(--text-muted); font-size: 0.9rem; }

/* ============================================================
   CTA FINAL
   ============================================================ */
.final-cta { padding: 90px 0; }
.cta-panel {
  position: relative;
  text-align: center;
  background: linear-gradient(140deg, var(--primary-darker), var(--primary) 55%, var(--accent));
  border-radius: var(--radius-lg);
  padding: 64px 32px;
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 20% 10%, rgba(255,255,255,0.18), transparent 60%),
    radial-gradient(500px 300px at 90% 100%, rgba(255,255,255,0.12), transparent 60%);
  pointer-events: none;
}
.cta-panel h2 { font-size: clamp(1.8rem, 3.5vw, 2.7rem); margin-bottom: 14px; position: relative; }
.cta-panel > p {
  color: rgba(255,255,255,0.88);
  font-size: 1.08rem;
  max-width: 560px;
  margin: 0 auto 30px;
  position: relative;
}
.cta-form {
  position: relative;
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto 14px;
}
.cta-form input {
  flex: 1;
  font-family: inherit;
  font-size: 1rem;
  padding: 15px 18px;
  border-radius: 12px;
  border: 2px solid transparent;
  outline: none;
}
.cta-form input:focus { border-color: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,0.25); }
.cta-form .btn-primary { background: #fff; color: var(--primary-dark); box-shadow: none; }
.cta-form .btn-primary:hover { background: #f0f4ff; }
.cta-form-msg { position: relative; min-height: 20px; font-size: 0.88rem; font-weight: 600; margin-bottom: 6px; }
.cta-form-msg.ok { color: #d1fae5; }
.cta-form-msg.err { color: #fecaca; }

.cta-points {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  margin-top: 18px;
}
.cta-points li { display: inline-flex; align-items: center; gap: 8px; font-size: 0.94rem; font-weight: 500; }
.cta-points .check { background: rgba(255,255,255,0.22); color: #fff; }

.cta-alt { position: relative; margin-top: 26px; font-size: 0.95rem; color: rgba(255,255,255,0.82); }
.cta-alt a { color: #fff; font-weight: 700; text-decoration: underline; }

/* ── Formulario de demo (nombre + teléfono + email) ── */
.demo-form {
  flex-direction: column;
  max-width: 800px;
  align-items: stretch;
}
.demo-fields {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.demo-form .btn-primary { width: 100%; }
.demo-form input:disabled,
.demo-form .btn-primary:disabled { opacity: 0.7; cursor: not-allowed; }

/* Honeypot anti-spam: oculto a usuarios reales y a lectores de pantalla */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Consentimiento RGPD */
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.5;
}
.consent input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #fff;
  cursor: pointer;
}
.consent a { color: #fff; font-weight: 700; text-decoration: underline; }

@media (max-width: 620px) {
  .demo-fields { grid-template-columns: 1fr; }
}

/* ============================================================
   MODAL LEGAL
   ============================================================ */
.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.legal-modal.open { display: flex; }
.legal-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(3px);
  animation: legalFade 0.2s ease;
}
.legal-modal-box {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: 86vh;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: legalPop 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.legal-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.legal-modal-head h3 { font-size: 1.15rem; }
.legal-modal-close {
  width: 36px; height: 36px;
  border: none;
  background: var(--bg-soft);
  border-radius: 10px;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-soft);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}
.legal-modal-close:hover { background: #fee2e2; color: #dc2626; }
.legal-modal-body {
  padding: 24px 28px 32px;
  overflow-y: auto;
}
.legal-loading { color: var(--text-muted); text-align: center; padding: 40px 0; }

/* Estilos del contenido legal inyectado */
.legal-modal-body .legal-content h1 { font-size: 1.5rem; margin-bottom: 16px; }
.legal-modal-body .legal-content h2 {
  font-size: 1.08rem;
  margin: 24px 0 8px;
  color: var(--primary-dark);
}
.legal-modal-body .legal-content p { color: var(--text-soft); margin-bottom: 12px; font-size: 0.95rem; }
.legal-modal-body .legal-content ul { padding-left: 22px; margin-bottom: 14px; list-style: disc; }
.legal-modal-body .legal-content li { color: var(--text-soft); margin-bottom: 6px; font-size: 0.95rem; }
.legal-modal-body .legal-content a { color: var(--primary); text-decoration: underline; }
.legal-modal-body .legal-meta { font-size: 0.85rem; color: var(--text-muted); }
.legal-modal-body .highlight-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 16px;
}
.legal-modal-body table { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: 0.88rem; }
.legal-modal-body th, .legal-modal-body td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; }
.legal-modal-body th { background: var(--bg-soft); }

@keyframes legalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes legalPop { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: #0b1220; color: #cbd5e1; padding: 64px 0 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.site-footer .brand-name { color: #fff; }
.site-footer .brand-name strong { color: var(--accent); }
.footer-tagline { margin-top: 16px; color: #94a3b8; font-size: 0.92rem; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 0.92rem; margin-bottom: 16px; font-weight: 700; }
.footer-col a {
  display: block;
  color: #94a3b8;
  font-size: 0.9rem;
  padding: 5px 0;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 26px;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { color: #64748b; font-size: 0.84rem; }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a { color: #94a3b8; font-size: 0.84rem; }
.footer-legal a:hover { color: #fff; }

/* ── Botón volver arriba ── */
.to-top {
  position: fixed;
  bottom: 26px; right: 26px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-primary);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, background 0.2s;
  z-index: 90;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--primary-dark); }

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  /* En tablet/móvil quitamos la imagen de fondo para no tapar el contenido */
  .hero {
    background:
      radial-gradient(1100px 600px at 78% -8%, rgba(232, 241, 255, 0.85) 0%, transparent 55%),
      radial-gradient(800px 500px at 10% 0%, rgba(240, 249, 255, 0.9) 0%, transparent 50%),
      linear-gradient(to bottom, #f3f1f2 0%, #dfdcde 100%);
  }
  .hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .hero-copy { text-align: center; margin-inline: auto; }
  .hero-sub { margin-inline: auto; }
  .hero-cta, .hero-trust { justify-content: center; }
  .hero-mockup { max-width: 540px; margin: 0 auto; }

  .benefit-grid, .feature-grid, .diff-grid { grid-template-columns: repeat(2, 1fr); }
  .diff-card.wide { grid-column: span 2; }

  .showcase-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: none; }

  .split-feature { grid-template-columns: 1fr; gap: 40px; }
  .split-feature.reverse .split-text { order: 0; }
  .split-text { text-align: center; }
  .check-list li { text-align: left; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed;
    top: 70px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 12px 24px 20px;
    transform: translateY(-130%);
    transition: transform 0.3s ease;
    z-index: 99;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--border-soft); width: 100%; }
  .main-nav a::after { display: none; }

  .header-actions .btn-ghost { display: none; }
  .nav-toggle { display: flex; }

  .section { padding: 64px 0; }
  .sector-split { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .benefit-grid, .feature-grid, .diff-grid, .showcase-grid, .trust-grid { grid-template-columns: 1fr; }
  .diff-card.wide { grid-column: span 1; flex-direction: column; align-items: flex-start; }
  .trust-item { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 22px; }
  .trust-item:last-child { border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .cta-form { flex-direction: column; }
  .header-actions .btn-sm { padding: 8px 12px; font-size: 0.82rem; }
  .pos-main { grid-template-columns: 1fr; }
  .pos-ticket { display: none; }
  .float-card { display: none; }
}

/* Accesibilidad: respeta reduce-motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
