:root {
  --black: #080b09;
  --black-2: #0e1410;
  --panel: #141b16;
  --panel-light: #1b241e;
  --red: #df242a;
  --red-dark: #a91217;
  --green: #00945e;
  --green-dark: #006640;
  --cream: #efe4cc;
  --ivory: #fff8e9;
  --gold: #cba85f;
  --ink: #101511;
  --muted: #929a94;
  --line: rgba(255, 255, 255, 0.12);
  --display: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Black", sans-serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: white;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 16px),
    var(--black);
  font-family: var(--sans);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a,
label {
  -webkit-tap-highlight-color: transparent;
}

button,
label {
  touch-action: manipulation;
}

a {
  color: inherit;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--black);
  background: var(--cream);
  border-radius: 6px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
  padding: 10px max(18px, calc((100% - 1240px) / 2));
  background: rgba(6, 9, 7, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.app-header::after {
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green) 0 33%, var(--cream) 33% 66%, var(--red) 66%);
  content: "";
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  line-height: 1;
}

.brand-logo {
  display: grid;
  width: 142px;
  height: 76px;
  place-items: center;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45));
}

.brand > span:last-child {
  display: grid;
  gap: 5px;
}

.brand strong {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.brand small {
  color: var(--gold);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.install-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 14px;
  color: white;
  background: var(--red);
  border: 1px solid #f05c61;
  border-radius: 5px;
  box-shadow: 4px 4px 0 var(--red-dark);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

main {
  overflow: hidden;
}

.schedule-section {
  position: relative;
  padding-bottom: 90px;
}

.hero-panel {
  position: relative;
  display: grid;
  min-height: 650px;
  overflow: hidden;
  background:
    radial-gradient(circle at 77% 40%, rgba(223, 36, 42, 0.34), transparent 24%),
    radial-gradient(circle at 67% 58%, rgba(0, 148, 94, 0.3), transparent 31%),
    linear-gradient(110deg, #050806 0%, #0a100c 48%, #111a14 100%);
}

.hero-panel::before {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(255, 255, 255, 0.025) 80px),
    repeating-linear-gradient(0deg, transparent 0 79px, rgba(255, 255, 255, 0.018) 80px);
  content: "";
  pointer-events: none;
}

.hero-emblem {
  position: absolute;
  top: 50%;
  right: 5%;
  width: min(45vw, 600px);
  max-height: 86%;
  object-fit: contain;
  opacity: 0.34;
  filter: drop-shadow(0 0 38px rgba(239, 228, 204, 0.12));
  transform: translateY(-50%);
  pointer-events: none;
}

.hero-panel::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 38%;
  height: 8px;
  background: var(--red);
  content: "";
}

.section-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 50px;
  width: min(1240px, calc(100% - 40px));
  margin: auto;
  padding: 80px 0 145px;
}

.kicker,
.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
}

.kicker span {
  width: 34px;
  height: 3px;
  background: var(--red);
}

.section-heading h1,
.booking-intro h2,
.my-reservations-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(84px, 11vw, 148px);
  font-weight: 900;
  line-height: 0.75;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

.section-heading h1 em {
  color: transparent;
  -webkit-text-stroke: 2px var(--cream);
  font-style: normal;
  text-shadow: 5px 5px 0 rgba(223, 36, 42, 0.45);
}

.section-copy {
  max-width: 500px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
}

.primary-action {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-width: 220px;
  min-height: 64px;
  margin-bottom: 12px;
  padding: 14px 18px;
  color: white;
  background: var(--red);
  border: 1px solid #f05c61;
  border-radius: 3px;
  box-shadow: 8px 8px 0 var(--red-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.primary-action:hover {
  box-shadow: 4px 4px 0 var(--red-dark);
  transform: translate(4px, 4px);
}

.primary-action span {
  font-size: 20px;
}

.agenda-shell {
  position: relative;
  z-index: 3;
  width: min(1240px, calc(100% - 40px));
  margin: -90px auto 0;
  padding: 32px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.018), transparent 45%),
    var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 6px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.46);
}

.agenda-shell::before {
  position: absolute;
  top: -1px;
  right: -1px;
  left: -1px;
  height: 5px;
  background: linear-gradient(90deg, var(--green) 0 33%, var(--cream) 33% 66%, var(--red) 66%);
  content: "";
}

.agenda-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 22px;
  padding: 14px 4px 0;
}

.agenda-heading .eyebrow,
.agenda-heading h2,
.agenda-heading > p {
  margin: 0;
}

.agenda-heading .eyebrow {
  color: var(--red);
}

.agenda-heading h2 {
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 62px);
  font-weight: 900;
  letter-spacing: 0.025em;
  line-height: 1;
  text-transform: uppercase;
}

.agenda-heading > p {
  color: var(--muted);
  font-size: 10px;
}

.week-calendar {
  margin-bottom: 18px;
  background: var(--black-2);
  border: 1px solid var(--line);
}

.week-toolbar {
  display: grid;
  grid-template-columns: 50px 1fr auto 50px;
  align-items: center;
  min-height: 58px;
  border-bottom: 1px solid var(--line);
}

.week-toolbar > button {
  align-self: stretch;
  padding: 0;
  color: var(--cream);
  background: transparent;
  border: 0;
  font-size: 19px;
  cursor: pointer;
}

.week-toolbar > button:first-child {
  border-right: 1px solid var(--line);
}

.week-toolbar > button:last-child {
  border-left: 1px solid var(--line);
}

.week-toolbar > strong {
  padding-left: 18px;
  color: var(--cream);
  font-family: var(--display);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.calendar-jump {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 14px;
  padding: 8px 12px;
  color: white;
  background: var(--green-dark);
  border: 1px solid var(--green);
  cursor: pointer;
}

.calendar-jump input {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  cursor: pointer;
}

.calendar-jump em {
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.week-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(96px, 1fr));
  overflow-x: auto;
  scrollbar-color: var(--red) var(--black);
}

.week-day {
  position: relative;
  display: grid;
  min-height: 116px;
  padding: 16px 8px 12px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  text-align: center;
  cursor: pointer;
}

.week-day:last-child {
  border-right: 0;
}

