/* ==========================================================
   No Pierdas tu Coche · web sencilla, solo coches con embargo
   ========================================================== */

:root {
  --black: #0E1A2B;
  --black-2: #16253B;
  --blue: #0E1A2B;
  --red: #D11920;
  --red-deep: #A70F15;
  --accent: #D11920;
  --accent-deep: #A70F15;
  --wa: #1FA463;
  --white: #FFFFFF;
  --paper: #F3F5F9;
  --ink: #1A1F2E;
  --muted: #5B6477;
  --line: #D9DEE8;
  --error: #C0251A;

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --text: "Barlow", system-ui, sans-serif;
  --wrap: 1080px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 .5em;
  text-wrap: balance;
}
:focus-visible { outline: 3px solid #2F7CF6; outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

/* ---------- Cabecera ---------- */
.top { background: var(--white); color: var(--black); border-bottom: 4px solid var(--red); }
.top__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 76px; padding-top: 6px; padding-bottom: 6px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__logo { height: 64px; width: auto; }
@media (min-width: 720px) { .brand__logo { height: 84px; } }
.top__cta {
  font-family: var(--display); font-weight: 700; font-size: 1.05rem;
  text-transform: uppercase; letter-spacing: .04em; text-decoration: none;
  background: var(--red); color: var(--white); border-radius: 8px; padding: 10px 16px; white-space: nowrap;
}
.top__cta:hover { background: var(--red-deep); }
@media (max-width: 420px) { .brand__logo { height: 54px; } .top__cta { font-size: .9rem; padding: 8px 10px; } }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(209, 25, 32, .28), transparent 60%),
    var(--black);
  color: var(--white);
  text-align: center;
  padding: 48px 0 56px;
}
.hero__inner { max-width: 760px; }
.hero__kicker {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; font-size: 1.05rem; margin-bottom: 16px;
}
.hero__offer {
  display: block; background: var(--white); color: var(--red);
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; font-size: clamp(1.35rem, 4vw, 1.75rem); line-height: 1.15;
  text-decoration: none; border-radius: 18px; padding: 14px 20px; margin: 0 auto 28px;
}
.hero__offer:hover { background: var(--red); color: var(--white); }
.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  text-transform: uppercase; letter-spacing: .01em; margin-bottom: 28px;
}
.contact {
  display: grid; grid-template-columns: repeat(2, 1fr);
  background: var(--white); color: var(--ink);
  border-radius: 18px; padding: 18px 8px; margin: 0 auto 24px;
}
.contact__item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-decoration: none; font-family: var(--display); font-weight: 700;
  text-transform: uppercase; font-size: 1.1rem; letter-spacing: .03em; padding: 4px;
  border-radius: 10px;
}
.contact__item:hover { background: var(--paper); }
.ico { width: 38px; height: 38px; }
.ico--phone { fill: var(--black); }
.ico--wa { fill: var(--wa); }
.hero__tag {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; font-size: 1.05rem; margin-bottom: 28px;
}
.badges {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px;
}
.badges li { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.badges li::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23FFFFFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- Quiénes somos ---------- */
.about { padding: 56px 0; text-align: center; background: var(--white); }
.about__inner { max-width: 820px; }
.about h2 { color: var(--red); font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; }
.about p { color: var(--ink); font-size: 1.1rem; }
.about strong { font-weight: 700; }

/* ---------- Pasos ---------- */
.steps { background: var(--paper); padding: 56px 0; text-align: center; }
.steps__title, .types__title, .faq__title {
  font-size: clamp(1.9rem, 5vw, 2.6rem); text-transform: uppercase;
}
.steps__list {
  list-style: none; margin: 24px 0 0; padding: 0;
  display: grid; gap: 16px; grid-template-columns: 1fr;
}
@media (min-width: 760px) { .steps__list { grid-template-columns: repeat(3, 1fr); } }
.steps__list li { background: var(--white); border-radius: 16px; padding: 28px 22px; border: 1px solid var(--line); }
.steps__num {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--red); color: var(--white);
  font-family: var(--display); font-weight: 800; font-size: 1.7rem; margin-bottom: 12px;
}
.steps__list h3 { font-size: 1.6rem; text-transform: uppercase; margin-bottom: .3em; }
.steps__list p { color: var(--muted); }

/* ---------- Formulario ---------- */
.quote-section { background: var(--black); padding: 56px 0; }
.quote-wrap { max-width: 560px; }
.quote {
  background: var(--white); border-radius: 20px; padding: 28px 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}
