﻿/* ============================================================
   LOGRA MÃS - Design System (Premium Dark / Glassmorphism)
   ============================================================ */
:root {
  --bg: #020617;
  --bg-2: #0f172a;
  --surface: rgba(30, 41, 59, 0.5);
  --surface-solid: #0f172a;
  --surface-hover: rgba(51, 65, 85, 0.6);
  --stroke: rgba(255, 255, 255, 0.1);
  --stroke-strong: rgba(255, 255, 255, 0.18);
  --primary: #8b5cf6;
  --primary-dark: #6d28d9;
  --primary-glow: rgba(139, 92, 246, 0.35);
  --secondary: #10b981;
  --tertiary: #f472b6;
  --warning: #f59e0b;
  --text: #f8fafc;
  --text-2: #cbd5e1;
  --text-3: #94a3b8;
  --radius-btn: 8px;
  --radius-card: 16px;
  --container: 1280px;
  --font: 'Inter', system-ui, sans-serif;
  --font-head: 'Montserrat', 'Inter', sans-serif;
  --grad: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 50%, #6d28d9 100%);
  --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 40px var(--primary-glow);

  /* Paleta del hero (spec) */
  --ink: #0a0418;
  --ink-2: #100720;
  --ink-3: #0d0520;
  --purple: #a855f7;
  --purple-dark: #6d28d9;
  --purple-deep: #7e22ce;
  --purple-light: #c9a3fb;
  --wa: #25D366;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }

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

/* ---------- Glass ---------- */
.glass {
  background: var(--surface);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-card);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .8rem 1.5rem;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: .95rem;
  border: 0;
  transition: all .25s ease;
  white-space: nowrap;
}
.btn i { font-size: 1.1rem; }
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 20px rgba(109, 40, 217, .4);
}
.btn-primary:hover { box-shadow: var(--shadow-glow); transform: translateY(-2px); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--primary);
}
.btn-ghost:hover { background: rgba(139, 92, 246, .12); transform: translateY(-2px); }
.btn-wa {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(16, 185, 129, .35);
}
.btn-wa:hover { filter: brightness(1.1); transform: translateY(-2px); }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Header (spec: glassmorphism fijo) ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(10, 4, 24, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.site-header.scrolled {
  background: rgba(13, 5, 32, .92);
  border-bottom-color: rgba(255, 255, 255, .06);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .45);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.brand-icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #a855f7, #6d28d9);
  color: #fff; font-size: 1.35rem;
  box-shadow: 0 0 18px rgba(168, 85, 247, .45);
}
.brand-text { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; letter-spacing: .05em; color: #fff; }
.brand-text b { color: var(--purple-light); }
.main-nav { display: flex; align-items: center; gap: 1.15rem; }
.main-nav > a { font-weight: 600; color: rgba(255, 255, 255, .82); font-size: .86rem; transition: color .2s; white-space: nowrap; }
.main-nav > a:hover { color: var(--purple-light); }
.header-cta { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.wa-outline {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: 10px 16px; border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(10, 4, 24, .3);
  color: #fff; font-weight: 600; font-size: .88rem;
  transition: all .25s;
}
.wa-outline:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .6); }
.wa-outline i { color: var(--wa); font-size: 1.05rem; }
.cotiza-now {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: 10px 16px; border-radius: 8px;
  background: var(--purple); color: #fff; font-weight: 700; font-size: .88rem;
  box-shadow: 0 0 20px rgba(168, 85, 247, .4);
  transition: all .25s;
}
.cotiza-now:hover { box-shadow: 0 0 30px rgba(168, 85, 247, .65); transform: scale(1.03); }
.mobile-cta { display: none; }
.nav-toggle { display: none; background: none; border: 1px solid rgba(255, 255, 255, .2); color: #fff; font-size: 1.5rem; width: 44px; height: 44px; border-radius: 10px; align-items: center; justify-content: center; }
.nav-toggle i { display: block; }

/* ---------- Hero (spec: pantalla completa cinematogrÃ¡fica) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--ink);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; animation: heroCross 24s infinite; will-change: opacity, transform; }
.hero-slide:nth-child(2) { animation-delay: 8s; }
.hero-slide:nth-child(3) { animation-delay: 16s; }
.hero-slide img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.05);
  animation: heroKen 12s ease-out infinite alternate;
}
.hero-slide:nth-child(2) img { animation-delay: 8s; }
.hero-slide:nth-child(3) img { animation-delay: 16s; }
@keyframes heroCross {
  0% { opacity: 0; }
  2.5% { opacity: 1; }
  30.83% { opacity: 1; }
  33.33% { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes heroKen {
  from { transform: scale(1.05) translateY(0); }
  to { transform: scale(1.13) translateY(-1.5%); }
}
.hero-tint { position: absolute; inset: 0; z-index: 1; background: rgba(10, 4, 24, .42); }
.hero-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg,
    rgba(10, 4, 24, .95) 0%,
    rgba(10, 4, 24, .58) 30%,
    rgba(16, 7, 32, .38) 52%,
    rgba(10, 4, 24, .72) 82%,
    #0a0418 100%);
}
.hero-vignette {
  position: absolute; inset: 0; z-index: 3;
  background: radial-gradient(ellipse at center, transparent 42%, rgba(10, 4, 24, .85) 100%);
}
.hero-orbs { position: absolute; inset: 0; z-index: 3; overflow: hidden; pointer-events: none; }
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(90px);
  animation: orbPulse 6s ease-in-out infinite;
}
.orb-purple { width: 700px; height: 700px; background: rgba(168, 85, 247, .4); top: -200px; right: -180px; }
.orb-blue { width: 620px; height: 620px; background: rgba(59, 130, 246, .3); bottom: -220px; left: -150px; animation-delay: 2s; }
.orb-lilac { width: 520px; height: 520px; background: rgba(201, 163, 251, .26); top: 28%; right: 22%; animation-delay: 4s; }
.hero-sparkles { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.sparkle {
  position: absolute; color: rgba(201, 163, 251, .85);
  animation: sparkleFloat 4s ease-in-out infinite, sparklePulse 2.5s ease-in-out infinite;
}
.hero-content {
  position: relative; z-index: 5;
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  max-width: 900px; width: 100%;
  margin: 0 auto;
  padding: 130px 1.5rem 100px;
}

/* Logo central */
.hero-logo { position: relative; margin-bottom: 1.5rem; }
.hero-logo-halo {
  position: absolute; inset: -45px; border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, .5), transparent 70%);
  filter: blur(30px);
  animation: glowPulse 4s ease-in-out infinite;
}
.hero-logo-icon {
  position: relative;
  width: 168px; height: 168px; margin: 0 auto;
  border-radius: 34px;
  background: linear-gradient(135deg, #c9a3fb, #a855f7 45%, #6d28d9);
  display: grid; place-items: center;
  color: #fff; font-size: 5.6rem;
  box-shadow: 0 24px 60px rgba(109, 40, 217, .5), inset 0 0 40px rgba(255, 255, 255, .14);
  animation: heroIn .9s .05s both;
}
.hero-logo-name {
  margin-top: 1.05rem;
  font-family: var(--font-head); font-weight: 900;
  font-size: 1.45rem; letter-spacing: .14em; color: #fff;
  animation: heroIn .9s .15s both;
}
.hero-logo-name b { color: var(--purple-light); }
.hero-logo-tag {
  margin-top: .35rem;
  font-size: .7rem; letter-spacing: .4em; text-transform: uppercase;
  color: rgba(255, 255, 255, .55); font-weight: 600;
  animation: heroIn .9s .25s both;
}

/* Texto del hero sincronizado con el carrusel */
.hero-text-slides {
  display: grid;
  align-items: center;
  width: 100%;
  animation: heroIn .9s .3s both;
}
.hero-text {
  grid-area: 1 / 1;
  display: flex; flex-direction: column; align-items: center;
  opacity: 0;
  animation: heroCross 24s infinite;
  will-change: opacity;
}
.hero-text:nth-child(2) { animation-delay: 8s; }
.hero-text:nth-child(3) { animation-delay: 16s; }

/* TÃ­tulo */
.hero-title {
  font-family: var(--font-head);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2rem, 4.6vw, 3.9rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: #fff;
}
.hero-title .grad-text {
  background: linear-gradient(100deg, #c9a3fb, #a855f7 45%, #6d28d9);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* SubtÃ­tulo */
.hero-sub {
  margin-top: 1.4rem;
  max-width: 600px;
  color: rgba(255, 255, 255, .75);
  font-size: clamp(1rem, 1.6vw, 1.1rem);
}

/* CTAs */
.hero-actions {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 14px; margin-top: 2.3rem;
}
.hero-btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: 15px 34px; border-radius: 8px;
  font-weight: 700; font-size: .97rem;
  transition: all .25s;
}
.hero-btn i { font-size: 1.15rem; }
.hero-btn-primary {
  background: var(--purple); color: #fff;
  box-shadow: 0 0 24px rgba(168, 85, 247, .45);
  animation: heroIn .9s .55s both;
}
.hero-btn-primary:hover { box-shadow: 0 0 42px rgba(168, 85, 247, .72); transform: scale(1.03); }
.hero-btn-outline {
  background: rgba(10, 4, 24, .25);
  border: 1px solid rgba(255, 255, 255, .25);
  color: #fff;
  animation: heroIn .9s .62s both;
}
.hero-btn-outline:hover { background: rgba(255, 255, 255, .1); transform: scale(1.03); }
.hero-btn-outline i { color: var(--wa); }
.hero-link {
  display: inline-flex; align-items: center; gap: .45rem;
  color: rgba(255, 255, 255, .7); font-weight: 600; font-size: .95rem;
  padding: 15px 8px; transition: color .2s;
  animation: heroIn .9s .7s both;
}
.hero-link:hover { color: #fff; }
.hero-link i { transition: transform .2s; }
.hero-link:hover i { transform: translateY(3px); }

/* Pills de confianza */
.hero-pills {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 12px; margin-top: 2.6rem;
  animation: heroIn .9s .78s both;
}
.hero-pill {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .55rem 1.05rem; border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, .85); font-size: .84rem; font-weight: 500;
}
.hero-pill i {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(168, 85, 247, .3); color: var(--purple-light);
  display: grid; place-items: center; font-size: .85rem; flex-shrink: 0;
}

/* Fundido al fondo oscuro de la siguiente secciÃ³n */
.hero-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 110px;
  background: linear-gradient(to top, #020617 0%, rgba(2, 6, 23, 0) 100%);
  z-index: 4; pointer-events: none;
}

/* Keyframes del hero */
@keyframes heroIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes glowPulse { 0%, 100% { opacity: .55; } 50% { opacity: .92; } }
@keyframes orbPulse { 0%, 100% { opacity: .35; } 50% { opacity: .8; } }
@keyframes sparkleFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes sparklePulse { 0%, 100% { opacity: .25; } 50% { opacity: .95; } }

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section-alt { background: linear-gradient(180deg, rgba(15, 23, 42, .6), rgba(2, 6, 23, 0)); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-tag {
  display: inline-block; padding: .35rem 1rem; border-radius: 999px;
  background: rgba(139, 92, 246, .12); border: 1px solid rgba(139, 92, 246, .35);
  color: #c4b5fd; font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-title { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.section-sub { margin-top: 1rem; color: var(--text-3); font-size: 1.05rem; }

/* ---------- Program cards ---------- */
.prog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.prog-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-card);
  padding: 2rem 1.6rem;
  transition: all .3s ease;
  overflow: hidden;
}
.prog-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(400px 200px at 100% 0%, rgba(139, 92, 246, .16), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.prog-card:hover { transform: translateY(-6px); border-color: var(--stroke-strong); box-shadow: var(--shadow-card); }
.prog-card:hover::before { opacity: 1; }
.prog-icon {
  width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(139, 92, 246, .14); border: 1px solid rgba(139, 92, 246, .3);
  color: #c4b5fd; font-size: 1.5rem; margin-bottom: 1.2rem;
}
.prog-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: .6rem; }
.prog-card p { color: var(--text-3); font-size: .95rem; margin-bottom: 1.2rem; }
.prog-link { color: var(--primary); font-weight: 700; font-size: .95rem; display: inline-flex; align-items: center; gap: .4rem; }
.prog-link:hover { gap: .7rem; }
.badge {
  position: absolute; top: 1.2rem; right: 1.2rem;
  font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: .3rem .7rem; border-radius: 999px;
}
.badge-primary { background: var(--primary); color: #fff; }
.badge-secondary { background: var(--secondary); color: #fff; }
.badge-warning { background: var(--warning); color: #1a1202; }

/* ---------- Simulator ---------- */
.section-sim { background: linear-gradient(180deg, rgba(139, 92, 246, .05), rgba(2, 6, 23, 0)); }
.sim-shell {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.sim-form {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-card);
  padding: 2rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex; flex-direction: column; gap: 1.4rem;
}
.field { display: flex; flex-direction: column; gap: .5rem; }
.field-label { font-size: .85rem; font-weight: 700; color: var(--text-2); }
.field-help { font-size: .8rem; color: var(--text-3); }
.field-row { display: flex; align-items: center; justify-content: space-between; }
.field-output { font-weight: 800; color: var(--primary); font-size: 1.05rem; }

.seg { display: flex; gap: .5rem; background: rgba(2, 6, 23, .5); border: 1px solid var(--stroke); padding: .35rem; border-radius: 12px; }
.seg-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem; border: 0; border-radius: 9px;
  background: transparent; color: var(--text-3); font-weight: 700; font-size: .95rem;
  transition: all .25s;
}
.seg-btn.active { background: var(--grad); color: #fff; box-shadow: 0 4px 16px rgba(109, 40, 217, .4); }

.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip {
  padding: .6rem 1.1rem; border-radius: 999px;
  background: var(--surface-hover); border: 1px solid var(--stroke);
  color: var(--text-2); font-weight: 600; font-size: .9rem; transition: all .25s;
}
.chip:hover { border-color: var(--primary); color: var(--text); }
.chip.active { background: rgba(139, 92, 246, .2); border-color: var(--primary); color: #fff; }

.select-wrap { position: relative; }
.select-wrap i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.select-wrap select {
  width: 100%; padding: .85rem 1rem .85rem 2.7rem;
  background: var(--surface-hover); border: 1px solid var(--stroke);
  border-radius: 10px; color: var(--text); font-weight: 600; font-size: .95rem;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat; background-position: right 1rem center;
  transition: border-color .2s;
}
.select-wrap select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(139, 92, 246, .18); }
.select-wrap select:disabled { opacity: .5; }

input[type='range'] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--primary) 0%, var(--primary) var(--fill, 50%), rgba(255, 255, 255, .12) var(--fill, 50%)); outline: none; }
input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 5px solid var(--primary); cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, .4); }
input[type='range']::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 5px solid var(--primary); cursor: pointer; }
.range-labels { display: flex; justify-content: space-between; font-size: .75rem; color: var(--text-3); }

