/* =========================================================
   AK Cars · Estilos
   Paleta tomada del logo: granate #34120A y crema #EEE7D7
   ========================================================= */

/* Tipografía Archivo alojada en la propia web (sin conexiones a Google) */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../assets/fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../assets/fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --maroon: #34120A;
  --maroon-900: #240C06;
  --maroon-700: #4A1D12;
  --cream: #EEE7D7;
  --cream-50: #F8F5EE;
  --tint: #F2ECE1;
  --ink: #2A140D;
  --muted: #6E5A4E;
  --muted-light: rgba(238, 231, 215, .72);
  --line: rgba(52, 18, 9, .14);
  --line-light: rgba(238, 231, 215, .18);
  --wa: #25D366;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --container: 1160px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream-50);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; line-height: 1.1; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }

/* ---------- Tipografía ---------- */
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.eyebrow--light { color: var(--muted-light); }

.section__title {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  font-stretch: 92%;
  letter-spacing: -.015em;
  margin-bottom: 20px;
}
.section__sub { color: var(--muted); max-width: 560px; }
.lead { font-size: 20px; line-height: 1.5; color: var(--ink); }
.small { font-size: 15px; color: var(--muted); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 15px 26px;
  border-radius: 999px;
  font: 600 16px/1 var(--font);
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--sm { padding: 11px 18px; font-size: 15px; }
.btn--block { width: 100%; }
.btn--cream { background: var(--cream); color: var(--maroon); }
.btn--cream:hover { background: #fff; }
.btn--ghost { border-color: var(--line-light); color: var(--cream); }
.btn--ghost:hover { border-color: var(--cream); }
.btn--dark { background: var(--maroon); color: var(--cream); }
.btn--dark:hover { background: var(--maroon-700); }
.btn--outline { border-color: var(--maroon); color: var(--maroon); }
.btn--outline:hover { background: var(--maroon); color: var(--cream); }

/* ---------- Cabecera ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--maroon);
  color: var(--cream);
  transition: box-shadow .3s;
}
.header.is-scrolled { box-shadow: 0 1px 0 var(--line-light), 0 10px 30px rgba(0,0,0,.18); }
.header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }
.header__logo img { height: 48px; width: auto; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { text-decoration: none; font-size: 15px; color: var(--muted-light); transition: color .2s; }
.nav a:not(.btn):hover { color: var(--cream); }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--cream); transition: transform .25s, top .25s; }
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(120% 80% at 80% 0%, var(--maroon-700) 0%, var(--maroon) 55%, var(--maroon-900) 100%);
  color: var(--cream);
  padding: clamp(64px, 10vw, 120px) 0 0;
  overflow: hidden;
}
.hero__title {
  font-size: clamp(42px, 7vw, 84px);
  font-weight: 900;
  font-stretch: 88%;
  letter-spacing: -.025em;
  line-height: 1;
  margin-bottom: 26px;
}
.hero__lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted-light); max-width: 540px; margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__visual {
  margin: clamp(40px, 6vw, 72px) auto 0;
  max-width: 1100px;
  padding: 0 24px;
  position: relative;
}
.hero__visual img { width: 100%; opacity: .92; }
.hero__visual::after {
  content: ""; display: block; height: 1px; margin-top: 6px;
  background: linear-gradient(90deg, transparent, var(--line-light) 15%, var(--line-light) 85%, transparent);
}

.hero__points {
  list-style: none; margin: 0; padding: 36px 0 56px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.hero__points li { display: flex; flex-direction: column; gap: 4px; }
.hero__points strong { font-weight: 700; font-size: 16px; }
.hero__points span { font-size: 15px; color: var(--muted-light); }

/* ---------- Secciones ---------- */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--maroon); color: var(--cream); }
.section--dark .section__title { color: var(--cream); }
.section__head { max-width: 720px; margin-bottom: 52px; }

.split { display: grid; grid-template-columns: 5fr 6fr; gap: 64px; align-items: start; }
.split p:not(.lead):not(.eyebrow) { color: var(--muted); }

.values { list-style: none; padding: 0; margin: 32px 0 0; border-top: 1px solid var(--line); }
.values li { display: flex; gap: 18px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.values__n { font-size: 13px; color: var(--muted); font-weight: 500; letter-spacing: .08em; }

/* ---------- Pasos ---------- */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.step {
  display: flex; gap: 18px;
  padding: 32px 28px 32px 0;
  border-bottom: 1px solid var(--line);
}
.step:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.step__n {
  flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--maroon); color: var(--cream);
  font-weight: 700; font-size: 16px;
}
.step h3 { font-size: 19px; font-weight: 700; margin: 8px 0 8px; }
.step p { color: var(--muted); font-size: 16px; margin: 0; }

