/* =========================================================
   e-motive · style.css
   Plain CSS, no build step. Mobile-first.
   ========================================================= */

:root {
  /* Brand */
  --lime: #8CD44B;
  --green: #4AA43C;
  --green-dark: #08732D;
  --grad: linear-gradient(135deg, #8CD44B 0%, #4AA43C 50%, #08732D 100%);

  /* Surfaces (dark first) */
  --bg: #2B2B2B;
  --bg-alt: #242424;
  --bg-deep: #1C1C1C;
  --surface: #333333;
  --surface-2: #3A3A3A;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* Text */
  --text: #F4F4F1;
  --text-2: #C9C9C4;
  --muted: #A6A6A0;
  --on-lime: #142008;

  /* Type */
  --font-head: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1rem;
  --fs-md: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  --fs-lg: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-xl: clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem);
  --fs-2xl: clamp(2.25rem, 1.6rem + 3vw, 4rem);
  --fs-hero: clamp(2.75rem, 1.6rem + 5.6vw, 6.25rem);

  /* Space (4pt) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px;
  --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px; --s-20: 80px; --s-24: 96px; --s-32: 128px;
  
/* Relleno superior con balance perfecto */
  --section-pt: clamp(40px, 3.5vw + 16px, 56px);
  /* Relleno inferior para separar armoniosamente de la siguiente sección */
  --section-pb: clamp(64px, 5vw + 32px, 96px);

  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 72px;
  --anchor-gap: 34px; /* <--- 24px: el margen justo debajo del menú al hacer clic */
  --container: 1240px;

  /* Motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--text); line-height: 1.08; letter-spacing: -0.02em; font-weight: 700; }
p a, .contact-alt a, .faq-body a { color: var(--lime); text-underline-offset: 3px; }
::selection { background: var(--lime); color: var(--on-lime); }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--lime); color: var(--on-lime); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
@media (min-width: 768px) { .container { padding-inline: 32px; } }

.icon { width: 1.15em; height: 1.15em; flex: none; }
.icon-lg { width: 32px; height: 32px; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm); letter-spacing: 0.01em;
  text-decoration: none; border: 1px solid transparent; border-radius: 999px; cursor: pointer;
  transition: transform 140ms var(--ease-out), background-color 180ms var(--ease-out), border-color 180ms var(--ease-out), color 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--lime); color: var(--on-lime); box-shadow: 0 8px 24px -12px rgba(140, 212, 75, 0.6); }
.btn-ghost { background: rgba(255,255,255,0.04); color: var(--text); border-color: var(--line-strong); }
.btn-sm { min-height: 44px; padding: 10px 18px; }
.btn-lg { min-height: 56px; padding: 14px 26px; font-size: var(--fs-base); }
.btn-xl { min-height: 64px; padding: 18px 32px; font-size: var(--fs-md); }
.btn-block { width: 100%; }

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: #9BE05A; box-shadow: 0 12px 32px -12px rgba(140, 212, 75, 0.8); }
  .btn-ghost:hover { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.08); }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  transition: background-color 240ms var(--ease-out), border-color 240ms var(--ease-out), backdrop-filter 240ms var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled, .site-header.is-open {
  background: rgba(28, 28, 28, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: var(--s-6); }

.brand { display: flex; flex-direction: column; gap: 2px; text-decoration: none; margin-right: auto; }
.brand-mark { position: relative; display: inline-flex; align-items: flex-start; }
.brand-mark img { height: 30px; width: auto; }
.brand-mark .tm { font-family: var(--font-head); font-size: 10px; font-weight: 600; color: var(--text-2); margin-left: 2px; line-height: 1; }
.brand-tagline { display: none; font-size: 11px; letter-spacing: 0.06em; color: var(--muted); padding-left: 2px; }
@media (min-width: 1180px) { .brand-tagline { display: block; } }

.main-nav ul { display: flex; gap: var(--s-8); }
.main-nav a:not(.btn) {
  position: relative; text-decoration: none; font-size: var(--fs-sm); font-weight: 500; color: var(--text-2);
  padding: 8px 0; transition: color 160ms var(--ease-out);
}
.main-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px;
  background: var(--grad); transform: scaleX(0); transform-origin: left;
  transition: transform 220ms var(--ease-out);
}
.main-nav a.is-active { color: var(--text); }
.main-nav a.is-active::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .main-nav a:not(.btn):hover { color: var(--text); }
  .main-nav a:not(.btn):hover::after { transform: scaleX(1); }
}
.nav-cta-mobile { display: none; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 12px;
  background: rgba(255,255,255,0.04); cursor: pointer; position: relative;
  transition: transform 140ms var(--ease-out);
}
.nav-toggle:active { transform: scale(0.97); }
.nav-toggle span {
  position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--text);
  transition: transform 220ms var(--ease-out);
}
.nav-toggle span:first-child { transform: translateY(-4px); }
.nav-toggle span:last-child { transform: translateY(4px); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

@media (max-width: 899px) {
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed; left: 0; right: 0; top: var(--header-h);
    height: calc(100dvh - var(--header-h));
    background: rgba(28, 28, 28, 0.98);
    padding: var(--s-8) 20px var(--s-10);
    display: flex; flex-direction: column; justify-content: space-between;
    opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden;
    transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), visibility 0s linear 220ms;
  }
  .site-header.is-open .main-nav {
    opacity: 1; transform: translateY(0); pointer-events: auto; visibility: visible;
    transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out), visibility 0s;
  }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li { border-bottom: 1px solid var(--line); }
  .main-nav a:not(.btn) { display: block; padding: 18px 0; font-family: var(--font-head); font-size: 1.75rem; font-weight: 600; color: var(--text); }
  .main-nav a:not(.btn)::after { display: none; }
  .nav-cta-mobile { display: inline-flex; min-height: 56px; }
}
@media (min-width: 900px) {
  .main-nav { display: flex; align-items: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--header-h) + var(--s-16));
  isolation: isolate; overflow: hidden; background: var(--bg-deep);
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 30% center; animation: heroZoom 1600ms var(--ease-out) both; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(28,28,28,0.55) 0%, rgba(28,28,28,0.35) 35%, rgba(28,28,28,0.92) 78%, #1C1C1C 100%),
    linear-gradient(90deg, rgba(28,28,28,0.85) 0%, rgba(28,28,28,0.2) 70%);
}
@media (min-width: 900px) {
  .hero-media img { object-position: center; }
  .hero-media::after {
    background:
      linear-gradient(90deg, rgba(24,24,24,0.94) 0%, rgba(24,24,24,0.72) 42%, rgba(24,24,24,0.1) 75%),
      linear-gradient(180deg, rgba(24,24,24,0.4) 0%, transparent 30%, transparent 70%, #1C1C1C 100%);
  }
}
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1); } }

.hero-content { padding-bottom: var(--s-12); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--lime); margin-bottom: var(--s-5);
}
.eyebrow::before { content: ""; width: 24px; height: 2px; border-radius: 2px; background: var(--grad); }
.hero-title { font-size: var(--fs-hero); max-width: 11ch; letter-spacing: -0.035em; line-height: 0.98; }
.hero-sub { max-width: 34rem; margin-top: var(--s-6); font-size: var(--fs-md); color: var(--text-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-10); }
@media (max-width: 480px) { .hero-actions .btn { width: 100%; } }

/* Hero entrance: marketing surface, allowed 500-800ms */
.hero-in { opacity: 0; transform: translateY(18px); animation: heroIn 700ms var(--ease-out) forwards; animation-delay: calc(120ms + var(--d) * 80ms); }
@keyframes heroIn { to { opacity: 1; transform: translateY(0); } }

.hero-facts { border-top: 1px solid var(--line); background: rgba(28,28,28,0.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); }
.facts li { padding: var(--s-5) var(--s-4) var(--s-5) 0; display: flex; flex-direction: column; gap: 2px; }
.facts li:nth-child(2n) { padding-left: var(--s-4); border-left: 1px solid var(--line); }
.facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
.facts strong { font-family: var(--font-head); color: var(--text); font-size: var(--fs-md); font-weight: 600; }
.facts span { font-size: var(--fs-xs); color: var(--muted); line-height: 1.4; }
@media (min-width: 900px) {
  .facts { grid-template-columns: repeat(4, 1fr); }
  .facts li { padding: var(--s-6) var(--s-6); border-top: 0 !important; border-left: 1px solid var(--line); }
  .facts li:first-child { padding-left: 0; border-left: 0; }
}

/* ---------- Sections ---------- */
.section {
  padding-top: var(--section-pt);
  padding-bottom: var(--section-pb);
}
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin-bottom: var(--s-16); }
.section-head-split { max-width: none; display: grid; gap: var(--s-6); align-items: end; }
@media (min-width: 900px) { .section-head-split { grid-template-columns: 1.4fr 1fr; gap: var(--s-16); } }
.section-title { font-size: var(--fs-2xl); }
.section-intro { margin-top: var(--s-6); font-size: var(--fs-md); max-width: 38rem; }
.section-head-split .section-intro { margin-top: 0; }
.lead { font-size: var(--fs-lg); color: var(--text); line-height: 1.45; font-family: var(--font-head); font-weight: 500; letter-spacing: -0.01em; }

