:root {
  --bg-dark: #07131e;
  --bg-dark-2: #0b1c2c;
  --bg-card-dark: #0f2438;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --emerald: #059669;
  --emerald-bright: #10b981;
  --emerald-soft: #ecfdf5;
  --sky: #0284c7;
  --sky-bright: #38bdf8;
  --amber: #d97706;
  --amber-soft: #fffbeb;
  --red: #dc2626;
  --text-dark: #0f172a;
  --text-muted: #475569;
  --text-light: #f1f5f9;
  --text-muted-light: #94a3b8;
  --border-light: #e2e8f0;
  --border-dark: rgba(148, 163, 184, 0.18);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 28px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 24px 56px rgba(7, 19, 30, 0.25);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --max-w: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  line-height: 1.18;
  margin-top: 0;
  letter-spacing: -0.02em;
}

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

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

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

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

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(7, 19, 30, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dark);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-brand img {
  height: 40px;
  width: auto;
}

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

.nav-links a {
  color: #cbd5e1;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.18s ease;
}

.nav-links a:hover {
  color: #34d399;
}

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

.mobile-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-dark);
  color: #ffffff;
  border-radius: 10px;
  width: 42px;
  height: 42px;
  font-size: 1.25rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 11px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  text-align: center;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-bright) 100%);
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.38);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.38);
}

.btn-outline-dark {
  background: #ffffff;
  color: var(--text-dark);
  border-color: var(--border-light);
}

.btn-outline-dark:hover {
  border-color: var(--emerald);
  color: var(--emerald);
}

.btn-sky {
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(14, 165, 233, 0.28);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.86rem;
  border-radius: 9px;
}

/* Mobile Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 19, 30, 0.65);
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: min(300px, 85vw);
  height: 100%;
  background: var(--bg-dark-2);
  color: #ffffff;
  z-index: 130;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: right 0.25s ease;
  border-left: 1px solid var(--border-dark);
}

.mobile-drawer.open {
  right: 0;
}

.mobile-drawer a {
  padding: 10px 6px;
  border-bottom: 1px solid var(--border-dark);
  font-weight: 600;
  color: #e2e8f0;
}

/* Hero Section */
.hero {
  background:
    radial-gradient(900px 500px at 12% 8%, rgba(16, 185, 129, 0.16), transparent 60%),
    radial-gradient(760px 440px at 88% 15%, rgba(56, 189, 248, 0.14), transparent 60%),
    linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
  color: var(--text-light);
  padding: 68px 0 80px;
  border-bottom: 1px solid var(--border-dark);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 44px;
  align-items: center;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #6ee7b7;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 18px;
}

.hero h1 .accent {
  background: linear-gradient(90deg, #34d399, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.1rem;
  color: #cbd5e1;
  margin: 0 0 24px;
  max-width: 620px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 0.9rem;
  color: #cbd5e1;
}

.hero-checks li::before {
  content: "✓ ";
  color: #34d399;
  font-weight: 800;
}

.hero-card {
  background: rgba(15, 36, 56, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-lg);
}

.hero-mockup-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-dark);
  font-size: 0.8rem;
  color: #94a3b8;
}

.hero-dots {
  display: flex;
  gap: 6px;
}

.hero-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #334155;
}

.hero-dots span:first-child { background: #ef4444; }
.hero-dots span:nth-child(2) { background: #f59e0b; }
.hero-dots span:nth-child(3) { background: #10b981; }

.hero-shot {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0b1726;
}

.hero-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.hero-kpi {
  background: rgba(7, 19, 30, 0.72);
  border: 1px solid var(--border-dark);
  border-radius: 10px;
  padding: 10px 12px;
}

.hero-kpi strong {
  display: block;
  font-size: 1.05rem;
  color: #34d399;
}

.hero-kpi span {
  font-size: 0.76rem;
  color: #94a3b8;
}

/* Sections */
.section {
  padding: 76px 0;
}

.section-light {
  background: var(--bg-light);
}

.section-dark {
  background: var(--bg-dark);
  color: var(--text-light);
}

.section-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 48px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--emerald);
  background: var(--emerald-soft);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.section-dark .eyebrow {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 14px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0;
}

.section-dark .section-head p {
  color: var(--text-muted-light);
}

/* Strip trust */
.trust-strip {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  padding: 20px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
}

.trust-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--emerald-soft);
  color: var(--emerald);
  display: grid;
  place-items: center;
  font-weight: 800;
  flex-shrink: 0;
}

