/* ============================================================
   ZAPVIZ — Landing de plataforma
   Dirección visual "Apple": limpia, minimalista, blanco / negro / grises
   ============================================================ */

:root {
  /* Paleta monocromática */
  --white:      #ffffff;
  --panel:      #f5f5f7;   /* gris claro de fondo */
  --panel-2:    #ececee;
  --ink:        #1d1d1f;   /* casi negro — texto principal */
  --ink-2:      #6e6e73;   /* gris secundario */
  --line:       #d2d2d7;   /* bordes */
  --black:      #000000;   /* secciones oscuras */
  --on-dark:    #f5f5f7;   /* texto sobre negro */
  --on-dark-2:  #a1a1a6;   /* gris sobre negro */

  --bad:        #d70015;   /* solo para validación de errores del form */

  --maxw: 1120px;
  --r: 20px;               /* radio de cards/frames */
  --pill: 980px;

  /* Avenir como tipografía principal; Nunito Sans (webfont) es el
     sustituto más parecido para quien no la tenga instalada */
  --font: "Avenir Next", "Avenir", "Nunito Sans", -apple-system,
          BlinkMacSystemFont, system-ui, "Helvetica Neue", Arial, sans-serif;

  --shadow-sm: 0 2px 10px rgba(0,0,0,.05);
  --shadow-md: 0 8px 30px rgba(0,0,0,.08);
  --shadow-lg: 0 30px 80px rgba(0,0,0,.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-weight: 600; line-height: 1.06; letter-spacing: -0.02em; color: var(--ink); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- Eyebrow ---------- */
.eyebrow { font-size: 15px; font-weight: 600; color: var(--ink-2); margin-bottom: 14px; }
.eyebrow.center { text-align: center; }

/* ---------- Botones (pill, estilo Apple) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 16px; font-weight: 500; padding: 12px 24px; border-radius: var(--pill);
  border: 1px solid transparent; cursor: pointer;
  transition: background .22s ease, color .22s ease, border-color .22s ease, transform .22s ease;
}
.btn-dark  { background: var(--ink); color: #fff; }
.btn-dark:hover  { background: #000; transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--panel); transform: translateY(-1px); }
.btn-lg { padding: 15px 34px; font-size: 17px; }

.btn-link { font-size: 16px; font-weight: 500; color: var(--ink); display: inline-flex; align-items: center; gap: 4px; }
.btn-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--ink); color: #fff;
  font-weight: 700; font-size: 16px; display: grid; place-items: center;
}
.brand-word { font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: 14px; color: var(--ink); opacity: .8; transition: opacity .18s ease; }
.nav-links a:hover { opacity: 1; }
.nav-cta { padding: 8px 18px; font-size: 14px; }

/* ---------- HERO ---------- */
.hero { padding: 128px 0 0; text-align: center; }
.hero-inner { max-width: 900px; margin: 0 auto; }
.hero-title { font-size: clamp(40px, 7vw, 80px); font-weight: 700; letter-spacing: -0.03em; margin-bottom: 22px; }
.hero-sub { font-size: clamp(18px, 2.2vw, 22px); color: var(--ink-2); max-width: 620px; margin: 0 auto 30px; font-weight: 400; }
.hero-sub strong { color: var(--ink); font-weight: 600; }
.hero-cta { display: flex; gap: 22px; justify-content: center; align-items: center; flex-wrap: wrap; margin-bottom: 60px; }

.hero-shot { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.hero-shot img { width: 100%; border-radius: var(--r); box-shadow: var(--shadow-lg); aspect-ratio: 16/9; object-fit: cover; }

.hero-stats {
  list-style: none; display: flex; justify-content: center; gap: 72px; flex-wrap: wrap;
  max-width: var(--maxw); margin: 56px auto 0; padding: 0 24px 20px;
}
.hero-stats li { display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-size: 44px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.stat-lbl { font-size: 14px; color: var(--ink-2); }

/* ---------- LOGOS ---------- */
.logos { padding: 60px 0; background: var(--white); }
.logos-label { text-align: center; font-size: 13px; color: var(--ink-2); margin-bottom: 26px; }
.logos-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 22px 56px; }
.logos-row span { font-size: clamp(17px, 2.4vw, 24px); font-weight: 600; color: var(--ink); opacity: .55; letter-spacing: -0.01em; transition: opacity .2s ease; }
.logos-row span:hover { opacity: 1; }

/* ---------- SECCIONES base ---------- */
.section { padding: 110px 0; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4.6vw, 52px); font-weight: 600; letter-spacing: -0.02em; margin-bottom: 16px; }
.lead { font-size: 19px; color: var(--ink-2); line-height: 1.5; }
.lead.center { text-align: center; }

/* Secciones oscuras */
.dark { background: var(--black); color: var(--on-dark); }
.dark h1, .dark h2, .dark h3 { color: var(--on-dark); }
.dark .eyebrow { color: var(--on-dark-2); }
.dark .lead { color: var(--on-dark-2); }

/* ---------- PRODUCTO · DEMO EN VIVO ---------- */
.demo-frame {
  border-radius: var(--r); overflow: hidden; background: var(--white);
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  max-width: 1040px; margin: 0 auto;
}
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: var(--panel); border-bottom: 1px solid var(--line); }
.browser-bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.browser-bar i { margin-left: 12px; font-size: 13px; font-style: normal; color: var(--ink-2); }
.demo-open {
  margin-left: auto; font-size: 13px; font-weight: 500; color: var(--ink);
  padding: 5px 12px; border: 1px solid var(--line); border-radius: var(--pill);
  transition: background .18s ease, color .18s ease;
}
.demo-open:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.demo-stage { position: relative; width: 100%; aspect-ratio: 16/10; background: var(--panel); }
.demo-iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

.demo-overlay {
  position: absolute; inset: 0; z-index: 2; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: rgba(255,255,255,.55); backdrop-filter: blur(2px);
  border: 0; color: var(--ink); transition: opacity .3s ease;
}
.demo-overlay.hidden { opacity: 0; pointer-events: none; }
.demo-play {
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: grid; place-items: center; font-size: 28px; padding-left: 4px;
  box-shadow: 0 10px 40px rgba(0,0,0,.25);
}
.demo-hint { font-size: 14px; font-weight: 500; color: var(--ink); }

.demo-ticks { list-style: none; max-width: 1040px; margin: 30px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.demo-ticks li { position: relative; padding-left: 26px; font-size: 15px; color: var(--ink-2); }
.demo-ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--ink); font-weight: 600; }