/* ---------- Nosotros ---------- */
.about-grid { display: grid; gap: var(--s-10); align-items: center; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 5fr 6fr; gap: var(--s-20); } }
.about-media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--grad); }
.about-copy .section-title { margin-bottom: var(--s-8); }
.about-copy p + p { margin-top: var(--s-5); }

.mv-grid { display: grid; gap: var(--s-4); margin-top: var(--s-24); }
@media (min-width: 768px) { .mv-grid { grid-template-columns: 1fr 1fr; gap: 0; } }
.mv { padding: var(--s-8) 0; border-top: 1px solid var(--line-strong); }
@media (min-width: 768px) {
  .mv { padding: var(--s-10) var(--s-10) var(--s-10) 0; }
  .mv + .mv { padding-left: var(--s-10); border-left: 1px solid var(--line); }
}
.mv-label { font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--lime); margin-bottom: var(--s-4); font-weight: 600; }
.mv p { font-family: var(--font-head); font-size: var(--fs-lg); color: var(--text); line-height: 1.35; font-weight: 500; letter-spacing: -0.01em; }

.values { margin-top: var(--s-16); }
.values-title { font-size: var(--fs-xl); margin-bottom: var(--s-8); }
.values-list { display: grid; gap: 0; }
@media (min-width: 768px) { .values-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .values-list { grid-template-columns: repeat(4, 1fr); } }
.values-list li { padding: var(--s-6) 0; border-top: 1px solid var(--line); position: relative; }
@media (min-width: 768px) { .values-list li { padding: var(--s-8) var(--s-6) var(--s-8) 0; } }
.v-num { display: block; font-family: var(--font-head); font-size: var(--fs-sm); font-weight: 600; color: var(--muted); margin-bottom: var(--s-8); }
.values-list h4 { font-size: var(--fs-lg); margin-bottom: var(--s-2); }
.values-list p { font-size: var(--fs-sm); }
.values-list li::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 48px; background: var(--grad);
}

