/* Master Volley Spain · Tema D "Pista marino" · mobile-first */
:root {
  --navy: #04253D; --navy-2: #0B3556; --navy-3: #16466d;
  --gold: #FDC143; --gold-d: #e0a41f;
  --red: #CA4128; --red-d: #a9321d;
  --sea: #1C8DC9; --sand: #FFF8EA;
  --bg: #fff; --grey: #F1F4F8; --line: #dbe2ea;
  --text: #1c2533; --muted: #5d6879;
  --radius: 10px; --shadow: 0 6px 24px rgba(4, 37, 61, .10);
  --wrap: 1180px;
  --f-head: 'Oswald', 'Noto Sans SC', 'Arial Narrow', sans-serif;
  --f-body: 'Inter', 'Noto Sans SC', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 var(--f-body); color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-3); }
a:hover { color: var(--red); }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 700; line-height: 1.1; color: var(--navy); margin: 0 0 .5em; text-transform: uppercase; letter-spacing: .01em; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3, :lang(zh) h4, :lang(zh) .btn, :lang(zh) .kicker { text-transform: none; letter-spacing: 0; font-weight: 900; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--navy); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.muted { color: var(--muted); }
.kicker { font: 600 .8rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: .6rem; display: block; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 44px; padding: .6em 1.3em; border: 0; border-radius: 6px; font: 500 1rem/1.1 var(--f-head); letter-spacing: .05em; text-transform: uppercase; text-decoration: none; cursor: pointer; background: var(--red); color: #fff; transition: background .2s, transform .1s; }
.btn:hover { background: var(--red-d); color: #fff; }
.btn:active { transform: scale(.98); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-d); color: var(--navy); }
.btn-ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px currentColor; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.on-dark .btn-ghost { color: #fff; }
.on-dark .btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-sm { min-height: 36px; padding: .4em .9em; font-size: .9rem; }

/* ---------- Cabecera ---------- */
.site-head { background: var(--navy); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 12px rgba(0,0,0,.25); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand img { height: 44px; width: auto; }
.hero .motto { display: block; width: 130px; height: auto; margin: 8px 0 4px; }
.values-head { display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 8px; }
.values-head img { width: 220px; height: auto; }
.nav-toggle { background: none; border: 0; color: #fff; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; display: block; width: 24px; height: 2px; background: currentColor; position: relative; transition: .2s; }
.nav-toggle span::before { position: absolute; top: -7px; } .nav-toggle span::after { position: absolute; top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }
.main-nav { position: fixed; inset: 64px 0 0; background: var(--navy); padding: 16px; transform: translateX(100%); transition: transform .25s; overflow-y: auto; }
.nav-open .main-nav { transform: none; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 12px 4px; color: #fff; text-decoration: none; font: 500 1.15rem var(--f-head); letter-spacing: .05em; text-transform: uppercase; border-bottom: 1px solid rgba(255,255,255,.08); }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--gold); }
.head-tools { display: flex; align-items: center; gap: 6px; }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; color: var(--gold); font: 500 .95rem var(--f-head); letter-spacing: .06em; padding: 10px 8px; min-height: 44px; display: flex; align-items: center; gap: 4px; }
.lang summary::-webkit-details-marker { display: none; }
.lang ul { position: absolute; right: 0; top: 100%; background: #fff; list-style: none; margin: 0; padding: 6px 0; border-radius: 8px; box-shadow: var(--shadow); min-width: 160px; }
.lang a { display: block; padding: 8px 14px; color: var(--text); text-decoration: none; }
.lang a:hover, .lang a[aria-current] { background: var(--grey); color: var(--red); }
.head-icon { color: #fff; width: 44px; height: 44px; display: grid; place-items: center; position: relative; }
.head-icon:hover { color: var(--gold); }
.head-icon svg { width: 22px; height: 22px; }
.head-icon .count { position: absolute; top: 4px; right: 2px; background: var(--red); color: #fff; font-size: .7rem; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; }

/* ---------- Hero con franjas ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: var(--navy) center/cover no-repeat; min-height: 72vh; display: flex; align-items: flex-end; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4,37,61,.95) 20%, rgba(4,37,61,.35)); }
.stripes::after { content: ""; position: absolute; z-index: 0; right: -70px; top: 22px; width: 55%; min-width: 200px; height: 22px; background: var(--red); transform: rotate(-22deg); box-shadow: 0 18px 0 -8px var(--gold); pointer-events: none; opacity: .9; }
.stripes > .wrap { position: relative; z-index: 2; }
.hero .wrap { position: relative; z-index: 1; padding-top: 48px; padding-bottom: 48px; }
.hero h1 { color: #fff; max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--gold); display: block; }
.hero p { color: #c8d3e0; max-width: 46ch; font-size: 1.05rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.page-hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: 48px 0 40px; }
.page-hero h1 { color: #fff; margin: 0; }
.page-hero p { color: #c8d3e0; margin: .5em 0 0; max-width: 60ch; }
.crumbs { font-size: .85rem; color: #9fb0c4; margin-bottom: .75rem; }
.crumbs a { color: #9fb0c4; } .crumbs a:hover { color: var(--gold); }

/* ---------- Cuenta atrás ---------- */
.countdown { display: flex; gap: 10px; margin: 18px 0 4px; }
.countdown div { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 8px; padding: 8px 10px; min-width: 64px; text-align: center; }
.countdown b { display: block; font: 700 1.7rem/1 var(--f-head); color: var(--gold); }
.countdown small { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: #c8d3e0; }

/* ---------- Secciones y tarjetas ---------- */
.section { padding: 56px 0; }
.section.alt { background: var(--grey); }
.section.dark { background: var(--navy); color: #c8d3e0; }
.section.dark h2 { color: #fff; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(4,37,61,.16); color: inherit; }
.card .media { aspect-ratio: 16/10; background: var(--grey) center/cover; position: relative; }
.card .media img { width: 100%; height: 100%; object-fit: cover; }
.card .media.poster { aspect-ratio: 4/5; }
.card .media.poster img { object-fit: contain; background: var(--grey); }
.card .media img.no-poster { object-fit: contain; padding: 22%; background: linear-gradient(160deg, var(--navy-2), var(--navy)); }
.card .body { padding: 16px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.card h3 { font-size: 1.15rem; margin-bottom: .35em; }
.card .meta { font-size: .85rem; color: var(--muted); margin-bottom: .5em; }
.card .more { margin-top: auto; font: 500 .9rem var(--f-head); text-transform: uppercase; letter-spacing: .05em; color: var(--red); }
.badge { display: inline-block; font: 600 .72rem/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; padding: 5px 8px; border-radius: 4px; background: var(--grey); color: var(--navy); }
.badge.red { background: var(--red); color: #fff; } .badge.gold { background: var(--gold); color: var(--navy); } .badge.navy { background: var(--navy); color: #fff; }
.media .badge { position: absolute; left: 10px; top: 10px; }
.date-box { position: absolute; right: 10px; top: 10px; background: var(--navy); color: #fff; border-radius: 6px; text-align: center; padding: 6px 10px; line-height: 1; }
.date-box b { display: block; font: 700 1.5rem var(--f-head); color: var(--gold); }
.date-box small { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Jugadores ---------- */
.player { text-align: center; }
.player .media { aspect-ratio: 3/4; background: linear-gradient(160deg, var(--navy-2), var(--navy)); }
.player .num { position: absolute; right: 10px; bottom: 6px; font: 700 2.4rem/1 var(--f-head); color: var(--gold); opacity: .9; }
.player .initials { position: absolute; inset: 0; display: grid; place-items: center; font: 700 3rem var(--f-head); color: rgba(255,255,255,.2); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.filters input, .filters select { flex: 1 1 160px; }
.profile { display: grid; gap: 28px; }
.profile .photo { border-radius: var(--radius); overflow: hidden; background: linear-gradient(160deg, var(--navy-2), var(--navy)); aspect-ratio: 3/4; align-self: start; box-shadow: var(--shadow); }
.profile .photo.has-img { aspect-ratio: auto; background: var(--grey); }
.profile .photo.has-img img { width: 100%; height: auto; max-height: 85vh; object-fit: contain; display: block; margin: 0 auto; }
.pl-block { margin-top: 28px; }
.pl-block:first-of-type { margin-top: 8px; }
.pl-block h2 { font-size: 1.35rem; margin-bottom: .6em; padding-bottom: .35em; border-bottom: 3px solid var(--gold); display: inline-block; }
.pl-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pl-list li { position: relative; padding: 8px 12px 8px 34px; background: var(--grey); border-radius: 6px; }
.pl-list li::before { content: ""; position: absolute; left: 13px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--red); }
.pl-list.trophies li::before { content: "🏆"; width: auto; height: auto; background: none; left: 9px; margin-top: -.62em; font-size: .9rem; }
.pl-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pl-chips li { background: var(--navy); color: #fff; padding: 7px 14px; border-radius: 20px; font-size: .92rem; }
.profile .photo img.framed { width: 100%; height: 100%; object-fit: cover; display: block; }
.player .media { overflow: hidden; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 16px 0 24px; }
.facts div { background: var(--grey); border-radius: 8px; padding: 10px 12px; }
.facts b { display: block; font: 700 1.3rem var(--f-head); color: var(--navy); }
.facts small { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Contenido editorial ---------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.6rem; margin-top: 1.4em; }
.prose h3 { margin-top: 1.2em; }
.prose img { border-radius: 8px; margin: 1em 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }
.prose blockquote { border-left: 4px solid var(--gold); margin: 1.2em 0; padding: .5em 1em; background: var(--grey); }
.layout-side { display: grid; gap: 32px; }
.aside-box { background: var(--grey); border-radius: var(--radius); padding: 20px; }
.aside-box h3 { font-size: 1.05rem; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; gap: 10px; }
.info-list li:last-child { border: 0; }
.info-list b { min-width: 90px; color: var(--navy); }
.share { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.share a, .share button { min-height: 40px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 6px; background: var(--grey); color: var(--navy); text-decoration: none; font-size: .85rem; border: 0; cursor: pointer; font-family: inherit; }
.share a:hover, .share button:hover { background: var(--navy); color: #fff; }

/* ---------- Galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.gallery a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 6px; background: var(--grey); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.05); }
.lightbox { position: fixed; inset: 0; background: rgba(4,37,61,.95); display: none; align-items: center; justify-content: center; z-index: 200; padding: 16px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 88vh; max-width: 100%; width: auto; border-radius: 6px; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 2rem; width: 52px; height: 52px; cursor: pointer; }
.lightbox .x { top: 8px; right: 8px; } .lightbox .prev { left: 4px; } .lightbox .next { right: 4px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tabs a { padding: 8px 14px; border-radius: 20px; background: var(--grey); color: var(--navy); text-decoration: none; font-size: .9rem; }
.tabs a[aria-current] { background: var(--navy); color: #fff; }

/* ---------- Patrocinadores ---------- */
.sponsors { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.sponsors a, .sponsors div { background: #fff; border-radius: 8px; display: grid; place-items: center; padding: 12px; aspect-ratio: 3/2; border: 1px solid var(--line); }
.sponsors img { max-height: 90px; width: auto; object-fit: contain; filter: grayscale(.2); transition: filter .2s; }
.sponsors a:hover img { filter: none; }

/* ---------- Formularios ---------- */
.form { display: grid; gap: 16px; max-width: 720px; }
.form .row { display: grid; gap: 16px; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--navy); }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], input[type=search], input[type=date], input[type=url], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; font: inherit; color: var(--text); background: #fff; }
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--navy-3); outline: 2px solid rgba(28,141,201,.25); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .9rem; color: var(--text); }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.field-error { color: var(--red); font-size: .85rem; margin-top: 4px; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--red); }
.hp { position: absolute; left: -9999px; }
.alert { padding: 14px 16px; border-radius: 8px; margin-bottom: 20px; border-left: 4px solid; }
.alert.ok { background: #e7f6ee; border-color: #2e8b57; color: #1f5f3c; }
.alert.err { background: #fdf0ed; border-color: var(--red); color: #8e2a18; }
.alert.info { background: #eaf4fb; border-color: var(--sea); color: #134c6e; }
.legal-note { font-size: .78rem; color: var(--muted); }

/* ---------- Paginación ---------- */
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 32px; }
.pager a, .pager span { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 6px; background: var(--grey); color: var(--navy); text-decoration: none; }
.pager span { background: var(--navy); color: #fff; }

/* ---------- Pie ---------- */
.site-foot { background: var(--navy); color: #9fb0c4; padding: 48px 0 24px; font-size: .92rem; position: relative; overflow: hidden; }
.site-foot a { color: #c8d3e0; text-decoration: none; }
.site-foot a:hover { color: var(--gold); }
.site-foot h4 { color: var(--gold); font-size: 1rem; }
/* En el pie la franja decorativa va como marca de agua: pasa por detrás de los enlaces de contacto */
.site-foot.stripes::after { opacity: .18 !important; }
.foot-grid { display: grid; gap: 28px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: 6px; }
.social { display: flex; gap: 10px; }
.social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; }
.social a:hover { background: var(--gold); color: var(--navy); }
.social svg { width: 20px; height: 20px; }
.section:not(.dark) .social a { background: var(--navy); }
.section:not(.dark) .social a:hover { background: var(--red); color: #fff; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 32px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .82rem; }

/* ---------- Cookies ---------- */
.cookies { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 150; background: #fff; border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,.25); padding: 16px; display: none; max-width: 560px; }
.cookies.show { display: block; }
.cookies p { font-size: .88rem; }
.cookies .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.consent-slot { background: var(--grey); border-radius: var(--radius); padding: 24px; text-align: center; }
.video-slot { padding: 0; background: var(--navy); color: #c8d3e0; min-height: 200px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; padding: 24px; }
.video-slot p { width: 100%; margin: 0 0 6px; }
.video-slot .btn-ghost { color: #fff; }
.video { position: relative; width: 100%; aspect-ratio: 16/9; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius); }

/* ---------- Acento Costa del Sol (solo página del torneo) ---------- */
.theme-cds .page-hero { background: linear-gradient(0deg, rgba(4,37,61,.95), rgba(28,141,201,.35)), var(--cds-img, none) center/cover; }
.theme-cds .script { font-family: 'Kaushan Script', cursive; color: var(--gold); text-transform: none; font-weight: 400; display: block; font-size: 1.25em; letter-spacing: 0; }
.theme-cds .section.alt { background: var(--sand); }
.theme-cds .kicker { color: var(--sea); }
.price-table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.price-table td, .price-table th { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; }
.price-table th { font-family: var(--f-head); text-transform: uppercase; letter-spacing: .05em; color: var(--navy); font-weight: 500; }

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  .grid.g2, .grid.g3, .grid.g4 { grid-template-columns: repeat(2, 1fr); }
  .form .row { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .sponsors { grid-template-columns: repeat(3, 1fr); }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .cookies { left: 24px; bottom: 24px; }
}
/* ---------- Vídeos ---------- */
.vgrid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.vcard { margin: 0; }
.vplay { position: relative; display: block; width: 100%; aspect-ratio: 16/9; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: var(--navy); cursor: pointer; }
.vplay img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.vplay:hover img, .vplay:focus-visible img { transform: scale(1.04); }
.vplay-ico { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; border-radius: 12px; background: var(--red); box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.vplay-ico::after { content: ""; position: absolute; left: 27px; top: 14px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.vplay:hover .vplay-ico { background: #b33620; }
.vcard .video { border-radius: var(--radius); overflow: hidden; }
.vcard figcaption { margin-top: 8px; display: grid; gap: 2px; }
.vcard figcaption b { font-family: Oswald, sans-serif; font-weight: 500; font-size: 1.05rem; line-height: 1.25; }
.vcard figcaption .muted { font-size: .85rem; }
.vcard.big .vplay-ico { transform: scale(1.25); }
.vnote { font-size: .85rem; margin-top: 18px; }
.tabs-main { margin-bottom: 8px; }
.follow { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.follow > div:first-child { max-width: 60ch; }
.follow-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
/* ---------- Salón de la Fama ---------- */
.memoriam { color: var(--gold); font-family: Oswald, sans-serif; letter-spacing: .08em; text-transform: uppercase; margin-top: 6px; }
.jersey { width: 150px; height: auto; flex: none; filter: drop-shadow(0 8px 14px rgba(4,37,61,.35)); }
.hof-card { display: grid; gap: 24px; align-items: center; padding: 28px; margin-bottom: 28px; border-radius: var(--radius); background: var(--navy); color: #dfe7f1; position: relative; overflow: hidden; }
.hof-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, var(--red) 0 70%, var(--gold) 70%); }
.hof-card h2 { color: #fff; margin: 4px 0; }
.hof-card .kicker { color: var(--gold); }
.hof-card .muted { color: #a9b8ca; }
.hof-card .hof-meta { color: var(--gold); font-weight: 600; }
.hof-shirt { display: grid; justify-items: center; gap: 10px; }
.hof-shirt .jersey { width: 190px; }
.hof-shirt img { width: 190px; border-radius: var(--radius); }
.hof-shirt .hof-crest { width: 150px; border-radius: 0; opacity: .9; }
.hof-retired { font-family: Oswald, sans-serif; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); font-size: .9rem; }
.hof-banner { background: var(--navy); color: #dfe7f1; border-top: 4px solid var(--gold); }
.hof-banner .wrap { display: flex; gap: 20px; align-items: center; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap; }
.hof-banner .jersey { width: 96px; }
.hof-banner .kicker { color: var(--gold); display: block; }
.hof-banner strong { color: #fff; font-family: Oswald, sans-serif; font-size: 1.3rem; text-transform: uppercase; }
.hof-banner p { margin: 4px 0; max-width: 60ch; }
.hof-banner a { color: var(--gold); font-weight: 600; }
.hof-tag { position: absolute; left: 10px; bottom: 10px; background: var(--gold); color: var(--navy); font: 700 .72rem Oswald, sans-serif; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; }
.hof-strip { display: flex; align-items: center; gap: 10px; padding: 14px 18px; margin-bottom: 20px; border-radius: var(--radius); background: var(--navy); color: #fff; font-family: Oswald, sans-serif; text-transform: uppercase; letter-spacing: .04em; text-decoration: none; }
.hof-strip b { margin-left: auto; color: var(--gold); }
.hof-strip:hover { background: #06304f; }
@media (min-width: 760px) { .hof-card { grid-template-columns: 240px 1fr; padding: 36px; } }
/* ---------- Escritorio ---------- */
@media (min-width: 1000px) {
  .nav-toggle { display: none; }
  .main-nav { position: static; transform: none; background: none; padding: 0; overflow: visible; }
  .main-nav ul { display: flex; gap: 4px; }
  .main-nav a { border: 0; padding: 8px 10px; font-size: 1rem; }
  .site-head .wrap { min-height: 76px; }
  .brand img { height: 52px; }
  .hero .motto { width: 165px; }
  .values-head img { width: 280px; }
  .grid.g3 { grid-template-columns: repeat(3, 1fr); }
  .grid.g4 { grid-template-columns: repeat(4, 1fr); }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .sponsors { grid-template-columns: repeat(5, 1fr); }
  .layout-side { grid-template-columns: minmax(0, 1fr) 340px; }
  .profile { grid-template-columns: 360px 1fr; }
  .profile .photo { position: sticky; top: 100px; }
  .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .section { padding: 80px 0; }
  .hero { min-height: 78vh; }
  .stripes::after { top: 16%; height: 44px; box-shadow: 0 32px 0 -15px var(--gold); opacity: 1; }
  .page-hero.stripes::after { top: 10%; height: 30px; box-shadow: 0 22px 0 -10px var(--gold); }
}
/* Escritorio estrecho: el menú completo no cabe con holgura */
@media (min-width: 1000px) and (max-width: 1260px) {
  .main-nav ul { gap: 0; }
  .main-nav a { padding: 8px 7px; font-size: .9rem; letter-spacing: .03em; }
  .brand img { height: 40px; }
}
/* ---------- Tienda (fase 3) ---------- */
.shop-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.shop-top .tabs { margin-bottom: 12px; }
.prod-card .prod-media { aspect-ratio: 1/1; }
.prod-card .prod-media img { object-fit: contain; background: #fff; }
.prod-flag { position: absolute; top: 10px; left: 10px; }
.prod-flag2 { position: absolute; top: 10px; right: 10px; }
.prod-price { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 10px; }
.prod-price del { color: var(--muted); font-size: .9rem; }
.prod-price strong { font: 600 1.25rem var(--f-head); color: var(--navy); }
.prod-price.big strong { font-size: 2rem; }
.prod-wrap { display: grid; gap: 32px; grid-template-columns: 1fr; }
.prod-main { background: var(--grey); border-radius: var(--radius); overflow: hidden; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; }
.prod-main img { width: 100%; height: 100%; object-fit: contain; }
.prod-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.prod-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 6px; background: var(--grey); width: 72px; height: 72px; cursor: pointer; overflow: hidden; }
.prod-thumbs button.on { border-color: var(--red); }
.prod-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.sizes { border: 0; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.sizes legend { font-weight: 600; margin-bottom: 6px; }
.size { position: relative; display: inline-flex; flex-direction: column; align-items: center; cursor: pointer; }
.size input { position: absolute; opacity: 0; }
.size span { min-width: 52px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 6px; text-align: center; font-weight: 600; }
.size input:checked + span { border-color: var(--navy); background: var(--navy); color: #fff; }
.size input:focus-visible + span { outline: 3px solid var(--gold); }
.size.no span { color: #aab3bf; text-decoration: line-through; cursor: not-allowed; }
.size small { font-size: .7rem; color: var(--red); }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { padding: 12px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.cart-table th { font: 500 .85rem var(--f-head); text-transform: uppercase; letter-spacing: .05em; color: var(--navy); }
.cart-img img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; background: var(--grey); }
.r { text-align: right !important; }
.cart-bottom, .co-grid { display: grid; gap: 28px; grid-template-columns: 1fr; margin-top: 24px; }
.cart-totals, .co-side, .pay-box { background: var(--grey); border-radius: var(--radius); padding: 20px; }
.cart-totals table, .co-sum { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.cart-totals td, .co-sum td { padding: 6px 0; }
.co-sum tr.sep td { border-top: 1px solid var(--line); padding-top: 10px; }
.cart-totals tr.tot td, .co-sum tr.tot td { font: 600 1.2rem var(--f-head); color: var(--navy); border-top: 2px solid var(--navy); padding-top: 10px; }
.ship-list { font-size: .85rem; padding-left: 1.1em; }
.ship-opts, .co-side fieldset { border: 0; padding: 0; margin: 12px 0; }
.ship-opts legend, .co-side legend { font-weight: 600; margin-bottom: 6px; }
label.opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; background: #fff; cursor: pointer; }
label.opt[hidden] { display: none; }
.pay-box { border-left: 5px solid var(--gold); margin-bottom: 20px; }
.timeline { list-style: none; padding: 0; border-left: 3px solid var(--line); margin-left: 6px; }
.timeline li { position: relative; padding: 0 0 12px 18px; }
.timeline li::before { content: ''; position: absolute; left: -8px; top: 6px; width: 13px; height: 13px; border-radius: 50%; background: var(--gold); }
@media (min-width: 860px) {
  .prod-wrap { grid-template-columns: 1fr 1fr; }
  .cart-bottom { grid-template-columns: 1fr 380px; }
  .co-grid { grid-template-columns: 1fr 400px; align-items: start; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-head, .site-foot, .cookies, .share { display: none; } }

/* Alta guiada del socio */
.alta-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 0; margin: 0 0 28px; counter-reset: none; }
.alta-steps li { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: .85rem; color: #6b7785; border-top: 4px solid #dfe5ec; padding-top: 10px; }
.alta-steps li span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #dfe5ec; color: var(--navy); font-weight: 700; }
.alta-steps li.done { border-color: var(--navy-3); color: var(--navy); }
.alta-steps li.done span { background: var(--navy-3); color: #fff; }
.alta-steps li.now { border-color: var(--red); color: var(--navy); font-weight: 600; }
.alta-steps li.now span { background: var(--red); color: #fff; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 12px 0 20px; padding: 14px 16px; background: #f3f6f9; border-left: 4px solid var(--gold); border-radius: 4px; }
.kv dt { font-weight: 600; color: var(--navy); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .kv { grid-template-columns: 1fr; gap: 2px; } .kv dd { margin-bottom: 8px; } }

/* Tallas de la ficha */
.sizes-box { border: 1px solid #dfe5ec; border-radius: 8px; padding: 12px 16px 4px; margin: 8px 0 16px; }
.sizes-box legend { font-weight: 600; color: var(--navy); padding: 0 6px; }
.sizes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
@media (max-width: 640px) { .sizes-grid { grid-template-columns: 1fr 1fr; } }

/* Tienda por campañas */
.camp-banner { border-radius: 8px; padding: 14px 18px; margin: 0 0 22px; background: #f3f6f9; border-left: 4px solid var(--navy-3); }
.camp-banner.is-open { background: #fff8e6; border-left-color: var(--gold); }
.camp-banner p { margin: 0 0 6px; }
.camp-banner .camp-who { margin: 8px 0 0; font-size: .9rem; color: #4b5866; }
.camp-banner .camp-desc { font-size: .95rem; margin: 6px 0; }
.camp-line { background: #fff8e6; border-left: 4px solid var(--gold); padding: 10px 14px; border-radius: 6px; }
.prod-price.two { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; }
.prod-price.two span { color: #6b7785; }
.prod-price.two span small { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.prod-price.two span.mine { color: var(--navy); }
.prod-price.two span:not(.mine) strong { font-weight: 500; font-size: .9em; }
.size-note { font-size: .88rem; margin: -4px 0 10px; }
.track { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; padding: 0; margin: 10px 0 14px; }
.track li { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: .75rem; line-height: 1.2; color: #6b7785; border-top: 3px solid #dfe5ec; padding-top: 8px; }
.track li span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #dfe5ec; color: var(--navy); font-weight: 700; font-size: .8rem; }
.track li.done { border-color: var(--navy-3); color: var(--navy); }
.track li.done span { background: var(--navy-3); color: #fff; }
.track li.now { border-color: var(--red); color: var(--navy); font-weight: 600; }
.track li.now span { background: var(--red); color: #fff; }
@media (max-width: 560px) { .track { grid-template-columns: repeat(3, 1fr); row-gap: 12px; } }
.order-card { border: 1px solid #dfe5ec; border-radius: 8px; padding: 10px 16px; margin: 0 0 12px; }
.order-card > summary { cursor: pointer; padding: 4px 0; }
.order-card .pill { font-size: .75rem; padding: 2px 8px; border-radius: 10px; background: #eef2f6; color: var(--navy); margin-left: 4px; white-space: nowrap; }
.order-card .pill.st-pending { background: #fde8e4; color: var(--red-d); }
.order-card .pill.st-review { background: #fff4d6; color: #7a5a00; }
.order-card .pill.st-delivered, .order-card .pill.st-ready, .order-card .pill.st-shipped { background: #e3f3e8; color: #1d6b35; }
.become-box { background: #fff8e6; border-left: 4px solid var(--gold); border-radius: 8px; padding: 16px 18px; }