.week-day small {
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.week-day strong {
  align-self: center;
  color: var(--cream);
  font-family: var(--display);
  font-size: 36px;
  letter-spacing: 0.03em;
}

.week-day em {
  align-self: end;
  overflow: hidden;
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.week-day.has-bookings::after {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--red);
  content: "";
}

.week-day.today:not(.selected) {
  box-shadow: inset 0 -3px 0 var(--cream);
}

.week-day.selected {
  color: white;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent),
    var(--red-dark);
  box-shadow: inset 0 0 0 2px var(--red);
}

.week-day.selected strong {
  color: white;
}

.notification-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin: 16px 0;
  padding: 14px 16px;
  color: white;
  background: #10241a;
  border: 1px solid rgba(0, 148, 94, 0.65);
  box-shadow: inset 4px 0 0 var(--green);
}

.notification-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--red);
  background: var(--cream);
  border-radius: 50%;
  font-size: 8px;
  box-shadow: 0 0 18px rgba(223, 36, 42, 0.22);
}

.notification-card strong,
.notification-card p {
  display: block;
  margin: 0;
}

.notification-card strong {
  font-size: 12px;
}

.notification-card p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.notification-card button {
  min-height: 39px;
  padding: 8px 13px;
  color: white;
  background: var(--green-dark);
  border: 1px solid var(--green);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

.notification-card button[data-active="true"] {
  color: var(--ink);
  background: var(--cream);
  border-color: var(--cream);
}

.boards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.board-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--black-2);
  border: 1px solid var(--line);
  box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.28);
}

.board-card::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 54px;
  height: 6px;
  background: var(--red);
  content: "";
}

.board-card[data-board-card="Diana 2"]::after {
  background: var(--green);
}

.board-heading {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 22px;
  background: linear-gradient(90deg, rgba(223, 36, 42, 0.1), transparent 55%);
  border-bottom: 1px solid var(--line);
}

.board-card[data-board-card="Diana 2"] .board-heading {
  background: linear-gradient(90deg, rgba(0, 148, 94, 0.12), transparent 55%);
}

.board-number {
  display: grid;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  place-items: center;
  color: white;
  background: var(--red-dark);
  border: 6px double var(--red);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 0.04em;
  box-shadow: 0 0 0 3px #111;
}

.board-card[data-board-card="Diana 2"] .board-number {
  background: var(--green-dark);
  border-color: var(--green);
}

.board-heading small,
.board-heading h3,
.board-heading p {
  display: block;
  margin: 0;
}