/* ---------- Servicios ---------- */
.services { display: grid; gap: var(--s-6); }
@media (min-width: 900px) { .services { grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: start; } .services .service:nth-child(2) { margin-top: var(--s-20); } }
.service { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.service-media { aspect-ratio: 16 / 10; overflow: hidden; }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .service:hover .service-media img { transform: scale(1.03); } }
.service-body { padding: var(--s-8) var(--s-6); }
@media (min-width: 768px) { .service-body { padding: var(--s-10); } }
.service-tag { display: inline-block; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lime); margin-bottom: var(--s-3); }
.service h3 { font-size: var(--fs-xl); margin-bottom: var(--s-4); }
.checks { margin: var(--s-6) 0 var(--s-8); display: grid; gap: var(--s-3); }
.checks li { position: relative; padding-left: 30px; color: var(--text); font-size: var(--fs-sm); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(140,212,75,0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%238CD44B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-family: var(--font-head); font-weight: 600; color: var(--lime); text-decoration: none;
}
.link-arrow .icon { transition: transform 180ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover .icon { transform: translateX(4px); } }

/* ---------- Proceso (timeline) ---------- */
.timeline { position: relative; display: grid; gap: var(--s-10); padding-left: 36px; }
.timeline::before, .timeline::after {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px;
}
.timeline::before { background: var(--line-strong); }
.timeline::after { background: var(--grad); transform-origin: top; transform: scaleY(var(--progress, 0)); }
.step { position: relative; }
.step-dot {
  position: absolute; left: -36px; top: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--line-strong); z-index: 1;
  transition: border-color 300ms var(--ease-out), background-color 300ms var(--ease-out);
}
.step.is-lit .step-dot { border-color: var(--lime); background: var(--lime); box-shadow: 0 0 0 6px rgba(140,212,75,0.14); }
.step-num { display: block; font-family: var(--font-head); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s-3); }
.step h3 { font-size: var(--fs-lg); margin-bottom: var(--s-3); max-width: 18ch; }
.step p { font-size: var(--fs-sm); max-width: 32ch; }

