/* ============================================================
   SILICON PLANT — Tesla-mode stylesheet
   Pure CSS, no frameworks.
   ============================================================ */

:root {
  --ink:        #1b1b1b;
  --ink-2:      #393c41;
  --ink-3:      #5c5e62;
  --label:      #bcbec1;
  --border:     #e5e5ea;
  --accent:     #3882bd;
  --navy:       #28435a;
  --bg-soft:    #f4f4f4;
  --white:      #ffffff;

  --nav-h: 68px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- Shared type ---------- */
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 18px;
}
.eyebrow--light { color: rgba(255,255,255,0.85); }

.section__title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 26px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.4px;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), opacity .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--sm { height: 38px; padding: 0 20px; font-size: 13px; }

.btn--solid  { background: var(--ink); color: var(--white); }
.btn--solid:hover { background: #000; }
/* Botones "Cotizar" en glassmorphism (vidrio esmerilado) sobre fondos oscuros */
.btn--solid.btn--light {
  background: rgba(255,255,255,0.14);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn--solid.btn--light:hover { background: rgba(255,255,255,0.26); }

.btn--ghost {
  background: rgba(255,255,255,0.14);
  color: var(--white);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.35);
}
.btn--ghost:hover { background: rgba(255,255,255,0.24); }

.btn--white { background: var(--white); color: var(--ink); }
.btn--white:hover { background: rgba(255,255,255,0.86); }

.btn--outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn--outline:hover { border-color: var(--ink); }

/* ---------- Badges ---------- */
.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 100px;
  background: var(--bg-soft);
  color: var(--ink-2);
  margin-bottom: 18px;
}
.badge--star { background: var(--ink); color: var(--white); }
.badge--light { background: rgba(255,255,255,0.16); color: var(--white); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .35s var(--ease), box-shadow .35s var(--ease);
}
.nav__inner {
  height: var(--nav-h);
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo__mark rect { fill: var(--white); transition: fill .35s var(--ease); }
.logo__text {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--white);
  transition: color .35s var(--ease);
}

.nav__links { display: flex; gap: 34px; }
.nav__links a {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  transition: color .35s var(--ease), opacity .2s var(--ease);
}
.nav__links a:hover { opacity: .65; }

.nav__actions { display: flex; align-items: center; gap: 14px; }
.nav .btn--solid { background: rgba(255,255,255,0.16); color: var(--white); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.35); }
.nav .btn--solid:hover { background: rgba(255,255,255,0.28); }

/* CTA fijo del nav: vive en .nav__actions, así aparece igual en todas las páginas */
.nav__cta { border: 1px solid transparent; }
.nav__cta.is-current { pointer-events: none; }
.nav--solid .nav__cta, .nav.scrolled .nav__cta { background: var(--ink); color: var(--white); border-color: var(--ink); }
.nav--solid .nav__cta:hover, .nav.scrolled .nav__cta:hover { background: #000; }
.nav__mobile-cta { color: var(--accent) !important; }

/* Globito de contacto: reemplaza al link "Contacto" de la barra de links.
   Pedido de Tomás y Julieta — el menú queda para navegar y el contacto
   queda como acción, al lado del selector de idioma. */
.nav__contact {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 100px;
  color: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: color .35s var(--ease), border-color .35s var(--ease), background .25s var(--ease);
}
.nav__contact:hover { background: rgba(255,255,255,0.22); }
.nav--solid .nav__contact,
.nav.scrolled .nav__contact { color: var(--ink-2); border-color: var(--border); background: transparent; }
.nav--solid .nav__contact:hover,
.nav.scrolled .nav__contact:hover { background: var(--bg-soft); }
@media (max-width: 640px) { .nav__contact { display: none; } }

/* Scrolled state → white nav */
.nav.scrolled { background: rgba(255,255,255,0.85); backdrop-filter: blur(16px); box-shadow: 0 1px 0 var(--border); }
.nav.scrolled .logo__mark rect { fill: var(--ink); }
.nav.scrolled .logo__text { color: var(--ink); }
.nav.scrolled .nav__links a { color: var(--ink-2); }
.nav.scrolled .btn--solid { background: var(--ink); color: var(--white); border-color: var(--ink); }
.nav.scrolled .btn--solid:hover { background: #000; }
.nav.scrolled .nav__burger span { background: var(--ink); }

/* Burger */
.nav__burger { display: none; flex-direction: column; gap: 5px; width: 26px; padding: 6px 0; }
.nav__burger span { display: block; height: 2px; width: 100%; background: var(--white); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease), background .35s var(--ease); }
body.menu-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .nav__burger span:nth-child(2) { opacity: 0; }
body.menu-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav__mobile {
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px clamp(20px, 4vw, 48px) 32px;
  transform: translateY(-120%);
  transition: transform .4s var(--ease);
  box-shadow: 0 20px 40px rgba(0,0,0,.08);
}
.nav__mobile a { font-size: 18px; font-weight: 600; color: var(--ink); padding: 14px 0; border-bottom: 1px solid var(--border); }
body.menu-open .nav__mobile { transform: translateY(0); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; display: flex; background: var(--ink); }
.hero__media { position: absolute; inset: -12% 0; will-change: transform; }
.hero__video, .hero__fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Ocultar el botón de "play" nativo que iOS muestra cuando el autoplay se bloquea */
.hero__video::-webkit-media-controls-start-playback-button,
.hero__video::-webkit-media-controls-play-button,
.hero__video::-webkit-media-controls-panel,
.hero__video::-webkit-media-controls { display: none !important; -webkit-appearance: none; }
/* La imagen de respaldo va POR ENCIMA del video para tapar el botón "play"
   nativo de iOS mientras el video carga. Se desvanece cuando el video arranca. */
.hero__fallback { z-index: 1; opacity: 1; transition: opacity .5s ease; }
.hero.is-playing .hero__fallback { opacity: 0; }
.hero__overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to bottom, rgba(0,0,0,.28) 0%, rgba(0,0,0,0) 32%, rgba(0,0,0,0) 45%, rgba(0,0,0,.72) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  margin: auto auto 0;
  width: 100%;
  max-width: 1000px;
  padding: 0 24px clamp(64px, 11vh, 130px);
  text-align: center;
  color: var(--white);
}
.hero__title {
  font-size: clamp(38px, 7vw, 82px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin-bottom: 22px;
  text-shadow: 0 2px 30px rgba(0,0,0,.25);
}
.hero__subtitle {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 300;
  color: rgba(255,255,255,0.92);
  max-width: 560px;
  margin: 0 auto 34px;
}
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__actions .btn { min-width: 210px; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 3; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.6);
  border-radius: 14px; display: flex; justify-content: center; padding-top: 8px;
}
.hero__scroll span { width: 4px; height: 8px; border-radius: 2px; background: rgba(255,255,255,.8); animation: scrollDot 1.8s var(--ease) infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(-4px);} 40% { opacity: 1;} 80%,100% { opacity: 0; transform: translateY(10px);} }

/* ============================================================
   STATS
   ============================================================ */
/* ============================================================
   PLACEHOLDER — contenido que Silicon todavía no entregó.
   Deliberadamente llamativo: tiene que cantar de lejos que falta.
   Al llegar el contenido real se borra la clase .ph y su .ph__tag.
   ============================================================ */
