/* Peña Madridista de Seattle · estilos del sitio (manual v1.0) */
:root {
  --navy: #123047;
  --navy-80: #41596C;
  --navy-10: #E7EBEE;
  --navy-05: #F3F5F7;
  --white: #FFFFFF;
  --ok: #1F7A4D;
  --error: #B3261E;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 10px;
  --max: 1040px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--navy); background: var(--white); line-height: 1.5; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }

/* Cabecera */
.topbar { position: absolute; inset: 0 0 auto 0; z-index: 2; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; font-weight: 700; letter-spacing: .02em; }
.brand img { width: 48px; height: 48px; }
.lang { display: inline-flex; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; overflow: hidden; }
.lang button { background: transparent; border: 0; color: var(--white); padding: .4rem .8rem; cursor: pointer; font-weight: 600; font-size: .85rem; letter-spacing: .06em; }
.lang button[aria-pressed="true"] { background: var(--white); color: var(--navy); }
.lang.on-light { border-color: var(--navy-10); }
.lang.on-light button { color: var(--navy); }
.lang.on-light button[aria-pressed="true"] { background: var(--navy); color: var(--white); }

/* Hero */
.hero { background: var(--navy); color: var(--white); min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 6rem 0 4rem; position: relative; }
.hero .seal { width: clamp(180px, 34vw, 300px); margin-inline: auto; }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; opacity: .85; margin: 2rem 0 .75rem; }
.hero h1 { font-size: clamp(2rem, 5.5vw, 3.6rem); line-height: 1.05; margin: 0 0 1rem; letter-spacing: -.01em; }
.hero .claim { font-size: clamp(1rem, 2vw, 1.2rem); opacity: .9; margin: 0 auto 2rem; max-width: 36rem; line-height: 1.5; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .9rem 1.6rem; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid var(--white); background: var(--white); color: var(--navy); cursor: pointer; min-height: 48px; transition: transform .12s ease, background .12s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
.btn.ghost { background: transparent; color: var(--white); }
.btn.navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn.navy:focus-visible, .btn.outline:focus-visible { outline-color: var(--navy); }
.btn.outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.hero .actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.scroll-hint { position: absolute; bottom: 1.25rem; left: 50%; transform: translateX(-50%); opacity: .6; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }

/* Secciones */
section.block { padding: 4.5rem 0; }
section.block + section.block { border-top: 1px solid var(--navy-10); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; letter-spacing: -.01em; }
.section-head .meta { color: var(--navy-80); font-size: .85rem; }

/* Partidos */
.matches { display: grid; gap: .75rem; }
.match { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; padding: 1.1rem 1.25rem; border: 1px solid var(--navy-10); border-radius: var(--radius); background: var(--white); }
.match .teams { font-weight: 700; font-size: 1.1rem; }
.match .teams .us { text-decoration: underline; text-decoration-color: var(--navy-10); text-underline-offset: 4px; }
.match .comp { color: var(--navy-80); font-size: .85rem; margin-top: .15rem; }
.match .when { text-align: right; }
.match .when .date { font-weight: 700; }
.match .when .time { color: var(--navy-80); font-size: .9rem; }
.match .live { display: inline-block; background: var(--navy); color: var(--white); font-size: .72rem; font-weight: 700; letter-spacing: .1em; padding: .2rem .5rem; border-radius: 4px; margin-left: .5rem; vertical-align: middle; }
.match.today { border-color: var(--navy); box-shadow: inset 4px 0 0 var(--navy); }
.empty { padding: 1.5rem; border: 1px dashed var(--navy-10); border-radius: var(--radius); color: var(--navy-80); text-align: center; }

/* Formularios */
.form { display: grid; gap: 1.1rem; max-width: 640px; }
.field { display: grid; gap: .4rem; }
.field label, .field .legend { font-weight: 600; font-size: .95rem; }
.field .hint { color: var(--navy-80); font-size: .85rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; padding: .8rem .95rem; border: 1.5px solid var(--navy-10); border-radius: 8px; background: var(--white); min-height: 48px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
.field.invalid input, .field.invalid textarea { border-color: var(--error); }
.field .error { color: var(--error); font-size: .85rem; min-height: 1.2em; }
.required::after { content: " *"; color: var(--error); }
fieldset { border: 0; padding: 0; margin: 0; }
.choices { display: grid; gap: .5rem; }
.choices.row { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.choice { display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; border: 1.5px solid var(--navy-10); border-radius: 8px; cursor: pointer; min-height: 48px; }
.choice:has(input:checked) { border-color: var(--navy); background: var(--navy-05); }
.choice:has(input:focus-visible) { outline: 3px solid var(--navy); outline-offset: 1px; }
.choice input { width: 1.1rem; height: 1.1rem; accent-color: var(--navy); margin: 0; }
.check { display: flex; gap: .75rem; align-items: flex-start; font-size: .95rem; }
.check input { width: 1.2rem; height: 1.2rem; accent-color: var(--navy); margin-top: .15rem; flex: none; }
.form-actions { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.status { font-size: .95rem; min-height: 1.4em; }
.status.ok { color: var(--ok); font-weight: 600; }
.status.err { color: var(--error); font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Pie */
footer.site { background: var(--navy-05); border-top: 1px solid var(--navy-10); padding: 2rem 0; color: var(--navy-80); font-size: .85rem; }
footer.site .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* Cuestionario */
.wizard-page { min-height: 100svh; background: var(--navy-05); display: grid; grid-template-rows: auto 1fr; }
.wizard-page .topbar { position: static; background: var(--white); border-bottom: 1px solid var(--navy-10); }
.wizard { width: min(680px, 100% - 2rem); margin: 2rem auto 3rem; background: var(--white); border: 1px solid var(--navy-10); border-radius: 14px; padding: clamp(1.25rem, 4vw, 2.5rem); }
.progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; margin-bottom: 1.5rem; }
.progress span { height: 6px; border-radius: 3px; background: var(--navy-10); }
.progress span.done { background: var(--navy); }
.step-label { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--navy-80); margin: 0 0 .5rem; }
.wizard h1 { font-size: clamp(1.5rem, 4vw, 2rem); margin: 0 0 .5rem; letter-spacing: -.01em; }
.wizard .intro { color: var(--navy-80); margin: 0 0 1.5rem; }
.step { display: none; }
.step.active { display: block; }
.thanks { text-align: center; padding: 2rem 0; }
.thanks .seal { width: 160px; margin: 0 auto 1.5rem; }
.thanks h2 { font-size: 1.8rem; margin: 0 0 .5rem; }
.thanks p { color: var(--navy-80); }

/* Admin */
.admin { padding: 2rem 0 4rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; margin: 1.5rem 0; }
.card { border: 1px solid var(--navy-10); border-radius: var(--radius); padding: 1rem; }
.card .n { font-size: 2rem; font-weight: 700; line-height: 1; }
.card .l { color: var(--navy-80); font-size: .85rem; margin-top: .35rem; }
.table-wrap { overflow: auto; border: 1px solid var(--navy-10); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: .85rem; }
th, td { padding: .6rem .75rem; text-align: left; border-bottom: 1px solid var(--navy-10); vertical-align: top; white-space: nowrap; }
th { background: var(--navy-05); position: sticky; top: 0; font-weight: 700; }
td.wrap { white-space: normal; min-width: 220px; }
.tabs { display: flex; gap: .5rem; margin: 1rem 0; }
.tabs button { border: 1.5px solid var(--navy-10); background: var(--white); border-radius: 999px; padding: .5rem 1rem; cursor: pointer; font-weight: 600; }
.tabs button[aria-selected="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
@media (max-width: 560px) {
  .match { grid-template-columns: 1fr; }
  .match .when { text-align: left; }
}
#wizard-actions { margin-top: 1.5rem; }
.admin-bar { position: static; background: var(--navy); color: var(--white); }
[hidden] { display: none !important; }

.seal-surface { width: clamp(180px, 34vw, 300px); margin-inline: auto; background: var(--white); border-radius: 50%; padding: 0; }
.seal-surface .seal { width: 100%; }
.follow { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .75rem; }
.follow-card { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; border: 1px solid var(--navy-10); border-radius: var(--radius); text-decoration: none; min-height: 72px; }
.follow-card:hover { border-color: var(--navy); }
.follow-card .icon { width: 28px; height: 28px; flex: none; color: var(--navy); }
.follow-card span { display: grid; }
.follow-card strong { font-size: 1.05rem; overflow-wrap: anywhere; }
.follow-card small { color: var(--navy-80); }
.footnav { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.footnav a { color: var(--navy-80); }
.cookie-note { color: var(--navy-80); }
.legal { max-width: 720px; margin: 3rem auto 4rem; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0 0 .5rem; letter-spacing: -.01em; }
.legal h2 { font-size: 1.2rem; margin: 2rem 0 .5rem; }
.legal p, .legal li { color: var(--navy); }
.legal .updated { color: var(--navy-80); font-size: .9rem; }
.legal .lang-block { display: none; } .legal .lang-block.active { display: block; }