@media (min-width: 900px) {
  .timeline { grid-template-columns: repeat(4, 1fr); gap: var(--s-8); padding-left: 0; padding-top: 44px; }
  .timeline::before, .timeline::after { left: 8px; right: 8px; top: 7px; bottom: auto; width: auto; height: 2px; }
  .timeline::after { transform-origin: left; transform: scaleX(var(--progress, 0)); }
  .step-dot { left: 0; top: -44px; }
}

/* ---------- SPEE-VE ---------- */
.speeve-grid { display: grid; gap: var(--s-12); align-items: start; }
@media (min-width: 1000px) { .speeve-grid { grid-template-columns: 6fr 5fr; gap: var(--s-20); } }
.speeve-copy .section-title { margin-bottom: var(--s-8); }
.speeve-copy > p + p { margin-top: var(--s-4); }
.speeve-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; position: relative; }
@media (min-width: 1000px) { .speeve-media { position: sticky; top: calc(var(--header-h) + 32px); } }
.speeve-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }

.meters { display: flex; align-items: center; gap: var(--s-4); margin: var(--s-10) 0; padding: var(--s-6); border: 1px dashed var(--line-strong); border-radius: var(--radius); max-width: 440px; }
.meter { display: flex; flex-direction: column; align-items: center; gap: var(--s-3); text-align: center; flex: 1; }
.meter-face {
  width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--line-strong); position: relative; background: var(--surface);
}
.meter-face::after { content: ""; position: absolute; inset: 18px 14px; border-radius: 4px; background: #262626; border: 1px solid var(--line); }
.meter-ev .meter-face { border-color: var(--lime); box-shadow: 0 0 0 6px rgba(140,212,75,0.12); }
.meter-label { font-family: var(--font-head); font-size: var(--fs-sm); font-weight: 600; color: var(--text); line-height: 1.3; }
.meter-label small { font-family: var(--font-body); font-weight: 400; color: var(--muted); font-size: var(--fs-xs); }
.meter-link { flex: 0 0 40px; height: 2px; background: var(--grad); position: relative; top: -22px; }

.callout { display: flex; gap: var(--s-5); padding: var(--s-6); border-radius: var(--radius); background: linear-gradient(135deg, rgba(140,212,75,0.14), rgba(8,115,45,0.16)); border: 1px solid rgba(140,212,75,0.3); }
.callout .icon { color: var(--lime); }
.callout h3 { font-size: var(--fs-md); margin-bottom: var(--s-2); }
.callout p { font-size: var(--fs-sm); color: var(--text-2); }

/* ---------- Modelos ---------- */
.models { display: grid; gap: var(--s-6); }
@media (min-width: 900px) {
  .models { grid-template-columns: 1fr 1fr; }
  .models .model-featured { grid-column: 1 / -1; display: grid; grid-template-columns: 2fr 3fr; }
}
.model { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.model-visual {
  position: relative; display: grid; place-items: center; min-height: 220px; padding: var(--s-8);
  background: radial-gradient(60% 60% at 50% 45%, rgba(140,212,75,0.16), transparent 70%), var(--bg-deep);
  border-bottom: 1px solid var(--line);
}
.model-featured .model-visual { min-height: 280px; }
@media (min-width: 900px) { .model-featured .model-visual { border-bottom: 0; border-right: 1px solid var(--line); } }
.charger-photo { width: auto; height: 200px; max-width: 100%; object-fit: contain; filter: drop-shadow(0 18px 28px rgba(0,0,0,0.55)); transition: transform 500ms var(--ease-out); }
.model-featured .charger-photo { height: 340px; }
@media (hover: hover) and (pointer: fine) { .model:hover .charger-photo { transform: translateY(-4px); } }
.model-body { padding: var(--s-8) var(--s-6); display: flex; flex-direction: column; gap: var(--s-6); flex: 1; }
@media (min-width: 768px) { .model-body { padding: var(--s-10); } }
.badge { display: inline-block; font-size: var(--fs-xs); font-weight: 600; padding: 4px 12px; border-radius: 999px; background: var(--lime); color: var(--on-lime); margin-bottom: var(--s-4); }
.badge-muted { background: rgba(255,255,255,0.08); color: var(--text-2); }
.model h3 { font-size: var(--fs-xl); }
.kw { font-weight: 500; color: var(--muted); }
.model-price { margin-top: var(--s-3); font-family: var(--font-head); font-size: var(--fs-lg); color: var(--text); font-weight: 600; }
.model-price small { font-family: var(--font-body); font-size: var(--fs-xs); color: var(--muted); font-weight: 400; margin-left: 6px; }
.specs { display: grid; gap: 0; }
.specs div { display: grid; grid-template-columns: 110px 1fr; gap: var(--s-4); padding: 12px 0; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; color: var(--text); }
@media (min-width: 1100px) { .model-featured .specs { grid-template-columns: 1fr 1fr; column-gap: var(--s-8); } }

/* ---------- Paquetes ---------- */
.pricing { display: grid; gap: var(--s-6); }
@media (min-width: 900px) { .pricing { grid-template-columns: 1fr 1fr; align-items: start; } }
.price-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-8) var(--s-6); display: flex; flex-direction: column; gap: var(--s-6); }
@media (min-width: 768px) { .price-group { padding: var(--s-10) var(--s-8); } }
.price-group-featured { position: relative; background: linear-gradient(180deg, rgba(140,212,75,0.1), rgba(8,115,45,0.06) 60%), var(--surface); border-color: rgba(140,212,75,0.35); }
.price-group-featured::before { content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 3px; border-radius: 0 0 3px 3px; background: var(--grad); }
.pg-head h3 { font-size: var(--fs-lg); }
.pg-head p { font-size: var(--fs-xs); color: var(--muted); margin-top: 4px; letter-spacing: 0.04em; }
.price-rows li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-3) var(--s-4); padding: var(--s-4) 0; border-top: 1px solid var(--line); }
.pi-info { flex: 1 1 200px; display: flex; flex-direction: column; gap: 4px; }
.pi-info .pr-name { color: var(--text); font-weight: 500; }
.pr-desc { font-size: var(--fs-xs); color: var(--muted); line-height: 1.5; }
.btn-interest { min-height: 44px; padding: 8px 16px; font-size: var(--fs-xs); background: transparent; color: var(--lime); border-color: rgba(140,212,75,0.55); }
.price-group-featured .btn-interest { background: var(--lime); color: var(--on-lime); border-color: var(--lime); }
@media (hover: hover) and (pointer: fine) {
  .btn-interest:hover { background: rgba(140,212,75,0.12); border-color: var(--lime); }
  .price-group-featured .btn-interest:hover { background: #9BE05A; }
}
@media (max-width: 480px) { .btn-interest { width: 100%; } }
.pr-name { color: var(--text-2); font-size: var(--fs-sm); }
.pr-price { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-lg); color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-group-featured .pr-price { font-size: var(--fs-lg); }
.price-group-featured .pr-name { color: var(--text); }
.pg-note { font-size: var(--fs-sm); color: var(--muted); }
.pricing-notes { margin-top: var(--s-10); display: grid; gap: var(--s-3); max-width: 820px; font-size: var(--fs-sm); }
.pricing-notes strong { color: var(--text); }
.pricing-cta { margin-top: var(--s-4); font-family: var(--font-head); font-size: var(--fs-md); color: var(--text); }

/* ---------- Garantía ---------- */
.warranty { position: relative; isolation: isolate; overflow: hidden; padding-top: var(--section-pt); padding-bottom: var(--section-pb); background: var(--bg-deep); }
.warranty-bg { position: absolute; inset: 0; z-index: -1; }
.warranty-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; opacity: 0.6; }
.warranty-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #1C1C1C 25%, rgba(28,28,28,0.75) 55%, rgba(28,28,28,0.25)); }
@media (max-width: 899px) { .warranty-bg::after { background: rgba(28,28,28,0.82); } }
.warranty-inner { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 900px) { .warranty-inner { grid-template-columns: auto 1fr; gap: var(--s-16); } }
.warranty-num { font-family: var(--font-head); font-weight: 700; font-size: clamp(9rem, 6rem + 14vw, 20rem); line-height: 0.8; letter-spacing: -0.06em; }
.warranty-copy { max-width: 620px; }
.warranty-copy .section-title { margin-bottom: var(--s-6); }

