:root {
  color-scheme: light;
  --bg: #061c18;
  --surface: #ffffff;
  --surface-soft: #e6f0ed;
  --ink: #102c27;
  --muted: #61736f;
  --line: #d7e3df;
  --blue: #006f62;
  --blue-deep: #004b43;
  --purple: #0b7a69;
  --coral: #f05b62;
  --gold: #8bcdbd;
  --green: #159b70;
  --green-soft: #e4f7ef;
  --danger: #d93f50;
  --danger-soft: #fff0f2;
  --shadow-sm: 0 8px 24px rgba(15, 67, 58, 0.08);
  --shadow-lg: 0 24px 70px rgba(15, 67, 58, 0.15);
  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 30px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { min-width: 320px; margin: 0; color: var(--ink); background: radial-gradient(circle at 8% 4%, rgba(11,122,105,.24), transparent 34rem), radial-gradient(circle at 92% 46%, rgba(0,111,98,.15), transparent 38rem), linear-gradient(155deg,#061c18,#0a2923 52%,#041512); background-attachment: fixed; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
img { display: block; max-width: 100%; }
svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
[hidden] { display: none !important; }
.staging-banner { min-height: 34px; padding: 8px 16px; display: grid; place-items: center; color: #fff; background: #003d37; font-size: 11px; font-weight: 850; letter-spacing: .03em; text-align: center; }
body[data-environment="pruebas"] .app-topbar { min-height: 70px; }

.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; padding: 10px 14px; border-radius: 10px; color: white; background: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid rgba(0, 111, 98, 0.3); outline-offset: 3px; }

.app-topbar { width: min(100% - 32px, 1160px); min-height: 76px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #f5fbf8; }
.brand-button { min-width: 0; padding: 7px 0; border: 0; display: flex; align-items: center; gap: 11px; text-align: left; background: transparent; cursor: pointer; }
.brand-button img { width: 58px; height: 48px; object-fit: contain; filter: brightness(0) invert(1); }
.brand-button > span { min-width: 0; display: grid; }
.brand-button strong { font-size: 16px; line-height: 1.15; letter-spacing: -0.02em; }
.brand-button small { margin-top: 3px; color: #a9c3bc; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.icon-action { width: 43px; height: 43px; border: 1px solid rgba(139,205,189,.28); border-radius: 14px; display: grid; place-items: center; color: #c7e7df; background: rgba(255,255,255,.07); box-shadow: 0 10px 28px rgba(0,0,0,.18); }
.icon-action svg { width: 20px; height: 20px; }

.app-main { width: min(100% - 32px, 1160px); margin: 0 auto; }
.app-view { animation: view-in 0.28s ease-out both; }
@keyframes view-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.section-kicker { margin: 0 0 7px; color: var(--blue); font-size: 11px; font-weight: 850; letter-spacing: 0.14em; text-transform: uppercase; }
.section-title-row { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.section-title-row h2 { margin: 0; font-size: clamp(25px, 4vw, 36px); letter-spacing: -0.045em; line-height: 1.05; }

.home-hero { min-height: 360px; padding: clamp(26px, 5vw, 58px); border: 1px solid #2b665a; border-radius: var(--radius-lg); display: grid; grid-template-columns: 1.08fr 0.92fr; align-items: center; gap: 32px; position: relative; overflow: hidden; color: #f5fbf8; background: linear-gradient(135deg,#082822 0%,#004b43 58%,#0b7a69 100%); box-shadow: 0 26px 74px rgba(0,0,0,.28); }
.home-hero::before { content: ""; width: 280px; height: 280px; border: 1px solid rgba(139,205,189,.25); border-radius: 50%; position: absolute; right: -60px; top: -110px; box-shadow: 0 0 0 42px rgba(139,205,189,.06), 0 0 0 90px rgba(139,205,189,.035); }
.hero-copy { position: relative; z-index: 2; }
.hero-copy h1 { max-width: 660px; margin: 0; font-size: clamp(42px, 7vw, 74px); font-weight: 850; letter-spacing: -0.065em; line-height: 0.96; }
.hero-copy > p:last-child { max-width: 570px; margin: 22px 0 0; color: #c5d9d3; font-size: clamp(16px, 2vw, 19px); line-height: 1.55; }
.hero-logo-wrap { min-height: 250px; display: grid; place-items: center; position: relative; }
.hero-logo-wrap img { width: min(100%, 430px); max-height: 310px; object-fit: contain; position: relative; z-index: 2; filter: brightness(0) invert(1); }
.hero-glow { width: 280px; height: 280px; border-radius: 50%; position: absolute; background: radial-gradient(circle, rgba(139,205,189,.36), rgba(0,111,98,.12) 45%, transparent 70%); filter: blur(12px); }
.home-hero .section-kicker, .home-view > .live-section .section-kicker { color: #8bcdbd; }
.home-view > .live-section .section-title-row h2 { color: #f5fbf8; }

.quick-actions { margin: 20px 0 36px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.quick-action { min-height: 126px; padding: 22px; border: 0; border-radius: var(--radius); display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 16px; color: white; text-align: left; cursor: pointer; box-shadow: 0 16px 38px rgba(0,75,67,.2); transition: transform .2s ease, box-shadow .2s ease; }
.quick-action:hover { transform: translateY(-3px); box-shadow: 0 22px 46px rgba(0,75,67,.25); }
.quick-action-booking { background: linear-gradient(135deg, var(--blue-deep), var(--blue)); }
.quick-action-tournament { background: linear-gradient(135deg, #003d37, #00594f 58%, var(--purple)); }
.quick-icon { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; background: rgba(255,255,255,.16); }
.quick-icon svg { width: 28px; height: 28px; }
.quick-action > span:nth-child(2) { min-width: 0; display: grid; }
.quick-action small { color: rgba(255,255,255,.88); font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.quick-action strong { margin-top: 3px; font-size: clamp(19px,3vw,25px); line-height: 1.15; letter-spacing: -.03em; }
.quick-action em { margin-top: 5px; color: rgba(255,255,255,.88); font-size: 13px; font-style: normal; }
.quick-action > b { font-size: 26px; font-weight: 400; }

.live-section { margin: 0 0 32px; }
.live-clock { padding: 8px 12px; border: 1px solid #bfe7d6; border-radius: 999px; color: var(--green); background: var(--green-soft); font-size: 12px; font-weight: 800; }
.live-board-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.live-board-card { min-height: 220px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.live-board-card::after { content: ""; width: 140px; height: 140px; border: 20px solid var(--surface-soft); border-radius: 50%; position: absolute; right: -60px; bottom: -65px; opacity: .8; }
.live-board-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: relative; z-index: 1; }
.board-disc { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--ink); font-size: 19px; font-weight: 900; box-shadow: inset 0 0 0 5px rgba(255,255,255,.2); }
.status-pill { padding: 7px 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px; color: var(--muted); background: #edf2f7; font-size: 11px; }
.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: #879b95; }
.status-pill b { font-weight: 850; }
.live-board-card[data-state="free"] .status-pill { color: var(--green); background: var(--green-soft); }
.live-board-card[data-state="free"] .status-pill i { background: var(--green); box-shadow: 0 0 0 4px rgba(21,150,107,.12); }
.live-board-card[data-state="busy"] { border-color: #ffc5cc; background: linear-gradient(145deg,#fff,#fff7f8); }
.live-board-card[data-state="busy"] .status-pill { color: var(--danger); background: var(--danger-soft); }
.live-board-card[data-state="busy"] .status-pill i { background: var(--danger); box-shadow: 0 0 0 4px rgba(217,63,80,.12); }
.live-board-card h3 { margin: 19px 0 4px; font-size: 24px; letter-spacing: -.035em; position: relative; z-index: 1; }
.live-board-card > p { min-height: 42px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; position: relative; z-index: 1; }
.live-board-card > button { margin-top: 16px; padding: 0; border: 0; color: var(--blue); background: transparent; font-size: 13px; font-weight: 850; cursor: pointer; position: relative; z-index: 2; }
.live-board-card > button span { margin-left: 5px; }

.next-activity-card { margin-bottom: 22px; padding: 20px 22px; border: 1px solid #c4e2da; border-radius: var(--radius); display: grid; grid-template-columns: 50px 1fr auto; align-items: center; gap: 16px; background: linear-gradient(135deg,#edf8f4,#fff); box-shadow: var(--shadow-sm); }
.next-activity-icon { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; color: var(--purple); background: #dff2ed; }
.next-activity-icon svg { width: 25px; height: 25px; }
.next-activity-copy small { color: var(--purple); font-size: 10px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.next-activity-copy h2 { margin: 3px 0 2px; font-size: 18px; letter-spacing: -.025em; }
.next-activity-copy p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.next-activity-card > button { padding: 11px 14px; border: 1px solid #b9ddd4; border-radius: 12px; color: var(--purple); background: white; font-size: 12px; font-weight: 800; cursor: pointer; }

.notification-card { margin: 0 0 22px; padding: 18px; border: 1px solid #c5e0d9; border-radius: var(--radius); display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 14px; background: #edf7f4; }
.notification-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: var(--blue); background: white; }
.notification-icon svg { width: 22px; height: 22px; }
.notification-card strong { display: block; font-size: 14px; }
.notification-card p { margin: 3px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.notification-card button { padding: 10px 13px; border: 0; border-radius: 11px; color: white; background: var(--blue); font-size: 12px; font-weight: 800; cursor: pointer; }
.notification-card button[data-active="true"] { color: var(--blue); background: white; }

.view-heading { min-height: 210px; margin-bottom: 22px; padding: clamp(24px,5vw,46px); border-radius: var(--radius-lg); display: flex; align-items: flex-start; gap: 18px; position: relative; overflow: hidden; }
.view-heading::after { content: ""; width: 210px; height: 210px; border: 36px solid rgba(255,255,255,.15); border-radius: 50%; position: absolute; right: -75px; top: -86px; }
.view-heading-blue { color: white; background: linear-gradient(135deg,var(--blue-deep),var(--blue)); }
.view-heading-purple { color: white; background: linear-gradient(135deg,#003d37,#00594f 62%,var(--purple)); }
.view-heading-gold { color: var(--ink); background: linear-gradient(135deg,#e9f5f1,#b8ddd4); }
.back-button { width: 42px; height: 42px; border: 1px solid currentColor; border-radius: 14px; color: inherit; background: rgba(255,255,255,.12); font-size: 20px; cursor: pointer; position: relative; z-index: 1; }
.view-heading-gold .back-button { background: rgba(255,255,255,.5); }
.view-heading > div { position: relative; z-index: 1; }
.view-heading .section-kicker { color: rgba(255,255,255,.9); }
.view-heading-purple .section-kicker { color: rgba(255,255,255,.9); }
.view-heading-gold .section-kicker { color: #075d51; }
.view-heading h1 { max-width: 720px; margin: 0; font-size: clamp(35px,6vw,58px); letter-spacing: -.055em; line-height: 1; }
.view-heading p:last-child { max-width: 650px; margin: 13px 0 0; color: rgba(255,255,255,.9); font-size: 16px; line-height: 1.5; }
.view-heading-purple p:last-child { color: rgba(255,255,255,.9); }
.view-heading-gold p:last-child { color: #315e55; }

.agenda-shell { padding: clamp(20px,4vw,36px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.agenda-title-row > p { max-width: 320px; margin: 0; color: var(--muted); font-size: 13px; text-align: right; }
.week-calendar { margin-top: 20px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fbfdfc; }
.week-toolbar { min-height: 66px; padding: 10px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 42px 1fr auto 42px; align-items: center; gap: 8px; }
.week-toolbar > button { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: white; font-size: 18px; cursor: pointer; }
.week-toolbar > strong { text-align: center; font-size: 15px; text-transform: capitalize; }
.calendar-jump { min-width: 85px; height: 42px; padding: 0 11px; border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--blue); background: white; cursor: pointer; position: relative; }
.calendar-jump input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.calendar-jump em { font-size: 11px; font-style: normal; font-weight: 800; }
.week-days { display: grid; grid-template-columns: repeat(7,minmax(90px,1fr)); overflow-x: auto; scrollbar-width: thin; }
.week-day { min-height: 100px; padding: 12px 7px; border: 0; border-right: 1px solid var(--line); display: grid; justify-items: center; align-content: center; gap: 3px; color: var(--muted); background: transparent; cursor: pointer; position: relative; }
.week-day:last-child { border-right: 0; }
.week-day small { font-size: 10px; font-weight: 850; text-transform: uppercase; }
.week-day strong { color: var(--ink); font-size: 24px; line-height: 1; }
.week-day em { font-size: 9px; font-style: normal; }
.week-day.has-bookings::after { content: ""; width: 6px; height: 6px; border-radius: 50%; position: absolute; bottom: 8px; background: var(--coral); }
.week-day.today:not(.selected) strong { color: var(--blue); }
.week-day.selected { color: white; background: var(--blue); }
.week-day.selected strong { color: white; }
.week-day.selected.has-bookings::after { background: white; }

.boards-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.board-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fbfdfc; }
.board-heading { min-height: 84px; padding: 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg,#e8f5f1,#fff); }
.board-card:nth-child(2) .board-heading { background: linear-gradient(135deg,#e7f5f1,#fff); }
.board-number { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--blue); font-size: 21px; font-weight: 900; box-shadow: inset 0 0 0 5px rgba(255,255,255,.2); }
.board-card:nth-child(2) .board-number { background: var(--purple); }
.board-heading small { color: var(--muted); font-size: 11px; font-weight: 850; text-transform: uppercase; }
.board-heading h3 { margin: 2px 0 0; font-size: 15px; letter-spacing: -.02em; }
.reservation-list { min-height: 116px; padding: 4px 16px; }
.reservation-item { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.reservation-item:last-child { border-bottom: 0; }
.reservation-time { min-width: 90px; color: var(--ink); font-size: 15px; }
.reservation-person { min-width: 0; display: grid; }
.reservation-person strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.reservation-person small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.reason-badge { padding: 6px 8px; border-radius: 8px; color: var(--blue); background: #e5f3ef; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.reason-badge.torneo { color: var(--purple); background: #dff2ed; }
.cancel-reservation { grid-column: 1/-1; justify-self: start; padding: 7px 10px; border: 1px solid #ffcbd1; border-radius: 9px; color: var(--danger); background: var(--danger-soft); font-size: 10px; font-weight: 800; cursor: pointer; }
.loading-board { padding: 40px 10px; color: var(--muted); text-align: center; font-size: 12px; }
.empty-board { min-height: 108px; display: grid; place-items: center; }
.empty-board > div { text-align: center; }
.empty-board span { width: 28px; height: 28px; margin: 0 auto 5px; border-radius: 50%; display: grid; place-items: center; color: var(--green); background: var(--green-soft); font-weight: 900; }
.empty-board strong, .empty-board small { display: block; }
.empty-board strong { font-size: 13px; }
.empty-board small { max-width: 260px; margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.retry-bookings { margin-top: 8px; padding: 7px 10px; border: 0; border-radius: 8px; color: white; background: var(--blue); font-size: 10px; font-weight: 800; cursor: pointer; }
.board-book-button { width: calc(100% - 32px); margin: 0 16px 16px; padding: 11px; border: 1px solid #bdded5; border-radius: 12px; color: var(--blue); background: white; font-size: 12px; font-weight: 850; cursor: pointer; }
.board-card:nth-child(2) .board-book-button { border-color: #b9ddd4; color: var(--purple); }

.booking-section { margin-top: 22px; padding: clamp(22px,5vw,48px); border: 1px solid #d2e3de; border-radius: var(--radius-lg); display: grid; grid-template-columns: minmax(230px,.65fr) minmax(0,1.35fr); align-items: start; gap: clamp(24px,5vw,62px); background: linear-gradient(145deg,#eaf5f1,#fbfdfc 48%,#edf8f4); box-shadow: var(--shadow-sm); }
.booking-intro { position: sticky; top: 20px; }
.booking-intro h2 { margin: 0; color: var(--ink); font-size: clamp(32px,5vw,52px); letter-spacing: -.055em; line-height: 1; }
.booking-intro > p:last-child { max-width: 350px; margin: 16px 0 0; color: var(--muted); line-height: 1.55; }
.booking-form, .tournament-form { padding: clamp(20px,4vw,34px); border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-lg); }
.editing-notice { margin-bottom: 20px; padding: 13px; border: 1px solid #bdded5; border-radius: 13px; display: flex; align-items: center; justify-content: space-between; gap: 14px; background: #eaf6f2; }
.editing-notice div { display: grid; }
.editing-notice small { color: var(--blue); font-size: 9px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.editing-notice strong { margin-top: 3px; font-size: 13px; }
.editing-notice button { padding: 8px 10px; border: 0; border-radius: 9px; color: var(--blue); background: white; font-size: 10px; font-weight: 800; cursor: pointer; }
.form-block { min-width: 0; margin: 0 0 20px; padding: 0; border: 0; }
.field-label { display: block; margin: 0 0 8px; color: var(--ink); font-size: 11px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.field-label small { color: var(--muted); font-weight: 650; text-transform: none; letter-spacing: 0; }
.form-block > input, .form-block > select, .form-block > textarea, .tournament-form select, .tournament-form textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #c8d7d3; border-radius: 12px; color: var(--ink); background: #fbfdfc; outline: none; transition: border .15s ease, box-shadow .15s ease; }
.form-block > textarea { min-height: 90px; resize: vertical; }
.form-block > input:focus, .form-block > select:focus, .form-block > textarea:focus, .time-card input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,111,98,.1); }
.field-help { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.choice-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.choice-card { cursor: pointer; }
.choice-card input, .segmented-control input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card > span { min-height: 88px; padding: 13px; border: 1px solid #c8d7d3; border-radius: 13px; display: grid; grid-template-columns: 1fr auto; align-items: center; background: #fbfdfc; transition: .15s ease; }
.choice-card small { grid-column: 1; color: var(--muted); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.choice-card strong { grid-column: 1; color: var(--ink); font-size: 25px; line-height: 1; }
.choice-card em { grid-column: 2; grid-row: 1/3; color: var(--muted); font-size: 9px; font-style: normal; font-weight: 750; }
.choice-card input:checked + span { border-color: var(--blue); background: #e8f5f1; box-shadow: inset 0 0 0 1px var(--blue); }
.choice-card input:focus-visible + span, .segmented-control input:focus-visible + span { outline: 3px solid rgba(0,111,98,.3); outline-offset: 3px; }
.choice-card input:checked + span strong, .choice-card input:checked + span em { color: var(--blue); }
.choice-card input:disabled + span { opacity: .45; cursor: not-allowed; }
.segmented-control { padding: 4px; border-radius: 13px; display: grid; grid-template-columns: repeat(2,1fr); background: #e7efec; }
.segmented-control span { min-height: 42px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); font-size: 12px; font-weight: 850; cursor: pointer; }
.segmented-control input:checked + span { color: white; background: var(--blue); box-shadow: 0 5px 12px rgba(0,111,98,.22); }
.segmented-control label:nth-child(2) input:checked + span { background: var(--purple); box-shadow: 0 5px 12px rgba(11,122,105,.22); }
.time-range { display: grid; grid-template-columns: 1fr 30px 1fr; align-items: center; gap: 8px; }
.time-card { min-width: 0; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #f7fbf9; }
.time-card legend { padding: 0 5px; color: var(--blue); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.time-card label { display: block; margin-top: 8px; }
.time-card label span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.time-card input { width: 100%; min-width: 0; min-height: 44px; padding: 8px; border: 1px solid #c8d7d3; border-radius: 10px; color: var(--ink); background: white; outline: none; }
.range-arrow { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--blue); font-size: 14px; }
.form-message { margin: 18px 0 0; padding: 12px 14px; border: 1px solid #ffc9cf; border-radius: 12px; color: var(--danger); background: var(--danger-soft); font-size: 12px; line-height: 1.45; }
.form-message[data-type="success"] { border-color: #bce5d4; color: var(--green); background: var(--green-soft); }
.submit-button { width: 100%; min-height: 54px; margin-top: 20px; padding: 13px 16px; border: 0; border-radius: 14px; display: flex; align-items: center; justify-content: space-between; color: white; background: linear-gradient(135deg,var(--blue-deep),var(--blue)); font-size: 14px; font-weight: 850; cursor: pointer; box-shadow: 0 12px 28px rgba(0,111,98,.23); }
.submit-button:disabled { opacity: .55; cursor: wait; box-shadow: none; }
.form-footnote { margin: 10px 0 0; color: var(--muted); font-size: 10px; line-height: 1.4; text-align: center; }

.member-source-select.enhanced { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; overflow: hidden; opacity: 0; pointer-events: none; }
.member-picker-trigger { width: 100%; min-height: 62px; padding: 10px 14px; border: 1px solid #b7d5ce; border-radius: 14px; display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 11px; color: var(--ink); background: #f7fbf9; text-align: left; cursor: pointer; transition: border .15s ease, box-shadow .15s ease, transform .15s ease; }
.member-picker-trigger:active { transform: scale(.99); }
.member-picker-trigger:focus-visible { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,111,98,.12); outline: 0; }
.member-picker-trigger:disabled { opacity: .55; cursor: wait; }
.member-picker-trigger-avatar { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: white; background: linear-gradient(135deg,var(--blue-deep),var(--blue)); font-size: 16px; font-weight: 900; text-transform: uppercase; }
.member-picker-trigger-copy { min-width: 0; display: grid; }
.member-picker-trigger-copy strong { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.member-picker-trigger-copy small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.member-picker-trigger-arrow { color: var(--blue); font-size: 20px; }
.member-picker-dialog { width: min(calc(100% - 28px),560px); max-height: min(82vh,720px); padding: 0; border: 1px solid #2e655a; border-radius: 26px; color: #f5fbf8; background: #0a2c27; box-shadow: 0 34px 100px rgba(0,0,0,.48); overflow: hidden; }
.member-picker-dialog::backdrop { background: rgba(2,19,16,.7); backdrop-filter: blur(7px); }
.member-picker-sheet { padding: 22px; }
.member-picker-heading { margin-bottom: 16px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.member-picker-heading p { margin: 0 0 4px; color: #8bcdbd; font-size: 10px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.member-picker-heading h2 { margin: 0; color: white; font-size: 27px; letter-spacing: -.04em; }
.member-picker-heading button { width: 42px; height: 42px; flex: 0 0 auto; border: 1px solid rgba(139,205,189,.3); border-radius: 13px; color: #d9eee8; background: rgba(255,255,255,.07); font-size: 22px; cursor: pointer; }
.member-picker-grid { max-height: min(58vh,520px); padding-right: 3px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; overflow-y: auto; overscroll-behavior: contain; }
.member-picker-option { min-height: 62px; padding: 9px 11px; border: 1px solid rgba(139,205,189,.22); border-radius: 14px; display: grid; grid-template-columns: 36px minmax(0,1fr); align-items: center; gap: 9px; color: #eff9f6; background: #143f37; text-align: left; cursor: pointer; }
.member-picker-option:active { background: #075e53; }
.member-picker-option[aria-selected="true"] { border-color: #8bcdbd; background: #076c5e; box-shadow: inset 0 0 0 1px #8bcdbd; }
.member-picker-option span { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #d9f3ec; background: rgba(139,205,189,.14); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.member-picker-option strong { min-width: 0; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.member-picker-empty { margin: 0; padding: 30px; color: #b9cec8; text-align: center; }
.tournament-form .member-picker-trigger { border-color: #3c6f64; color: #f5fbf8; background: #163e37; }
.tournament-form .member-picker-trigger-copy small { color: #b9cec8; }
.tournament-form .member-picker-trigger-avatar { background: linear-gradient(135deg,#00544b,var(--purple)); }
.tournament-form .member-picker-trigger-arrow { color: #8bcdbd; }

.tournament-layout { display: grid; grid-template-columns: minmax(0,.9fr) minmax(420px,1.1fr); align-items: start; gap: 22px; }
.tournament-info { padding: clamp(20px,4vw,34px); border: 1px solid #2b665a; border-radius: var(--radius-lg); color: #f5fbf8; background: linear-gradient(145deg,#092a25,#123e36); box-shadow: 0 20px 52px rgba(4,45,39,.18); }
.tournament-info .section-kicker { color: #8bcdbd; }
.tournament-schedule { margin-top: 18px; display: grid; gap: 10px; }
.tournament-schedule article { padding: 16px; border: 1px solid rgba(139,205,189,.26); border-radius: 15px; display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 12px; background: rgba(255,255,255,.06); }
.tournament-schedule span { color: #9ed9ca; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.tournament-schedule strong { color: white; font-size: 17px; letter-spacing: -.02em; }
.tournament-schedule small { color: #b9cec8; font-size: 10px; text-align: right; }
.tournament-rule { margin-top: 16px; padding: 16px; border: 1px solid rgba(139,205,189,.25); border-radius: 15px; display: flex; align-items: center; gap: 14px; color: white; background: linear-gradient(135deg,#00544b,var(--purple)); }
.tournament-rule > span { width: 42px; height: 42px; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; display: grid; place-items: center; font-size: 19px; font-weight: 900; }
.tournament-rule p { margin: 0; color: rgba(255,255,255,.9); font-size: 11px; line-height: 1.4; }
.tournament-rule strong { display: block; margin-bottom: 3px; color: white; font-size: 13px; }
.tournament-form { border-color: #2b665a; color: #f5fbf8; color-scheme: dark; background: linear-gradient(145deg,#0a2c27,#123e36); box-shadow: 0 24px 64px rgba(4,45,39,.22); }
.form-heading { margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.form-heading span { color: var(--purple); font-size: 10px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.form-heading strong { display: block; margin-top: 3px; font-size: 27px; letter-spacing: -.04em; }
.form-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.tournament-form .form-heading { border-color: rgba(139,205,189,.24); }
.tournament-form .form-heading span { color: #8bcdbd; }
.tournament-form .form-heading strong, .tournament-form .field-label { color: #f5fbf8; }
.tournament-form .form-heading p, .tournament-form .field-help { color: #b9cec8; }
.tournament-form .form-block > input, .tournament-form .form-block > select, .tournament-form .form-block > textarea, .tournament-form select, .tournament-form textarea { border-color: #3c6f64; color: #f7fbf9; background: #163e37; }
.tournament-form .form-block > input:focus, .tournament-form .form-block > select:focus, .tournament-form .form-block > textarea:focus { border-color: #8bcdbd; box-shadow: 0 0 0 4px rgba(139,205,189,.14); }
.tournament-form .form-block > textarea::placeholder { color: #9db7b0; }
.tournament-form .choice-card > span { border-color: #3c6f64; background: #163e37; }
.tournament-form .choice-card small, .tournament-form .choice-card em { color: #b9cec8; }
.tournament-form .choice-card strong { color: #f5fbf8; }
.tournament-board-choice .choice-card input:checked + span { border-color: #8bcdbd; background: #075e53; box-shadow: inset 0 0 0 1px #8bcdbd; }
.tournament-board-choice .choice-card input:checked + span strong, .tournament-board-choice .choice-card input:checked + span em { color: #d8f2eb; }
.tournament-summary { padding: 12px 14px; border: 1px solid rgba(139,205,189,.22); border-radius: 12px; display: flex; align-items: center; gap: 9px; color: #c7ebe2; background: #164a40; }
.tournament-summary p { margin: 0; font-size: 11px; line-height: 1.4; }
.tournament-submit { background: linear-gradient(135deg,#003d37,var(--purple)); box-shadow: 0 12px 28px rgba(11,122,105,.23); }
.whatsapp-inline { width: 100%; min-height: 46px; margin-top: 12px; border: 1px solid #a9dfc9; border-radius: 13px; color: #087a55; background: var(--green-soft); font-size: 12px; font-weight: 850; cursor: pointer; }

.my-reservations-shell { min-height: 220px; padding: clamp(20px,4vw,34px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; box-shadow: var(--shadow-sm); }
.my-reservations-list { display: grid; gap: 12px; }
.no-owned-reservations { margin: 0; padding: 42px 18px; border: 1px dashed #c8d7d3; border-radius: var(--radius); color: var(--muted); background: #f7fbf9; text-align: center; line-height: 1.5; }
.my-reservation-card { padding: 17px; border: 1px solid var(--line); border-radius: 16px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; background: #fbfdfc; }
.my-reservation-card h3 { margin: 0; font-size: 16px; letter-spacing: -.025em; }
.my-reservation-card p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.my-reservation-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.my-reservation-actions button { padding: 9px 11px; border: 1px solid #bdded5; border-radius: 10px; color: var(--blue); background: white; font-size: 10px; font-weight: 850; cursor: pointer; }
.my-reservation-actions .my-share-button { border-color: #b9e4d3; color: var(--green); background: var(--green-soft); }
.my-reservation-actions .my-delete-button { border-color: #ffcbd1; color: var(--danger); background: var(--danger-soft); }
.app-tools { margin-top: 18px; padding: clamp(20px,4vw,30px); border: 1px solid #d2e3de; border-radius: var(--radius); display: flex; align-items: center; justify-content: space-between; gap: 24px; background: linear-gradient(135deg,#eaf5f1,#fff); }
.app-tools h2 { margin: 0; font-size: 24px; letter-spacing: -.035em; }
.app-tools p:last-child { max-width: 520px; margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.app-tool-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.install-button, .admin-link { padding: 11px 14px; border: 1px solid #bdded5; border-radius: 11px; color: var(--blue); background: white; font-size: 11px; font-weight: 850; text-decoration: none; cursor: pointer; }
.admin-link { color: var(--muted); border-color: var(--line); }

.site-footer { width: min(100% - 32px,1160px); min-height: 130px; margin: 24px auto 0; padding-bottom: 34px; display: flex; align-items: center; justify-content: center; gap: 13px; color: #a9c3bc; }
.site-footer img { width: 72px; height: 58px; object-fit: contain; filter: brightness(0) invert(1); }
.site-footer p { margin: 0; font-size: 11px; }
.mobile-dock { z-index: 90; position: fixed; left: 50%; bottom: max(10px,env(safe-area-inset-bottom)); width: min(calc(100% - 20px),560px); min-height: 68px; padding: 7px; border: 1px solid rgba(201,218,213,.9); border-radius: 22px; display: grid; grid-template-columns: repeat(4,1fr); background: rgba(255,255,255,.94); box-shadow: 0 18px 54px rgba(15,67,58,.2); backdrop-filter: blur(18px); transform: translateX(-50%); }
.mobile-dock button { min-width: 0; border: 0; border-radius: 15px; display: grid; justify-items: center; align-content: center; gap: 3px; color: var(--muted); background: transparent; cursor: pointer; }
.mobile-dock svg { width: 21px; height: 21px; }
.mobile-dock span { overflow: hidden; max-width: 100%; font-size: 9px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.mobile-dock button.active { color: var(--blue); background: #e8f5f1; }
body[data-current-mode="torneos"] .mobile-dock button.active { color: var(--purple); background: #dff2ed; }
body[data-current-mode="actividad"] .mobile-dock button.active { color: #075d51; background: #e1f3ee; }

.toast { z-index: 120; position: fixed; left: 50%; bottom: 94px; max-width: min(90vw,460px); padding: 12px 16px; border-radius: 13px; color: white; background: var(--ink); box-shadow: var(--shadow-lg); font-size: 12px; text-align: center; opacity: 0; pointer-events: none; transform: translate(-50%,14px); transition: .2s ease; }
.toast.visible { opacity: 1; transform: translate(-50%,0); }
.result-dialog { width: min(calc(100% - 28px),440px); padding: 30px; border: 0; border-radius: 26px; color: var(--ink); background: white; box-shadow: 0 35px 100px rgba(10,55,48,.3); text-align: center; }
.result-dialog::backdrop { background: rgba(10,35,31,.48); backdrop-filter: blur(5px); }
.dialog-close { width: 44px; height: 44px; border: 0; border-radius: 50%; position: absolute; top: 10px; right: 10px; color: var(--muted); background: #eaf1ef; font-size: 21px; cursor: pointer; }
.success-mark, .cancellation-mark { width: 62px; height: 62px; margin: 0 auto 15px; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--green); font-size: 30px; font-weight: 900; box-shadow: 0 12px 30px rgba(21,150,107,.25); }
.result-dialog > p { margin: 0; color: var(--green); font-size: 10px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.result-dialog h2 { margin: 7px 0 0; font-size: 27px; letter-spacing: -.045em; }
.success-summary { margin: 18px 0; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: #f7fbf9; }
.success-summary strong, .success-summary div { display: block; }
.success-summary strong { font-size: 15px; }
.success-summary div { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.whatsapp-button { width: 100%; min-height: 50px; border: 0; border-radius: 13px; color: white; background: #14966c; font-size: 13px; font-weight: 850; cursor: pointer; }
.dialog-secondary { width: 100%; min-height: 44px; margin-top: 7px; border: 0; color: var(--muted); background: transparent; font-size: 12px; font-weight: 750; cursor: pointer; }
.danger-dialog-button { width: 100%; min-height: 50px; border: 0; border-radius: 13px; color: white; background: var(--danger); font-size: 13px; font-weight: 850; cursor: pointer; }
.danger-dialog-button:disabled { opacity: .55; cursor: wait; }
.result-dialog > small { color: var(--muted); font-size: 10px; }

@media (min-width: 900px) {
  body { padding-bottom: 98px; }
  .mobile-dock { width: 520px; }
}

@media (max-width: 900px) {
  body { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  .app-topbar, .app-main, .site-footer { width: min(100% - 24px,760px); }
  .home-hero { min-height: 0; grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy > p:last-child { margin-inline: auto; }
  .hero-logo-wrap { min-height: 200px; grid-row: 1; }
  .hero-logo-wrap img { width: min(90%,360px); max-height: 230px; }
  .quick-actions { grid-template-columns: 1fr; }
  .booking-section { grid-template-columns: 1fr; }
  .booking-intro { position: static; }
  .tournament-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .app-topbar { min-height: 66px; }
  .brand-button img { width: 47px; height: 40px; }
  .brand-button strong { font-size: 14px; }
  .brand-button small { font-size: 9px; }
  .icon-action { width: 44px; height: 44px; }
  .home-hero { padding: 24px 18px 26px; border-radius: 25px; gap: 8px; }
  .hero-copy h1 { font-size: clamp(37px,11.5vw,52px); }
  .hero-copy > p:last-child { margin-top: 15px; font-size: 14px; }
  .hero-logo-wrap { min-height: 176px; }
  .hero-logo-wrap img { width: 300px; height: 190px; }
  .quick-actions { margin-top: 14px; gap: 10px; }
  .quick-action { min-height: 105px; padding: 16px; grid-template-columns: 48px 1fr auto; gap: 12px; border-radius: 19px; }
  .quick-icon { width: 48px; height: 48px; border-radius: 15px; }
  .quick-action strong { font-size: 19px; }
  .quick-action em { font-size: 11px; }
  .section-title-row { align-items: center; }
  .section-title-row h2 { font-size: 27px; }
  .live-board-grid { grid-template-columns: 1fr; gap: 10px; }
  .live-board-card { min-height: 196px; padding: 18px; }
  .next-activity-card { padding: 16px; grid-template-columns: 44px 1fr; }
  .next-activity-icon { width: 44px; height: 44px; }
  .next-activity-card > button { grid-column: 1/-1; width: 100%; }
  .notification-card { grid-template-columns: 40px 1fr; }
  .notification-card button { grid-column: 1/-1; width: 100%; }
  .view-heading { min-height: 190px; padding: 22px 18px; border-radius: 25px; }
  .view-heading h1 { font-size: 38px; }
  .view-heading p:last-child { font-size: 13px; }
  .back-button { width: 44px; height: 44px; flex: 0 0 auto; }
  .agenda-shell { padding: 16px; border-radius: 24px; }
  .agenda-title-row { align-items: flex-start; }
  .agenda-title-row > p { display: none; }
  .week-toolbar { grid-template-columns: 44px 1fr 74px 44px; }
  .week-toolbar > button { width: 44px; height: 44px; }
  .week-toolbar > strong { font-size: 12px; }
  .calendar-jump { min-width: 74px; height: 44px; padding: 0 7px; }
  .week-days { grid-template-columns: repeat(7,68px); }
  .week-day { min-height: 88px; }
  .week-day strong { font-size: 21px; }
  .week-day em { max-width: 62px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .boards-grid { grid-template-columns: 1fr; }
  .booking-section { padding: 20px 14px; border-radius: 25px; }
  .booking-intro { padding: 0 4px; }
  .booking-intro h2 { font-size: 37px; }
  .booking-form, .tournament-form { padding: 18px 14px; border-radius: 19px; box-shadow: var(--shadow-sm); }
  .time-range { grid-template-columns: 1fr; }
  .range-arrow { margin: -3px auto; transform: rotate(90deg); }
  .tournament-info { padding: 18px 14px; border-radius: 24px; }
  .tournament-schedule article { grid-template-columns: 74px 1fr; }
  .tournament-schedule small { grid-column: 2; text-align: left; }
  .my-reservations-shell { padding: 14px; border-radius: 24px; }
  .my-reservation-card { grid-template-columns: 1fr; }
  .my-reservation-actions { justify-content: stretch; }
  .my-reservation-actions button { flex: 1 1 auto; }
  .app-tools { align-items: stretch; flex-direction: column; }
  .app-tool-actions { justify-content: stretch; }
  .app-tool-actions > * { flex: 1 1 100%; text-align: center; }
  .site-footer { min-height: 100px; padding-bottom: 15px; flex-direction: column; gap: 4px; text-align: center; }
  .site-footer img { width: 66px; height: 46px; }
  .mobile-dock { bottom: max(7px,env(safe-area-inset-bottom)); width: calc(100% - 14px); min-height: 64px; border-radius: 20px; }
  .mobile-dock button { border-radius: 13px; }
  .mobile-dock span { font-size: 10px; }
  .result-dialog { padding: 28px 20px 22px; }
  .member-picker-dialog { width: calc(100% - 14px); max-height: calc(100dvh - 18px); margin: auto auto 7px; border-radius: 26px 26px 18px 18px; }
  .member-picker-sheet { padding: 18px 14px 14px; }
  .member-picker-grid { max-height: calc(100dvh - 132px); gap: 8px; }
  .member-picker-option { min-height: 60px; padding-inline: 9px; }
}

@media (max-width: 380px) {
  .app-topbar, .app-main, .site-footer { width: calc(100% - 18px); }
  .brand-button small { display: none; }
  .hero-copy h1 { font-size: 36px; }
  .quick-action { grid-template-columns: 44px 1fr auto; }
  .quick-icon { width: 44px; height: 44px; }
  .quick-action em { display: none; }
  .choice-card > span { padding: 11px; }
  .mobile-dock svg { width: 19px; height: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
