:root {
    --ink: #12241c;
    --muted: #4d6358;
    --line: #d7e3da;
    --paper: #f3f6f1;
    --white: #ffffff;
    --court: #0e6a49;
    --court-deep: #083528;
    --ball: #e6ff4d;
    --ball-deep: #c6e000;
    --blue: #1d4ed8;
    --shadow: 0 18px 40px rgba(12, 40, 28, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background:
        radial-gradient(circle at 90% -10%, rgba(230, 255, 77, 0.35), transparent 28%),
        linear-gradient(180deg, #f7faf6 0%, var(--paper) 220px);
    font-family: Manrope, "Avenir Next", "Segoe UI", sans-serif;
    line-height: 1.5;
}

a { color: inherit; }

img, svg { max-width: 100%; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(243, 246, 241, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(18, 36, 28, 0.08);
}

[hidden] { display: none !important; }

.header-bar,
.city-nav,
main,
.site-footer {
    width: min(1120px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    margin-inline: auto;
}

.header-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 0 10px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: Syne, Manrope, sans-serif;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.04em;
}

.logo { flex-shrink: 0; }

.header-nav {
    display: flex;
    gap: 8px;
    flex: 0 0 auto;
}

.header-link {
    text-decoration: none;
    font-weight: 800;
    padding: 8px 14px;
    border-radius: 999px;
    flex: 0 0 auto;
}

.header-link.is-on,
.header-link:hover {
    background: var(--ink);
    color: var(--ball);
}

.city-filter {
    width: 100%;
    margin: 0 0 16px;
    border: 1px solid var(--line);
    background: var(--white);
    border-radius: 999px;
    padding: 12px 16px;
    font: inherit;
    color: var(--ink);
}

.logo-mark {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fff7a8, var(--ball) 42%, var(--ball-deep));
    box-shadow: inset -3px -2px 0 rgba(18, 36, 28, 0.18);
}

.search {
    margin-left: auto;
    display: flex;
    gap: 8px;
    width: min(420px, 100%);
}

.search input {
    flex: 1 1 auto;
    min-width: 0;
    border: 1px solid var(--line);
    background: var(--white);
    border-radius: 999px;
    padding: 12px 16px;
    font: inherit;
    color: var(--ink);
}

.search input:focus,
.btn:focus-visible,
.city-nav a:focus-visible,
.filters a:focus-visible,
.text-link:focus-visible,
.club-card a:focus-visible,
.more-list a:focus-visible {
    outline: 3px solid var(--ball);
    outline-offset: 2px;
}

.search button { flex-shrink: 0; }

.search button,
.btn {
    border: 0;
    border-radius: 999px;
    background: var(--ink);
    color: var(--ball);
    font: inherit;
    font-weight: 700;
    padding: 12px 18px;
    cursor: pointer;
    text-decoration: none;
}

.btn-small { display: inline-flex; margin-top: 8px; }

.city-nav {
    display: flex;
    gap: 8px;
    min-width: 0;
    overflow-x: auto;
    padding: 0 0 12px;
    scrollbar-width: none;
}

.city-nav::-webkit-scrollbar { display: none; }

.city-nav a {
    flex: 0 0 auto;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid transparent;
}

.city-nav a.is-on {
    background: var(--ink);
    color: var(--ball);
}

.city-nav a:hover { border-color: var(--ink); }

main { padding: 28px 0 64px; }

.hero {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 28px;
    align-items: center;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent 40%),
        linear-gradient(160deg, var(--court-deep), var(--court) 55%, #14915f);
    color: white;
    border-radius: 28px;
    padding: 42px 40px;
    min-height: 420px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.hero > * { min-width: 0; }

.hero::before {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    pointer-events: none;
}

.kicker {
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--court);
}

.kicker a { color: inherit; }

h1, h2, h3 {
    font-family: Syne, Manrope, sans-serif;
    letter-spacing: -0.04em;
    line-height: 0.98;
    margin: 0;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }

.lede {
    font-size: 1.08rem;
    max-width: 38rem;
    color: var(--muted);
}

.hero .kicker { color: var(--ball); }

.hero .lede { color: rgba(255, 255, 255, 0.88); }

.hero .btn {
    background: var(--ball);
    color: var(--ink);
    display: inline-flex;
    margin-top: 8px;
}

.court-wrap { display: grid; place-items: center; }

.court { width: min(220px, 70%); filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.2)); }

.ball {
    transform-origin: center;
    animation: bounce 1.8s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(18px); }
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0 8px;
}