/* ---------- Cobertura ---------- */
.coverage-grid { display: grid; gap: var(--s-12); align-items: center; }
@media (min-width: 900px) { .coverage-grid { grid-template-columns: 1fr 1fr; gap: var(--s-20); } }
.coverage-copy .section-title { margin-bottom: var(--s-6); }
.cities { margin-top: var(--s-10); }
.cities li { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-4) 0; border-top: 1px solid var(--line); font-family: var(--font-head); font-size: var(--fs-xl); font-weight: 600; color: var(--text); letter-spacing: -0.02em; }
.city-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(140,212,75,0.14); flex: none; }
.cities .is-soon { color: var(--muted); }
.cities .is-soon .city-dot { background: transparent; border: 2px dashed var(--muted); box-shadow: none; }
.cities em { font-style: normal; font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lime); border: 1px solid rgba(140,212,75,0.4); border-radius: 999px; padding: 3px 10px; }
.coverage-map { background: var(--bg-deep); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-4); }
.coverage-map svg { width: 100%; height: auto; }
.map-city circle:not(.pulse) { fill: var(--lime); }
.map-city .pulse { fill: rgba(140,212,75,0.25); transform-box: fill-box; transform-origin: center; animation: pulse 2400ms var(--ease-out) infinite; }
.map-city:nth-of-type(2) .pulse { animation-delay: 400ms; }
.map-city:nth-of-type(3) .pulse { animation-delay: 800ms; }
.map-city:nth-of-type(4) .pulse { animation-delay: 1200ms; }
.map-city text { fill: var(--text); font-family: var(--font-head); font-weight: 600; font-size: 15px; }
.map-city-soon circle { fill: none !important; stroke: var(--muted); stroke-width: 2; stroke-dasharray: 3 3; }
.map-city-soon text { fill: var(--muted); font-size: 13px; }
.map-lines .line-soon { opacity: 0.35; }
@keyframes pulse { 0% { transform: scale(0.95); opacity: 1; } 100% { transform: scale(2.4); opacity: 0; } }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: var(--s-10); }
@media (min-width: 900px) { .faq-grid { grid-template-columns: 2fr 3fr; gap: var(--s-20); } }
.faq-grid .section-title { margin-bottom: var(--s-6); }
.faq { border-top: 1px solid var(--line-strong); }
.faq:last-child { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s-6);
  padding: var(--s-6) 0; min-height: 44px;
  font-family: var(--font-head); font-size: var(--fs-lg); font-weight: 600; color: var(--text); letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); transition: background-color 200ms var(--ease-out), border-color 200ms var(--ease-out); }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--text); transition: transform 240ms var(--ease-out); }
