/* THE EXPERTS — Software POS y Facturación Electrónica
   Hoja de estilos compartida */

:root {
  --navy-900: #0f1b26;
  --navy-800: #16232f;
  --navy-700: #2c3e50;
  --navy-600: #34495e;
  --navy-100: #e8edf1;

  /* Paleta de acentos por línea de producto */
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --emerald-100: #d1fae5;
  --emerald-50:  #ecfdf5;

  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-100: #dbeafe;
  --blue-50:  #eff6ff;

  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-100: #fef3c7;
  --amber-50:  #fffbeb;

  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --rose-700: #be123c;
  --rose-100: #ffe4e6;
  --rose-50:  #fff1f2;

  --violet-500: #8b5cf6;
  --violet-600: #7c3aed;
  --violet-700: #6d28d9;
  --violet-100: #ede9fe;
  --violet-50:  #f5f3ff;

  /* Tema activo de la página (se redefine por body.theme-*) */
  --theme-500: var(--emerald-500);
  --theme-600: var(--emerald-600);
  --theme-700: var(--emerald-700);
  --theme-100: var(--emerald-100);
  --theme-50:  var(--emerald-50);

  --bg: #f7f9fb;
  --bg-alt: #ffffff;
  --text: #101828;
  --text-muted: #5b6b7a;
  --border: #e2e8f0;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(15, 27, 38, 0.06);
  --shadow-md: 0 12px 32px rgba(15, 27, 38, 0.10);
  --shadow-lg: 0 24px 60px rgba(15, 27, 38, 0.16);
  --container: 1200px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

body.theme-emerald { --theme-500: var(--emerald-500); --theme-600: var(--emerald-600); --theme-700: var(--emerald-700); --theme-100: var(--emerald-100); --theme-50: var(--emerald-50); }
body.theme-blue    { --theme-500: var(--blue-500);    --theme-600: var(--blue-600);    --theme-700: var(--blue-700);    --theme-100: var(--blue-100);    --theme-50: var(--blue-50); }
body.theme-amber   { --theme-500: var(--amber-500);   --theme-600: var(--amber-600);   --theme-700: var(--amber-700);   --theme-100: var(--amber-100);   --theme-50: var(--amber-50); }
body.theme-rose    { --theme-500: var(--rose-500);    --theme-600: var(--rose-600);    --theme-700: var(--rose-700);    --theme-100: var(--rose-100);    --theme-50: var(--rose-50); }
body.theme-violet  { --theme-500: var(--violet-500);  --theme-600: var(--violet-600);  --theme-700: var(--violet-700);  --theme-100: var(--violet-100);  --theme-50: var(--violet-50); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--navy-900);
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 16px; color: var(--text-muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--theme-700); background: var(--theme-100);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}

.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-tint { background: var(--theme-50); }
.section-navy {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-700) 55%, var(--theme-600));
  color: #fff;
}
.section-navy h2, .section-navy h3, .section-navy p { color: #fff; }
.section-navy p { color: rgba(255,255,255,0.75); }

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

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 12px; font-weight: 700; font-size: 0.96rem;
  border: 2px solid transparent; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--theme-700); color: #fff; box-shadow: 0 10px 24px color-mix(in srgb, var(--theme-500) 40%, transparent); }
.btn-primary:hover { filter: brightness(0.88); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,0.35); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-outline { background: transparent; border-color: var(--navy-700); color: var(--navy-700); }
.btn-outline:hover { background: var(--navy-700); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 0.86rem; border-radius: 10px; }