@media (min-width: 560px) { .quote { padding: 34px 32px; } }
.quote__title { font-size: clamp(1.8rem, 5vw, 2.3rem); text-transform: uppercase; color: var(--blue); margin-bottom: .2em; text-align: center; }
.quote__sub { text-align: center; color: var(--muted); margin-bottom: 22px; }
.quote__row { display: grid; gap: 0 14px; grid-template-columns: 1fr; }
@media (min-width: 480px) { .quote__row { grid-template-columns: 1fr 1fr; } }
.field { display: block; margin-bottom: 16px; }
.field__label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.field__input {
  width: 100%; font: inherit; color: var(--ink);
  border: 2px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--white);
}
.field__input:focus { outline: none; border-color: var(--blue); }
.field__input[aria-invalid="true"] { border-color: var(--error); }
.field__input--plate {
  font-family: var(--display); font-weight: 800; font-size: 1.8rem;
  letter-spacing: .12em; text-transform: uppercase; text-align: center; padding: 8px 14px;
}
.upload { margin-bottom: 18px; }
.upload__input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload__drop {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  border: 2px dashed var(--line); border-radius: 10px; padding: 14px; cursor: pointer;
  font-weight: 600; color: var(--muted);
}
.upload__drop em { font-style: normal; font-weight: 400; }
.upload__drop:hover, .upload.is-dragging .upload__drop { border-color: var(--blue); color: var(--blue); }
.upload__input:focus-visible + .upload__drop { outline: 3px solid #2F7CF6; outline-offset: 3px; }
.upload__drop.is-hidden { display: none; }
.upload__icon { width: 26px; height: 26px; flex: none; }
.upload__preview { display: flex; align-items: center; gap: 12px; }
.upload__preview[hidden], .quote[hidden] { display: none; }
.upload__preview img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; }
.upload__remove { font: inherit; background: none; border: 0; color: var(--error); text-decoration: underline; cursor: pointer; }
.hp { position: absolute; left: -9999px; }
.quote__error { color: var(--error); font-weight: 600; margin-bottom: 12px; }
.quote--done { text-align: center; }
.quote__check { width: 64px; height: 64px; margin: 0 auto 14px; }
.quote--done:focus { outline: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 800; font-size: 1.3rem;
  text-transform: uppercase; letter-spacing: .05em; text-decoration: none;
  border: 0; border-radius: 12px; padding: 14px 26px; cursor: pointer;
}
.btn--block { width: 100%; }
.btn--accent { background: var(--red); color: var(--white); }
.btn--accent:hover { background: var(--accent-deep); }
.btn--accent:disabled { opacity: .6; cursor: wait; }
.btn--wa { background: var(--wa); color: var(--white); }
.btn--wa:hover { filter: brightness(.92); }

/* ---------- Tipos de embargo ---------- */
.types { padding: 56px 0; text-align: center; }
.types__grid {
  list-style: none; margin: 24px 0 0; padding: 0;
  display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 760px) { .types__grid { grid-template-columns: repeat(4, 1fr); } }
.types__grid li {
  border: 2px solid var(--black); border-top: 6px solid var(--red); border-radius: 14px; padding: 20px 12px;
  display: flex; flex-direction: column; gap: 2px;
}
.types__grid strong { font-family: var(--display); font-size: 1.5rem; text-transform: uppercase; color: var(--blue); line-height: 1.1; }
.types__grid span { color: var(--muted); font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq { background: var(--paper); padding: 56px 0; }
.faq__inner { max-width: 760px; }
.faq__title { text-align: center; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; position: relative;
  font-weight: 700; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; color: var(--red); font-weight: 600;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 18px 16px; color: var(--muted); }

/* ---------- Cierre ---------- */
.closing { background: var(--red); color: var(--white); text-align: center; padding: 56px 0; }
.closing h2 { font-size: clamp(2rem, 6vw, 3.2rem); text-transform: uppercase; }
.closing__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 12px; }

/* ---------- Pie ---------- */
.foot { background: var(--black); color: #B8C0D3; text-align: center; padding: 36px 0 96px; font-size: .95rem; }
.foot__brand { font-family: var(--display); font-weight: 800; font-size: 1.4rem; color: var(--white); letter-spacing: .04em; margin-bottom: .3em; }
.foot__brand span { color: var(--red); }
.foot a { color: var(--white); }
.foot__legal { margin-top: 1em; font-size: .85rem; }
@media (min-width: 760px) { .foot { padding-bottom: 36px; } }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; left: 16px; bottom: 16px; z-index: 20;
  width: 60px; height: 60px; border-radius: 50%; background: var(--wa);
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
}
.wa-float svg { width: 34px; height: 34px; fill: var(--white); }
.wa-float:hover { filter: brightness(.92); }
.closing .btn--accent { background: var(--white); color: var(--red); }
.closing .btn--accent:hover { background: var(--paper); }

