/* Tokens y componentes compartidos. Paleta del manual de marca CEEZ.
   Tipografía de marca = Mangueira (no disponible como webfont) → Manrope como sustituta. */
:root {
  --navy: #052b73;
  --blue: #1f7eb9;
  --green: #42d28d;
  --yellow: #ecfc04;
  --ink: #12213f;
  --muted: #5b6b86;
  --line: #d6deea;
  --bg: #f3f6fb;
  --card: #ffffff;
  --danger: #c62d3a;
  --warn: #8a6100;
  --radius: 14px;
  --grad: linear-gradient(100deg, #052b73 0%, #1f7eb9 48%, #42d28d 82%, #ecfc04 100%);
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tag-maqueta { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .12em; padding: 3px 9px; border-radius: 99px; background: var(--yellow); color: var(--navy); }

/* Campos */
.field { margin-bottom: 18px; }
.field label, .field .lbl { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.field .hint { font-weight: 500; color: var(--muted); font-size: 13px; margin-top: 4px; }
.field input[type=text], .field input[type=tel], .field input[type=email], .field input[type=number] {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31, 126, 185, .18); }
.field.has-error input[type=text], .field.has-error input[type=tel], .field.has-error input[type=email] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 13px; font-weight: 600; min-height: 0; margin-top: 4px; }
.field-error:empty { display: none; }
.req { color: var(--danger); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; } /* honeypot anti-bots */

/* Foto del DNI */
.dropzone label.dz {
  display: flex; align-items: center; gap: 14px; cursor: pointer; padding: 12px; border: 2px dashed var(--line);
  border-radius: 12px; background: #fafcff; transition: border-color .15s, background .15s;
}
.dropzone label.dz:hover, .dropzone input:focus-visible + label.dz { border-color: var(--blue); background: #f0f7fc; }
.dropzone.has-error label.dz { border-color: var(--danger); }
.dropzone.has-file label.dz { border-style: solid; border-color: var(--green); background: #f1fcf6; }
.dropzone input[type=file] { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.dz-thumb { flex: none; width: 84px; height: 56px; border-radius: 8px; background: #e6edf7 center/cover no-repeat; display: grid; place-items: center; color: var(--blue); }
.dz-thumb svg { width: 26px; height: 26px; }
.dropzone.has-file .dz-thumb svg { display: none; }
.dz-text { font-size: 14px; min-width: 0; }
.dz-text strong { display: block; }
.dz-text span { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }

/* Consentimiento */
.consent { border: 1.5px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.consent-box { max-height: 170px; overflow: auto; padding: 14px 16px; font-size: 13px; color: #34435f; border-bottom: 1px solid var(--line); background: #fafcff; }
.consent-box p { margin: 0 0 10px; }
.consent-check { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; cursor: pointer; font-size: 14px; font-weight: 600; }
.consent-check input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue); }
.field.has-error .consent { border-color: var(--danger); }
.tn-placeholder { background: #fff6bf; padding: 0 4px; border-radius: 4px; font-weight: 700; }

/* Botones y avisos */
.btn { appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 800; font-size: 16px; padding: 14px 26px; border-radius: 12px; background: var(--navy); color: #fff; transition: transform .1s, filter .15s; }
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-accent { background: var(--green); color: var(--navy); }
.btn-ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--line); }
.btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; box-shadow: 0 0 0 5px var(--navy); }
.alert { padding: 12px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.alert-error { background: #fdecee; color: var(--danger); border: 1px solid #f3b9be; }
.alert-warn { background: #fff7de; color: var(--warn); border: 1px solid #f0dc9a; }

/* Pantalla de éxito */
.done { text-align: center; padding: 28px 8px; }
.done .check { width: 72px; height: 72px; border-radius: 50%; background: var(--green); color: var(--navy); display: grid; place-items: center; margin: 0 auto 16px; }
.done .check svg { width: 38px; height: 38px; }
.done h2 { margin: 0 0 8px; color: var(--navy); }
.done .num { display: inline-block; margin-top: 10px; font-weight: 800; background: #eef4fb; padding: 6px 14px; border-radius: 99px; color: var(--navy); }

.site-foot { padding: 26px 0 40px; text-align: center; color: var(--muted); font-size: 13px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