.ph {
  position: relative;
  border: 2px dashed #d98b00;
  background: rgba(255, 176, 32, 0.09);
  border-radius: 8px;
}
.ph__tag {
  position: absolute; top: -9px; left: 8px;
  background: #d98b00; color: #fff;
  font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  padding: 2px 6px; border-radius: 3px; line-height: 1.4;
}

/* ============================================================
   MARCAS + TRUSTED BY  (reemplaza al viejo bloque de stats)
   ============================================================ */
.brands {
  --brand-gap: clamp(32px, 5vw, 72px);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: clamp(44px, 7vw, 80px) 0;
}
.brands__inner { max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); text-align: center; }
.brands .eyebrow { margin-bottom: 10px; }

.brands__marquee {
  overflow: hidden;
  /* aire arriba para que no se corte el .ph__tag del placeholder (top:-9px).
     Al entrar los logos reales se puede bajar a 0. */
  padding-top: 12px;
  margin-bottom: clamp(30px, 4vw, 46px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.brands__belt {
  display: flex; gap: var(--brand-gap); width: max-content;
  animation: brands-scroll 30s linear infinite;
}
.brands__track { display: flex; gap: var(--brand-gap); }
@keyframes brands-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - var(--brand-gap) / 2)); }
}
.brands__marquee:hover .brands__belt { animation-play-state: paused; }

.brand {
  display: flex; align-items: center; justify-content: center;
  height: 58px; min-width: 158px; padding: 0 18px;
}
.brand__name { font-size: 17px; font-weight: 700; letter-spacing: .4px; color: var(--ink-3); }

.brands__proof {
  display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap;
  gap: 10px; margin-bottom: clamp(30px, 4vw, 46px);
}
.brands__num { font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.brands__prooftext { font-size: 13px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--ink-3); }

.trusted { border-top: 1px solid var(--border); padding-top: clamp(26px, 3.5vw, 38px); }
.trusted__label {
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--label); margin-bottom: 20px;
}
.trusted__row { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(16px, 3vw, 36px); }
.trusted__item { width: 132px; height: 54px; }

@media (max-width: 520px) {
  .brand { min-width: 132px; height: 52px; }
  .trusted__item { width: 108px; height: 46px; }
}

/* ============================================================
   BLOQUES ALTERNADOS texto + imagen  (Ahorro · Arquitectura)
   Mismo patrón que los bloques que el cliente marcó como lo que
   más le gusta. --rev invierte el lado de la imagen.
   ============================================================ */
.split { background: var(--bg-soft); padding: clamp(64px, 9vw, 118px) 0; }
.split__inner {
  max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.split--rev .split__media { order: -1; }
.split__lead {
  font-size: clamp(15px, 1.75vw, 18px); font-weight: 300; color: var(--ink-2);
  margin: 18px 0 26px; max-width: 52ch;
}
.split__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.split__chips li {
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  padding: 9px 15px; border: 1px solid var(--border); border-radius: 100px;
  background: var(--white);
}
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }

@media (max-width: 900px) {
  .split__inner { grid-template-columns: 1fr; }
  .split__media, .split--rev .split__media { order: -1; }
  .split__media img { aspect-ratio: 16 / 10; }
}

/* ============================================================
   PREMIOS
   ============================================================ */
/* Fondo gris + hairline: Tomás pidió que la banda de premios no se lea
   igual que el resto de las secciones blancas del home. */
.awards { background: var(--bg-soft); border-top: 1px solid var(--border); padding: clamp(56px, 6.5vw, 86px) clamp(20px, 4vw, 48px); }
.awards__head, .awards__grid { max-width: 1240px; margin-left: auto; margin-right: auto; }
.awards__head { margin-bottom: clamp(22px, 3vw, 34px); }
.awards__title { font-size: clamp(24px, 2.9vw, 34px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.awards__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 22px); }
.award {
  padding: clamp(20px, 2.2vw, 26px);
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--border);
}
.award__icon { width: 30px; height: auto; margin-bottom: 10px; opacity: .85; }
.award__year { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.award__name { font-size: clamp(16px, 1.5vw, 18px); font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; margin: 6px 0 7px; }
.award__by { font-size: 13.5px; font-weight: 300; line-height: 1.5; color: var(--ink-3); }
.awards__grid .reveal:nth-child(2) { transition-delay: .08s; }
.awards__grid .reveal:nth-child(3) { transition-delay: .16s; }
@media (max-width: 760px) { .awards__grid { grid-template-columns: 1fr; } }

/* ============================================================
   TESTIMONIOS  (sin foto del cliente — criterio de Tomás)
   ============================================================ */
.quotes { background: var(--bg-soft); padding: clamp(64px, 9vw, 118px) 0; }
.quotes__head { max-width: 1240px; margin: 0 auto clamp(32px, 4.5vw, 52px); padding: 0 clamp(20px, 4vw, 48px); }
.quotes__grid {
  max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px);
  /* 250px entra 4 veces justo en los 1240 de ancho: los 4 testimonios
     quedan en una sola fila. Si Silicon entrega 3, auto-fit los reparte
     en 3 columnas parejas sin dejar un hueco. */
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: clamp(18px, 2.6vw, 28px);
}
.quote { padding: clamp(26px, 3.2vw, 34px); border-radius: 16px; display: flex; flex-direction: column; gap: 18px; }
.quote blockquote { font-size: clamp(15px, 1.7vw, 17px); font-weight: 300; color: var(--ink-2); line-height: 1.6; flex: 1; }
.quote blockquote::before { content: "\201C"; display: block; font-size: 40px; line-height: .6; color: var(--label); margin-bottom: 8px; }
.quote figcaption { font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--ink); }

/* ============================================================
   PÁGINA /tecnologia
   ============================================================ */

/* El nav del home es transparente sobre el hero en video. Acá no hay
   hero oscuro, así que arranca sólido (mismo look que .nav.scrolled). */
.nav--solid { background: rgba(255,255,255,0.92); backdrop-filter: blur(16px); box-shadow: 0 1px 0 var(--border); }
.nav--solid .logo__mark rect { fill: var(--ink); }
.nav--solid .logo__text { color: var(--ink); }
.nav--solid .nav__links a { color: var(--ink-2); }
.nav--solid .nav__burger span { background: var(--ink); }
.nav--solid .lang-toggle { color: var(--ink-2); border-color: var(--border); background: transparent; }
.nav--solid .lang-toggle:hover { background: var(--bg-soft); }
.nav__links a.is-current { color: var(--ink); font-weight: 700; }

.btn--line { border: 1px solid var(--border); color: var(--ink); }
.btn--line:hover { background: var(--bg-soft); }