.stats div {
    background: var(--white);
    border-radius: 18px;
    padding: 16px 18px;
    border: 1px solid var(--line);
}

.stats strong {
    display: block;
    font-family: Syne, sans-serif;
    font-size: 1.8rem;
}

.stats span { color: var(--muted); font-size: 0.92rem; }

.section { margin-top: 42px; }

.section-head {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: end;
    margin-bottom: 18px;
}

.section-head h2 { font-size: 2rem; }

.section-head p {
    margin: 0;
    max-width: 34rem;
    color: var(--muted);
}

.city-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.city-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 180px;
    padding: 18px;
    text-decoration: none;
    background: var(--white);
    border-radius: 22px;
    border: 1px solid var(--line);
    position: relative;
    overflow: hidden;
}

.city-card::after {
    content: "";
    position: absolute;
    right: -20px;
    bottom: -30px;
    width: 90px;
    height: 140px;
    border: 2px solid rgba(14, 106, 73, 0.18);
    border-radius: 8px;
}

.city-card-lead {
    grid-column: span 2;
    background: var(--ink);
    color: white;
    border-color: var(--ink);
}

.city-card-lead::after { border-color: rgba(230, 255, 77, 0.4); }

.city-index {
    font-family: Syne, sans-serif;
    color: var(--court);
    font-weight: 800;
}

.city-card-lead .city-index,
.city-card-lead .city-meta { color: var(--ball); }

.city-card h3 { font-size: 1.55rem; margin-top: auto; }

.city-card p { margin: 0; color: var(--muted); }

.city-card-lead p { color: rgba(255, 255, 255, 0.72); }

.city-meta { font-weight: 700; font-size: 0.92rem; }

.city-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.city-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.city-chip {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 7px 12px;
    text-decoration: none;
    font-weight: 800;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.city-chip small {
    color: var(--court);
    font-weight: 800;
    font-size: 0.78rem;
}

.city-chip:hover {
    border-color: var(--court);
    background: #e7f6ee;
}

.page-hero { margin-bottom: 22px; }

.empty,
.muted { color: var(--muted); }

.page-hero h1 { margin-bottom: 12px; }

.page-hero .btn + .btn { margin-left: 8px; }

.filters {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
}

.filters a {
    text-decoration: none;
    border-radius: 999px;
    padding: 8px 14px;
    background: var(--white);
    border: 1px solid var(--line);
    font-weight: 700;
}

.filters a.is-on {
    background: var(--ink);
    color: var(--ball);
    border-color: var(--ink);
}

.club-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.club-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 230px;
}

.club-card-top { display: flex; flex-wrap: wrap; gap: 6px; }

.pill {
    font-size: 0.78rem;
    font-weight: 800;
    border-radius: 999px;
    padding: 4px 8px;
    background: #e7f6ee;
    color: var(--court-deep);
}

.pill-ball { background: var(--ball); color: var(--ink); }

.pill-ghost { background: #eef2f8; color: #1e3a5f; }

.club-card h3 { font-size: 1.35rem; }

.club-card h3 a { text-decoration: none; }

.club-where,
.club-address,
.club-price { margin: 0; }

.club-where { font-weight: 800; font-size: 0.86rem; text-transform: uppercase; letter-spacing: 0.04em; }

.club-address { color: var(--muted); }

.club-price { font-weight: 800; }

.text-link {
    margin-top: auto;
    font-weight: 800;
    text-decoration: none;
    color: var(--court);
}

.club-header { display: grid; gap: 18px; }

.fact-row {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    padding: 0;
    margin: 8px 0 0;
}

.fact-row li,
.panel {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px 16px;
}

.fact-row strong { display: block; font-size: 1.05rem; }

.fact-row span,
.facts dt { color: var(--muted); font-size: 0.85rem; }

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 18px;
}

.panel-wide { grid-column: 1 / -1; }

.panel h2 { font-size: 1.3rem; margin-bottom: 8px; }

.facts { margin: 0; }

.facts div { margin-bottom: 10px; }

.facts dd { margin: 2px 0 0; font-weight: 700; }

.service-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    background: #e7f6ee;
    border-radius: 999px;
    padding: 6px 10px;
    font-weight: 700;
    font-size: 0.92rem;
}

.more-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.more-list a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    text-decoration: none;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px 16px;
    font-weight: 800;
}

.more-list small { color: var(--muted); font-weight: 600; }

.site-footer {
    padding: 28px 0 40px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    text-align: center;
}