/* ============ HEADER + MEGA MENU ============ */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(247, 249, 251, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 2px 18px rgba(15,27,38,0.06); background: rgba(247, 249, 251, 0.98); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.14rem; color: var(--navy-900); flex-shrink: 0; }
.brand .brand-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--navy-700), var(--emerald-500) 50%, var(--blue-500));
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 1rem;
}
.brand small { display: block; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em; color: var(--text-muted); text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links > li { position: relative; }
.nav-links > li > a, .nav-links > li > button.nav-trigger {
  display: flex; align-items: center; gap: 5px;
  font: inherit; font-size: 0.94rem; font-weight: 600; color: var(--navy-800);
  padding: 10px 12px; border-radius: 8px; background: none; border: none; cursor: pointer;
}
.nav-links > li > a:hover, .nav-links > li > button.nav-trigger:hover { background: var(--navy-100); }
.nav-trigger .caret { width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -3px; transition: transform 0.18s ease; }
.nav-links > li.mega-open .nav-trigger .caret { transform: rotate(-135deg); margin-top: 3px; }

.mega-panel {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  width: min(640px, 90vw);
  padding-top: 12px; /* zona de amortiguación: sigue perteneciendo al panel, así el hover no se corta al bajar el mouse */
  display: none;
  z-index: 50;
}
.nav-links > li.mega-open .mega-panel { display: block; }
.mega-panel-inner {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}
.mega-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px; border-radius: var(--radius-sm);
}
.mega-item:hover { background: var(--bg); }
.mega-item .mega-ico {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--theme-100); color: var(--theme-600);
}
.mega-item strong { display: block; font-size: 0.92rem; color: var(--navy-900); margin-bottom: 2px; }
.mega-item span { font-size: 0.8rem; color: var(--text-muted); line-height: 1.4; }
.mega-panel.mega-wide { width: min(820px, 92vw); }
.mega-panel.mega-wide .mega-panel-inner { grid-template-columns: repeat(3, 1fr); }

.nav-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid var(--border); background: #fff; align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--navy-900); position: relative; transition: 0.2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ============ HERO ============ */
.hero { padding: 60px 0 40px; overflow: hidden; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-badges span {
  font-size: 0.78rem; font-weight: 700; color: var(--navy-700);
  background: #fff; border: 1px solid var(--border); padding: 7px 13px; border-radius: 999px;
}
.hero-cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

.mockup {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  border: 1px solid var(--border); overflow: hidden;
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
}
.mockup-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; background: var(--navy-800); }
.mockup-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.25); }
.mockup-body { padding: 22px; }
.mockup-row {
  display: flex; align-items: center; justify-content: space-between; padding: 12px 14px;
  border-radius: var(--radius-sm); background: var(--bg); margin-bottom: 10px; font-size: 0.86rem; font-weight: 600;
}
.mockup-row .tag { font-size: 0.68rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: var(--theme-100); color: var(--theme-700); text-transform: uppercase; }
.mockup-row .tag.pending { background: #fef3c7; color: #b45309; }
.mockup-total {
  margin-top: 16px; padding: 18px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--navy-700), var(--theme-600)); color: #fff;
  display: flex; align-items: center; justify-content: space-between;
}
.mockup-total b { font-size: 1.5rem; }

/* ============ IMAGE PLACEHOLDERS ============ */
.img-placeholder {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  border: 2px dashed color-mix(in srgb, var(--theme-500) 55%, var(--border));
  background: repeating-linear-gradient(135deg, var(--theme-50), var(--theme-50) 10px, #fff 10px, #fff 20px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 8px; padding: 24px; overflow: hidden;
}
.img-placeholder .ph-icon { color: var(--theme-600); opacity: 0.55; }
.img-placeholder .ph-res { font-size: 1.3rem; font-weight: 800; color: var(--navy-800); }
.img-placeholder .ph-label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); max-width: 320px; }
.img-placeholder.ratio-16-9 { aspect-ratio: 16 / 9; }
.img-placeholder.ratio-4-3 { aspect-ratio: 4 / 3; }
.img-placeholder.ratio-1-1 { aspect-ratio: 1 / 1; }
.img-placeholder.ratio-21-9 { aspect-ratio: 21 / 9; }

