/* ===================== TOKENS ===================== */
:root {
  --blue: #2554ff;
  --blue-dark: #1738b2;
  --green: #16a34a;
  --ink: #10131a;
  --ink-soft: #4b5267;
  --bg: #f6f7fb;
  --bg-tint: #eef1fb;
  --card: #ffffff;
  --border: #e4e7f2;
  --dark-bg: #12141c;
  --dark-card: #1b1e29;
  --dark-border: #2a2e3d;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 45px -20px rgba(16, 19, 26, 0.18);
  --font-head: "Plus Jakarta Sans", sans-serif;
  --font-body: "Inter", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0; color: var(--ink); }
p { margin: 0; line-height: 1.6; color: var(--ink-soft); }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}
.eyebrow-light { color: #7ea2ff; }

.underline-accent { position: relative; white-space: nowrap; }
.underline-accent::after {
  content: "";
  position: absolute;
  left: 2px; right: 2px; bottom: -6px;
  height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 14'%3E%3Cpath d='M2 10 C 20 2, 40 2, 60 8 S 100 14, 118 6' stroke='%2316a34a' stroke-width='4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.underline-accent-light::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 14'%3E%3Cpath d='M2 10 C 20 2, 40 2, 60 8 S 100 14, 118 6' stroke='%234f8cff' stroke-width='4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: var(--font-head);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 16px -8px rgba(37, 84, 255, 0.5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 22px -8px rgba(37, 84, 255, 0.55); }
.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-light {
  background: #fff;
  color: var(--blue-dark);
}
.btn-light:hover { transform: translateY(-2px); }

.pill {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 18px;
}
.pill-green { background: rgba(22, 163, 74, 0.12); color: var(--green); }

/* ===================== HEADER ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 247, 251, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 78px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}
.brand-accent { color: var(--blue); }
.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: 12px;
  font-weight: 600;
  font-size: 0.95rem;
}
.main-nav a { color: var(--ink-soft); }
.main-nav a:hover { color: var(--ink); }
.header-cta { margin-left: auto; }
.menu-toggle { display: none; }
.menu-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* Servicios dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger { display: inline-flex; align-items: center; gap: 4px; }
.nav-dropdown-trigger svg { transition: transform 0.15s ease; }
.nav-dropdown:hover .nav-dropdown-trigger svg,
.nav-dropdown:focus-within .nav-dropdown-trigger svg { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, -6px);
  margin-top: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 210px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 50;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.nav-dropdown-menu a {
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover { background: var(--bg-tint); color: var(--blue); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 14px;
  padding: 18px 24px 24px;
  border-top: 1px solid var(--border);
  font-weight: 600;
  background: var(--bg);
}
.mobile-nav.open { display: flex; }
.mobile-nav-group { display: flex; flex-direction: column; }
.mobile-nav-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: inherit;
  cursor: pointer;
}
.mobile-nav-toggle svg { transition: transform 0.2s ease; flex: none; }
.mobile-nav-toggle.is-open svg { transform: rotate(180deg); }
.mobile-nav-submenu {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, margin-top 0.25s ease;
}
.mobile-nav-submenu.is-open { max-height: 220px; margin-top: 14px; }
.mobile-nav-submenu a { font-weight: 500; font-size: 0.92rem; color: var(--ink-soft); padding-left: 12px; }
body.auto-landing .mobile-nav-submenu a { color: #9fa4bd; }

/* Dark header variant for the dedicated auto.html landing page */
body.auto-landing .site-header {
  background: rgba(18, 20, 28, 0.9);
  border-bottom-color: var(--dark-border);
}
body.auto-landing .brand-name,
body.auto-landing .main-nav a:hover { color: #fff; }
body.auto-landing .main-nav a { color: #9fa4bd; }
body.auto-landing .mobile-nav {
  background: var(--dark-bg);
  border-top-color: var(--dark-border);
  color: #fff;
}
body.auto-landing .menu-toggle span { background: #fff; }

/* ===================== HERO ===================== */
.hero {
  padding: 72px 0 90px;
  background:
    radial-gradient(circle at 85% 10%, rgba(37, 84, 255, 0.1), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(22, 163, 74, 0.08), transparent 45%),
    var(--bg);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero-inner > *, .auto-inner > * { min-width: 0; }
.hero h1 {
  font-size: clamp(2.1rem, 3.6vw, 3.1rem);
  font-weight: 800;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 1.08rem;
  max-width: 50ch;
  margin-bottom: 28px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-head); font-size: 1.5rem; }
.hero-stats span { font-size: 0.85rem; color: var(--ink-soft); }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.score-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(24px, 1.8vw + 17px, 36px);
  width: clamp(260px, 24vw + 160px, 360px);
}
.score-card-top { display: flex; flex-direction: column; gap: clamp(8px, 1vw, 12px); margin-bottom: clamp(14px, 1.6vw, 20px); }
.score-brand { font-family: var(--font-head); font-weight: 800; font-size: clamp(0.82rem, 0.3vw + 0.76rem, 0.95rem); letter-spacing: 0.05em; }
.score-tabs { display: flex; gap: clamp(12px, 1.2vw, 18px); border-bottom: 1px solid var(--border); }
.score-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0 0 clamp(7px, 0.8vw, 10px);
  margin-bottom: -1px;
  font-family: var(--font-body);
  font-size: clamp(0.76rem, 0.2vw + 0.7rem, 0.86rem);
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.15s ease;
}
.score-tab:hover { color: var(--ink); }
.score-tab.is-active { color: var(--ink); font-weight: 700; border-bottom-color: var(--ink); }
.score-ring { position: relative; width: clamp(150px, 14vw + 100px, 220px); margin: 0 auto clamp(4px, 0.8vw, 10px); }
.score-ring svg { display: block; width: 100%; height: auto; overflow: visible; }
.gauge-band { stroke-linecap: butt; }
.score-needle {
  transform-box: view-box;
  transform-origin: 70px 62px;
  transform: rotate(0deg);
  transition: transform 1.6s cubic-bezier(.22,.9,.3,1);
}
.gauge-guide { pointer-events: none; }
.needle-dot { filter: drop-shadow(0 2px 3px rgba(16, 19, 26, 0.25)); }
.score-ring-number {
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translateX(-50%);
  width: max-content;
  font-family: var(--font-head);
  font-size: clamp(2.1rem, 2.2vw + 1.5rem, 3rem);
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.score-rating {
  display: flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  margin: clamp(10px, 1.2vw, 16px) auto 0;
  padding: clamp(4px, 0.4vw, 6px) clamp(12px, 0.8vw, 15px);
  border-radius: 999px;
  font-size: clamp(0.76rem, 0.2vw + 0.7rem, 0.86rem);
  font-weight: 700;
  min-height: 1.4em;
}
@media (prefers-reduced-motion: reduce) {
  .score-needle { transition: none; }
}
.score-gain {
  display: flex; align-items: center; gap: 8px;
  background: rgba(22, 163, 74, 0.1);
  color: var(--green);
  font-weight: 700;
  font-size: clamp(0.82rem, 0.3vw + 0.76rem, 0.95rem);
  padding: clamp(9px, 0.6vw + 7px, 13px) clamp(12px, 0.8vw + 9px, 17px);
  border-radius: var(--radius-sm);
  justify-content: center;
  margin-top: clamp(14px, 1.6vw, 20px);
}
.score-divider { height: 1px; background: var(--border); margin: clamp(16px, 1.8vw, 22px) 0; }
.auto-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(37, 84, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: clamp(10px, 0.8vw + 7px, 14px) clamp(12px, 0.8vw + 9px, 16px);
  box-shadow: 0 14px 24px -12px rgba(37, 84, 255, 0.45);
  animation: auto-strip-float 3.2s ease-in-out infinite;
}
@keyframes auto-strip-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
  .auto-strip { animation: none; }
}
.auto-strip-img {
  width: clamp(52px, 4.4vw + 34px, 70px);
  height: clamp(52px, 4.4vw + 34px, 70px);
  border-radius: 12px;
  object-fit: cover;
  flex: none;
  box-shadow: 0 0 0 3px rgba(37, 84, 255, 0.35);
}
.auto-strip-text { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.auto-strip-text strong {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  color: var(--blue);
  font-size: clamp(1.2rem, 0.9vw + 1rem, 1.5rem);
  font-weight: 800;
}
.auto-strip-text span { font-size: clamp(0.74rem, 0.2vw + 0.68rem, 0.84rem); color: var(--ink-soft); font-weight: 600; line-height: 1.3; }

/* ===================== SECTIONS ===================== */
.section { padding: clamp(52px, 7vw, 76px) 0; }
.section-tint { background: var(--bg-tint); }
.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}
/* auto.html runs tighter between sections — its sections are shorter (steps, FAQ, testimonials) so the default gap reads as too much dead space */
body.auto-landing .section { padding: clamp(36px, 4.5vw, 52px) 0; }
body.auto-landing .section-head { margin-bottom: 32px; }
body.auto-landing .cta-final { padding: 52px 0; }
.section-head h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); margin: 6px 0 14px; font-weight: 800; }

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ===================== BENEFIT CARDS ===================== */
.benefit-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.benefit-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(37, 84, 255, 0.1);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.benefit-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.benefit-card p { font-size: 0.92rem; }

/* ===================== SERVICE CARDS ===================== */
.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.service-card-featured {
  background: var(--ink);
  border-color: var(--ink);
}
.service-card-featured h3,
.service-card-featured p,
.service-card-featured .card-link { color: #fff; }
.service-card-featured p { color: #c6cadb; }
.service-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 6px;
}
.icon-blue { background: rgba(37, 84, 255, 0.1); color: var(--blue); }
.icon-green { background: rgba(22, 163, 74, 0.1); color: var(--green); }
.icon-dark { background: rgba(255, 255, 255, 0.12); color: #fff; }
.service-card h3 { font-size: 1.2rem; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--blue);
  background: rgba(37, 84, 255, 0.1);
  padding: 9px 16px;
  border-radius: 999px;
  margin-top: auto;
  width: fit-content;
  transition: background 0.15s ease, transform 0.15s ease;
}
.card-link:hover { background: var(--blue); color: #fff; transform: translateY(-1px); }

/* ===================== STATS / PROCESS ===================== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 64px;
  text-align: center;
}
.stat-box strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--blue);
}
.stat-box span { font-size: 0.85rem; color: var(--ink-soft); }

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.process-3col { grid-template-columns: repeat(3, 1fr); }
.process-step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
}
.process-num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  margin-bottom: 14px;
}
.process-step h3 { font-size: 1.02rem; margin-bottom: 8px; }
.process-step p { font-size: 0.9rem; }
.center-cta { text-align: center; margin-top: 44px; }

/* ===================== AUTO (DARK) ===================== */
.section-dark {
  background: var(--dark-bg);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.auto-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding-bottom: 56px;
}
.light-heading { color: #fff; font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 800; margin: 8px 0 18px; }

/* Auto hero headline: crossed-out dealer, oversized "deal" */
#hero-auto { position: relative; }
#hero-auto::before {
  content: "";
  position: absolute;
  top: -140px;
  left: -120px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(37, 84, 255, 0.32), transparent 70%);
  filter: blur(6px);
  pointer-events: none;
  z-index: -1;
}
.auto-hero-heading {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 4px 0 22px;
}
.auto-hero-heading-muted {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.3rem, 1.8vw, 1.7rem);
  color: #7b8099;
  letter-spacing: 0.01em;
}
.auto-hero-heading-main {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.6rem, 4.6vw, 3.8rem);
  line-height: 1.05;
  color: #fff;
}
/* Compact teaser band on the main page — full detail lives on auto.html */
.auto-teaser { padding: 56px 0; }
.auto-teaser-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.auto-teaser-copy { max-width: 560px; min-width: 0; }
.auto-teaser-copy .light-heading { font-size: clamp(1.5rem, 2.4vw, 2.1rem); margin: 8px 0 10px; }
.auto-teaser-copy p { color: #b6bbd0; margin: 0; }
.auto-teaser-actions { display: flex; gap: 14px; flex-wrap: wrap; flex: none; }
.btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.btn-outline-light:hover { border-color: var(--blue); color: var(--blue); }
@media (max-width: 640px) {
  .auto-teaser-inner { flex-direction: column; align-items: flex-start; }
  .auto-teaser-actions { width: 100%; flex-direction: column; }
  .auto-teaser-actions > .btn { width: 100%; justify-content: center; }
}
.auto-copy p { color: #b6bbd0; max-width: 54ch; margin-bottom: 28px; font-size: 1.02rem; }
.auto-copy-lead { font-size: 1.15rem; font-weight: 600; color: #fff !important; margin-bottom: 10px !important; }
.auto-copy-sub { color: #b6bbd0; max-width: 46ch; font-size: 1rem; margin-bottom: 0 !important; }
.auto-copy-cta { margin-top: 28px; }
.auto-props { display: flex; flex-direction: column; gap: 20px; margin-bottom: 30px; }
.auto-prop { display: flex; gap: 16px; }
.auto-prop-icon {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(79, 140, 255, 0.15);
  color: #7ea2ff;
  display: flex; align-items: center; justify-content: center;
}
.auto-prop h3 { color: #fff; font-size: 1rem; margin-bottom: 4px; }
.auto-prop p { color: #9fa4bd; font-size: 0.9rem; }
.auto-visual img { border-radius: var(--radius); box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5); }

/* Hero video — autoplays muted on load, no click needed */
.hero-video {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
}
.hero-video video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Value props block (separate from hero copy, like a dedicated section beneath it) */
.value-props-block { padding: clamp(32px, 5vw, 56px) 24px clamp(36px, 5vw, 56px); }
.value-props-heading {
  max-width: 680px;
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  margin-bottom: clamp(28px, 4vw, 44px);
}
.value-props-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 40px);
  margin-bottom: clamp(28px, 3.5vw, 40px);
}
.value-prop-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.value-prop-icon {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(79, 140, 255, 0.15);
  color: #7ea2ff;
  display: flex; align-items: center; justify-content: center;
}
.value-prop-head h3 { color: #fff; font-size: 1.05rem; }
.value-prop p { color: #9fa4bd; font-size: 0.92rem; line-height: 1.6; }
@media (max-width: 760px) {
  .value-props-grid { grid-template-columns: 1fr; }
}

/* Video placeholder (hero) */
.video-placeholder {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
}
.video-placeholder img { filter: brightness(0.72); transition: filter 0.2s ease; }
.video-placeholder:hover img { filter: brightness(0.6); }
.video-placeholder-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.05) 60%);
}
.video-play-btn {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease;
}
.video-placeholder:hover .video-play-btn { transform: scale(1.08); }
.video-placeholder-label { color: #fff; font-weight: 700; font-size: 0.95rem; }

/* Video testimonial cards */
.video-testimonial-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0;
}
.video-testimonial-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: var(--ink);
}
.video-testimonial-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.85; transition: opacity 0.2s ease; }
.video-testimonial-thumb:hover img { opacity: 1; }
.video-play-btn-sm {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
}
.video-testimonial-thumb:hover .video-play-btn-sm { transform: translate(-50%, -50%) scale(1.08); }
.video-testimonial-card figcaption { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.video-testimonial-card figcaption strong { font-family: var(--font-head); font-size: 1rem; }
.video-testimonial-card figcaption span { font-size: 0.88rem; color: var(--ink-soft); font-style: italic; line-height: 1.5; }

/* Video modal */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  padding: 24px;
}
.video-modal:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-modal-backdrop { position: absolute; inset: 0; background: rgba(10, 11, 16, 0.78); }
.video-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: var(--dark-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.6);
}
.video-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.video-modal-close:hover { background: rgba(255, 255, 255, 0.22); }
.video-modal-stage { position: relative; aspect-ratio: 9 / 14; background: #0e1013; }
.video-modal-stage video,
.video-modal-stage iframe { width: 100%; height: 100%; border: 0; display: block; object-fit: contain; background: #000; }
.video-modal-note {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 24px;
  color: #c6cadb;
}
.video-modal-note p { color: #c6cadb; font-size: 0.95rem; }

/* Brand marquee */
#hero-auto { padding-bottom: 16px; }
.brand-marquee {
  border-top: 1px solid var(--dark-border);
  margin-top: 20px;
  overflow: hidden;
  padding: 28px 0;
}
.marquee-track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee-group { display: flex; align-items: center; gap: 56px; padding-right: 56px; }
.marquee-group img { height: 36px; width: auto; opacity: 0.5; filter: brightness(0) invert(1); transition: opacity 0.2s ease; }
.marquee-group img:hover { opacity: 1; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; }
}

/* ===================== TESTIMONIOS ===================== */
.quote-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  margin: 0;
}
.quote-card blockquote {
  margin: 0 0 20px;
  font-size: 1rem;
  color: var(--ink);
  font-style: italic;
  line-height: 1.55;
}
.quote-card figcaption { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.quote-card figcaption img { width: 40px; height: 40px; border-radius: 999px; object-fit: cover; }

/* ===================== FAQ ===================== */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-family: var(--font-head);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--blue);
  margin-left: 12px;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin-top: 14px; font-size: 0.95rem; }

