:root {
    --navy: #0b1a3a;
    --navy-2: #14284f;
    --orange: #e8731a;
    --orange-dark: #c25f12;
    --ink: #172033;
    --muted: #5b6577;
    --line: #e3e7ee;
    --bg: #f5f7fb;
    --white: #ffffff;
    --radius: 14px;
    --shadow: 0 6px 22px rgba(11, 26, 58, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font-family: 'Segoe UI', Roboto, Arial, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* Botones */
.btn { display: inline-block; border: 2px solid transparent; border-radius: 10px; padding: 11px 20px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; text-align: center; transition: background .15s, color .15s; }
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-outline { border-color: var(--white); color: var(--white); background: transparent; }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-dark { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-dark:hover { background: var(--navy); color: var(--white); }

/* Cabecera */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); color: var(--white); box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand img { height: 40px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { text-decoration: none; font-weight: 500; opacity: .9; padding: 6px 2px; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a.active { opacity: 1; border-bottom-color: var(--orange); }
.site-nav .nav-login { border-bottom: 2px solid var(--white); padding: 8px 16px; opacity: 1; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; }

/* Hero */
.hero { position: relative; min-height: 520px; display: flex; align-items: center; background: var(--navy); color: var(--white); overflow: hidden; }
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide { background-size: cover; background-position: center; opacity: 0; transition: opacity .8s; }
.hero-slide.active { opacity: 1; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 26, 58, .9) 0%, rgba(11, 26, 58, .5) 48%, rgba(11, 26, 58, .1) 100%), linear-gradient(0deg, rgba(11, 26, 58, .55) 0%, rgba(11, 26, 58, 0) 35%); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: center; padding-top: 48px; padding-bottom: 56px; }
.hero-grid:has(.next-event[hidden]) { grid-template-columns: minmax(0, 1fr); }
.hero-content { min-width: 0; }
/* Franjas diagonales de marca */
.hero::before { content: ''; position: absolute; z-index: 1; left: -4%; bottom: 0; width: 46%; height: 10px; background: var(--orange); transform: skewX(-35deg); box-shadow: 0 -16px 0 -2px rgba(232, 115, 26, .55), 0 -32px 0 -4px rgba(232, 115, 26, .25); }

/* Próximo evento con cuenta regresiva */
.next-event { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--radius); padding: 22px; backdrop-filter: blur(6px); }
.next-label { display: inline-block; background: var(--orange); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 20px; }
.next-event h2 { margin: 12px 0 4px; font-size: 1.35rem; line-height: 1.2; color: var(--white); }
.next-meta { margin: 0 0 16px; opacity: .85; font-size: .95rem; }
.countdown { display: flex; gap: 10px; margin-bottom: 18px; }
.countdown div { flex: 1; background: rgba(11, 26, 58, .65); border-radius: 10px; padding: 10px 4px; text-align: center; }
.countdown strong { display: block; font-size: 1.6rem; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown span { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; opacity: .75; }
.next-live { margin: 0 0 18px; font-weight: 700; color: #ffd2a8; }

/* Tira de eventos (estilo marcador) */
.event-strip { background: #08122b; color: var(--white); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.strip-inner { display: flex; align-items: center; gap: 14px; min-height: 52px; }
.strip-label { flex: none; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); }
.strip-list { display: flex; gap: 10px; overflow-x: auto; padding: 8px 0; scrollbar-width: none; }
.strip-list::-webkit-scrollbar { display: none; }
.strip-chip { flex: none; display: flex; flex-direction: column; text-decoration: none; background: rgba(255, 255, 255, .06); border-left: 3px solid var(--orange); border-radius: 6px; padding: 5px 12px; max-width: 240px; }
.strip-chip:hover { background: rgba(255, 255, 255, .12); }
.strip-chip b { font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: #ffd2a8; }
.strip-chip span { font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Pantalla de carga */
.skeleton { background: linear-gradient(90deg, #e9edf3 25%, #f4f6fa 50%, #e9edf3 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius); }
.skeleton-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; padding: 48px 16px; max-width: 1180px; margin: 0 auto; }
.skeleton-grid .skeleton { aspect-ratio: 4 / 5; }
@keyframes shimmer { to { background-position: -200% 0; } }

.sport-card, .card { transition: transform .18s, box-shadow .18s; }
.sport-card:hover, .card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(11, 26, 58, .18); }
.hero h1 { font-size: clamp(1.9rem, 5vw, 3.2rem); line-height: 1.12; margin: 0 0 14px; max-width: 760px; }
.hero p { font-size: 1.1rem; max-width: 620px; margin: 0 0 24px; opacity: .92; }
.hero-cta { margin-bottom: 20px; }
.search-card { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 18px; max-width: 560px; box-shadow: var(--shadow); }
.search-card label { display: block; font-weight: 600; margin-bottom: 8px; }
.search-row { display: flex; gap: 10px; }
.search-row input { width: 92px; flex: none; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: var(--white); }
.search-row select { flex: 1; min-width: 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: var(--white); }
.hero-dots { display: flex; gap: 8px; margin-top: 18px; }
.hero-dots button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--white); background: transparent; padding: 0; cursor: pointer; }
.hero-dots button.active { background: var(--orange); border-color: var(--orange); }

/* Cifras */
.values { background: var(--white); border-bottom: 1px solid var(--line); }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; padding-top: 22px; padding-bottom: 22px; gap: 8px; }
.values-grid strong { display: block; font-size: 1.9rem; color: var(--navy); }
.values-grid span { color: var(--muted); font-size: .92rem; }

/* Secciones */
.block { padding: 48px 0; }
.block.alt { background: var(--white); }

/* Espacios publicitarios: visibles pero discretos */
.ad-slot { padding: 22px 0; }
.ad-label { display: block; text-align: center; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: #8a93a5; margin-bottom: 6px; }
.ad-box { display: flex; align-items: center; justify-content: center; max-width: 970px; margin: 0 auto; border-radius: 8px; overflow: hidden; background: #eef1f6; min-height: 90px; text-decoration: none; }
.ad-box picture, .ad-box img { display: block; width: 100%; height: auto; }
.ad-empty { flex-direction: column; gap: 2px; border: 1px dashed #c3cad6; background: transparent; color: #8a93a5; text-align: center; }
.ad-empty strong { font-size: .95rem; color: #6b7587; }
.ad-empty span { font-size: .8rem; }
.block h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 0 0 6px; color: var(--navy); }
.block .lead { margin: 0 0 24px; color: var(--muted); }
.grid { display: grid; gap: 18px; }
.grid-sports { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.grid-cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.sport-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--navy); box-shadow: var(--shadow); text-decoration: none; color: var(--white); display: block; }
.sport-card img { width: 100%; height: 100%; object-fit: cover; }
.sport-card .tag { position: absolute; left: 10px; top: 10px; background: var(--orange); color: var(--white); font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 20px; }
.sport-card .caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 12px; background: linear-gradient(transparent, rgba(11, 26, 58, .92)); font-weight: 700; }
.sport-card small { display: block; font-weight: 400; opacity: .85; }

.card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card img.cover { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--navy); }
/* Las fotos de ejemplo de cada deporte son verticales: en una tarjeta horizontal se muestra la parte de arriba (cara y cuerpo) y no el centro */
.card img.cover[src*="/portal/img/deportes/"] { object-position: center 10%; }
.card .body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card h3 { margin: 0; font-size: 1.1rem; color: var(--navy); }
.card .meta { color: var(--muted); font-size: .92rem; }
.card .pill { align-self: flex-start; background: #fdeee0; color: var(--orange-dark); font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; margin-bottom: 4px; }
.card .date { font-weight: 700; color: var(--orange-dark); }

/* Club del mes */
.club-month { position: relative; background: var(--navy) center / cover; color: var(--white); text-align: center; padding: 72px 0; }
.club-month::before { content: ''; position: absolute; inset: 0; background: rgba(11, 26, 58, .78); }
.club-month .container { position: relative; }
.club-month h2 { color: var(--white); margin: 0 0 4px; }
.club-month .name { font-size: clamp(1.8rem, 5vw, 2.8rem); font-weight: 700; margin: 0 auto 8px; max-width: none; }
.club-month p { max-width: 620px; margin: 0 auto 20px; opacity: .92; }

/* Patrocinadores */
.sponsors { display: flex; flex-wrap: wrap; gap: 18px 34px; align-items: center; justify-content: center; }
.sponsors a, .sponsors span { display: flex; align-items: center; justify-content: center; min-height: 56px; text-decoration: none; color: var(--muted); font-weight: 700; }
.sponsors img { max-height: 56px; width: auto; filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s; }
.sponsors a:hover img { filter: none; opacity: 1; }

/* CTA */
.cta { background: var(--navy); color: var(--white); text-align: center; padding: 64px 0; }
.cta h2 { color: var(--white); max-width: 720px; margin: 0 auto 22px; }

/* Estados */
.state-msg { text-align: center; color: var(--muted); padding: 40px 16px; }
.state-msg .btn { margin-top: 12px; }
.empty { background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--muted); }

/* Pie */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .85); padding-top: 36px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-bottom: 24px; }
.footer-inner p { max-width: 380px; margin: 10px 0 0; }
.footer-inner nav { display: flex; flex-direction: column; gap: 8px; }
.footer-inner nav a { text-decoration: none; }
.footer-inner nav a:hover { color: var(--orange); }
.footer-contact { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 4px; font-size: .92rem; }
.footer-contact a, .footer-social a { color: inherit; text-decoration: underline; }
.footer-contact a:hover, .footer-social a:hover { color: var(--orange); }
.footer-social { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; font-size: .92rem; }
.footer-copy { border-top: 1px solid rgba(255, 255, 255, .15); padding: 16px; font-size: .85rem; }