/* Encabezado de la página */
.techhead { background: var(--white); padding: calc(var(--nav-h) + clamp(52px, 8vw, 104px)) 0 clamp(44px, 6vw, 84px); }
.techhead__inner { max-width: 1000px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.techhead__title { font-size: clamp(32px, 5vw, 60px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 20px; }
.techhead__lead { font-size: clamp(16px, 1.8vw, 19px); font-weight: 300; color: var(--ink-2); max-width: 60ch; }

/* Intro de categoría. Con media va sobre video; sin media queda plana.
   Nunca dos con video seguidas: el render intercala el bloque de specs. */
.cat { position: relative; display: flex; align-items: flex-end; overflow: hidden; background: var(--ink); }
.cat--media { min-height: 58vh; }
.cat--plain { background: var(--navy); }
.cat__media { position: absolute; inset: 0; }
.cat__media video, .cat__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat__scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.74) 0%, rgba(0,0,0,.34) 48%, rgba(0,0,0,.12) 100%); }
.cat__content {
  position: relative; z-index: 2; width: 100%; max-width: 1240px; margin: 0 auto;
  padding: clamp(52px, 7vw, 92px) clamp(20px, 4vw, 48px); color: var(--white);
}
.cat__title { font-size: clamp(30px, 4.6vw, 54px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; margin: 14px 0 12px; }
.cat__tagline { font-size: clamp(15px, 1.8vw, 19px); font-weight: 300; color: rgba(255,255,255,0.9); max-width: 58ch; }

/* Fichas técnicas — bloque estático, corta el ritmo entre videos */
.specs { background: var(--bg-soft); padding: clamp(44px, 6vw, 84px) 0; }
.specs__inner {
  max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: clamp(18px, 2.6vw, 30px);
}
.prod { background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: clamp(24px, 3.2vw, 36px); }
.prod__name { font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; letter-spacing: -0.02em; }
.prod__tag { font-size: 15px; font-weight: 300; color: var(--ink-3); margin: 8px 0 24px; }
.prod__specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 16px; }
.prod__spec { display: flex; flex-direction: column-reverse; border-top: 1px solid var(--border); padding-top: 12px; }
.prod__val { font-size: clamp(17px, 2vw, 21px); font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
.prod__key { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-top: 5px; }

.specs--empty .specs__inner { grid-template-columns: 1fr; }
.specs__pending { padding: clamp(26px, 4vw, 38px); text-align: center; }
.specs__pendingtext { font-size: 15px; font-weight: 600; color: #8a5a00; }

/* Cierre de la página */
.techfoot { background: var(--white); padding: clamp(52px, 7vw, 96px) 0; }
.techfoot__inner { max-width: 900px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); text-align: center; }
.techfoot__note { font-size: clamp(15px, 1.7vw, 18px); font-weight: 300; color: var(--ink-2); margin-bottom: 28px; }
.techfoot__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 520px) {
  .prod__specs { grid-template-columns: 1fr; gap: 14px; }
}

/* ============================================================
   INTRO A TECNOLOGÍA  (bloque narrativo → /tecnologia)
   ============================================================ */
.techintro { background: var(--bg-soft); padding: clamp(64px, 9vw, 120px) 0; }
.techintro__inner {
  max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.techintro__lead {
  font-size: clamp(15px, 1.7vw, 18px); font-weight: 300; color: var(--ink-2);
  margin: 18px 0 30px; max-width: 48ch;
}
.techintro__media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px;
}

@media (max-width: 900px) {
  .techintro__inner { grid-template-columns: 1fr; }
  .techintro__media { order: -1; }
  .techintro__media img { aspect-ratio: 16 / 10; }
}

/* ============================================================
   PRODUCT SECTIONS
   ============================================================ */
.product { position: relative; height: 100vh; min-height: 600px; overflow: hidden; display: flex; background: var(--ink); }
.product__media { position: absolute; inset: 0; }
.product__media img,
.product__media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.product__scrim { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.5) 0%, rgba(0,0,0,.1) 30%, rgba(0,0,0,0) 55%); }
.product__content {
  position: relative; z-index: 2; width: 100%; max-width: 900px;
  margin: 0 auto; padding: clamp(90px, 13vh, 150px) 24px 0;
  text-align: center; color: var(--white);
}
.product__title { font-size: clamp(34px, 6vw, 64px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin-bottom: 14px; }
.product__tagline { font-size: clamp(15px, 2vw, 19px); font-weight: 300; color: rgba(255,255,255,0.9); margin-bottom: 30px; }

.product__specs {
  display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(20px, 5vw, 56px);
  margin-bottom: 34px;
}
.product__specs:last-child { margin-bottom: 0; }
.product__specs > div { display: flex; flex-direction: column; gap: 4px; }
.spec__value { font-size: clamp(18px, 2.4vw, 26px); font-weight: 700; letter-spacing: -0.01em; }
.spec__key { font-size: 12px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: rgba(255,255,255,0.7); }

/* Liquid glass — panel translúcido con desenfoque del fondo (prueba en Total Black) */
.glass-panel {
  position: relative; display: inline-block; overflow: hidden;
  max-width: min(760px, 94vw);
  padding: clamp(22px, 2.8vw, 32px) clamp(30px, 4vw, 52px);
  border-radius: 26px;
  background: rgba(255,255,255,0.10);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 18px 50px -12px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.45);
}
/* Specs compactos; una sola línea SOLO en desktop (en mobile envuelven) */
.glass-panel .product__tagline { margin-bottom: 20px; }
.glass-panel .product__specs { gap: clamp(14px, 2.4vw, 34px); margin-bottom: 0; }
@media (min-width: 901px) {
  .glass-panel .product__specs { flex-wrap: nowrap; }
}

/* Animación de aparición al bajar (fade + subida + leve zoom) */
.glass-panel.reveal { opacity: 0; transform: translateY(28px) scale(0.955); transition: opacity 1s var(--ease), transform .5s var(--ease); }
.glass-panel.reveal.is-visible { opacity: 1; transform: none; }
/* Hover: leve movimiento hacia arriba */
.glass-panel.reveal.is-visible:hover { transform: translateY(-8px); }
/* Brillo especular diagonal (efecto "liquid") */
.glass-panel::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,0.30) 0%, rgba(255,255,255,0.05) 34%, rgba(255,255,255,0) 60%);
}

/* Paneles: dos variantes (Total Black / Bifaciales) dentro de un solo glass panel */
.glass-panel--wide { max-width: min(940px, 94vw); }
.panel-variants {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(22px, 3vw, 44px);
  margin-top: clamp(20px, 2.6vw, 30px);
  text-align: center;
}
.panel-variant + .panel-variant {
  border-left: 1px solid rgba(255,255,255,0.18);
  padding-left: clamp(22px, 3vw, 44px);
}
.panel-variant__name { font-size: clamp(20px, 2.6vw, 28px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 6px; }
.panel-variant__tag { font-size: clamp(13px, 1.5vw, 14.5px); font-weight: 300; color: rgba(255,255,255,0.82); margin-bottom: clamp(16px, 2vw, 22px); }
.panel-variant .product__specs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; justify-items: center; }
@media (max-width: 640px) {
  .panel-variants { grid-template-columns: 1fr; gap: 26px; }
  .panel-variant + .panel-variant {
    border-left: none; padding-left: 0;
    border-top: 1px solid rgba(255,255,255,0.18); padding-top: 26px;
  }
}

/* ============================================================
   SHOWREEL
   ============================================================ */
