@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* Excelencia Automotriz - Diseño oficial (basado en Ver-Template-Final) */
:root {
  --bg-light: #F8FAFC;
  --dark: #0F172A;
  --blue: #1A73E8;
  --gold: #FFCC00;
  --gold-d: #FFD700;
  --slate-500: #64748B;
  --slate-600: #475569;
  --emerald: #10B981;
  --red: #DC2626;
  --border: #E2E8F0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-light);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}
.text-balance { text-wrap: balance; }
a { color: inherit; }

/* ---- Barra superior dorada ---- */
.topbar {
  background: var(--gold);
  color: var(--dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 10px 16px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.topbar .tb-sep { width: 1px; height: 12px; background: rgba(0,0,0,.2); display: inline-block; margin: 0 8px; vertical-align: middle; }

/* ---- Header ---- */
header {
  position: sticky;
  top: 39px;
  z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.navbar {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { height: 42px; width: auto; display: block; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--dark); color: var(--gold);
  font-weight: 900; font-size: 11px;
  display: flex; align-items: center; justify-content: center;
}
.brand-name { font-weight: 800; font-size: 14px; letter-spacing: -.01em; line-height: 1.1; }
.brand-sub { font-size: 10px; font-weight: 600; color: var(--slate-500); text-transform: uppercase; letter-spacing: .12em; display: flex; align-items: center; gap: 5px; }
.brand-sub .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--slate-600);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  transition: all .15s;
}
.nav-links a:hover { background: var(--bg-light); color: var(--dark); }
.nav-links a.active { background: var(--dark); color: var(--gold); }

.cta-top {
  height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.cta-top:hover { background: #1557b0; }
.cta-top.wa { background: #25D366; }
.cta-top.wa:hover { background: #1eb857; }

/* ---- Hero ---- */
.hero {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 40px;
  overflow: hidden;
}
.hero-blob {
  position: absolute;
  top: -80px; right: -80px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(26,115,232,.05), rgba(255,204,0,.10));
  filter: blur(60px);
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
  max-width: 720px;
  text-wrap: balance;
}
.hero h1 .hl { color: var(--blue); }
.hero .sub {
  margin-top: 14px;
  font-size: 17px;
  color: var(--slate-600);
  max-width: 620px;
}
.hero .stats { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 22px; }
.stat {
  display: flex; align-items: center; gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
}
.stat svg { color: var(--emerald); flex-shrink: 0; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: center; }

/* Batería 3D */
.battery-wrap { position: relative; display: flex; justify-content: center; align-items: center; }
.battery-img {
  width: 100%;
  max-width: 560px;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(15,23,42,.18);
  border: 1px solid rgba(255,255,255,.6);
  filter: saturate(1.08) contrast(1.04);
  transition: opacity .4s ease, transform .4s ease;
}
.battery-wrap.scrolled .battery-img { opacity: .25; transform: scale(.92); }

/* ---- Section ---- */
.section { max-width: 1280px; margin: 0 auto; padding: 40px 24px; }
.section-header { max-width: 760px; margin-bottom: 22px; }
.section-header .kicker {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: var(--blue);
}
.section-header h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.01em; margin-top: 4px; }
.section-header p { color: var(--slate-600); margin-top: 8px; font-size: 15px; }
.section.dark { background: var(--dark); color: #fff; }
.section.dark .section-header h2 { color: #fff; }
.section.dark .section-header p { color: #CBD5E1; }

/* ---- Cards ---- */
.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}
.card.gold { border-color: rgba(255,204,0,.6); }
.card.dark { background: #1E293B; border-color: rgba(255,255,255,.08); color: #fff; }
.card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.card p { color: var(--slate-600); font-size: 14px; }
.card.dark p { color: #CBD5E1; }
.card .tag {
  display: inline-block; font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em;
  background: rgba(26,115,232,.08); color: var(--blue);
  padding: 3px 8px; border-radius: 999px; margin-bottom: 8px;
}
.card .tag.gold { background: rgba(255,204,0,.2); color: #B45309; }
.card .tag.red { background: rgba(220,38,38,.1); color: var(--red); }
.card .tag.green { background: rgba(16,185,129,.1); color: #047857; }

/* ---- Tabla de precios ---- */
.table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--border); background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
thead th {
  background: var(--dark); color: var(--gold);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  padding: 12px 16px; text-align: left;
}
tbody td { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
tbody tr:last-child td { border-bottom: none; }
tbody tr.popular { background: rgba(255,204,0,.07); }
td.ref { font-weight: 800; }
td.cc { color: var(--slate-500); font-size: 12px; font-weight: 600; }
td.usada { color: var(--emerald); font-weight: 700; white-space: nowrap; }
td.strike { text-decoration: line-through; color: var(--slate-500); }
.badge-popular {
  display: inline-block; font-size: 10px; font-weight: 800;
  background: var(--gold); color: var(--dark);
  padding: 2px 8px; border-radius: 999px; margin-left: 6px; vertical-align: middle;
}
.badge-ahorro { display: inline-block; font-size: 10px; font-weight: 800; background: var(--emerald); color: #fff; padding: 2px 8px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }

/* ---- Mapa localidades ---- */
.map-wrap {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 20px;
}
.map-canvas {
  position: relative;
  background:
    linear-gradient(rgba(15,23,42,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,.04) 1px, transparent 1px),
    linear-gradient(135deg, #EEF2FF, #F8FAFC);
  background-size: 32px 32px, 32px 32px, cover;
  border-radius: 12px;
  min-height: 420px;
  overflow: hidden;
}
.map-pin {
  position: absolute; transform: translate(-50%, -50%);
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; cursor: pointer;
  border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.25);
  transition: transform .15s;
}
.map-pin:hover { transform: translate(-50%, -50%) scale(1.15); }
.map-pin.gold { background: var(--gold); color: var(--dark); }
.map-pin.sincomp { background: var(--red); }
.map-tooltip {
  position: absolute; transform: translate(-50%, -130%);
  background: var(--dark); color: #fff; font-size: 11px; font-weight: 600;
  padding: 6px 10px; border-radius: 8px; white-space: nowrap; z-index: 10;
  pointer-events: none;
}
.map-tooltip::after { content:''; position:absolute; left:50%; bottom:-4px; transform: translateX(-50%); border: 4px solid transparent; border-top-color: var(--dark); }
.map-list { max-height: 420px; overflow-y: auto; padding-right: 6px; }
.map-search {
  width: 100%; height: 42px; padding: 0 14px; margin-bottom: 12px;
  border-radius: 999px; border: 1px solid var(--border); font-size: 14px;
  background: var(--bg-light); outline: none;
}
.map-search:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,115,232,.15); background: #fff; }
.map-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px; border-radius: 12px; cursor: pointer; border: 1px solid transparent;
  transition: all .12s;
}
.map-item:hover, .map-item.active { background: rgba(26,115,232,.06); border-color: rgba(26,115,232,.2); }
.map-item .nm { font-weight: 700; font-size: 14px; }
.map-item .zn { font-size: 11px; color: var(--slate-500); font-weight: 600; }
.map-item .sc { font-size: 10px; font-weight: 800; color: var(--red); text-transform: uppercase; }
.map-item .rf { font-size: 11px; font-weight: 700; color: var(--blue); }

/* ---- FAQ ---- */
.faq-item { border: 1px solid var(--border); border-radius: 14px; margin-bottom: 10px; overflow: hidden; background: #fff; }
.faq-item summary {
  cursor: pointer; padding: 14px 16px; font-weight: 600; font-size: 14px;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { transition: transform .2s; color: var(--blue); flex-shrink: 0; }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item .faq-body { padding: 0 16px 14px; color: var(--slate-600); font-size: 14px; }

/* ---- CTA ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--dark), #1E3A8A);
  color: #fff; border-radius: 20px;
  padding: 36px 28px; text-align: center; max-width: 760px; margin: 0 auto;
}
.cta-banner h2 { font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 800; }
.cta-banner p { color: #CBD5E1; margin-top: 8px; font-size: 15px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px; padding: 14px 28px;
  border-radius: 999px; border: none; cursor: pointer;
  font-size: 15px; font-weight: 700; text-decoration: none;
  transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translateY(-1px); }
.btn.wa { background: #25D366; color: #fff; box-shadow: 0 8px 24px rgba(37,211,102,.35); }
.btn.wa:hover { background: #1eb857; }
.btn.gold { background: var(--gold); color: var(--dark); box-shadow: 0 8px 24px rgba(255,204,0,.4); }
.btn.blue { background: var(--blue); color: #fff; }

/* WhatsApp flotante */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 100;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(37,211,102,.5);
  text-decoration: none;
  animation: floatpulse 2s infinite;
}
@keyframes floatpulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.45); }
  70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ---- Footer ---- */
footer {
  background: var(--dark); color: #94A3B8;
  padding: 40px 24px 30px; margin-top: 40px; text-align: center; font-size: 13px;
}
footer .f-title { color: var(--gold); font-weight: 800; font-size: 15px; margin-bottom: 8px; }
footer a { color: #E2E8F0; text-decoration: none; }
footer a:hover { color: var(--gold); }

/* ---- Breadcrumb ---- */
.breadcrumb { max-width: 1280px; margin: 0 auto; padding: 14px 24px 0; font-size: 13px; color: var(--slate-500); }
.breadcrumb a { color: var(--blue); text-decoration: none; }

/* ---- Article ---- */
.article { max-width: 800px; }
.article h2 { font-size: 1.35rem; font-weight: 800; margin: 26px 0 10px; color: var(--dark); }
.article p, .article li { color: var(--slate-600); font-size: 16px; margin-bottom: 14px; }
.article ul, .article ol { padding-left: 22px; margin-bottom: 14px; }
.article strong { color: var(--dark); }
.article-badge {
  display: inline-block; background: rgba(26,115,232,.08); color: var(--blue);
  padding: 4px 12px; border-radius: 999px; font-size: 11px; font-weight: 700; margin-bottom: 12px;
}

/* Utilidades */
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-2xl { max-width: 800px; }
.max-w-3xl { max-width: 960px; }
.mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 20px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; } .mb-8 { margin-bottom: 32px; }
.text-center { text-align: center; }
.text-sm { font-size: 14px; } .text-xs { font-size: 12px; }
.text-gold { color: var(--gold); } .text-blue { color: var(--blue); }
.text-muted { color: var(--slate-600); }
.font-bold { font-weight: 700; } .font-extrabold { font-weight: 800; }
.w-full { width: 100%; }
.list-none { list-style: none; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.flex-wrap { flex-wrap: wrap; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .battery-wrap { order: -1; }
  .battery-img { max-width: 400px; margin: 0 auto; }
  .map-wrap { grid-template-columns: 1fr; }
  .map-canvas { min-height: 300px; }
  .nav-links { display: none; }
  .navbar { height: 56px; padding: 0 16px; }
  header { top: 35px; }
  .topbar { font-size: 11px; }
  .topbar .tb-sep { margin: 0 5px; }
  .brand-logo { height: 34px; }
  .hero { padding: 32px 16px 24px; }
  .section { padding: 28px 16px; }
}
