/* apuntarse.html: alta en la cola desde el móvil. Mappa Design System. */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: #000; font-family: var(--font-sans); font-size: 16px; line-height: var(--lh-body); letter-spacing: var(--tracking-body); -webkit-font-smoothing: antialiased; }
main { max-width: 520px; margin: 0 auto; padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
[hidden] { display: none !important; }
button { font: inherit; letter-spacing: inherit; color: inherit; }

/* Barra superior: negro, logo Mappa en blanco y Eco Rallye dentro de caja blanca */
.barra { background: #000; display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; padding-top: calc(12px + env(safe-area-inset-top)); }
.barra__logos { display: flex; align-items: center; gap: 14px; }
.barra__mappa { height: 26px; width: auto; display: block; }
.caja-eco { background: #fff; border-radius: var(--r-sm); padding: 3px 8px; display: block; }
.caja-eco img { height: 38px; width: auto; display: block; }
.idioma { display: flex; border: 1px solid #fff; border-radius: var(--r-pill); padding: 2px; }
.idioma button { background: transparent; color: #fff; border: 0; border-radius: var(--r-pill); font-size: 13px; font-weight: 500; letter-spacing: .06em; min-width: 40px; height: 30px; cursor: pointer; transition: background .2s cubic-bezier(.2,.8,.2,1), color .2s cubic-bezier(.2,.8,.2,1); }
.idioma button[aria-pressed="true"] { background: #fff; color: #000; }

/* Hero: degradado de marca con grano. Solo titular display y cajas encima */
.hero { position: relative; max-width: 520px; background: #fdc2d8 url("../assets/img/mappa-fondo-degradado-1920.webp") center 38% / cover no-repeat; padding: 22px 16px 20px; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: var(--mappa-grain); mix-blend-mode: overlay; opacity: .5; }
.hero > * { position: relative; z-index: 1; }
.pill { display: inline-block; background: #000; color: #fff; border-radius: var(--r-pill); padding: 6px 12px; font-size: 11px; font-weight: 500; letter-spacing: var(--tracking-caps); text-transform: uppercase; }
.hero h1 { margin: 14px 0 12px; font-size: clamp(44px, 13.5vw, 64px); font-weight: 400; line-height: .96; letter-spacing: var(--tracking-display); }
.hero__sub { margin: 0; }
.hero__sub span { display: inline-block; background: #fff; border-radius: var(--r-md); padding: 9px 12px; font-size: 15px; line-height: 1.35; }

/* Formulario */
.form { padding: 20px 16px 0; }
.campo { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.campo > label:not(.check), .campo > legend { display: block; padding: 0; margin: 0 0 8px; font-size: 17px; font-weight: 500; letter-spacing: var(--tracking-heading); }
input[type="text"], input[type="tel"] { width: 100%; height: 52px; border: 1px solid #000; border-radius: var(--r-md); background: #fff; color: #000; font: inherit; font-size: 18px; padding: 0 14px; outline: none; -webkit-appearance: none; appearance: none; transition: box-shadow .15s cubic-bezier(.2,.8,.2,1); }
input::placeholder { color: var(--mappa-ink-20); }
input[type="text"]:focus, input[type="tel"]:focus { box-shadow: inset 0 0 0 1px #000; }
.ayuda { margin: 6px 0 0; font-size: 13px; color: var(--mappa-ink-60); }
.error { display: none; margin: 6px 0 0; font-size: 13px; font-weight: 500; color: #000; padding-left: 10px; border-left: 3px solid #000; }
.campo.mal .error { display: block; }
.campo.mal .ayuda { display: none; }

.tel { display: flex; }
.tel__pref { flex: none; display: flex; align-items: center; padding: 0 12px; height: 52px; background: #000; color: #fff; border-radius: var(--r-md) 0 0 var(--r-md); font-size: 17px; }
.tel input { border-radius: 0 var(--r-md) var(--r-md) 0; border-left: 0; letter-spacing: .02em; }

.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chips label { position: relative; display: block; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.chips span { display: flex; align-items: center; min-height: 48px; padding: 6px 12px; border: 1px solid var(--mappa-line); border-radius: var(--r-md); background: #fff; font-size: 15px; line-height: 1.2; transition: background .15s cubic-bezier(.2,.8,.2,1), color .15s cubic-bezier(.2,.8,.2,1), border-color .15s cubic-bezier(.2,.8,.2,1); }
.chips input:checked + span { background: #000; color: #fff; border-color: #000; }
.chips input:focus-visible + span { border-color: #000; }

.chips--joc span { min-height: 56px; font-size: 17px; font-weight: 500; }
.chips--joc.uno { grid-template-columns: 1fr; }
.km { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.km input { width: 96px; flex: none; text-align: right; }
.km__u { font-size: 16px; color: var(--mappa-ink-60); margin-right: 4px; }
.km__rapidos { display: flex; gap: 6px; flex: 1 0 100%; }
.km__rapidos button { height: 40px; min-width: 42px; padding: 0 8px; border: 1px solid var(--mappa-line); border-radius: var(--r-pill); background: #fff; font-size: 14px; cursor: pointer; transition: background .15s cubic-bezier(.2,.8,.2,1), color .15s cubic-bezier(.2,.8,.2,1); }
.km__rapidos button.on { background: #000; color: #fff; border-color: #000; }

.legal { border-top: var(--hairline); padding-top: 18px; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; position: relative; }
.check + .check, .legal .error + .check, .legal details + .check { margin-top: 14px; }
.check input { position: absolute; opacity: 0; width: 24px; height: 24px; margin: 0; }
.check__caja { flex: none; width: 24px; height: 24px; border: 1px solid #000; border-radius: var(--r-sm); background: #fff; margin-top: 1px; transition: background .15s cubic-bezier(.2,.8,.2,1); }
.check input:checked + .check__caja { background: #000 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>") center / 16px no-repeat; }
.check input:focus-visible + .check__caja { box-shadow: 0 0 0 2px #fff, 0 0 0 3px #000; }
.check__txt { font-size: 14px; line-height: 1.4; }
details { margin: 8px 0 0 36px; font-size: 13px; color: var(--mappa-ink-60); }
summary { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; color: #000; width: fit-content; list-style: none; }
summary::-webkit-details-marker { display: none; }
details p { margin: 8px 0 0; line-height: 1.45; }
.legal .error { margin: 10px 0 0 36px; }

.boton { display: block; width: 100%; height: 58px; margin-top: 4px; border: 0; border-radius: var(--r-md); background: #000; color: #fff; font-size: 18px; font-weight: 500; cursor: pointer; transition: background .2s cubic-bezier(.2,.8,.2,1); }
.boton:active { background: var(--mappa-ink-60); }

/* Confirmación */
#vista-ok { animation: aparece .25s cubic-bezier(.2,.8,.2,1); }
@keyframes aparece { from { opacity: 0; } to { opacity: 1; } }
.hero--ok { padding-bottom: 16px; }
.turnos { margin-top: 14px; display: grid; gap: 8px; }
.turnos.dos { grid-template-columns: 1fr 1fr; }
.turno { background: #000; color: #fff; border-radius: var(--r-md); padding: 14px 16px 16px; min-width: 0; }
.turno__joc { margin: 0; font-size: 11px; font-weight: 500; letter-spacing: var(--tracking-caps); text-transform: uppercase; }
.turno__et { margin: 10px 0 0; font-size: 16px; }
.turno__num { margin: 2px 0 0; font-size: 116px; line-height: .9; font-weight: 400; letter-spacing: -.04em; white-space: nowrap; }
.turnos.dos .turno__num { font-size: clamp(52px, 17vw, 76px); }
.turno__info { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid #fff; font-size: 15px; line-height: 1.3; }
.turno__info strong { display: block; font-weight: 500; }
.turno__alias { margin: 8px 0 0; background: #fff; color: #000; border-radius: var(--r-md); padding: 9px 12px; font-size: 15px; }
.error--servidor { margin: 0 0 12px; }
.error--servidor.visible { display: block; }
.boton[disabled] { background: var(--mappa-ink-60); }
.bloque { margin: 16px 16px 0; }
.datos { list-style: none; margin: 0; padding: 0; border: var(--hairline); border-radius: var(--r-md); }
.datos li { display: flex; gap: 14px; padding: 14px; align-items: flex-start; }
.datos li + li { border-top: var(--hairline); }
.datos svg, .mappa__link svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.datos strong { display: block; font-size: 19px; font-weight: 500; letter-spacing: var(--tracking-heading); line-height: 1.2; }
.datos span { display: block; margin-top: 3px; font-size: 14px; color: var(--mappa-ink-60); }
.tarjeta { border: var(--hairline); border-radius: var(--r-md); padding: 16px; }
.tarjeta .eyebrow { margin: 0 0 10px; font-size: 11px; }
.co2__frase { margin: 0; font-size: 16px; }
.co2__valor { margin: 2px 0 0; font-size: 56px; line-height: 1; letter-spacing: var(--tracking-display); }
.co2__valor::before { content: "≈ "; color: var(--mappa-ink-20); }
.co2__u { font-size: 22px; letter-spacing: var(--tracking-heading); }
.co2__modo { margin: 8px 0 0; font-size: 14px; color: var(--mappa-ink-60); }
.nota { margin: 12px 0 0; padding-top: 10px; border-top: var(--hairline); font-size: 11px; color: var(--mappa-ink-40); line-height: 1.4; }
.tarjeta--negra { background: #000; color: #fff; border-color: #000; }
.tarjeta--negra .eyebrow { color: #fff; }
.mappa__txt { margin: 0; font-size: 17px; line-height: 1.35; letter-spacing: var(--tracking-heading); }
.mappa__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: #fff; font-size: 15px; text-underline-offset: 4px; }
.mappa__link svg { margin: 0; width: 18px; height: 18px; }
.otra { text-align: center; margin: 22px 0 0; }
.enlace { background: none; border: 0; padding: 8px; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

@media (min-width: 560px) { body { background: var(--mappa-paper); } main { background: #fff; } .barra { justify-content: center; gap: 40px; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