.board-heading small {
  margin-bottom: 3px;
  color: var(--gold);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.board-heading h3 {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1;
  text-transform: uppercase;
}

.board-heading p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.reservation-list {
  display: grid;
  min-height: 160px;
}

.reservation-item {
  display: grid;
  grid-template-areas:
    "time person reason"
    ". cancel cancel";
  grid-template-columns: 112px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.reservation-item:last-child {
  border-bottom: 0;
}

.reservation-time {
  grid-area: time;
  color: var(--cream);
  font-family: var(--display);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.reservation-person {
  grid-area: person;
  min-width: 0;
}

.reservation-person strong,
.reservation-person small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reservation-person strong {
  font-size: 13px;
}

.reservation-person small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.reason-badge {
  grid-area: reason;
  padding: 6px 9px;
  color: white;
  background: var(--red-dark);
  border: 1px solid var(--red);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.reason-badge.torneo {
  background: var(--green-dark);
  border-color: var(--green);
}

.cancel-reservation {
  grid-area: cancel;
  justify-self: start;
  padding: 4px 0;
  color: #ff7074;
  background: transparent;
  border: 0;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-transform: uppercase;
  cursor: pointer;
}

.loading-board,
.empty-board {
  display: grid;
  min-height: 170px;
  padding: 25px;
  place-items: center;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.empty-board > div {
  display: grid;
  max-width: 270px;
  justify-items: center;
}

.empty-board span {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
  place-items: center;
  color: white;
  background: var(--green-dark);
  border: 1px solid var(--green);
  border-radius: 50%;
  font-weight: 900;
}

.empty-board strong,
.empty-board small {
  display: block;
}

.empty-board strong {
  color: white;
  font-size: 13px;
}

.empty-board small {
  margin-top: 5px;
  line-height: 1.5;
}

.retry-bookings {
  margin-top: 13px;
  padding: 8px 13px;
  color: white;
  background: var(--red-dark);
  border: 1px solid var(--red);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.my-reservations-section {
  position: relative;
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 55px;
  align-items: center;
  padding: 85px max(20px, calc((100% - 1160px) / 2));
  overflow: hidden;
  background:
    linear-gradient(110deg, rgba(169, 18, 23, 0.96) 0 32%, rgba(20, 27, 22, 0.98) 32% 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.my-reservations-section::after {
  position: absolute;
  top: -120px;
  left: 18%;
  width: 320px;
  height: 320px;
  border: 30px double rgba(255, 255, 255, 0.045);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.my-reservations-heading {
  position: relative;
  z-index: 1;
}

.my-reservations-heading .eyebrow {
  color: var(--cream);
}

.my-reservations-heading h2 {
  font-size: clamp(58px, 7vw, 92px);
  line-height: 0.8;
}

.my-reservations-heading > p {
  max-width: 300px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
}

.my-reservations-list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.no-owned-reservations {
  grid-column: 1 / -1;
  margin: 0;
  padding: 30px 20px;
  color: rgba(255, 255, 255, 0.58);
  background: rgba(0, 0, 0, 0.22);
  border: 1px dashed rgba(255, 255, 255, 0.22);
  font-size: 11px;
  text-align: center;
}

.my-reservation-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px;
  color: white;
  background: rgba(5, 9, 6, 0.72);
  border: 1px solid var(--line);
  box-shadow: inset 4px 0 0 var(--green);
}

.my-reservation-card h3,
.my-reservation-card p {
  margin: 0;
}

.my-reservation-card h3 {
  font-family: var(--display);
  font-size: 19px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.my-reservation-card p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.my-reservation-actions {
  display: flex;
  gap: 6px;
}

.my-reservation-actions button {
  min-height: 34px;
  padding: 7px 9px;
  color: white;
  background: var(--green-dark);
  border: 1px solid var(--green);
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.my-reservation-actions .my-delete-button {
  background: var(--red-dark);
  border-color: var(--red);
}

.booking-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(520px, 1.28fr);
  gap: clamp(50px, 8vw, 120px);
  align-items: start;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 110px 0 120px;
}

.booking-section::before {
  position: absolute;
  top: 30px;
  right: -330px;
  width: 600px;
  height: 600px;
  border: 55px double rgba(223, 36, 42, 0.07);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.booking-intro {
  position: sticky;
  top: 120px;
}

.booking-intro .eyebrow {
  color: var(--red);
}

.booking-intro h2 {
  font-size: clamp(68px, 8vw, 104px);
  line-height: 0.78;
}

.booking-intro > p:last-child {
  max-width: 350px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.booking-form {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 24px;
  padding: clamp(26px, 4vw, 44px);
  color: var(--ink);
  background:
    repeating-linear-gradient(135deg, rgba(16, 21, 17, 0.018) 0 1px, transparent 1px 12px),
    var(--cream);
  border: 1px solid white;
  box-shadow: 14px 14px 0 var(--red-dark), -10px -10px 0 var(--green-dark);
}

.booking-form::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--green) 0 33%, var(--black) 33% 66%, var(--red) 66%);
  content: "";
}

.editing-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 12px 14px;
  color: white;
  background: var(--green-dark);
  border-left: 4px solid var(--green);
}

.editing-notice small,
.editing-notice strong {
  display: block;
}

.editing-notice small {
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.editing-notice strong {
  margin-top: 2px;
  font-size: 11px;
}

.editing-notice button {
  padding: 7px 9px;
  color: var(--ink);
  background: var(--cream);
  border: 0;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.form-block,
.time-card {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field-label {
  display: block;
  margin: 0 0 9px;
  color: #565c56;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.form-block > input {
  width: 100%;
  min-height: 56px;
  padding: 13px 15px;
  color: var(--ink);
  background: var(--ivory);
  border: 2px solid #b9af9b;
  border-radius: 0;
  outline: 0;
}

.form-block > input:focus,
.time-card input:focus {
  border-color: var(--green-dark);
  box-shadow: 4px 4px 0 rgba(0, 102, 64, 0.22);
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.choice-card,
.segmented-control label {
  position: relative;
  cursor: pointer;
}

.choice-card input,
.segmented-control input {
  position: absolute;
  opacity: 0;
}

.choice-card > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding: 14px 18px;
  color: #555c56;
  background: var(--ivory);
  border: 2px solid #b9af9b;
}

.choice-card small {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.choice-card strong {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: white;
  background: #777f78;
  border: 5px double #a5aaa5;
  border-radius: 50%;
  font-family: var(--display);
  font-size: 20px;
}

.choice-card input:checked + span {
  color: var(--ink);
  background: #fffaf0;
  border-color: var(--red-dark);
  box-shadow: 5px 5px 0 rgba(169, 18, 23, 0.2);
}

.choice-card input:checked + span strong {
  background: var(--red-dark);
  border-color: var(--red);
}

.choice-card:nth-child(2) input:checked + span {
  border-color: var(--green-dark);
  box-shadow: 5px 5px 0 rgba(0, 102, 64, 0.2);
}

.choice-card:nth-child(2) input:checked + span strong {
  background: var(--green-dark);
  border-color: var(--green);
}

.segmented-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 3px;
  background: var(--ink);
}

.segmented-control span {
  display: grid;
  min-height: 45px;
  place-items: center;
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.segmented-control input:checked + span {
  color: white;
  background: var(--red-dark);
}

.segmented-control label:nth-child(2) input:checked + span {
  background: var(--green-dark);
}

.time-range {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}

.time-card {
  display: grid;
  gap: 11px;
  padding: 16px;
  background: #dbd1bd;
  border: 1px solid #b9af9b;
}

.time-card legend {
  padding: 0 6px;
  color: var(--red-dark);
  font-family: var(--display);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.time-card label {
  display: grid;
  gap: 4px;
}

.time-card label span {
  color: #555c56;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.time-card input {
  width: 100%;
  min-height: 43px;
  padding: 9px;
  color: var(--ink);
  background: var(--ivory);
  border: 1px solid #afa48e;
  border-radius: 0;
  font-size: 12px;
  outline: 0;
}

.range-arrow {
  display: grid;
  width: 33px;
  height: 33px;
  place-items: center;
  color: white;
  background: var(--black);
  border: 3px double var(--cream);
  border-radius: 50%;
  font-size: 13px;
}

.form-message {
  padding: 12px 14px;
  color: #6e0d11;
  background: #f3b8b6;
  border-left: 5px solid var(--red-dark);
  font-size: 10px;
  font-weight: 750;
}

.form-message[data-type="success"] {
  color: #03462c;
  background: #b7ddc8;
  border-left-color: var(--green-dark);
}

.submit-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 60px;
  padding: 13px 18px;
  color: white;
  background: var(--red-dark);
  border: 2px solid var(--red);
  border-radius: 0;
  box-shadow: 7px 7px 0 rgba(169, 18, 23, 0.24);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.submit-button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.form-footnote {
  margin: -10px 0 0;
  color: #666b65;
  font-size: 8px;
  text-align: center;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 110px;
  padding: 25px max(20px, calc((100% - 1240px) / 2));
  color: var(--muted);
  background: #050705;
  border-top: 4px solid var(--red-dark);
  font-size: 9px;
}

.footer-brand {
  display: grid;
  gap: 3px;
}

.footer-brand strong {
  color: white;
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: 0.05em;
}

.footer-brand span {
  color: var(--gold);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

footer p {
  margin: 0;
}

.mobile-dock {
  display: none;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  max-width: min(380px, calc(100% - 36px));
  padding: 14px 17px;
  color: white;
  background: var(--panel);
  border: 1px solid var(--red);
  box-shadow: 8px 8px 0 rgba(169, 18, 23, 0.48);
  font-size: 10px;
  font-weight: 750;
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.visible {
  opacity: 1;
  transform: none;
}

.success-dialog {
  width: min(450px, calc(100% - 32px));
  padding: 38px;
  color: var(--ink);
  background: var(--cream);
  border: 2px solid white;
  border-radius: 0;
  box-shadow: 14px 14px 0 var(--red-dark), -10px -10px 0 var(--green-dark);
  text-align: center;
}

.success-dialog::backdrop {
  background: rgba(2, 5, 3, 0.82);
  backdrop-filter: blur(6px);
}

.success-mark {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  place-items: center;
  color: white;
  background: var(--green-dark);
  border: 7px double var(--green);
  border-radius: 50%;
  font-size: 20px;
  font-weight: 900;
}

.success-dialog > p,
.success-dialog h2 {
  margin: 0;
}

.success-dialog > p {
  color: var(--red-dark);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.success-dialog h2 {
  margin-top: 8px;
  font-family: var(--display);
  font-size: 42px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.success-summary {
  margin: 20px 0;
  padding: 15px;
  background: #ded4c0;
  border: 1px solid #b9af9b;
  font-size: 11px;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .my-reservations-section {
    grid-template-columns: 1fr;
  }

  .my-reservations-heading h2 br {
    display: none;
  }

  .booking-section {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .booking-intro {
    position: static;
  }
}

@media (max-width: 700px) {
  html {
    scroll-padding-top: 68px;
  }

  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .app-header {
    min-height: 78px;
    padding: 8px 13px;
  }

  .brand-logo {
    width: 96px;
    height: 62px;
  }

  .brand strong {
    font-size: 9px;
    letter-spacing: 0.14em;
  }

  .brand small {
    font-size: 7px;
  }

  .install-button {
    min-height: 34px;
    padding: 7px 9px;
    box-shadow: 3px 3px 0 var(--red-dark);
    font-size: 8px;
  }

  .hero-panel {
    min-height: 600px;
    background:
      radial-gradient(circle at 78% 28%, rgba(223, 36, 42, 0.3), transparent 30%),
      radial-gradient(circle at 50% 55%, rgba(0, 148, 94, 0.24), transparent 40%),
      linear-gradient(155deg, #050806 0%, #0d160f 100%);
  }

  .hero-emblem {
    top: 24%;
    right: -7%;
    width: 88vw;
    max-height: 52%;
    opacity: 0.25;
    transform: none;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    justify-content: end;
    width: calc(100% - 28px);
    padding: 140px 0 102px;
  }

  .section-heading h1 {
    font-size: clamp(66px, 20vw, 82px);
    line-height: 0.78;
  }

  .section-heading h1 em {
    -webkit-text-stroke-width: 1px;
    text-shadow: 4px 4px 0 rgba(223, 36, 42, 0.5);
  }

  .section-copy {
    max-width: 340px;
    margin-top: 22px;
    font-size: 13px;
  }

  .primary-action {
    display: none;
  }

  .schedule-section {
    padding-bottom: 58px;
  }

  .agenda-shell {
    width: calc(100% - 20px);
    margin-top: -50px;
    padding: 18px 10px 14px;
    border-radius: 4px;
  }

  .agenda-heading {
    align-items: start;
    flex-direction: column;
    gap: 8px;
    padding: 8px 5px 0;
  }

  .agenda-heading h2 {
    font-size: 41px;
  }

  .agenda-heading > p {
    display: none;
  }

  .week-toolbar {
    grid-template-columns: 42px 1fr auto 42px;
    min-height: 53px;
  }

  .week-toolbar > strong {
    padding-left: 11px;
    font-size: 14px;
  }

  .calendar-jump {
    min-width: 36px;
    min-height: 36px;
    justify-content: center;
    margin-right: 8px;
    padding: 6px;
  }

  .calendar-jump em {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .week-days {
    grid-template-columns: repeat(7, 76px);
  }

  .week-day {
    min-height: 102px;
    padding: 13px 6px 10px;
  }

  .week-day strong {
    font-size: 31px;
  }

  .week-day em {
    font-size: 7px;
  }

  .notification-card {
    grid-template-columns: auto 1fr;
    padding: 13px;
  }

  .notification-card button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .boards-grid,
  .my-reservations-list {
    grid-template-columns: 1fr;
  }

  .board-card {
    box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.3);
  }

  .board-heading {
    padding: 18px;
  }

  .board-number {
    width: 52px;
    height: 52px;
    font-size: 16px;
  }

  .board-heading h3 {
    font-size: 27px;
  }

  .reservation-item {
    grid-template-areas:
      "time reason"
      "person person"
      "cancel cancel";
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    padding: 16px 14px;
  }

  .reservation-time {
    font-size: 20px;
  }

  .reservation-person {
    padding-top: 7px;
    border-top: 1px solid var(--line);
  }

  .reservation-person strong,
  .reservation-person small {
    white-space: normal;
  }

  .my-reservations-section {
    gap: 30px;
    padding: 58px 14px;
    background: linear-gradient(155deg, var(--red-dark) 0 28%, var(--panel) 28% 100%);
  }

  .my-reservations-heading h2 {
    font-size: 64px;
  }

  .my-reservations-heading h2 br {
    display: initial;
  }

  .my-reservations-heading > p {
    margin-top: 18px;
  }

  .my-reservation-card {
    align-items: stretch;
    flex-direction: column;
  }

  .my-reservation-actions button {
    flex: 1;
  }

  .booking-section {
    width: calc(100% - 28px);
    padding: 76px 0 82px;
  }

  .booking-intro h2 {
    font-size: 64px;
  }

  .booking-form {
    gap: 21px;
    padding: 25px 16px;
    box-shadow: 8px 8px 0 var(--red-dark), -6px -6px 0 var(--green-dark);
  }

  .choice-card > span {
    min-height: 72px;
    padding: 11px;
  }

  .choice-card strong {
    width: 39px;
    height: 39px;
    font-size: 18px;
  }

  .time-range {
    grid-template-columns: 1fr;
  }

  .range-arrow {
    width: 29px;
    height: 29px;
    margin: -5px auto;
    transform: rotate(90deg);
  }

  footer {
    display: grid;
    padding: 27px 18px;
    text-align: center;
  }

  .mobile-dock {
    position: fixed;
    right: 9px;
    bottom: max(9px, env(safe-area-inset-bottom));
    left: 9px;
    z-index: 50;
    display: grid;
    grid-template-columns: 1fr 1.18fr 1fr;
    min-height: 64px;
    padding: 5px;
    color: rgba(255, 255, 255, 0.55);
    background: rgba(5, 8, 6, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.17);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(14px);
  }

  .mobile-dock::before {
    position: absolute;
    top: -3px;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--green) 0 33%, var(--cream) 33% 66%, var(--red) 66%);
    content: "";
  }

  .mobile-dock a {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 2px;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .mobile-dock a span {
    color: white;
    font-size: 16px;
    line-height: 1;
  }

  .mobile-dock .dock-primary {
    color: white;
    background: var(--red-dark);
    border: 1px solid var(--red);
    box-shadow: inset 0 0 14px rgba(223, 36, 42, 0.35);
  }

  .toast {
    right: 12px;
    bottom: calc(86px + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* v13 · identidad Deobriga clara, roja y bronce */
:root {
  --black: #1b1c1d;
  --black-2: #252729;
  --panel: #ffffff;
  --panel-light: #f4efe5;
  --red: #d22630;
  --red-dark: #9f1620;
  --green: #c18b37;
  --green-dark: #81591f;
  --cream: #f4efe5;
  --ivory: #fffdf8;
  --gold: #a66f20;
  --ink: #1b1c1d;
  --muted: #6d6b67;
  --line: rgba(27, 28, 29, 0.13);
}

html {
  scroll-padding-top: 18px;
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 8%, rgba(210, 38, 48, 0.08), transparent 24rem),
    repeating-linear-gradient(135deg, rgba(27, 28, 29, 0.016) 0 1px, transparent 1px 18px),
    #f5f2ec;
}

.hero-panel {
  min-height: 650px;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 52%, rgba(210, 38, 48, 0.14), transparent 27%),
    radial-gradient(circle at 64% 21%, rgba(193, 139, 55, 0.17), transparent 30%),
    linear-gradient(122deg, #fffdf8 0%, #f5efe5 62%, #ebe0ce 100%);
  border-bottom: 1px solid #d9cec0;
}

.hero-panel::before {
  background:
    linear-gradient(90deg, rgba(210, 38, 48, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(27, 28, 29, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, black, transparent 78%);
}

.hero-panel::after {
  width: 42%;
  height: 6px;
  background: linear-gradient(90deg, var(--red-dark), var(--red), #e7585f);
}

.hero-emblem {
  right: 2%;
  width: min(53vw, 720px);
  max-height: 94%;
  opacity: 0.31;
  filter: drop-shadow(0 18px 28px rgba(27, 28, 29, 0.11));
}

.hero-install-actions {
  position: absolute;
  top: 22px;
  right: max(20px, calc((100% - 1240px) / 2));
  z-index: 4;
  display: flex;
  gap: 9px;
}

.install-button {
  color: var(--ink);
  background: rgba(255, 253, 248, 0.88);
  border: 1px solid rgba(27, 28, 29, 0.2);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(27, 28, 29, 0.08);
}

.section-heading {
  align-items: end;
  padding: 105px 0 140px;
}

.section-heading h1 em {
  -webkit-text-stroke-color: var(--red-dark);
  text-shadow: 5px 5px 0 rgba(210, 38, 48, 0.12);
}

.section-copy {
  color: #5f5b55;
}

.hero-choices {
  display: grid;
  gap: 14px;
  justify-items: stretch;
}

.primary-action {
  border-radius: 7px;
  box-shadow: 7px 7px 0 #791018;
}

.secondary-action {
  padding: 12px 15px;
  color: var(--red-dark);
  border: 1px solid rgba(159, 22, 32, 0.35);
  border-radius: 7px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.agenda-shell {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border-color: #ded7cd;
  border-radius: 14px;
  box-shadow: 0 28px 80px rgba(64, 50, 34, 0.15);
}

.agenda-shell::before,
.booking-form::before {
  right: 26px;
  left: 26px;
  height: 4px;
  background: linear-gradient(90deg, var(--red-dark), var(--red));
}

.week-calendar {
  background: #f6f2eb;
  border-color: #dcd4ca;
  border-radius: 10px;
  overflow: hidden;
}

.week-toolbar,
.week-day,
.board-heading,
.reservation-item {
  border-color: #ddd5cb;
}

.week-toolbar > button,
.week-toolbar > strong,
.week-day strong {
  color: var(--ink);
}

.calendar-jump {
  color: #fff;
  background: var(--red-dark);
  border-color: var(--red);
  border-radius: 6px;
}

.week-day {
  color: #77716b;
}

.week-day.today:not(.selected) {
  box-shadow: inset 0 -3px 0 var(--gold);
}

.week-day.selected {
  color: #fff;
  background: var(--red-dark);
  box-shadow: inset 0 0 0 2px var(--red);
}

.week-day.selected strong {
  color: #fff;
}

.notification-card {
  color: var(--ink);
  background: #fff8ea;
  border-color: rgba(166, 111, 32, 0.35);
  border-radius: 9px;
  box-shadow: inset 4px 0 0 var(--gold);
}

.notification-card button {
  background: var(--red-dark);
  border-color: var(--red);
}

.board-card {
  color: var(--ink);
  background: #fff;
  border-color: #ded7cd;
  border-radius: 10px;
  box-shadow: 8px 10px 28px rgba(51, 40, 27, 0.09);
}

.board-card[data-board-card="Diana 2"]::after {
  background: var(--gold);
}

.board-heading,
.board-card[data-board-card="Diana 2"] .board-heading {
  background: linear-gradient(90deg, rgba(210, 38, 48, 0.07), transparent 62%);
}

.board-card[data-board-card="Diana 2"] .board-heading {
  background: linear-gradient(90deg, rgba(193, 139, 55, 0.11), transparent 62%);
}

.board-number {
  box-shadow: 0 0 0 3px #fff;
}

.board-card[data-board-card="Diana 2"] .board-number {
  background: var(--ink);
  border-color: var(--gold);
}

.reservation-time,
.empty-board strong {
  color: var(--ink);
}

.reason-badge.torneo {
  color: var(--ink);
  background: #ead7b7;
  border-color: var(--gold);
}

.empty-board span {
  color: #fff;
  background: var(--ink);
  border-color: var(--gold);
}

.tournament-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(520px, 1.1fr);
  gap: clamp(50px, 8vw, 110px);
  align-items: start;
  padding: 110px max(20px, calc((100% - 1160px) / 2));
  background:
    linear-gradient(112deg, rgba(210, 38, 48, 0.08) 0 36%, transparent 36%),
    #ebe6de;
  border-top: 1px solid #d6cfc5;
  border-bottom: 1px solid #d6cfc5;
}

.tournament-intro h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(66px, 8vw, 108px);
  font-weight: 900;
  line-height: 0.78;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

.tournament-intro > p:not(.eyebrow) {
  max-width: 440px;
  margin: 26px 0 0;
  color: #625e58;
  font-size: 13px;
}

.tournament-schedule {
  display: grid;
  gap: 8px;
  margin-top: 34px;
}

.tournament-schedule article {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 2px 16px;
  align-items: center;
  padding: 13px 15px;
  background: rgba(255, 255, 255, 0.63);
  border-left: 4px solid var(--red);
}

.tournament-schedule span {
  grid-row: 1 / 3;
  color: var(--red-dark);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.tournament-schedule strong {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.04em;
}

.tournament-schedule small {
  color: var(--muted);
  font-size: 9px;
}

.tournament-form,
.booking-form {
  border: 1px solid #d5cbbd;
  border-radius: 12px;
  box-shadow: 12px 14px 0 rgba(159, 22, 32, 0.14);
}

.tournament-form {
  display: grid;
  gap: 22px;
  padding: clamp(26px, 4vw, 42px);
  background: #fffdf8;
}

.form-heading {
  display: grid;
  gap: 5px;
  padding-bottom: 17px;
  border-bottom: 1px solid #ddd4c8;
}

.form-heading span {
  color: var(--red-dark);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.form-heading strong {
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tournament-form select,
.tournament-form textarea,
.tournament-form .form-block > input {
  width: 100%;
  min-height: 54px;
  padding: 12px 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #bcb3a7;
  border-radius: 7px;
  outline: none;
}

.tournament-form textarea {
  min-height: 88px;
  resize: vertical;
}

.tournament-form select:focus,
.tournament-form textarea:focus,
.tournament-form .form-block > input:focus {
  border-color: var(--red-dark);
  box-shadow: 0 0 0 3px rgba(210, 38, 48, 0.12);
}

.field-label small,
.field-help {
  color: var(--muted);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

.field-help {
  display: block;
  margin-top: 7px;
}

.tournament-board-choice .choice-card > span {
  flex-wrap: wrap;
  border-radius: 8px;
}

.choice-card em {
  flex-basis: 100%;
  margin-top: 5px;
  color: var(--muted);
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
}

.choice-card input:disabled + span {
  opacity: 0.45;
  cursor: not-allowed;
}

.choice-card:nth-child(2) input:checked + span {
  border-color: var(--gold);
  box-shadow: 5px 5px 0 rgba(166, 111, 32, 0.16);
}

.choice-card:nth-child(2) input:checked + span strong {
  background: var(--ink);
  border-color: var(--gold);
}

.tournament-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  color: #5d5140;
  background: #f6ead5;
  border-left: 4px solid var(--gold);
}

.tournament-summary span {
  font-size: 21px;
}

.tournament-summary p {
  margin: 0;
  font-size: 10px;
}

.form-message[data-type="success"] {
  color: #5f451b;
  background: #f3e2c2;
  border-left-color: var(--gold);
}

.my-reservations-section {
  color: var(--ink);
  background:
    linear-gradient(110deg, #bd2029 0 29%, #f3eee6 29% 100%);
  border-color: #d6cdc2;
}

.my-reservations-heading > p {
  color: rgba(255, 255, 255, 0.78);
}

.my-reservation-card {
  color: var(--ink);
  background: #fff;
  border-color: #ded6cb;
  box-shadow: inset 4px 0 0 var(--gold), 0 8px 25px rgba(51, 40, 27, 0.08);
}

.no-owned-reservations {
  color: #6e6860;
  background: rgba(255, 255, 255, 0.72);
  border-color: #cbc2b6;
}

.my-reservation-actions button {
  background: var(--ink);
  border-color: #424446;
}

.booking-section {
  color: var(--ink);
}

.booking-form {
  background: #fffdf8;
  box-shadow: 12px 14px 0 rgba(159, 22, 32, 0.14);
}

.booking-form::before {
  background: linear-gradient(90deg, var(--red-dark), var(--red));
}

.segmented-control label:nth-child(2) input:checked + span {
  background: var(--gold);
}

.editing-notice {
  background: var(--ink);
  border-color: var(--gold);
}

.time-card {
  background: #eee7dc;
  border-color: #cbc1b3;
}

footer {
  color: #aaa49d;
  background: #1b1c1d;
}

.mobile-dock::before {
  background: var(--red);
}

@media (max-width: 920px) {
  .tournament-section {
    grid-template-columns: 1fr;
  }

  .tournament-intro h2 {
    font-size: 72px;
  }
}

@media (max-width: 640px) {
  .hero-panel {
    min-height: 610px;
  }

  .hero-install-actions {
    top: 12px;
    right: 14px;
  }

  .hero-emblem {
    top: 27%;
    right: -16%;
    width: 110vw;
    opacity: 0.16;
  }

  .section-heading {
    padding-top: 150px;
  }

  .hero-choices {
    width: 100%;
  }

  .secondary-action {
    background: rgba(255, 255, 255, 0.55);
  }

  .agenda-shell {
    width: calc(100% - 20px);
    padding: 15px;
    border-radius: 10px;
  }

  .tournament-section {
    gap: 38px;
    padding: 72px 14px 82px;
  }

  .tournament-intro h2 {
    font-size: 64px;
  }

  .tournament-schedule article {
    grid-template-columns: 76px 1fr;
  }

  .tournament-form {
    padding: 24px 16px;
    box-shadow: 7px 8px 0 rgba(159, 22, 32, 0.14);
  }

  .my-reservations-section {
    background: linear-gradient(155deg, #bd2029 0 26%, #f3eee6 26% 100%);
  }

  .my-reservations-heading > p {
    color: #6e6860;
  }

  .booking-form {
    box-shadow: 7px 8px 0 rgba(159, 22, 32, 0.14);
  }

  .mobile-dock {
    grid-template-columns: repeat(3, 1fr);
    background: rgba(27, 28, 29, 0.96);
  }
}

/* V15: portada con más carácter y navegación principal por pestañas */
body {
  background: #0c0d0e;
}

.schedule-section {
  padding-bottom: 78px;
  background:
    linear-gradient(180deg, #f5f0e7 0, #ede7dc 60%, #e5ddd0 100%);
}

body[data-current-mode="torneos"] .schedule-section {
  padding-bottom: 0;
}

.hero-panel {
  display: block;
  min-height: 690px;
  color: #171719;
  background:
    radial-gradient(circle at 77% 46%, rgba(223, 36, 42, 0.21) 0 18%, transparent 42%),
    radial-gradient(circle at 93% 9%, rgba(203, 168, 95, 0.34), transparent 27%),
    linear-gradient(124deg, #fffdf8 0 54%, #efe4d2 54% 100%);
  border-bottom: 0;
}

.hero-panel::before {
  inset: 0;
  background:
    linear-gradient(118deg, transparent 0 58%, rgba(17, 17, 19, 0.055) 58% 59%, transparent 59%),
    repeating-linear-gradient(90deg, transparent 0 89px, rgba(18, 18, 20, 0.03) 90px),
    repeating-linear-gradient(0deg, transparent 0 89px, rgba(18, 18, 20, 0.024) 90px);
  background-size: auto;
  mask-image: none;
}

.hero-panel::after {
  right: 0;
  left: auto;
  width: 39%;
  height: 11px;
  background: linear-gradient(90deg, #aa1016, var(--red) 62%, #f2555a);
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(380px, 0.82fr) minmax(520px, 1.18fr);
  gap: clamp(30px, 5vw, 80px);
  align-items: center;
  width: min(1240px, calc(100% - 48px));
  min-height: 690px;
  margin: 0 auto;
  padding: 68px 0 108px;
}

.hero-copy {
  position: relative;
  z-index: 3;
}

.hero-copy .kicker {
  justify-content: flex-start;
  margin: 0 0 24px;
  color: #9c151b;
}

.hero-copy .kicker span {
  background: var(--red);
}

.hero-copy h1 {
  margin: 0;
  color: #171719;
  font-family: var(--display);
  font-size: clamp(80px, 8.8vw, 132px);
  font-weight: 900;
  line-height: 0.76;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.hero-copy h1 em {
  color: var(--red);
  font-style: normal;
  text-shadow: 4px 4px 0 #f5c9b0;
}

.hero-copy > p:not(.kicker) {
  max-width: 520px;
  margin: 30px 0 0;
  color: #5e5a54;
  font-size: 15px;
  font-weight: 650;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.hero-tags span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  color: #252326;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(26, 25, 27, 0.13);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.hero-tags i {
  width: 7px;
  height: 7px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(223, 36, 42, 0.12);
}

.hero-logo-stage {
  position: relative;
  display: grid;
  min-height: 520px;
  place-items: center;
  isolation: isolate;
}

.hero-logo-stage::before {
  position: absolute;
  width: min(520px, 38vw);
  aspect-ratio: 1;
  background: var(--red);
  border-radius: 50%;
  box-shadow:
    25px 25px 0 rgba(203, 168, 95, 0.88),
    -24px -22px 0 rgba(255, 255, 255, 0.76);
  content: "";
  opacity: 0.91;
  transform: rotate(-7deg);
}

.hero-logo-stage::after {
  display: none;
  content: "";
}

.hero-logo-stage .hero-emblem {
  position: relative;
  top: auto;
  right: auto;
  z-index: 3;
  width: min(640px, 48vw);
  max-height: none;
  object-fit: contain;
  opacity: 1;
  filter: drop-shadow(0 20px 26px rgba(18, 17, 19, 0.28));
  transform: rotate(-1deg);
}

.hero-orbit {
  position: absolute;
  z-index: 2;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-one {
  width: min(590px, 43vw);
  aspect-ratio: 1;
}

.orbit-two {
  width: min(665px, 49vw);
  aspect-ratio: 1;
  border-color: rgba(156, 21, 27, 0.25);
}

.hero-install-actions {
  top: 20px;
}

.admin-entry {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 40px;
  padding: 8px 13px;
  color: #272426;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(23, 23, 25, 0.15);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(56, 38, 27, 0.12);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.admin-entry:hover {
  color: white;
  background: #171719;
  transform: translateY(-2px);
}

.admin-entry > span {
  color: var(--red);
  font-size: 15px;
  line-height: 1;
}

.mode-switcher {
  position: relative;
  z-index: 8;
  width: min(1240px, calc(100% - 48px));
  margin: -65px auto 42px;
}

.mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 8px;
  background: #171719;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(48, 32, 22, 0.28);
}

.mode-tab {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  min-height: 105px;
  padding: 20px 24px;
  color: rgba(255, 255, 255, 0.65);
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.mode-tab:hover {
  color: white;
  transform: translateY(-2px);
}

.mode-tab.active {
  color: white;
  background: linear-gradient(120deg, #ab1117, var(--red));
  box-shadow: 0 12px 26px rgba(223, 36, 42, 0.27);
}

.mode-tab:nth-child(2).active {
  color: #171719;
  background: linear-gradient(120deg, #e2c27f, var(--gold));
  box-shadow: 0 12px 26px rgba(203, 168, 95, 0.25);
}

.mode-tab .mode-icon {
  font-family: var(--display);
  font-size: 33px;
  line-height: 1;
  opacity: 0.52;
}

.mode-tab > span:nth-child(2) {
  display: grid;
  gap: 3px;
}

.mode-tab strong {
  font-family: var(--display);
  font-size: 27px;
  font-weight: 900;
  letter-spacing: 0.025em;
  line-height: 1;
  text-transform: uppercase;
}

.mode-tab small {
  font-size: 10px;
  font-weight: 750;
}

.mode-tab em {
  font-size: 27px;
  font-style: normal;
}

.agenda-shell {
  margin: 0 auto;
}

.tabbed-tournament-section {
  min-height: 700px;
  padding-top: 88px;
  background:
    radial-gradient(circle at 88% 15%, rgba(223, 36, 42, 0.12), transparent 25%),
    linear-gradient(112deg, rgba(203, 168, 95, 0.15) 0 36%, transparent 36%),
    #eee8dd;
  border-top: 0;
}

.mobile-dock a.active {
  color: white;
  background: rgba(223, 36, 42, 0.18);
}

@media (max-width: 980px) {
  .hero-layout {
    grid-template-columns: minmax(330px, 0.9fr) minmax(400px, 1.1fr);
  }

  .hero-copy h1 {
    font-size: clamp(70px, 9.6vw, 94px);
  }
}

@media (max-width: 760px) {
  .schedule-section {
    padding-bottom: 64px;
  }

  .hero-panel {
    min-height: 780px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 780px;
    padding: 62px 0 105px;
    text-align: center;
  }

  .hero-logo-stage {
    order: -1;
    min-height: 365px;
  }

  .hero-logo-stage::before {
    width: min(315px, 78vw);
  }

  .hero-logo-stage::after {
    display: none;
  }

  .hero-logo-stage .hero-emblem {
    position: relative;
    top: auto;
    right: auto;
    width: min(350px, 90vw);
    max-height: none;
    opacity: 1;
    transform: rotate(-1deg);
  }

  .orbit-one {
    width: min(350px, 86vw);
  }

  .orbit-two {
    width: min(390px, 96vw);
  }

  .hero-copy .kicker {
    justify-content: center;
    margin-bottom: 18px;
    font-size: 8px;
    letter-spacing: 0.17em;
  }

  .hero-copy .kicker span {
    width: 24px;
    flex: 0 0 24px;
  }

  .hero-copy h1 {
    font-size: clamp(64px, 19vw, 84px);
  }

  .hero-copy > p:not(.kicker) {
    max-width: 360px;
    margin: 23px auto 0;
    font-size: 13px;
  }

  .hero-tags {
    justify-content: center;
  }

  .mode-switcher {
    width: calc(100% - 24px);
    margin: -56px auto 30px;
  }

  .mode-tabs {
    gap: 6px;
    padding: 6px;
  }

  .mode-tab {
    grid-template-columns: 1fr auto;
    gap: 6px;
    min-height: 94px;
    padding: 14px 12px;
  }

  .mode-tab .mode-icon,
  .mode-tab small {
    display: none;
  }

  .mode-tab strong {
    font-size: clamp(19px, 5.4vw, 24px);
  }

  .mode-tab em {
    font-size: 20px;
  }

  .agenda-shell {
    width: calc(100% - 24px);
  }

  .tabbed-tournament-section {
    padding-top: 68px;
  }
}

@media (max-width: 420px) {
  .hero-panel,
  .hero-layout {
    min-height: 740px;
  }

  .hero-layout {
    width: calc(100% - 28px);
    padding-top: 55px;
  }

  .hero-logo-stage {
    min-height: 330px;
  }

  .hero-copy h1 {
    font-size: 62px;
  }

  .hero-tags span {
    font-size: 8px;
  }

  .mode-tab {
    min-height: 84px;
    padding: 12px 9px;
  }

  .mode-tab strong {
    font-size: 18px;
  }
}

/* v14 · reservas y torneos en pantallas independientes */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.hero-panel {
  min-height: 780px;
}

.section-heading {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  width: min(920px, calc(100% - 40px));
  padding: 60px 0 150px;
  text-align: center;
}

.section-heading .hero-emblem {
  position: static;
  width: min(620px, 78vw);
  max-height: none;
  opacity: 1;
  filter: drop-shadow(0 18px 30px rgba(27, 28, 29, 0.12));
  transform: none;
}

.section-heading .kicker {
  justify-content: center;
  margin-top: -4px;
}

.section-heading .section-copy {
  max-width: 590px;
  margin: 0;
  font-size: 15px;
}

.section-heading .hero-choices {
  display: flex;
  gap: 16px;
  align-items: stretch;
  justify-content: center;
  margin-top: 12px;
}

.section-heading .primary-action {
  margin: 0;
}

.section-heading .secondary-action {
  display: grid;
  min-width: 190px;
  place-items: center;
  background: rgba(255, 255, 255, 0.58);
}

.tournament-page-main {
  overflow: hidden;
}

.tournament-page-header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(48px, 7vw, 100px);
  align-items: center;
  min-height: 560px;
  padding: 80px max(20px, calc((100% - 1160px) / 2));
  background:
    radial-gradient(circle at 24% 48%, rgba(210, 38, 48, 0.12), transparent 28%),
    linear-gradient(122deg, #fffdf8, #eee4d6);
  border-bottom: 1px solid #d6cfc5;
}

.tournament-page-header::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 6px;
  background: var(--red);
  content: "";
}

.tournament-page-header > img {
  width: 100%;
  max-width: 520px;
  justify-self: center;
  filter: drop-shadow(0 16px 24px rgba(27, 28, 29, 0.1));
}

.tournament-page-header h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(70px, 8vw, 112px);
  font-weight: 900;
  line-height: 0.78;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

.tournament-page-header p:last-child {
  max-width: 520px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.back-to-bookings {
  position: absolute;
  top: 24px;
  left: max(20px, calc((100% - 1160px) / 2));
  padding: 9px 13px;
  color: var(--red-dark);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(159, 22, 32, 0.24);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tournament-page-section {
  background: #f2eee7;
}

.tournament-page-body footer a {
  color: #fff;
  font-weight: 800;
}

@media (max-width: 920px) {
  .tournament-page-header {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 90px;
    text-align: center;
  }

  .tournament-page-header > img {
    max-width: 440px;
  }

  .tournament-page-header .kicker {
    justify-content: center;
  }

  .tournament-page-header p:last-child {
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .hero-panel {
    min-height: 660px;
  }

  .section-heading {
    gap: 14px;
    width: calc(100% - 28px);
    padding: 88px 0 125px;
  }

  .section-heading .hero-emblem {
    position: static;
    top: auto;
    right: auto;
    width: min(100%, 370px);
    max-height: none;
    opacity: 1;
    transform: none;
  }

  .section-heading .kicker {
    margin: 0;
  }

  .section-heading .section-copy {
    max-width: 340px;
    font-size: 13px;
  }

  .section-heading .hero-choices {
    display: grid;
    width: 100%;
    gap: 10px;
    margin-top: 8px;
  }

  .section-heading .primary-action,
  .section-heading .secondary-action {
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 52px;
    justify-content: center;
  }

  .tournament-page-header {
    min-height: 570px;
    padding: 84px 18px 65px;
  }

  .tournament-page-header > img {
    width: min(100%, 350px);
  }

  .tournament-page-header h1 {
    font-size: 64px;
  }

  .back-to-bookings {
    top: 16px;
    left: 16px;
  }
}

/* V15 debe prevalecer sobre la antigua portada independiente. */
@media (min-width: 761px) {
  .hero-panel {
    min-height: 690px;
  }
}

@media (max-width: 760px) {
  .hero-panel {
    min-height: 780px;
  }

  .hero-install-actions {
    top: 12px;
    right: 12px;
  }

  .admin-entry {
    min-height: 36px;
    padding: 7px 10px;
  }
}

@media (max-width: 420px) {
  .hero-panel {
    min-height: 740px;
  }
}