.showreel { background: #fff; color: var(--ink); padding: clamp(64px, 10vw, 130px) clamp(20px, 4vw, 48px); text-align: center; }
.showreel__layout { max-width: 1080px; margin: 0 auto; }
.showreel__inner { max-width: 1080px; margin: 0 auto; }
.showreel .eyebrow { color: var(--accent); }
.showreel__title { font-size: clamp(28px, 4vw, 48px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 44px; }

/* Bloque editorial: texto fino, debajo de la casa (columna derecha) */
.showreel__editorial { max-width: 640px; margin: clamp(28px, 3.5vw, 52px) auto 0; text-align: center; }
.showreel__editorial p {
  font-size: clamp(18px, 1.55vw, 23px);
  font-weight: 300; line-height: 1.55; letter-spacing: -0.01em;
  color: var(--ink-2);
}

/* Casa 3D lateral (oculta en mobile; se activa en desktop más abajo) */
.showreel__house { display: none; }
.house-video {
  width: 100%; height: auto; display: block; /* video entero, sin recorte */
  /* El render tiene fondo beige; con brillo + multiply se funde en el blanco. */
  filter: brightness(1.07); mix-blend-mode: multiply;
}

/* ---------- Desktop: mosaico a la izquierda, casa 3D a la derecha ---------- */
@media (min-width: 901px) {
  .showreel { text-align: left; }
  .showreel__layout {
    max-width: 1240px;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 4vw, 72px); align-items: center;
  }
  .showreel__inner { max-width: none; margin: 0; }
  .showreel__house { display: block; }
  /* casa + texto editorial corridos juntos hacia la derecha */
  .showreel__right { transform: translateX(14%); }
}

/* Mosaico isotipo: 4 videos 1:1 en grilla 2×2 (paneles del logo) */
.mosaic {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.6vw, 20px);
  width: min(560px, 88vw); margin: 0 auto;
}
@media (min-width: 901px) { .mosaic { width: 100%; margin: 0; } }
.mosaic__cell {
  aspect-ratio: 1 / 1; width: 100%; height: 100%;
  object-fit: cover; display: block;
  border-radius: clamp(12px, 2vw, 22px);
  background: #000;
}


/* ============================================================
   CONCEPTO  (banda oscura del home)
   Reemplaza a la intro de tecnología. Misma familia que /procesos
   pero con las columnas en tarjeta, no en hairline, para que las
   dos páginas no se lean iguales.
   ============================================================ */
.concept {
  background: var(--ink);
  color: var(--white);
  padding: clamp(72px, 9.5vw, 132px) clamp(20px, 4vw, 48px);
}
.concept__inner { max-width: 1240px; margin: 0 auto; }
.concept__head { max-width: 940px; }
.concept__title {
  font-size: clamp(30px, 4.4vw, 56px);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.05;
}
.concept__lead {
  margin-top: clamp(18px, 2vw, 26px); max-width: 720px;
  font-size: clamp(16px, 1.35vw, 19px); font-weight: 300; line-height: 1.6;
  color: rgba(255,255,255,0.72);
}
.concept__grid {
  margin-top: clamp(44px, 5.5vw, 80px);
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  gap: clamp(16px, 1.8vw, 24px);
}
.concept__item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  padding: clamp(24px, 2.6vw, 34px);
}
.concept__item-num {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: .16em;
  color: var(--accent); margin-bottom: clamp(16px, 2vw, 26px);
}
.concept__item-title { font-size: clamp(19px, 1.8vw, 24px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 12px; }
.concept__item-desc { font-size: 15px; font-weight: 300; line-height: 1.62; color: rgba(255,255,255,0.66); }
.concept__foot { margin-top: clamp(36px, 4.5vw, 60px); display: flex; flex-wrap: wrap; gap: 12px; }
.concept__grid .reveal:nth-child(2) { transition-delay: .1s; }
.concept__grid .reveal:nth-child(3) { transition-delay: .2s; }

@media (max-width: 860px) {
  .concept__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PROJECTS
   ============================================================ */
.projects { padding: clamp(64px, 9vw, 120px) clamp(20px, 4vw, 48px); max-width: 1400px; margin: 0 auto; }
.projects__head { text-align: center; margin-bottom: clamp(40px, 6vw, 68px); }
.projects__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.project {
  position: relative; aspect-ratio: 4/3; border-radius: 14px; overflow: hidden;
  background-size: cover; background-position: center; display: flex; align-items: flex-end;
  isolation: isolate;
}
.project--large { grid-column: span 2; aspect-ratio: 16/9; }
.project::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background-size: cover; background-position: center; background-image: inherit;
  transition: transform .7s var(--ease);
}
.project__scrim {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.15) 45%, rgba(0,0,0,0) 70%);
  opacity: .55; transition: opacity .4s var(--ease);
}
.project__meta { position: relative; z-index: 3; padding: clamp(18px, 3vw, 30px); color: var(--white); transform: translateY(8px); transition: transform .4s var(--ease); }
.project__meta h3 { font-size: clamp(18px, 2vw, 24px); font-weight: 700; letter-spacing: -0.01em; }
.project__meta p { font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.85); margin-top: 4px; opacity: 0; transition: opacity .4s var(--ease); }
.project:hover::after { transform: scale(1.06); }
.project:hover .project__scrim { opacity: .95; }
.project:hover .project__meta { transform: translateY(0); }
.project:hover .project__meta p { opacity: 1; }

/* Desktop: mosaico de 4 columnas que llena la sección sin espacios en blanco */
@media (min-width: 901px) {
  .projects__grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: clamp(260px, 28vw, 380px);
    grid-auto-flow: dense;
    gap: 14px;
  }
  .project { aspect-ratio: auto; height: auto; }
  .project--large { grid-column: span 2; aspect-ratio: auto; }
}


/* ============================================================
   BATTERIES
   ============================================================ */
.battery-focus {
  background: linear-gradient(180deg, #202a34 0%, var(--ink) 55%);
  color: var(--white);
  padding: clamp(72px, 10vw, 140px) clamp(20px, 4vw, 48px);
}
.section__title--light { color: var(--white); }

/* Intro split: text + primary vertical video */
.bf__intro {
  max-width: 1180px; margin: 0 auto clamp(64px, 8vw, 110px);
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.bf__title { font-size: clamp(32px, 5vw, 60px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.02; margin-bottom: 20px; }
.bf__lead { font-size: clamp(16px, 1.6vw, 19px); font-weight: 300; color: rgba(255,255,255,0.82); margin-bottom: 28px; max-width: 520px; }
.bf__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.bf__chips:last-child { margin-bottom: 0; }
.bf__chips li {
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.92);
  padding: 9px 15px; border: 1px solid rgba(255,255,255,0.2); border-radius: 100px;
  background: rgba(255,255,255,0.05);
}
.bf__chips li::before { content: "✓ "; color: #7fc4ff; font-weight: 700; }

.bf__video {
  position: relative; justify-self: center;
  width: min(340px, 82vw); aspect-ratio: 9/16;
  border-radius: 26px; overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,0.12);
}
.bf__video video { width: 100%; height: 100%; object-fit: cover; display: block; }

.batteries__head { text-align: center; margin-bottom: clamp(40px, 6vw, 64px); }
.batteries__grid { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* En detalle: vertical clips + real install shots */
.bf__clips {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px;
  align-items: stretch;
}
.bf__clip {
  position: relative; aspect-ratio: 9/16; border-radius: 20px; overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,0.1);
}
.bf__clip video { width: 100%; height: 100%; object-fit: cover; display: block; }
.bf__wide {
  max-width: 1180px; margin: clamp(18px, 2.2vw, 24px) auto 0;
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,0.1);
}
.bf__wide img { width: 100%; height: auto; display: block; }
.bf__shots { display: grid; grid-template-rows: 1fr 1fr; gap: 20px; }
.bf__shot {
  position: relative; border-radius: 20px; overflow: hidden;
  background-size: cover; background-position: center; min-height: 150px;
}
.bf__shotscrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.7), rgba(0,0,0,0) 60%); }
.bf__shotlabel { position: absolute; left: 18px; bottom: 16px; z-index: 2; font-size: 13px; font-weight: 600; color: var(--white); }