/* ============ GRIDS / CARDS ============ */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 30px; box-shadow: var(--shadow-sm); }
.card .icon {
  width: 50px; height: 50px; border-radius: 13px; background: var(--theme-100); color: var(--theme-600);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.card .icon.icon-emerald { background: var(--emerald-100); color: var(--emerald-600); }
.card .icon.icon-blue    { background: var(--blue-100);    color: var(--blue-600); }
.card .icon.icon-amber   { background: var(--amber-100);   color: var(--amber-600); }
.card .icon.icon-rose    { background: var(--rose-100);    color: var(--rose-600); }
.card .icon.icon-violet  { background: var(--violet-100);  color: var(--violet-600); }
.card.accent-top { border-top: 4px solid var(--theme-500); }
.card.accent-top.accent-emerald { border-top-color: var(--emerald-500); }
.card.accent-top.accent-blue    { border-top-color: var(--blue-500); }
.card.accent-top.accent-amber   { border-top-color: var(--amber-500); }
.card.accent-top.accent-rose    { border-top-color: var(--rose-500); }
.card.accent-top.accent-violet  { border-top-color: var(--violet-500); }
.card ul { margin: 14px 0 0; padding-left: 20px; color: var(--text-muted); }
.card ul li { margin-bottom: 6px; font-size: 0.92rem; }

.chip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.chip {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 16px 18px; font-weight: 700; font-size: 0.92rem; color: var(--navy-800);
  display: flex; align-items: center; gap: 10px;
}
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--theme-500); flex-shrink: 0; }

/* Niche cards (industrias.html) */
.niche-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.niche-card {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-sm); scroll-margin-top: 100px;
}
.niche-card .img-placeholder { border-radius: 0; border-width: 0 0 2px 0; }
.niche-card .niche-body { padding: 22px; }
.niche-card h3 { margin-bottom: 8px; font-size: 1.1rem; }
.niche-card p { font-size: 0.9rem; margin-bottom: 0; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.step { text-align: left; }
.step .num {
  width: 46px; height: 46px; border-radius: 50%; background: var(--theme-700); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 16px;
}

/* Zig-zag de funcionalidades (punto de venta) */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 90px; }
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse .feature-media { order: 2; }
.feature-row .feature-list { list-style: none; margin: 18px 0 0; padding: 0; }
.feature-row .feature-list li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: 0.95rem; color: var(--text); font-weight: 600; }
.feature-row .feature-list li .tick {
  width: 22px; height: 22px; border-radius: 50%; background: var(--theme-100); color: var(--theme-600);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; font-size: 0.75rem; font-weight: 800;
}

/* Vertical timeline (recepción electrónica) */
.timeline { position: relative; max-width: 780px; margin: 0 auto; }
.timeline::before {
  content: ""; position: absolute; left: 23px; top: 8px; bottom: 8px; width: 2px;
  background: var(--theme-100);
}
.timeline-step { position: relative; padding-left: 68px; margin-bottom: 40px; }
.timeline-step:last-child { margin-bottom: 0; }
.timeline-step .num {
  position: absolute; left: 0; top: 0; width: 48px; height: 48px; border-radius: 50%;
  background: var(--theme-500); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 6px var(--theme-50);
}

/* FAQ */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-alt); margin-bottom: 14px; overflow: hidden; }
.faq-q { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; cursor: pointer; font-weight: 700; font-size: 1rem; color: var(--navy-900); }
.faq-q .plus { transition: transform 0.2s ease; font-size: 1.3rem; color: var(--theme-700); }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; padding: 0 24px; }
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 22px; }

/* CTA band */
.cta-band {
  border-radius: var(--radius-lg); padding: 56px;
  background: linear-gradient(135deg, var(--navy-800), var(--theme-600));
  color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-band h3 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,0.75); margin: 0; }

.breadcrumb { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--theme-700); font-weight: 600; }

/* ============ PRICING (planes.html) ============ */
.plans-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; align-items: stretch; }
.plan-card {
  background: var(--bg-alt); border: 2px solid var(--border); border-radius: var(--radius-md);
  padding: 26px 22px; display: flex; flex-direction: column; position: relative;
}
.plan-card.featured { border-color: var(--theme-500); box-shadow: var(--shadow-md); transform: translateY(-8px); }
.plan-card .plan-tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--theme-500); color: #fff; font-size: 0.68rem; font-weight: 800;
  padding: 5px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap;
}
.plan-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.plan-price { font-size: 1.7rem; font-weight: 800; color: var(--navy-900); margin-bottom: 2px; }
.plan-price small { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); }
.plan-card p.plan-desc { font-size: 0.85rem; flex-grow: 1; margin-bottom: 20px; }
.plan-card .btn { margin-top: auto; }

