/* =========================================================
   SPORTIA — Estilos (mobile-first)
   ========================================================= */
:root {
  --navy: #0f2a44; --navy-2: #16324a; --navy-3: #1d4466;
  --lime: #c6f432; --lime-2: #b3e01e; --lime-d: #6f9300;
  --soft: #f3f6f9; --line: #e3e8ee; --ink: #16263a; --muted: #6b7a8c;
  --radius: 16px; --shadow: 0 6px 24px rgba(15, 42, 68, .08);
  --bs-body-font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --bs-body-color: var(--ink); --bs-link-color: #1f6fb2; --bs-link-hover-color: var(--navy);
}
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--bs-body-font-family); color: var(--ink); background: #fff; }
a { text-decoration: none; }
.fw-800 { font-weight: 800; letter-spacing: -.02em; }
.min-w-0 { min-width: 0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.text-lime { color: var(--lime) !important; }
.text-lime-d { color: var(--lime-d) !important; }
.bg-navy { background: var(--navy) !important; color: #fff; }
.btn { font-weight: 600; }
.btn-lime { --bs-btn-bg: var(--lime); --bs-btn-border-color: var(--lime); --bs-btn-color: var(--navy); --bs-btn-hover-bg: var(--lime-2); --bs-btn-hover-border-color: var(--lime-2); --bs-btn-hover-color: var(--navy); --bs-btn-active-bg: var(--lime-2); --bs-btn-active-color: var(--navy); --bs-btn-disabled-bg: var(--lime); --bs-btn-disabled-color: var(--navy); }
.btn-navy { --bs-btn-bg: var(--navy); --bs-btn-border-color: var(--navy); --bs-btn-color: #fff; --bs-btn-hover-bg: var(--navy-3); --bs-btn-hover-border-color: var(--navy-3); --bs-btn-hover-color: #fff; --bs-btn-active-bg: var(--navy-3); --bs-btn-active-color: #fff; }
.btn-icon { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 0; font-size: 1.15rem; }
.btn-icon:hover { background: var(--soft); }
.brand-word { font-weight: 800; letter-spacing: -.03em; font-size: 1.3rem; }
.form-control, .form-select { border-radius: 12px; border-color: #d5dde6; }
.form-control:focus, .form-select:focus { border-color: var(--lime-d); box-shadow: 0 0 0 .2rem rgba(198, 244, 50, .35); }
.form-check-input:checked { background-color: var(--navy); border-color: var(--navy); }
.input-group > .form-control, .input-group > .form-select, .input-group > .btn, .input-group > .input-group-text { border-radius: 12px; }
.input-group > :not(:first-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.input-group > :not(:last-child):not(.dropdown-menu) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
@media (max-width: 767.98px) { .form-control, .form-select { font-size: 16px; } } /* evita zoom en iOS */

/* ---------- Encabezado público (estilo Tu Lugar) ---------- */
.site-header { background: var(--navy); box-shadow: 0 2px 16px rgba(0, 0, 0, .15); z-index: 1030; }
.site-header .navbar-brand { color: #fff; }
.site-header .brand-word { color: #fff; }
.site-header .nav-link { color: rgba(255, 255, 255, .85); font-weight: 600; border-radius: 10px; padding: .5rem .7rem !important; white-space: nowrap; }
.site-header .nav-link:hover, .site-header .nav-link.show { color: #fff; background: rgba(255, 255, 255, .08); }
.dropdown-mega .mega { border: 0; border-radius: 18px; box-shadow: 0 20px 50px rgba(0, 0, 0, .18); min-width: 560px; margin-top: .6rem !important; }
.dropdown-mega .mega-sm { min-width: 320px; }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.mega-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; color: var(--ink); }
.mega-item:hover { background: var(--soft); color: var(--ink); }
.mega-item > i { font-size: 1.3rem; color: var(--navy); background: rgba(198, 244, 50, .5); width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.mega-item b { display: block; font-size: .95rem; }
.mega-item small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.3; }
.flag { width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.flag-ar { background: linear-gradient(#74acdf 0 33%, #fff 33% 66%, #74acdf 66%); position: relative; }
.flag-ar::after { content: ''; position: absolute; inset: 0; margin: auto; width: 10px; height: 10px; border-radius: 50%; background: #f6b40e; }
.flag-br { background: #009c3b; position: relative; overflow: hidden; }
.flag-br::before { content: ''; position: absolute; inset: 8px 4px; background: #ffdf00; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.flag-br::after { content: ''; position: absolute; inset: 0; margin: auto; width: 13px; height: 13px; border-radius: 50%; background: #002776; }
.lang-switch { display: inline-flex; background: rgba(255, 255, 255, .1); border-radius: 99px; padding: 3px; }
.lang-switch a { color: rgba(255, 255, 255, .8); font-weight: 700; font-size: .8rem; padding: .3rem .7rem; border-radius: 99px; }
.lang-switch a.active { background: var(--lime); color: var(--navy); }
.lang-sm a { padding: .2rem .55rem; font-size: .75rem; }
.panel .lang-switch { background: var(--soft); }
.panel .lang-switch a { color: var(--muted); }
.menu-movil { background: var(--navy); color: #fff; width: min(380px, 92vw) !important; }
.menu-movil .mega-item { color: #fff; }
.menu-movil .mega-item:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.menu-movil .mega-item small { color: rgba(255, 255, 255, .6); }
.menu-movil .mega-item > i { background: rgba(198, 244, 50, .15); color: var(--lime); }
.menu-group-title { text-transform: uppercase; font-size: .7rem; letter-spacing: .1em; font-weight: 700; color: var(--lime); margin: 18px 0 6px 12px; }

/* ---------- Landing ---------- */
.hero { background: radial-gradient(1200px 500px at 85% 10%, rgba(198, 244, 50, .16), transparent 60%), linear-gradient(160deg, var(--navy) 0%, #0b1f33 100%); color: #fff; padding: 56px 0 72px; overflow: hidden; }
.hero h1 .hl { color: var(--lime); }
.hero-sub { color: rgba(255, 255, 255, .78); }
.pill-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(198, 244, 50, .14); color: var(--lime); border: 1px solid rgba(198, 244, 50, .35); border-radius: 99px; padding: 6px 14px; font-size: .82rem; font-weight: 700; }
.hero-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.hero-checks li { display: flex; gap: 8px; align-items: flex-start; color: rgba(255, 255, 255, .9); }
.hero-checks i { color: var(--lime); }
.phone-mock { width: 300px; max-width: 86vw; background: #f5f7fa; border-radius: 40px; padding: 18px 14px 14px; box-shadow: 0 0 0 10px #0b1a2b, 0 40px 80px rgba(0, 0, 0, .45); position: relative; color: var(--ink); transform: rotate(-2deg); }
.phone-notch { width: 90px; height: 22px; background: #0b1a2b; border-radius: 0 0 14px 14px; position: absolute; top: 0; left: 50%; transform: translateX(-50%); }
.pm-top { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; margin: 10px 4px 10px; }
.pm-top span { color: var(--muted); }
.pm-tabs { display: flex; gap: 6px; margin-bottom: 10px; overflow: hidden; }
.pm-tabs span { font-size: .7rem; background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 4px 8px; white-space: nowrap; }
.pm-tabs .on { background: var(--navy); color: #fff; border-color: var(--navy); }
.pm-slot { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 10px 12px; margin-bottom: 7px; font-size: .8rem; border-left: 4px solid transparent; }
.pm-slot b { width: 42px; }
.pm-slot span { flex: 1; }
.pm-slot.busy { border-left-color: #22a06b; }
.pm-slot.fixed { border-left-color: #3b82f6; }
.pm-slot.free { background: transparent; border: 1.5px dashed #c9d3de; color: var(--muted); }
.pm-slot em { font-style: normal; font-size: .65rem; font-weight: 700; padding: 3px 7px; border-radius: 99px; }
.pm-slot .ok { background: #dcfce7; color: #166534; }
.pm-slot .fx { background: #dbeafe; color: #1e40af; }
.pm-slot .pd { background: #fef3c7; color: #92400e; }
.pm-nav { display: flex; justify-content: space-around; align-items: center; background: #fff; border-radius: 18px; padding: 8px; margin-top: 10px; color: var(--muted); font-size: 1.1rem; }
.pm-plus { width: 40px; height: 40px; border-radius: 50%; background: var(--lime); color: var(--navy); display: grid; place-items: center; }
.vp-card { padding: 18px 12px; border-radius: var(--radius); }
.vp-card i { font-size: 1.6rem; color: var(--navy); background: rgba(198, 244, 50, .55); width: 52px; height: 52px; display: inline-grid; place-items: center; border-radius: 16px; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--navy); color: #fff; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 32px; }
.kicker { display: inline-block; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--lime-d); margin-bottom: 6px; }
.kicker-lime { color: var(--lime); }
.feature-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: transform .2s, box-shadow .2s; }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-ic { width: 48px; height: 48px; border-radius: 14px; background: var(--navy); color: var(--lime); display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 14px; }
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li { position: relative; padding-left: 22px; margin-bottom: 6px; font-size: .92rem; color: #3b4b5e; }
.feature-list li::before { content: '\F26E'; font-family: 'bootstrap-icons'; position: absolute; left: 0; color: var(--lime-d); }
.sport-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sport-chip { background: var(--soft); border: 1px solid var(--line); border-radius: 99px; padding: 7px 14px; font-weight: 600; font-size: .9rem; }
.chip-dark { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .2); color: #fff; }
.url-demo { display: inline-flex; gap: 8px; align-items: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); border-radius: 12px; padding: 10px 16px; font-family: ui-monospace, monospace; font-size: .95rem; word-break: break-all; }
.url-demo b { color: var(--lime); }
.portal-mock { background: #fff; color: var(--ink); border-radius: 22px; overflow: hidden; max-width: 360px; margin: auto; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.pmk-cover { height: 110px; background: linear-gradient(135deg, #1d4466, #0f2a44 60%), #0f2a44; position: relative; }
.pmk-cover::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 46px, rgba(255, 255, 255, .08) 46px 48px); }
.pmk-logo { position: absolute; left: 16px; bottom: -22px; width: 56px; height: 56px; border-radius: 16px; background: var(--lime); color: var(--navy); font-weight: 800; display: grid; place-items: center; z-index: 1; border: 3px solid #fff; }
.portal-mock .p-3 { padding-top: 32px !important; }
.pmk-days, .pmk-hours { display: flex; gap: 6px; }
.pmk-days span, .pmk-hours span { flex: 1; text-align: center; padding: 8px 0; border-radius: 12px; border: 1px solid var(--line); font-size: .8rem; font-weight: 600; }
.pmk-days .on, .pmk-hours .on { background: var(--navy); color: #fff; border-color: var(--navy); }
.step-card { background: var(--soft); border-radius: var(--radius); padding: 24px; }
.step-n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--lime); color: var(--navy); font-weight: 800; margin-bottom: 12px; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px; position: relative; display: flex; flex-direction: column; }
.price-card .btn { margin-top: auto; }
.price-card.featured { border: 2px solid var(--navy); box-shadow: var(--shadow); }
.price-tag { position: absolute; top: -12px; right: 20px; background: var(--lime); color: var(--navy); font-weight: 800; font-size: .72rem; padding: 4px 12px; border-radius: 99px; text-transform: uppercase; letter-spacing: .05em; }
.price { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; }
.price small { font-size: .9rem; color: var(--muted); font-weight: 600; }
.cta-final { background: linear-gradient(135deg, var(--navy), var(--navy-3)); }
.accordion-button:not(.collapsed) { background: var(--soft); color: var(--ink); box-shadow: none; }
.accordion-button:focus { box-shadow: none; }
.accordion-item { border-radius: 14px !important; overflow: hidden; margin-bottom: 8px; border: 1px solid var(--line); }
.site-footer { background: #0b1f33; color: #fff; }
.site-footer a { display: block; color: rgba(255, 255, 255, .7); font-size: .9rem; padding: 3px 0; }
.site-footer a:hover { color: var(--lime); }
.site-footer .btn { display: inline-flex; color: #fff; }
.footer-title { font-weight: 700; margin-bottom: 8px; color: #fff; }
.cookie-banner { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 1080; background: #0b1f33; color: #fff; border-radius: 16px; padding: 14px 16px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; box-shadow: 0 12px 40px rgba(0, 0, 0, .3); max-width: 760px; margin: 0 auto; }

/* ---------- Ingreso / registro ---------- */
.auth-wrap { background: linear-gradient(160deg, var(--navy), #0b1f33); min-height: calc(100vh - 60px); }
.auth-card { background: #fff; border-radius: 22px; padding: 26px 22px; box-shadow: 0 30px 60px rgba(0, 0, 0, .25); }

/* ---------- Portal del club ---------- */
.club-bar { background: var(--navy); color: #fff; z-index: 1030; }
.club-logo-sm { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.club-ini { background: var(--lime); color: var(--navy); font-weight: 800; display: inline-grid; place-items: center; font-size: .9rem; }
.club-hero { --cover: none; background: linear-gradient(180deg, rgba(15, 42, 68, .35), rgba(15, 42, 68, .92)), var(--cover), linear-gradient(135deg, var(--navy-3), var(--navy)); background-size: cover; background-position: center; padding: 64px 0 24px; }
.club-logo-lg { width: 76px; height: 76px; border-radius: 20px; object-fit: cover; border: 3px solid #fff; flex-shrink: 0; font-size: 1.5rem; }
.booking-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: var(--shadow); }
.bk-step + .bk-step { margin-top: 20px; }
.bk-label { font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.bk-label span { width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: var(--lime); display: grid; place-items: center; font-size: .75rem; }
.hscroll { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; flex-shrink: 0; }
.space-opt { text-align: left; background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 12px 14px; min-width: 170px; max-width: 220px; display: flex; flex-direction: column; gap: 2px; color: var(--ink); }
.space-opt small { color: var(--muted); font-size: .78rem; }
.space-opt .so-ic { font-size: 1.4rem; }
.space-opt .so-price { color: var(--lime-d); font-weight: 700; }
.space-opt.on { border-color: var(--navy); background: #f2f8e3; box-shadow: inset 0 0 0 1px var(--navy); }
.day-opt { width: 62px; padding: 8px 0; border-radius: 14px; border: 2px solid var(--line); background: #fff; display: flex; flex-direction: column; align-items: center; color: var(--ink); line-height: 1.15; }
.day-opt b { font-size: 1.25rem; }
.day-opt small { font-size: .7rem; color: var(--muted); text-transform: capitalize; }
.day-opt.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.day-opt.on small { color: var(--lime); }
.chip-opt { border: 2px solid var(--line); background: #fff; border-radius: 99px; padding: 6px 16px; font-weight: 600; color: var(--ink); font-size: .9rem; white-space: nowrap; }
.chip-opt.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.slot-opt { border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: 9px 4px; display: flex; flex-direction: column; align-items: center; color: var(--ink); }
.slot-opt b { font-size: 1.05rem; }
.slot-opt small { font-size: .72rem; color: var(--muted); }
.slot-opt:hover { border-color: var(--navy); }
.slot-opt.on { background: var(--lime); border-color: var(--lime); }
.slot-opt.on small { color: var(--navy); }
.empty-slots { grid-column: 1/-1; text-align: center; color: var(--muted); padding: 18px; background: var(--soft); border-radius: 14px; }
.bk-summary { background: var(--soft); border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; font-size: .9rem; display: grid; gap: 4px; }
.bk-sticky { position: fixed; left: 0; right: 0; bottom: 0; background: var(--navy); color: #fff; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); display: flex; justify-content: space-between; align-items: center; z-index: 1040; box-shadow: 0 -8px 24px rgba(0, 0, 0, .2); }
.bk-sticky[hidden] { display: none; }
.class-card, .info-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.club-footer { background: var(--soft); color: var(--muted); }
.powered { color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.powered b { color: var(--navy); }
.confirm-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 28px 20px; box-shadow: var(--shadow); }
.confirm-ic { width: 72px; height: 72px; border-radius: 50%; background: var(--lime); color: var(--navy); display: grid; place-items: center; font-size: 2.4rem; margin: auto; }
.confirm-detail { background: var(--soft); border-radius: 14px; padding: 6px 16px; }
.confirm-detail > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.confirm-detail > div:last-child { border-bottom: 0; }
.confirm-detail span { color: var(--muted); }
.confirm-detail b { text-align: right; }

/* ---------- Panel ---------- */
body.panel { background: var(--soft); }
.panel-wrap { display: flex; min-height: 100vh; }
.panel-side { width: 248px; flex-shrink: 0; background: var(--navy); color: #fff; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 18px 12px; overflow-y: auto; }
.side-brand { display: flex; align-items: center; gap: 8px; color: #fff; padding: 0 10px; }
.side-club { margin: 14px 10px 12px; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .07); font-weight: 700; font-size: .9rem; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a, .side-foot a { color: rgba(255, 255, 255, .75); padding: 9px 12px; border-radius: 12px; font-weight: 600; font-size: .92rem; display: flex; gap: 10px; align-items: center; }
.side-nav a:hover, .side-foot a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.side-nav a.active { background: var(--lime); color: var(--navy); }
.side-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .1); }
.side-foot .lang-switch { background: rgba(255, 255, 255, .1); margin-left: 12px; }
.side-foot .lang-switch a { color: rgba(255, 255, 255, .8); padding: .2rem .55rem; }
.side-foot .lang-switch a.active { color: var(--navy); }
.panel-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.panel-top { position: sticky; top: 0; z-index: 1020; background: rgba(243, 246, 249, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; border-bottom: 1px solid var(--line); }
.pt-club { font-size: .72rem; color: var(--muted); font-weight: 600; }
.pt-title { font-size: 1.2rem; font-weight: 800; margin: 0; letter-spacing: -.02em; }
.panel-content { padding: 14px 12px calc(96px + env(safe-area-inset-bottom)); max-width: 1320px; width: 100%; }
@media (min-width: 992px) { .panel-content { padding: 20px 24px 40px; } .panel-top { padding: 14px 24px; } }
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040; background: #fff; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(15, 42, 68, .06); }
.bottom-nav a, .bottom-nav > button { background: none; border: 0; display: flex; flex-direction: column; align-items: center; gap: 1px; color: var(--muted); font-size: .66rem; font-weight: 600; padding: 4px 0; }
.bottom-nav i { font-size: 1.3rem; }
.bottom-nav .on { color: var(--navy); }
.bottom-nav .on i { color: var(--navy); }
.bottom-nav .bn-fab { width: 56px; height: 56px; border-radius: 50%; background: var(--lime); color: var(--navy); justify-self: center; margin-top: -26px; box-shadow: 0 8px 20px rgba(111, 147, 0, .45); display: grid; place-items: center; padding: 0; }
.bottom-nav .bn-fab i { font-size: 1.6rem; }
.panel-mas { height: auto !important; max-height: 80vh; border-radius: 22px 22px 0 0; }
.mas-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding-bottom: env(safe-area-inset-bottom); }
.mas-grid a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: 14px; background: var(--soft); color: var(--ink); font-size: .72rem; font-weight: 600; text-align: center; }
.mas-grid i { font-size: 1.35rem; color: var(--navy); }
.kpi { background: #fff; border-radius: var(--radius); padding: 14px 16px; position: relative; height: 100%; border: 1px solid var(--line); }
.kpi span { display: block; font-size: .75rem; color: var(--muted); font-weight: 600; }
.kpi b { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; display: block; line-height: 1.2; }
.kpi > i { position: absolute; right: 14px; top: 14px; color: var(--lime-d); font-size: 1.2rem; }
.kpi-bar { height: 8px; background: #e7edf3; border-radius: 99px; overflow: hidden; margin-top: 6px; }
.kpi-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--lime-d), var(--lime)); border-radius: 99px; }
.card-p { background: #fff; border-radius: var(--radius); padding: 16px; border: 1px solid var(--line); }
.card-p.p-0 { overflow: hidden; }
.card-p-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
details.card-p summary { cursor: pointer; list-style: none; }
details.card-p summary::-webkit-details-marker { display: none; }
.res-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--ink); background: #fff; }
.res-row:last-child { border-bottom: 0; }
a.res-row:hover { background: #fafcfd; color: var(--ink); }
.card-p:not(.p-0) .res-row { padding: 10px 4px; }
.rr-time { width: 52px; flex-shrink: 0; display: flex; flex-direction: column; line-height: 1.15; }
.rr-time b { font-size: 1rem; }
.rr-time small { color: var(--muted); font-size: .72rem; }
.avatar { width: 38px; height: 38px; border-radius: 12px; background: var(--navy); color: var(--lime); display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }
.avatar-lg { width: 56px; height: 56px; border-radius: 16px; font-size: 1.4rem; }
.big-ic { width: 46px; height: 46px; border-radius: 14px; background: var(--soft); display: grid; place-items: center; font-size: 1.5rem; flex-shrink: 0; }
.check-row { display: flex; gap: 10px; align-items: center; padding: 8px 4px; color: var(--ink); border-bottom: 1px dashed var(--line); font-size: .92rem; }
.check-row i { color: #c0cad5; }
.check-row.done { color: var(--muted); text-decoration: line-through; }
.check-row.done i { color: #22a06b; }
.list-date { background: var(--soft); padding: 6px 14px; font-size: .75rem; font-weight: 700; color: var(--muted); position: sticky; top: 60px; z-index: 1; }
.empty-state { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty-state i { font-size: 2.4rem; display: block; margin-bottom: 8px; color: #b6c2cf; }
.filter-bar { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-bottom: 12px; }
.filter-bar > * { min-width: 0; }
.filter-bar input[type=search] { grid-column: 1 / -1; }
@media (min-width: 768px) { .filter-bar { display: flex; flex-wrap: wrap; } .filter-bar input[type=search] { flex: 1 1 220px; } .filter-bar > :not([type=search]) { flex: 0 1 auto; width: auto; } }
@media (max-width: 767.98px) { .filter-bar:has(> :nth-child(5)) { grid-template-columns: 1fr 1fr; } .filter-bar .btn-navy { grid-column: 1 / -1; } }
.estado-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.mini-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; }
.mini-stats > div { background: var(--soft); border-radius: 12px; padding: 8px 2px; }
.mini-stats b { display: block; font-size: 1.1rem; }
.mini-stats small { font-size: .68rem; color: var(--muted); }
@media (max-width: 400px) { .mini-stats { grid-template-columns: repeat(2, 1fr); } }
.date-pill { display: flex; flex-direction: column; align-items: center; padding: 6px 10px; border-radius: 12px; background: var(--soft); color: var(--ink); font-size: .78rem; border: 1px solid var(--line); line-height: 1.2; }
.date-pill small { color: #22a06b; font-weight: 700; }
.date-pill.full small { color: #dc3545; }
.stat-row { margin-bottom: 14px; }
.hbars { display: flex; align-items: flex-end; gap: 3px; height: 150px; }
.hbar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.hbar i { display: block; width: 100%; background: linear-gradient(180deg, var(--lime), var(--lime-d)); border-radius: 6px 6px 2px 2px; min-height: 2px; }
.hbar small { font-size: .6rem; color: var(--muted); margin-top: 4px; }
.img-ph { aspect-ratio: 1; background: var(--soft); border-radius: 12px; display: grid; place-items: center; font-size: .7rem; color: var(--muted); }
.install-toast { position: fixed; left: 12px; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 1050; background: #fff; border-radius: 16px; padding: 12px; display: flex; align-items: center; gap: 10px; box-shadow: 0 12px 40px rgba(15, 42, 68, .25); max-width: 480px; margin: auto; }
.install-toast img { border-radius: 10px; }
@media (min-width: 992px) { .install-toast { bottom: 20px; right: 20px; left: auto; } }
.sticky-save { position: sticky; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 5; box-shadow: 0 8px 24px rgba(111, 147, 0, .35); }
@media (min-width: 992px) { .sticky-save { bottom: 16px; } }
.share-card { background: linear-gradient(135deg, #fff, #f6fbe9); }
.modal-content { border-radius: 20px; border: 0; }
@media (max-width: 575.98px) { .modal-fullscreen-sm-down .modal-content { border-radius: 0; } .modal-fullscreen-sm-down .modal-footer { padding-bottom: calc(12px + env(safe-area-inset-bottom)); } }
.badge.bg-navy { background: var(--navy) !important; }

/* ---------- Agenda ---------- */
.agenda-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.agenda-date { flex: 1; position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px 12px; display: flex; flex-direction: column; align-items: center; cursor: pointer; line-height: 1.2; }
.agenda-date b { font-size: 1rem; }
.agenda-date small { color: var(--muted); font-size: .75rem; }
.agenda-date input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.agenda-tabs { margin-bottom: 10px; }
.agenda-cols { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
@media (max-width: 991.98px) { .agenda-cols { grid-auto-columns: calc(100% - 28px); margin: 0 -12px; padding: 0 12px 8px; scroll-padding: 0 12px; } }
.agenda-col { scroll-snap-align: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); align-self: start; }
.ac-head { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #fbfcfd; position: sticky; top: 68px; z-index: 2; border-radius: var(--radius) var(--radius) 0 0; }
@media (min-width: 992px) { .ac-head { top: 60px; } }
.ac-body { padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.slot { display: flex; align-items: center; gap: 10px; border-radius: 12px; padding: 9px 10px; width: 100%; text-align: left; color: var(--ink); min-height: 48px; }
.sl-time { width: 46px; flex-shrink: 0; font-weight: 700; font-size: .92rem; display: flex; flex-direction: column; line-height: 1.15; }
.sl-time small { color: var(--muted); font-weight: 500; font-size: .7rem; }
.sl-info { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: .9rem; }
.sl-info small { color: var(--muted); font-size: .75rem; }
.sl-tags { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.slot-free { background: transparent; border: 1.5px dashed #cfd8e2; }
.slot-free:hover { border-color: var(--lime-d); background: #f7fbe9; }
.slot-free .sl-add { color: var(--lime-d); font-size: 1.2rem; }
.slot-free.past { opacity: .45; }
.slot-res { background: #f0faf4; border: 1px solid #cfeedd; border-left: 5px solid #22a06b; min-height: calc(var(--rows, 1) * 44px); }
.slot-res:hover { color: var(--ink); filter: brightness(.98); }
.slot-res.est-pendiente { background: #fffaeb; border-color: #fde7a8; border-left-color: #f59e0b; }
.slot-res.est-ausente { background: #fff1f1; border-color: #fcd0d0; border-left-color: #dc3545; }
.slot-res.est-completada { background: #eef4ff; border-color: #d3e1fb; border-left-color: #3b82f6; }
.slot-blk { background: repeating-linear-gradient(45deg, #f3f5f7 0 10px, #eceff3 10px 20px); color: var(--muted); }
.pay { font-style: normal; font-size: .64rem; font-weight: 700; padding: 2px 7px; border-radius: 99px; }
.pay-ok { background: #dcfce7; color: #166534; }
.pay-part { background: #fef3c7; color: #92400e; }
.pay-debe { background: #fee2e2; color: #991b1b; }

/* ---------- Ajustes responsive ---------- */
@media (min-width: 992px) {
  .hero { padding: 88px 0 100px; }
  .booking-card { padding: 26px; }
}
@media (max-width: 1199.98px) {
  .dropdown-mega .mega { min-width: 0; }
}
@media (max-width: 575.98px) {
  .hero h1 { font-size: 2rem; }
  .price { font-size: 1.7rem; }
  .auth-card { padding: 22px 16px; border-radius: 18px; }
  .club-hero { padding-top: 40px; }
  .club-logo-lg { width: 60px; height: 60px; border-radius: 16px; }
  .kpi { padding: 12px; }
  .kpi b { font-size: 1.35rem; }
  .kpi b.fs-5 { font-size: 1.05rem !important; }
  .page-club main { padding-bottom: 80px; }
}

/* ---------- Fase 2: torneos, Buscá jugadores, pagos ---------- */
.bg-lime-new { background: var(--lime) !important; color: var(--navy) !important; }
.torneo-hero { padding: 40px 0 24px; }
.champion { display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg, #fff8db, #fff); border: 1px solid #f5d97a; border-radius: 16px; padding: 14px 18px; }
.champion > i { font-size: 2rem; color: #d4a106; }
.champion small { display: block; color: #8a6d00; font-weight: 700; text-transform: uppercase; font-size: .7rem; letter-spacing: .08em; }
.champion b { font-size: 1.2rem; }
.tabla-pos { font-size: .85rem; }
.tabla-pos th { color: var(--muted); font-weight: 600; font-size: .72rem; text-transform: uppercase; }
.tabla-pos td, .tabla-pos th { text-align: center; padding: .45rem .35rem; vertical-align: middle; }
.tabla-pos td:nth-child(2), .tabla-pos th:nth-child(2) { text-align: left; }
.tabla-pos tr.clasifica td:first-child { box-shadow: inset 3px 0 0 var(--lime-d); }
.fx-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.fx-row:last-child { border-bottom: 0; }
.fx-team { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-score { background: var(--soft); border-radius: 8px; padding: 3px 10px; font-weight: 800; min-width: 58px; text-align: center; font-size: .9rem; }
.fx-meta { grid-column: 1 / -1; text-align: center; color: var(--muted); font-size: .72rem; margin-top: -4px; }
.bracket { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.br-col { min-width: 150px; flex: 1 0 150px; display: flex; flex-direction: column; justify-content: space-around; gap: 10px; scroll-snap-align: start; }
.br-title { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); text-align: center; }
.br-match { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(15, 42, 68, .05); }
.br-team { display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; font-size: .85rem; }
.br-team + .br-team { border-top: 1px solid var(--line); }
.br-team.win { background: #f2f8e3; font-weight: 700; }
.match-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.dots { display: flex; flex-wrap: wrap; gap: 5px; }
.dots i { width: 18px; height: 18px; border-radius: 50%; border: 2px dashed #c9d3de; }
.dots i.on { background: var(--navy); border: 2px solid var(--navy); }
.bj-cta { background: #fff; border: 1.5px dashed #c9d3de; border-radius: 16px; padding: 14px 16px; }
.bj-cta summary { cursor: pointer; list-style: none; }
.bj-cta summary::-webkit-details-marker { display: none; }
.bj-cta[open] { border-style: solid; border-color: var(--lime-d); }
.pix-qr { width: 240px; max-width: 80vw; image-rendering: pixelated; border: 1px solid var(--line); border-radius: 12px; padding: 8px; background: #fff; }
.page-jugar .hero { padding: 40px 0; }
.site-header .btn { white-space: nowrap; }
@media (min-width: 1200px) and (max-width: 1399.98px) { .site-header .nav-link { padding: .5rem .5rem !important; font-size: .95rem; } }