.trust-item strong {
  display: block;
  font-size: 0.92rem;
}

.trust-item span {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Categorias SANDACH cards */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.cat-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.cat-card.featured {
  border: 2px solid var(--emerald);
  box-shadow: var(--shadow-md);
}

.cat-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.cat-1 { background: #fef2f2; color: #b91c1c; }
.cat-2 { background: #ecfdf5; color: #047857; }
.cat-3 { background: #eff6ff; color: #1d4ed8; }

.cat-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.cat-card p {
  font-size: 0.93rem;
  color: var(--text-muted);
  margin: 0;
}

/* Bento Grid 6 funcionalidades */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.bento-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.bento-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--emerald-soft);
  color: var(--emerald);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
}

.bento-card h3 {
  font-size: 1.18rem;
  margin-bottom: 2px;
}

.bento-card p {
  font-size: 0.94rem;
  color: var(--text-muted);
  margin: 0;
}

.bento-list {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
  color: #334155;
  display: grid;
  gap: 6px;
}

.bento-list li::before {
  content: "• ";
  color: var(--emerald);
  font-weight: 800;
}

/* Showcase Tabs */
.showcase-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}

.tab-btn {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.18s ease;
}

.tab-btn.active {
  background: var(--emerald);
  color: #ffffff;
  border-color: var(--emerald);
  box-shadow: 0 8px 18px rgba(5, 150, 105, 0.24);
}

.showcase-panel {
  display: none;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.showcase-panel.active {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 32px;
  align-items: center;
}

.showcase-media {
  background: #0f172a;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #1e293b;
}

.showcase-media img {
  border-radius: 10px;
  max-height: 390px;
  object-fit: contain;
}

.showcase-copy h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.showcase-copy p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.showcase-copy ul {
  margin: 0 0 20px;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: #1e293b;
  font-size: 0.94rem;
}

/* Modulo Opcional Facturacion */
.addon-box {
  background: linear-gradient(135deg, rgba(15, 36, 56, 0.95) 0%, rgba(7, 19, 30, 0.98) 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
}

.addon-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #7dd3fc;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.addon-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.addon-feat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  padding: 14px;
}

.addon-feat strong {
  display: block;
  color: #f8fafc;
  font-size: 0.93rem;
  margin-bottom: 4px;
}

.addon-feat span {
  font-size: 0.84rem;
  color: #94a3b8;
}

.addon-card-side {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(52, 211, 153, 0.32);
  border-radius: var(--radius-md);
  padding: 24px;
}

.toggle-demo-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #07131e;
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 0.88rem;
}

.status-on {
  color: #34d399;
  font-weight: 800;
}

.status-off {
  color: #94a3b8;
  font-weight: 700;
}

/* Calculadora ROI */
.roi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.roi-control {
  margin-bottom: 22px;
}

.roi-control label {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.roi-control input[type="range"] {
  width: 100%;
  accent-color: var(--emerald);
  cursor: pointer;
}

.roi-results {
  background: var(--bg-dark-2);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.roi-metric-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.roi-metric {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 14px;
}

.roi-metric span {
  display: block;
  font-size: 0.8rem;
  color: #94a3b8;
}

.roi-metric strong {
  font-size: 1.45rem;
  color: #34d399;
}

/* Comparativa */
.compare-table-wrap {
  overflow-x: auto;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.compare-table th, .compare-table td {
  padding: 15px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.94rem;
}

.compare-table thead th {
  background: #f1f5f9;
  font-weight: 800;
  color: var(--text-dark);
}

.compare-table .col-good {
  background: #f0fdf4;
  font-weight: 600;
  color: #065f46;
}

.compare-table .col-bad {
  color: #991b1b;
}

/* Pricing */
.pricing-switch {
  display: inline-flex;
  background: #e2e8f0;
  padding: 5px;
  border-radius: 999px;
  gap: 6px;
  margin-top: 18px;
}

.pricing-switch button {
  border: 0;
  background: transparent;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--text-dark);
}

.pricing-switch button.active {
  background: var(--bg-dark);
  color: #ffffff;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.price-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.price-card.popular {
  border: 2px solid var(--emerald);
  box-shadow: var(--shadow-md);
}

.popular-ribbon {
  position: absolute;
  top: -12px;
  right: 22px;
  background: var(--emerald);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
}

.price-value {
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 12px 0 4px;
}

.price-value small {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

.price-setup {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 9px;
  font-size: 0.92rem;
  flex-grow: 1;
}

.price-features li::before {
  content: "✓ ";
  color: var(--emerald);
  font-weight: 800;
}

/* FAQ */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-dark);
  cursor: pointer;
}

.faq-q span.plus {
  font-size: 1.25rem;
  color: var(--emerald);
  flex-shrink: 0;
}

.faq-a {
  display: none;
  padding: 0 20px 18px;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.faq-item.open .faq-a {
  display: block;
}

/* Contacto / Demo Form */
.lead-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 32px;
  align-items: start;
}

.lead-form-card {
  background: rgba(15, 36, 56, 0.92);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: #07131e;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 10px;
  padding: 11px 13px;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.94rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--emerald-bright);
  border-color: transparent;
}

.form-msg {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  display: none;
}

.form-msg.ok {
  display: block;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #a7f3d0;
}

.form-msg.err {
  display: block;
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(248, 113, 113, 0.45);
  color: #fecaca;
}

/* Footer 5 columnas */
.footer {
  background: #050d16;
  color: #cbd5e1;
  padding: 60px 0 28px;
  border-top: 1px solid var(--border-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.15fr;
  gap: 28px;
  margin-bottom: 36px;
}

.footer h4 {
  color: #ffffff;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  font-size: 0.88rem;
}

.footer a:hover {
  color: #34d399;
}

.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.83rem;
  color: #94a3b8;
}

/* Modal Simulador QR SEPRONA */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 19, 30, 0.78);
  backdrop-filter: blur(5px);
  z-index: 150;
  display: none;
  place-items: center;
  padding: 18px;
}