.table-scroll { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--bg-alt); }
table.price-table { width: 100%; border-collapse: collapse; min-width: 520px; }
table.price-table th, table.price-table td { padding: 14px 18px; text-align: left; font-size: 0.9rem; border-bottom: 1px solid var(--border); }
table.price-table th { background: var(--theme-50); color: var(--navy-900); font-weight: 800; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
table.price-table tr:last-child td { border-bottom: none; }
table.price-table tr:hover td { background: var(--bg); }
table.price-table td.num { font-weight: 700; color: var(--theme-700); }
table.price-table td.money { font-weight: 800; color: var(--navy-900); white-space: nowrap; }

.ladder { display: flex; flex-direction: column; gap: 10px; }
.ladder-step {
  display: flex; align-items: center; gap: 16px; background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 18px;
}
.ladder-step .arrow { color: var(--theme-500); font-weight: 800; }
.ladder-step b { color: var(--navy-900); }

/* ============ FORMS (interactivo) ============ */
.field { position: relative; margin-bottom: 20px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 18px 16px 8px; border-radius: 12px; border: 1.5px solid var(--border);
  font-family: inherit; font-size: 0.96rem; background: #fff; color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; min-height: 110px; padding-top: 20px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--theme-500); box-shadow: 0 0 0 4px var(--theme-100);
}
.field label {
  position: absolute; left: 16px; top: 17px; font-size: 0.96rem; color: var(--text-muted);
  pointer-events: none; transition: 0.15s ease; background: #fff; padding: 0 4px;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field.filled label {
  top: -9px; left: 12px; font-size: 0.74rem; font-weight: 700; color: var(--theme-700);
}
.field .field-error { display: none; color: var(--rose-600); font-size: 0.78rem; font-weight: 600; margin-top: 6px; }
.field.invalid input, .field.invalid textarea { border-color: var(--rose-500); }
.field.invalid .field-error { display: block; }
.field-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: -12px; margin-bottom: 20px; }

