/* =========================================================
   La Casa Mía Constructora · Landing Viviendas NOVA
   CSS puro, mobile-first. Sin frameworks.
   Para cambiar el fondo: <html data-theme="carbon"> o "noche"
   ========================================================= */

/* ---------- Temas ---------- */
:root,
[data-theme="carbon"] {
  /* Grafito cálido, sacado del negro del logo (#231F20) */
  --bg: #121010;
  --bg-2: #1a1716;
  --surface: #211d1c;
  --surface-2: #2a2524;
  --line: #3a3331;
  --text: #f6f1ec;
  --muted: #b9afa7;
  --muted-2: #8d837c;
  --glow: rgba(255, 147, 39, .18);
}
[data-theme="noche"] {
  /* Azul noche (el fondo que te gustó, afinado) */
  --bg: #0a111e;
  --bg-2: #0f1828;
  --surface: #142034;
  --surface-2: #1b2940;
  --line: #26374f;
  --text: #eef2f9;
  --muted: #a7b4c8;
  --muted-2: #7c8aa2;
  --glow: rgba(255, 147, 39, .16);
}
:root {
  /* Colores de marca (logo) */
  --brand: #ff9327;
  --brand-hi: #ffa94d;
  --brand-lo: #e87d10;
  --brand-ink: #1c1006;      /* texto sobre naranja: contraste AAA */
  --wa: #25d366;
  --wa-lo: #1ebe5b;
  --wa-ink: #052e16;

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --shadow: 0 18px 50px -18px rgba(0,0,0,.6);
  --header-h: 64px;
  --font-head: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 16px;
}