/* ---------- FEATURES ---------- */
.features { background: var(--panel); }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.feat { background: var(--white); border-radius: var(--r); padding: 30px 28px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.feat:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feat-ico { font-size: 26px; color: var(--ink); margin-bottom: 16px; line-height: 1; }
.feat h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.01em; }
.feat p { font-size: 15px; color: var(--ink-2); }

/* ---------- DIFERENCIA (oscura) ---------- */
.diff-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.diff-media { position: relative; }
.diff-render { border-radius: var(--r); width: 100%; aspect-ratio: 4/3; object-fit: cover; box-shadow: var(--shadow-lg); }
.diff-plan { position: absolute; width: 42%; right: -14px; bottom: -22px; border-radius: 14px; background: #fff; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.diff-copy h2 { font-size: clamp(30px, 4.2vw, 50px); font-weight: 600; margin-bottom: 20px; }

.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 34px; }
.vs-col { border-radius: 16px; padding: 22px; }
.vs-bad  { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); }
.vs-good { background: #fff; }
.vs-tag { font-size: 13px; font-weight: 600; display: block; margin-bottom: 14px; }
.vs-bad .vs-tag  { color: var(--on-dark-2); }
.vs-good .vs-tag { color: var(--ink); }
.vs-col ul { list-style: none; display: grid; gap: 10px; }
.vs-col li { font-size: 15px; padding-left: 24px; position: relative; }
.vs-bad li  { color: var(--on-dark-2); }
.vs-good li { color: var(--ink); }
.vs-bad li::before  { content: "✕"; position: absolute; left: 0; color: var(--on-dark-2); }
.vs-good li::before { content: "✓"; position: absolute; left: 0; color: var(--ink); font-weight: 600; }

/* ---------- PANEL ---------- */
.panel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.pcard { background: var(--panel); border-radius: var(--r); padding: 30px 26px; transition: transform .2s ease; }
.pcard:hover { transform: translateY(-3px); }
.pcard h3 { font-size: 19px; font-weight: 600; margin-bottom: 10px; letter-spacing: -0.01em; }
.pcard p { font-size: 15px; color: var(--ink-2); }

/* ---------- BENEFICIOS ---------- */
.benefits { background: var(--panel); }
.ben-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.ben-num { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.ben h3 { font-size: 23px; font-weight: 600; margin: 12px 0 12px; letter-spacing: -0.01em; }
.ben p { color: var(--ink-2); font-size: 16px; }

/* ---------- TESTIMONIOS ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; }
.quote { background: var(--panel); border-radius: var(--r); padding: 34px 30px; }
.quote p { font-size: 20px; font-weight: 500; line-height: 1.4; letter-spacing: -0.01em; margin-bottom: 24px; color: var(--ink); }
.quote footer { display: flex; flex-direction: column; gap: 2px; }
.quote footer strong { font-size: 15px; font-weight: 600; }
.quote footer span { font-size: 14px; color: var(--ink-2); }

/* ---------- CTA (oscura) ---------- */
.cta-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.cta-inner h2 { font-size: clamp(32px, 4.8vw, 56px); font-weight: 600; margin-bottom: 16px; }
.cta-form { margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; text-align: left; }
.field-full { grid-column: 1 / -1; }
.cta-form input, .cta-form textarea {
  width: 100%; padding: 15px 18px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px; color: #fff; font-family: var(--font); font-size: 16px; transition: border-color .18s ease, background .18s ease;
}
.cta-form input::placeholder, .cta-form textarea::placeholder { color: var(--on-dark-2); }
.cta-form input:focus, .cta-form textarea:focus { outline: none; border-color: #fff; background: rgba(255,255,255,.1); }
.cta-form textarea { min-height: 120px; resize: vertical; }
.cta-form .btn { grid-column: 1 / -1; justify-self: center; }
.form-msg { grid-column: 1 / -1; text-align: center; font-size: 15px; color: var(--on-dark); min-height: 20px; }

/* ---------- FOOTER ---------- */
.footer { padding: 44px 0; background: var(--panel); border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand strong { font-size: 17px; font-weight: 600; }
.footer-brand p { font-size: 13px; color: var(--ink-2); }
.footer-meta { text-align: right; }
.footer-meta p { font-size: 13px; color: var(--ink-2); }
.footer-credit { margin-top: 4px; font-weight: 500; color: var(--ink) !important; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .hero { padding: 104px 0 0; }
  .hero-cta { gap: 16px; }
  .hero-stats { gap: 40px; }
  .diff-inner { grid-template-columns: 1fr; gap: 48px; }
  .diff-plan { position: static; width: 55%; margin-top: 18px; }
  .demo-stage { aspect-ratio: 3/4; }
  .demo-ticks { grid-template-columns: 1fr; gap: 10px; max-width: 460px; }
  .cta-form { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-meta { text-align: center; }
}

/* ============================================================
   HERO CON VIDEO DE FONDO (intro de Domus)
   El hero pasa a modo cinematográfico: video full-bleed + scrim
   oscuro + tipografía en blanco. Sacar la clase .hero--video del
   <section> para volver al hero claro original.
   ============================================================ */
.hero--video {
  position: relative; overflow: hidden;
  min-height: 92vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 0 48px;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg video { width: 100%; height: 100%; object-fit: cover; }
/* Scrim: más oscuro arriba (nav) y abajo (stats), respiro al centro */
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(10, 12, 16, .58) 0%,
    rgba(10, 12, 16, .30) 42%,
    rgba(10, 12, 16, .66) 100%);
}
.hero--video .hero-inner,
.hero--video .hero-stats { position: relative; z-index: 1; }
.hero--video .eyebrow { color: rgba(255,255,255,.72); }
.hero--video .hero-title { color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero--video .hero-sub { color: rgba(255,255,255,.85); }
.hero--video .hero-sub strong { color: #fff; }
.hero--video .btn-dark { background: #fff; color: var(--ink); }
.hero--video .btn-dark:hover { background: #eee; }
.hero--video .btn-link { color: #fff; }
/* La captura enmarcada sobra: el video ya muestra el proyecto */
.hero--video .hero-shot { display: none; }
.hero--video .hero-stats { margin-top: 48px; }
.hero--video .stat-num { color: #fff; }
.hero--video .stat-lbl { color: rgba(255,255,255,.75); }

/* Monograma ZV dentro del chip del brand (nav y footer) */
.brand-mark svg { width: 20px; height: auto; display: block; }

/* Logo ZV real (marca negra, fondo transparente) en nav y footer + links a zapviz.com */
.brand-logo { height: 26px; width: auto; display: block; }
.footer .brand-logo { height: 30px; }
.text-link { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.text-link:hover { opacity: .75; }
.footer-link { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer-link:hover { opacity: .8; }

/* Video de uso real de la plataforma (sección "En acción") */
.platvid { padding-top: 0; }
.platvid-video { display: block; width: 100%; height: auto; background: #000; }

/* ---------- PLANES / MODALIDADES ---------- */
.packs { background: var(--panel); }
.packs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.pack {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  padding: 34px 28px; display: flex; flex-direction: column; gap: 14px;
  box-shadow: var(--shadow-sm);
}
.pack-featured { border-color: var(--ink); box-shadow: var(--shadow-md); position: relative; }
.pack-tag {
  align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: var(--pill); padding: 4px 12px;
}
.pack-featured .pack-tag { background: var(--ink); color: #fff; border-color: var(--ink); }
.pack h3 { font-size: 24px; }
.pack-desc { font-size: 15px; color: var(--ink-2); }
.pack ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 4px 0 10px; }
.pack ul li { font-size: 14.5px; padding-left: 24px; position: relative; }
.pack ul li::before { content: "✓"; position: absolute; left: 0; top: 0; font-weight: 700; color: var(--ink); }
.pack .btn { margin-top: auto; justify-content: center; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); transform: translateY(-1px); }
@media (max-width: 900px) { .packs-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ (acordeón con <details>) ---------- */
.faq-wrap { max-width: 860px; }
.faq-item {
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  margin-bottom: 12px; overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 18px 22px; font-size: 16px; font-weight: 600; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-ico { flex: none; width: 12px; height: 12px; position: relative; }
.faq-ico::before, .faq-ico::after { content: ""; position: absolute; background: var(--ink-2); transition: transform .25s ease; }
.faq-ico::before { left: 0; top: 5px; width: 12px; height: 2px; }
.faq-ico::after { left: 5px; top: 0; width: 2px; height: 12px; }
.faq-item[open] .faq-ico::after { transform: rotate(90deg); }
.faq-item p { padding: 0 22px 20px; font-size: 15px; color: var(--ink-2); line-height: 1.6; }

/* ============================================================
   CONTROLES DEL NAV: idioma (ES/EN/FR) + tema claro/oscuro
   ============================================================ */
.nav-tools { display: flex; align-items: center; gap: 12px; }
.lang-sw { display: flex; border: 1px solid var(--line); border-radius: var(--pill); overflow: hidden; }
.lang-sw button {
  border: 0; background: transparent; color: var(--ink-2); cursor: pointer;
  font-family: var(--font); font-size: 12px; font-weight: 700; padding: 6px 10px;
  transition: background .15s ease, color .15s ease;
}
.lang-sw button.on { background: var(--ink); color: var(--white); }
.lang-sw button:not(.on):hover { color: var(--ink); }
.theme-btn {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line);
  background: transparent; color: var(--ink); cursor: pointer;
  display: grid; place-items: center; transition: background .15s ease;
}
.theme-btn:hover { background: var(--panel); }
.theme-btn svg { width: 16px; height: 16px; }
.theme-btn .ico-sun { display: none; }
[data-theme="dark"] .theme-btn .ico-sun { display: block; }
[data-theme="dark"] .theme-btn .ico-moon { display: none; }
@media (max-width: 700px) { .nav-cta { display: none; } }

/* ============================================================
   TEMA OSCURO — mismas variables, paleta invertida
   ============================================================ */
[data-theme="dark"] {
  --white:   #121214;   /* fondo de página / cards */
  --panel:   #0a0a0c;   /* fondo de secciones alternas */
  --panel-2: #1c1c20;
  --ink:     #f5f5f7;   /* texto principal */
  --ink-2:   #a1a1a6;
  --line:    #333338;
  --shadow-sm: 0 2px 10px rgba(0,0,0,.4);
  --shadow-md: 0 8px 30px rgba(0,0,0,.5);
  --shadow-lg: 0 30px 80px rgba(0,0,0,.6);
}
/* Los pocos colores hardcodeados que no salen de variables */
[data-theme="dark"] .nav { background: rgba(14,14,16,.72); border-bottom-color: rgba(255,255,255,.08); }
[data-theme="dark"] .brand-logo { filter: invert(1); }
[data-theme="dark"] .btn-dark { background: var(--ink); color: #121214; }
[data-theme="dark"] .btn-dark:hover { background: #ffffff; }
[data-theme="dark"] .hero--video .btn-dark { background: #fff; color: #121214; }
[data-theme="dark"] .hero--video .btn-dark:hover { background: #e8e8ea; }
[data-theme="dark"] .demo-overlay { background: rgba(10,10,12,.55); color: var(--ink); }
[data-theme="dark"] .demo-play { background: var(--ink); color: #121214; }
[data-theme="dark"] .pack-featured { border-color: var(--ink); }
[data-theme="dark"] .pack-featured .pack-tag { background: var(--ink); color: #121214; }
[data-theme="dark"] .btn-light { background: #f5f5f7; color: #121214; }
[data-theme="dark"] .btn-light:hover { background: #ffffff; }

/* El brand nunca se parte en dos líneas; el nav respira con los controles nuevos */
.brand-word { white-space: nowrap; }
.nav-inner { gap: 14px; }
.nav-cta { white-space: nowrap; }

/* Selector de idioma como desplegable (reemplaza a los 3 botones) */
.lang-sel {
  appearance: none; -webkit-appearance: none;
  font-family: var(--font); font-size: 12.5px; font-weight: 700; color: var(--ink);
  background: transparent; border: 1px solid var(--line); border-radius: var(--pill);
  padding: 6px 26px 6px 12px; cursor: pointer; outline: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236e6e73' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
  transition: border-color .15s ease;
}
.lang-sel:hover, .lang-sel:focus { border-color: var(--ink); }
.lang-sel option { color: #1d1d1f; background: #fff; }

/* Switch de tema estilo builder: sol · perilla deslizante · luna */
.theme-toggle {
  position: relative; display: inline-flex; align-items: center; justify-content: space-between;
  width: 58px; height: 28px; padding: 0 4px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line); cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.theme-toggle:hover { border-color: var(--ink-2); }
.theme-toggle .tt-ico { display: flex; width: 16px; height: 16px; color: var(--ink-2); z-index: 1; }
.theme-toggle .tt-ico svg { width: 16px; height: 16px; }
.tt-knob {
  position: absolute; top: 2px; left: 2px; width: 22px; height: 22px;
  border-radius: 50%; background: var(--ink);
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
  transition: transform .25s ease;
}
[data-theme="dark"] .tt-knob { transform: translateX(30px); }
/* El ícono activo queda sobre la perilla, en color invertido */
html:not([data-theme="dark"]) .theme-toggle .tt-ico.sun { color: #ffffff; }
[data-theme="dark"] .theme-toggle .tt-ico.moon { color: #121214; }

/* Celular: solo el logo ZV (sin "Zapviz App") y controles compactos */
@media (max-width: 560px) {
  .brand-word { display: none; }
  .nav-inner { gap: 8px; }
  .nav-tools { gap: 8px; }
  .lang-sel { font-size: 11.5px; padding: 5px 20px 5px 9px; background-position: right 7px center; }
  .theme-toggle { width: 52px; height: 26px; }
  .tt-knob { width: 20px; height: 20px; }
  [data-theme="dark"] .tt-knob { transform: translateX(26px); }
}

/* ============================================================
   LA PLATAFORMA — bloques narrativos (reemplazan la grilla de 12 features)
   ============================================================ */
.fblocks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.fblock {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  padding: 32px 30px; box-shadow: var(--shadow-sm);
}
.fb-num {
  display: block; font-size: 13px; font-weight: 700; letter-spacing: .1em;
  color: var(--ink-2); margin-bottom: 14px;
}
.fblock h3 { font-size: 22px; margin-bottom: 10px; }
.fblock p { font-size: 15.5px; color: var(--ink-2); line-height: 1.6; }
@media (max-width: 820px) { .fblocks { grid-template-columns: 1fr; } }

/* ============================================================
   VERTICALES — pantallazo compacto del rango de proyectos
   ============================================================ */
.verts { background: var(--panel); }
.verts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.vert {
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 22px 24px;
}
.vert h3 { font-size: 17px; margin-bottom: 7px; }
.vert p { font-size: 14px; color: var(--ink-2); line-height: 1.55; }
@media (max-width: 900px) { .verts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .verts-grid { grid-template-columns: 1fr; } }

/* Modalidades: sin tarjeta destacada ni etiqueta de tier (ya no es pricing) */
.packs-grid .pack { box-shadow: var(--shadow-sm); }

/* ============================================================
   ═══ DIRECCIÓN VISUAL "BROKERAGE" (2026-08-13) ═══
   Referencia: douglaselliman.com/new-development
   Concepto: sans geométrica en peso liviano y versalitas con tracking
   amplio + serif de contraste en cursiva para los acentos, azul noche
   en lugar de negro, y CERO radios de esquina. La imagen manda: full
   bleed, sin marco redondeado. Reemplaza al look "Apple" anterior
   (backup en scratchpad/styles-backup-apple.css).
   Este bloque va al final a propósito: redefine los tokens de :root y
   del tema oscuro, en ese orden, para ganar por cascada.
   ============================================================ */
:root {
  --white:      #ffffff;
  --panel:      #edeef1;   /* gris frío de secciones alternas */
  --panel-2:    #e2e4e9;
  --ink:        #10132b;   /* azul noche — texto y superficies oscuras */
  --ink-2:      #5c6178;
  --line:       #d3d6de;
  --black:      #10132b;   /* las secciones "dark" dejan de ser negro puro */
  --on-dark:    #f2f3f6;
  --on-dark-2:  #a7acc0;

  --r: 0px;                /* sin esquinas redondeadas en ningún lado */
  --pill: 0px;             /* los botones dejan de ser pastillas */

  /* Avenir sigue primero (decisión de marca); Jost es la geométrica de
     respaldo — mucho más cerca de Avenir/Euclid que la Nunito anterior */
  --font: "Avenir Next", "Avenir", "Jost", -apple-system,
          BlinkMacSystemFont, system-ui, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;

  --shadow-sm: none;
  --shadow-md: 0 10px 40px rgba(16,19,43,.06);
  --shadow-lg: 0 30px 90px rgba(16,19,43,.14);
}
:root[data-theme="dark"] {
  --white:      #131730;
  --panel:      #0b0e1e;
  --panel-2:    #1b2040;
  --ink:        #f2f3f6;
  --ink-2:      #a7acc0;
  --line:       #2c3252;
  --black:      #0b0e1e;
  --shadow-sm: none;
  --shadow-md: 0 10px 40px rgba(0,0,0,.5);
  --shadow-lg: 0 30px 90px rgba(0,0,0,.6);
}

/* ---------- Tipografía: display liviano, versalitas con aire ---------- */
h1, h2, h3 { font-weight: 300; letter-spacing: -0.015em; }
.hero-title { font-weight: 300; font-size: clamp(38px, 5.6vw, 68px); letter-spacing: -0.02em; line-height: 1.08; }
.section-head h2 { font-weight: 300; font-size: clamp(28px, 4vw, 46px); line-height: 1.12; }
.hero-sub { font-size: clamp(17px, 1.7vw, 19px); line-height: 1.65; }
.lead { font-size: 17.5px; line-height: 1.7; }

/* Acento en cursiva serif — el contrapunto cálido de la geométrica */
em, .accent {
  font-family: var(--font-display);
  font-style: italic; font-weight: 400;
  letter-spacing: 0; font-size: 1.12em;
}

/* Eyebrows: versalitas finas con tracking amplio (el gesto Elliman) */
.eyebrow {
  text-transform: uppercase; font-size: 11.5px; font-weight: 500;
  letter-spacing: .22em; color: var(--ink-2); margin-bottom: 20px;
}
.ben-num, .fb-num {
  font-size: 11.5px; font-weight: 500; letter-spacing: .22em; color: var(--ink-2);
}
.pack-tag, .vs-tag {
  text-transform: uppercase; letter-spacing: .18em; font-size: 10.5px; font-weight: 500;
}

/* ---------- Botones: rectángulos, versalitas, línea fina ---------- */
.btn {
  text-transform: uppercase; font-size: 12px; font-weight: 500;
  letter-spacing: .18em; padding: 16px 32px; border-radius: 0;
}
.btn-lg { padding: 18px 40px; font-size: 12.5px; }
.btn-dark { background: var(--ink); color: var(--white); border: 1px solid var(--ink); }
.btn-dark:hover { background: transparent; color: var(--ink); transform: none; }
.btn-light { background: var(--on-dark); color: var(--ink); border: 1px solid var(--on-dark); }
.btn-light:hover { background: transparent; color: var(--on-dark); transform: none; }
.btn-outline { border: 1px solid var(--line); }
.btn-outline:hover { border-color: var(--ink); background: transparent; transform: none; }
.btn-link {
  text-transform: uppercase; font-size: 12px; font-weight: 500; letter-spacing: .18em;
  border-bottom: 1px solid currentColor; padding-bottom: 3px;
}
.btn-link:hover { text-decoration: none; opacity: .65; }
.nav-cta { padding: 11px 22px; font-size: 11px; }

/* ---------- Nav ---------- */
.nav-inner { height: 72px; }
.brand-word { text-transform: uppercase; letter-spacing: .14em; font-size: 15px; font-weight: 500; }
.nav-links { gap: 34px; }
.nav-links a { text-transform: uppercase; font-size: 11.5px; letter-spacing: .14em; font-weight: 500; opacity: .72; }
.lang-sel { border-radius: 0; text-transform: uppercase; letter-spacing: .1em; font-weight: 500; }
.theme-toggle { border-radius: 0; }
.tt-knob { border-radius: 0; }

/* ---------- Superficies: sin curvas, con línea fina ---------- */
.hero-shot img, .demo-frame, .fblock, .pack, .vert, .faq-item, .kpi,
.ben, .pcard, .platvid-video, .diff-media img { border-radius: 0 !important; }
.section { padding: 130px 0; }
.section-head { margin-bottom: 68px; }
.logos { padding: 54px 0; border-bottom: 1px solid var(--line); }
.logos-label { text-transform: uppercase; letter-spacing: .22em; font-size: 10.5px; }
.logos-row span { font-weight: 400; letter-spacing: .06em; opacity: .62; }

/* Tarjetas: de "card con sombra" a "bloque con regla" */
.fblock, .vert, .pack { box-shadow: none; }
.faq-item { border-left: 0; border-right: 0; border-top: 0; margin-bottom: 0; }
.faq-item:first-of-type { border-top: 1px solid var(--line); }
.faq-item summary { padding: 22px 4px; font-weight: 400; font-size: 16.5px; }
.faq-item p { padding: 0 4px 24px; }
/* La barra superior en oscuro también entona con el azul noche */
:root[data-theme="dark"] .nav { background: rgba(19,23,48,.78); border-bottom-color: rgba(255,255,255,.10); }

/* ============================================================
   CORRECCIÓN (2026-08-13): el azul noche pasa a NEGRO neutro en
   ambos temas — la paleta queda blanco / grises fríos / negro.
   Y el nav se hace a prueba de colisiones: con versalitas y
   tracking amplio, marca y links no entraban y se superponían.
   ============================================================ */
:root {
  --panel:   #f1f1f2;
  --panel-2: #e6e6e8;
  --ink:     #111111;
  --ink-2:   #6b6b70;
  --line:    #d8d8dc;
  --black:   #000000;
  --on-dark: #f5f5f5;
  --on-dark-2: #a8a8ac;
  --shadow-md: 0 10px 40px rgba(0,0,0,.06);
  --shadow-lg: 0 30px 90px rgba(0,0,0,.14);
}
:root[data-theme="dark"] {
  --white:   #0f0f10;   /* fondo de página y tarjetas */
  --panel:   #000000;   /* secciones alternas: negro pleno */
  --panel-2: #1a1a1c;
  --ink:     #f5f5f5;
  --ink-2:   #a8a8ac;
  --line:    #2a2a2e;
  --black:   #000000;
}
:root[data-theme="dark"] .nav { background: rgba(15,15,16,.80); border-bottom-color: rgba(255,255,255,.10); }

/* Nav: que la marca y los links nunca se pisen */
.nav-inner { gap: 22px; }
.brand { flex: 0 0 auto; }
.brand-word { letter-spacing: .10em; font-size: 14px; }
.nav-links { flex: 0 1 auto; gap: 24px; min-width: 0; }
.nav-links a { letter-spacing: .10em; white-space: nowrap; }
.nav-tools { flex: 0 0 auto; }
/* Los links se esconden antes: con versalitas ocupan bastante más ancho */
@media (max-width: 1180px) { .nav-links { display: none; } }

/* ============================================================
   NAV (2026-08-13, fix 2): la barra tenía el ancho topado en 1120px
   como el resto del contenido, así que agrandar la ventana NO le daba
   más lugar y marca/links/controles se pisaban siempre. Ahora la barra
   usa su propio contenedor más ancho, los links no se encogen (si algo
   no entra, se ve como desborde y no como texto montado) y el selector
   de idioma muestra solo el código.
   ============================================================ */
.nav .nav-inner { max-width: 1340px; }
.nav-links { flex: 0 0 auto; min-width: auto; gap: 22px; }
.nav-links a { font-size: 11px; }
.lang-sel { padding: 6px 22px 6px 10px; background-position: right 7px center; }