.chip-select { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.chip-option {
  padding: 11px 18px; border-radius: 999px; border: 1.5px solid var(--border); background: #fff;
  font-size: 0.86rem; font-weight: 700; color: var(--navy-700); cursor: pointer; transition: 0.15s ease;
}
.chip-option:hover { border-color: var(--theme-500); }
.chip-option.selected { background: var(--theme-700); border-color: var(--theme-700); color: #fff; }

.honeypot-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Verificación de correo por PIN */
.verify-row { display: flex; gap: 10px; align-items: flex-start; margin-top: -8px; margin-bottom: 20px; }
.verify-row .field { flex: 1; margin-bottom: 0; }
.verify-badge {
  display: none; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 700; color: var(--emerald-700);
  background: var(--emerald-100); padding: 8px 12px; border-radius: 999px; margin-top: -8px; margin-bottom: 20px;
}
.verify-badge.show { display: inline-flex; }
.pin-box { display: none; margin: -8px 0 20px; padding: 16px; border-radius: 12px; background: var(--theme-50); border: 1px dashed var(--theme-500); }
.pin-box.show { display: block; }
.pin-box .pin-input-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pin-box input[name="pin"] {
  width: 130px; letter-spacing: 6px; font-weight: 800; font-size: 1.1rem; text-align: center;
  padding: 12px 10px; border-radius: 10px; border: 1.5px solid var(--border);
}
.pin-box .pin-msg { font-size: 0.8rem; color: var(--text-muted); margin-top: 8px; }
.link-btn { background: none; border: none; color: var(--theme-700); font-weight: 700; font-size: 0.82rem; cursor: pointer; padding: 0; }
.link-btn:disabled { color: var(--text-muted); cursor: default; }

.form-status {
  display: none; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 10px;
  font-size: 0.88rem; font-weight: 600; margin-top: 6px;
}
.form-status.show { display: flex; }
.form-status.ok { background: var(--emerald-100); color: var(--emerald-700); }
.form-status.err { background: var(--rose-100); color: var(--rose-600); }
.form-status.sending { background: var(--bg); color: var(--text-muted); }

.trust-list { display: flex; flex-direction: column; gap: 18px; }
.trust-list .trust-item { display: flex; gap: 14px; align-items: flex-start; }
.trust-list .trust-ico {
  width: 40px; height: 40px; border-radius: 10px; background: var(--theme-100); color: var(--theme-600);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* Footer */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.65); padding: 64px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.site-footer h4, .site-footer .footer-heading { color: #fff; font-size: 0.95rem; margin-bottom: 18px; font-weight: 800; display: block; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; font-size: 0.9rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom { padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.82rem; }

.reveal { opacity: 0; }

/* ============ FONDOS DECORATIVOS ============ */
.bg-mesh {
  position: relative;
  background:
    radial-gradient(at 12% 18%, color-mix(in srgb, var(--theme-500) 16%, transparent) 0px, transparent 42%),
    radial-gradient(at 88% 12%, color-mix(in srgb, var(--emerald-500) 13%, transparent) 0px, transparent 38%),
    radial-gradient(at 78% 90%, color-mix(in srgb, var(--violet-500) 11%, transparent) 0px, transparent 42%),
    radial-gradient(at 8% 92%, color-mix(in srgb, var(--amber-500) 10%, transparent) 0px, transparent 38%);
}
.bg-blobs { position: relative; overflow: hidden; }
.bg-blobs::before, .bg-blobs::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.28; z-index: 0; pointer-events: none;
}
.bg-blobs::before { width: 420px; height: 420px; background: var(--theme-500); top: -140px; right: -100px; }
.bg-blobs::after { width: 340px; height: 340px; background: var(--emerald-500); bottom: -120px; left: -90px; }
.bg-blobs > .container { position: relative; z-index: 1; }
.bg-dots {
  background-image: radial-gradient(color-mix(in srgb, var(--theme-500) 35%, var(--border)) 1.4px, transparent 1.4px);
  background-size: 24px 24px;
}
.bg-diagonal {
  background: linear-gradient(120deg, var(--theme-50) 0%, var(--theme-50) 46%, var(--bg-alt) 46%, var(--bg-alt) 100%);
}

@media (max-width: 1100px) {
  .plans-grid { grid-template-columns: repeat(3, 1fr); }
  .plans-grid .plan-card:nth-child(4), .plans-grid .plan-card:nth-child(5) { grid-column: span 1; }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .mockup { transform: none; max-width: 460px; margin: 0 auto; }
  .grid, .grid.cols-2, .grid.cols-4, .niche-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .plans-grid { grid-template-columns: repeat(2, 1fr); }
  .plan-card.featured { transform: none; }
  .feature-row { grid-template-columns: 1fr; gap: 30px; margin-bottom: 60px; }
  .feature-row.reverse .feature-media { order: 0; }
}

@media (max-width: 600px) {
  .section { padding: 60px 0; }
  .grid, .grid.cols-2, .grid.cols-4, .niche-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; padding: 40px 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .plans-grid { grid-template-columns: 1fr; }
}

/* Menú móvil abierto (JS agrega esta clase / estilo inline) */
.nav-links.nav-links-open {
  position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
  background: #fff; padding: 12px 24px 20px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
}
.nav-links.nav-links-open > li { width: 100%; }
.nav-links.nav-links-open .mega-panel { position: static; transform: none; width: 100%; padding-top: 0; }
.nav-links.nav-links-open .mega-panel-inner { box-shadow: none; border: none; padding: 6px 0 6px 14px; grid-template-columns: 1fr; }
.nav-links.nav-links-open .mega-panel.mega-wide .mega-panel-inner { grid-template-columns: 1fr; }
