/* TURTLES VAN · estilos (paleta y tipografía tomadas de turtlesvan.com) */
:root {
  --ink: #111111;
  --ink-2: #4a4540;
  --muted: #8a8177;
  --paper: #ffffff;
  --sand: #c9b496;        /* accent de la web  hsl(35 36% 69%) */
  --sand-light: #f5eee6;  /* lightAccent       hsl(32 39% 94%) */
  --gold: #ddbf7f;        /* darkAccent        hsl(40 54% 65%) */
  --line: #e6ddd1;
  --error: #b3261e;
  --ok: #2f6b3a;
  --radius: 4px;
  --display: "Amatic SC", "Arial Narrow", sans-serif;
  --body: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* Cabecera */
.topbar {
  position: sticky; top: 0; z-index: 20; background: var(--paper);
  border-bottom: 1px solid var(--ink);
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 20px; gap: 12px;
}
.topbar .logo { height: 34px; width: auto; }
.lang { display: flex; gap: 4px; }
.lang button {
  font: 600 12px/1 var(--body); letter-spacing: .08em; background: none;
  border: 1px solid transparent; padding: 7px 9px; cursor: pointer; color: var(--muted);
}
.lang button[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); }

/* Hero */
.hero {
  position: relative; min-height: 300px; color: #fff;
  background: #6b5a44 url("assets/hero.jpg") center 60% / cover no-repeat;
  display: flex; align-items: flex-end;
}
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,.05) 70%); }
.hero-inner { position: relative; z-index: 1; width: 100%; max-width: 860px; margin: 0 auto; padding: 32px 20px 28px; }
.hero h1 {
  font-family: var(--display); font-weight: 700; font-size: clamp(48px, 9vw, 76px);
  line-height: .95; margin: 0 0 8px; letter-spacing: .02em; text-transform: uppercase;
}
.hero p { margin: 0; font-size: 17px; max-width: 520px; opacity: .95; }
.hero .ref { margin-top: 14px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }

/* Contenedor */
.wrap { max-width: 860px; margin: 0 auto; padding: 0 20px 80px; }

/* Stepper */
.stepper {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 28px 0 8px;
  list-style: none; padding: 0; counter-reset: s;
}
.stepper li {
  counter-increment: s; font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); border-top: 3px solid var(--line); padding-top: 10px;
}
.stepper li::before { content: "0" counter(s) " "; font-weight: 700; }
.stepper li.active { color: var(--ink); border-color: var(--ink); }
.stepper li.done { color: var(--ink-2); border-color: var(--sand); }
@media (max-width: 560px) { .stepper li span { display: none; } }

/* Secciones */
.step { display: none; }
.step.active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
h2 {
  font-family: var(--display); font-weight: 700; font-size: 44px; line-height: 1;
  text-transform: uppercase; letter-spacing: .02em; margin: 28px 0 6px;
}
h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; margin: 30px 0 12px; font-weight: 700; }
.lead { color: var(--ink-2); margin: 0 0 18px; }
.card { background: var(--sand-light); padding: 20px; border-radius: var(--radius); }
.note { background: var(--sand-light); border-left: 3px solid var(--sand); padding: 12px 14px; font-size: 14px; color: var(--ink-2); margin: 0 0 18px; }

/* Formularios */
.grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px 16px; }
.c2 { grid-column: span 2; } .c3 { grid-column: span 3; } .c4 { grid-column: span 4; } .c6 { grid-column: span 6; }
@media (max-width: 640px) { .c2, .c3, .c4 { grid-column: span 6; } .c2.half, .c3.half { grid-column: span 3; } }

.field label, .lbl { display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; font: 16px/1.3 var(--body); color: var(--ink); background: var(--paper);
  border: 1px solid #cfc5b8; border-radius: var(--radius); padding: 12px 12px; min-height: 46px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(201,180,150,.45); }
.field input[readonly], .field select:disabled { background: var(--sand-light); color: var(--ink); border-color: var(--line); }
.field.err input, .field.err select { border-color: var(--error); }
.field .msg { display: none; color: var(--error); font-size: 12px; margin-top: 4px; }
.field.err .msg { display: block; }

.check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; cursor: pointer; font-size: 15px; }
.field label.check { font-size: 15px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink); margin: 0; }
.check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--ink); }
.check.err span { color: var(--error); }

