/* ==========================================================================
   Yeison Chara · Sistema de diseño
   Los tokens de esta sección se reutilizan en las demos y en el CRM.
   ========================================================================== */

:root {
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1180px;
  --gutter: 16px;
  --header-h: 68px;
  --radius: 16px;
  --radius-lg: 22px;

  /* Marca (igual en ambos temas) */
  --accent: #FF7A45;
  --accent-hover: #FF8C5C;
  --accent-ink: #1F0A00;
  --wa: #25D366;

  /* Tema claro */
  color-scheme: light;
  --bg: #FBFAF7;
  --bg-alt: #F4F2ED;
  --surface: #FFFFFF;
  --surface-2: #F4F2ED;
  --input-bg: #FFFFFF;
  --border: #E7E3DA;
  --border-strong: #D6D0C4;
  --text: #14161C;
  --text-muted: #4E5566;
  --text-faint: #6B7183;
  --accent-text: #C2410C;
  --accent-soft: rgba(244, 106, 46, .12);
  --accent-glow: rgba(244, 106, 46, .5);
  --hl-1: #D9480F;
  --hl-2: #B45309;
  --mint: #0E9F7E;
  --success: #15803D;
  --danger: #B91C1C;
  --glow-1: rgba(255, 122, 69, .18);
  --glow-2: rgba(14, 159, 126, .12);
  --grid: rgba(20, 22, 28, .05);
  --shadow-lg: 0 24px 48px -24px rgba(20, 22, 28, .18), 0 2px 6px rgba(20, 22, 28, .04);
}

/* Tema oscuro: por preferencia del sistema o elegido con el botón */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0A0D14;
    --bg-alt: #0E121B;
    --surface: #121722;
    --surface-2: #1A2030;
    --input-bg: #0E121B;
    --border: #222938;
    --border-strong: #2F3849;
    --text: #EEF0F5;
    --text-muted: #A4ACBD;
    --text-faint: #7A8398;
    --accent-text: #FF8F5E;
    --accent-soft: rgba(255, 122, 69, .14);
    --accent-glow: rgba(255, 122, 69, .45);
    --hl-1: #FF7A45;
    --hl-2: #FFB547;
    --mint: #3DD9B0;
    --success: #4ADE80;
    --danger: #F87171;
    --glow-1: rgba(255, 122, 69, .20);
    --glow-2: rgba(61, 217, 176, .10);
    --grid: rgba(255, 255, 255, .045);
    --shadow-lg: 0 24px 48px -20px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .02);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0A0D14;
  --bg-alt: #0E121B;
  --surface: #121722;
  --surface-2: #1A2030;
  --input-bg: #0E121B;
  --border: #222938;
  --border-strong: #2F3849;
  --text: #EEF0F5;
  --text-muted: #A4ACBD;
  --text-faint: #7A8398;
  --accent-text: #FF8F5E;
  --accent-soft: rgba(255, 122, 69, .14);
  --accent-glow: rgba(255, 122, 69, .45);
  --hl-1: #FF7A45;
  --hl-2: #FFB547;
  --mint: #3DD9B0;
  --success: #4ADE80;
  --danger: #F87171;
  --glow-1: rgba(255, 122, 69, .20);
  --glow-2: rgba(61, 217, 176, .10);
  --grid: rgba(255, 255, 255, .045);
  --shadow-lg: 0 24px 48px -20px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .02);
}

@media (min-width: 640px)  { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }

/* ==========================================================================
   Base
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; color: var(--text); }
a { color: inherit; }
button { font: inherit; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-fill { fill: currentColor; stroke: none; }

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

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: .6rem 1rem;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ==========================================================================
   Botones
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .8rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: .975rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .55rem .95rem; font-size: .9rem; }
.btn-lg { padding: .95rem 1.4rem; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 24px -12px var(--accent-glow);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--surface-2); }

.btn[disabled] { opacity: .7; cursor: progress; transform: none; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .15s ease, background-color .15s ease;
}
.icon-btn:hover { border-color: var(--border-strong); background: var(--surface-2); }
.icon-btn .icon { width: 20px; height: 20px; }

/* ==========================================================================
   Header y navegación
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled,
.site-header.is-open { border-bottom-color: var(--border); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin-right: auto;
  color: var(--text);
  text-decoration: none;
}
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1rem; font-weight: 800; letter-spacing: -.01em; }
.brand-text span { font-size: .75rem; font-weight: 600; color: var(--text-muted); }

.header-actions { display: flex; align-items: center; gap: 8px; }

.icon-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun { display: block; }
  :root:not([data-theme="light"]) .icon-moon { display: none; }
}
:root[data-theme="dark"] .icon-sun { display: block; }
:root[data-theme="dark"] .icon-moon { display: none; }

.icon-close { display: none; }
.is-open .icon-open { display: none; }
.is-open .icon-close { display: block; }

/* Móvil: panel desplegable */
.nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  padding: 8px var(--gutter) 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.site-header.is-open .nav { opacity: 1; visibility: visible; transform: none; }

.nav-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.nav-links a {
  display: block;
  padding: .9rem .25rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

@media (min-width: 960px) {
  .menu-toggle { display: none; }
  .nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    max-height: none;
    overflow: visible;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav-links { flex-direction: row; gap: 2px; }
  .nav-links a {
    padding: .5rem .75rem;
    border: 0;
    border-radius: 999px;
    color: var(--text-muted);
    font-size: .925rem;
    transition: color .15s ease, background-color .15s ease;
  }
  .nav-links a:hover,
  .nav-links a.is-active { color: var(--text); background: var(--surface-2); }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(40px, 7vw, 88px) 48px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(55% 45% at 85% 15%, var(--glow-1), transparent 70%),
    radial-gradient(40% 40% at 5% 35%, var(--glow-2), transparent 70%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}

.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 48px; }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 1.25rem;
  padding: .4rem .85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: .85rem;
  font-weight: 600;
}
.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2.4s ease-out infinite;
}