/* Tarjetas glassmorphism sobre el fondo oscuro de la sección */
.battery {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 20px;
  padding: clamp(28px, 4vw, 46px);
  color: var(--white);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0,0,0,.28);
}
/* Cobertura Total: sigue siendo la destacada, con tinte azul y borde más brillante */
.battery--navy {
  background: rgba(56,130,189,0.16);
  border-color: rgba(127,196,255,0.38);
}
.battery .badge { background: rgba(255,255,255,0.14); color: rgba(255,255,255,0.92); }
.battery__title { font-size: clamp(24px, 3vw, 32px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 12px; }
.battery__desc { font-size: 15px; color: rgba(255,255,255,0.72); margin-bottom: 26px; }
.battery--navy .battery__desc { color: rgba(255,255,255,0.82); }

.loads { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin-bottom: 30px; }
.loads:last-child { margin-bottom: 0; }
.load { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
.load__dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.load--on { color: var(--white); }
.load--on .load__dot { background: #7fc4ff; box-shadow: 0 0 0 4px rgba(127,196,255,.18); }
.load--off { color: rgba(255,255,255,0.4); }
.load--off .load__dot { background: rgba(255,255,255,0.32); }

/* Pilares de refuerzo: respaldo Huawei · soporte local · smart energy */
.bat-pillars {
  max-width: 1080px; margin: clamp(44px, 6vw, 68px) auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.bat-pillar {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 18px;
  padding: clamp(24px, 3vw, 34px);
  color: var(--white);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px rgba(0,0,0,.24);
}
.bat-pillar__kicker { display: block; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: #7fc4ff; margin-bottom: 12px; }
.bat-pillar__title { font-size: clamp(19px, 2.2vw, 24px); font-weight: 700; letter-spacing: -0.015em; margin-bottom: 10px; }
.bat-pillar__desc { font-size: 14.5px; color: rgba(255,255,255,0.76); }
.bat-pillars .reveal:nth-child(2) { transition-delay: .08s; }
.bat-pillars .reveal:nth-child(3) { transition-delay: .16s; }
@media (max-width: 900px) {
  .bat-pillars { grid-template-columns: 1fr; max-width: 520px; }
}

/* ============================================================
   PROCESS
   ============================================================ */
.process { padding: clamp(64px, 9vw, 120px) clamp(20px, 4vw, 48px); max-width: 1240px; margin: 0 auto; }
.process__head { text-align: center; margin-bottom: clamp(44px, 6vw, 70px); }
.process__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 40px); }
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--border);
  font-size: 15px; font-weight: 700; color: var(--accent); margin-bottom: 22px;
}
.step h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--ink-3); }

/* ============================================================
   PROCESOS · disciplinas (banda oscura, estilo Tesla)
   Afirmación grande arriba, tres columnas con hairline. Sin iconos:
   el peso lo lleva la tipografía, como en las páginas de Tesla.
   ============================================================ */
.disciplines {
  background: var(--ink);
  color: var(--white);
  padding: clamp(72px, 9.5vw, 132px) clamp(20px, 4vw, 48px);
}
.disciplines__inner { max-width: 1240px; margin: 0 auto; }
.disciplines__head { max-width: 900px; }
.disciplines__title {
  font-size: clamp(30px, 4.2vw, 54px);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.06;
}
.disciplines__lead {
  margin-top: clamp(18px, 2vw, 26px);
  max-width: 720px;
  font-size: clamp(16px, 1.35vw, 19px);
  font-weight: 300; line-height: 1.6;
  color: rgba(255,255,255,0.72);
}
.disciplines__grid {
  margin-top: clamp(46px, 6vw, 88px);
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  gap: clamp(24px, 3.4vw, 56px);
}
.discipline { border-top: 1px solid rgba(255,255,255,0.22); padding-top: clamp(18px, 2vw, 26px); }
.discipline__num {
  display: block; font-size: 12px; font-weight: 700;
  letter-spacing: .16em; color: var(--accent); margin-bottom: clamp(20px, 2.6vw, 34px);
}
.discipline__title { font-size: clamp(20px, 2vw, 26px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 12px; }
.discipline__desc { font-size: 15px; font-weight: 300; line-height: 1.62; color: rgba(255,255,255,0.66); }
.disciplines__foot { margin-top: clamp(40px, 5vw, 68px); }
.disciplines__link {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 600; color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.35); padding-bottom: 4px;
  transition: border-color .3s var(--ease), opacity .3s var(--ease);
}
.disciplines__link::after { content: "\2193"; font-size: 13px; }
.disciplines__link:hover { opacity: .7; border-color: rgba(255,255,255,0.7); }
.disciplines__grid .reveal:nth-child(2) { transition-delay: .1s; }
.disciplines__grid .reveal:nth-child(3) { transition-delay: .2s; }

@media (max-width: 860px) {
  .disciplines__grid { grid-template-columns: 1fr; gap: 0; }
  .discipline { padding: clamp(18px, 3vw, 26px) 0 clamp(22px, 3vw, 30px); }
  .discipline__num { margin-bottom: 14px; }
}

/* ============================================================
   POSVENTA / SOPORTE / MANTENIMIENTO (banda destacada)
   ============================================================ */
.aftersales {
  background: linear-gradient(180deg, var(--ink) 0%, #202a34 100%);
  color: var(--white);
  padding: clamp(72px, 10vw, 130px) clamp(20px, 4vw, 48px);
}
.aftersales__head { text-align: center; max-width: 760px; margin: 0 auto clamp(44px, 6vw, 70px); }
.aftersales__sub { font-size: clamp(15px, 1.7vw, 19px); font-weight: 300; color: rgba(255,255,255,0.78); margin-top: 16px; }
.aftersales__grid {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.4vw, 30px);
}
.aftercard {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 18px;
  padding: clamp(26px, 3vw, 34px);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px rgba(0,0,0,.24);
}
.aftercard__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.28);
  font-size: 14px; font-weight: 700; color: #7fc4ff; margin-bottom: 20px;
}
.aftercard h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; }
.aftercard p { font-size: 14px; color: rgba(255,255,255,0.72); }
.aftersales__grid .reveal:nth-child(2) { transition-delay: .08s; }
.aftersales__grid .reveal:nth-child(3) { transition-delay: .16s; }
.aftersales__grid .reveal:nth-child(4) { transition-delay: .24s; }
@media (max-width: 900px) {
  .aftersales__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .aftersales__grid { grid-template-columns: 1fr; max-width: 460px; }
}

/* ============================================================
   CTA
   ============================================================ */
