/* ==========================================================================
   WebCraft Studio — estilos del rediseño (2026-11-23)
   Minimalista y claro: una tipografía (Inter), neutros cálidos, el naranja de
   la marca solo como acento. Tokens arriba; luego cada sección en el orden de
   la página. La demo de antes/después conserva sus estilos propios (al final).
   ========================================================================== */

:root {
  --bg: #f2f0ec;          /* página: piedra cálida (antes blanco puro) */
  --surface: #fbfaf8;     /* tarjetas y controles encima de la página */
  --bg-subtle: #e9e6e1;   /* secciones alternas */
  --bg-muted: #e2ded8;    /* fondos de controles y etiquetas */
  --text: #0c0a09;
  --text-2: #292524;
  --text-3: #57534e;
  --line: #dad5ce;
  --line-strong: #c4beb5;
  --brand: #ea580c;
  --brand-ink: #c2410c;
  --ok: #15803d;
  --ok-soft: #f0fdf4;
  --danger: #b91c1c;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(12, 10, 9, .05);
  --shadow-md: 0 1px 2px rgba(12, 10, 9, .04), 0 12px 32px -16px rgba(12, 10, 9, .18);
  --container: 1160px;
  --nav-h: 64px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Nombres que usan los estilos que inyecta site.js (modales, modo admin)
     y la demo de antes/después: se mapean a la paleta nueva. */
  --ink: var(--text);
  --paper: var(--bg);
  --cream: var(--bg-muted);
  --border: var(--line);
  --muted: var(--text-3);
  --accent: var(--brand-ink);
  --accent2: var(--brand);
  --card-bg: var(--surface);
  --green: var(--ok);
  --red: var(--danger);
  --radius: 10px;
}

/* ── Base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; color: var(--text); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
::selection { background: #fed7aa; color: var(--text); }
#scroll-progress { display: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 112px 0; }
.section-subtle { background: var(--bg-subtle); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { max-width: 760px; margin-left: auto; margin-right: auto; text-align: center; }
.section-tag { display: inline-block; margin-bottom: 12px; font-size: .875rem; font-weight: 600; color: var(--brand-ink); }
.section-title { font-size: clamp(2rem, 1.35rem + 2.3vw, 2.75rem); letter-spacing: -0.032em; line-height: 1.08; }
.section-sub { margin-top: 16px; font-size: 1.0625rem; line-height: 1.65; color: var(--text-3); }

/* Lista con palomita (o tache en .no) dibujada con máscara: sin emojis ni SVG repetidos */
.check-list { display: flex; flex-direction: column; gap: 12px; }
.check-list li { position: relative; padding-left: 28px; font-size: .9375rem; line-height: 1.45; color: var(--text-2); }
.check-list li::before {
  content: ''; position: absolute; left: 0; top: 1px; width: 18px; height: 18px;
  background: currentColor; color: var(--text);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M16.7 4.15a.75.75 0 0 1 .15 1.05l-8 10.5a.75.75 0 0 1-1.13.08l-4.5-4.5a.75.75 0 1 1 1.06-1.06l3.9 3.89 7.48-9.82a.75.75 0 0 1 1.05-.14Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M16.7 4.15a.75.75 0 0 1 .15 1.05l-8 10.5a.75.75 0 0 1-1.13.08l-4.5-4.5a.75.75 0 1 1 1.06-1.06l3.9 3.89 7.48-9.82a.75.75 0 0 1 1.05-.14Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.check-list li.no { color: var(--text-3); }
.check-list li.no::before {
  background: var(--line-strong);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z'/%3E%3C/svg%3E");
}

.fine-print { margin-top: 12px; font-size: .8125rem; line-height: 1.5; color: var(--text-3); text-align: center; }

/* ── Botones ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px;
  border: 1px solid transparent; border-radius: 10px;
  font-size: .9375rem; font-weight: 500; line-height: 1; white-space: nowrap;
  cursor: pointer; text-decoration: none;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary { background: var(--text); color: #fff; }
.btn-primary:hover { background: #292524; }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { background: var(--bg-subtle); border-color: #a8a29e; }
.btn-light { background: #fff; color: var(--text); }
.btn-light:hover { background: #e7e5e4; }
.btn-lg { height: 50px; padding: 0 22px; font-size: 1rem; border-radius: 12px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: .875rem; border-radius: 9px; }
.btn-block { width: 100%; }

/* ── Navegación ───────────────────────────────────────────────────────── */
nav.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(242, 240, 236, .86);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
          backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
nav.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: var(--nav-h); }
.nav-logo { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.03em; color: var(--text); }
.nav-logo span { color: var(--brand); }
.nav-links { display: flex; gap: 2px; margin-right: auto; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 8px; font-size: .9375rem; color: var(--text-3); transition: color .15s, background-color .15s; }
.nav-links a:hover { color: var(--text); background: var(--bg-muted); }
.nav-actions { display: flex; align-items: center; gap: 6px; }
.nav-login { padding: 8px 12px; border-radius: 8px; font-size: .9375rem; color: var(--text-2); transition: background-color .15s, color .15s; }
.nav-login:hover { background: var(--bg-muted); color: var(--text); }
.nav-user { align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border: 1px solid var(--line); border-radius: 99px; transition: border-color .15s; }
.nav-user:hover { border-color: var(--line-strong); }
#navAvatar { width: 28px; height: 28px; border-radius: 50%; background: var(--text); color: #fff; font-size: .75rem; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
#navUserName { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .875rem; font-weight: 500; color: var(--text); }
.nav-hamburger { display: none; width: 40px; height: 40px; margin-right: -8px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-hamburger span { display: block; width: 18px; height: 1.5px; background: var(--text); border-radius: 2px; transition: transform .2s; }
.nav-hamburger.open span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-hamburger.open span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.mobile-nav-menu { display: none; }

/* ── Inicio ───────────────────────────────────────────────────────────── */
.hero { padding: 72px 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.live-badge {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 24px; padding: 6px 12px 6px 10px;
  border: 1px solid var(--line); border-radius: 99px; background: var(--surface); box-shadow: var(--shadow-sm);
  font-size: .8125rem; color: var(--text-2);
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .18); flex-shrink: 0; }
.hero h1 { font-size: clamp(2.5rem, 1.6rem + 3vw, 3.625rem); letter-spacing: -0.045em; line-height: 1.04; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero-lead { margin-top: 20px; max-width: 34em; font-size: 1.125rem; line-height: 1.65; color: var(--text-3); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-trust { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px 22px; margin-top: 24px; }
.hero-trust li { padding-left: 24px; font-size: .875rem; color: var(--text-3); }
.hero-trust li::before { width: 16px; height: 16px; top: 2px; color: var(--ok); }
.hero-media { margin: 0; }
.browser { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 1px 2px rgba(12, 10, 9, .04), 0 32px 64px -32px rgba(12, 10, 9, .3); }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--bg-subtle); }
.browser-bar > span { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); flex-shrink: 0; }
.browser-url { margin: 0 auto; padding: 2px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); font-size: .75rem; color: var(--text-3); }
.browser img { width: 100%; aspect-ratio: 960 / 475; object-fit: cover; object-position: top; }
.hero-media figcaption { margin-top: 12px; font-size: .8125rem; color: var(--text-3); text-align: center; }
.hero-media figcaption a { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.hero-media figcaption a:hover { color: var(--text); }

.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 80px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero-stats > div { padding: 28px 24px; border-left: 1px solid var(--line); }
.hero-stats > div:first-child { border-left: 0; padding-left: 0; }
.stat-num { font-size: 2rem; font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; color: var(--text); font-variant-numeric: tabular-nums; }
.stat-label { margin-top: 6px; font-size: .875rem; color: var(--text-3); }

@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.hero-content > *, .hero-media { animation: rise .5s ease both; }
.hero-content > :nth-child(2) { animation-delay: .04s; }
.hero-content > :nth-child(3) { animation-delay: .08s; }
.hero-content > :nth-child(4) { animation-delay: .12s; }
.hero-content > :nth-child(5) { animation-delay: .16s; }
.hero-media { animation-delay: .12s; }

/* ── Precios ──────────────────────────────────────────────────────────── */
.segmented { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-muted); }
.segmented button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 16px; border: 0; border-radius: 9px; background: transparent;
  font-size: .9375rem; font-weight: 500; color: var(--text-3); cursor: pointer;
  transition: background-color .15s, color .15s, box-shadow .15s;
}
.segmented button:hover { color: var(--text); }
.segmented button.lp-toggle-active,
.segmented button.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(12, 10, 9, .08), 0 0 0 1px var(--line); }