.modal-backdrop.open {
  display: grid;
}

.modal-box {
  background: #ffffff;
  color: var(--text-dark);
  width: min(560px, 100%);
  border-radius: 18px;
  padding: 26px;
  box-shadow: var(--shadow-lg);
  position: relative;
  max-height: 92vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f1f5f9;
  border: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-weight: 800;
  cursor: pointer;
}

/* WhatsApp Floating Button */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #16a34a;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 12px 28px rgba(22, 163, 74, 0.36);
}

.wa-float:hover {
  background: #15803d;
}

/* Legal pages */
.legal-page {
  background: var(--bg-light);
  padding: 48px 0 72px;
}

.legal-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 880px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}

.legal-card h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.legal-card h2 {
  font-size: 1.25rem;
  margin-top: 26px;
  margin-bottom: 8px;
  color: var(--emerald);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid,
  .showcase-panel.active,
  .addon-box,
  .roi-grid,
  .lead-grid {
    grid-template-columns: 1fr;
  }

  .bento-grid,
  .cat-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (max-width: 768px) {
  .nav-links,
  .nav-actions .hide-mobile {
    display: none;
  }

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

  .bento-grid,
  .cat-grid,
  .pricing-grid,
  .footer-grid,
  .trust-grid,
  .addon-features,
  .form-row,
  .roi-metric-row,
  .hero-kpis {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 44px 0 56px;
  }

  .section {
    padding: 54px 0;
  }

  .wa-float span.wa-text {
    display: none;
  }
}

/* Justificacion tipografica de bloques de texto */
.hero-lead,
.cat-card p,
.bento-card p,
.bento-list li,
.showcase-copy p,
.showcase-copy li,
.addon-box p,
.addon-feat span,
.roi-grid p,
.faq-a,
.lead-grid p,
.footer p,
.modal-box p,
.legal-card p,
.legal-card li {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.section-head p {
  text-align: justify;
  text-align-last: center;
  text-justify: inter-word;
}
