/* ==========================================================================
   CARWAYPRO — flat-art design system
   Solid colours, hard edges, no gradients, no blurred shadows.
   ========================================================================== */

:root {
  --navy: #0B2545;
  --navy-2: #13315C;
  --blue: #1A5FB4;
  --blue-d: #154E93;
  --sky: #EAF3FF;
  --sky-2: #D3E5FB;
  --amber: #F7B32B;
  --green: #12A36B;
  --ink: #0B2545;
  --muted: #4A5B73;
  --line: #D8E2EE;
  --bg: #F5F8FC;
  --white: #FFFFFF;
  --max: 1160px;
  --r-lg: 20px;
  --r-md: 14px;
  --font-d: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --font-b: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 16px/1.65 var(--font-b); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-d); color: var(--navy); margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid #6FA8F0; outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--max), 100% - 48px); margin-inline: auto; }
[id] { scroll-margin-top: 96px; }

[data-lang="es"] .lang-en { display: none !important; }
[data-lang="en"] .lang-es { display: none !important; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip-link:focus { top: 12px; }

/* ---------- Top trust bar ---------- */
.topbar { background: var(--navy); color: #DCE8F7; font-size: 13.5px; font-weight: 600; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar-item { display: inline-flex; align-items: center; gap: 8px; }
.topbar svg { width: 17px; height: 17px; color: var(--amber); flex: none; }
.topbar a:hover { color: #fff; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 2px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 32px; min-height: 78px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 100px; width: auto; }
.nav { display: flex; gap: 28px; margin-inline: auto; }
.nav a { font-weight: 600; font-size: 15px; color: var(--navy); padding: 6px 2px; border-bottom: 2px solid transparent; transition: border-color .2s; }
.nav a:hover, .nav a[aria-current="page"] { border-color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: inline-flex; border: 2px solid var(--line); border-radius: 999px; padding: 2px; }
.lang-switch button { font: 700 13px var(--font-b); border: 0; background: none; padding: 6px 12px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.lang-switch button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.menu-toggle { display: none; width: 46px; height: 46px; border: 2px solid var(--line); background: #fff; border-radius: 12px; cursor: pointer; color: var(--navy); place-items: center; }
.menu-toggle svg { width: 22px; height: 22px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 12px; font: 700 16px var(--font-b); border: 2px solid transparent; cursor: pointer; text-align: center; transition: background-color .2s, border-color .2s, color .2s; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-d); }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--sky-2); }
.btn-outline-light { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--navy); }
.btn-amber { background: var(--amber); color: var(--navy); }
.btn-amber:hover { background: #E9A517; }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero { background: var(--sky); padding: 64px 0 140px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.08; font-weight: 800; }
.hero .lead { margin-top: 20px; font-size: 18px; color: var(--muted); max-width: 52ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.checks { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--navy); }
.checks svg { width: 22px; height: 22px; color: var(--green); flex: none; }

/* Image slots (drop your photo <img> inside) */
.hero-media { position: relative; }
.media-slot { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--sky-2); border: 2px solid var(--navy); aspect-ratio: 4 / 3.4; }
.media-slot.ratio-45 { aspect-ratio: 4 / 5; }
.media-slot.ratio-43 { aspect-ratio: 4 / 3; }
.media-slot > .media-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.media-slot > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
body.show-slots .media-slot::after { content: attr(data-label); position: absolute; left: 12px; bottom: 12px; z-index: 2; background: var(--amber); color: var(--navy); font: 700 12px var(--font-b); padding: 6px 10px; border-radius: 8px; }

.float-badge { position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; background: #fff; border: 2px solid var(--navy); border-radius: 14px; padding: 12px 16px; font-weight: 700; font-size: 14px; color: var(--navy); line-height: 1.3; }
.float-badge small { display: block; font-weight: 500; color: var(--muted); font-size: 12.5px; }
.float-badge svg { width: 34px; height: 34px; flex: none; }
.fb-1 { left: -24px; top: 32px; }
.fb-1 svg { color: var(--green); }
.fb-2 { right: -14px; bottom: -22px; }
.fb-2 svg { color: var(--blue); }

/* One orchestrated moment: the car drives in once */
@keyframes drive-in { from { transform: translateX(-90px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.hero-car { animation: drive-in 1.1s cubic-bezier(.2,.8,.2,1) .2s both; }

/* ---------- Quote bar ---------- */
.quote-bar { position: relative; z-index: 5; margin-top: -88px; }
.quote-card { background: #fff; border: 2px solid var(--navy); border-radius: var(--r-lg); padding: 26px; box-shadow: 0 8px 0 var(--sky-2); }
.quote-title { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 18px; }
.quote-title h2 { font-size: 22px; }
.quote-title p { color: var(--muted); font-size: 15px; }
.quote-grid { display: grid; grid-template-columns: 1fr 48px 1fr 170px auto; gap: 12px; align-items: end; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.input { position: relative; }
.input svg { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 20px; height: 20px; color: var(--blue); pointer-events: none; }
.input input { width: 100%; height: 56px; padding: 0 14px 0 44px; border: 2px solid var(--line); border-radius: 12px; font: 600 16px var(--font-b); color: var(--navy); background: #fff; }
.input input.plain { padding-left: 14px; }
.input input::placeholder { color: #8797AD; font-weight: 500; }
.input input:hover { border-color: #B8C9DD; }
.input input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--sky-2); }
.input input[readonly] { background: var(--bg); color: var(--navy); cursor: default; }
.swap { height: 56px; width: 48px; border: 2px solid var(--line); background: #fff; border-radius: 12px; cursor: pointer; color: var(--blue); display: grid; place-items: center; }
.swap svg { width: 22px; height: 22px; }
.swap:hover { border-color: var(--blue); background: var(--sky); }
.quote-grid .btn { height: 56px; }
.quote-msg { min-height: 24px; margin-top: 14px; font-size: 14.5px; font-weight: 600; color: var(--muted); }
.quote-msg.error { color: #B42318; }
.quote-msg.ok { color: #0B7A50; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section.tint { background: var(--bg); }
.section-head { max-width: 660px; margin-bottom: 44px; }
.section-head h2, .split h2, .faq h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; font-weight: 800; }
.section-head p, .lead-p { margin-top: 14px; color: var(--muted); font-size: 18px; }

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 2px solid var(--line); border-radius: var(--r-lg); padding: 32px; }
.plan h3 { font-size: 24px; font-weight: 800; }
.plan .tagline { margin-top: 6px; color: var(--muted); }
.plan-price { margin: 24px 0; padding: 20px 22px; border-radius: var(--r-md); background: var(--bg); display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.plan-price .amount { font: 800 44px/1 var(--font-d); letter-spacing: -0.03em; color: var(--navy); }
.plan-price .tax { font-weight: 700; color: var(--muted); }
.plan-price .note { flex-basis: 100%; font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.plan:not(.is-empty) .note { display: none; }
.plan.is-empty .amount { color: #9AA9BC; }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 13px; flex: 1; align-content: start; }
.plan li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; font-size: 15.5px; }
.plan li svg { width: 22px; height: 22px; color: var(--green); flex: none; margin-top: 1px; }
.plan-premium { background: var(--navy); border-color: var(--navy); color: #DCE8F7; }
.plan-premium h3, .plan-premium .amount { color: #fff; }
.plan-premium .tagline, .plan-premium .tax, .plan-premium .note { color: #B9C9DD; }
.plan-premium .plan-price { background: var(--navy-2); }
.plan-premium.is-empty .amount { color: #6F86A6; }
.plan-premium li svg { color: var(--amber); }
.plan-flag { position: absolute; top: -15px; right: 28px; background: var(--amber); color: var(--navy); font-weight: 700; font-size: 13px; padding: 6px 14px; border-radius: 999px; }
.plans-foot { margin-top: 24px; color: var(--muted); font-size: 14.5px; }

/* ---------- Split layout, steps ---------- */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: center; }
.split.reverse { grid-template-columns: 1.1fr .9fr; }
.steps { list-style: none; margin: 32px 0 0; padding: 0; counter-reset: step; }
.steps li { position: relative; padding: 0 0 30px 68px; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: #fff; font: 700 18px/44px var(--font-d); text-align: center; }
.steps li::after { content: ''; position: absolute; left: 21px; top: 52px; bottom: 8px; width: 2px; background: var(--sky-2); }
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 19px; font-weight: 700; padding-top: 8px; }
.steps p { color: var(--muted); margin-top: 4px; }

/* ---------- Guarantees ---------- */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; margin-top: 32px; }
.feature { display: flex; gap: 16px; }
.icon-tile { flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--sky); color: var(--blue); display: grid; place-items: center; }
.icon-tile svg { width: 26px; height: 26px; }
.tint .icon-tile { background: #fff; border: 2px solid var(--line); }
.feature h3 { font-size: 17px; font-weight: 700; }
.feature p { color: var(--muted); font-size: 15px; margin-top: 2px; }
.partners { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 36px; padding-top: 28px; border-top: 2px solid var(--line); }
.partners span { font-weight: 700; color: var(--muted); font-size: 14px; }
.partners img { height: 46px; width: auto; background: #fff; border: 2px solid var(--line); border-radius: 10px; padding: 6px 12px; }

/* ---------- Clients ---------- */
.logos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); border: 2px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.logo-cell { background: #fff; height: 108px; display: grid; place-items: center; padding: 18px; }
.logo-cell img { max-height: 36px; max-width: 130px; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.logo-cell:hover img { filter: none; opacity: 1; }
.logo-cell.dark { background: var(--navy); }
.logo-cell.dark img { filter: none; opacity: 1; }

/* ---------- Coverage (dark) ---------- */
.dark { background: var(--navy); color: #C9D8EC; }
.dark h2 { color: #fff; }
.dark .lead-p { color: #B9C9DD; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 32px; padding: 0; list-style: none; }
.chips li { border: 2px solid #2A4B78; border-radius: 999px; padding: 7px 16px; font-weight: 600; font-size: 15px; color: #fff; }
.map-art { width: 100%; height: auto; border-radius: var(--r-lg); }
.map-art text { font: 700 15px var(--font-b); fill: #fff; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq .lead-p { max-width: 38ch; }
.faq .btn { margin-top: 24px; }
details { border-bottom: 2px solid var(--line); }
details:first-child { border-top: 2px solid var(--line); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font: 700 18px/1.35 var(--font-d); color: var(--navy); letter-spacing: -0.01em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ''; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 1v12M1 7h12' stroke='%231A5FB4' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
details[open] summary::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M1 7h12' stroke='%231A5FB4' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
details p { padding: 0 52px 22px 0; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--blue); color: #fff; padding: 72px 0; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 28px 40px; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); line-height: 1.15; max-width: 24ch; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #B9C9DD; padding: 72px 0 28px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 60px; width: auto; filter: brightness(0) invert(1); margin-bottom: 20px; }
.footer-brand p { max-width: 34ch; line-height: 1.7; }
.site-footer h4 { font: 700 15px var(--font-d); color: #fff; margin: 0 0 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a:hover { color: #fff; }
.footer-bottom { margin-top: 52px; padding-top: 24px; border-top: 2px solid #1E3A63; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 14px; }

/* ---------- Legal pages ---------- */
.page-hero { background: var(--sky); padding: 56px 0 48px; }
.page-hero h1 { font-size: clamp(32px, 4vw, 46px); font-weight: 800; line-height: 1.1; }
.page-hero p { margin-top: 12px; color: var(--muted); font-weight: 600; }
.legal { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 64px; padding: 64px 0 96px; align-items: start; }
.toc { position: sticky; top: 104px; border-left: 2px solid var(--line); padding-left: 20px; }
.toc h2 { font-size: 15px; margin-bottom: 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14.5px; font-weight: 600; }
.toc a { color: var(--muted); }
.toc a:hover { color: var(--blue); }
.prose { max-width: 72ch; }
.prose h2 { font-size: 24px; font-weight: 800; margin: 44px 0 12px; scroll-margin-top: 100px; }
.prose > section:first-child h2 { margin-top: 0; }
.prose p, .prose ul { margin: 0 0 16px; color: #2B3A52; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.info-table { border: 2px solid var(--line); border-radius: var(--r-md); overflow: hidden; margin: 0 0 24px; }
.info-row { display: grid; grid-template-columns: 200px 1fr; border-bottom: 2px solid var(--line); }
.info-row:last-child { border-bottom: 0; }
.info-row dt { background: var(--bg); font-weight: 700; padding: 12px 16px; color: var(--navy); }
.info-row dd { margin: 0; padding: 12px 16px; }
.notice { border-left: 4px solid var(--amber); background: #FFF8E6; padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 0 0 16px; color: #2B3A52; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid, .split, .split.reverse, .faq { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding-bottom: 130px; }
  .hero-media { max-width: 560px; }
  .quote-grid { grid-template-columns: 1fr 48px 1fr; }
  .quote-grid .f-dist, .quote-grid .btn { grid-column: 1 / -1; }
  .split .media-slot { max-width: 560px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .legal { grid-template-columns: 1fr; gap: 32px; }
  .toc { position: static; }
}
@media (max-width: 960px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 2px solid var(--line); flex-direction: column; gap: 0; padding: 8px 24px 20px; margin: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 2px solid var(--line); }
  .menu-toggle { display: grid; }
  .header-actions { margin-left: auto; }
  .header-actions .btn { display: none; }
}
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .plans, .feature-grid { grid-template-columns: 1fr; }
  .plan { padding: 26px; }
  .topbar .topbar-mail { display: none; }
  .fb-1 { left: 10px; top: 10px; }
  .fb-2 { right: 10px; bottom: 10px; }
  .float-badge { padding: 8px 12px; font-size: 13px; }
  .float-badge svg { width: 26px; height: 26px; }
  .info-row { grid-template-columns: 1fr; }
  .info-row dt { padding-bottom: 4px; }
  .info-row dd { padding-top: 4px; }
  details p { padding-right: 0; }
}
@media (max-width: 640px) {
  .quote-grid { grid-template-columns: 1fr; }
  .swap { width: 100%; height: 44px; }
  .swap svg { rotate: 90deg; }
  .logos { grid-template-columns: repeat(3, 1fr); }
  .logo-cell { height: 84px; padding: 10px; }
  .logo-cell img { max-height: 28px; max-width: 86px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-car { animation: none; }
  * { transition: none !important; }
}
