/*
 * Servidor de formularios · edge · estilos (fase 1G, plan 1G-3).
 * Un solo archivo estático: la CSP solo admite estilos propios ('self') y el bloque con nonce de conditionalCss(). Sin atributos
 * style ni recursos externos. Un bloque de tokens por tema de la lista cerrada (data-theme en <html>); el oscuro es también el de
 * :root. Todo selector relacional va dentro de su bloque de detección de soporte: sin él la página se ve entera y funciona (A15 y C3).
 * Contraste AA comprobado por tests/unit/css-contrast.test.ts y medido en el navegador por tests/e2e/themes.spec.ts.
 */

@font-face { font-family: 'MGP Text'; src: url('fonts/MGPText-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'MGP Text'; src: url('fonts/MGPText-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'MGP Text'; src: url('fonts/MGPText-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'MGP Display'; src: url('fonts/MGPDisplay-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'MGP Display Expanded'; src: url('fonts/MGPDisplay-RegularExpanded.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'MGP Inline'; src: url('fonts/MGPInline-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }

/* Temas: un bloque por cada uno de la lista cerrada de C1. */
:root, :root[data-theme='motogp-dark'] { color-scheme: dark; --accent-hover: #c20500; --bg: #0b0b0d; --surface: #16161a; --surface-2: #1d1d22; --field: #0f0f12; --line: #2c2c33; --control: #7a7a86; --text: #f3f3f5; --muted: #b5b5bd; --faint: #a0a0aa; --accent: #e10600; --accent-text: #ff5a52; --accent-ink: #ffffff; --accent-soft: rgba(225, 6, 0, 0.14); --danger: #ff6b6b; --ok: #7fd49b; --focus: #ffd166; }
:root[data-theme='motogp-light'] { color-scheme: light; --accent-hover: #a30400; --bg: #f4f4f6; --surface: #ffffff; --surface-2: #f7f7f9; --field: #ffffff; --line: #d3d3da; --control: #70707c; --text: #141418; --muted: #55555f; --faint: #64646e; --accent: #c00500; --accent-text: #c00500; --accent-ink: #ffffff; --accent-soft: rgba(192, 5, 0, 0.08); --danger: #b3261e; --ok: #1d7a43; --focus: #1d4ed8; }
:root[data-theme='motogp-awards-2026'] { color-scheme: light; --accent-hover: #323130; --bg: #ffffff; --surface: #f5f5f5; --surface-2: #ffffff; --field: #ffffff; --line: #e1dfdd; --control: #8a8886; --text: #201f1e; --muted: #605e5c; --faint: #605e5c; --accent: #000000; --accent-text: #000000; --accent-ink: #ffffff; --accent-soft: rgba(0, 0, 0, 0.06); --danger: #a4262c; --ok: #107c10; --focus: #000000; }
/* Fan Fest Valencia 2026 (spec 2026-10-24, B5): la hoja de Awards con la tarjeta #F5F5F5; los controles y el foco, en negro. */
:root[data-theme='motogp-fanfest-2026'] { color-scheme: light; --accent-hover: #323130; --bg: #ffffff; --surface: #f5f5f5; --surface-2: #ffffff; --field: #ffffff; --line: #e1dfdd; --control: #8a8886; --text: #201f1e; --muted: #605e5c; --faint: #605e5c; --accent: #000000; --accent-text: #000000; --accent-ink: #ffffff; --accent-soft: rgba(0, 0, 0, 0.06); --danger: #a4262c; --ok: #107c10; --focus: #000000; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 400 16px/1.5 'MGP Text', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Cabecera: logotipo del tema e idioma */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1120px; margin: 0 auto; padding: 10px 16px; }
.logo { display: block; width: auto; height: 22px; }
.logo-on-light { display: none; }
:root[data-theme='motogp-light'] .logo-on-dark, :root[data-theme='motogp-fanfest-2026'] .logo-on-dark { display: none; }
:root[data-theme='motogp-light'] .logo-on-light, :root[data-theme='motogp-fanfest-2026'] .logo-on-light { display: block; }
.langs { display: flex; gap: 2px; margin: 0; padding: 3px; list-style: none; border: 1px solid var(--line); border-radius: 999px; }
.langs a { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 10px; border-radius: 999px; color: var(--muted); text-decoration: none; font: 700 13px/1 'MGP Text', system-ui, sans-serif; letter-spacing: 0.06em; }
.langs a[aria-current='true'] { background: var(--text); color: var(--bg); }

/* Rejilla: información a la izquierda y tarjeta a la derecha en escritorio; una columna en el móvil */
.layout { display: grid; gap: 24px; max-width: 1120px; margin: 0 auto; padding: 20px 16px 32px; }
@media (min-width: 960px) {
	.layout { grid-template-columns: 320px minmax(0, 1fr); gap: 40px; align-items: start; padding-top: 24px; }
	.layout.single { grid-template-columns: minmax(0, 720px); justify-content: center; }
	.info { position: sticky; top: 24px; }
}

/* Columna de información */
.info { min-width: 0; align-self: start; }
.eyebrow { margin: 0 0 8px; font: 400 12px/1.4 'MGP Display Expanded', system-ui, sans-serif; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-text); overflow-wrap: anywhere; }
.info h1 { margin: 0; font: 700 28px/1.05 'MGP Display', system-ui, sans-serif; text-transform: uppercase; overflow-wrap: anywhere; }
@media (min-width: 600px) { .info h1 { font-size: 32px; } }
.lead { margin: 14px 0 0; color: var(--muted); }
.facts { display: grid; gap: 1px; margin: 22px 0 0; padding: 0; list-style: none; overflow: hidden; background: var(--line); border: 1px solid var(--line); border-radius: 14px; }
.facts li { display: flex; gap: 12px; align-items: center; padding: 13px 16px; background: var(--surface); }
.facts svg { flex: none; width: 20px; height: 20px; color: var(--accent-text); }
.facts b { display: block; font-size: 15px; overflow-wrap: anywhere; }
.facts small { display: block; color: var(--muted); font-size: 13px; }
.badge { display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 0; padding: 8px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font: 700 12px/1.2 'MGP Text', system-ui, sans-serif; letter-spacing: 0.04em; text-transform: uppercase; }
.badge svg { flex: none; width: 14px; height: 14px; }

/* Tarjeta del formulario */
.card { min-width: 0; padding: 22px 18px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; }
@media (min-width: 600px) { .card { padding: 28px 34px 32px; } }
.card h2 { margin: 0; font: 700 24px/1.15 'MGP Display', system-ui, sans-serif; text-transform: uppercase; overflow-wrap: anywhere; }
.closed-title { margin: 0; font: 700 22px/1.3 'MGP Text', system-ui, sans-serif; }
.sub { margin: 8px 0 0; color: var(--muted); }

/* Pasos: correo, código y datos */
.steps { display: flex; gap: 6px; margin: 0 0 24px; padding: 0; list-style: none; }
.steps li { flex: 1; min-width: 0; }
.steps li::before { content: ''; display: block; height: 4px; border-radius: 4px; background: var(--line); }
.steps li > span { display: block; margin-top: 8px; color: var(--faint); font: 700 12px/1.2 'MGP Text', system-ui, sans-serif; letter-spacing: 0.06em; text-transform: uppercase; overflow-wrap: anywhere; }
.steps li.done::before { background: var(--control); }
.steps li.now::before { background: var(--accent); }
.steps li.now > span { color: var(--text); }

/* Formularios y campos */
.stack { display: grid; gap: 20px; margin: 22px 0 0; }
.field { display: grid; gap: 8px; min-width: 0; }
.field > label:not(.choice), .group > legend { font: 700 14px/1.3 'MGP Text', system-ui, sans-serif; }
.opt { margin-left: 4px; color: var(--faint); font-size: 13px; font-weight: 500; }
.row { display: grid; gap: 20px; }
@media (min-width: 600px) { .row.two { grid-template-columns: 1fr 1fr; } }
input[type='text'], input[type='email'], input[type='tel'], input[type='date'], input[type='number'] { width: 100%; min-height: 52px; padding: 12px 16px; border: 1.5px solid var(--control); border-radius: 12px; background: var(--field); color: var(--text); font: 500 16px/1.4 'MGP Text', system-ui, sans-serif; transition: border-color 0.15s; }
input::placeholder { color: var(--faint); opacity: 1; }
input[readonly] { background: var(--surface-2); }
.invalid input[type='text'], .invalid input[type='email'], .invalid input[type='tel'], .invalid input[type='date'], .invalid input[type='number'] { border-color: var(--danger); }
/* Fan Fest (spec 2026-10-24, B4): el contador de menores, compacto, con las flechas nativas y sin botones que pidan JavaScript. */
input[type='number'] { max-width: 9rem; text-align: center; font-variant-numeric: tabular-nums; }
.help { margin: 0; color: var(--muted); font-size: 14px; }
.error { margin: 0; color: var(--danger); font-size: 14px; font-weight: 500; }
.code input { max-width: 260px; text-align: center; font: 700 28px/1 'MGP Text', system-ui, sans-serif; letter-spacing: 0.4em; }
.verified { display: inline-flex; align-items: center; gap: 10px; justify-self: start; margin: 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); font-size: 14px; overflow-wrap: anywhere; }
.verified svg { flex: none; width: 18px; height: 18px; color: var(--ok); }

/* Opciones como tarjetas táctiles (52 px o más) */
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.group > legend { margin: 0 0 10px; padding: 0; }
.choices { display: grid; gap: 10px; }
@media (min-width: 480px) { .choices.two { grid-template-columns: 1fr 1fr; } }
@media (min-width: 600px) { .choices.grid { grid-template-columns: 1fr 1fr; } }
.choices.party { grid-template-columns: 1fr 1fr; }
@media (min-width: 600px) { .choices.party { grid-template-columns: repeat(4, 1fr); } }
.choice { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 16px; border: 1.5px solid var(--control); border-radius: 12px; background: var(--field); font-weight: 500; cursor: pointer; transition: border-color 0.15s, background-color 0.15s; }
.choices.party .choice { padding: 10px 12px; }
.choice-label { min-width: 0; overflow-wrap: anywhere; }
.invalid .choice { border-color: var(--danger); }
input[type='radio'], input[type='checkbox'] { appearance: none; -webkit-appearance: none; display: inline-grid; place-content: center; flex: none; width: 22px; height: 22px; margin: 0; border: 2px solid var(--control); background: var(--field); }
input[type='radio'] { border-radius: 50%; }
input[type='checkbox'] { border-radius: 6px; }
input[type='radio']::before, input[type='checkbox']::before { content: ''; display: block; }
input[type='radio']:checked, input[type='checkbox']:checked { border-color: var(--accent); background: var(--accent); }
input[type='radio']:checked::before { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-ink); }
input[type='checkbox']:checked::before { width: 6px; height: 11px; margin-top: -2px; border: solid var(--accent-ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
@supports selector(:has(*)) {
	.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
}

/* Paneles condicionados (show_if) y acompañantes: visibles por defecto; los oculta el bloque con nonce si el navegador admite el selector relacional */
.when { display: grid; gap: 20px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.companion { display: block; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.companion > legend { float: left; width: 100%; margin: 0 0 4px; padding: 0; color: var(--muted); font: 700 13px/1.2 'MGP Text', system-ui, sans-serif; letter-spacing: 0.08em; text-transform: uppercase; }
.companion > legend + * { clear: both; }
.companion > .row, .companion > .field { margin-top: 14px; }

/* Consentimientos */
.consents { display: grid; gap: 2px; padding-top: 6px; border-top: 1px solid var(--line); }
.check { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; padding-top: 12px; color: var(--muted); font-size: 14px; cursor: pointer; }
.consent .error { padding-left: 34px; }

/* Botones */
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 700 15px/1.2 'MGP Text', system-ui, sans-serif; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
@media (min-width: 600px) { button, .button { width: auto; min-width: 240px; } }
button:not(.secondary):not(.link):not([disabled]):hover, .button:not(.secondary):hover { background: var(--accent-hover); }
button.secondary:hover, .button.secondary:hover { background: var(--surface-2); }
button[disabled] { background: var(--surface-2); color: var(--muted); cursor: not-allowed; }
button.secondary, .button.secondary { background: transparent; color: var(--text); border: 1.5px solid var(--control); }
button.link { width: auto; min-width: 0; min-height: 44px; padding: 0 4px; background: none; color: var(--muted); font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; text-decoration: underline; }

/* Identidad */
.or { display: flex; align-items: center; gap: 14px; margin: 18px 0; color: var(--faint); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.providers { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px; }

/* Avisos */
.notice { margin: 0 0 18px; padding: 12px 14px; border-left: 4px solid var(--accent); border-radius: 8px; background: var(--surface-2); }
.notice.already p { margin: 0; }
.notice.already p + p { margin-top: 8px; }
.notice.already .button { margin-top: 4px; }
.motogp-session { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; margin: 0 0 18px; }
.motogp-session p, .motogp-session form { margin: 0; }
.sheet .motogp-session { margin: 18px 0 0; }
/* Spec de tokens cortos (1C): en la pantalla final, el consejo para un dispositivo compartido, separado por una línea fina. */
.motogp-note { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.preview { margin: 0 0 18px; padding: 10px 14px; border: 1px dashed var(--control); border-radius: 8px; background: var(--surface-2); }

/* Pantalla final: solo información pública */
section.done { text-align: center; padding: 8px 0 4px; }
.done-icon { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); }
.done-icon svg { width: 36px; height: 36px; }
section.done p { max-width: 460px; margin: 10px auto 0; color: var(--muted); }
.summary { max-width: 420px; margin: 24px auto 0; overflow: hidden; text-align: left; border: 1px solid var(--line); border-radius: 14px; }
.summary div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; font-size: 14px; }
.summary div + div { border-top: 1px solid var(--line); }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.foot { max-width: 1120px; margin: 0 auto; padding: 0 16px 32px; color: var(--faint); font-size: 13px; }
.foot p { margin: 0; }

/* La hoja (diseño v2 de Awards, 20-10-2026; común con Fan Fest desde la spec 2026-10-24, B5): una hoja blanca con la tarjeta gris y
   su cabecera negra, preguntas numeradas y letra del sistema. Solo la pinta Shell con esos temas: todo va bajo .sheet, y lo de cada
   variante bajo .sheet-awards o .sheet-fanfest. En Awards los números los ponen contadores de CSS, y un panel o un campo ocultos
   (display: none) no cuentan, así que se numeran solo las preguntas visibles, sin JavaScript; Fan Fest los escribe en el marcado. */
:root[data-theme='motogp-awards-2026'] body, :root[data-theme='motogp-fanfest-2026'] body { font: 400 15px/1.4 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif; }
.sheet { padding: 50px 16px 60px; }
.sheet .card { max-width: 893px; margin: 0 auto; padding: 0; overflow: hidden; border: 0; border-radius: 8px; background: var(--surface); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18); }
.sheet-langs { display: flex; justify-content: flex-end; max-width: 893px; margin: 0 auto 12px; }
.sheet-head { padding: 60px 50px 50px; background: #000000; color: #ffffff; }
.sheet-logo { display: block; width: 355px; max-width: 100%; height: auto; margin: 0 0 28px; }
.sheet-head h1 { margin: 0; font-family: inherit; font-size: 36px; font-weight: 400; line-height: 1.2; overflow-wrap: anywhere; }
.sheet-head p { margin: 36px 0 0; font-size: 15px; line-height: 1.4; }
.sheet-body { padding: 22px 50px 44px; }
.sheet-body h2, .sheet .closed-title { margin: 0; font-family: inherit; font-size: 17px; font-weight: 400; line-height: 1.3; text-transform: none; }
.sheet-body .sub { color: var(--text); font-size: 13px; }
.sheet .required-note { margin: 18px 0 0; font-size: 13px; }
.sheet .star { color: var(--danger); }
/* Fan Fest (spec 2026-10-24, B2.4): las preguntas numeradas en el marcado, también el consentimiento del Circuit. */
.qnum { margin-right: 5px; }
.consent.question .star { color: var(--danger); }
.sheet .stack { gap: 0; margin: 0; }
.sheet .field { gap: 0; margin-top: 34px; }
.sheet .field > label:not(.choice), .sheet .group > legend { margin: 0; font-family: inherit; font-size: 17px; font-weight: 400; line-height: 1.3; }
.sheet form.answers { counter-reset: question; }
/* Spec 2026-10-23 A4: el aviso legal del cliente al pie, como su `.disclaimer` (#605E5C, 28 px por encima), a 12 px y no a 11: el
   mínimo de texto del edge (css-contrast.test.ts). */
.sheet .legal { margin: 28px 0 0; font-size: 12px; line-height: 1.5; color: #605e5c; }
.sheet .legal a { color: inherit; text-decoration: underline; }
.sheet-awards form.answers .field { counter-increment: question; }
.sheet-awards form.answers .field > label:not(.choice)::before, .sheet-awards form.answers .group > legend::before { content: counter(question) '.'; margin-right: 5px; }
.sheet input[type='text'], .sheet input[type='email'], .sheet input[type='tel'], .sheet input[type='date'], .sheet input[type='number'] { width: calc(100% - 20px); height: 34px; min-height: 34px; margin: 18px 0 0 20px; padding: 6px 13px; border: 0; border-radius: 2px; background: var(--field); color: var(--text); font: 400 15px/1.4 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif; }
.sheet input::placeholder { color: var(--muted); }
.sheet input[readonly] { background: var(--field); }
.sheet .invalid input[type='text'], .sheet .invalid input[type='email'], .sheet .invalid input[type='tel'], .sheet .invalid input[type='date'], .sheet .invalid input[type='number'] { box-shadow: 0 0 0 2px var(--danger); }
.sheet .code input { width: 200px; max-width: calc(100% - 20px); text-align: center; font-size: 22px; letter-spacing: 0.3em; }
.sheet .help, .sheet .error { margin: 8px 0 0 20px; font-size: 13px; }
.sheet .verified { margin: 18px 0 0; background: var(--field); font-size: 13px; }
.sheet .choices, .sheet .choices.two, .sheet .choices.grid { display: grid; grid-template-columns: none; gap: 0; }
.sheet .choice { min-height: 0; margin: 22px 0 0 20px; padding: 0; gap: 12px; border: 0; border-radius: 0; background: none; font-size: 15px; font-weight: 400; }
.sheet input[type='radio'], .sheet input[type='checkbox'] { appearance: auto; -webkit-appearance: auto; width: 20px; height: 20px; border: 0; background: none; accent-color: #000000; }
.sheet input[type='radio']:checked, .sheet input[type='checkbox']:checked { border: 0; background: none; }
.sheet input[type='radio']::before, .sheet input[type='checkbox']::before { content: none; }
.sheet .when { gap: 0; padding: 0; border: 0; border-radius: 0; background: none; }
.sheet .consents { margin-top: 34px; padding-top: 0; border-top: 0; }
.sheet .consent { margin-top: 22px; }
.sheet .check { min-height: 0; padding-top: 0; margin-left: 20px; color: var(--text); font-size: 13px; }
.sheet .check input { flex: none; }
.sheet .consent .error { padding-left: 32px; }
.sheet button:not(.link), .sheet .button { width: auto; min-width: 0; height: 40px; min-height: 40px; margin-top: 46px; padding: 0 22px; border: 0; border-radius: 6px; background: var(--accent); color: var(--accent-ink); font: 700 15px/1.2 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif; letter-spacing: 0; text-transform: none; }
.sheet button:not(.link):not([disabled]):hover, .sheet .button:hover { background: var(--accent-hover); }
.sheet button[disabled] { background: var(--field); color: var(--muted); }
.sheet button.link { color: var(--text); font-family: inherit; }
.sheet .notice { margin: 18px 0 0; }
.sheet .preview { margin: 18px 0 0; }
.sheet section.done { padding: 0; text-align: left; }
/* Petición del usuario (29-10-2026): en la pantalla final de la hoja, todo al margen del título, sin el bloque centrado de la pantalla
   final común ni la sangría de las ayudas de las preguntas. */
.sheet .fanfest-done p { max-width: none; margin: 12px 0 0; }
.sheet .sign-out button { margin-top: 28px; }
.sheet .motogp-note { margin: 28px 0 0; padding-top: 18px; }
.sheet .thanks { max-width: none; margin: 30px 0 20px; color: var(--text); font-size: 22px; line-height: 1.3; }
.sheet-foot { max-width: 893px; margin: 16px auto 0; color: var(--faint); font-size: 13px; text-align: center; }
.sheet-foot p { margin: 0; }
/* Fan Fest: la imagen completa del diseño en la cabecera, con la frase en Verdana; el botón con el degradado del diseño y texto negro
   (el blanco no llega a 4,5:1 en sus tres tonos), con borde oscuro; el asterisco en un naranja oscuro que sí llega. */
.sheet-fanfest .sheet-head { padding: 0; }
.sheet-image { display: block; width: 100%; height: auto; }
.sheet-fanfest .sheet-head p { margin: 0; padding: 24px 50px 34px; font: 700 16px/1.4 Verdana, Geneva, sans-serif; letter-spacing: 0.2px; }
.sheet-fanfest .star { color: #c2410c; }
.sheet-fanfest .consent.question { margin-top: 34px; }
.sheet-fanfest .consent.question .check { font-size: 15px; }
.sheet-fanfest button:not(.link):not([disabled]), .sheet-fanfest .button { background: linear-gradient(135deg, #FDBA12 0%, #F97316 55%, #E0342A 100%); color: #000000; border: 1px solid #201f1e; }
.sheet-fanfest button:not(.link):not([disabled]):hover, .sheet-fanfest .button:hover { background: linear-gradient(135deg, #FDBA12 0%, #F97316 55%, #E0342A 100%); box-shadow: inset 0 0 0 2px #201f1e; }
@supports selector(:has(*)) {
	.sheet .choice:has(input:checked) { border: 0; background: none; }
}
/* Pantallas táctiles: 44 px en campos, opciones, consentimientos y botones, como el resto del edge. */
@media (pointer: coarse) {
	.sheet input[type='text'], .sheet input[type='email'], .sheet input[type='tel'], .sheet input[type='date'], .sheet input[type='number'] { height: 44px; min-height: 44px; }
	.sheet .choice { min-height: 44px; margin-top: 4px; }
	.sheet .check { min-height: 44px; }
	.sheet button:not(.link), .sheet .button { height: 44px; min-height: 44px; }
}
@media (max-width: 620px) {
	.sheet { padding: 0 0 40px; }
	.sheet .card { border-radius: 0; box-shadow: none; }
	.sheet-langs { margin: 0; padding: 12px 16px 0; background: var(--surface); }
	.sheet-head { padding: 40px 24px 32px; }
	.sheet-head h1 { font-size: 28px; }
	.sheet-body { padding: 18px 24px 36px; }
	.sheet-fanfest .sheet-head p { padding: 20px 24px 26px; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* Alto contraste del sistema: controles nativos, bordes visibles y lo marcado con Highlight */
@media (forced-colors: active) {
	input[type='radio'], input[type='checkbox'], input[type='radio']:checked, input[type='checkbox']:checked { appearance: auto; -webkit-appearance: auto; border: revert; background: revert; }
	input[type='radio']::before, input[type='checkbox']::before, input[type='radio']:checked::before, input[type='checkbox']:checked::before { content: none; }
	.choice, .card, .when, .companion, .facts, .summary, .badge, button, .button, input[type='text'], input[type='email'], input[type='tel'], input[type='date'] { border: 1px solid CanvasText; }
	.sheet-head { forced-color-adjust: none; }
	.sheet-fanfest button:not(.link), .sheet-fanfest .button { background: ButtonFace; color: ButtonText; border: 1px solid ButtonText; }
	.steps li::before { background: CanvasText; }
	.steps li.now::before { background: Highlight; }
	@supports selector(:has(*)) {
		.choice:has(input:checked) { outline: 3px solid Highlight; outline-offset: -3px; }
	}
}

/* Fan Fest final: las cajas acompañan la ampliación de texto (Android/Xiaomi). */
.fanfest-head-logos { padding: 39px 24px 36px; text-align: center; }
.sheet-fanfest .sheet-image { width: 250px; max-width: 74%; height: auto; margin: 0 auto; }
.fanfest-institutions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px; margin-top: 22px; }
.fanfest-institutions img { width: 105px; max-width: 26%; height: auto; }
.fanfest-institutions > span { width: 1px; min-height: 34px; background: #666; }
.sheet-fanfest .sheet-head p { padding: 18px 20px; background: linear-gradient(90deg, #FDBA12 0%, #F97316 50%, #E0342A 100%); color: #1a1a1a; text-align: center; font:700 15px/1.3 'Segoe UI',system-ui,-apple-system,Roboto,Helvetica,Arial,sans-serif; letter-spacing:.5px; text-transform: uppercase; }
.sheet-fanfest button:not(.link), .sheet-fanfest .button { height: auto; min-height: 48px; max-width: 100%; padding: 14px 28px; border-radius: 999px; white-space: normal; }
.sheet-fanfest .check { min-height: 44px; margin-left: 0; overflow-wrap: anywhere; }
.sheet-fanfest .check > span { min-width: 0; }
.sheet-fanfest .consent .check { color:#4b4b4b; font-weight:300; }
.sheet-fanfest .check a,.sheet-fanfest .legal a { color:#ea580c; }
.sheet-fanfest input:not([type='checkbox']):not([type='radio']):not([type='hidden']) { height: auto; min-height: 44px; font-size: 16px; }

.sheet-fanfest .minors-stepper { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin:20px 0 0 20px; }
.sheet-fanfest .minors-stepper input { width:64px; max-width:100%; margin:0; padding:8px; text-align:center; }
.sheet-fanfest .minors-stepper .stepper-control { width:44px; min-width:44px; min-height:44px; height:auto; margin:0; padding:8px; border-radius:50%; font-size:22px; line-height:1; }
.sheet-fanfest .consent:not(.question) { margin-top:24px; }

.sheet-fanfest .stepper-control[hidden] { display: none !important; }
.sheet-fanfest [data-testid='submit'] { padding:14px 32px;font-size:14px;letter-spacing:.6px;text-transform:uppercase; }
.sheet-fanfest .minors-stepper { gap:16px; }
.sheet-fanfest .minors-stepper input { width:44px;padding:0;border:0;background:transparent;font-size:20px;font-weight:700; }
@media (max-width: 620px) {
 .sheet-fanfest .fanfest-head-logos { padding:30px 24px 26px; }
 .sheet-fanfest .sheet-head p { padding:16px; }
}