.faq-icon::after { transform: rotate(90deg); }
.faq[open] .faq-icon { background: var(--lime); border-color: var(--lime); }
.faq[open] .faq-icon::before, .faq[open] .faq-icon::after { background: var(--on-lime); }
.faq[open] .faq-icon::after { transform: rotate(0deg); }
.faq-body { overflow: hidden; }
.faq-body p { padding-bottom: var(--s-6); max-width: 60ch; }
@media (hover: hover) and (pointer: fine) { .faq summary:hover .faq-icon { border-color: var(--lime); } }

/* ---------- Contacto ---------- */
.contact { position: relative; isolation: isolate; overflow: hidden; padding-top: var(--section-pt); padding-bottom: var(--section-pb); background: var(--bg-deep); }
.contact-bg { position: absolute; inset: 0; z-index: -1; }
.contact-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.contact-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #1C1C1C 0%, rgba(28,28,28,0.75) 40%, rgba(28,28,28,0.92) 100%); }
.contact-grid { display: grid; gap: var(--s-12); align-items: start; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: var(--s-20); } }
.contact-title { font-size: var(--fs-2xl); margin-bottom: var(--s-6); }
.contact-copy > p:not(.eyebrow) { font-size: var(--fs-md); max-width: 30rem; margin-bottom: var(--s-10); }
@media (max-width: 480px) { .contact-copy .btn-xl { width: 100%; } }
.contact-copy > p.contact-alt { margin-bottom: 0; margin-top: var(--s-6); font-size: var(--fs-sm); color: var(--muted); }