/* ---------- Garantías ---------- */
.perks { background: var(--white); padding: 0 0 56px; }
.perks__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 14px; grid-template-columns: 1fr;
}
@media (min-width: 560px) { .perks__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .perks__grid { grid-template-columns: repeat(4, 1fr); } }
.perks__grid li {
  background: var(--black); color: var(--white); border-radius: 16px; padding: 22px 20px;
  display: flex; flex-direction: column; gap: 4px; text-align: left;
}
.perks__grid svg { width: 34px; height: 34px; color: var(--red); margin-bottom: 8px; }
.perks__grid strong { font-family: var(--display); font-size: 1.45rem; text-transform: uppercase; line-height: 1.1; }
.perks__grid span { color: #B8C0D3; }

/* ---------- Animación de entrada con el logo ---------- */
.intro { display: none; }
.intro-on .intro {
  display: block; position: fixed; inset: 0; z-index: 100;
  animation: intro-failsafe 0s 9s forwards;
}
.intro-on body { overflow: hidden; }
.intro-on .brand__logo { opacity: 0; }
@keyframes intro-failsafe { to { visibility: hidden; } }

.intro__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 45%, #FFFFFF 0%, #FFFFFF 40%, #EEF1F6 100%);
}
.intro__stage { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.intro__logo {
  position: relative; width: min(92vw, 680px); aspect-ratio: 1000 / 540;
  transform-origin: 0 0; will-change: transform;
}
.intro__layer {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; user-select: none; -webkit-user-drag: none;
}
.intro__arc {
  --a: 0deg;
  -webkit-mask: conic-gradient(from 232deg at 41.4% 50.8%, #000 var(--a), transparent var(--a));
          mask: conic-gradient(from 232deg at 41.4% 50.8%, #000 var(--a), transparent var(--a));
}
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.intro__lock { transform-origin: 77.4% 68.9%; }
.intro__gavel { transform-origin: 82.5% 58.9%; }
.intro__line { transform-origin: 47.5% 50%; }
.intro__glow {
  position: absolute; width: 22%; aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%) scale(.2); opacity: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(255,236,190,.85) 18%, rgba(255,220,150,0) 65%);
  mix-blend-mode: screen;
}
.intro__glow--l { left: 19.5%; top: 43.5%; }
.intro__glow--r { left: 55.5%; top: 43.5%; }
.intro__ring {
  position: absolute; left: 74.4%; top: 60%; width: 16%; aspect-ratio: 1;
  border: 3px solid var(--red); border-radius: 50%;
  transform: translate(-50%, -50%) scale(.2); opacity: 0; pointer-events: none;
}
.intro__skip {
  position: absolute; right: 16px; bottom: 16px;
  font: 600 .95rem var(--text); color: var(--muted);
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; cursor: pointer;
}
.intro__skip:hover { color: var(--black); border-color: var(--black); }

/* Entrada escalonada del contenido de la portada tras la intro */
.hero-in .hero__inner > * { animation: hero-rise .7s cubic-bezier(.2,.8,.2,1) both; }
.hero-in .hero__inner > :nth-child(2) { animation-delay: .06s; }
.hero-in .hero__inner > :nth-child(3) { animation-delay: .12s; }
.hero-in .hero__inner > :nth-child(4) { animation-delay: .2s; }
.hero-in .hero__inner > :nth-child(5) { animation-delay: .28s; }
.hero-in .hero__inner > :nth-child(6) { animation-delay: .34s; }
@keyframes hero-rise { from { opacity: 0; transform: translateY(24px); } }
@media (prefers-reduced-motion: reduce) { .hero-in .hero__inner > * { animation: none; } }

/* ---------- Otras cargas ---------- */
.more { background: var(--black); color: var(--white); padding: 56px 0; text-align: center; }
.more__title { font-size: clamp(1.9rem, 5vw, 2.6rem); text-transform: uppercase; }
.more__grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 24px; }
@media (min-width: 760px) { .more__grid { grid-template-columns: repeat(3, 1fr); } }
.more__card {
  background: var(--black-2); border: 1px solid rgba(255,255,255,.08); border-top: 6px solid var(--red);
  border-radius: 16px; padding: 26px 22px; text-align: left;
}
.more__card svg { width: 38px; height: 38px; color: var(--red); margin-bottom: 10px; }
.more__card h3 { font-size: 1.6rem; text-transform: uppercase; margin-bottom: .35em; }
.more__card p { color: #B8C0D3; }