/* Vehículos */
.vans { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.van { position: relative; }
.van input { position: absolute; opacity: 0; }
.van label {
  display: block; border: 1px solid #cfc5b8; border-radius: var(--radius); padding: 12px 14px; cursor: pointer; height: 100%;
  transition: border-color .15s, background .15s;
}
.van .n { font-family: var(--display); font-size: 30px; font-weight: 700; line-height: 1; }
.van .m { font-size: 13px; color: var(--ink-2); }
.van .p { font-size: 13px; margin-top: 6px; font-weight: 600; }
.van input:checked + label { border-color: var(--ink); background: var(--sand-light); box-shadow: inset 0 0 0 1px var(--ink); }
.van input:focus-visible + label { box-shadow: 0 0 0 3px rgba(201,180,150,.6); }
.van input:disabled + label { cursor: default; }
.van input:disabled:not(:checked) + label { opacity: .4; }

/* Resumen */
.sum { width: 100%; border-collapse: collapse; font-size: 15px; }
.sum td { padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.sum td:last-child { text-align: right; white-space: nowrap; padding-left: 12px; }
#review td:first-child { color: var(--ink-2); width: 38%; }
#review td:last-child { white-space: normal; overflow-wrap: anywhere; }
#review tr.tot td:last-child, #review tr.sub td:last-child { white-space: nowrap; }
.sum tr.tot td { font-weight: 700; border-bottom: 2px solid var(--ink); font-size: 17px; }
.sum tr.sub td { color: var(--ink-2); font-size: 14px; }

/* Condiciones */
.terms { border: 1px solid var(--line); max-height: 420px; overflow: auto; padding: 4px 18px 10px; font-size: 14px; color: var(--ink-2); border-radius: var(--radius); }
.terms h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); margin: 16px 0 4px; }
.terms p { margin: 0 0 8px; }
.privacy { font-size: 12px; color: var(--muted); margin: 4px 0 0 34px; }

/* Firma */
.sig-box { border: 1px dashed var(--ink); border-radius: var(--radius); background: #fff; position: relative; touch-action: none; }
.sig-box canvas { width: 100%; height: 200px; display: block; cursor: crosshair; }
.sig-box .ph { position: absolute; left: 16px; bottom: 14px; font-family: var(--display); font-size: 26px; color: var(--sand); pointer-events: none; }
.sig-box.has .ph { display: none; }
.sig-box.err { border-color: var(--error); }
.sig-tools { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 13px; color: var(--muted); }

/* Fotos */
.docs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .docs { grid-template-columns: 1fr; } }
.doc { border: 1px dashed #cfc5b8; border-radius: var(--radius); padding: 12px; text-align: center; font-size: 13px; }
.doc img { max-height: 120px; margin: 8px auto; border-radius: 2px; }
.doc input { display: none; }

/* Botones */
.actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.btn {
  font: 600 14px/1 var(--body); letter-spacing: .12em; text-transform: uppercase;
  padding: 16px 26px; border-radius: 0; cursor: pointer; border: 1px solid var(--ink);
  background: var(--ink); color: #fff; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .15s, color .15s;
}
.btn:hover { background: #333; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--sand-light); }
.btn.sand { background: var(--sand); border-color: var(--sand); color: var(--ink); }
.btn.sand:hover { background: var(--gold); border-color: var(--gold); }
.btn.small { padding: 10px 14px; font-size: 12px; }
.btn[disabled] { opacity: .5; cursor: wait; }
.actions .btn:only-child { margin-left: auto; }
@media (max-width: 520px) { .actions .btn { flex: 1; } }

.alert { display: none; background: #fbeaea; color: var(--error); padding: 12px 14px; margin-top: 18px; font-size: 14px; border-radius: var(--radius); }
.alert.show { display: block; }

/* Éxito */
.done { text-align: center; padding: 40px 0; }
.done .big { font-family: var(--display); font-size: 64px; line-height: 1; margin: 0 0 12px; font-weight: 700; text-transform: uppercase; }
.done p { max-width: 480px; margin: 0 auto 24px; color: var(--ink-2); }
.done .row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.done .bye { font-family: var(--display); font-size: 34px; margin-top: 36px; color: var(--sand); }

footer { border-top: 1px solid var(--ink); padding: 22px 20px; text-align: center; font-size: 12px; letter-spacing: .08em; color: var(--ink-2); text-transform: uppercase; }
footer a { text-decoration: none; }

.hidden { display: none !important; }