.contact-form { background: rgba(43,43,43,0.92); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: var(--s-8) var(--s-6); display: grid; gap: var(--s-5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
@media (min-width: 768px) { .contact-form { padding: var(--s-10); } }
.form-title { font-size: var(--fs-lg); margin-bottom: var(--s-1); }
.field-row { display: grid; gap: var(--s-5); }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-size: var(--fs-sm); font-weight: 500; color: var(--text); }
.field label .optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--bg-deep); border: 1px solid var(--line-strong); color: var(--text); font-size: 1rem;
  transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23C9C9C4' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #85857F; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px rgba(140,212,75,0.2); }
.field .is-invalid, .field-check .is-invalid { border-color: #F07A6A; }
.field-check { display: flex; gap: var(--s-3); align-items: flex-start; font-size: var(--fs-sm); }
.field-check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--lime); flex: none; cursor: pointer; }
.field-check label { cursor: pointer; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5em; font-size: var(--fs-sm); }
.form-status.is-ok { color: var(--lime); }
.form-status.is-error { color: #F4A093; }
.contact-form button[disabled] { opacity: 0.7; cursor: progress; }

/* ---------- Footer ---------- */
.site-footer { background: #181818; border-top: 1px solid var(--line); padding-top: var(--s-16); }
.footer-inner { display: grid; gap: var(--s-10); padding-bottom: var(--s-12); }
@media (min-width: 900px) { .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; } }
.brand-mark-lg img { height: 38px; }
.footer-brand p { margin-top: var(--s-3); color: var(--muted); font-size: var(--fs-sm); }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 4px var(--s-6); align-content: start; }
.footer-nav a, .footer-contact a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; text-decoration: none; color: var(--text-2); font-size: var(--fs-sm); transition: color 160ms var(--ease-out); }
.footer-contact { display: grid; align-content: start; }
@media (hover: hover) and (pointer: fine) { .footer-nav a:hover, .footer-contact a:hover { color: var(--lime); } }
.footer-bottom { border-top: 1px solid var(--line); padding-block: var(--s-6) var(--s-8); display: grid; gap: var(--s-2); font-size: var(--fs-xs); color: var(--muted); }
.footer-bottom a { color: var(--text-2); }
.credit { font-size: var(--fs-xs); color: var(--muted); }
@media (min-width: 900px) { .footer-bottom { grid-template-columns: 1fr auto; } }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 90; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: var(--lime); color: var(--on-lime);
  box-shadow: 0 10px 30px -8px rgba(0,0,0,0.6);
  opacity: 0; transform: translateY(12px) scale(0.95); pointer-events: none;
  transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out);
}
.wa-float .icon { width: 28px; height: 28px; }
.wa-float.is-visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.wa-float:active { transform: scale(0.97); }
@media (min-width: 900px) { .wa-float { display: none; } }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); transition-delay: var(--stagger, 0ms); }
.js .reveal.is-in { opacity: 1; transform: translateY(0); }