/* ---------- Mercados ---------- */
.markets { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.market {
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 36px;
  background: rgba(255, 255, 255, .02);
}
.market h3 { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.market p { color: var(--muted-light); }
.chips { list-style: none; padding: 0; margin: 24px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line-light);
  font-size: 15px;
}
.market .small { color: var(--muted-light); margin: 0; }
.market__big {
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 900; font-stretch: 88%;
  letter-spacing: -.02em; line-height: 1;
  margin: 28px 0 20px;
}
.market__big sup { font-size: .45em; vertical-align: super; margin-left: 2px; }
.footnote { font-size: 14px; margin: 0; padding-top: 16px; border-top: 1px solid var(--line-light); }

/* ---------- Packs ---------- */
.packs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pack {
  position: relative;
  display: flex; flex-direction: column;
  padding: 32px 26px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform .25s, box-shadow .25s;
}
.pack:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(52, 18, 9, .08); }
.pack h3 { font-size: 21px; font-weight: 800; font-stretch: 94%; margin-bottom: 12px; }
.pack > p { color: var(--muted); font-size: 16px; }
.pack ul { list-style: none; padding: 0; margin: 8px 0 28px; flex: 1; }
.pack li { position: relative; padding: 9px 0 9px 26px; border-top: 1px solid var(--line); font-size: 15px; }
.pack li::before {
  content: ""; position: absolute; left: 2px; top: 15px;
  width: 11px; height: 6px;
  border-left: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}
.pack .btn { width: 100%; padding-inline: 12px; white-space: nowrap; }
.pack--featured { background: var(--maroon); color: var(--cream); border-color: var(--maroon); }
.pack--featured > p { color: var(--muted-light); }
.pack--featured li { border-color: var(--line-light); }
.pack__tag {
  position: absolute; top: -12px; left: 26px;
  background: var(--cream); color: var(--maroon);
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--maroon);
}

/* ---------- Presupuesto ---------- */
.quote { display: grid; grid-template-columns: 4fr 7fr; gap: 64px; align-items: start; }
.quote__intro { position: sticky; top: calc(var(--header-h) + 32px); }
.quote__intro p:not(.eyebrow) { color: var(--muted); }