.footer-logo {
    color: var(--ink);
    margin-bottom: 8px;
}

.footer-logo:hover { text-decoration: none; }

.site-footer p {
    margin: 0 auto;
    max-width: 36rem;
}

.opiniones { scroll-margin-top: 84px; }

.opinion-ok {
    margin: 0 0 16px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #e7f6ee;
    color: var(--court-deep);
    font-weight: 700;
}

.opinion-score {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 14px;
    padding: 14px 16px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
}

.opinion-score strong {
    font-family: Syne, Manrope, sans-serif;
    font-size: 2rem;
    letter-spacing: -0.04em;
    line-height: 1;
}

.opinion-score > span:last-child { color: var(--muted); font-weight: 700; }

.stars { display: inline-flex; gap: 2px; color: #d5ddd8; letter-spacing: 0; }
.stars .is-on { color: #e2b000; }

.opinion-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    display: grid;
    gap: 10px;
}

.opinion-list li {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px 16px;
}

.opinion-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.opinion-top time {
    margin-left: auto;
    color: var(--muted);
    font-size: 0.85rem;
}

.opinion-list p { margin: 0; }

.opinion-form {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 22px;
    background:
        linear-gradient(160deg, rgba(230, 255, 77, 0.28), transparent 42%),
        var(--white);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 22px;
    box-shadow: var(--shadow);
}

.opinion-intro h3 {
    margin: 0 0 8px;
    font-family: Syne, Manrope, sans-serif;
    font-size: 1.7rem;
    letter-spacing: -0.04em;
}

.star-field { border: 0; margin: 0; padding: 0; }

.star-pick {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 4px;
}

.star-pick input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.star-pick label {
    cursor: pointer;
    font-size: 2.1rem;
    line-height: 1;
    color: #d5ddd8;
}

.star-pick label::before { content: "★"; }

.star-pick label:hover,
.star-pick label:hover ~ label,
.star-pick input:checked ~ label { color: #e2b000; }

.star-pick input:focus-visible + label {
    outline: 3px solid var(--ball);
    outline-offset: 2px;
    border-radius: 6px;
}

.opinion-fields { display: grid; gap: 8px; align-content: start; }

.opinion-fields label { font-weight: 800; }

.opinion-fields label span { color: var(--muted); font-weight: 600; }

.opinion-fields input,
.opinion-fields textarea,
.mod-login input {
    width: 100%;
    border: 1px solid var(--line);
    background: var(--white);
    border-radius: 16px;
    padding: 12px 14px;
    font: inherit;
    color: var(--ink);
}

.opinion-fields textarea { min-height: 120px; resize: vertical; }

.opinion-fields input:focus,
.opinion-fields textarea:focus,
.mod-login input:focus {
    outline: 3px solid var(--ball);
    outline-offset: 2px;
}

.form-error {
    margin: 0;
    color: #8a2b2b;
    font-weight: 800;
}

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

.mod-login,
.mod-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 22px;
    box-shadow: var(--shadow);
}

.mod-login {
    display: grid;
    gap: 10px;
    max-width: 420px;
}

.mod-login label { font-weight: 800; }

.mod-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.mod-bar p { margin: 0; font-weight: 800; }

.mod-bar a { font-weight: 800; color: var(--court); }

.mod-list { display: grid; gap: 12px; }

.mod-card header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}

.mod-card header a { font-weight: 800; text-decoration: none; }

.mod-card header span,
.mod-card header time { color: var(--muted); }

.mod-card header time { margin-left: auto; }

.mod-name { margin: 8px 0 0; font-weight: 800; }

.mod-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

.mod-title { margin: 28px 0 12px; font-size: 1.4rem; }

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
}

@media (max-width: 900px) {
    .hero,
    .city-grid,
    .club-grid,
    .detail-grid,
    .fact-row,
    .opinion-form {
        grid-template-columns: 1fr;
    }

    .city-card-lead { grid-column: auto; }

    .header-bar { flex-wrap: wrap; gap: 12px; }

    .logo { font-size: 1.15rem; }

    .search {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        width: 100%;
        margin-left: 0;
        min-width: 0;
    }

    .stats strong { font-size: 1.45rem; }

    .section-head { flex-direction: column; align-items: start; }

    .hero { padding: 28px 22px; min-height: 0; }

    .court { width: 140px; }
}

@media (prefers-reduced-motion: reduce) {
    .ball { animation: none; }
    .city-card:hover { transform: none; }
}