/* ---------- Reduced motion: gentler, not zero ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media img { animation: none; }
  .hero-in { transform: none; animation: heroFade 400ms linear forwards; animation-delay: 0ms; }
  @keyframes heroFade { to { opacity: 1; } }
  .js .reveal { transform: none; transition: opacity 400ms linear; }
  .map-city .pulse { animation: none; opacity: 0.4; }
  .service-media img, .charger-photo, .link-arrow .icon { transition: none; }
}

/* ---------- Servicios: electrolineras + sectores ---------- */
.service-wide { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .services .service-wide { display: grid; grid-template-columns: 5fr 6fr; margin-top: 0; }
  .service-wide .service-media { aspect-ratio: auto; height: 100%; min-height: 420px; }
}
.service-wide .service-media img { object-position: 72% center; }
.service-wide .btn { margin-top: var(--s-2); }

.sectors { margin-top: var(--s-16); padding-top: var(--s-10); border-top: 1px solid var(--line-strong); }
.sectors-title { font-family: var(--font-head); font-size: var(--fs-lg); font-weight: 600; color: var(--text); margin-bottom: var(--s-6); }
.sectors-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3); }
@media (min-width: 600px) { .sectors-list { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .sectors-list { grid-template-columns: repeat(6, 1fr); } }
.sectors-list li { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-3); padding: var(--s-5) var(--s-4); border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(255,255,255,0.025); color: var(--text); font-size: var(--fs-sm); font-weight: 500; line-height: 1.3; transition: border-color 180ms var(--ease-out), background-color 180ms var(--ease-out); }
.sector-icon { width: 28px; height: 28px; color: var(--lime); flex: none; }
.sectors-list .sectors-more { border-style: dashed; color: var(--muted); }
.sectors-list .sectors-more .sector-icon { color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .sectors-list li:hover { border-color: rgba(140,212,75,0.45); background: rgba(140,212,75,0.06); } }
.nowrap { white-space: nowrap; }

/* ---------- Marcas (logo cloud / marquee) ---------- */
.brands { padding-block: clamp(64px, 4vw + 40px, 112px); background: var(--bg-deep); border-block: 1px solid var(--line); overflow: hidden; }
.brands-head { max-width: 720px; margin-bottom: var(--s-12); }
.brands-title { font-size: var(--fs-xl); }
.brands-intro { margin-top: var(--s-4); font-size: var(--fs-md); }

.brands-marquee {
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.brands-track { display: flex; width: max-content; animation: brandsScroll 45s linear infinite; }
.brands-marquee:hover .brands-track, .brands-marquee:focus-within .brands-track { animation-play-state: paused; }
@keyframes brandsScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.brands-list { display: flex; gap: var(--s-4); padding-right: var(--s-4); }
.brand-logo {
  position: relative; flex: none; width: 200px; height: 104px; padding: var(--s-6) var(--s-8);
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255,255,255,0.02);
  transition: border-color 200ms var(--ease-out), background-color 200ms var(--ease-out);
}
@media (min-width: 900px) { .brand-logo { width: 220px; height: 112px; } }
.brand-logo img { grid-area: 1 / 1; max-width: 100%; max-height: 48px; width: auto; height: auto; object-fit: contain; }
.brand-gray { filter: grayscale(1) brightness(1.5) contrast(0.85); opacity: 0.6; transition: opacity 250ms var(--ease-out); }
.brand-color { opacity: 0; transition: opacity 250ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .brand-logo:hover { border-color: var(--line-strong); background: rgba(255,255,255,0.04); }
  .brand-logo:hover .brand-color { opacity: 1; }
  .brand-logo:hover .brand-gray { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .brands-marquee { -webkit-mask-image: none; mask-image: none; }
  .brands-track { animation: none; width: auto; display: block; }
  .brands-track .brands-list[aria-hidden="true"] { display: none; }
  .brands-list { flex-wrap: wrap; justify-content: center; padding-inline: 20px; }
}