.form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(24px, 4vw, 44px);
}
.form fieldset { border: 0; padding: 0; margin: 0 0 32px; }
.form legend {
  display: flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: 18px;
  margin-bottom: 18px; padding: 0;
}
.form legend span {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--tint); color: var(--maroon);
  font-size: 13px;
}
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; font-size: 14px; font-weight: 600; color: var(--ink); }
.field--full { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  font: 400 16px/1.4 var(--font);
  color: var(--ink);
  background: var(--cream-50);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 14px;
  width: 100%;
  transition: border-color .2s, background .2s;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2334120A' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 38px;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--maroon); background: #fff; }
.field input::placeholder, .field textarea::placeholder { color: #a8968a; }
.is-invalid { border-color: #B3261E !important; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); margin-bottom: 24px; cursor: pointer; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--maroon); flex: none; }
.check.is-invalid { color: #B3261E; }

.form__status { margin: 14px 0 0; font-size: 15px; text-align: center; min-height: 1.4em; }
.form__status.ok { color: #2E6B3A; }
.form__status.err { color: #B3261E; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 4fr 7fr; gap: 64px; align-items: start; }
.contact__intro p:not(.eyebrow) { color: var(--muted); }
.contact__wa { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.contact__wa .small { margin-bottom: 14px; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #1ebe5a; }
.btn--wa svg { width: 20px; height: 20px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- FAQs ---------- */
.faq-wrap { display: grid; grid-template-columns: 4fr 7fr; gap: 64px; align-items: start; }
.faq-wrap > div:first-child p:not(.eyebrow) { color: var(--muted); }
.faqs { border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0;
  font-weight: 600; font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none;
  width: 12px; height: 12px;
  background:
    linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 12px no-repeat;
  transition: transform .25s;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin: 0; padding: 0 40px 24px 0; }

/* ---------- CTA final ---------- */
.cta { background: var(--maroon); color: var(--cream); padding: 72px 0; }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; font-stretch: 92%; letter-spacing: -.015em; }
.cta__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Pie ---------- */
.footer { background: var(--maroon-900); color: var(--muted-light); padding: 56px 0 32px; font-size: 14px; }
.footer__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 32px 48px; align-items: center; }
.footer__ig {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--line-light);
  color: var(--cream); text-decoration: none; font-weight: 600;
  transition: border-color .2s;
}
.footer__ig:hover { border-color: var(--cream); }
.footer__ig svg { width: 18px; height: 18px; fill: currentColor; }
.footer__logo { height: 56px; width: auto; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: flex-end; }
.footer__nav a, .footer__legal a { text-decoration: none; }
.footer__nav a:hover, .footer__legal a:hover { color: var(--cream); }
.footer__legal {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 24px; border-top: 1px solid var(--line-light);
}

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--wa); color: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .25);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--wa); opacity: .5; z-index: -1;
  animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .5; } 80%, 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- Animación al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .wa-float::before { animation: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .packs { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--maroon);
    padding: 8px 24px 28px;
    border-top: 1px solid var(--line-light);
    box-shadow: 0 20px 30px rgba(0,0,0,.2);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line-light); }
  .nav .btn { margin-top: 20px; }

  .split, .quote, .faq-wrap, .contact { grid-template-columns: 1fr; gap: 32px; }
  .quote__intro { position: static; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step, .step:not(:nth-child(3n+1)) { padding: 28px 24px 28px 0; border-left: 0; }
  .step:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--line); }
  .markets { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  :root { --header-h: 66px; }
  .header__logo img { height: 40px; }
  .hero__points { grid-template-columns: 1fr; gap: 18px; padding-bottom: 44px; }
  .hero__actions .btn, .cta__actions .btn { flex: 1 1 100%; }
  .steps { grid-template-columns: 1fr; }
  .step:nth-child(n) { padding: 24px 0; border-left: 0; }
  .packs { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .market { padding: 26px 22px; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__ig { justify-self: start; }
  .footer__nav { justify-content: flex-start; }
  .wa-float { right: 16px; bottom: 16px; width: 56px; height: 56px; }
}

/* ---------- Entrada del hero al cargar ---------- */
.intro { animation: introUp .8s cubic-bezier(.2,.7,.2,1) both; }
.hero__title.intro { animation-delay: .08s; }
.hero__lead.intro { animation-delay: .16s; }
.hero__actions.intro { animation-delay: .24s; }
.hero__visual { animation: introCar 1.2s .2s cubic-bezier(.2,.7,.2,1) both; }
@keyframes introUp { from { opacity: 0; transform: translateY(16px); } }
@keyframes introCar { from { opacity: 0; transform: translateX(-40px); } }
@media (prefers-reduced-motion: reduce) { .intro, .hero__visual { animation: none; } }

/* =========================================================
   Páginas legales
   ========================================================= */
.header__back { color: var(--muted-light); text-decoration: none; font-size: 15px; }
.header__back:hover { color: var(--cream); }

.legal { padding: clamp(56px, 8vw, 96px) 0 clamp(72px, 10vw, 120px); }
.legal__inner { max-width: 780px; }
.legal h1 {
  font-size: clamp(36px, 5.5vw, 56px);
  font-weight: 900; font-stretch: 88%;
  letter-spacing: -.02em;
  margin-bottom: 12px;
}
.legal__updated { color: var(--muted); font-size: 15px; margin-bottom: 44px; }
.legal h2 { font-size: 22px; font-weight: 800; font-stretch: 94%; margin: 44px 0 14px; }
.legal h3 { font-size: 18px; font-weight: 700; margin: 28px 0 10px; }
.legal p, .legal li { color: #4a3329; }
.legal ul { padding-left: 20px; margin: 0 0 1em; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--maroon); }
.legal__data { list-style: none; padding: 20px 24px !important; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.legal__data li { margin: 0; padding: 6px 0; }
.legal__data strong { color: var(--ink); }
.legal table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 15px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.legal th, .legal td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--tint); font-weight: 700; }
.legal tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }

/* Información básica de protección de datos bajo los formularios */
.form__legal { font-size: 12.5px; line-height: 1.5; color: var(--muted); margin: -8px 0 22px; }
.form__legal a { color: inherit; }
.check a { color: var(--maroon); }

/* ---------- Selector de idioma ---------- */
.nav { margin-left: auto; }
.lang { display: flex; align-items: center; gap: 2px; margin-left: 22px; }
.lang a {
  padding: 6px 7px; border-radius: 6px;
  font-size: 13px; font-weight: 600; letter-spacing: .06em;
  color: var(--muted-light); text-decoration: none;
  transition: color .2s, background .2s;
}
.lang a:hover { color: var(--cream); }
.lang a[aria-current="page"] { color: var(--cream); background: rgba(238, 231, 215, .12); }
.header__back { margin-left: 18px; }
@media (max-width: 1180px) {
  .nav { gap: 20px; }
}
@media (max-width: 960px) {
  .lang { margin-left: auto; margin-right: 6px; }
}
@media (max-width: 640px) {
  .header__back { font-size: 0; }
  .header__back::before { content: "←"; font-size: 20px; }
}
.header__logo + .lang { margin-left: auto; }