/* ---------- 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; background: var(--bg); color: var(--text);
  font: 400 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-head); line-height: 1.05; letter-spacing: -.005em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
b, strong { font-weight: 700; color: var(--text); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--brand); color: var(--brand-ink); }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.ic { width: 1.25em; height: 1.25em; flex: none; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--brand); color: var(--brand-ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.live-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--wa); box-shadow: 0 0 0 0 rgba(37,211,102,.6);
  animation: pulse 2s infinite; flex: none;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55); } 70% { box-shadow: 0 0 0 8px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  font: 700 15px/1.1 var(--font-body); letter-spacing: .01em; text-decoration: none;
  transition: transform .15s ease, background-color .2s, box-shadow .2s, border-color .2s, color .2s;
  -webkit-tap-highlight-color: transparent; text-align: center;
}
.btn-sm, .nav-cta .btn { white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn .ic { width: 20px; height: 20px; }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 10px 30px -8px rgba(255,147,39,.65); }
.btn-primary:hover { background: var(--brand-hi); }
.btn-wa { background: var(--wa); color: var(--wa-ink); }
.btn-wa:hover { background: #3be078; }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.28); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.16); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--line); }
.btn-outline:hover { border-color: var(--brand); background: var(--brand); color: var(--brand-ink); }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: 14px; gap: 8px; }
.btn-sm .ic { width: 18px; height: 18px; }
.btn-lg { min-height: 56px; padding: 14px 26px; font-size: 16px; }
.btn-block { width: 100%; }
.round {
  width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text); transition: background .2s;
}
.round:hover { background: var(--line); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  font: 700 11px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--line);
}
.chip-brand { background: var(--brand); color: var(--brand-ink); border-color: transparent; }
.chip-dark { background: rgba(0,0,0,.6); color: #fff; border-color: rgba(255,255,255,.15); backdrop-filter: blur(6px); }

.avatar {
  width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
  font: 800 14px/1 var(--font-body); color: #fff; background: var(--surface-2);
}
.av-l { background: linear-gradient(135deg, #ff9327, #e8650c); color: var(--brand-ink); }
.av-v { background: linear-gradient(135deg, #3a3331, #231f20); color: #fff; border: 2px solid var(--brand); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.topbar { display: none; background: var(--bg-2); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.topbar-msg { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.topbar-phones { display: flex; gap: 18px; }
.topbar-phones a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--text); font-weight: 600; }
.topbar-phones a:hover { color: var(--brand); }
.topbar-phones .ic { width: 15px; height: 15px; color: var(--brand); }

.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; }
.brand-logo { height: 50px; width: auto; }
.nav-desk { display: none; }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.show-xs { display: inline; } .hide-xs { display: none; }
.menu-btn {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line);
}
.menu-btn .ic { width: 22px; height: 22px; }
.menu-btn .ic-close, .menu-btn[aria-expanded="true"] .ic-open { display: none; }
.menu-btn[aria-expanded="true"] .ic-close { display: block; }

.drawer { border-top: 1px solid var(--line); background: var(--bg); max-height: calc(100svh - var(--header-h)); overflow-y: auto; }
.drawer-in { padding-top: 8px; padding-bottom: 20px; display: grid; }
.drawer-in > a {
  display: flex; align-items: center; justify-content: space-between; padding: 15px 2px;
  text-decoration: none; font: 700 22px/1.1 var(--font-head); text-transform: uppercase; border-bottom: 1px solid var(--line);
}
.drawer-in > a .ic { color: var(--brand); }
.drawer-phones { display: grid; gap: 10px; margin-top: 18px; }
.chip-link {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 600;
}
.chip-link .ic { color: var(--brand); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding-bottom: 28px; }
.hero::after { /* resplandor de marca */
  content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; right: -200px; bottom: -200px;
  background: radial-gradient(closest-side, var(--glow), transparent); pointer-events: none;
}
.hero-media { position: absolute; inset: 0 0 auto 0; height: min(68svh, 560px); z-index: -2; background: var(--bg-2); }
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06); transition: opacity .9s ease, transform 7s ease;
}
.hero-img.is-active { opacity: 1; transform: scale(1); }
.hero-shade {
  position: absolute; inset: 0 0 auto 0; height: min(68svh, 560px); z-index: -1;
  background:
    linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.05) 30%, transparent 45%),
    linear-gradient(0deg, var(--bg) 2%, color-mix(in srgb, var(--bg) 70%, transparent) 30%, transparent 62%);
}
.hero-grid { display: grid; gap: 22px; padding-top: calc(min(68svh, 560px) - 250px); }
.hero-copy { display: grid; gap: 14px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; justify-self: start;
  padding: 7px 12px; border-radius: 999px; background: rgba(0,0,0,.55); backdrop-filter: blur(8px);
  color: #fff; font: 700 12px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.14);
}
.hero-title {
  font-weight: 800; text-transform: uppercase; font-size: clamp(44px, 12.5vw, 92px); line-height: .92;
  text-shadow: 0 4px 30px rgba(0,0,0,.45);
}
.hl { color: var(--brand); display: inline-block; }
.hero-sub { color: var(--muted); font-size: 17px; max-width: 34ch; }
.hero-sub strong { color: var(--text); }
.hero-actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 4px; }
.hero-actions .btn-ghost { display: none; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; color: var(--muted); font-weight: 600; }
.hero-trust li { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust .ic { color: var(--brand); width: 18px; height: 18px; }

/* Tarjeta de modelos */
.model-card {
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px;
  box-shadow: var(--shadow); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  touch-action: pan-y;
}
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; background: var(--bg-2); border-radius: 999px; border: 1px solid var(--line); }
.tab {
  border: 0; background: transparent; padding: 10px 4px; border-radius: 999px;
  font: 700 14px/1 var(--font-body); color: var(--muted); transition: background .25s, color .25s;
}
.tab.is-active { background: var(--brand); color: var(--brand-ink); }
.slides { padding: 16px 4px 4px; }
.slide { animation: slideIn .45s ease both; display: grid; gap: 16px; }
@keyframes slideIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.slide-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.slide-title { font-size: 34px; font-weight: 800; text-transform: uppercase; }
.slide-sub { color: var(--muted); margin-top: 4px; font-size: 15px; }
.plan-thumb {
  flex: none; width: 88px; padding: 5px; border-radius: 14px; background: #fff; border: 0;
  display: grid; gap: 4px; box-shadow: 0 10px 24px -10px rgba(0,0,0,.6); transform: rotate(2deg); transition: transform .2s;
}
.plan-thumb:hover { transform: rotate(0) scale(1.03); }
.plan-thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: #eee; }
.plan-thumb span { display: flex; align-items: center; justify-content: center; gap: 4px; color: #1c1006; font: 800 11px/1 var(--font-body); text-transform: uppercase; letter-spacing: .05em; padding: 2px 0 3px; }
.plan-thumb .ic { width: 14px; height: 14px; color: var(--brand-lo); }
.feats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.feats li {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: var(--radius-sm);
  background: var(--bg-2); border: 1px solid var(--line); font-size: 14px; line-height: 1.2;
}
.feats .ic { color: var(--brand); width: 22px; height: 22px; }
.carousel-ctrl { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding: 0 4px; }
.dots { display: flex; gap: 6px; }
.dots i { width: 8px; height: 8px; border-radius: 99px; background: var(--line); transition: width .3s, background .3s; }
.dots i.is-active { width: 26px; background: var(--brand); }

/* ---------- Ticker beneficios ---------- */
.ticker { padding: 8px 0 8px; }
.ticker-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tick {
  display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.tick-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); }
