/* Web pública de Nou Padel i Tenis Campos · diseño «Marcador»: verde de pista oscuro y cifras de marcador. */
/* Tokens primero: color, tipografía y espacio. */
/* Public Sans (SIL OFL 1.1, ver fonts/OFL.txt), variable 400–700, alojada en la propia web. */
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/public-sans-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/public-sans-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* Big Shoulders Display (SIL OFL 1.1, ver fonts/OFL-BigShouldersDisplay.txt), variable 100–900: titulares y cifras. */
@font-face { font-family: 'Big Shoulders Display'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/big-shoulders-display-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Big Shoulders Display'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/big-shoulders-display-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
    --bg: #0f241c;
    --band: #173e32;
    --deep: #0a1a14;
    --card: #132c23;
    --line: #2c4a3e;
    --line-soft: #4b6a5d;
    --outline: #6f8b7d;
    --text: #eef2ea;
    --text-soft: #c3cfc4;
    --text-muted: #9fb3a6;
    --focus: #f0a45c;
    /* Verde del logo: el botón de reservar. El verde claro marca «hoy» y las cifras destacadas. */
    --action: #2d8327;
    --action-hover: #37962f;
    --accent: #9ad28a;

    --sans: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --display: 'Big Shoulders Display', 'Arial Narrow', 'Roboto Condensed', sans-serif-condensed, sans-serif;
    /* Escala tipográfica: nada por debajo de 13px. */
    --fs-xs: .8125rem;
    --fs-sm: .9375rem;
    --fs-base: 1rem;
    --fs-md: 1.125rem;
    --fs-lg: 1.25rem;

    --gutter: 64px;
    --section-space: 96px;
    --radius: 6px;
    --radius-lg: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: var(--fs-base); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
::selection { background: var(--accent); color: var(--bg); }
h1, h2, h3, h4, p { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 900; line-height: .9; text-transform: uppercase; text-wrap: balance; }
h2 { font-size: clamp(3rem, 6.6vw, 5.25rem); }
.h2-small { font-size: clamp(2.5rem, 4.8vw, 3.75rem); }
h3 { font-size: var(--fs-lg); font-weight: 700; line-height: 1.25; }
.wrap { width: min(1280px - 2 * 64px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 30; padding: 12px 16px; background: var(--text); color: var(--bg); }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }
.preserve-lines { white-space: pre-line; }
.eyebrow { font-family: var(--sans); font-size: var(--fs-xs); font-weight: 700; line-height: 1.5; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.eyebrow-accent { color: var(--accent); }
.small-note { margin-top: 20px; font-size: var(--fs-xs); color: var(--text-muted); }

/* Botones */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; background: var(--text); color: var(--bg); border: 1px solid var(--text); border-radius: var(--radius); font-size: var(--fs-sm); font-weight: 700; text-align: center; text-decoration: none; transition: background .2s, border-color .2s, color .2s; }
.button:hover { background: #fff; border-color: #fff; }
.button-light { background: var(--text); color: var(--bg); border-color: var(--text); }
.button-accent { background: var(--action); border-color: var(--action); color: #fff; }
.button-accent:hover { background: var(--action-hover); border-color: var(--action-hover); }
.button-outline { background: transparent; color: var(--text); border-color: var(--outline); font-weight: 600; }
.button-outline:hover { background: var(--text); border-color: var(--text); color: var(--bg); }
.button-small { min-height: 44px; padding: 10px 18px; font-size: var(--fs-sm); }
.header-booking { white-space: nowrap; }

/* Cabecera */
.site-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 28px; padding: 14px var(--gutter); background: var(--bg); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; font-weight: 700; font-size: 1.0625rem; line-height: 1.3; text-decoration: none; flex-shrink: 0; }
.brand small { display: block; font-size: var(--fs-xs); font-weight: 400; color: var(--text-muted); }
/* El logo es oscuro: va sobre una placa clara para que se lea en el fondo verde. */
.brand-logo { display: block; width: 44px; height: 44px; padding: 3px; object-fit: contain; background: #f7f6ef; border-radius: 8px; }
.site-nav { display: flex; gap: 26px; font-size: var(--fs-sm); }
.site-nav a { padding-block: 10px; text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .site-footer a:hover { color: var(--accent); }
.lang-switch { display: flex; gap: 2px; font-size: var(--fs-xs); font-weight: 700; }
.lang-switch a { padding: 6px 7px; border-radius: var(--radius); color: var(--text-muted); text-decoration: none; }
.lang-switch a:hover { color: var(--text); background: var(--band); }
.lang-switch a[aria-current] { color: var(--text); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.nav-toggle { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px; background: transparent; color: var(--text); border: 1px solid var(--outline); border-radius: var(--radius); font-size: var(--fs-sm); font-weight: 600; cursor: pointer; }
.nav-toggle-bars { position: relative; width: 16px; height: 2px; background: currentColor; transition: background .2s; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ''; position: absolute; left: 0; width: 16px; height: 2px; background: currentColor; transition: transform .2s; }
.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }
.nav-open .nav-toggle-bars { background: transparent; }
.nav-open .nav-toggle-bars::before { transform: translateY(5px) rotate(45deg); }
.nav-open .nav-toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }

/* Inicio: titular enorme a la izquierda, marcador del club a la derecha. */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-block: 88px 96px; }
.hero-copy { display: grid; gap: 28px; justify-items: start; }
.hero h1 { font-size: clamp(3.75rem, 10.2vw, 8.25rem); line-height: .84; letter-spacing: .005em; }
.hero h1 span { display: block; color: var(--accent); }
.hero-description { max-width: 30ch; font-size: var(--fs-lg); line-height: 1.5; color: var(--text-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .button { min-height: 54px; padding-inline: 26px; font-size: var(--fs-base); }
.hero-media { display: grid; gap: 20px; }
.hero-photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }

/* Marcador y tablero de horario: bordes de 2px con el color de línea, como un marcador de pista. */
.scoreboard, .hours-card { border: 2px solid var(--line); border-radius: var(--radius-lg); background: var(--deep); overflow: hidden; }
.scoreboard-head, .board-head { display: flex; justify-content: space-between; gap: 16px; padding: 14px 22px; border-bottom: 2px solid var(--line); font-size: var(--fs-xs); font-weight: 700; line-height: 1.5; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.scoreboard-today { color: var(--accent); }
.scoreboard-today::before { content: '● '; }
.scoreboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; margin: 0; background: var(--line); }
.scoreboard-grid > div { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 24px 22px; background: var(--deep); }
.scoreboard-grid > div:last-child:nth-child(odd) { grid-column: 1 / -1; padding-block: 18px; }
.scoreboard-grid dt { font-size: var(--fs-xs); line-height: 1.4; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.scoreboard-grid dd { margin: 0; font-family: var(--display); font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.score-l { font-size: clamp(2.75rem, 4.6vw, 3.625rem); }
.score-m { font-size: clamp(2rem, 3.4vw, 2.625rem); }
.score-s { font-size: clamp(1.625rem, 2.7vw, 2.125rem); }
.score-hours dd { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; font-size: clamp(1.2rem, 1.85vw, 1.55rem); line-height: 1.1; white-space: nowrap; }

/* Secciones */
.section { padding-block: var(--section-space); }
.section-band { background: var(--band); }
.section-flush { padding-top: 0; }
.section-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: 44px; }
.section-head p, .section-head-split p { font-size: var(--fs-md); line-height: 1.5; color: var(--text-soft); }
.section-head-split { display: flex; justify-content: space-between; align-items: end; gap: 40px; max-width: none; }
.section-head-split > div { display: grid; gap: 14px; max-width: 760px; }
.section-head-split > .button { white-space: nowrap; }

/* Tablón de anuncios: franja con la fecha como una hoja de marcador. */
.news-section { padding-block: 36px; background: var(--band); border-block: 1px solid var(--line); }
.news-section .eyebrow span { font-weight: 700; }
.news-list { display: grid; gap: 28px; margin-top: 18px; }
.news-item { display: flex; align-items: center; gap: 40px; }
.news-item + .news-item { padding-top: 28px; border-top: 1px solid var(--line); }
.news-date { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; min-width: 110px; padding: 14px 10px; background: var(--deep); border-radius: 10px; text-align: center; }
.news-day { font-family: var(--display); font-size: 4rem; font-weight: 900; line-height: .9; font-variant-numeric: tabular-nums; }
.news-month { font-size: var(--fs-sm); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.news-body { display: grid; gap: 6px; flex-grow: 1; min-width: 0; overflow-wrap: anywhere; }
.news-when { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.news-body h3 { font-size: 1.75rem; }
.news-body > .preserve-lines { font-size: var(--fs-base); line-height: 1.55; color: var(--text-soft); }
.news-item > .button { flex-shrink: 0; white-space: nowrap; }

/* Tablas de precios: cifras grandes de marcador */
.price-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.price-table caption { padding-bottom: 10px; text-align: left; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.price-table th, .price-table td { padding-block: 20px; border-top: 1px solid var(--line); vertical-align: middle; }
.price-table tr:last-child th, .price-table tr:last-child td { border-bottom: 1px solid var(--line); }
.price-table th { text-align: left; font-size: var(--fs-lg); font-weight: 600; }
.price-table th small { display: block; margin-top: 4px; font-size: var(--fs-sm); font-weight: 400; color: var(--text-muted); }
.price-table td { padding-left: 16px; text-align: right; font-family: var(--display); font-size: clamp(2.75rem, 5vw, 4rem); font-weight: 900; line-height: 1; white-space: nowrap; }
.price-pending { font-family: var(--sans); font-size: var(--fs-md); font-weight: 400; color: var(--text-soft); }

/* Horario y tarifas */
.rates-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: 56px; align-items: start; }
.hours-list { margin: 0; }
.hours-list div { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; padding: 16px 24px; }
.hours-list div + div { border-top: 2px solid var(--line); }
.hours-list dt { display: flex; align-items: center; gap: 8px; font-size: var(--fs-base); color: var(--text-soft); }
.hours-list dd { margin: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-family: var(--display); font-size: clamp(1.85rem, 2.8vw, 2.35rem); font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.hours-list .is-today dt::after { content: attr(data-today); padding: 2px 9px; border-radius: 99px; background: var(--accent); color: var(--bg); font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; }
.hours-list .is-today dd { color: var(--accent); }
.hours-note { padding: 18px 24px; font-size: var(--fs-sm); color: var(--text-soft); }
.rates-main { display: grid; gap: 28px; }
.tennis-card { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 24px; border: 1px dashed var(--line-soft); border-radius: var(--radius-lg); }
.tennis-card h3 { font-size: var(--fs-md); }
.tennis-card p { margin-top: 4px; font-size: var(--fs-sm); line-height: 1.5; color: var(--text-soft); }
.tennis-links { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex-shrink: 0; }
.tennis-links .button { white-space: nowrap; }
.text-link { font-size: var(--fs-sm); font-weight: 600; text-underline-offset: 4px; }
.text-link:hover { color: var(--accent); }
.rates-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.rates-foot p { font-size: var(--fs-sm); color: var(--text-muted); }

/* Clases: tres pasos y el precio por persona según cuántos sois en pista. */
.class-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 36px; padding: 0; list-style: none; counter-reset: step; }
.class-steps li { display: flex; align-items: flex-start; gap: 16px; padding: 20px; background: var(--bg); border: 2px solid var(--line); border-radius: var(--radius-lg); counter-increment: step; }
.class-steps li::before { content: counter(step); font-family: var(--display); font-size: 3.5rem; font-weight: 900; line-height: .85; color: var(--accent); }
.class-steps p { line-height: 1.5; }
.class-prices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; margin: 0; padding: 0; list-style: none; background: var(--line); border: 2px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.class-prices li { display: flex; flex-direction: column; gap: 10px; padding: 26px 24px; background: var(--bg); }
.class-people { font-family: var(--display); font-size: clamp(4rem, 7.5vw, 6rem); font-weight: 900; line-height: .85; color: var(--accent); }
.class-name { font-size: var(--fs-sm); color: var(--text-soft); }
.class-price { font-family: var(--display); font-size: 2.75rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.class-detail { font-size: var(--fs-xs); color: var(--text-muted); }
.classes-foot { margin-top: 36px; font-size: var(--fs-sm); color: var(--text-soft); }
.tennis-hint a { font-weight: 700; text-underline-offset: 4px; }
.tennis-hint a:hover { color: var(--accent); }

/* Carta plegable sin JavaScript: todas las categorías usan el mismo diseño. */
.menu-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; align-items: start; }
.menu-category { border-top: 1px solid var(--line); }
.menu-category summary { display: flex; flex-wrap: wrap; justify-content: space-between; column-gap: 12px; row-gap: 2px; align-items: baseline; padding: 18px 30px 18px 0; position: relative; cursor: pointer; list-style: none; }
.menu-category summary::-webkit-details-marker { display: none; }
.menu-category summary::after { content: '+'; position: absolute; right: 2px; top: 18px; font-size: 1.625rem; font-weight: 300; line-height: 1.1; }
.menu-category[open] summary::after { content: '−'; }
.menu-category summary:hover h3 { color: var(--accent); }
.menu-summary { font-family: var(--display); font-size: var(--fs-md); font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.menu-preview { flex-basis: 100%; font-size: var(--fs-sm); color: var(--text-muted); }
.menu-category[open] .menu-preview { display: none; }
.portion-labels { display: grid; font-size: var(--fs-xs); color: var(--text-muted); }
.portion-labels > span { display: flex; justify-content: flex-end; gap: 34px; padding: 4px 2px 6px 0; }
.menu-items { margin: 0 0 16px; }
.menu-item { display: grid; grid-template-columns: 1fr 76px; gap: 12px; padding-block: 9px; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.menu-item.has-half { grid-template-columns: 1fr 76px 56px; }
.menu-item dt { font-weight: 600; }
.menu-item dt small { display: block; font-size: var(--fs-xs); font-weight: 400; color: var(--text-muted); }
.menu-item dd { margin: 0; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.menu-item dd + dd { color: var(--text-muted); }
.menu-note { margin-bottom: 18px; font-size: var(--fs-xs); color: var(--text-muted); }
/* Colaboradores */
.collaborator-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.collaborator-card { display: flex; flex-direction: column; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.collaborator-photo, .collaborator-placeholder { display: block; width: 100%; height: 220px; object-fit: cover; background: var(--deep); }
.collaborator-placeholder { display: grid; place-items: center; font-family: var(--display); font-size: 5rem; font-weight: 900; color: var(--text-muted); }
.collaborator-body { display: grid; gap: 10px; align-content: start; padding: 28px; overflow-wrap: anywhere; }
.collaborator-specialty { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.collaborator-body h3 { font-size: 1.625rem; }
.collaborator-body > p:not(.collaborator-specialty) { font-size: var(--fs-sm); line-height: 1.55; color: var(--text-soft); }
.collaborator-prices { display: grid; gap: 6px; padding: 14px 16px; background: var(--bg); border-radius: 8px; }
.collaborator-prices h4 { font-size: var(--fs-xs); font-weight: 700; }
.collaborator-prices p { font-size: var(--fs-sm); }
.collaborator-links { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.collaborator-links a { text-underline-offset: 4px; }
.collaborator-links a:hover { color: var(--accent); }
.collaborator-empty { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; padding-block: 28px; border-block: 1px solid var(--line); }
.collaborator-empty div { display: grid; gap: 6px; }
.collaborator-empty p { color: var(--text-soft); }

/* Contacto */
.contact-section { padding-block: 88px; background: var(--deep); border-top: 1px solid var(--line); }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.contact-intro { display: grid; gap: 20px; justify-items: start; }
.contact-intro > p { max-width: 34ch; font-size: var(--fs-md); line-height: 1.5; color: var(--text-soft); }
.contact-address { font-style: normal; font-size: var(--fs-lg); }
.contact-list { margin: 0; border-bottom: 1px solid var(--line); }
.contact-row { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 20px; padding-block: 18px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.contact-row dt { font-size: var(--fs-sm); color: var(--text-muted); }
.contact-row dd { margin: 0; font-size: var(--fs-lg); text-align: right; }
.contact-row a { text-decoration: none; }
.contact-row a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 5px; }
.contact-phone { font-family: var(--display); font-size: clamp(2.25rem, 4vw, 3rem); font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.contact-pending { font-size: var(--fs-sm); color: var(--text-soft); }

/* Pie */
.site-footer { padding-block: 26px; background: var(--deep); border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--text-muted); }
.footer-layout { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px 40px; }
.footer-brand strong { display: block; color: var(--text); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-nav a { text-decoration: none; }
.footer-staff { color: var(--text-muted); text-underline-offset: 4px; }

/* Tablet */
@media (max-width: 1100px) {
    :root { --gutter: 32px; --section-space: 80px; }
    .site-nav { gap: 16px; }
    .hero { gap: 36px; }
    .rates-layout { grid-template-columns: 1fr; gap: 32px; }
    .contact-layout { gap: 48px; }
    .menu-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .class-prices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Cabecera compacta: por debajo de 1160px el nombre, el menú y el selector de idioma ya no caben en una fila. */
@media (max-width: 1160px) {
    html { scroll-padding-top: 130px; }
    .site-header { flex-wrap: wrap; gap: 12px; padding-bottom: 0; }
    .site-nav { order: 3; width: 100%; justify-content: space-between; gap: 12px; padding-block: 2px; border-top: 1px solid var(--line); overflow-x: auto; }
    .site-header > .lang-switch { order: 4; width: 100%; padding-block: 6px 10px; }
    /* Con JavaScript, el menú se pliega tras el botón Menú. */
    .js-nav { scroll-padding-top: 90px; }
    .js-nav .site-header { padding-bottom: 14px; }
    .js-nav .nav-toggle { display: inline-flex; }
    .js-nav .site-nav, .js-nav .site-header > .lang-switch { display: none; }
    .js-nav .nav-open > .lang-switch { display: flex; padding-block: 14px 2px; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
    .js-nav .nav-open .site-nav { display: flex; flex-direction: column; gap: 0; padding-block: 4px 0; overflow: visible; font-size: var(--fs-base); }
    .js-nav .nav-open .site-nav a { padding-block: 14px; border-bottom: 1px solid var(--line); }
    .js-nav .nav-open .site-nav a:last-child { border-bottom: 0; padding-bottom: 2px; }
}

@media (max-width: 860px) {
    :root { --section-space: 64px; }
    .hero { grid-template-columns: 1fr; padding-block: 56px 64px; }
    .hero-description { max-width: none; }
    .contact-layout { grid-template-columns: 1fr; }
    .section-head-split { flex-direction: column; align-items: start; }
    .class-steps { grid-template-columns: 1fr; }
    .collaborator-grid { grid-template-columns: 1fr; }
    .news-item { flex-wrap: wrap; gap: 20px 28px; }
    .news-body { flex-basis: calc(100% - 140px); }
}

/* Móvil */
@media (max-width: 580px) {
    :root { --gutter: 16px; --section-space: 56px; }
    .header-booking { display: none; }
    /* El nombre baja a dos líneas antes que empujar el botón Menú a otra fila. */
    .brand { flex: 1 1 0; min-width: 0; font-size: var(--fs-sm); line-height: 1.25; }
    .hero { padding-block: 40px 48px; gap: 32px; }
    .hero-copy { gap: 22px; }
    .hero-actions, .hero-actions .button { width: 100%; }
    .scoreboard-head { padding-inline: 16px; }
    .scoreboard-grid > div { padding: 18px 16px; }
    .news-date { min-width: 84px; }
    .news-day { font-size: 3rem; }
    .news-body { flex-basis: 100%; }
    .news-item > .button { width: 100%; }
    .tennis-card { flex-direction: column; align-items: flex-start; }
    .tennis-links { align-items: flex-start; }
    .hours-list div, .hours-note { padding-inline: 18px; }
    .menu-list { grid-template-columns: minmax(0, 1fr); }
    .menu-item.has-half { grid-template-columns: 1fr 68px 52px; }
    .class-prices li { padding: 20px 16px; }
    .class-price { font-size: 2.25rem; }
    .collaborator-body { padding: 22px; }
    .contact-row { flex-direction: column; gap: 2px; }
    .contact-row dd { text-align: left; }
    .footer-layout { flex-direction: column; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .button, .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { transition: none; }
}