/* ===================== CTA FINAL ===================== */
.cta-final {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  padding: 72px 0;
}
.cta-final-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.cta-final-inner h2 { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 14px; font-weight: 800; }
.cta-final-inner p { color: #dbe3ff; margin-bottom: 28px; }

/* ===================== CONTACT ===================== */
.contact-inner { max-width: 760px; margin: 0 auto; }
.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row > label { min-width: 0; }
.contact-form label { display: flex; flex-direction: column; gap: 8px; font-weight: 600; font-size: 0.9rem; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  resize: vertical;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.contact-form .btn { align-self: flex-start; }
.form-note { color: var(--green); font-weight: 600; }

/* ===================== FOOTER ===================== */
.site-footer { background: var(--dark-bg); color: #c6cadb; padding: 64px 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--dark-border);
}
.footer-brand p { color: #9094ab; margin: 14px 0 18px; max-width: 32ch; }
.footer-brand .brand-name { color: #fff; }
.social-icons { display: flex; gap: 12px; }
.social-icons a {
  width: 36px; height: 36px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { color: #fff; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 6px; }
.footer-col a { color: #9094ab; font-size: 0.92rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { padding: 22px 0; font-size: 0.82rem; color: #71758a; text-align: center; }
.footer-bottom a { color: #9094ab; }

/* ===================== SCROLL REVEAL ===================== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===================== FOCUS ===================== */
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1020px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .auto-inner { grid-template-columns: 1fr; }
  .auto-visual { order: -1; margin-bottom: 20px; }
}

/* iPad/tablet: unchanged, same side-by-side hero as desktop (no override here on purpose) */

/* Phone only: compact horizontal credit card on top, full copy + CTA below it */
@media (max-width: 640px) {
  .hero { padding: 28px 0 24px; }
  .hero-inner { grid-template-columns: 1fr; gap: 16px; }
  .hero-visual { order: -1; }
  .hero h1 { font-size: 1.95rem; margin-bottom: 10px; }
  .hero-sub { font-size: 1.08rem; margin-bottom: 12px; }
  .hero-actions { margin-bottom: 12px; }
  .hero-actions .btn { font-size: 1.02rem; padding: 15px 28px; }
  .hero-stats { row-gap: 8px; column-gap: 16px; }
  .hero-stats strong { font-size: 1.35rem; }
  .hero-stats span { font-size: 0.82rem; }
  .pill { font-size: 0.92rem; margin-bottom: 12px; }

  /* Score card becomes a short horizontal strip instead of a tall stack — nothing removed, just laid out side-by-side */
  .score-card {
    width: 100%;
    padding: 12px;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "top    top"
      "ring   gain"
      "rating strip";
    column-gap: 12px;
    row-gap: 6px;
    align-items: center;
  }
  .score-card-top { grid-area: top; margin-bottom: 0; }
  .score-brand { font-size: 0.86rem; }
  .score-tabs { gap: 12px; }
  .score-tab { font-size: 0.92rem; }
  .score-ring { grid-area: ring; width: 128px; margin: 0; justify-self: center; }
  .score-ring-number { font-size: 1.85rem; }
  .score-rating { grid-area: rating; margin: 0; justify-self: center; font-size: 0.84rem; padding: 5px 12px; }
  .score-gain { grid-area: gain; margin: 0; font-size: 0.9rem; padding: 8px 12px; }
  .auto-strip { grid-area: strip; margin: 0; padding: 9px 11px; gap: 10px; }
  .auto-strip-img { width: 46px; height: 46px; }
  .score-divider { display: none; }
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .header-cta { display: none; }
  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-left: auto;
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
  }
  .grid-3 { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
}

/* auto.html's nav labels are longer (Cómo Funciona, Más Servicios) and overflow the header on iPad portrait — switch to the hamburger earlier on this page only */
@media (max-width: 900px) {
  body.auto-landing .main-nav { display: none; }
  body.auto-landing .header-cta { display: none; }
  body.auto-landing .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-left: auto;
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
  }
}