.cta { background: var(--ink); color: var(--white); padding: clamp(80px, 12vw, 160px) clamp(20px, 4vw, 48px); text-align: center; }
.cta__inner { max-width: 720px; margin: 0 auto; }
.cta__title { font-size: clamp(30px, 5vw, 58px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 20px; }
.cta__subtitle { font-size: clamp(16px, 2vw, 19px); font-weight: 300; color: rgba(255,255,255,0.8); margin-bottom: 36px; }
.cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta__actions .btn { min-width: 220px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--white); border-top: 1px solid var(--border); padding: clamp(44px, 6vw, 68px) clamp(20px, 4vw, 48px); }
.footer__inner { max-width: 1240px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; }
.logo--footer .logo__mark rect { fill: var(--ink); }
.logo--footer .logo__text { color: var(--ink); }
.footer__links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer__links a { font-size: 14px; font-weight: 600; color: var(--ink-2); transition: color .2s var(--ease); }
.footer__links a:hover { color: var(--accent); }
.footer__legal { width: 100%; font-size: 13px; color: var(--ink-3); padding-top: 22px; border-top: 1px solid var(--border); }

/* ============================================================
   CURSOR personalizado (isotipo + estela de cuadraditos)
   ============================================================ */
@media (hover: hover) and (pointer: fine) {
  html.has-cursor, html.has-cursor * { cursor: none !important; }
}
.cursor {
  position: fixed; top: 0; left: 0; z-index: 4000; pointer-events: none;
  width: 20px; height: 20px; margin: -10px 0 0 -10px;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.45)); will-change: transform;
}
.cursor i { background: #fff; border-radius: 2.5px; }
.cursor--down { transform: scale(.8); }
.cursor-sq {
  position: fixed; z-index: 3999; pointer-events: none;
  width: 9px; height: 9px; background: #fff; border-radius: 2.5px;
  box-shadow: 0 1px 2px rgba(0,0,0,.3); will-change: transform, opacity;
  animation: cursorSq .7s var(--ease) forwards;
}
@keyframes cursorSq {
  from { opacity: .85; transform: translate(-50%,-50%) scale(1) rotate(0deg); }
  to   { opacity: 0;   transform: translate(-50%,-50%) scale(.35) rotate(18deg); }
}

/* ============================================================
   TEAM / EQUIPO (compacto, en texto)
   ============================================================ */
.team { padding: clamp(56px, 8vw, 104px) clamp(20px, 4vw, 48px); max-width: 1080px; margin: 0 auto; text-align: center; }
.team__head { margin-bottom: clamp(32px, 4vw, 48px); }
.team__sub { font-size: clamp(15px, 1.6vw, 18px); font-weight: 300; color: var(--ink-3); margin-top: 14px; max-width: 560px; margin-left: auto; margin-right: auto; }
.team__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.5vw, 28px);
  max-width: 880px; margin: 0 auto;
}
.member { text-align: center; }
.member__photo {
  border-radius: 16px; overflow: hidden; background: #1b1b1b; aspect-ratio: 3/4; margin-bottom: 16px;
}
.member__photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.member:hover .member__photo img { transform: scale(1.04); }
.member__name { display: block; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.member__role { display: block; font-size: 12px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--accent); margin-top: 3px; }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
/* Stagger inside grids */
.projects__grid .reveal:nth-child(1) { transition-delay: 0s; }
.projects__grid .reveal:nth-child(2) { transition-delay: .06s; }
.projects__grid .reveal:nth-child(3) { transition-delay: .12s; }
.projects__grid .reveal:nth-child(4) { transition-delay: .18s; }
.projects__grid .reveal:nth-child(5) { transition-delay: .24s; }
.projects__grid .reveal:nth-child(6) { transition-delay: .30s; }
.projects__grid .reveal:nth-child(7) { transition-delay: .10s; }
.projects__grid .reveal:nth-child(8) { transition-delay: .16s; }
.projects__grid .reveal:nth-child(9) { transition-delay: .22s; }
.projects__grid .reveal:nth-child(10) { transition-delay: .28s; }
.process__grid .reveal:nth-child(2) { transition-delay: .08s; }
.process__grid .reveal:nth-child(3) { transition-delay: .16s; }
.process__grid .reveal:nth-child(4) { transition-delay: .24s; }
.trusted__row .reveal:nth-child(2) { transition-delay: .08s; }
.trusted__row .reveal:nth-child(3) { transition-delay: .16s; }
.trusted__row .reveal:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  /* Sin animación el carrusel de marcas no avanza: que se pueda scrollear a mano */
  .brands__marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}

/* ============================================================
   ASISTENTE VIRTUAL (chat)
   ============================================================ */
.chat-fab {
  position: fixed; right: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px);
  z-index: 3500; display: inline-flex; align-items: center; gap: 9px;
  height: 52px; padding: 0 20px 0 18px; border-radius: 100px;
  background: var(--ink); color: var(--white); font-size: 14px; font-weight: 600;
  box-shadow: 0 12px 34px rgba(0,0,0,.28); transition: transform .25s var(--ease), background .25s var(--ease);
}
.chat-fab:hover { transform: translateY(-2px); background: #000; }
.chat-fab.hidden { opacity: 0; pointer-events: none; transform: scale(.9); }

.chat-panel {
  position: fixed; right: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px);
  z-index: 3600; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 48px));
  background: var(--white); border: 1px solid var(--border); border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0,0,0,.28); display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateY(16px) scale(.98); pointer-events: none;
  transition: opacity .28s var(--ease), transform .28s var(--ease);
}
.chat-panel.open { opacity: 1; transform: none; pointer-events: auto; }

/* Overlay de arrastrar y soltar (drag & drop) */
.chat-drop {
  position: absolute; inset: 0; z-index: 10; display: none;
  align-items: center; justify-content: center; text-align: center; padding: 24px;
  background: rgba(27,27,27,0.62); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  border-radius: 20px; color: #fff; font-weight: 700; font-size: 15px; pointer-events: none;
}
.chat-drop span { border: 2px dashed rgba(255,255,255,0.5); border-radius: 14px; padding: 22px 26px; }
.chat-panel.chat-dragging .chat-drop { display: flex; }

.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; background: var(--ink); color: var(--white); }
.chat-head__title { display: flex; flex-direction: column; line-height: 1.2; }
.chat-head__name { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.chat-head__status { font-size: 12px; color: rgba(255,255,255,.6); }
.chat-head__status::before { content: "●"; color: #4ade80; margin-right: 5px; font-size: 9px; vertical-align: middle; }
.chat-head__close { color: rgba(255,255,255,.8); font-size: 26px; line-height: 1; width: 32px; height: 32px; border-radius: 8px; transition: background .2s var(--ease); }
.chat-head__close:hover { background: rgba(255,255,255,.12); }

.chat-log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; background: var(--bg-soft); }
.chat-msg { max-width: 82%; padding: 11px 14px; border-radius: 16px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.chat-msg--bot { align-self: flex-start; background: var(--white); border: 1px solid var(--border); color: var(--ink); border-bottom-left-radius: 5px; }
.chat-msg--user { align-self: flex-end; background: var(--ink); color: var(--white); border-bottom-right-radius: 5px; }
.chat-msg a { color: var(--accent); text-decoration: underline; }
.chat-msg--user a { color: #9fd0f5; }
.chat-typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 13px 15px; background: var(--white); border: 1px solid var(--border); border-radius: 16px; border-bottom-left-radius: 5px; }
.chat-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--label); animation: chatDot 1.2s infinite ease-in-out; }
.chat-typing span:nth-child(2) { animation-delay: .18s; }
.chat-typing span:nth-child(3) { animation-delay: .36s; }
@keyframes chatDot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