.tick h3 { font-size: 19px; text-transform: uppercase; font-weight: 700; }
.tick p { color: var(--muted); font-size: 14px; line-height: 1.35; margin-top: 3px; }

/* ---------- Secciones ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.sec-head { display: grid; gap: 10px; margin-bottom: 28px; }
.sec-head-split { gap: 18px; }
.sec-center { text-align: center; justify-items: center; }
.sec-center .lead { margin-inline: auto; }
.kicker { font: 700 13px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--brand); }
.h2 { font-size: clamp(34px, 8.6vw, 56px); font-weight: 800; text-transform: uppercase; }
.lead { color: var(--muted); font-size: 17px; max-width: 60ch; }
.lead b { color: var(--text); }

.price-badge {
  display: inline-flex; align-items: center; gap: 12px; justify-self: start; padding: 12px 18px;
  border-radius: var(--radius); background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 20%, var(--surface)), var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand) 45%, var(--line));
}
.price-badge > .ic { color: var(--brand); width: 26px; height: 26px; }
.price-badge > span { display: grid; color: var(--muted); font-size: 14px; }
.price-badge strong { font: 800 30px/1 var(--font-head); color: var(--text); }
.price-badge small { font-size: 13px; }

/* Carrusel horizontal (mobile) / grilla (desktop) */
.cards-scroll {
  display: grid; grid-auto-flow: column; grid-auto-columns: 84%; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 8px; scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
}
.cards-scroll::-webkit-scrollbar { display: none; }
.cards-scroll > * { scroll-snap-align: start; }
.scroll-hint { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.scroll-hint span { width: 7px; height: 7px; border-radius: 9px; background: var(--line); transition: width .3s, background .3s; }
.scroll-hint span.is-active { width: 22px; background: var(--brand); }

.mcard { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: border-color .25s, transform .25s; }
.mcard:hover { border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); }
.mcard-img { position: relative; aspect-ratio: 4 / 3; background: var(--bg-2); overflow: hidden; }
.mcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.mcard:hover .mcard-img img { transform: scale(1.05); }
.mcard-img .chip { position: absolute; top: 12px; left: 12px; }
.mcard-img .m2 {
  position: absolute; right: 12px; bottom: 12px; padding: 6px 12px; border-radius: 10px;
  background: rgba(0,0,0,.65); backdrop-filter: blur(6px); color: #fff; font: 800 18px/1 var(--font-head);
}
.mcard-body { display: flex; flex-direction: column; gap: 10px; padding: 18px; flex: 1; }
.mcard-body h3 { font-size: 30px; font-weight: 800; text-transform: uppercase; }
.mcard-body p { color: var(--muted); font-size: 15px; flex: 1; }
.mcard-body .btn { margin-top: 6px; }

.includes { margin-top: 26px; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px dashed color-mix(in srgb, var(--brand) 50%, var(--line)); }
.includes-title { display: flex; align-items: center; gap: 8px; font: 800 20px/1 var(--font-head); text-transform: uppercase; margin-bottom: 14px; }
.includes-title .ic { color: var(--brand); }
.includes ul { display: grid; gap: 10px; }
.includes li { position: relative; padding-left: 22px; color: var(--muted); font-size: 15px; }
.includes li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 9px; height: 9px; border-radius: 2px; background: var(--brand); transform: rotate(45deg); }