/* Result panel */
.sim-result {
  background: rgba(15, 23, 42, .9);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-card);
  padding: 2rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex; flex-direction: column; gap: 1.2rem;
  box-shadow: 0 0 60px rgba(139, 92, 246, .12);
  position: relative; overflow: hidden;
}
.sim-result::before {
  content: ''; position: absolute; top: -120px; right: -120px; width: 260px; height: 260px;
  border-radius: 50%; background: radial-gradient(circle, rgba(139, 92, 246, .3), transparent 70%);
  pointer-events: none;
}
.result-head { text-align: center; }
.result-label { color: var(--text-3); font-weight: 600; font-size: .9rem; }
.result-price { display: flex; align-items: baseline; justify-content: center; gap: .3rem; margin: .4rem 0 .1rem; }
.result-price .currency { font-size: 1.6rem; color: var(--primary); font-weight: 800; }
.result-price span:not(.currency) { font-size: clamp(2.6rem, 5vw, 3.4rem); font-weight: 800; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.result-period { color: var(--text-3); font-size: .9rem; }
.result-product { display: flex; justify-content: center; }
.result-pill {
  display: inline-flex; align-items: center; gap: .5rem; max-width: 100%;
  background: rgba(139, 92, 246, .14); border: 1px solid rgba(139, 92, 246, .3);
  color: #c4b5fd; font-weight: 700; font-size: .9rem; padding: .6rem 1rem; border-radius: 999px;
  text-align: center;
}
.result-breakdown { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.break-item { background: rgba(255, 255, 255, .04); border: 1px solid var(--stroke); border-radius: 12px; padding: .8rem .9rem; }
.break-item span { display: block; color: var(--text-3); font-size: .75rem; font-weight: 600; }
.break-item b { font-size: 1rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.break-item.full { grid-column: span 2; }
.result-tags { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.result-tags .chip { padding: .4rem .9rem; font-size: .8rem; cursor: default; }
.result-note { display: flex; gap: .5rem; align-items: flex-start; font-size: .78rem; color: var(--text-3); }
.result-note i { color: var(--primary); margin-top: .15rem; }

/* ---------- Filters & catalog ---------- */
.filter-tabs { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-bottom: 2.5rem; }
.filter-btn {
  padding: .6rem 1.4rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--stroke);
  color: var(--text-2); font-weight: 700; font-size: .9rem; transition: all .25s;
}
.filter-btn:hover { border-color: var(--primary); color: var(--text); }
.filter-btn.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 4px 16px rgba(109, 40, 217, .4); }

.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.loading { grid-column: 1 / -1; text-align: center; color: var(--text-3); padding: 2rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: all .3s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); border-color: var(--stroke-strong); box-shadow: var(--shadow-card); }
.card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.06); }
.card-badge {
  position: absolute; top: .9rem; left: .9rem; z-index: 2;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: .35rem .7rem; border-radius: 999px;
}
.card-badge.nuevo, .card-badge.vivienda { background: var(--primary); color: #fff; }
.card-badge.seminuevo, .card-badge.remodelacion { background: var(--tertiary); color: #fff; }
.card-badge.renueva, .card-badge.ampliacion { background: var(--secondary); color: #fff; }
.card-fav { position: absolute; top: .9rem; right: .9rem; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--stroke); background: rgba(2, 6, 23, .6); color: var(--text-2); display: grid; place-items: center; backdrop-filter: blur(6px); transition: all .25s; }
.card-fav:hover, .card-fav.on { color: var(--tertiary); border-color: var(--tertiary); }
.card-body { padding: 1.3rem 1.3rem 1.5rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.card-title { font-size: 1.12rem; font-weight: 700; line-height: 1.3; }
.card-specs { display: flex; flex-wrap: wrap; gap: .5rem; }
.card-spec { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; color: var(--text-3); background: rgba(255, 255, 255, .04); border: 1px solid var(--stroke); padding: .3rem .6rem; border-radius: 999px; }
.card-spec i { color: var(--primary); }
.card-loc { display: flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--text-3); }
.card-loc i { color: var(--secondary); }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.card-price { display: flex; flex-direction: column; }
.card-price span { font-size: .75rem; color: var(--text-3); font-weight: 600; }
.card-price b { font-size: 1.25rem; font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; }
.card-btn { padding: .6rem 1.1rem; font-size: .85rem; }
.card-cta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
.card-ficha { font-size: .78rem; }
.card-wa { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; background: #25D366; border-color: #25D366; }
.card-wa:hover { background: #1fb457; border-color: #1fb457; }

/* ---------- Modal Ficha TÃ©cnica (diseÃ±o /vehiculos/1) ---------- */
.modal-ficha { max-width: 760px; padding: 0; }
.modal-ficha .modal-close { z-index: 3; }
.ficha-hero { position: relative; aspect-ratio: 16/10; background: #000; border-radius: 12px 12px 0 0; }
.ficha-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.ficha-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2,6,23,.06), rgba(2,6,23,.5)); }
.ficha-badge {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: #fff; font-size: .75rem; font-weight: 700;
  padding: .35rem .85rem; border-radius: 999px; letter-spacing: .03em;
  text-transform: capitalize;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}
.ficha-hero-tag {
  position: absolute; top: 1rem; right: 1rem; z-index: 2;
  display: inline-flex; align-items: center; gap: .35rem;
  background: rgba(245, 158, 11, .95); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  padding: .35rem .8rem; border-radius: 999px;
}
.ficha-hero-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #fff; }

.ficha-head { padding: 1.3rem 1.5rem .2rem; }
.ficha-meta { display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; flex-wrap: wrap; }
.ficha-pill {
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  color: #c9a3fb; background: rgba(168, 85, 247, .16);
  border: 1px solid rgba(168, 85, 247, .3);
  padding: .25rem .7rem; border-radius: 999px;
}
.ficha-year { font-size: .8rem; color: var(--text-3); }
.ficha-pill-soft {
  font-size: .7rem; font-weight: 600; text-transform: capitalize;
  color: var(--text-2); background: rgba(255, 255, 255, .06);
  border: 1px solid var(--stroke); padding: .25rem .7rem; border-radius: 999px;
}
.ficha-head h3 { font-size: 1.7rem; font-weight: 800; margin-bottom: .4rem; letter-spacing: -.01em; }
.ficha-desc {
  color: var(--text-3); font-size: .9rem; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: .9rem;
}
.ficha-precio { font-size: 1.7rem; font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; }
.ficha-precio b { font-weight: 800; }
.ficha-ctas { display: flex; gap: .7rem; margin-top: 1rem; flex-wrap: wrap; }
.ficha-cotizar { flex: 1; min-width: 200px; }
.ficha-cotizar i:last-child { margin-left: .2rem; }
.ficha-wa { flex: 1; min-width: 200px; }

.ficha-section { padding: 1.2rem 1.5rem 0; }
.ficha-eyebrow {
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .18em;
  color: var(--primary); margin-bottom: .3rem;
}
.ficha-title { font-size: 1.35rem; font-weight: 800; margin-bottom: 1rem; }
.ficha-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.ficha-tab {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .5rem 1rem; border-radius: 999px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--stroke);
  color: var(--text-2); font-size: .82rem; font-weight: 600;
  cursor: pointer; transition: all .18s ease;
}
.ficha-tab i { font-size: .95rem; }
.ficha-tab:hover { color: var(--text); border-color: var(--primary); }
.ficha-tab.active {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-color: transparent; color: #fff;
  box-shadow: 0 6px 18px rgba(168, 85, 247, .4);
}
.ficha-card {
  background: rgba(255, 255, 255, .035); border: 1px solid var(--stroke);
  border-radius: 16px; padding: 1.2rem;
}
.ficha-panel { display: none; }
.ficha-panel.active { display: block; animation: fichaIn .22s ease; }
@keyframes fichaIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.ficha-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem;
  max-height: 340px; overflow-y: auto;
}
.ficha-grid-4 { grid-template-columns: repeat(4, 1fr); }
.ficha-item {
  display: flex; align-items: flex-start; gap: .8rem;
  background: rgba(255, 255, 255, .03); border: 1px solid var(--stroke);
  border-radius: 12px; padding: .7rem .85rem;
  transition: border .18s ease;
}
.ficha-item:hover { border-color: rgba(168, 85, 247, .45); }
.ficha-item-icon {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(168, 85, 247, .16); color: #c9a3fb; font-size: 1.1rem;
}
.ficha-item-txt { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.ficha-item-txt span {
  font-size: .66rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-3); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ficha-item-txt b { font-size: .88rem; font-weight: 700; color: var(--text); line-height: 1.3; word-break: break-word; }

.ficha-list { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.ficha-item-row {
  display: flex; align-items: flex-start; gap: .7rem;
  background: rgba(255, 255, 255, .03); border: 1px solid var(--stroke);
  border-radius: 10px; padding: .6rem .8rem;
}
.ficha-item-row span { font-size: .85rem; color: var(--text); line-height: 1.4; }
.ficha-check {
  width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%;
  display: grid; place-items: center; font-size: .95rem; margin-top: .1rem;
}
.ficha-check-ok { background: rgba(37, 211, 102, .15); color: var(--secondary); }
.ficha-check-star { background: rgba(168, 85, 247, .15); color: #c9a3fb; }

.ficha-ver-pills { display: flex; gap: .5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.ficha-ver-pill {
  padding: .55rem 1.1rem; border-radius: 10px; font-size: .85rem; font-weight: 600;
  background: linear-gradient(90deg, var(--primary), var(--secondary)); color: #fff;
  border: none; cursor: default;
}
.ficha-ver-card .ficha-grid { margin-bottom: 1rem; }
.ficha-ver-cta { width: 100%; }

.ficha-nota {
  display: flex; align-items: center; gap: .7rem; margin-top: 1rem;
  background: rgba(168, 85, 247, .08); border: 1px solid rgba(168, 85, 247, .2);
  border-radius: 12px; padding: .8rem 1rem;
  color: var(--text-2); font-size: .82rem;
}
.ficha-nota i { color: var(--primary); font-size: 1.05rem; }

.ficha-vacio { grid-column: 1 / -1; color: var(--text-3); font-size: .9rem; text-align: center; padding: 1rem; }
.ficha-wa-cta { padding: 1rem 1.5rem 1.5rem; }
.ficha-wa-cta .btn-wa { width: 100%; }

/* ---------- Página Detalle del Vehículo (vehiculo.php) ---------- */
.ficha-grid-3 { grid-template-columns: repeat(3, 1fr); }
.veh-detail { padding-top: 40px; }
.veh-breadcrumb { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--text-3); margin-bottom: 1.8rem; }
.veh-breadcrumb a { color: var(--primary); font-weight: 600; transition: color .2s; }
.veh-breadcrumb a:hover { color: #e9d5ff; }
.veh-breadcrumb i { font-size: .95rem; }

.veh-hero { display: grid; grid-template-columns: 1fr 420px; gap: 2.5rem; align-items: center; }
.veh-media { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--stroke); background: #000; }
.veh-media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: center; display: block; }
.veh-info h1 { font-family: var(--font-head); font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; margin: .3rem 0 .6rem; letter-spacing: -.01em; }
.veh-desc { color: var(--text-3); font-size: .95rem; line-height: 1.6; margin-bottom: 1.1rem; }
.veh-cuota { color: var(--text-3); font-size: .95rem; margin-top: .2rem; }
.veh-cuota b { color: var(--secondary); font-size: 1.05rem; font-weight: 700; }
.veh-ctas { display: flex; gap: .8rem; margin-top: 1.2rem; flex-wrap: wrap; }
.veh-cotizar, .veh-wa { flex: 1; min-width: 210px; }
.veh-cotizar i:last-child { margin-left: .2rem; }

.veh-ficha {
  background: linear-gradient(180deg, rgba(255, 255, 255, .018), rgba(255, 255, 255, .028));
  border-top: 1px solid var(--stroke); border-bottom: 1px solid var(--stroke);
}
.veh-ficha-title { font-family: var(--font-head); font-size: 1.8rem; font-weight: 800; margin-bottom: 1.4rem; }
.veh-ficha .ficha-grid { max-height: none; overflow: visible; }
.veh-ficha .ficha-card { padding: 1.5rem; }
.veh-ficha .ficha-wa-cta { padding: 1.5rem 0 0; max-width: 480px; margin: 0 auto; }

.ficha-ver-cta { width: 100%; display: flex; align-items: center; justify-content: center; }
.ficha-ver-cta i:last-child { margin-left: .25rem; }

.cta-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  background: linear-gradient(120deg, rgba(109, 40, 217, .35), rgba(30, 41, 59, .4));
  border: 1px solid rgba(168, 85, 247, .3);
  border-radius: 20px; padding: 2rem 2.4rem; flex-wrap: wrap;
}
.cta-banner h3 { font-family: var(--font-head); font-size: 1.45rem; font-weight: 800; margin-bottom: .4rem; }
.cta-banner h3 span { background: linear-gradient(90deg, var(--primary), #e9d5ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta-banner p { color: var(--text-3); font-size: .95rem; }
.cta-banner .btn { flex-shrink: 0; }



/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; position: relative; }
.step { text-align: center; padding: 2rem 1.2rem; background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--radius-card); position: relative; transition: all .3s; }
.step:hover { transform: translateY(-6px); border-color: var(--primary); }
.step-num { position: absolute; top: 1rem; right: 1.2rem; font-size: 2.2rem; font-weight: 800; color: rgba(255, 255, 255, .06); }
.step-icon {
  width: 64px; height: 64px; margin: 0 auto 1.2rem; border-radius: 16px;
  display: grid; place-items: center; font-size: 1.6rem;
  background: var(--grad); color: #fff; box-shadow: 0 8px 24px rgba(109, 40, 217, .35);
}
.step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }
.step p { color: var(--text-3); font-size: .9rem; }

/* ---------- Benefits ---------- */
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.benefit { background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--radius-card); padding: 1.8rem; transition: all .3s; }
.benefit:hover { border-color: var(--stroke-strong); transform: translateY(-4px); box-shadow: var(--shadow-card); }
.benefit i { font-size: 1.7rem; color: var(--primary); display: inline-block; margin-bottom: .9rem; }
.benefit:nth-child(2) i { color: var(--secondary); }
.benefit:nth-child(5) i { color: var(--secondary); }
.benefit h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: .4rem; }
.benefit p { color: var(--text-3); font-size: .92rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, rgba(109, 40, 217, .5), rgba(16, 185, 129, .35)), url('../img/financiamiento.jpg') center/cover;
  background-blend-mode: multiply;
  padding: 4rem 0;
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-inner h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
.cta-inner p { color: var(--text-2); margin-top: .4rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-info p { color: var(--text-3); margin: 1rem 0 2rem; }
.contact-list { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list i { font-size: 1.3rem; color: var(--primary); background: rgba(139, 92, 246, .12); border: 1px solid rgba(139, 92, 246, .3); width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.contact-list b { display: block; font-size: .95rem; }
.contact-list span { color: var(--text-3); font-size: .9rem; }
.socials { display: flex; gap: .8rem; margin-top: 2rem; }
.socials a { font-size: 1.6rem; color: var(--text-3); transition: all .25s; }
.socials a:hover { color: var(--primary); transform: translateY(-3px); }
.contact-form { padding: 2rem; }
.contact-form h3 { font-size: 1.3rem; margin-bottom: 1.2rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.input-group { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.input-group label { font-size: .8rem; font-weight: 700; color: var(--text-2); }
.input-group input, .input-group textarea, .input-group select {
  padding: .8rem 1rem;
  background: var(--surface-hover); border: 1px solid var(--stroke); border-radius: 10px;
  color: var(--text); font-family: inherit; font-size: .95rem; transition: all .2s;
}
.input-group input:focus, .input-group textarea:focus, .input-group select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(139, 92, 246, .18);
}
.input-group textarea { resize: vertical; }
.input-group select:disabled { opacity: .5; }
.form-msg { font-size: .9rem; font-weight: 600; margin-top: .8rem; min-height: 1.2rem; }
.form-msg.ok { color: var(--secondary); }
.form-msg.err { color: #f87171; }
.spin { display: inline-block; animation: rotate 1s linear infinite; }
@keyframes rotate { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */
.site-footer { background: #010409; border-top: 1px solid var(--stroke); padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-grid p { color: var(--text-3); font-size: .9rem; margin-top: 1rem; max-width: 320px; }
.footer-grid h4 { font-size: .95rem; margin-bottom: 1rem; color: var(--text); }
.footer-grid a { display: block; color: var(--text-3); font-size: .9rem; padding: .3rem 0; transition: color .2s; }
.footer-grid a:hover { color: var(--primary); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 1.5rem; border-top: 1px solid var(--stroke); color: var(--text-3); font-size: .82rem; gap: 1rem; flex-wrap: wrap; }
.footer-bottom i { color: var(--tertiary); }

/* ---------- Páginas legales ---------- */
.legal-hero {
  position: relative; overflow: hidden;
  padding: calc(76px + 3.5rem) 0 2.25rem; text-align: center;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(139, 92, 246, .14), transparent 60%), var(--bg);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.legal-hero .legal-glow {
  position: absolute; border-radius: 50%; pointer-events: none; filter: blur(60px); opacity: .5;
  background: radial-gradient(circle, rgba(168, 85, 247, .35), transparent 70%);
}
.legal-glow-1 { width: 420px; height: 420px; top: -160px; right: -80px; }
.legal-glow-2 { width: 340px; height: 340px; bottom: -140px; left: -100px; animation-delay: 2s; }
.legal-hero .section-tag { margin-bottom: 1.1rem; }
.legal-hero h1 { font-size: clamp(1.55rem, 2.6vw, 2.1rem); font-weight: 800; letter-spacing: -.01em; color: var(--text); }
.legal-hero p { color: var(--text-3); margin-top: .6rem; max-width: 640px; margin-inline: auto; font-size: .98rem; line-height: 1.65; }
.legal-content { padding: 3rem 0 5.5rem; }
.legal-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .012)), var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 18px; padding: 3rem 3.2rem; max-width: 880px; margin: 0 auto;
  box-shadow: var(--shadow-card);
}
.legal-card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: 18px;
  background: radial-gradient(600px 240px at 100% 0%, rgba(139, 92, 246, .08), transparent 60%);
}
.legal-intro { position: relative; padding-bottom: 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--stroke); }
.legal-intro p { color: var(--text-3); font-size: .95rem; line-height: 1.7; max-width: 720px; }
.legal-toc {
  position: relative; display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 2rem;
}
.legal-toc a {
  color: var(--text-2); font-size: .82rem; font-weight: 600; text-decoration: none;
  padding: .4rem .85rem; border-radius: 999px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--stroke);
  transition: all .2s;
}
.legal-toc a:hover { color: #fff; border-color: rgba(139, 92, 246, .45); background: rgba(139, 92, 246, .1); }
.legal-card h2 {
  position: relative;
  font-size: 1.12rem; font-weight: 700; margin: 2rem 0 .9rem; color: var(--text);
  display: flex; align-items: center; gap: .65rem; scroll-margin-top: 6.5rem;
}
.legal-card h2 i {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(139, 92, 246, .12); border: 1px solid rgba(139, 92, 246, .25);
  color: #c4b5fd; font-size: 1rem;
}
.legal-card h2:first-child { margin-top: 0; }
.legal-card p, .legal-card li { color: var(--text-2); font-size: .94rem; line-height: 1.75; }
.legal-card ul, .legal-card ol { margin: .4rem 0 1.1rem; list-style: none; display: grid; gap: .5rem; }
.legal-card ul li, .legal-card ol li { padding-left: 1.5rem; position: relative; }
.legal-card ul li::before { content: '\f058'; font-family: 'remixicon'; position: absolute; left: 0; top: .12rem; color: var(--secondary); font-size: .95rem; }
.legal-card ol { counter-reset: legal; }
.legal-card ol li { counter-increment: legal; }
.legal-card ol li::before { content: counter(legal); position: absolute; left: 0; top: .05rem; width: 20px; height: 20px; border-radius: 50%; background: rgba(139, 92, 246, .16); border: 1px solid rgba(139, 92, 246, .3); color: #c4b5fd; font-size: .7rem; font-weight: 800; display: grid; place-items: center; }
.legal-card a { color: var(--primary); font-weight: 600; }
.legal-updated {
  position: relative; font-size: .82rem; color: var(--text-3); margin-top: 2.25rem; padding-top: 1.25rem;
  border-top: 1px solid var(--stroke);
  display: flex; align-items: center; gap: .5rem;
}
.legal-updated i { color: var(--primary); }
.legal-cta {
  position: relative; margin-top: 2.25rem; padding: 1.5rem 1.75rem; border-radius: 14px;
  background: rgba(37, 211, 102, .05); border: 1px solid rgba(37, 211, 102, .22);
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; flex-wrap: wrap;
}
.legal-cta b { font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: .55rem; }
.legal-cta b i { color: var(--wa); font-size: 1.25rem; }
.legal-cta p { color: var(--text-3); font-size: .85rem; margin-top: .15rem; }

@media (max-width: 768px) {
  .legal-hero { padding: calc(76px + 2.5rem) 0 1.75rem; }
  .legal-card { padding: 1.75rem 1.4rem; }
  .legal-cta { padding: 1.25rem; }
}

/* ---------- WhatsApp float (spec) ---------- */
.wa-float {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 95;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff; font-size: 1.7rem;
  display: grid; place-items: center;
  box-shadow: 0 8px 30px rgba(37, 211, 102, .5);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.1); }
.wa-float .wa-badge {
  position: absolute; top: -2px; right: -2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; display: grid; place-items: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}
.wa-float .wa-badge i {
  width: 10px; height: 10px; border-radius: 50%; background: var(--wa);
  animation: wa-dot 1.6s ease-in-out infinite;
}
@keyframes wa-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.75); } }