.chat-form { display: flex; align-items: center; gap: 8px; padding: 12px; border-top: 1px solid var(--border); background: var(--white); }
.chat-field { flex: 1; height: 42px; padding: 0 14px; border: 1px solid var(--border); border-radius: 100px; font-family: inherit; font-size: 14px; color: var(--ink); outline: none; transition: border-color .2s var(--ease); }
.chat-field:focus { border-color: var(--ink); }
.chat-send { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--white); display: flex; align-items: center; justify-content: center; transition: background .2s var(--ease), opacity .2s var(--ease); }
.chat-send:hover { background: #000; }
.chat-send:disabled { opacity: .4; cursor: default; }
.chat-attach { flex: none; width: 40px; height: 42px; display: flex; align-items: center; justify-content: center; color: var(--ink-3); border-radius: 12px; transition: color .2s var(--ease), background .2s var(--ease); }
.chat-attach:hover { color: var(--ink); background: var(--bg-soft); }

/* Preview de imagen adjunta (factura) */
.chat-preview { padding: 10px 14px 0; }
.chat-preview[hidden] { display: none; }
.chat-preview__chip { position: relative; display: inline-block; }
.chat-preview__chip img { height: 62px; width: auto; border-radius: 10px; border: 1px solid var(--border); display: block; }
.chat-preview__x {
  position: absolute; top: -7px; right: -7px; width: 21px; height: 21px; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: 13px; line-height: 21px; text-align: center; cursor: pointer;
}
.chat-msg img { max-width: 200px; border-radius: 12px; margin-top: 2px; display: block; }

/* ============================================================
   CONTACTO (formulario)
   ============================================================ */
.contact { background: var(--bg-soft); padding: clamp(64px, 9vw, 120px) clamp(20px, 4vw, 48px); }
.contact__inner { max-width: 720px; margin: 0 auto; }
.contact__head { text-align: center; margin-bottom: clamp(32px, 4vw, 48px); }
.contact__sub { font-size: clamp(15px, 1.6vw, 18px); font-weight: 300; color: var(--ink-3); margin-top: 14px; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-input {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--ink);
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px; outline: none; transition: border-color .2s var(--ease);
}
.contact-input::placeholder { color: var(--label); }
.contact-input:focus { border-color: var(--ink); }
.contact-textarea { resize: vertical; min-height: 120px; }
.contact-form .btn { align-self: flex-start; margin-top: 6px; }
.contact-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-status { font-size: 14px; font-weight: 600; margin: 2px 0 0; min-height: 20px; }
.contact-status.ok { color: #1f9d55; }
.contact-status.err { color: #c0392b; }

/* ============================================================
   BOTÓN WHATSAPP (flotante)
   ============================================================ */
.wa-fab {
  position: fixed; left: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px);
  z-index: 3500; width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, rgba(37,211,102,0.72), rgba(20,150,85,0.66));
  border: 1px solid rgba(255,255,255,0.42);
  backdrop-filter: blur(12px) saturate(1.5);
  -webkit-backdrop-filter: blur(12px) saturate(1.5);
  box-shadow:
    0 10px 30px rgba(37,211,102,.36),
    inset 0 1px 1px rgba(255,255,255,.55),
    inset 0 -3px 8px rgba(0,0,0,.14);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.wa-fab:hover {
  transform: translateY(-2px) scale(1.05);
  background: linear-gradient(135deg, rgba(37,211,102,0.85), rgba(20,150,85,0.8));
  box-shadow: 0 16px 40px rgba(37,211,102,.48), inset 0 1px 1px rgba(255,255,255,.65);
}

/* ============================================================
   LIGHTBOX / CARRUSEL DE PROYECTO
   ============================================================ */
.lb {
  position: fixed; inset: 0; z-index: 5000; display: none;
  align-items: center; justify-content: center;
  padding: 44px 16px 96px;
  background: rgba(10,10,12,0.88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.lb.open { display: flex; }
/* cursor visible dentro del lightbox (el cursor custom queda detrás) */
html.has-cursor .lb, html.has-cursor .lb * { cursor: default !important; }
html.has-cursor .lb button { cursor: pointer !important; }

.lb__img {
  max-width: min(1100px, 94vw); max-height: 80vh; width: auto; height: auto;
  object-fit: contain; border-radius: 12px; box-shadow: 0 30px 90px rgba(0,0,0,.55);
}
.lb__close {
  position: absolute; top: 18px; right: 20px; width: 44px; height: 44px; border-radius: 50%;
  color: #fff; font-size: 26px; line-height: 1; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(8px); transition: background .2s var(--ease);
}
.lb__close:hover { background: rgba(255,255,255,0.24); }
.lb__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%; color: #fff;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(8px); transition: background .2s var(--ease), transform .2s var(--ease);
}
.lb__nav:hover { background: rgba(255,255,255,0.24); }
.lb__prev { left: clamp(10px, 3vw, 34px); }
.lb__next { right: clamp(10px, 3vw, 34px); }
.lb__foot {
  position: absolute; left: 0; right: 0; bottom: 22px; padding: 0 16px;
  display: flex; flex-direction: column; align-items: center; gap: 12px; color: #fff; text-align: center;
}
.lb__cap { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.lb__cap .lb__meta { color: rgba(255,255,255,0.68); font-weight: 400; }
.lb__dots { display: flex; gap: 7px; }
.lb__dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.35); transition: background .2s var(--ease), transform .2s var(--ease); }
.lb__dot.active { background: #fff; transform: scale(1.25); }
.lb__counter { font-size: 12px; color: rgba(255,255,255,0.6); letter-spacing: .5px; }
.lb--single .lb__nav, .lb--single .lb__dots { display: none; }
.project { cursor: pointer; }

/* ============================================================
   TOGGLE DE IDIOMA (ES / EN)
   ============================================================ */
.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 13px; border-radius: 100px;
  font-family: inherit; font-size: 13px; font-weight: 700; letter-spacing: .4px;
  color: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: color .35s var(--ease), border-color .35s var(--ease), background .25s var(--ease);
}
.lang-toggle:hover { background: rgba(255,255,255,0.22); transform: none; }
.lang-toggle svg { opacity: .9; }
.nav.scrolled .lang-toggle { color: var(--ink-2); border-color: var(--border); background: transparent; }
.nav.scrolled .lang-toggle:hover { background: var(--bg-soft); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  /* el CTA sigue arriba en tablet; en teléfono no entra y vive en el menú */
  .nav__cta { padding: 0 16px; }


  .brands__proof { gap: 8px; }

  .projects__grid { grid-template-columns: 1fr 1fr; }
  .project--large { grid-column: span 2; }

  .batteries__grid { grid-template-columns: 1fr; }
  .process__grid { grid-template-columns: 1fr 1fr; gap: 34px 24px; }

  .product__specs { gap: 18px 28px; }

  /* Battery focus */
  .bf__intro { grid-template-columns: 1fr; gap: 36px; }
  .bf__text { text-align: center; }
  .bf__lead { margin-left: auto; margin-right: auto; }
  .bf__chips { justify-content: center; }
  .bf__clips { grid-template-columns: 1fr 1fr; }
  /* con tres clips, el último queda solo: lo centramos en la segunda fila */
  .bf__clips > .bf__clip:last-child { grid-column: 1 / -1; justify-self: center; width: calc(50% - 10px); }
  .bf__shots { grid-column: span 2; grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .bf__shot { min-height: 200px; }
}

@media (max-width: 640px) {
  /* En teléfono el CTA no entra al lado del logo: queda en el menú */
  .nav__cta { display: none; }
}

@media (max-width: 520px) {
  /* Centrar verticalmente el texto del hero (antes quedaba pegado abajo) */
  .hero__content { margin: auto; padding-bottom: clamp(28px, 8vh, 56px); }
  .hero__actions .btn, .cta__actions .btn { width: 100%; min-width: 0; }
  .projects__grid { grid-template-columns: 1fr; }
  .project--large { grid-column: span 1; aspect-ratio: 4/3; }
  .process__grid { grid-template-columns: 1fr; }
  .loads { grid-template-columns: 1fr; }
  .project__meta p { opacity: 1; }
  .project__meta { transform: none; }

  .bf__clips { grid-template-columns: 1fr 1fr; }
  .bf__clip { width: 100%; }
  .bf__clips > .bf__clip:last-child { grid-column: 1 / -1; justify-self: center; width: calc(50% - 10px); }

  .contact-row { grid-template-columns: 1fr; }
  .contact-form .btn { align-self: stretch; }

  /* Chat casi a pantalla completa en mobile (más cómodo para adjuntar/escribir) */
  .chat-panel { left: 10px; right: 10px; bottom: 10px; width: auto; height: 80vh; height: 80dvh; max-height: 640px; }

  /* Lightbox en mobile */
  .lb__nav { width: 44px; height: 44px; }
  .lb__prev { left: 8px; } .lb__next { right: 8px; }
  .lb__img { max-height: 70vh; max-width: 96vw; }

  .team__grid { max-width: 460px; gap: 14px; }
  .member__name { font-size: 15px; }
  .member__photo { margin-bottom: 12px; }
}

/* ============================================================
   PÁGINA /presupuesto — formulario de leads (multi-paso)
   ============================================================ */

/* Encabezado */
.lfhead { background: var(--white); padding: calc(var(--nav-h) + clamp(44px, 7vw, 88px)) clamp(20px, 4vw, 48px) clamp(28px, 4vw, 44px); text-align: center; }
.lfhead__inner { max-width: 720px; margin: 0 auto; }
.lfhead__title { font-size: clamp(30px, 4.6vw, 52px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.06; margin-bottom: 18px; }
.lfhead__lead { font-size: clamp(15px, 1.7vw, 18px); font-weight: 300; color: var(--ink-2); max-width: 56ch; margin: 0 auto; }
.lfhead__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.lfhead__chip { font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--bg-soft); border-radius: 100px; padding: 8px 16px; }

/* Tarjeta del formulario */
.lfwrap { background: var(--bg-soft); padding: clamp(28px, 5vw, 56px) clamp(16px, 4vw, 48px) clamp(64px, 9vw, 110px); }
.lfcard { max-width: 620px; margin: 0 auto; background: var(--white); border: 1px solid var(--border); border-radius: 20px; padding: clamp(24px, 4vw, 44px); }

/* Barra de progreso */
.lfbar { height: 3px; background: var(--border); border-radius: 3px; overflow: hidden; margin-bottom: clamp(24px, 4vw, 36px); }
.lfbar span { display: block; height: 100%; width: 11%; background: var(--accent); border-radius: 3px; transition: width .4s var(--ease); }

/* Pasos: solo uno visible por vez */
.lfstep { display: none; }
.lfstep.is-active { display: block; animation: lfin .35s var(--ease); }
@keyframes lfin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lfstep.is-active { animation: none; } }

.lfnum { font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--label); margin-bottom: 12px; }
.lfq { font-size: clamp(20px, 2.6vw, 27px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 8px; }
.lfnote { font-size: 14px; font-weight: 300; color: var(--ink-3); margin-bottom: 20px; }
.lfq + .lfopts, .lfq + .lffield { margin-top: 22px; }

/* Campos de texto */
.lffield input {
  width: 100%; height: 54px; padding: 0 18px;
  border: 1px solid var(--border); border-radius: 12px;
  font-family: inherit; font-size: 16px; color: var(--ink); background: var(--white);
  transition: border-color .25s var(--ease);
}
.lffield input::placeholder { color: var(--label); }
.lffield input:focus { outline: none; border-color: var(--ink); }

/* Opciones (radios como tarjetas) */
.lfopts { display: flex; flex-direction: column; gap: 10px; }
.lfopt {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border: 1px solid var(--border); border-radius: 12px;
  cursor: pointer; background: var(--white);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.lfopt:hover { border-color: var(--ink-3); background: var(--bg-soft); }
.lfopt input { position: absolute; opacity: 0; pointer-events: none; }
.lfopt__dot { flex: none; width: 20px; height: 20px; border: 1.5px solid var(--border); border-radius: 50%; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.lfopt__txt { font-size: 15.5px; font-weight: 600; color: var(--ink); }
.lfopt__txt small { display: block; font-size: 13px; font-weight: 400; color: var(--ink-3); margin-top: 2px; }
.lfopt.is-sel { border-color: var(--accent); background: rgba(56,130,189,0.05); }
.lfopt.is-sel .lfopt__dot { border-color: var(--accent); box-shadow: inset 0 0 0 5px var(--accent); }

/* Error + navegación */
.lferr { font-size: 14px; font-weight: 600; color: #c0392b; min-height: 20px; margin-top: 12px; }
.lfnav { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 10px; }
.lfback { font-size: 14px; font-weight: 600; color: var(--ink-3); padding: 8px 0; }
.lfback:hover { color: var(--ink); }
.lfback[hidden] { visibility: hidden; display: block; }

/* Honeypot */
.lfhp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Gracias */
.lfthanks { display: none; text-align: center; padding: 12px 0; }
.lfthanks.is-on { display: block; }
.lfthanks__mark { width: 58px; height: 58px; margin: 0 auto 20px; border-radius: 50%; background: rgba(56,130,189,0.1); display: grid; place-items: center; }
.lfthanks__mark svg { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.lfthanks__mark--info { background: var(--bg-soft); }
.lfthanks__mark--info svg { stroke: var(--ink-3); }
.lfthanks h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 12px; }
.lfthanks p { font-size: 16px; font-weight: 300; color: var(--ink-2); max-width: 44ch; margin: 0 auto; }
.lfthanks__wa { display: inline-block; margin-top: 22px; font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: underline; }

.lflegal { max-width: 620px; margin: 20px auto 0; text-align: center; font-size: 12.5px; font-weight: 300; color: var(--ink-3); }

@media (max-width: 640px) {
  .lfcard { border-radius: 16px; padding: 22px 18px 26px; }
  .lfopt { padding: 14px 15px; }
  .lffield input { height: 50px; font-size: 16px; }
}