/* Obra gris */
.feature-grid { display: grid; gap: 10px; }
.fcard { display: flex; gap: 14px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.fcard-ic { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); }
.fcard h3 { font-size: 20px; font-weight: 700; text-transform: uppercase; margin-bottom: 4px; }
.fcard p { color: var(--muted); font-size: 15px; line-height: 1.45; }
.inline-cta {
  display: grid; gap: 14px; margin-top: 22px; padding: 20px; border-radius: var(--radius);
  background: linear-gradient(120deg, color-mix(in srgb, var(--brand) 22%, var(--surface)), var(--surface) 70%);
  border: 1px solid color-mix(in srgb, var(--brand) 40%, var(--line));
}
.inline-cta p { font: 700 22px/1.15 var(--font-head); text-transform: uppercase; }

/* Sistemas */
.sys-grid { display: grid; gap: 14px; }
.sys { display: grid; gap: 14px; align-content: start; padding: 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.sys-top { display: flex; align-items: center; justify-content: space-between; }
.sys-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); }
.sys-ic .ic { width: 28px; height: 28px; }
.sys h3 { font-size: 34px; font-weight: 800; text-transform: uppercase; }
.sys > p { color: var(--muted); }
.ticks { display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; color: var(--muted); font-size: 15px; }
.ticks .ic { color: var(--wa); width: 20px; height: 20px; margin-top: 1px; }
.banner {
  display: grid; gap: 16px; margin-top: 18px; padding: 24px; border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--brand) 35%, transparent), transparent 60%),
    var(--surface);
  border: 1px solid color-mix(in srgb, var(--brand) 40%, var(--line));
}
.banner h3 { font-size: 30px; font-weight: 800; text-transform: uppercase; }
.banner p { color: var(--muted); margin-top: 4px; }

