/* Alquiler Sin Conductor — web v4 (modo oscuro)
   Sobria y de empresa: fondo grafito, texto claro, el naranja de ASC solo para acción y estado.
   Tipografías alojadas en la propia web (ver fonts/LEEME.md). Sin peticiones a terceros. */

@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/BarlowCondensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/BarlowCondensed-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: normal; font-display: swap; src: url("fonts/BarlowCondensed-800.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/AtkinsonHyperlegible-400.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/AtkinsonHyperlegible-700.woff2") format("woff2"); }

:root {
  --paper: #111316;           /* fondo de página */
  --mist: #181b1f;            /* secciones alternas */
  --card: #1f2328;            /* tarjeta del formulario */
  --field: #14161a;           /* campos del formulario */
  --graphite: #0b0c0e;        /* banda y pie, más profundos que la página */
  --ink: #f2f3f5;             /* texto */
  --slate: #a9adb5;           /* texto secundario (8:1 sobre la página) */
  --orange: #f26f21;          /* naranja ASC: acción y estado */
  --orange-deep: #dd5f12;     /* pulsado */
  --orange-ink: #ff8f4d;      /* naranja para texto pequeño sobre oscuro */
  --orange-wash: rgba(242, 111, 33, 0.12);
  --orange-line: rgba(242, 111, 33, 0.5);
  --hair: #2c3036;
  --rule: #5d636d;
  --on-dark: #c9ccd2;

  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --text: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 6px;
  --radius-photo: 8px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; scrollbar-color: var(--orange) var(--mist); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font: 400 1.0625rem/1.6 var(--text);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--orange); color: #17181c; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); text-underline-offset: 0.2em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--orange-ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: -0.2em; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--orange); color: #17181c; padding: 10px 16px; font-weight: 700; border-radius: var(--radius); }