/* Pie en columnas (lo arma common.js): marca y redes | Explorar (en dos columnas) | Contacto */
.footer-inner.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; padding-bottom: 36px; }
.footer-inner.footer-grid:not(:has(.footer-col-contact)) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
.footer-brand p { max-width: 340px; line-height: 1.6; }
.footer-title { color: var(--white); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin: 6px 0 14px; }
.footer-inner nav.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; align-content: start; }
.footer-links .footer-title { grid-column: 1 / -1; margin-bottom: 4px; }
.footer-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: var(--white); text-decoration: none; transition: background .2s; }
.footer-social a:hover, .footer-social a:focus-visible { background: var(--orange); color: var(--white); }
.footer-social svg { width: 18px; height: 18px; }
.footer-col-contact .footer-contact { margin: 0; gap: 14px; font-size: .95rem; }
.footer-contact-label { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; opacity: .6; margin-bottom: 2px; }
.footer-col-contact .footer-contact a { text-decoration: none; }
.footer-col-contact .footer-contact a:hover { color: var(--orange); text-decoration: underline; }
.site-footer .footer-copy { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { text-decoration: none; opacity: .85; }
.footer-legal a:hover { color: var(--orange); opacity: 1; }
@media (max-width: 900px) { .footer-inner.footer-grid, .footer-inner.footer-grid:not(:has(.footer-col-contact)) { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* Móvil */
@media (max-width: 800px) {
    .nav-toggle { display: block; }
    .site-nav { position: absolute; left: 0; right: 0; top: 64px; background: var(--navy); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; display: none; box-shadow: 0 8px 14px rgba(0, 0, 0, .25); }
    .site-nav.open { display: flex; }
    .site-nav a { padding: 12px 4px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
    .site-nav .nav-login { margin-top: 10px; text-align: center; border: 2px solid var(--white); }
    .hero { min-height: 480px; }
    .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .ad-box { min-height: 100px; }
    .strip-label { display: none; }
    .search-row { flex-direction: column; }
    .search-row input { width: 100%; }
    .grid-sports { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-slide, .sport-card, .card { transition: none; }
    .skeleton { animation: none; }
}

/* ===== Contenido del Inicio: noticias, resultados, posiciones, gimnasios ===== */
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.block-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.block-head .lead { margin: 0; }
.link-more { color: var(--orange-dark); font-weight: 700; text-decoration: none; white-space: nowrap; }
.link-more::after { content: ' →'; }
.link-more:hover { text-decoration: underline; }
.pill { display: inline-block; align-self: flex-start; background: #fdeee0; color: var(--orange-dark); font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; }

/* Noticias */
.news-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; }
.news-lead a { position: relative; display: block; height: 100%; min-height: 380px; border-radius: var(--radius); overflow: hidden; background: var(--navy); color: var(--white); text-decoration: none; box-shadow: var(--shadow); }
.news-lead img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-lead a:hover img { transform: scale(1.03); }
.news-lead-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 22px 22px; background: linear-gradient(transparent, rgba(11, 26, 58, .95)); display: flex; flex-direction: column; gap: 8px; }
.news-lead-text .pill { background: var(--orange); color: var(--white); }
.news-lead-text h3 { margin: 0; font-size: clamp(1.3rem, 3vw, 1.9rem); line-height: 1.18; }
.news-lead-text p { margin: 0; opacity: .9; }
.news-lead-text time { font-size: .85rem; opacity: .75; }
.news-side { display: flex; flex-direction: column; gap: 12px; }
.news-item { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; background: var(--white); border-radius: var(--radius); padding: 10px; text-decoration: none; box-shadow: var(--shadow); transition: transform .18s; }
.news-item:hover { transform: translateY(-2px); }
.news-item img { width: 112px; height: 84px; object-fit: cover; border-radius: 10px; background: var(--navy); }
.news-item h3 { margin: 2px 0; font-size: 1rem; line-height: 1.25; color: var(--navy); }
.news-cat { font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--orange-dark); }
.news-item time { font-size: .8rem; color: var(--muted); }

/* Resultados (estilo marcador) */
.results-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
.result-card { scroll-snap-align: start; background: var(--white); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); border-top: 3px solid var(--orange); display: flex; flex-direction: column; gap: 6px; }
.block.alt .result-card { background: var(--bg); box-shadow: none; }
.result-meta { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--muted); }
.result-line .team { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-line strong { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.result-line.won { color: var(--navy); font-weight: 700; }
.result-foot { font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 6px; }
.result-foot b { color: var(--orange-dark); text-transform: uppercase; letter-spacing: .05em; }

/* Posiciones */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tab { border: 1px solid var(--line); background: var(--white); color: var(--navy); font: inherit; font-weight: 600; padding: 8px 16px; border-radius: 22px; cursor: pointer; }
.tab.active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.table-scroll { overflow-x: auto; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.standings { width: 100%; border-collapse: collapse; min-width: 460px; font-variant-numeric: tabular-nums; }
.standings th { background: var(--navy); color: var(--white); font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; padding: 10px 12px; text-align: left; }
.standings td { padding: 11px 12px; border-bottom: 1px solid var(--line); }
.standings .num { text-align: right; }
.standings .pos { width: 40px; font-weight: 700; color: var(--muted); }
.standings .name { font-weight: 600; color: var(--navy); }
.standings .pts { font-weight: 800; color: var(--navy); }
.standings tr.top .pos { color: var(--orange-dark); box-shadow: inset 4px 0 0 var(--orange); }
.standings tbody tr:last-child td { border-bottom: 0; }

/* Gimnasios y tarjetas */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chip { background: #eef1f6; color: var(--navy); font-size: .78rem; font-weight: 600; padding: 3px 9px; border-radius: 14px; }
.phone { color: var(--orange-dark); font-weight: 700; text-decoration: none; margin-top: 4px; }
.phone:hover { text-decoration: underline; }
.card-link { text-decoration: none; color: inherit; }

/* Páginas de noticias */
.page { padding: 36px 0 56px; min-height: 60vh; }
.page-title { margin: 0 0 4px; font-size: clamp(1.7rem, 4vw, 2.4rem); color: var(--navy); }
.page .lead { margin: 0 0 26px; color: var(--muted); }
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 30px; flex-wrap: wrap; }
.pager-info { color: var(--muted); }
.article-wrap { max-width: 820px; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--orange-dark); text-decoration: none; }
.article-title { margin: 10px 0 8px; font-size: clamp(1.7rem, 4.5vw, 2.5rem); line-height: 1.15; color: var(--navy); }
.article-summary { font-size: 1.15rem; color: var(--muted); margin: 0 0 12px; }
.article-meta { font-size: .9rem; color: var(--muted); margin: 0 0 20px; }
.article-cover { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius); margin-bottom: 24px; background: var(--navy); }
.article-body p { font-size: 1.06rem; line-height: 1.75; margin: 0 0 1.1em; }
.share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.share span { font-weight: 700; color: var(--navy); }
.related { margin-top: 48px; }
.related h2 { color: var(--navy); }

@media (max-width: 800px) {
    .news-grid { grid-template-columns: minmax(0, 1fr); }
    .news-lead a { min-height: 300px; }
    .news-item { grid-template-columns: 96px 1fr; }
    .news-item img { width: 96px; height: 72px; }
    .results-row { grid-auto-columns: 82%; }
}

@media (prefers-reduced-motion: reduce) {
    .news-lead img, .news-item { transition: none; }
}

/* ===== Página de un deporte ===== */
.sport-hero { position: relative; background: var(--navy) center 18% / cover no-repeat; color: var(--white); padding: 40px 0 52px; overflow: hidden; }
.sport-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 26, 58, .94) 0%, rgba(11, 26, 58, .72) 45%, rgba(11, 26, 58, .25) 100%), linear-gradient(0deg, rgba(11, 26, 58, .7) 0%, rgba(11, 26, 58, 0) 40%); }
.sport-hero::after { content: ''; position: absolute; left: -4%; bottom: 0; width: 40%; height: 8px; background: var(--orange); transform: skewX(-35deg); }
.sport-hero-inner { position: relative; z-index: 2; max-width: 1180px; }
.sport-hero h1 { margin: 10px 0 8px; font-size: clamp(2.2rem, 6vw, 3.8rem); line-height: 1.05; }
.sport-desc { max-width: 600px; margin: 0 0 20px; font-size: 1.1rem; opacity: .92; }
.crumbs.light { color: rgba(255, 255, 255, .75); margin-bottom: 14px; }
.crumbs.light a { color: #ffd2a8; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge-hero { display: inline-block; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); color: var(--white); font-size: .78rem; font-weight: 700; padding: 4px 12px; border-radius: 20px; text-decoration: none; }
.badge-hero.free { background: var(--orange); border-color: var(--orange); }
.badge-hero.link:hover { background: rgba(255, 255, 255, .26); }
.hero-stats { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-stats div { background: rgba(11, 26, 58, .6); border: 1px solid rgba(255, 255, 255, .15); border-radius: 12px; padding: 10px 18px; min-width: 110px; }
.hero-stats strong { display: block; font-size: 1.7rem; line-height: 1; }
.hero-stats span { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; opacity: .8; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.modality-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; align-items: start; }
.modality-card { position: relative; display: block; border: 3px solid transparent; border-radius: var(--radius); overflow: hidden; padding: 0; cursor: pointer; background: var(--navy); color: var(--white); text-align: left; font: inherit; aspect-ratio: 4 / 3; box-shadow: var(--shadow); transition: transform .18s, border-color .18s; }
.modality-card:hover { transform: translateY(-3px); }
.modality-card.active { border-color: var(--orange); }
.modality-card:not(.no-art) { aspect-ratio: 4 / 5; }
.modality-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.modality-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 10px; background: linear-gradient(transparent, rgba(11, 26, 58, .95)); display: flex; flex-direction: column; }
.modality-info strong { font-size: 1rem; }
.modality-info small { opacity: .8; }
.modality-info em { position: absolute; right: 10px; top: -8px; background: var(--orange); font-style: normal; font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 12px; }
.chips.wrap, .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-link { text-decoration: none; padding: 7px 14px; font-size: .9rem; background: var(--white); border: 1px solid var(--line); }
.chip-link:hover { border-color: var(--orange); color: var(--orange-dark); }
.link-more.as-button { background: none; border: 0; cursor: pointer; font: inherit; font-weight: 700; padding: 0; }

.league-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.league-item { background: var(--white); border-left: 4px solid var(--orange); border-radius: 10px; padding: 14px 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; }
.block.alt .league-item { background: var(--bg); box-shadow: none; }
.league-item span { color: var(--muted); font-size: .9rem; }

@media (max-width: 800px) {
    .sport-hero { padding: 28px 0 40px; }
    .sport-hero::before { background: linear-gradient(0deg, rgba(11, 26, 58, .92) 0%, rgba(11, 26, 58, .6) 100%); }
    .modality-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .modality-card { transition: none; } }
.modality-card.no-art { background: linear-gradient(135deg, var(--navy-2) 0%, var(--navy) 60%, #3a2410 100%); }
.modality-card.no-art .modality-info { background: none; top: 0; justify-content: flex-end; }
.modality-card.no-art .modality-info strong { font-size: 1.15rem; }

.group-title { margin: 30px 0 12px; font-size: 1.1rem; color: var(--navy); padding-left: 10px; border-left: 4px solid var(--orange); }
.group-title:first-child { margin-top: 0; }

/* ===== Ligas, entrenadores, galería, calendario y mapa ===== */
.meta.strong { font-weight: 700; color: var(--navy); }
.league-cover { position: relative; aspect-ratio: 3 / 2; background: var(--navy); }
.league-cover img.cover { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.league-logo { position: absolute; left: 14px; bottom: -22px; width: 64px; height: 64px; border-radius: 50%; background: var(--white); border: 3px solid var(--white); box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.league-logo img { width: 100%; height: 100%; object-fit: contain; }
.league-card .body { padding-top: 30px; }

.grid-coaches { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.coach-card img.cover.portrait { aspect-ratio: 4 / 5; object-position: center 20%; }

body.no-scroll { overflow: hidden; }
.gallery-mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 170px; gap: 10px; }
.gallery-tile { position: relative; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: pointer; background: var(--navy); }
.gallery-tile.big { grid-column: span 2; grid-row: span 2; }
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gallery-tile:hover img { transform: scale(1.05); }
.gallery-tile span { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; color: var(--white); font-size: .88rem; font-weight: 600; text-align: left; background: linear-gradient(transparent, rgba(11, 26, 58, .85)); opacity: 0; transition: opacity .2s; }
.gallery-tile:hover span, .gallery-tile:focus-visible span { opacity: 1; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(5, 13, 34, .94); display: flex; align-items: center; justify-content: center; padding: 20px; }
.lightbox figure { margin: 0; max-width: min(1000px, 92vw); text-align: center; }
.lightbox img { max-width: 100%; max-height: 78vh; border-radius: 10px; }
.lightbox-caption { color: var(--white); margin: 12px 0 0; }
.lightbox-close, .lightbox-nav { position: absolute; background: rgba(255, 255, 255, .14); color: var(--white); border: 0; border-radius: 50%; width: 46px; height: 46px; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); }
.lightbox-nav.prev { left: 16px; }
.lightbox-nav.next { right: 16px; }
.lightbox-close:hover, .lightbox-nav:hover { background: var(--orange); }

.cal-wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 22px; }
.cal-main, .cal-side { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.block.alt .cal-main, .block.alt .cal-side { background: var(--bg); box-shadow: none; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-head h3 { margin: 0; font-size: 1.2rem; color: var(--navy); }
.cal-nav { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); font-size: 1.3rem; cursor: pointer; color: var(--navy); }
.cal-nav:hover { background: var(--navy); color: var(--white); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-dow { text-align: center; font-size: .75rem; font-weight: 700; color: var(--muted); padding: 4px 0; }
.cal-cell { position: relative; aspect-ratio: 1.2 / 1; border: 0; border-radius: 10px; background: transparent; cursor: pointer; font: inherit; color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.cal-cell.empty-cell { cursor: default; }
.cal-cell:not(.empty-cell):hover { background: #eef1f6; }
.cal-cell.today .cal-num { border: 2px solid var(--orange); border-radius: 50%; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; }
.cal-cell.has-events { font-weight: 700; color: var(--navy); }
.cal-cell.selected { background: var(--navy); color: var(--white); }
.cal-cell.selected:hover { background: var(--navy); }
.cal-dots { display: flex; gap: 3px; }
.cal-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }
.cal-side h3 { margin: 0 0 12px; color: var(--navy); font-size: 1.05rem; }
.cal-events { display: flex; flex-direction: column; gap: 10px; }
.cal-event { border-left: 4px solid var(--orange); padding: 6px 12px; background: #f6f8fc; border-radius: 0 8px 8px 0; display: flex; flex-direction: column; gap: 2px; }
.cal-event span, .cal-event small { color: var(--muted); font-size: .88rem; }
.cal-total { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }

.map-toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.map-status { margin: 0; color: var(--muted); font-size: .9rem; }
.map-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(240px, 1fr); gap: 18px; }
.map-canvas { height: 440px; border-radius: var(--radius); overflow: hidden; background: #dfe6f0; box-shadow: var(--shadow); z-index: 1; }
.map-list { list-style: none; margin: 0; padding: 0; max-height: 440px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.map-list li button { width: 100%; text-align: left; border: 1px solid var(--line); background: var(--white); border-radius: 10px; padding: 10px 14px; cursor: pointer; font: inherit; display: flex; flex-direction: column; gap: 1px; }
.map-list li button:hover { border-color: var(--orange); }
.map-list li span { color: var(--muted); font-size: .88rem; }
.map-list li small { color: var(--orange-dark); font-weight: 700; }
.map-pin span { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--orange); color: var(--white); font-weight: 800; border: 3px solid var(--white); box-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.map-popup ul { margin: 2px 0 6px; padding-left: 18px; }
.map-popup .map-sub { margin: 8px 0 0; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: #6b7587; }

@media (max-width: 800px) {
    .gallery-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
    .cal-wrap, .map-layout { grid-template-columns: minmax(0, 1fr); }
    .map-canvas { height: 340px; }
    .map-list { max-height: 260px; }
    .lightbox-nav.prev { left: 6px; } .lightbox-nav.next { right: 6px; }
}
@media (prefers-reduced-motion: reduce) { .gallery-tile img, .gallery-tile span { transition: none; } }

/* ---------- Directorio: clubes y ligas ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.filters input[type="search"], .filters select { padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: var(--white); min-width: 0; }
.filters input[type="search"] { flex: 2 1 220px; }
.filters input[type="date"] { flex: 0 1 170px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: var(--white); min-width: 0; }
.filters input[type="number"] { flex: 0 1 130px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: var(--white); min-width: 0; }
.filters select { flex: 1 1 170px; }
.result-count { margin: 0 0 18px; color: var(--muted); font-size: .92rem; min-height: 1.2em; }
.profile-head { display: flex; align-items: center; gap: 18px; }
.profile-logo { flex: none; width: 84px; height: 84px; border-radius: 50%; background: var(--white); border: 3px solid var(--white); display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: var(--shadow); }
.profile-logo img { width: 100%; height: 100%; object-fit: contain; }
.about-text { max-width: 760px; margin: 0; font-size: 1.05rem; line-height: 1.6; }
.league-item.card-link:hover { border-left-color: var(--navy); }
@media (max-width: 640px) {
    .filters select, .filters input[type="search"], .filters input[type="number"], .filters input[type="date"], .filters .btn { flex: 1 1 100%; }
    .profile-logo { width: 64px; height: 64px; }
}

/* ---------- Eventos ---------- */
a.tab { text-decoration: none; display: inline-block; }
.event-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 0; }
.event-facts div { background: var(--white); border-left: 4px solid var(--orange); border-radius: 10px; padding: 12px 16px; box-shadow: var(--shadow); }
.event-facts dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.event-facts dd { margin: 2px 0 0; font-weight: 700; color: var(--navy); }
.data-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.data-table th, .data-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.data-table th { background: var(--navy); color: var(--white); font-size: .8rem; text-transform: uppercase; }
.data-table td.num, .data-table th.num { text-align: center; }
.table-wrap { overflow-x: auto; }
.match-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.match-list li { background: var(--white); border-radius: 10px; padding: 10px 14px; box-shadow: var(--shadow); display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; justify-content: space-between; }
.match-list .score { font-weight: 800; color: var(--navy); }
.match-list time { color: var(--muted); font-size: .88rem; }

/* ---------- Nosotros ---------- */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.about-card { background: var(--white); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); border-top: 4px solid var(--orange); display: flex; flex-direction: column; gap: 8px; }
.about-card h3 { margin: 0; color: var(--navy); }
.about-card p { margin: 0; color: var(--muted); flex: 1; }
.block .about-text + .btn { margin-top: 18px; }
@media (max-width: 640px) {
    .data-table th, .data-table td { padding: 8px 5px; font-size: .82rem; }
    .data-table th:first-child, .data-table td:first-child { padding-left: 10px; }
    .data-table td:nth-child(2) { min-width: 120px; }
}

/* ---------- Resultados ---------- */
.subheading { margin: 26px 0 8px; font-size: 1.25rem; color: var(--navy); }
.meta-line { margin: 0 0 12px; color: var(--muted); font-size: .92rem; }
.meta-line a { color: var(--orange-dark); }
.result-item { background: var(--white); border-radius: 10px; padding: 12px 16px; box-shadow: var(--shadow); display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; justify-content: space-between; list-style: none; }
.result-item .score { font-weight: 800; color: var(--navy); }
.result-where { color: var(--muted); font-size: .88rem; }
.result-where a { color: var(--orange-dark); text-decoration: none; }
#list.match-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

/* ---------- Formulario "Solicitar información" ---------- */
.request-form { background: var(--white); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); max-width: 640px; display: grid; gap: 14px; }
.request-form .form-field { display: grid; gap: 6px; }
.request-form .form-subtitle { margin: 6px 0 0; font-size: 1rem; color: var(--navy); }
.request-form label { font-weight: 600; color: var(--navy); font-size: .92rem; }
.request-form input[type="text"], .request-form input[type="tel"], .request-form input[type="email"], .request-form textarea { padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; width: 100%; box-sizing: border-box; background: var(--white); }
.request-form select, .request-form input[type="date"] { padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: var(--white); min-width: 0; }
.request-form input:focus, .request-form textarea:focus, .request-form select:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
.request-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.request-form .form-note { margin: -4px 0 0; color: var(--muted); font-size: .85rem; }
.request-form .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--ink); font-size: .88rem; cursor: pointer; }
.request-form .consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--orange); }
.request-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.request-form .btn { justify-self: start; }
.form-status { margin: 0; min-height: 1.2em; font-size: .92rem; }
.form-status.error { color: #b3261e; font-weight: 600; }
.request-sent { text-align: center; padding: 18px 8px; color: var(--navy); }
.request-sent strong { font-size: 1.2rem; display: block; margin-bottom: 6px; }
@media (max-width: 640px) { .request-form .form-row { grid-template-columns: 1fr; } .request-form { padding: 16px; } }

/* ---------- Testimonios ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.testimonial { margin: 0; background: var(--white); border-radius: var(--radius); padding: 22px 22px 18px; box-shadow: var(--shadow); border-top: 4px solid var(--orange); display: flex; flex-direction: column; gap: 14px; position: relative; }
.testimonial blockquote { margin: 0; font-size: 1.02rem; line-height: 1.55; color: var(--ink); }
.testimonial blockquote::before { content: '\201C'; display: block; font-size: 2.6rem; line-height: .6; color: var(--orange); font-family: Georgia, serif; margin-bottom: 8px; }
.testimonial figcaption { display: flex; flex-direction: column; margin-top: auto; }
.testimonial figcaption strong { color: var(--navy); }
.testimonial figcaption span { color: var(--muted); font-size: .88rem; }

/* ---------- Entrenadores verificados ---------- */
.pill.verified { background: #e3f6ea !important; color: #14683a !important; }
.badge-hero.verified { background: #14683a; color: #fff; border-color: #14683a; }
.cert-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 720px; }
.cert-list li { background: var(--white); border-left: 4px solid #14683a; border-radius: 10px; padding: 12px 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; }
.cert-list li strong { color: var(--navy); }
.cert-list li span, .cert-list li small { color: var(--muted); }

/* ---------- Favoritos ---------- */
.fav-wrap { position: relative; display: flex; }
.fav-wrap > .card { flex: 1; min-width: 0; }
.fav-btn { font: inherit; cursor: pointer; border: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .15s, background .15s, color .15s; }
.fav-wrap > .fav-btn { position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--navy); box-shadow: 0 2px 8px rgba(11, 26, 58, .25); font-size: 1.3rem; line-height: 1; }
.fav-btn:hover { transform: scale(1.1); }
.fav-btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.fav-btn.on { color: #d6204f; }
.fav-btn-text { padding: 11px 20px; border-radius: 10px; font-weight: 700; border: 2px solid var(--white); background: transparent; color: var(--white); }
.fav-btn-text:hover { background: rgba(255, 255, 255, .14); transform: none; }
.fav-btn-text.on { background: var(--white); color: #d6204f; }
.nav-fav { display: inline-flex; align-items: center; gap: 6px; }
.nav-fav .fav-count { background: var(--orange); color: var(--white); border-radius: 12px; min-width: 20px; padding: 0 6px; font-size: .75rem; font-weight: 700; line-height: 20px; text-align: center; }
.nav-fav .fav-count[hidden] { display: none; }
.fav-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--navy); color: var(--white); padding: 10px 20px; border-radius: 24px; font-size: .92rem; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 60; max-width: calc(100vw - 32px); text-align: center; }
.fav-toast.show { opacity: 1; transform: translate(-50%, 0); }
.fav-section { margin-bottom: 34px; }
/* En pantallas anchas el menú ya va lleno: el enlace muestra solo el corazón y el contador (el nombre queda para lectores de pantalla) */
@media (min-width: 901px) { .nav-fav .fav-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .nav-fav { font-size: 1.15rem; } }
@media (max-width: 900px) { .nav-fav { padding: 10px 0; } }
.site-nav .nav-login { white-space: nowrap; }

/* Botón "Registra tu club" del encabezado */
.site-nav .nav-register { white-space: nowrap; padding: 8px 16px; margin-left: 6px; }
@media (max-width: 900px) { .site-nav .nav-register { margin: 10px 0 0; text-align: center; display: block; } }

.cert-list li img.dir-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; margin-bottom: 4px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }

/* Buscador del encabezado */
.nav-search { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 0; color: inherit; font: inherit; font-weight: 500; opacity: .9; cursor: pointer; padding: 6px 2px; }
.nav-search:hover, .nav-search[aria-expanded="true"] { opacity: 1; }
.search-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); color: var(--ink); box-shadow: 0 10px 24px rgba(0, 0, 0, .18); padding: 14px 0 18px; }
.search-panel[hidden] { display: none; }
.search-panel input { width: 100%; padding: 12px 14px; font-size: 1rem; border: 1px solid var(--line); border-radius: 10px; }
.search-results { margin-top: 10px; max-height: 60vh; overflow-y: auto; display: grid; gap: 10px; }
.search-group h4 { margin: 6px 0 4px; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.search-item { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); border: 0; opacity: 1; }
.search-item:hover, .search-item:focus { background: var(--bg); }
.search-item span { color: var(--muted); font-size: .85rem; }
.search-empty { color: var(--muted); margin: 4px 0; }
@media (max-width: 860px) { .nav-search { padding: 12px 4px; border-bottom: 1px solid rgba(255, 255, 255, .1); width: 100%; justify-content: flex-start; } }
@media (min-width: 861px) and (max-width: 1500px) { .nav-search .search-label { display: none; } }

/* Cabecera en pantallas de portátil: el menú completo mide ~1.330 px y no cabía en 1.180 px (se salía "Registra tu club"
   y el logo quedaba aplastado). La cabecera usa más ancho, el menú se compacta y por debajo de 1.280 px pasa a hamburguesa. */
.brand { flex-shrink: 0; }
.site-header .container { max-width: 1480px; }
/* Escritorio: el menú ocupa todo el ancho después del logo y reparte el espacio por igual entre los enlaces */
@media (min-width: 1281px) {
    .site-nav { flex: 1; justify-content: space-between; margin-left: 48px; gap: 12px; }
}
@media (min-width: 1281px) and (max-width: 1400px) {
    .site-nav { margin-left: 24px; }
    .site-nav .nav-login, .site-nav .nav-register { padding: 8px 12px; }
}
@media (min-width: 801px) and (max-width: 1280px) {
    .nav-toggle { display: block; }
    .site-nav { position: absolute; left: 0; right: 0; top: 64px; background: var(--navy); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; display: none; box-shadow: 0 8px 14px rgba(0, 0, 0, .25); }
    .site-nav.open { display: flex; }
    .site-nav a { padding: 12px 4px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
    .site-nav .nav-login { margin-top: 10px; text-align: center; border: 2px solid var(--white); }
    .site-nav .nav-register { margin: 10px 0 0; text-align: center; display: block; }
    .nav-fav { padding: 10px 0; font-size: inherit; }
    .nav-fav .fav-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
    .nav-search { padding: 12px 4px; border-bottom: 1px solid rgba(255, 255, 255, .1); width: 100%; justify-content: flex-start; }
    .nav-search .search-label { display: inline; }
}

/* Historias de éxito */
.story-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.story-card { background: var(--white); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.story-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.story-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.story-body h3 { margin: 0; color: var(--navy); }
.story-body p { margin: 0; white-space: pre-line; }
.story-meta { color: var(--muted); font-size: .9rem; display: flex; gap: 10px; flex-wrap: wrap; }

/* Texto completo de la autorización (desplegable bajo la casilla de consentimiento) */
.consent-full { margin: 6px 0 12px; font-size: 0.9rem; }
.consent-full summary { cursor: pointer; text-decoration: underline; }
.consent-full p { white-space: pre-wrap; margin: 6px 0 0; }

/* Beneficios de un deporte («¿Por qué practicar…?») */
.benefit-list { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.benefit-list li { background: #fff; border-radius: 10px; padding: .8rem 1rem .8rem 2.2rem; position: relative; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.benefit-list li::before { content: "\2713"; position: absolute; left: .8rem; color: #e8590c; font-weight: 700; }

.about-story { display: grid; gap: 1.2rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 760px) { .about-story:has(.about-story-img) { grid-template-columns: 1fr 1.4fr; } }
.about-story-img { width: 100%; max-height: 280px; object-fit: cover; border-radius: 12px; }

/* Deporte, entrenador y liga «del mes» */
.spotlight { display: grid; grid-template-columns: 1fr; gap: 0; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.1); margin-bottom: 1.4rem; color: inherit; text-decoration: none; border-left: 5px solid #e8590c; }
.spotlight-img { width: 100%; height: 190px; object-fit: cover; }
.spotlight-body { padding: 1rem 1.2rem; display: grid; gap: .4rem; align-content: center; }
.spotlight-body h3 { margin: 0; font-size: 1.3rem; }
.spotlight-body p { margin: 0; }
@media (min-width: 760px) { .spotlight:not(.no-art) { grid-template-columns: 280px 1fr; } .spotlight-img { height: 100%; min-height: 190px; } }

/* Reportar contenido inapropiado */
.link-report { background: none; border: 0; padding: 0; color: #6b7280; font-size: .8rem; text-decoration: underline; cursor: pointer; }
.link-report:hover { color: #b91c1c; }
.gallery-item { margin: 0; position: relative; }
.gallery-item .link-report { position: absolute; right: 6px; bottom: 6px; background: rgba(255,255,255,.9); padding: 2px 6px; border-radius: 6px; }
.lightbox-report { text-align: center; margin-top: .4rem; }
.lightbox-report .link-report { color: #fff; }
.report-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 1rem; }
.report-form { background: #fff; border-radius: 14px; padding: 1.2rem; width: min(440px, 100%); display: grid; gap: .5rem; }
.report-form h3 { margin: 0; }
.report-form select, .report-form textarea { width: 100%; padding: .5rem; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; }
.report-actions { display: flex; gap: .6rem; justify-content: flex-end; margin-top: .4rem; }

.report-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