/* Trayectoria */
.story { display: grid; gap: 28px; align-items: center; }
.story-copy { display: grid; gap: 16px; }
.quote { margin: 6px 0 0; padding: 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand); }
.quote blockquote { margin: 0; font: 700 italic 26px/1.15 var(--font-head); }
.quote figcaption, .review figcaption { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.quote figcaption > span:last-child, .review figcaption > span:last-child { display: grid; line-height: 1.25; }
.quote small, .review small { color: var(--muted); font-size: 13px; }
.quote .avatar { background: var(--brand); color: var(--brand-ink); }
.visit { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 340px; border: 1px solid var(--line); background: var(--surface); }
.visit img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.visit-over { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 18px; background: linear-gradient(0deg, rgba(0,0,0,.88), rgba(0,0,0,.2) 55%, rgba(0,0,0,.15)); }
.visit-over .chip { align-self: flex-start; }
.visit-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.visit-bottom h3 { font-size: 28px; font-weight: 800; text-transform: uppercase; color: #fff; }
.visit-bottom p { color: #ddd; font-size: 14px; }

/* Videos */
.vcard { border: 0; padding: 0; text-align: left; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.vcard-img { position: relative; aspect-ratio: 16/9; background: #000; }
.vcard-img img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.vcard-play { position: absolute; inset: 0; display: grid; place-items: center; }
.vcard-play span { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.vcard-body { padding: 14px 16px; }
.vcard-body b { display: block; font-size: 16px; }
.vcard-body small { color: var(--muted); }
.video-frame { aspect-ratio: 16/9; background: #000; border-radius: 14px; overflow: hidden; }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Opiniones */
.stars-badge { display: inline-flex; align-items: center; gap: 10px; justify-self: start; padding: 10px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 14px; color: var(--muted); }
.stars { display: inline-flex; gap: 2px; color: #ffc53d; }
.stars .ic { width: 18px; height: 18px; }
.review { margin: 0; display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.review blockquote { margin: 0; color: var(--text); font-size: 15.5px; line-height: 1.55; flex: 1; }
.review figcaption { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.a1 { background: #5b3a8a; } .a2 { background: #1f5f8b; } .a3 { background: #1f7a5a; } .a4 { background: #8a5a1f; } .a5 { background: #8a2f5a; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.faq details[open] { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.faq summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px; font-weight: 700; font-size: 17px; cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--brand); transition: transform .25s; }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details p { padding: 0 18px 18px; color: var(--muted); }
.faq details a { color: var(--brand); font-weight: 600; }

/* Formulario */
.lead-box > *, .hero-grid > *, .story > *, .faq-wrap > * { min-width: 0; }
.lead-box {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 24px 18px; border-radius: 30px; overflow: hidden;
  background:
    radial-gradient(90% 70% at 100% 0%, color-mix(in srgb, var(--brand) 26%, transparent), transparent 65%),
    var(--surface);
  border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--line)); box-shadow: var(--shadow);
}
.lead-copy { display: grid; gap: 12px; }
.advisors { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.advisors li { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); }
.advisors li > span:last-child { display: grid; line-height: 1.2; }
.advisors small { color: var(--muted); font-size: 12px; }
.lead-form { display: grid; gap: 14px; }
.field { display: grid; gap: 7px; }
.field > span { font: 700 13px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field input, .field select {
  width: 100%; min-height: 54px; padding: 14px 16px; border-radius: 14px;
  background: var(--bg); color: var(--text); border: 1.5px solid var(--line);
  font: 500 16px/1.2 var(--font-body); /* 16px evita el zoom en iPhone */
  transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff9327' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 20px; padding-right: 44px;
}
.field input::placeholder { color: var(--muted-2); }
.field input:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent); }
.field input.is-invalid { border-color: #ff6b6b; }
.form-error { color: #ff8a8a; font-weight: 600; font-size: 14px; }
.form-note { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.form-note .ic { color: var(--brand); width: 16px; height: 16px; }
.form-ok { display: flex; gap: 12px; padding: 16px; border-radius: 14px; background: color-mix(in srgb, var(--wa) 12%, transparent); border: 1px solid color-mix(in srgb, var(--wa) 50%, transparent); }
.form-ok > .ic { color: var(--wa); width: 26px; height: 26px; }
.form-ok p { color: var(--muted); font-size: 14px; margin-top: 2px; }
.form-ok a { color: var(--wa); font-weight: 700; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 48px 0 110px; color: var(--muted); }
.foot-grid { display: grid; gap: 28px; }
.foot-brand img { height: 84px; width: auto; margin-bottom: 14px; }
.foot-brand p { max-width: 36ch; }
.footer h3 { font-size: 20px; text-transform: uppercase; color: var(--text); margin-bottom: 12px; }
.foot-row { display: flex; gap: 12px; padding: 8px 0; text-decoration: none; color: var(--text); font-weight: 600; }
.foot-row .ic { color: var(--brand); margin-top: 2px; }
.foot-row > span { display: grid; }
.foot-row small { color: var(--muted); font-weight: 400; }
a.foot-row:hover { color: var(--brand); }
.foot-bottom { display: grid; gap: 6px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }

/* ---------- WhatsApp flotante ---------- */
.fab { position: fixed; right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 60; display: grid; justify-items: end; gap: 10px; }
.fab-row { display: flex; align-items: center; gap: 8px; }
.fab-more {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--line); color: var(--muted);
  box-shadow: 0 8px 20px rgba(0,0,0,.35); backdrop-filter: blur(8px);
}
.fab-more .ic { width: 18px; height: 18px; }
.fab-main {
  display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 8px; border-radius: 999px; text-decoration: none;
  background: var(--wa); color: var(--wa-ink); box-shadow: 0 12px 34px -6px rgba(37,211,102,.6), 0 4px 14px rgba(0,0,0,.35);
  transition: transform .2s; animation: fabIn .6s .8s both;
}
.fab-main:hover { transform: translateY(-2px); }
.fab-main:active { transform: scale(.96); }
@keyframes fabIn { from { opacity: 0; transform: translateY(20px) scale(.9); } to { opacity: 1; transform: none; } }
.fab-avatars { position: relative; width: 38px; height: 38px; }
.fab-avatars .avatar { position: absolute; inset: 0; width: 38px; height: 38px; font-size: 14px; opacity: 0; transform: scale(.6) rotate(-20deg); transition: opacity .45s, transform .45s; border: 2px solid #fff; }
.fab-avatars .avatar.is-on { opacity: 1; transform: none; }
.fab-text { display: grid; line-height: 1.1; padding-right: 2px; }
.fab-text small { display: flex; align-items: center; gap: 5px; font: 700 10px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.fab-text .live-dot { background: #0b6b31; width: 7px; height: 7px; }
.fab-text b { color: var(--wa-ink); font-size: 16px; transition: opacity .3s; }
.fab-text b.is-fading { opacity: 0; }
.fab-icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #128c4a; }
.fab-icon .ic { width: 26px; height: 26px; }
.fab-pop {
  width: min(300px, calc(100vw - 28px)); padding: 12px; border-radius: 20px; display: grid; gap: 8px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); animation: slideIn .25s ease both;
}
.fab-pop-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 4px; }
.fab-x { width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; }
.fab-x .ic { width: 16px; height: 16px; }
.fab-opt { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; text-decoration: none; background: var(--bg-2); border: 1px solid var(--line); transition: border-color .2s; }
.fab-opt:hover { border-color: var(--wa); }
.fab-opt > span:nth-child(2) { display: grid; flex: 1; line-height: 1.25; }
.fab-opt small { color: var(--muted); font-size: 12px; }
.fab-opt > .ic { color: var(--wa); width: 22px; height: 22px; }

/* ---------- Modales ---------- */
.modal {
  width: min(880px, calc(100vw - 24px)); max-height: calc(100svh - 24px); padding: 18px; border-radius: 24px;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.modal::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(6px); }
.modal[open] { animation: slideIn .25s ease both; display: grid; gap: 14px; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.modal-head h3 { font-size: 26px; font-weight: 800; text-transform: uppercase; margin-top: 6px; }
.modal-body { background: #fff; border-radius: 16px; padding: 10px; display: grid; place-items: center; overflow: auto; }
.modal-body img { max-height: 60svh; width: auto; object-fit: contain; }
.modal-foot { display: grid; gap: 12px; }
.modal-foot p { color: var(--muted); font-size: 13px; }
body.modal-open { overflow: hidden; }

@media (max-width: 559px) {
  .fab { right: 10px; }
  .fab-main { gap: 8px; padding: 5px 5px 5px 6px; }
  .fab-avatars, .fab-avatars .avatar { width: 32px; height: 32px; font-size: 13px; }
  .fab-text b { font-size: 15px; }
  .fab-icon { width: 38px; height: 38px; }
  .fab-icon .ic { width: 22px; height: 22px; }
  .fab-more { width: 36px; height: 36px; }
  .h2 { overflow-wrap: break-word; hyphens: auto; }
}

/* =========================================================
   >= 560px
   ========================================================= */
@media (min-width: 560px) {
  :root { --gutter: 24px; }
  .show-xs { display: none; } .hide-xs { display: inline; }
  .hero-actions { grid-template-columns: auto auto; justify-content: start; }
  .hero-actions .btn-ghost { display: inline-flex; }
  .cards-scroll { grid-auto-columns: 62%; }
  .includes ul { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .inline-cta, .banner { grid-template-columns: 1fr auto; align-items: center; }
  .modal-foot { grid-template-columns: 1fr auto; align-items: center; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-bottom { grid-template-columns: 1fr auto; }
  .lead-box { padding: 36px; }
}

/* =========================================================
   >= 900px (tablet horizontal / desktop)
   ========================================================= */
@media (min-width: 900px) {
  :root { --header-h: 76px; }
  .topbar { display: block; }
  .brand-logo { height: 60px; }
  .nav-desk { display: flex; gap: 26px; font-weight: 600; font-size: 15px; }
  .nav-desk a { text-decoration: none; color: var(--muted); padding: 6px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
  .nav-desk a:hover { color: var(--text); border-color: var(--brand); }
  .menu-btn { display: none; }
  .drawer { display: none !important; }

  .hero { padding: 0; min-height: min(86svh, 820px); display: flex; align-items: center; }
  .hero-media, .hero-shade { height: 100%; inset: 0; }
  .hero-shade {
    background:
      linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 82%, transparent) 34%, color-mix(in srgb, var(--bg) 20%, transparent) 64%, transparent 100%),
      linear-gradient(0deg, var(--bg) 0%, transparent 28%);
  }
  .hero-grid { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; padding-top: 64px; padding-bottom: 64px; }
  .hero-sub { font-size: 19px; }
  .model-card { padding: 18px; }

  .ticker { padding: 28px 0; }
  .ticker-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .section { padding: 96px 0; }
  .sec-head { margin-bottom: 40px; }
  .sec-head-split { grid-template-columns: 1fr auto; align-items: end; }
  .cards-scroll { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; margin: 0; padding: 0; gap: 22px; }
  .scroll-hint { display: none; }
  .includes ul { grid-template-columns: repeat(4, 1fr); }
  .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .fcard { flex-direction: column; padding: 22px; }
  .sys-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .sys { padding: 32px; }
  .story { grid-template-columns: 1.15fr .85fr; gap: 56px; }
  .visit { min-height: 460px; }
  .faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
  .lead-box { grid-template-columns: 1fr 1fr; padding: 52px; gap: 48px; align-items: center; }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer { padding-bottom: 40px; }
  .fab { right: 24px; bottom: 24px; }
}

@media (min-width: 1200px) {
  .reviews { grid-template-columns: repeat(3, 1fr); }
}


/* =========================================================
   v2 · Precio anticipo, video proceso, sliders
   ========================================================= */
.hero-price { display: grid; gap: 4px; }
.hp-label { color: var(--muted); font-weight: 600; font-size: 15px; letter-spacing: .02em; }
.hp-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.hp-row strong { font: 800 clamp(40px, 11vw, 60px)/1 var(--font-head); color: #fff; letter-spacing: -.01em; }
.hp-row em, .pb-row em {
  font: 800 13px/1 var(--font-body); font-style: normal; letter-spacing: .14em; text-transform: uppercase;
  background: var(--brand); color: var(--brand-ink); padding: 7px 10px; border-radius: 8px;
}
.price-badge > span { gap: 2px; }
.price-badge .pb-row { display: flex; align-items: center; gap: 8px; }
.pb-row em { font-size: 11px; padding: 5px 8px; }

.sys h3 { font-size: clamp(26px, 6.6vw, 32px); }

/* YouTube liviano: solo carga la miniatura, el video recién al tocar play */
.yt {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0;
  border-radius: var(--radius); overflow: hidden; background: #000; cursor: pointer;
}
.yt img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .3s; opacity: .92; }
.yt:hover img { transform: scale(1.04); opacity: 1; }
.yt-play { position: absolute; inset: 0; display: grid; place-items: center; }
.yt-play svg { width: 68px; height: 48px; filter: drop-shadow(0 6px 16px rgba(0,0,0,.45)); transition: transform .2s; }
.yt:hover .yt-play svg { transform: scale(1.1); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt.is-playing { cursor: default; }
.yt-feature { border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow); }
.yt-feature .yt-play svg { width: 84px; height: 60px; }
.yt-over {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
  padding: 14px; text-align: left; pointer-events: none;
  background: linear-gradient(0deg, rgba(0,0,0,.85), rgba(0,0,0,0) 45%, rgba(0,0,0,0) 75%, rgba(0,0,0,.35));
}
.yt-title { font: 800 clamp(22px, 6vw, 30px)/1.05 var(--font-head); text-transform: uppercase; color: #fff; max-width: 80%; }
.story-video { display: grid; gap: 12px; }
@media (max-width: 899px) {
  .yt-feature { aspect-ratio: 4 / 3; }
  .yt-feature .yt-play svg { width: 72px; height: 51px; }
  .yt-title { font-size: 21px; max-width: 100%; }
}

/* Slider genérico (una sola fila, PC y celular) */
.slider { position: relative; }
.slider-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 14px; align-items: start;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
  scrollbar-width: none; padding: 4px 2px 6px;
}
.slider-track::-webkit-scrollbar { display: none; }
.slider-track > * { scroll-snap-align: start; }
.slider-btn {
  position: absolute; top: 50%; z-index: 2; width: 42px; height: 42px; margin-top: -21px; border-radius: 50%;
  display: grid; place-items: center; background: color-mix(in srgb, var(--surface-2) 92%, transparent); color: var(--text);
  border: 1px solid var(--line); box-shadow: 0 8px 20px rgba(0,0,0,.4); backdrop-filter: blur(6px); transition: background .2s, opacity .2s;
}
.slider-btn:hover { background: var(--brand); color: var(--brand-ink); }
.slider-btn.prev { left: -6px; } .slider-btn.next { right: -6px; }
.slider-btn[disabled] { opacity: 0; pointer-events: none; }

/* Reseñas estilo Google */
.review { gap: 10px; padding: 18px; }
.rv-head { display: flex; align-items: center; gap: 12px; }
.rv-who { display: grid; flex: 1; min-width: 0; line-height: 1.25; }
.rv-who b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-who small { color: var(--muted); font-size: 13px; }
.g-logo { width: 22px; height: 22px; flex: none; }
.rv-stars { display: flex; align-items: center; gap: 6px; }
.rv-ok { width: 18px; height: 18px; }
.rv-text { margin: 0; color: var(--text); font-size: 15px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.review.is-open .rv-text { -webkit-line-clamp: unset; display: block; }
.rv-more { justify-self: start; align-self: flex-start; background: none; border: 0; padding: 0; color: var(--brand); font-weight: 700; font-size: 14px; }

/* Videos testimonio */
.videos-head { margin: 44px 0 16px; display: grid; gap: 4px; }
.videos-head h3 { font-size: clamp(26px, 6.5vw, 34px); font-weight: 800; text-transform: uppercase; }
.videos-head p { color: var(--muted); }
.vcard { display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.vcard .yt { border-radius: 0; }
.vcard-body { padding: 12px 14px 14px; display: grid; gap: 4px; }
.vcard-body b { font-size: 15.5px; line-height: 1.3; }
.vcard-body small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.vcard-body small .ic { width: 18px; height: 13px; }

@media (min-width: 640px) {
  .slider-track { grid-auto-columns: calc((100% - 14px) / 2); }
}
@media (min-width: 900px) {
  .hp-row strong { font-size: 64px; }
  .story { grid-template-columns: 1fr 1fr; }
  .slider-track { grid-auto-columns: calc((100% - 32px) / 3); gap: 16px; }
  .slider-btn.prev { left: -21px; } .slider-btn.next { right: -21px; }
  .yt-over { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* =========================================================
   v3 · Carrusel del hero estilo 1.0 (flechas arriba + deslizamiento lateral)
   ========================================================= */
.tab { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.tab small { font: 700 11px/1 var(--font-body); opacity: .6; }
.tab.is-active small { opacity: .85; }
.mc-nav { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 0 2px; }
.mc-nav .round { width: 40px; height: 40px; flex: none; }
.mc-nav .round:hover { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.mc-count { font: 700 14px/1 var(--font-body); color: var(--muted); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.mc-count b { color: var(--text); }
.mc-progress { flex: 1; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.mc-progress i { display: block; height: 100%; width: 0; background: var(--brand); border-radius: 4px; }
.mc-progress i.is-running { animation: mcFill var(--mc-delay, 6s) linear forwards; }
@keyframes mcFill { from { width: 0; } to { width: 100%; } }
.slides { overflow: hidden; padding: 14px 0 12px; margin-bottom: -8px; }
.slides-track { display: flex; transition: transform .65s cubic-bezier(.22, .8, .2, 1); will-change: transform; }
.slide { flex: 0 0 100%; min-width: 0; padding: 2px 4px; animation: none; transition: opacity .5s; }
.slide[aria-hidden="true"] { opacity: .25; }
.carousel-ctrl, .dots { display: none; }
@media (prefers-reduced-motion: reduce) { .slides-track { transition: none; } }
@media (max-width: 419px) { .tab small { display: none; } .tab { font-size: 13.5px; } }
.slide { display: grid; grid-template-columns: minmax(0, 1fr); }
.slide > *, .slide-head > div, .feats li { min-width: 0; }
.feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