.skip:focus { left: 8px; }
.skip:hover { color: #17181c; }

.wrap { max-width: 1200px; margin-inline: auto; }
.section { padding: 56px 20px; }
@media (min-width: 900px) { .section { padding: 96px 40px; } }
.section--mist { background: var(--mist); }
.section--dark { background: var(--graphite); color: #fff; }
.section--hair { border-top: 1px solid var(--hair); }

/* Tipografía */
h1 { font: 700 clamp(3rem, 6.4vw, 5.25rem)/0.96 var(--display); letter-spacing: -0.01em; text-wrap: balance; }
h2 { font: 700 clamp(2.1rem, 3.8vw, 3rem)/1 var(--display); letter-spacing: -0.005em; text-wrap: balance; }
h3 { font: 700 1.5rem/1.1 var(--display); }
h4 { font: 700 1.7rem/1.05 var(--display); }
.lead { font-size: clamp(1.12rem, 1.8vw, 1.3rem); line-height: 1.5; color: var(--slate); max-width: 38ch; }
.muted { color: var(--slate); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  font: 700 1.2rem/1 var(--display); letter-spacing: 0.02em;
  color: #17181c; background: var(--orange);
  border: 2px solid var(--orange); border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: background 0.16s, border-color 0.16s, color 0.16s;
}
.btn:hover { background: var(--orange-deep); border-color: var(--orange-deep); color: #17181c; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn--line { background: transparent; border-color: var(--rule); color: var(--ink); }
.btn--line:hover { background: var(--ink); border-color: var(--ink); color: #17181c; }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 1.1rem; }
.btn--block { width: 100%; }
.link { font-weight: 700; }

/* Cabecera */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(17, 19, 22, 0.96); border-bottom: 1px solid var(--hair); padding: 0 20px; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.bar img { height: 40px; width: auto; }
.nav { display: none; gap: 30px; }
.nav a { font-size: 0.98rem; font-weight: 700; text-decoration: none; padding: 12px 0; }
.nav a:hover { color: var(--orange-ink); text-decoration: underline; text-decoration-thickness: 2px; }
@media (min-width: 900px) { .site-header { padding: 0 40px; } .nav { display: flex; } }

/* Portada */
.hero { padding: 40px 20px 56px; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
.hero-copy > * + * { margin-top: 22px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; padding-top: 6px; }
.assure { display: grid; gap: 10px; padding-top: 14px; }
.assure li { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.assure .ic { color: var(--orange-ink); width: 22px; height: 22px; }
.hero-stage { display: grid; place-items: center; }
.hero-van { width: 100%; height: auto; filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.5)); }
.hero-photo figcaption { margin-top: 10px; font-size: 0.95rem; color: var(--slate); }
@media (min-width: 900px) {
  .hero { padding: 72px 40px 96px; }
  .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
}

/* Cabecera de sección */
.sec-head { display: grid; gap: 14px; margin-bottom: 40px; }
.sec-head p { color: var(--slate); max-width: 56ch; font-size: 1.1rem; }
@media (min-width: 900px) { .sec-head { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: end; margin-bottom: 56px; } }

/* Condiciones */
.split { display: grid; gap: 28px; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; } }
.split-head > * + * { margin-top: 14px; }
.split-head p { color: var(--slate); font-size: 1.1rem; max-width: 36ch; }
.terms { border-top: 1px solid var(--rule); }
.terms .inc dt { display: flex; align-items: center; gap: 10px; }
.terms .inc .ic { width: 26px; height: 26px; color: var(--orange-ink); }
.terms div { display: grid; gap: 4px; padding: 20px 0; border-bottom: 1px solid var(--hair); }
.terms dt { font: 700 1.5rem/1.1 var(--display); }
.terms dd { color: var(--slate); max-width: 52ch; }
@media (min-width: 640px) { .terms div { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; } }

/* Pasos */
.steps { display: grid; gap: 0; margin-top: 8px; }
.steps li { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 0 18px; align-items: center; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, 0.22); }
.step-art { height: 104px; overflow: hidden; display: flex; align-items: flex-end; justify-content: flex-start; }
.step-art img { height: 100%; width: auto; max-width: none; -webkit-mask-image: linear-gradient(to bottom, #000 76%, transparent 100%); mask-image: linear-gradient(to bottom, #000 76%, transparent 100%); }
.steps .n { display: block; margin-bottom: 10px; font: 800 2.6rem/1 var(--display); color: var(--orange); font-variant-numeric: tabular-nums; }
.steps h3 { color: #fff; margin-bottom: 8px; }
.steps p { color: var(--on-dark); max-width: 30ch; }
.section--dark h2 { color: #fff; }
.section--dark .sec-head p { color: var(--on-dark); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
  .steps li { display: block; padding: 0; border-top: 0; }
  .step-art { height: 220px; margin-bottom: 20px; }
}

/* Solicitud */
.request { display: grid; gap: 32px; }
.request-intro > * + * { margin-top: 14px; }
.request-intro p { color: var(--slate); font-size: 1.1rem; max-width: 36ch; }
.sheet-form { background: var(--card); border: 1px solid var(--hair); border-radius: var(--radius-photo); padding: 24px 20px; }
@media (min-width: 640px) { .sheet-form { padding: 36px 36px; } }
@media (min-width: 900px) { .request { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; } }
.form-grid { display: grid; gap: 22px; }
.two { display: grid; gap: 22px; }
@media (min-width: 640px) { .two { grid-template-columns: 1fr 1fr; } }
.f { display: grid; gap: 6px; align-content: start; border: 0; padding: 0; margin: 0; min-width: 0; }
.f label, .f legend { padding: 0; font: 700 0.95rem/1.3 var(--text); color: var(--ink); }
.f .hint { font-weight: 400; color: var(--slate); }
.f input[type="text"], .f input[type="tel"], .f input[type="email"], .f select {
  width: 100%; min-height: 52px; padding: 0 14px;
  font: 400 1.05rem/1.3 var(--text); color: var(--ink);
  background: var(--field); border: 1px solid #596069; border-radius: var(--radius);
  appearance: none; caret-color: var(--orange-ink);
}
.f input::placeholder { color: #8b9099; }
.f select {
  padding-right: 40px; cursor: pointer;
  background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F2F3F5' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E") no-repeat right 12px center / 20px;
}
.f input:focus, .f select:focus { border-color: var(--ink); outline: 3px solid var(--orange); outline-offset: 1px; }
.radios { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.opt { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 400; cursor: pointer; }
.opt input { width: 20px; height: 20px; flex: none; accent-color: var(--orange); }
.opt--text { align-items: flex-start; padding-block: 8px; font-size: 1rem; color: var(--slate); }
.opt--text input { margin-top: 2px; }
.err { display: flex; align-items: center; gap: 8px; font: 700 0.95rem/1.3 var(--text); color: var(--orange-ink); }
.err:empty { display: none; }
.err:not(:empty)::before {
  content: ""; width: 16px; height: 16px; flex: none; background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / contain no-repeat;
}
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; background: var(--orange-wash); border: 1px solid var(--orange-line); border-radius: var(--radius); font-weight: 700; }
.notice .ic { width: 22px; height: 22px; margin-top: 1px; color: var(--orange-ink); }
.form-foot { font-size: 0.95rem; color: var(--slate); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.thanks { display: grid; gap: 14px; justify-items: start; padding: 8px 0; }
.thanks .done { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--orange); color: #17181c; }
.thanks .done svg { width: 28px; height: 28px; }
.thanks p { color: var(--slate); max-width: 44ch; }
.testbadge { display: inline-block; padding: 6px 12px; border: 1px solid var(--orange-line); border-radius: var(--radius); background: var(--orange-wash); font-size: 0.92rem; font-weight: 700; }
@media (prefers-reduced-motion: no-preference) { .thanks { animation: aparece 0.4s var(--ease) both; } }
@keyframes aparece { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Pie */
.site-footer { background: var(--graphite); color: var(--on-dark); padding: 40px 20px; font-size: 0.98rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.site-footer img { height: 34px; width: auto; }
.site-footer nav { display: flex; gap: 24px; }
.site-footer a { color: #fff; font-weight: 700; }
.site-footer a:hover { color: var(--orange); }
@media (min-width: 900px) { .site-footer { padding: 48px 40px; } }

/* Páginas legales */
.legal { max-width: 760px; margin-inline: auto; padding: 48px 20px 80px; }
.legal h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 10px; }
.legal h2 { margin: 36px 0 10px; font-size: 1.7rem; }
.legal p, .legal li { color: var(--ink); }
.legal p + p { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 1.2em; }
.legal .meta { color: var(--slate); font-size: 0.98rem; }
.pendiente { padding: 1px 6px; background: var(--orange-wash); color: var(--ink); border: 1px dashed var(--orange-ink); border-radius: var(--radius); font-weight: 700; }
.thanks-art { width: 200px; height: auto; margin: -6px 0 -4px -8px; -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%); mask-image: linear-gradient(to bottom, #000 78%, transparent 100%); }

/* Castor en Condiciones */
.split-head { display: flex; flex-direction: column; align-items: flex-start; }
.cond-mascot { display: none; width: 168px; height: auto; margin-top: 24px; }
@media (min-width: 900px) { .cond-mascot { display: block; align-self: flex-end; width: 69%; margin-top: 12px; } }

/* Vídeo de presentación (fotograma provisional) */
.video { margin-top: 36px; }
.video-frame { position: relative; margin-inline: auto; width: min(100%, 300px); aspect-ratio: 9 / 16; overflow: hidden; border-radius: var(--radius-photo); border: 1px solid var(--hair); background: var(--mist); }
.video-frame img { width: 100%; height: 100%; object-fit: cover; }
.play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--orange); color: #17181c; cursor: pointer; transition: background 0.16s; }
.play:hover { background: var(--orange-deep); }
.play svg { width: 28px; height: 28px; margin-left: 3px; }

/* Escritorio: el formulario se alinea por abajo con el vídeo */
@media (min-width: 900px) {
  .request { align-items: end; }
  .video-frame { width: 85%; margin-inline: 0; }
}

/* Móvil: la furgoneta va entre el texto y los botones */
@media (max-width: 899px) {
  .hero-copy { display: contents; }
  .hero-grid { gap: 0; }
  .hero-copy > h1 { order: 1; }
  .hero-copy > .lead { order: 2; }
  .hero-photo { order: 3; margin-top: 20px; }
  .hero-copy > .cta-row { order: 4; margin-top: 24px; }
  .hero-copy > .assure { order: 5; }
}

/* Desafío anti-bots (solo ocupa sitio si Cloudflare pide interacción) */
.cf-turnstile { min-height: 0; }

/* Página 404 */
.notfound { display: grid; justify-items: start; gap: 16px; }
.notfound img { width: 150px; height: auto; }
.notfound h1 { margin-bottom: 0; }
.notfound p { color: var(--slate); }