h1 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.3rem, 1.5rem + 3.8vw, 4.1rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.text-accent {
  background: linear-gradient(90deg, var(--hl-1), var(--hl-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  max-width: 36em;
  margin: 0 0 2rem;
  color: var(--text-muted);
  font-size: clamp(1.05rem, 1rem + .35vw, 1.22rem);
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 479px) {
  .hero-ctas .btn { flex: 1 1 100%; }
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.25rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
  font-size: .9rem;
  font-weight: 500;
}
.hero-points li { display: flex; align-items: center; gap: .4rem; }
.hero-points .icon { width: 1.1em; height: 1.1em; color: var(--mint); stroke-width: 2.5; }

/* Ilustración del hero */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 440px;
  padding: 16px 0;
}
@media (min-width: 960px) { .hero-visual { min-height: 540px; } }

.phone {
  position: relative;
  width: min(270px, 66vw);
  aspect-ratio: 9 / 18.5;
  padding: 10px;
  border-radius: 42px;
  background: linear-gradient(160deg, #2C3345, #10141C);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 2;
  width: 82px;
  height: 22px;
  border-radius: 999px;
  background: #0B0E14;
  transform: translateX(-50%);
}
.phone-screen {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding: 46px 14px 14px;
  overflow: hidden;
  border-radius: 32px;
  background: #F2FBFA;
  color: #0F2E2C;
  font-size: 11px;
  line-height: 1.3;
}
.ms-nav { display: flex; align-items: center; gap: 7px; }
.ms-logo { width: 18px; height: 18px; border-radius: 6px; background: #0E9F9A; }
.ms-name { font-weight: 800; font-size: 11.5px; margin-right: auto; }
.ms-burger { width: 16px; height: 10px; border-block: 2px solid #0F2E2C; position: relative; }
.ms-burger::after { content: ""; position: absolute; left: 0; right: 0; top: 2px; height: 2px; background: #0F2E2C; }
.ms-hero {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0B8C88, #14B8A6);
  color: #fff;
}
.ms-tag { font-size: 8.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.ms-title { font-size: 17px; font-weight: 800; line-height: 1.12; letter-spacing: -.02em; }
.ms-btn {
  align-self: flex-start;
  margin-top: 2px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  color: #0B8C88;
  font-size: 10px;
  font-weight: 800;
}
.ms-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ms-services span {
  padding: 8px 2px;
  border: 1px solid #D7EEEC;
  border-radius: 12px;
  background: #fff;
  font-size: 8.5px;
  font-weight: 700;
  text-align: center;
}
.ms-services i { display: block; width: 22px; height: 22px; margin: 0 auto 5px; border-radius: 8px; background: #CDEFEB; }
.ms-slots { padding: 10px; border: 1px solid #D7EEEC; border-radius: 14px; background: #fff; }
.ms-slots-title { font-size: 9.5px; font-weight: 800; }
.ms-slot-row { display: flex; gap: 6px; margin-top: 8px; }
.ms-slot-row span {
  flex: 1;
  padding: 6px 0;
  border: 1px solid #D7EEEC;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}
.ms-slot-row .is-on { background: #0E9F9A; border-color: #0E9F9A; color: #fff; }

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 236px;
  padding: 10px 14px 10px 10px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}
.fc-icon { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 11px; }
.fc-icon .icon { width: 19px; height: 19px; }
.fc-mint { background: color-mix(in srgb, var(--mint) 16%, transparent); color: var(--mint); }
.fc-green { background: color-mix(in srgb, #1E8E3E 16%, transparent); color: #1E8E3E; }
.fc-wa { background: var(--wa); color: #fff; }
.fc-body { min-width: 0; }
.fc-body strong { display: block; font-size: .82rem; line-height: 1.25; }
.fc-body small {
  display: block;
  overflow: hidden;
  color: var(--text-muted);
  font-size: .74rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.fc-1 { top: 0; left: 0; }
.fc-2 { top: 44%; right: 0; animation-delay: -2s; }
.fc-3 { bottom: 6%; left: 2%; animation-delay: -4s; }
@media (min-width: 560px) {
  .fc-1 { left: 6%; }
  .fc-2 { right: 4%; }
  .fc-3 { left: 8%; }
}
@media (min-width: 960px) {
  .fc-1 { left: -2%; }
  .fc-2 { right: -2%; }
  .fc-3 { left: 2%; }
}
@media (max-width: 379px) {
  .float-card { max-width: 200px; padding: 8px 10px 8px 8px; }
  .fc-icon { width: 30px; height: 30px; }
}

.niches {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}
.niches li {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: .9rem;
  font-weight: 600;
}
.niches .icon { color: var(--accent-text); width: 1.1em; height: 1.1em; }

/* ==========================================================================
   Secciones
   ========================================================================== */

.section { padding-block: clamp(72px, 10vw, 120px); }
.section-tight { padding-block: clamp(56px, 8vw, 96px); }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }

.section-head {
  max-width: 680px;
  margin: 0 auto clamp(36px, 5vw, 56px);
  text-align: center;
}
.section-head p:not(.eyebrow) { margin: 0; color: var(--text-muted); font-size: 1.075rem; }

.eyebrow {
  display: inline-block;
  margin: 0 0 .75rem;
  color: var(--accent-text);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.85rem, 1.3rem + 2.2vw, 2.8rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.fine-print {
  max-width: 640px;
  margin: 32px auto 0;
  color: var(--text-muted);
  font-size: .925rem;
  text-align: center;
}
.fine-print a { color: var(--accent-text); font-weight: 600; }

/* ---------- Paquetes y retainer ---------- */

.pricing-grid,
.retainer-grid { display: grid; gap: 20px; }
@media (min-width: 640px) and (max-width: 959px) {
  .pricing-grid, .retainer-grid { max-width: 620px; margin-inline: auto; }
}
@media (min-width: 960px) {
  .pricing-grid, .retainer-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
}

.price-card,
.retainer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.price-card { gap: 24px; }

.price-card.is-featured,
.retainer-card.is-featured {
  border-color: color-mix(in srgb, var(--accent) 60%, var(--border));
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, var(--surface)), var(--surface) 45%);
  box-shadow: 0 30px 60px -32px var(--accent-glow);
}
@media (min-width: 960px) {
  .price-card.is-featured, .retainer-card.is-featured { translate: 0 -12px; }
}

.badge {
  position: absolute;
  top: -12px;
  left: 24px;
  padding: .3rem .75rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.price-card h3,
.retainer-card h3 { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.price-tagline { margin: .25rem 0 1.1rem; color: var(--text-muted); font-size: .95rem; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem; margin: 0; }
.price-amount { font-size: clamp(2rem, 1.6rem + 1.4vw, 2.5rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.price-unit,
.price-from { color: var(--text-muted); font-size: .9rem; font-weight: 700; }
.price-from { flex-basis: 100%; margin-bottom: .1rem; }
.price-meta { margin: .6rem 0 0; color: var(--text-faint); font-size: .85rem; font-weight: 500; }

.retainer-price { margin: .5rem 0 0; color: var(--text-muted); font-weight: 600; }
.retainer-price span { color: var(--text); font-size: 2rem; font-weight: 800; letter-spacing: -.03em; }
.retainer-desc { margin: .25rem 0 0; color: var(--text-muted); font-size: .95rem; }
.retainer-card .feature-list { margin: 22px 0 26px; }

.feature-list {
  display: grid;
  flex: 1;
  align-content: start;
  gap: .7rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .95rem;
}
.feature-list li { display: flex; align-items: flex-start; gap: .6rem; color: var(--text-muted); }
.feature-list li.is-strong { color: var(--text); font-weight: 700; }
.feature-list .icon { width: 1.15em; height: 1.15em; margin-top: .2em; color: var(--mint); stroke-width: 2.5; }

/* ---------- Demos ---------- */

.demo-grid { display: grid; gap: 24px; }
@media (min-width: 720px)  { .demo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .demo-grid { grid-template-columns: repeat(3, 1fr); } }

.demo-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.demo-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-lg); }

.demo-preview {
  display: block;
  padding: 20px 20px 0;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}
.browser {
  overflow: hidden;
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: #fff;
  box-shadow: 0 -10px 30px -18px rgba(0, 0, 0, .35);
  transition: transform .35s ease;
}
.demo-card:hover .browser { transform: translateY(-4px); }
.browser-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  border-bottom: 1px solid #E2E5EB;
  background: #EEF0F4;
}
.browser-bar i { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #D3D7DF; }
.browser-bar i:nth-child(1) { background: #FF6159; }
.browser-bar i:nth-child(2) { background: #FFBD2E; }
.browser-bar i:nth-child(3) { background: #28C941; }
.browser-bar span {
  flex: 1;
  min-width: 0;
  margin-left: 8px;
  padding: 3px 8px;
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
  color: #5B6273;
  font-size: 10.5px;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Mini-sitios dibujados con CSS (se reemplazan por capturas cuando existan las demos) */
.mock {
  --m-ink: #0F2E2C;
  display: flex;
  flex-direction: column;
  gap: 10px;
  aspect-ratio: 16 / 10.5;
  padding: 10px 12px 12px;
  overflow: hidden;
  background: var(--m-bg);
}
.mk-nav { display: flex; align-items: center; gap: 6px; }
.mk-nav b { width: 14px; height: 14px; margin-right: auto; border-radius: 5px; background: var(--m-primary); }
.mk-nav span { width: 22px; height: 5px; border-radius: 3px; background: var(--m-line); }
.mk-h { display: block; width: 100%; height: 9px; border-radius: 4px; background: var(--m-ink); }
.mk-h.short { width: 70%; }
.mk-p { display: block; width: 85%; height: 5px; border-radius: 3px; background: var(--m-line); }
.mk-btn { display: block; width: 56px; height: 14px; margin-top: 4px; border-radius: 999px; background: var(--m-primary); }
.mk-line { display: block; height: 5px; border-radius: 3px; background: var(--m-line); }
.mk-price { display: block; width: 26px; height: 7px; border-radius: 3px; background: var(--m-primary); }

.mock--dental { --m-bg: #F2FBFA; --m-primary: #0E9F9A; --m-accent: #7DD3C8; --m-line: #C9E6E3; }
.mk-hero { display: grid; flex: 1; grid-template-columns: 1.2fr 1fr; gap: 10px; }
.mk-copy { display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.mk-img {
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--m-primary), var(--m-accent));
}
.mk-tooth {
  width: 30px;
  height: 34px;
  border-radius: 45% 45% 40% 40% / 40% 40% 60% 60%;
  background: #fff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .15);
}
.mk-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mk-cards span { height: 30px; border: 1px solid var(--m-line); border-radius: 7px; background: #fff; }

.mock--food { --m-bg: #FFF8EE; --m-primary: #C2410C; --m-accent: #F59E0B; --m-line: #F1DCC0; --m-ink: #3B1D0B; }
.mk-banner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border-radius: 10px;
  background: linear-gradient(120deg, #7C2D12, #C2410C 60%, #F59E0B);
}
.mk-banner .mk-h { width: 60%; background: #fff; }
.mk-banner .mk-p { width: 45%; background: rgba(255, 255, 255, .6); }
.mk-banner .mk-btn { background: #FDE68A; }
.mk-menu { display: grid; gap: 6px; }
.mk-menu div {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--m-line);
  border-radius: 8px;
  background: #fff;
}
.mk-dish { width: 22px; height: 22px; flex: none; border-radius: 6px; background: linear-gradient(135deg, var(--m-accent), var(--m-primary)); }
.mk-menu .mk-line { flex: 1; }

.mock--realty { --m-bg: #F3F6FA; --m-primary: #0F3D5E; --m-accent: #10B981; --m-line: #D5DEE8; --m-ink: #0F2233; }
.mk-filters {
  display: flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--m-line);
  border-radius: 9px;
  background: #fff;
}
.mk-filters span { flex: 1; height: 14px; border: 1px solid var(--m-line); border-radius: 5px; background: var(--m-bg); }
.mk-filters .mk-btn { flex: 0 0 40px; margin: 0; border: 0; background: var(--m-primary); }
.mk-props { display: grid; flex: 1; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mk-props div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--m-line);
  border-radius: 8px;
  background: #fff;
}
.mk-photo { flex: 1; border-radius: 5px; background: linear-gradient(160deg, #9CC3E0, #0F3D5E); }
.mk-props div:nth-child(2) .mk-photo { background: linear-gradient(160deg, #A7E3C9, #0F766E); }
.mk-props div:nth-child(3) .mk-photo { background: linear-gradient(160deg, #F6D8A8, #B45309); }
.mk-props .mk-line { width: 80%; height: 4px; }
.mk-props .mk-price { width: 50%; height: 6px; background: var(--m-accent); }

.demo-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 22px 22px 24px;
  border-top: 1px solid var(--border);
}
.demo-tag {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin: 0;
  color: var(--accent-text);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.demo-tag .icon { width: 1.1em; height: 1.1em; }
.demo-body h3 { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; }
.demo-body p { margin: 0; color: var(--text-muted); font-size: .95rem; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.chips li {
  padding: .3rem .65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 600;
}

.demo-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: .4rem;
  margin-top: auto;
  padding-top: 10px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}
.demo-link .icon { transition: transform .2s ease; }
.demo-link:hover { color: var(--accent-text); }
.demo-link:hover .icon { transform: translate(2px, -2px); }

/* ---------- ¿Por qué yo? ---------- */

.why-grid { display: grid; gap: 48px; }
@media (min-width: 1024px) {
  .why-grid { grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
}
.why-intro > p:not(.eyebrow) { margin: 0; color: var(--text-muted); font-size: 1.05rem; }

.flow {
  display: grid;
  margin: 28px 0 0;
  padding: 12px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  list-style: none;
}
.flow li { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; }
.flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 54px;
  bottom: -10px;
  left: 19px;
  border-left: 2px dashed var(--border-strong);
}
.flow-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-text);
}
.flow-icon .icon { width: 20px; height: 20px; }
.flow li:last-child .flow-icon { background: color-mix(in srgb, var(--mint) 16%, transparent); color: var(--mint); }
.flow strong { display: block; font-size: .98rem; line-height: 1.35; }
.flow small { display: block; margin-top: 2px; color: var(--text-muted); font-size: .875rem; }

.why-cards { display: grid; gap: 16px; }
@media (min-width: 600px) { .why-cards { grid-template-columns: repeat(2, 1fr); } }
.why-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.why-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--accent-text);
}
.why-icon .icon { width: 21px; height: 21px; }
.why-card h3 { margin-bottom: .4rem; font-size: 1.05rem; font-weight: 800; }
.why-card p { margin: 0; color: var(--text-muted); font-size: .925rem; }

/* ---------- Proceso ---------- */

.steps { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px)  { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  position: relative;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.step-num {
  position: absolute;
  top: 18px;
  right: 20px;
  color: var(--border-strong);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
}
.step > .icon { width: 28px; height: 28px; margin-bottom: 16px; color: var(--accent-text); }
.step h3 { margin-bottom: .35rem; font-size: 1.1rem; font-weight: 800; }
.step p { margin: 0; color: var(--text-muted); font-size: .925rem; }

/* ---------- Testimonios ---------- */

.testimonial-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .testimonial-grid { grid-template-columns: repeat(3, 1fr); } }
.testimonial {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.stars { display: flex; gap: 2px; color: #F5B83D; }
.stars .icon { width: 18px; height: 18px; }
.testimonial blockquote { flex: 1; margin: 0; font-size: 1.02rem; line-height: 1.6; }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; }
.avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #FFB547);
  color: var(--accent-ink);
  font-size: .9rem;
  font-weight: 800;
}
.testimonial figcaption strong { display: block; font-size: .95rem; }
.testimonial figcaption small { display: block; color: var(--text-muted); font-size: .85rem; }

/* ---------- FAQ ---------- */

.faq-wrap { max-width: 820px; }
.faq { display: grid; gap: 12px; }
.faq details {
  padding: 0 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .2s ease;
}
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--text-muted); transition: transform .2s ease; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { margin: 0 0 18px; color: var(--text-muted); }

/* ---------- Contacto ---------- */

.contact-grid { display: grid; gap: 40px; }
@media (min-width: 960px) {
  .contact-grid { grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
}
.contact-info > p:not(.eyebrow) { margin: 0; color: var(--text-muted); font-size: 1.05rem; }

.wa-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0 24px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color .2s ease;
}
.wa-card:hover { border-color: var(--wa); }
.wa-card-icon { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 14px; background: var(--wa); color: #fff; }
.wa-card-icon .icon { width: 24px; height: 24px; }
.wa-card strong { display: block; }
.wa-card small { display: block; color: var(--text-muted); font-size: .875rem; }
.wa-card-arrow { margin-left: auto; color: var(--text-muted); }

.contact-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; color: var(--text-muted); font-size: .95rem; }
.contact-list li { display: flex; align-items: center; gap: 10px; }
.contact-list .icon { color: var(--accent-text); width: 1.15em; height: 1.15em; }
.contact-list a { color: var(--text); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { text-decoration: underline; }

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.field-row { display: grid; gap: 16px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: .875rem; font-weight: 700; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .75rem .9rem;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--input-bg);
  color: var(--text);
  font: inherit;
  font-size: 1rem; /* 16px evita el zoom automático en iPhone */
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field ::placeholder { color: var(--text-faint); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.field input:user-invalid,
.field textarea:user-invalid { border-color: var(--danger); }

.select { position: relative; }
.select select { padding-right: 2.5rem; cursor: pointer; }
.select .icon {
  position: absolute;
  top: 50%;
  right: .85rem;
  width: 1.1em;
  height: 1.1em;
  color: var(--text-muted);
  pointer-events: none;
  translate: 0 -50%;
}

.hp { display: none !important; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-muted);
  font-size: .875rem;
  cursor: pointer;
}
.consent input { width: 18px; height: 18px; flex: none; margin: 2px 0 0; accent-color: var(--accent); }
.consent a { color: var(--accent-text); font-weight: 600; }

.form-status {
  margin: 0;
  padding: .8rem 1rem;
  border-radius: 12px;
  font-size: .925rem;
  font-weight: 600;
  text-align: center;
}
.form-status:empty { display: none; }
.form-status[data-state="loading"] { background: var(--surface-2); color: var(--text-muted); }
.form-status[data-state="success"] { background: color-mix(in srgb, var(--success) 14%, transparent); color: var(--success); }
.form-status[data-state="error"] { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { padding: 56px 0 28px; border-top: 1px solid var(--border); }
@media (max-width: 767px) { .site-footer { padding-bottom: 96px; } }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer-brand p { max-width: 34ch; margin: 16px 0 20px; color: var(--text-muted); font-size: .95rem; }
.socials { display: flex; gap: 10px; }
.socials .icon-btn:hover { border-color: var(--accent); color: var(--accent-text); }
.footer-title {
  margin: 0 0 14px;
  color: var(--text-faint);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.footer-nav ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer-nav a { color: var(--text-muted); font-size: .95rem; font-weight: 500; text-decoration: none; }
.footer-nav a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: .875rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--text-muted); text-decoration: none; }

/* ==========================================================================
   WhatsApp flotante
   ========================================================================== */

.wa-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .6), 0 4px 12px rgba(0, 0, 0, .2);
  transition: transform .2s ease, opacity .2s ease, visibility .2s;
}
.wa-float .icon { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.06); }
.js .wa-float { opacity: 0; visibility: hidden; transform: translateY(12px); }
.js .wa-float.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ==========================================================================
   Páginas secundarias (privacidad, 404)
   ========================================================================== */

.page-simple { padding-block: clamp(40px, 7vw, 80px); }
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); }
.legal h2 { margin: 2.4rem 0 .75rem; font-size: 1.3rem; letter-spacing: -.02em; }
.legal p, .legal li { color: var(--text-muted); }
.legal ul { padding-left: 1.2rem; }
.legal li + li { margin-top: .4rem; }
.legal a { color: var(--accent-text); font-weight: 600; }
.legal .updated { color: var(--text-faint); font-size: .9rem; }

.error-page { display: grid; min-height: 70vh; place-items: center; text-align: center; }
.error-code {
  margin: 0 0 .5rem;
  background: linear-gradient(90deg, var(--hl-1), var(--hl-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(5rem, 3rem + 10vw, 9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.05em;
}
.error-page p:not(.error-code) { max-width: 32em; margin: 0 auto 2rem; color: var(--text-muted); }
.error-page .hero-ctas { justify-content: center; }

/* ==========================================================================
   Animaciones
   ========================================================================== */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .07s; }
.reveal:nth-child(3) { transition-delay: .14s; }
.reveal:nth-child(4) { transition-delay: .21s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 55%, transparent); }
  80%, 100% { box-shadow: 0 0 0 8px transparent; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .float-card, .pill-dot { animation: none; }
  .btn, .browser, .demo-link .icon { transition: none; }
}