/* Widget "Talk with Us" (asistente) */
.talk-widget {
  position: fixed; right: 1.4rem; bottom: 5.8rem; z-index: 95;
  display: flex; align-items: center; gap: .55rem;
  background: var(--ink-3); color: #fff;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px; padding: .6rem 1.05rem;
  font-size: .88rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
  transition: transform .2s, box-shadow .2s;
}
.talk-widget i { color: var(--purple-light); font-size: 1.05rem; }
.talk-widget:hover { transform: scale(1.05); box-shadow: 0 10px 30px rgba(168, 85, 247, .35); }
.talk-widget:visited { color: #fff; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(2, 6, 23, .8);
  backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal {
  position: relative; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto;
  background: rgba(15, 23, 42, .97);
  padding: 2rem;
}
.modal-close { position: absolute; top: 1rem; right: 1rem; background: var(--surface-hover); border: 1px solid var(--stroke); color: var(--text-2); width: 38px; height: 38px; border-radius: 50%; font-size: 1.2rem; display: grid; place-items: center; transition: all .2s; }
.modal-close:hover { color: #fff; border-color: var(--tertiary); }
.modal h3 { font-size: 1.4rem; margin-bottom: .3rem; }
.modal-sub { color: var(--text-3); font-size: .9rem; margin-bottom: 1.2rem; }
.modal-product {
  display: flex; align-items: center; gap: .9rem;
  background: rgba(139, 92, 246, .1); border: 1px solid rgba(139, 92, 246, .3);
  border-radius: 12px; padding: .8rem 1rem; margin-bottom: 1.4rem;
}
.modal-product img { width: 70px; height: 52px; object-fit: cover; border-radius: 8px; }
.modal-product b { font-size: .95rem; display: block; }
.modal-product span { color: var(--primary); font-weight: 700; font-size: .9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .header-cta .wa-outline { display: none; }
}

@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: .3rem;
    background: rgba(13, 5, 32, .97); backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    padding: 1rem 1.5rem 1.5rem;
    transform: translateY(-135%); transition: transform .35s ease;
    z-index: 199;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav > a { padding: .8rem 0; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: .95rem; }
  .mobile-cta { display: flex; flex-direction: column; gap: .65rem; margin-top: 1rem; }
  .mobile-cta .wa-outline, .mobile-cta .cotiza-now { justify-content: center; }
  .prog-grid, .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .sim-shell { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .header-inner { height: 64px; }
  .main-nav { top: 64px; }
  .hero-content { padding: 96px 1.25rem 70px; }
  .hero-logo-icon { width: 118px; height: 118px; border-radius: 26px; font-size: 3.9rem; }
  .hero-logo-halo { inset: -30px; }
  .hero-logo-name { font-size: 1.1rem; letter-spacing: .12em; }
  .hero-title { font-size: clamp(1.85rem, 8vw, 2.3rem); }
  .section { padding: 4rem 0; }
  .prog-grid, .benefit-grid, .catalog-grid, .steps { grid-template-columns: 1fr; }
  .sim-form, .sim-result { padding: 1.4rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .cta-inner { justify-content: center; text-align: center; }
  .veh-hero { grid-template-columns: 1fr; gap: 1.5rem; }
  .veh-ctas { flex-direction: column; }
  .veh-cotizar, .veh-wa { width: 100%; flex: none; }
  .ficha-grid-3 { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; text-align: center; }
}

@media (max-width: 640px) {
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .hero-btn { width: 100%; justify-content: center; }
  .hero-pills { gap: 9px; margin-top: 2rem; }
  .hero-pill { padding: .5rem .85rem; font-size: .8rem; }
  .orb-purple { width: 420px; height: 420px; top: -120px; right: -120px; }
  .orb-blue { width: 380px; height: 380px; bottom: -140px; left: -100px; }
  .ficha-grid { grid-template-columns: 1fr; }
  .ficha-grid-4 { grid-template-columns: 1fr 1fr; }
  .ficha-list { grid-template-columns: 1fr; }
  .ficha-head { padding: 1.1rem 1.2rem .2rem; }
  .ficha-section { padding: 1.1rem 1.2rem 0; }
  .ficha-wa-cta { padding: .9rem 1.2rem 1.2rem; }
  .ficha-ctas { flex-direction: column; }
  .ficha-cotizar, .ficha-wa { width: 100%; flex: none; }
  .ficha-hero { aspect-ratio: 16/11; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .result-breakdown { grid-template-columns: 1fr; }
  .break-item.full { grid-column: span 1; }
}

@media (prefers-reduced-motion: reduce) {
  .orb, .sparkle, .hero-logo-halo, .wa-float .wa-badge i,
  .hero-slide, .hero-slide img, .hero-text { animation: none !important; }
  .hero-slide { opacity: 0; }
  .hero-slide.is-visible { opacity: 1; }
  .hero-text { opacity: 0; }
  .hero-text.is-visible { opacity: 1; }
  .hero-logo-icon, .hero-logo-name, .hero-logo-tag, .hero-text-slides, .hero-title, .hero-sub,
  .hero-btn-primary, .hero-btn-outline, .hero-link, .hero-pills { animation: none !important; opacity: 1 !important; transform: none !important; }
}