.lp-toggle-wrap { display: flex; justify-content: center; margin-bottom: 40px; }
.lp-toggle-badge { padding: 2px 8px; border-radius: 99px; background: var(--ok-soft); font-size: .75rem; font-weight: 600; color: var(--ok); }

.lp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.lp-card {
  position: relative; display: flex; flex-direction: column;
  padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
  transition: border-color .2s, box-shadow .2s;
}
.lp-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.lp-head { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.lp-icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); }
.lp-icon svg { width: 18px; height: 18px; }
.lp-type { font-size: .8125rem; color: var(--text-3); }
.lp-name { font-size: 1.25rem; }
.lp-desc { margin-top: 8px; font-size: .9375rem; line-height: 1.6; color: var(--text-3); }
.lp-price-box { margin: 24px 0; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lp-price { font-size: 2.25rem; font-weight: 600; letter-spacing: -0.035em; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.lp-price-period { margin-left: 3px; font-size: .9375rem; font-weight: 400; letter-spacing: 0; color: var(--text-3); }
.lp-price-note { margin-top: 10px; font-size: .8125rem; color: var(--text-3); }
#lpGrid.show-anual .price-mensual,
#lpGrid.show-mensual .price-anual { display: none; }
.lp-card .check-list { flex: 1; margin-bottom: 28px; }
.lp-actions { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }

/* App Web: tarjeta invertida para distinguir el desarrollo a la medida */
.lp-featured { border-color: var(--text); background: var(--text); color: #d6d3d1; }
.lp-featured:hover { border-color: var(--text); }
.lp-featured .lp-name, .lp-featured .lp-price { color: #fff; }
.lp-featured .lp-desc, .lp-featured .lp-type, .lp-featured .lp-price-note, .lp-featured .lp-price-period { color: #a8a29e; }
.lp-featured .lp-icon { border-color: #44403c; color: #fff; }
.lp-featured .lp-price-box { border-color: #292524; }
.lp-featured .check-list li { color: #e7e5e4; }
.lp-featured .check-list li::before { color: #fff; }
.lp-featured .btn-primary { background: #fff; color: var(--text); }
.lp-featured .btn-primary:hover { background: #e7e5e4; }
.lp-featured .btn-secondary { background: transparent; color: #fff; border-color: #44403c; box-shadow: none; }
.lp-featured .btn-secondary:hover { background: #1c1917; border-color: #57534e; }
.lp-badge { position: absolute; top: 24px; right: 24px; padding: 4px 10px; border-radius: 99px; background: #fff; font-size: .75rem; font-weight: 600; color: var(--text); }
.aw-tabs { display: flex; margin-top: 20px; border-color: #292524; background: #1c1917; }
.aw-tabs button { flex: 1; padding: 7px 8px; font-size: .8125rem; color: #a8a29e; }
.aw-tabs button:hover { color: #fff; }
.aw-tabs button.active { background: #fff; color: var(--text); box-shadow: none; }
.lp-featured .lp-price-box { margin-top: 20px; }
.aw-label { margin-bottom: 8px; font-size: .8125rem; color: #a8a29e; }
.aw-sub { margin-top: 10px; font-size: .875rem; font-weight: 500; color: #fdba74; }
.aw-badge { margin-top: 6px; font-size: .8125rem; font-weight: 500; color: #86efac; }

/* Solo Hosting y Personalizado: tarjetas anchas */
.plan-wide {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start;
  margin-top: 20px; padding: 36px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
}
.plan-eyebrow { font-size: .8125rem; color: var(--text-3); }
.plan-wide-title { margin-top: 4px; font-size: 1.5rem; }
.plan-wide-desc { margin-top: 8px; max-width: 38em; font-size: .9375rem; color: var(--text-3); }
.plan-wide .check-list { margin-top: 24px; }
.field-label { margin-bottom: 10px; font-size: .8125rem; font-weight: 500; color: var(--text-2); }
.period-tabs { display: flex; width: 100%; }
.period-tabs button { flex: 1 1 auto; padding: 8px 10px; font-size: .875rem; }
.best-badge { font-size: .6875rem; font-weight: 600; color: var(--ok); }
.hosting-price-box { margin: 20px 0; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--bg); }
.price-caption { font-size: .8125rem; color: var(--text-3); }
.price-big { margin-top: 4px; font-size: 2.5rem; font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; color: var(--text); font-variant-numeric: tabular-nums; }
.price-sub { margin-top: 4px; font-size: .875rem; color: var(--text-3); }

.cs-group { margin-top: 28px; }
.cs-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.cs-label { font-size: .9375rem; font-weight: 500; color: var(--text); }
.cs-value { font-size: .9375rem; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.cs-hint { margin-top: 10px; font-size: .8125rem; color: var(--text-3); }
.custom-slider { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 6px; margin: 0; border-radius: 99px; background: var(--bg-muted); outline: none; cursor: pointer; }
.custom-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border: 2px solid var(--text); border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(12, 10, 9, .2); cursor: grab; }
.custom-slider::-moz-range-thumb { width: 16px; height: 16px; border: 2px solid var(--text); border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(12, 10, 9, .2); cursor: grab; }
.custom-slider:focus-visible { outline: 2px solid var(--brand); outline-offset: 6px; }
.cs-section-title { margin: 32px 0 12px; font-size: .9375rem; font-weight: 500; color: var(--text); }
.custom-toggle-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.cto-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; user-select: none; transition: border-color .15s, background-color .15s; }
.cto-item:hover { border-color: var(--line-strong); }
.cto-item.active { border-color: var(--text); background: var(--bg); }
.cto-item.fixed { cursor: default; border-color: var(--line); background: var(--bg); }
.cto-left { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.cto-name { font-size: .875rem; font-weight: 500; color: var(--text); }
.cto-desc { font-size: .75rem; line-height: 1.4; color: var(--text-3); }
.cto-price { font-size: .8125rem; font-weight: 500; color: var(--text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cto-toggle { position: relative; flex-shrink: 0; width: 32px; height: 18px; border-radius: 99px; background: var(--line-strong); transition: background-color .15s; }
.cto-toggle::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(12, 10, 9, .25); transition: transform .15s; }
.cto-item.active .cto-toggle { background: var(--text); }
.cto-item.active .cto-toggle::after { transform: translateX(14px); }
.cto-item.fixed .cto-toggle { background: #a8a29e; }

.custom-summary { position: sticky; top: calc(var(--nav-h) + 24px); padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.cs-summary-label { font-size: .8125rem; color: var(--text-3); }
.cs-total { margin-top: 4px; font-size: 2.75rem; font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; color: var(--text); font-variant-numeric: tabular-nums; transition: transform .18s; }
.cs-total-note { margin-top: 4px; font-size: .8125rem; color: var(--text-3); }
.cs-breakdown { display: flex; flex-direction: column; gap: 8px; margin: 20px 0; padding-top: 16px; border-top: 1px solid var(--line); }
.cs-line { display: flex; justify-content: space-between; gap: 12px; font-size: .875rem; color: var(--text-2); }
.cs-line-price { font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.custom-summary .btn + .btn { margin-top: 8px; }
.pricing-footnote { max-width: 46em; margin-top: 28px; font-size: .875rem; line-height: 1.65; color: var(--text-3); }
.pricing-footnote strong { font-weight: 600; color: var(--text); }

/* ── Llamado a la acción ──────────────────────────────────────────────── */
.cta-section { padding: 0 0 112px; }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 48px 56px; border-radius: 24px; background: var(--text); }
.cta-band-title { font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.125rem); letter-spacing: -0.03em; color: #fff; }
.cta-band-sub { margin-top: 8px; color: #a8a29e; }

/* ── Dominios ─────────────────────────────────────────────────────────── */
.domain-search-box { max-width: 640px; margin: 0 auto; }
.search-row { display: flex; gap: 6px; padding: 6px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s; }
.search-row:focus-within { border-color: var(--text); box-shadow: 0 0 0 3px rgba(12, 10, 9, .06); }
.domain-input { flex: 1; min-width: 0; padding: 0 12px; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1rem; color: var(--text); }
.domain-input::placeholder { color: #a8a29e; }
.tld-select { padding: 0 10px; border: 0; border-radius: 9px; background: var(--bg-muted); font: inherit; font-size: .9375rem; color: var(--text); cursor: pointer; }
.domain-results { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.domain-results:empty { display: none; }
.domain-result-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.domain-name { font-weight: 600; color: var(--text); word-break: break-all; }
.domain-status { margin-top: 2px; font-size: .8125rem; color: var(--text-3); }
.domain-result-item.available .domain-status { color: var(--ok); }
.domain-price { font-size: .9375rem; font-weight: 500; color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.domain-add-btn { height: 34px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); font-size: .875rem; font-weight: 500; color: var(--text); cursor: pointer; white-space: nowrap; transition: background-color .15s; }
.domain-add-btn:hover { background: var(--bg-muted); }
.domain-loading { display: flex; align-items: center; gap: 10px; padding: 14px 16px; font-size: .875rem; color: var(--text-3); }
.spinner { width: 16px; height: 16px; flex-shrink: 0; border: 2px solid var(--line); border-top-color: var(--text); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Carrito flotante de cotización (dominio elegido) */
#cart-bar {
  position: fixed; left: 50%; bottom: 20px; z-index: 150;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  width: min(720px, calc(100% - 32px)); padding: 16px 20px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--surface);
  box-shadow: 0 16px 48px -16px rgba(12, 10, 9, .35);
  transform: translate(-50%, calc(100% + 40px)); transition: transform .3s ease;
}
#cart-bar.visible { transform: translate(-50%, 0); }
.cart-left { flex: 1; min-width: 0; }
.cart-section-label { margin-bottom: 6px; font-size: .75rem; font-weight: 600; color: var(--text-3); }
.cart-row { display: flex; align-items: center; gap: 8px; padding: 2px 0; font-size: .875rem; }
.cart-row-icon { display: none; }
.cart-row-type { color: var(--text-3); }
.cart-row-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; color: var(--text); }
.cart-row-price { margin-left: auto; font-weight: 500; color: var(--text); white-space: nowrap; }
.cart-row-remove { padding: 2px 6px; border: 0; border-radius: 6px; background: transparent; color: var(--text-3); cursor: pointer; }
.cart-row-remove:hover { background: var(--bg-muted); color: var(--text); }
.cart-right { display: flex; align-items: center; gap: 16px; }
.cart-total-label, .cart-total-sub { font-size: .75rem; color: var(--text-3); }
.cart-total-amount { font-size: 1.25rem; font-weight: 600; color: var(--text); }
.cart-wa-btn { height: 42px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--text); color: #fff; font-size: .9375rem; font-weight: 500; cursor: pointer; white-space: nowrap; }
.cart-wa-btn:hover { background: #292524; }
.cart-wa-icon { display: none; }

/* ── Proceso ──────────────────────────────────────────────────────────── */
.steps-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.step-card { padding-top: 24px; border-top: 1px solid var(--line-strong); }
.step-num { font-size: .875rem; font-weight: 600; color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.step-title { margin-top: 12px; font-size: 1.125rem; }
.step-desc { margin-top: 8px; font-size: .9375rem; line-height: 1.6; color: var(--text-3); }

/* ── Proyectos (carrusel; las tarjetas las arma site.js) ──────────────── */
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; }
.section-head-row > div:first-child { max-width: 640px; }
.carousel-nav { display: flex; gap: 8px; flex-shrink: 0; }
.carousel-btn { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); color: var(--text); cursor: pointer; transition: background-color .15s, border-color .15s; }
.carousel-btn:hover { background: var(--bg-subtle); border-color: #a8a29e; }
.carousel-outer { position: relative; }
.carousel-track-wrap { overflow: hidden; }
.projects-grid { display: flex; gap: 32px; transition: transform .5s cubic-bezier(.22, .61, .36, 1); will-change: transform; }
.project-card { display: flex; flex-direction: column; flex-shrink: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.project-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.project-thumb { height: 220px; border-bottom: 1px solid var(--line); background: var(--bg-muted); }
.project-img-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.project-iframe-wrap { position: absolute; inset: 0; overflow: hidden; }
.project-iframe-wrap iframe { position: absolute; top: 0; left: 0; width: 1280px; height: 720px; border: 0; pointer-events: none; transform-origin: top left; }
.project-ext-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: var(--bg-muted); }
.project-ext-placeholder svg { stroke: #a8a29e; }
.project-ext-label { font-size: .75rem; color: var(--text-3); }
.project-thumb-overlay { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; background: rgba(12, 10, 9, 0); transition: background-color .2s; }
.project-card:hover .project-thumb-overlay { background: rgba(12, 10, 9, .32); }
.project-thumb-overlay-cta { padding: 8px 14px; border-radius: 99px; background: #fff; font-size: .875rem; font-weight: 500; color: var(--text); opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s; }
.project-card:hover .project-thumb-overlay-cta { opacity: 1; transform: none; }
.project-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.project-category { font-size: .8125rem; color: var(--text-3); }
.project-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; font-size: 1.0625rem; font-weight: 600; color: var(--text); }
.project-active-badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 99px; background: var(--ok-soft); font-size: .6875rem; font-weight: 500; color: var(--ok); }
.project-active-dot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; }
.project-desc { display: -webkit-box; margin-top: 8px; overflow: hidden; font-size: .875rem; line-height: 1.55; color: var(--text-3); -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.project-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; }
.project-tech { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.tech-tag { padding: 3px 8px; border-radius: 6px; background: var(--bg-muted); font-size: .6875rem; color: var(--text-3); }
.project-view-btn { font-size: .875rem; font-weight: 500; color: var(--text); white-space: nowrap; }
.project-view-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.add-project-btn { flex: 0 0 280px; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 380px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius-lg); background: transparent; color: var(--text-3); cursor: pointer; }
.add-project-btn:hover { border-color: var(--text-3); color: var(--text); }
.add-icon { font-size: 1.75rem; line-height: 1; }
.carousel-footer { display: flex; align-items: center; gap: 20px; margin-top: 28px; }
.carousel-progress-bar { flex: 1; height: 2px; overflow: hidden; border-radius: 99px; background: var(--line); }
.carousel-progress-fill { width: 0; height: 100%; background: var(--text); transition: width .4s ease; }
.carousel-counter { font-size: .875rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.carousel-counter strong { font-weight: 600; color: var(--text); }
.carousel-dots { display: none; }

/* ── Preguntas frecuentes ─────────────────────────────────────────────── */
.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.faq-layout .section-head { position: sticky; top: calc(var(--nav-h) + 32px); margin-bottom: 0; }
.faq-layout .section-sub a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; list-style: none; font-size: 1rem; font-weight: 500; color: var(--text); cursor: pointer; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: ''; flex-shrink: 0; width: 12px; height: 12px; color: var(--text-3);
  background: linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat,
              linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
  transition: transform .2s;
}
.faq-item[open] .faq-q::after { transform: rotate(45deg); }
.faq-a { max-width: 62ch; overflow: hidden; padding-bottom: 20px; font-size: .9375rem; line-height: 1.7; color: var(--text-3); transition: max-height .3s ease, opacity .3s ease; }

/* ── Pie de página ────────────────────────────────────────────────────── */
footer { padding: 64px 0 32px; background: var(--text); font-size: .875rem; color: #a8a29e; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 40px; }
.footer-logo { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.03em; color: #fff; }
.footer-logo span { color: var(--brand); }
.footer-tag { max-width: 34ch; margin-top: 12px; line-height: 1.6; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-col-title { margin-bottom: 4px; font-size: .8125rem; font-weight: 600; color: #fff; }
.footer-col a, .footer-bottom a { transition: color .15s; }
.footer-col a:hover, .footer-bottom a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid #292524; font-size: .8125rem; }

/* ── Botón flotante de WhatsApp (solo móvil) ──────────────────────────── */
.float-wa { display: none; }

/* ── Menú contextual propio (clic derecho) ────────────────────────────── */
#ctx-menu { position: fixed; z-index: 1000; min-width: 220px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 16px 40px -12px rgba(12, 10, 9, .3); opacity: 0; pointer-events: none; transform: scale(.98); transform-origin: top left; transition: opacity .12s, transform .12s; }
#ctx-menu.ctx-visible { opacity: 1; pointer-events: auto; transform: none; }
.ctx-header { padding: 8px 10px 6px; font-size: .75rem; font-weight: 600; color: var(--text-3); }
.ctx-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; font-size: .875rem; color: var(--text); text-align: left; cursor: pointer; }
.ctx-item:hover { background: var(--bg-muted); }
.ctx-icon { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 6px; background: var(--bg-muted); font-size: .6875rem; font-weight: 700; color: var(--text-2); }
.ctx-sep { height: 1px; margin: 6px 4px; background: var(--line); }

/* ── Ventanas emergentes (la base la inyecta site.js; aquí el acabado) ── */
body .modal-overlay { background: rgba(12, 10, 9, .42); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
body .modal { padding: 28px; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 32px 80px -24px rgba(12, 10, 9, .45); color: var(--text-2); }
body .modal h3 { font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
body .form-label { color: var(--text-2); }
body .form-input, body .form-select, body .form-textarea { border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; font-family: inherit; }
body .form-input:focus, body .form-select:focus, body .form-textarea:focus { border-color: var(--text); box-shadow: 0 0 0 3px rgba(12, 10, 9, .07); }
body .modal-save { border-radius: 10px; background: var(--text); font-family: inherit; font-weight: 500; }
body .modal-save:hover { background: #292524; }
body .modal-cancel-btn { border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; color: var(--text-2); font-family: inherit; }
body .modal-cancel-btn:hover { background: var(--bg-muted); color: var(--text); }
body .modal-delete-btn { border-radius: 10px; font-family: inherit; }
.img-drop-zone { display: flex; align-items: center; justify-content: center; height: 150px; padding: 8px; border: 1.5px dashed var(--line-strong); border-radius: 12px; background: var(--bg-subtle); color: var(--text-3); cursor: pointer; transition: border-color .15s; }
.img-drop-zone:hover { border-color: var(--text-3); }

/* ── Aparición suave al hacer scroll (site.js agrega .reveal / .in) ──── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── Responsivo ───────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-media { max-width: 720px; }
  .lp-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .plan-wide { grid-template-columns: 1fr; gap: 32px; }
  .custom-summary { position: static; }
  .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .faq-layout { grid-template-columns: 1fr; gap: 32px; }
  .faq-layout .section-head { position: static; }
}
@media (max-width: 900px) {
  .nav-links, .nav-login { display: none; }
  .nav-actions { margin-left: auto; }
  .nav-hamburger { display: flex; }
  .mobile-nav-menu {
    position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 99;
    display: block; padding: 8px 24px 24px;
    border-bottom: 1px solid var(--line); background: var(--bg); box-shadow: 0 16px 32px -16px rgba(12, 10, 9, .2);
    opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .2s, transform .2s;
  }
  .mobile-nav-menu.open { opacity: 1; pointer-events: auto; transform: none; }
  .mobile-nav-menu a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1rem; color: var(--text); }
  .mobile-nav-menu a.btn { margin-top: 16px; border-bottom: 0; padding: 0 18px; color: #fff; display: flex; }
  #navUserName { display: none; }
  .nav-user { padding: 3px; }
}
@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .cta-section { padding-bottom: 80px; }
  .hero { padding-top: 48px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); margin-top: 56px; }
  .hero-stats > div { padding: 22px 16px; }
  .hero-stats > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .hero-stats > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 36px 28px; }
  .plan-wide { padding: 24px; }
  .custom-toggle-grid { grid-template-columns: 1fr; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
  .float-wa {
    position: fixed; right: 16px; bottom: 16px; z-index: 120;
    display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 18px;
    border-radius: 99px; background: #16a34a; box-shadow: 0 8px 24px -8px rgba(22, 163, 74, .6);
    font-size: .9375rem; font-weight: 600; color: #fff;
  }
  footer { padding-bottom: 96px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .hero-actions .btn { width: 100%; }
  .steps-grid { grid-template-columns: 1fr; }
  .lp-card { padding: 24px; }
  .search-row { flex-wrap: wrap; }
  .domain-input { flex-basis: 100%; height: 44px; }
  .tld-select { height: 44px; }
  .search-row .btn { flex: 1; }
  .domain-result-item { flex-wrap: wrap; }
  #cart-bar { flex-direction: column; align-items: stretch; gap: 12px; }
  .cart-right { justify-content: space-between; }
  .period-tabs button { flex: 1 1 30%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-content > *, .hero-media { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   DEMO ANTES / DESPUÉS — estilos propios del sitio de ejemplo (copiados tal
   cual de la hoja anterior; son un "sitio dentro del sitio").
   ========================================================================== */
.ba-container {
  position: relative;
  max-width: 920px;
  margin: 2.5rem auto 0;
  height: 490px;
  border-radius: 16px;
  overflow: hidden;
  cursor: col-resize;
  user-select: none;
  box-shadow: 0 40px 100px rgba(0,0,0,0.25), 0 0 0 1px var(--border);
}
.ba-panel {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
}
.ba-panel-before {
  -webkit-clip-path: inset(0 50% 0 0);
  clip-path: inset(0 50% 0 0);
  z-index: 2;
}
.ba-browser {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
}
.ba-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 0 12px; height: 34px; flex-shrink: 0;
  background: #2b2b2b;
}
.ba-bar-before { background: #e8e8e8; }
.ba-dot { width: 8px; height: 8px; border-radius: 50%; }
.ba-r { background: #ff5f57; }
.ba-y { background: #febc2e; }
.ba-g { background: #28c840; }
.ba-url-pill {
  flex: 1; background: rgba(255,255,255,0.1); border-radius: 5px;
  font-size: 0.68rem; color: rgba(255,255,255,0.5);
  padding: 0.18rem 0.7rem; font-family: monospace;
  max-width: 280px; margin: 0 auto; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ba-url-before { background: rgba(0,0,0,0.08); color: #555; }
.ba-body { flex: 1; overflow: hidden; }

/* ─ After (modern) site ─ */
.ba-body-after {
  background: #0d0d0d;
  padding: 0; display: flex; flex-direction: column; gap: 0;
}
.ba-after-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.5rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.07);
}
.ba-after-brand {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.92rem; font-weight: 800;
  color: #f5f2eb;
}
.ba-after-brand em { color: #c8463a; font-style: normal; }
.ba-after-links {
  display: flex; gap: 1rem;
  font-size: 0.66rem; font-weight: 500; color: rgba(255,255,255,0.45);
}
.ba-after-nav-cta {
  background: #c8463a; color: #fff;
  padding: 0.22rem 0.65rem; border-radius: 4px;
  font-size: 0.62rem; font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif; white-space: nowrap;
}
.ba-after-hero {
  padding: 0.9rem 1rem 0.7rem;
  background: linear-gradient(135deg, #0d0d0d 0%, #1a0808 100%);
}
.ba-after-eyebrow {
  font-size: 0.58rem; color: #c8463a; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 600; margin-bottom: 0.4rem;
}
.ba-after-h1 {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 900;
  font-size: clamp(1.2rem, 3vw, 1.8rem); color: #f5f2eb; line-height: 1.05;
  margin-bottom: 0.55rem;
}
.ba-after-h1 em { color: #c8463a; font-style: normal; }
.ba-after-btns { display: flex; gap: 0.6rem; align-items: center; }
.ba-btn-p {
  background: #c8463a; color: #fff;
  padding: 0.35rem 0.8rem; border-radius: 6px;
  font-size: 0.66rem; font-weight: 700; font-family: 'Plus Jakarta Sans', sans-serif;
}
.ba-btn-s {
  color: rgba(245,242,235,0.55); font-size: 0.64rem; font-weight: 500;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.ba-after-stats {
  display: flex; align-items: center; gap: 0.9rem;
  margin-top: 0.6rem; padding-top: 0.6rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.ba-stat strong {
  display: block; font-size: 0.78rem; font-weight: 800;
  color: #f5f2eb; font-family: 'Barlow Condensed', sans-serif; letter-spacing: 0.02em;
}
.ba-stat span {
  font-size: 0.5rem; color: rgba(245,242,235,0.35);
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.ba-stat-sep { width: 1px; height: 20px; background: rgba(255,255,255,0.1); flex-shrink: 0; }
.ba-after-sec-label {
  padding: 0.3rem 1rem 0; background: #111;
  font-size: 0.56rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: rgba(245,242,235,0.3);
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.ba-after-services {
  display: flex; gap: 0.5rem; padding: 0.5rem 1rem;
  background: #111;
}
.ba-svc {
  flex: 1; background: #1a1a1a; border-radius: 8px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
}
.ba-svc-img { height: 46px; position: relative; }
.bsi-1 { background: linear-gradient(135deg, #3d1a14, #5c2820); }
.bsi-2 { background: linear-gradient(135deg, #141c3d, #1e2a5c); }
.bsi-3 { background: linear-gradient(135deg, #1a3d14, #235520); }
.ba-svc-badge {
  position: absolute; top: 4px; right: 4px;
  background: #c8463a; color: #fff; font-size: 0.45rem; font-weight: 700;
  padding: 1px 4px; border-radius: 3px; font-family: 'Plus Jakarta Sans', sans-serif;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.ba-svc-nm { font-size: 0.58rem; font-weight: 700; color: #f5f2eb; padding: 0.28rem 0.5rem 0; font-family: 'Plus Jakarta Sans', sans-serif; }
.ba-svc-pr { font-size: 0.6rem; color: #c8463a; font-weight: 700; padding: 0 0.5rem 0.35rem; font-family: 'Barlow Condensed', sans-serif; letter-spacing: 0.02em; }
.ba-after-gallery {
  display: flex; gap: 3px; padding: 0.4rem 1rem;
  background: #0f0f0f; border-top: 1px solid rgba(255,255,255,0.05);
}
.ba-gal-item { flex: 1; height: 42px; border-radius: 5px; }
.bgi-1 { background: linear-gradient(135deg, #3d1208, #6b2818); }
.bgi-2 { background: linear-gradient(135deg, #080d3d, #18256b); }
.bgi-3 { background: linear-gradient(135deg, #263d08, #446b18); }
.bgi-4 { background: linear-gradient(135deg, #3d2008, #6b3a18); }
.bgi-5 { background: linear-gradient(135deg, #083d2d, #186b50); }
.bgi-6 { background: linear-gradient(135deg, #2d083d, #50186b); }
.ba-after-trust {
  display: flex; gap: 1rem; padding: 0.45rem 1rem;
  background: #0a0a0a; border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.58rem; color: rgba(245,242,235,0.38);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ─ Before (outdated) site ─ */
.ba-body-before {
  background: #f0f0f0;
  font-family: 'Times New Roman', Times, serif;
  display: flex; flex-direction: column;
}
.bsb-header {
  background: #003087; padding: 0.5rem 0.8rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.bsb-logo {
  font-family: 'Times New Roman', serif; font-size: 0.95rem; font-weight: bold;
  color: #fff;
}
.bsb-nav { font-size: 0.65rem; }
.bsb-nav a { color: #afc8ff; text-decoration: underline; cursor: pointer; margin: 0 2px; }
.bsb-marquee {
  background: #00308a; color: #ffe600;
  font-family: Arial, sans-serif; font-size: 0.56rem; font-weight: bold;
  padding: 0.18rem 0.6rem; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; flex-shrink: 0;
}
.bsb-hero {
  background: #fff; padding: 0.6rem 1rem; text-align: center;
  border-bottom: 2px solid #ccc; flex-shrink: 0;
}
.bsb-construction {
  background: #ffff00; color: #cc0000;
  border: 2px dashed #cc0000; font-family: Arial, sans-serif;
  font-size: 0.6rem; font-weight: bold; text-align: center;
  padding: 0.18rem; margin-bottom: 0.35rem; letter-spacing: 0.04em;
}
.bsb-h1 {
  font-family: 'Times New Roman', serif; font-size: clamp(0.75rem, 2vw, 0.95rem);
  font-weight: bold; color: #003087; margin: 0 0 0.4rem; letter-spacing: 0.01em;
  text-transform: uppercase;
}
.bsb-p {
  font-size: 0.66rem; color: #444; line-height: 1.45; margin: 0 0 0.5rem;
  font-family: 'Times New Roman', serif;
}
.bsb-btn {
  display: inline-block; background: #003087; color: #fff;
  padding: 0.3rem 0.7rem; font-size: 0.62rem; font-weight: bold;
  font-family: Arial, sans-serif; text-transform: uppercase; letter-spacing: 0.03em;
  border: 2px outset #5580c0; cursor: pointer; margin-top: 0.25rem;
}
.bsb-table {
  width: 90%; margin: 0.5rem auto; border-collapse: collapse;
  font-family: Arial, sans-serif; font-size: 0.64rem; flex-shrink: 0;
}
.bsb-table td { padding: 0.2rem 0.5rem; border: 1px solid #999; }
.bsb-th td { background: #c8c8c8; font-weight: bold; text-align: center; }
.bsb-alt td { background: #e8e8e8; }
.bsb-photos-hd {
  text-align: center; background: #003087; color: #fff;
  font-family: Arial, sans-serif; font-size: 0.58rem; font-weight: bold;
  padding: 0.2rem; letter-spacing: 0.05em; flex-shrink: 0;
}
.bsb-photos {
  display: flex; gap: 4px; padding: 0.3rem 0.7rem;
  background: #f0f0f0; flex-shrink: 0;
}
.bsb-photo {
  flex: 1; background: #ddd; border: 1px solid #aaa;
  text-align: center; color: #888; font-size: 0.5rem;
  padding: 0.28rem 0.2rem; font-family: Arial, sans-serif; line-height: 1.4;
}
.bsb-counter {
  text-align: center; font-family: Arial, sans-serif; font-size: 0.58rem;
  color: #555; padding: 0.25rem; border-top: 1px dashed #bbb;
  background: #ebebeb; flex-shrink: 0;
}
.bsb-digits {
  font-family: 'Courier New', monospace; font-weight: bold;
  background: #111; color: #00ff00; padding: 0 3px;
  letter-spacing: 0.06em; font-size: 0.62rem;
}
.bsb-contact {
  text-align: center; font-family: Arial, sans-serif; font-size: 0.6rem;
  color: #555; padding: 0.4rem 0.8rem; border-top: 1px solid #ccc;
  background: #e0e0e0; flex-shrink: 0;
}
.bsb-powered {
  text-align: center; font-family: Arial, sans-serif; font-size: 0.5rem;
  color: #999; padding: 0.22rem; background: #d4d4d4;
  border-top: 1px solid #bbb; flex-shrink: 0;
}

/* ─ Handle ─ */
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 48px; z-index: 10;
  display: flex; flex-direction: column; align-items: center;
  pointer-events: none;
}
.ba-handle-line {
  flex: 1; width: 2px; background: #fff; opacity: 0.9;
  box-shadow: 0 0 8px rgba(0,0,0,0.5);
}
.ba-handle-pill {
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff; color: #0d0d0d;
  display: flex; align-items: center; justify-content: center; gap: 1px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  flex-shrink: 0; pointer-events: all;
  cursor: col-resize;
}

/* ─ Labels ─ */
.ba-label {
  position: absolute; bottom: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.3rem 0.8rem; border-radius: 30px;
  pointer-events: none; z-index: 3;
}
.ba-label-after {
  right: 14px; background: rgba(200,70,58,0.9); color: #fff;
}
.ba-label-before {
  left: 14px; background: rgba(0,0,0,0.55); color: rgba(255,255,255,0.85);
  backdrop-filter: blur(4px);
}

/* ─ Footer CTA row ─ */
.ba-footer {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  margin-top: 2rem; flex-wrap: wrap;
}
.ba-footer-sec {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.85rem; font-weight: 600;
  color: var(--muted); text-decoration: none; transition: color 0.2s;
}
.ba-footer-sec:hover { color: var(--ink); }
.ba-footer-prim {
  background: var(--ink); color: var(--paper);
  padding: 0.7rem 1.6rem; border-radius: var(--radius);
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.85rem; font-weight: 700;
  text-decoration: none; transition: background 0.2s;
}
.ba-footer-prim:hover { background: var(--accent); }
html[data-theme="dark"] .ba-footer-prim { background: var(--accent2); }
html[data-theme="dark"] .ba-footer-prim:hover { background: var(--accent); }

@media (max-width: 768px) {
  .ba-container { height: 360px; }
  .ba-after-links { display: none; }
  .ba-after-nav-cta { display: none; }
  .ba-after-services { gap: 0.4rem; padding: 0.4rem 0.7rem; }
  .ba-after-trust { gap: 0.6rem; font-size: 0.52rem; }
  .ba-after-gallery { padding: 0.3rem 0.7rem; }
  .ba-gal-item { height: 34px; }
  .ba-after-stats { gap: 0.6rem; }
  .lp-toggle-wrap { flex-direction: column; align-items: flex-start; }
  .lp-thumb { height: 72px; margin: -2rem -1.75rem 1.1rem; }
}

/* ═══════ DEMO ANTES/DESPUÉS — mejoras ═══════ */

/* ── ANTES: más anticuado, saturado y con movimiento ── */
.ba-body-before {
  font-family: 'Comic Sans MS', 'Comic Sans', cursive;
  background: #e6e6c4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Crect width='24' height='24' fill='%23dedeb4'/%3E%3Cpath d='M0 0h12v12H0zM12 12h12v12H12z' fill='%23eaeac6'/%3E%3C/svg%3E");
}
.bsb-logo { font-family: 'Comic Sans MS', cursive; color: #ffe600; text-shadow: 1px 1px 0 #00d0ff, -1px 0 0 #ff00a0; }
.bsb-h1  { font-family: 'Comic Sans MS', cursive; color: #d0006f; text-shadow: 1px 1px 0 #00c8ff; }
.bsb-p   { font-family: 'Comic Sans MS', cursive; }
.bsb-btn { font-family: 'Comic Sans MS', cursive; background: linear-gradient(#12b6ff, #003087); border: 2px outset #8ac; animation: bsbBtnBlink 1.4s steps(1) infinite; }
.bsb-construction { animation: bsbBlink .9s steps(1) infinite; }
.bsb-marquee { background: repeating-linear-gradient(90deg, #00308a 0 14px, #cc0000 14px 28px); color: #ffe600; text-shadow: 1px 1px 0 #000; overflow: hidden; }
.bsb-marquee-in { display: inline-block; white-space: nowrap; animation: bsbMarquee 13s linear infinite; will-change: transform; }
.bsb-photos-hd { background: #d0006f; }
.bsb-digits { box-shadow: 0 0 5px #0f0; }
.bsb-hero { position: relative; overflow: hidden; }
.bsb-star {
  position: absolute; top: 6px; right: 8px; width: 46px; height: 46px; border-radius: 50%;
  background: radial-gradient(circle, #ffe600, #ff7a00); color: #cc0000; border: 2px dashed #cc0000;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  line-height: 1.05; font-family: 'Comic Sans MS', cursive; font-weight: bold; font-size: .4rem;
  transform: rotate(-12deg); box-shadow: 0 2px 6px rgba(0,0,0,.35); z-index: 2;
  animation: bsbStar 3s ease-in-out infinite;
}
@keyframes bsbBlink   { 0%,49% { opacity: 1 } 50%,100% { opacity: .2 } }
@keyframes bsbBtnBlink{ 0%,70% { filter: none } 85% { filter: brightness(1.6) } }
@keyframes bsbMarquee { 0% { transform: translateX(0) } 100% { transform: translateX(-50%) } }
@keyframes bsbStar    { 0%,100% { transform: rotate(-12deg) scale(1) } 50% { transform: rotate(360deg) scale(1.1) } }

/* ── DESPUÉS: más premium e impactante ── */
.ba-after-hero {
  background:
    radial-gradient(120% 130% at 82% -15%, rgba(200,70,58,.38), transparent 55%),
    radial-gradient(90% 90% at 0% 120%, rgba(232,130,74,.2), transparent 60%),
    linear-gradient(135deg, #14100f 0%, #1e0a08 100%);
}
.ba-after-h1 { text-shadow: 0 2px 22px rgba(200,70,58,.4); }
.ba-btn-p        { background: linear-gradient(135deg, #e8824a, #c8463a); box-shadow: 0 4px 14px rgba(200,70,58,.45); }
.ba-after-nav-cta{ background: linear-gradient(135deg, #e8824a, #c8463a); box-shadow: 0 3px 10px rgba(200,70,58,.35); }
/* "Fotos" con look real de barbería (tonos cálidos + íconos) */
.ba-svc-img { display: flex; align-items: center; justify-content: center; }
.ba-svc-img::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 22%, rgba(255,255,255,.15), transparent 62%); }
.ba-svc-img::after  { position: relative; font-size: 1.15rem; opacity: .9; filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)); }
.bsi-1 { background: linear-gradient(150deg, #2a1712, #5a2f22 55%, #3a1c14); }
.bsi-1::after { content: '✂️'; }
.bsi-2 { background: linear-gradient(150deg, #1c1610, #4a3320 55%, #2a1c12); }
.bsi-2::after { content: '💈'; }
.bsi-3 { background: linear-gradient(150deg, #241a12, #5a3a22 55%, #32241a); }
.bsi-3::after { content: '🪒'; }
.ba-gal-item { position: relative; overflow: hidden; }
.ba-gal-item::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 20%, rgba(255,255,255,.12), transparent 66%); }
.bgi-1 { background: linear-gradient(150deg, #3a1e12, #6b3a22); }
.bgi-2 { background: linear-gradient(150deg, #2a1a12, #573620); }
.bgi-3 { background: linear-gradient(150deg, #241810, #4a2e1a); }
.bgi-4 { background: linear-gradient(150deg, #3a2414, #6b4426); }
.bgi-5 { background: linear-gradient(150deg, #1e1610, #40281a); }
.bgi-6 { background: linear-gradient(150deg, #2e1c12, #5a3620); }

/* ── MÓVIL: más alto y legible ── */
@media (max-width: 768px) {
  .ba-container { height: 424px; }
  .bsb-star { width: 40px; height: 40px; font-size: .36rem; }
}
@media (max-width: 480px) {
  .ba-container { height: 448px; }
}
@media (prefers-reduced-motion: reduce) {
  .bsb-marquee-in, .bsb-construction, .bsb-btn, .bsb-star { animation: none !important; }
}

/* Hero con arte: poste de barbero girando */
.ba-after-hero { position: relative; overflow: hidden; }
.ba-after-hero > *:not(.ba-hero-art) { position: relative; z-index: 1; }
.ba-hero-art { position: absolute; right: 12px; top: 6px; height: 58px; width: auto; z-index: 0; opacity: .95; filter: drop-shadow(0 3px 8px rgba(0,0,0,.5)); }
.bap-stripes path:nth-child(odd)  { stroke: #e2342a; }
.bap-stripes path:nth-child(even) { stroke: #1e5fd0; }
.bap-stripes { animation: barberSpin 1.5s linear infinite; }
@keyframes barberSpin { from { transform: translateY(0); } to { transform: translateY(-26.6px); } }
@media (prefers-reduced-motion: reduce) { .bap-stripes { animation: none !important; } }
@media (max-width: 480px) { .ba-hero-art { height: 50px; right: 8px; } }

/* ── Fotos reales en el demo moderno ── */
#demo-live.demo-cargada .ba-after-hero {
  background: linear-gradient(rgba(18,10,9,.58), rgba(18,10,9,.82)), url('/assets/demo/barber-hero.jpg') center/cover no-repeat;
}
.ba-hero-art { display: none; }                 /* con foto real, el poste sobra */
.ba-svc-img::after  { content: none; }          /* quitar emoji */
.ba-svc-img::before { background: linear-gradient(180deg, rgba(0,0,0,.3), transparent 48%); }
#demo-live.demo-cargada .bsi-1 { background: url('/assets/demo/barber-svc1.jpg') center/cover; }
#demo-live.demo-cargada .bsi-2 { background: url('/assets/demo/barber-svc2.jpg') center/cover; }
#demo-live.demo-cargada .bsi-3 { background: url('/assets/demo/barber-svc3.jpg') center/cover; }
.ba-gal-item::after { background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.28)); }
#demo-live.demo-cargada .bgi-1 { background: url('/assets/demo/barber-g1.jpg') center/cover; }
#demo-live.demo-cargada .bgi-2 { background: url('/assets/demo/barber-g2.jpg') center/cover; }
#demo-live.demo-cargada .bgi-3 { background: url('/assets/demo/barber-g3.jpg') center/cover; }
#demo-live.demo-cargada .bgi-4 { background: url('/assets/demo/barber-g4.jpg') center/cover; }
#demo-live.demo-cargada .bgi-5 { background: url('/assets/demo/barber-g5.jpg') center/cover; }
#demo-live.demo-cargada .bgi-6 { background: url('/assets/demo/barber-g6.jpg') center/cover; }

/* Marco de la demo con el estilo nuevo (va después para ganar) */
#demo-live .ba-container { max-width: 960px; margin: 0 auto; border-radius: 16px; box-shadow: 0 0 0 1px var(--line), 0 32px 64px -32px rgba(12, 10, 9, .4); }
#demo-live .ba-label { padding: 5px 10px; font-family: inherit; font-size: .75rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
#demo-live .ba-label-after { background: rgba(255, 255, 255, .94); color: #0c0a09; }
#demo-live .ba-label-before { background: rgba(12, 10, 9, .72); color: #fff; }
#demo-live .ba-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

/* ==========================================================================
   SECCIONES EN CARBÓN (2026-11-23: el usuario pidió "más oscuro aún")
   .theme-dark redefine los tokens solo dentro de la sección: todos los
   componentes (textos, bordes, tarjetas) se ajustan solos. Se usa en la barra
   superior, el inicio, Proceso, la demo y Preguntas frecuentes.
   ========================================================================== */
.theme-dark {
  --bg: #171513;
  --surface: #201d1a;
  --bg-subtle: #1d1a17;
  --bg-muted: #2a2622;
  --text: #fafaf9;
  --text-2: #d6d3d1;
  --text-3: #a8a29e;
  --line: #2f2a26;
  --line-strong: #47403a;
  --brand-ink: #fb923c;
  --ok: #4ade80;
  --ok-soft: rgba(74, 222, 128, .12);
  background: var(--bg);
  color: var(--text-2);
}
.theme-dark .btn-primary { background: #fafaf9; color: #0c0a09; }
.theme-dark .btn-primary:hover { background: #e7e5e4; }
.theme-dark .btn-secondary { box-shadow: none; }
.theme-dark .btn-secondary:hover { background: var(--bg-muted); border-color: #57534e; }
.theme-dark ::selection { background: #7c2d12; color: #fff; }

nav.nav.theme-dark { background: rgba(23, 21, 19, .9); }
.theme-dark #navAvatar { background: var(--brand); color: #fff; }
.mobile-nav-menu.theme-dark a.btn { color: #0c0a09; }

.hero.theme-dark { padding-bottom: 8px; }
.hero.theme-dark .hero-stats { border-bottom: 0; }
.hero.theme-dark .browser { box-shadow: 0 0 0 1px rgba(255, 255, 255, .04), 0 32px 64px -24px rgba(0, 0, 0, .7); }
.hero.theme-dark .hero-media figcaption a { text-decoration-color: #57534e; }

/* La FAQ (carbón) va pegada al pie (negro): una línea los separa */
footer { border-top: 1px solid #292524; }
