:root {
  --ink: #172033;
  --muted: #64748b;
  --line: #dbe3ef;
  --paper: #ffffff;
  --bg: #f4f8fd;
  --brand: #275f8f;
  --brand-2: #dc2626;
  --accent: #f8c400;
  --night: #0b1f33;
  --night-2: #173f63;
  --ok: #15803d;
  --warn: #9a6700;
  --bad: #b42318;
  --public-gutter: clamp(32px, 4vw, 72px);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
}
a { color: var(--brand); text-decoration: none; }
header {
  background: var(--night);
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: white;
  position: sticky;
  top: 0;
  z-index: 10;
}
.bar, main, .footer-inner { width: 100%; max-width: none; margin: 0; padding: 18px var(--public-gutter); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; color: white; }
.brand img { display: block; width: 212px; height: 48px; }
nav { display: flex; align-items: center; gap: clamp(18px, 2vw, 30px); flex-wrap: wrap; }
nav a { color: rgba(255,255,255,.82); font-weight: 700; }
.mega-nav { position: relative; }
.mega-nav summary { list-style: none; }
.mega-nav summary::-webkit-details-marker { display: none; }
.mega-trigger {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.82);
  font: inherit;
  font-weight: 700;
}
.mega-trigger::after { content: "▾"; margin-left: 8px; font-size: 12px; }
.mega-trigger:hover,
.mega-nav[open] .mega-trigger { color: white; }
.mega-panel {
  position: fixed;
  top: 84px;
  left: 50%;
  z-index: 50;
  display: none;
  width: min(1120px, calc(100vw - 72px));
  grid-template-columns: 330px 1fr;
  gap: 0;
  padding: 10px;
  border: 1px solid rgba(219,227,239,.28);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(6,18,31,.98), rgba(10,31,51,.98));
  box-shadow: 0 30px 90px rgba(0,0,0,.42);
  transform: translateX(-50%);
}
.mega-nav[open] .mega-panel { display: grid; }
.mega-panel::before {
  content: "";
  position: absolute;
  top: -10px;
  left: clamp(130px, 26vw, 420px);
  width: 18px;
  height: 18px;
  background: #0a1f33;
  border-left: 1px solid rgba(255,255,255,.12);
  border-top: 1px solid rgba(255,255,255,.12);
  transform: translateX(-50%) rotate(45deg);
}
.mega-feature {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: end;
  min-height: 100%;
  padding: 26px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(7,15,27,.1), rgba(7,15,27,.92)),
    url('assets/hero-dorsalia-runners.png');
  background-size: cover;
  background-position: center;
}
.mega-feature strong {
  margin-top: 8px;
  color: white;
  font-size: 28px;
  line-height: 1.02;
}
.mega-feature p { margin: 8px 0 14px; color: rgba(255,255,255,.78); line-height: 1.55; }
.mega-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, .85fr);
  align-content: start;
  gap: 26px;
  padding: 26px 28px;
}
.mega-content::before { display: none; }
.mega-content span { display: block; margin-bottom: 12px; color: var(--accent); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.mega-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mega-grid a {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 66px;
  padding: 13px 16px 13px 46px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 12px;
  background: rgba(255,255,255,.055);
  color: rgba(255,255,255,.88);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.mega-grid a::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 18px;
  width: 8px;
  height: 30px;
  border-radius: 999px;
  background: rgba(248,196,0,.78);
}
.mega-grid strong {
  display: block;
  color: inherit;
  font-size: 15px;
  line-height: 1.2;
}
.mega-grid em {
  display: block;
  margin-top: 3px;
  color: rgba(255,255,255,.6);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}
.mega-grid a small {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  margin-left: auto;
  min-width: 24px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.72);
  font-size: 11px;
  text-align: center;
}
.province-grid {
  grid-template-columns: 1fr;
  gap: 8px;
}
.province-grid a {
  min-height: 44px;
  padding: 10px 48px 10px 38px;
}
.province-grid a::before {
  left: 15px;
  top: 15px;
  width: 6px;
  height: 16px;
}
.mega-grid a:hover,
.mega-grid a.active {
  border-color: rgba(255,210,31,.7);
  background: rgba(255,210,31,.18);
  color: white;
}
.mega-grid a:hover::before,
.mega-grid a.active::before { background: white; }
.hero {
  width: 100vw;
  min-height: 520px;
  margin: -18px calc(50% - 50vw) 0;
  background:
    linear-gradient(90deg, rgba(8,12,20,.96), rgba(8,12,20,.74) 38%, rgba(8,12,20,.18) 70%),
    url('assets/hero-dorsalia-runners.png');
  background-size: cover;
  background-position: center;
  color: white;
  display: flex;
  align-items: center;
}
.hero-slider {
  position: relative;
  width: 100vw;
  min-height: 520px;
  margin: -18px calc(50% - 50vw) 0;
  overflow: hidden;
  background: var(--night);
}
.hero-slider .hero {
  position: absolute;
  inset: 0;
  width: auto;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .7s ease;
}
.hero-slider .hero.active {
  opacity: 1;
  pointer-events: auto;
}
.hero-inner { width: 100%; max-width: none; margin: 0; padding: 104px var(--public-gutter) 116px; }
.hero h1 { max-width: 920px; margin: 8px 0 16px; font-size: clamp(42px, 7vw, 86px); line-height: .96; letter-spacing: 0; }
.hero p { max-width: 720px; font-size: 21px; line-height: 1.55; margin: 0; color: rgba(255,255,255,.86); }
.eyebrow { display: inline-block; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: 0; text-transform: uppercase; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.btn.light { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.12); color: white; }
.public-search {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(190px, 260px) auto;
  gap: 10px;
  max-width: 960px;
  margin-top: 28px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 8px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 46px rgba(4, 12, 24, .25);
}
.public-search.inline {
  margin: 0;
  max-width: 1120px;
  border-color: var(--line);
  box-shadow: none;
}
.public-search input,
.public-search select {
  min-height: 46px;
  border-color: #d8e1eb;
  background: white;
}
.public-search button { min-height: 46px; }
.category-band {
  margin: 0 calc(-1 * var(--public-gutter));
  padding: 24px var(--public-gutter);
  background: white;
  border-bottom: 1px solid var(--line);
}
.discovery-band {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 24px;
  align-items: start;
}
.discovery-group {
  min-width: 0;
}
.category-band.compact { border-top: 1px solid var(--line); }
.events-search-band {
  margin: 0 calc(-1 * var(--public-gutter));
  padding: 22px var(--public-gutter);
  background: #f4f8fc;
  border-bottom: 1px solid var(--line);
}
.category-band h2 { margin: 0 0 12px; font-size: 20px; }
.category-row { display: flex; flex-wrap: wrap; gap: 10px; }
.category-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafb;
  color: var(--ink);
  font-weight: 800;
}
.category-chip small {
  margin-left: 8px;
  min-width: 24px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(23,32,51,.08);
  color: inherit;
  font-size: 11px;
}
.category-chip.active, .category-chip:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
}
.province-select-form select {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--ink);
  font-weight: 800;
}
.page-head {
  margin: -18px calc(-1 * var(--public-gutter)) 0;
  padding: 48px var(--public-gutter) 26px;
  background: linear-gradient(120deg, var(--night), var(--night-2));
  color: white;
}
.page-head h1 { margin: 8px 0; font-size: clamp(34px, 5vw, 58px); }
.page-head p { margin: 0; color: rgba(255,255,255,.78); }
.events-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 34px 0;
}
.featured-events {
  max-width: 1280px;
  margin: 32px auto 0;
  padding: 30px;
  border: 1px solid rgba(248,196,0,.38);
  border-radius: 14px;
  background:
    radial-gradient(circle at 88% 12%, rgba(248,196,0,.25), transparent 27%),
    linear-gradient(135deg, rgba(11,31,51,.98), rgba(23,63,99,.96));
  color: white;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .18);
}
.featured-events .section-title h2,
.featured-events .section-title p { color: white; }
.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.featured-card {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  min-height: 230px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  background: rgba(255,255,255,.08);
}
.featured-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  border-radius: 9px;
}
.featured-card h3 {
  margin: 10px 0 8px;
  color: white;
  font-size: 26px;
  line-height: 1.08;
}
.featured-card p { color: rgba(255,255,255,.76); }
.featured-card .event-meta { color: rgba(255,255,255,.82); }
.featured-label {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--accent);
  color: #172033;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.featured-label.small {
  min-height: 22px;
  margin-top: 4px;
  font-size: 11px;
}
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.section-title h2 { margin: 4px 0 0; font-size: 30px; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.event-list-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: center;
}
.card {
  background: var(--paper);
  border: 1px solid #e3e7ec;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(15, 23, 42, .08);
}
.event-card { transition: transform .16s ease, box-shadow .16s ease; }
.event-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(15, 23, 42, .14); }
.card-body { padding: 16px; display: grid; gap: 10px; }
.card-body h2 { margin: 0; font-size: 20px; line-height: 1.15; }
.card-body p { margin: 0; color: var(--muted); line-height: 1.55; }
.poster { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: #e6eaee; }
.event-meta { font-size: 14px; }
.admin-poster {
  width: 58px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #e6eaee;
}
.badge { display: inline-block; padding: 5px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge.open { color: var(--ok); background: #e6f4ec; }
.badge.closed { color: var(--bad); background: #f8e8e8; }
.badge.soon { color: var(--warn); background: #fff3d0; }
.event-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.card-body > .badge { justify-self: start; }
.type-badge,
.tag-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.type-badge { background: #0d2f63; color: white; }
.tag-badge { background: #eaf2ff; color: #1e3a8a; }
.event-card .event-badges { min-height: 26px; }
.event-detail-badges .type-badge { background: rgba(255,255,255,.16); color: white; }
.event-detail-badges .tag-badge { background: rgba(255,255,255,.1); color: rgba(255,255,255,.86); }
.status-pill { display: inline-block; min-width: 86px; padding: 5px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; text-align: center; }
.status-pill.draft { color: #4b5563; background: #eef0f3; }
.status-pill.pending { color: #8a4b00; background: #fff0cf; }
.status-pill.published { color: var(--ok); background: #e6f4ec; }
.status-pill.rejected { color: var(--bad); background: #f8e8e8; }
.btn, button, input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--brand);
  border-radius: 6px;
  background: var(--brand);
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease, border-color .14s ease;
}
.btn:hover, button:hover, input[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(39, 95, 143, .18);
}
.btn.secondary, button.secondary { background: white; color: var(--brand); border-color: #bfd1f8; }
.btn.assistant-config { background: #e7b64a; color: #fff; border-color: #d39a22; }
.btn.assistant-config:hover { background: #dba52e; border-color: #b87b0e; }
.btn.secondary.light { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.12); color: white; }
.btn.danger, button.danger { background: var(--brand-2); border-color: var(--brand-2); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.inline-form { display: inline-flex; margin: 0; }
.status-form { display: grid; gap: 7px; min-width: 150px; margin: 0; }
.status-form select { min-height: 34px; padding: 6px 8px; }
.star-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #d7e1ee;
  border-radius: 999px;
  background: #fff;
  color: #9aa8ba;
  font-size: 22px;
  line-height: 1;
}
.star-toggle:hover,
.star-toggle.active {
  border-color: rgba(248,196,0,.8);
  background: rgba(248,196,0,.14);
  color: #d99b00;
}
.star-toggle.readonly {
  cursor: default;
  pointer-events: none;
  opacity: .72;
}
.event-admin-row td:first-child {
  box-shadow: inset 6px 0 0 var(--event-row-color, #dbeafe);
}
.event-admin-row {
  background: color-mix(in srgb, var(--event-row-color, #dbeafe) 28%, white);
}
.event-color-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  border: 1px solid rgba(23, 32, 51, .16);
  border-radius: 999px;
  vertical-align: -2px;
}
.sales-summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  padding: 7px 10px;
  border: 1px solid rgba(39, 95, 143, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: #172033;
  font-size: .86rem;
  font-weight: 800;
  cursor: help;
}
.locked-test-rows {
  opacity: .78;
}
.locked-test-rows input:disabled,
.locked-test-rows select:disabled,
.locked-test-rows button:disabled {
  cursor: not-allowed;
}
.queue-panel {
  max-width: 760px;
  margin: 48px auto;
  text-align: center;
}
.queue-number {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  min-width: 210px;
  margin: 22px 0;
  padding: 22px 30px;
  border: 1px solid rgba(39, 95, 143, .16);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  box-shadow: 0 18px 40px rgba(39, 95, 143, .12);
}
.queue-number span {
  color: #64748b;
  font-size: .88rem;
  font-weight: 700;
}
.queue-number strong {
  color: #172033;
  font-size: clamp(2.6rem, 8vw, 5rem);
  line-height: 1;
}
.color-select option[value="#dbeafe"] { background: #dbeafe; }
.color-select option[value="#e0f2fe"] { background: #e0f2fe; }
.color-select option[value="#ede9fe"] { background: #ede9fe; }
.color-select option[value="#fef3c7"] { background: #fef3c7; }
.color-select option[value="#dcfce7"] { background: #dcfce7; }
.color-select option[value="#ffe4e6"] { background: #ffe4e6; }
.color-select option[value="#ffedd5"] { background: #ffedd5; }
.color-select option[value="#f1f5f9"] { background: #f1f5f9; }
.internal-body {
  --internal-ink: #172033;
  --internal-muted: #64748b;
  --internal-line: #dbe3ef;
  --internal-bg: #f4f8fd;
  --internal-green: #275f8f;
  --internal-gold: #f8c400;
  background: var(--internal-bg);
  color: var(--internal-ink);
}
.internal-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  width: 228px;
  padding: 22px 16px;
  border-right: 1px solid var(--internal-line);
  background: #ffffff;
  box-shadow: 10px 0 28px rgba(32, 59, 55, .04);
}
.internal-brand {
  display: inline-flex;
  align-items: center;
  margin-bottom: 22px;
}
.internal-brand img {
  display: block;
  width: 164px;
  height: auto;
}
.internal-nav {
  display: grid;
  align-items: start;
  gap: 6px;
}
.internal-nav span {
  margin: 0 0 6px;
  color: var(--internal-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.internal-nav a,
.internal-sidebar-foot a {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--internal-ink);
  font-size: 13px;
  font-weight: 700;
}
.internal-nav a:hover,
.internal-nav a.active {
  background: #eaf2ff;
  color: var(--internal-green);
}
.internal-nav a.active {
  box-shadow: inset 3px 0 0 var(--internal-gold);
}
.internal-sidebar-foot {
  display: grid;
  gap: 2px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--internal-line);
}
.internal-sidebar-foot a {
  min-height: 36px;
  color: var(--internal-muted);
  font-weight: 600;
}
.internal-sidebar-foot a:hover {
  color: var(--internal-green);
  background: #f0f6ff;
}
.internal-workspace {
  min-height: 100vh;
  margin-left: 228px;
}
.internal-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 62px;
  padding: 0 28px;
  border-bottom: 1px solid var(--internal-line);
  background: rgba(248, 251, 255, .94);
  color: var(--internal-ink);
  backdrop-filter: blur(12px);
}
.internal-topbar span,
.internal-user small {
  display: block;
  color: var(--internal-muted);
  font-size: 12px;
  font-weight: 700;
}
.internal-topbar strong {
  display: block;
  margin-top: 3px;
  font-size: 17px;
}
.internal-user {
  color: var(--internal-ink);
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}
.internal-main {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 26px 28px 40px;
}
.internal-main > h1 {
  margin: 0 0 14px;
  color: var(--internal-ink);
  font-size: 28px;
  line-height: 1.12;
}
.internal-body .panel,
.internal-body table {
  border-color: var(--internal-line);
  box-shadow: 0 12px 30px rgba(32, 59, 55, .06);
}
.internal-body .panel {
  background: #ffffff;
  border-radius: 10px;
  padding: 18px;
  margin: 16px 0;
}
.internal-body table {
  overflow: hidden;
  border: 1px solid var(--internal-line);
  border-radius: 10px;
  border-collapse: separate;
  border-spacing: 0;
}
.internal-body th {
  background: #f8fbff;
  color: var(--internal-muted);
}
.internal-body th,
.internal-body td {
  border-bottom-color: var(--internal-line);
  padding: 9px 10px;
  font-size: 13px;
  line-height: 1.45;
}
.internal-body tr:last-child td { border-bottom: 0; }
.internal-body th {
  font-size: 11px;
}
.internal-body .btn,
.internal-body button,
.internal-body input[type="submit"] {
  border-color: var(--internal-green);
  background: var(--internal-green);
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
}
.internal-body .btn.secondary,
.internal-body button.secondary {
  border-color: #bfd1f8;
  background: #ffffff;
  color: var(--internal-green);
}
.internal-body .btn:hover,
.internal-body button:hover,
.internal-body input[type="submit"]:hover {
  box-shadow: 0 10px 22px rgba(39, 95, 143, .16);
}
.internal-body form { gap: 12px; }
.internal-body .form-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px 20px;
}
.internal-body label {
  gap: 5px;
  font-size: 12px;
}
.internal-body input,
.internal-body select,
.internal-body textarea {
  min-height: 38px;
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.45;
}
.internal-body textarea { min-height: 110px; }
.economics-hero {
  max-width: 980px;
  margin-bottom: 22px;
  padding: 28px 30px;
  border: 1px solid #cfe0f0;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffffff, #edf6ff);
}
.economics-hero h1 { margin: 5px 0 8px; }
.economics-hero p { max-width: 780px; margin: 0; color: var(--internal-muted); }
.economics-status {
  display: flex;
  gap: 10px 16px;
  align-items: baseline;
  flex-wrap: wrap;
  margin-top: 20px;
  padding: 12px 14px;
  border-left: 4px solid var(--internal-gold);
  background: #fff8dc;
  color: #5f4a00;
  font-size: 13px;
}
.economics-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 1120px;
  margin: 0 0 22px;
}
.economics-flow article {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 17px;
  border: 1px solid var(--internal-line);
  border-radius: 12px;
  background: #fff;
}
.economics-flow article > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--internal-green);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}
.economics-flow strong { font-size: 14px; }
.economics-flow p { margin: 3px 0 0; color: var(--internal-muted); font-size: 12px; line-height: 1.5; }
.economics-form { max-width: 1120px; }
.economics-section { padding: 24px 0; border-top: 1px solid var(--internal-line); }
.economics-section:first-child { padding-top: 0; border-top: 0; }
.economics-section > div:first-child > h2 { margin: 4px 0 5px; font-size: 19px; }
.economics-section > div:first-child > p { max-width: 760px; margin: 0 0 18px; color: var(--internal-muted); font-size: 13px; }
.economics-target { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .7fr); gap: 22px; align-items: end; }
.economics-target > label { margin-bottom: 0; }
.economics-simulator { padding-bottom: 0; }
.economics-result { max-width: 1120px; }
.economics-result h2 { margin: 4px 0 6px; }
.economics-result > div > p { margin: 0 0 18px; color: var(--internal-muted); }
.economics-result td:nth-child(2) { color: var(--internal-muted); font-size: 12px; }
.economics-result .amount { white-space: nowrap; font-weight: 800; color: var(--internal-ink); }
.economics-note { margin: 16px 0 0; padding: 12px 14px; border-radius: 8px; background: #f8fafc; color: var(--internal-muted); font-size: 13px; }
.economics-history { max-width: 1120px; }
.internal-body .panel form > h2 {
  margin: 10px 0 0;
  padding: 12px 14px;
  border: 1px solid #d9e6f3;
  border-radius: 12px;
  background: #eef6ff;
  color: var(--internal-ink);
  font-size: 17px;
}
.internal-body .panel form > .form-help {
  margin: 0;
  max-width: 980px;
  padding: 0 2px;
}
.internal-body .panel > .actions,
.internal-body .panel form > .actions {
  align-items: center;
  gap: 10px;
}
.internal-body .panel > .actions:first-child {
  margin-bottom: 18px;
}
.internal-body label small,
.internal-body .form-help {
  color: var(--internal-muted);
  font-size: 12px;
  line-height: 1.45;
}
.internal-body label:has(input:required)::first-line {
  color: var(--internal-ink);
}
.internal-body .type-specific-note {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  padding: 12px 14px;
  border-left: 4px solid var(--internal-gold);
  border-radius: 6px;
  background: #fff9e7;
  color: #624d08;
  font-size: 13px;
  line-height: 1.5;
}
.internal-body .form-section-label {
  display: grid;
  grid-column: 1 / -1;
  gap: 2px;
  margin: 4px 0 -2px;
  padding-top: 16px;
  border-top: 1px solid var(--internal-line);
}
.internal-body .form-section-label strong {
  color: var(--internal-ink);
  font-size: 15px;
}
.internal-body .form-section-label span {
  color: var(--internal-muted);
  font-size: 12px;
}
.internal-body [hidden] {
  display: none !important;
}
.internal-body .event-form-guide {
  margin: 4px 0 18px;
}
.internal-body .sale-groups + .actions {
  margin-bottom: 20px;
}
.internal-body .event-test-grid > label {
  min-width: 0;
}
.internal-body .event-test-grid input,
.internal-body .event-test-grid select {
  width: 100%;
}
.internal-body .participant {
  padding: 22px;
  margin-bottom: 22px;
}
.internal-body .participant h3 {
  margin-bottom: 10px;
  font-size: 15px;
}
.event-test-grid {
  align-items: start;
}
#test-rows {
  counter-reset: eventTest;
}
.test-row {
  position: relative;
  counter-increment: eventTest;
  border-color: #d7e2ee;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  box-shadow: 0 14px 32px rgba(20, 43, 74, .07);
}
.test-row::before {
  content: "Denominación " counter(eventTest);
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0 0 16px;
  padding: 0 11px;
  border-radius: 999px;
  background: #e8f1fb;
  color: var(--internal-green);
  font-size: 12px;
  font-weight: 800;
}
.sale-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 0 0 14px;
  padding: 16px;
  border: 1px solid #dce6f2;
  border-radius: 8px;
  background: #f8fbff;
}
.internal-body .event-test-grid,
.event-test-grid {
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  gap: 20px 22px;
}
.checkbox-field {
  align-content: start;
  align-self: start;
  min-height: auto;
  padding: 10px 12px;
  border: 1px solid #dce6f2;
  border-radius: 10px;
  background: rgba(255,255,255,.72);
}
.checkbox-field input[type="checkbox"] {
  margin-top: 6px;
}
.seat-upload-field {
  grid-column: span 2;
  align-self: start;
  padding: 12px;
  border: 1px dashed #c9d8e8;
  border-radius: 10px;
  background: #fbfdff;
}
.clear-seats-field,
.delete-test-field {
  min-height: 100%;
}
.delete-test-field {
  border-color: #f2c4bf;
  background: #fff8f7;
  color: #9f1d16;
}
.test-row-actions {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e1e9f2;
}
.access-control-panel {
  max-width: 1180px;
}
.access-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0 18px;
}
.access-stats span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--internal-line);
  border-radius: 999px;
  background: #f8fbff;
  color: var(--internal-muted);
  font-size: 13px;
  font-weight: 700;
}
.access-stats strong {
  color: var(--internal-ink);
  font-size: 16px;
}
.access-camera {
  display: grid;
  gap: 12px;
  margin: 16px 0;
}
.access-camera video {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--internal-line);
  border-radius: 14px;
  background: #0f172a;
  object-fit: cover;
}
.manual-qr-form {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--internal-line);
}
.access-list-title {
  margin-top: 22px;
}
.bib-page {
  position: relative;
  width: min(100%, 1050px);
  aspect-ratio: 210 / 148;
  margin: 18px auto;
  overflow: hidden;
  border: 1px solid var(--line);
  background-color: #fff;
  background-size: cover;
  background-position: center;
}
.bib-print-area {
  display: grid;
  gap: 18px;
}
.bib-lockup {
  position: absolute;
  left: 28px;
  right: 28px;
  top: 50%;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 4px;
  transform: translateY(-50%);
  color: #111827;
  text-align: center;
  text-shadow: 0 2px 12px rgba(255,255,255,.82);
}
.bib-number {
  color: #111827;
  font-size: clamp(96px, 18vw, 220px);
  font-weight: 900;
  line-height: 1;
}
.bib-alias,
.bib-test-name {
  color: #111827;
  font-weight: 900;
  text-align: center;
}
.bib-test-name {
  font-size: 22px;
}
.bib-alias {
  font-size: 34px;
}
.clear-seats-field small {
  max-width: 230px;
}
.delete-test-field {
  color: var(--bad);
}
.delete-test-field small {
  max-width: 260px;
  color: #9f3a32;
}
.delete-test-field input[type="checkbox"] {
  accent-color: var(--bad);
}
.test-row-actions {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.refund-detail-row td { background: #f8fbff; }
.income-detail-row td { background: #f8fbff; }
.income-detail-row table { margin: 0; box-shadow: none; }
.refund-detail-grid {
  display: grid;
  grid-template-columns: minmax(220px, .85fr) minmax(320px, 1.15fr);
  gap: 18px;
  align-items: start;
  padding: 10px 0;
}
.refund-detail-grid h3 {
  margin: 0 0 8px;
  font-size: 16px;
}
.refund-detail-grid p {
  margin: 0;
  color: var(--muted);
}
.refund-detail-grid .stacked-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}
.refund-detail-grid .stacked-form label:last-of-type { grid-column: 1 / -1; }
.refund-detail-grid .stacked-form button { justify-self: start; }
.panel {
  background: linear-gradient(180deg, #ffffff, #fbfcfd);
  border: 1px solid #e2e7ed;
  border-radius: 8px;
  padding: 24px;
  margin: 22px 0;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
}
.collapsible-create {
  padding: 0;
}
.collapsible-create summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 22px;
  cursor: pointer;
  color: var(--brand);
  font-size: 19px;
  font-weight: 800;
  list-style: none;
}
.collapsible-create summary::-webkit-details-marker { display: none; }
.collapsible-create summary::after {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #eaf2ff;
  color: var(--brand);
}
.collapsible-create[open] summary {
  border-bottom: 1px solid var(--line);
}
.collapsible-create[open] summary::after { content: "-"; }
.collapsible-create form,
.collapsible-create p {
  padding: 22px;
}
.collapsible-create p {
  margin: 0;
  padding-bottom: 0;
}
.settings-group {
  padding: 0 0 22px;
  margin: 0 0 22px;
  border-bottom: 1px solid var(--line);
}
.settings-group h2 {
  margin: 0 0 14px;
  color: var(--brand);
  font-size: 21px;
}
.settings-group:last-of-type {
  border-bottom: 0;
}
.user-section .section-title {
  align-items: center;
  margin-bottom: 14px;
}
.user-filter {
  width: min(360px, 100%);
  font-size: 12px;
}
.user-filter input {
  min-height: 36px;
  font-size: 13px;
}
.logo-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 64px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--night);
}
.logo-preview.light-preview,
.logo-preview.favicon-preview,
.logo-preview.signature-box {
  background: #fff;
}
.logo-preview.dark-preview {
  background: var(--night);
}
.logo-preview img {
  display: block;
  max-width: 220px;
  max-height: 52px;
  object-fit: contain;
}
.favicon-preview {
  width: 72px;
  height: 72px;
}
.favicon-preview img {
  max-width: 42px;
  max-height: 42px;
}
.filters-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(220px, 1fr) auto auto;
  gap: 12px;
  align-items: end;
}
.hero-config-row {
  display: grid;
  gap: 12px;
  padding: 16px;
  margin: 0 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}
.hero-config-row h3 {
  margin: 0;
  color: var(--brand);
  font-size: 16px;
}
.hero-config-preview {
  width: min(420px, 100%);
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #e6eaee;
}
.field-label {
  display: block;
  margin: 0 0 7px;
  color: #374151;
  font-size: 13px;
  font-weight: 700;
}
.rich-editor {
  display: grid;
  gap: 0;
  border: 1px solid #d6dde6;
  border-radius: 8px;
  overflow: hidden;
  background: white;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .03);
}
.rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}
.rich-toolbar button {
  min-height: 30px;
  padding: 0 10px;
  border-color: #c8d3dd;
  background: white;
  color: var(--brand);
  font-size: 12px;
}
.rich-toolbar button[data-cmd^="justify"] {
  background: #eef6ff;
}
.rich-area {
  min-height: 180px;
  padding: 12px;
  outline: none;
  color: #111827;
  font-size: 15px;
  line-height: 1.68;
}
.rich-area:focus {
  box-shadow: inset 0 0 0 3px rgba(39, 95, 143, .12);
}
.rich-area p { margin: 0 0 12px; }
.rich-area ul,
.rich-area ol { margin: 0 0 12px 22px; padding: 0; }
.panel h1,
.panel h2 {
  margin-top: 0;
  color: #111827;
  letter-spacing: 0;
}
.panel h1 { font-size: 30px; }
.panel h2 { font-size: 22px; }
.panel p {
  color: #596273;
  line-height: 1.72;
}
form { display: grid; gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
label {
  display: grid;
  gap: 7px;
  color: #374151;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}
small { color: var(--muted); font-size: 12px; font-weight: 400; }
.form-help {
  margin: -2px 0 14px;
  max-width: 780px;
  color: var(--muted);
  line-height: 1.55;
}
.field-help {
  display: inline-block !important;
  position: relative;
  width: 16px !important;
  min-width: 16px !important;
  height: 16px !important;
  min-height: 16px !important;
  margin-left: 5px;
  padding: 0 !important;
  vertical-align: middle;
  font-weight: 400;
}
.internal-body label { position: relative; }
.internal-body label > .field-help { position: absolute !important; top: 0; right: 0; z-index: 8; margin: 0; }
.field-help-trigger {
  display: grid !important;
  width: 16px !important;
  min-width: 16px !important;
  height: 16px !important;
  min-height: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
  place-items: center;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #8aa5c4;
  border-radius: 50%;
  background: #f7fbff;
  color: #285886;
  cursor: pointer;
  font-size: 10px !important;
  font-weight: 800;
  line-height: 1 !important;
  list-style: none;
}
.internal-body .field-help-trigger {
  display: grid !important;
  width: 16px !important;
  min-width: 16px !important;
  height: 16px !important;
  min-height: 16px !important;
  padding: 0 !important;
  border: 1px solid #8aa5c4 !important;
  border-radius: 50% !important;
  background: #f7fbff !important;
  color: #285886 !important;
  box-shadow: none !important;
}
.field-help-popover { display: none; position: absolute; z-index: 30; top: 22px; left: -8px; width: min(280px, 72vw); padding: 10px 12px; border: 1px solid #cbdceb; border-radius: 6px; background: #fff; box-shadow: 0 12px 28px rgba(20,54,88,.18); color: #475569; font-size: 12px; font-weight: 400; line-height: 1.45; }
.field-help.is-open .field-help-popover { display: block; }
.internal-body label > .field-help .field-help-popover { right: 0; left: auto; }
.event-form-guide { margin: 14px 0 20px; border: 1px solid #d7e5f2; border-radius: 8px; background: #f7fbff; }
.event-form-guide summary { padding: 11px 13px; color: #214f7c; cursor: pointer; font-weight: 750; }
.event-form-guide ol { margin: 0; padding: 0 32px 14px; color: #53667c; line-height: 1.65; }
.event-wizard { max-width: 1050px; margin: 0 auto; }
.wizard-screen > h1 { margin-bottom: 6px; }
.wizard-screen > p { max-width: 720px; margin-top: 0; color: var(--internal-muted); }
.wizard-steps { display: flex; gap: 8px; padding: 0; margin: 22px 0; list-style: none; counter-reset: wizard; }
.wizard-steps li { flex: 1; padding: 10px 12px; border: 1px solid #d8e3ef; border-radius: 6px; color: #607086; font-size: 13px; font-weight: 700; }
.wizard-steps li::before { counter-increment: wizard; content: counter(wizard) '. '; color: #315f91; }
.wizard-steps li.done { border-color: #7fb491; background: #edf9f0; color: #24633c; }
.wizard-steps li.active { border-color: #275f8f; background: #eaf2ff; color: #17476e; box-shadow: inset 0 -3px 0 var(--internal-gold); }
.wizard-review { display: grid; gap: 10px; margin: 18px 0 22px; }
.wizard-review p { margin: 0; padding: 13px 15px; border: 1px solid var(--internal-line); border-radius: 8px; background: #f8fbff; }
.wizard-check { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px; margin: 10px 0; border: 1px solid #d8e3ef; border-left: 5px solid #d9a900; border-radius: 7px; background: #fff; }
.wizard-check.is-ready { border-left-color: #329262; background: #fbfffc; }
.wizard-check strong { color: #9a6800; font-size: 12px; text-transform: uppercase; }
.wizard-check.is-ready strong { color: #27764e; }
.wizard-check h2 { margin: 4px 0; font-size: 17px; }
.wizard-check p { margin: 0; font-size: 13px; }
.wizard-finish { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; padding: 18px 20px; border-radius: 7px; background: #fff6d7; color: #745300; }
.wizard-finish.is-ready { background: #e8f8ec; color: #206440; }
input, select, textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #d6dde6;
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
  color: #111827;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .03);
  transition: border-color .14s ease, box-shadow .14s ease, background .14s ease;
}
select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #68707a 50%),
    linear-gradient(135deg, #68707a 50%, transparent 50%);
  background-position:
    calc(100% - 17px) 19px,
    calc(100% - 12px) 19px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}
input::placeholder, textarea::placeholder { color: #9aa3af; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(39, 95, 143, .12);
}
input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin: 4px 0 0;
  accent-color: var(--brand);
  box-shadow: none;
}
input[type="file"] {
  padding: 9px;
  background: #f8fafc;
}
input[type="file"]::file-selector-button {
  margin-right: 12px;
  border: 1px solid #c8d3dd;
  border-radius: 6px;
  background: white;
  color: #243041;
  padding: 7px 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}
textarea { min-height: 132px; resize: vertical; line-height: 1.55; }
table { width: 100%; border-collapse: collapse; background: white; }
th, td { border-bottom: 1px solid var(--line); padding: 12px; text-align: left; vertical-align: top; }
th { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0; }
.notice { border-left: 4px solid var(--brand); background: #eaf2ff; padding: 14px 16px; margin: 14px 0; border-radius: 6px; }
.error { border-left-color: var(--brand-2); background: #fdecea; }
.split { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; align-items: start; }
.participant {
  border: 1px solid #e1e7ee;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
  background: #f8fafc;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.participant h3 { margin: 0 0 20px; font-size: 18px; }
.purchase-event-context {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin: 0 0 22px;
  padding: 12px;
  border: 1px solid #dce6f2;
  border-radius: 8px;
  background: #f8fbff;
}
.purchase-event-context img {
  width: 72px;
  height: 88px;
  border-radius: 5px;
  object-fit: cover;
}
.purchase-event-context strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
}
.purchase-event-context p,
.purchase-event-context span:not(.eyebrow) {
  display: block;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.purchase-event-context .btn { white-space: nowrap; }
.purchase-event-context.no-poster { grid-template-columns: minmax(0, 1fr) auto; }
.legal-consent-box {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid #d8e3ef;
  border-radius: 8px;
  background: #f8fbff;
}
.legal-check {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: #334155;
}
.legal-check input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
}
.coupon-box,
.panel-collapsible {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid #d8e3ef;
  border-radius: 10px;
  background: #fbfdff;
}
.coupon-box h2 {
  margin: 0 0 6px;
  font-size: 18px;
}
.purchase-add-entry {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px 0 20px;
}
.purchase-add-entry .form-help {
  margin: 0;
}
.purchase-add-entry button:disabled {
  cursor: not-allowed;
  opacity: .55;
}
@media (max-width: 640px) {
  .purchase-add-entry {
    align-items: stretch;
    flex-direction: column;
  }
  .purchase-add-entry button {
    width: 100%;
  }
}
.panel-collapsible summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 800;
}
.panel-collapsible[open] summary {
  margin-bottom: 14px;
}
footer {
  position: relative;
  overflow: hidden;
  margin-top: 72px;
  background:
    linear-gradient(135deg, #061525 0%, #0b1f33 58%, #113b5f 100%);
  color: rgba(255,255,255,.78);
}
footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--accent) 0 28%, transparent 28% 100%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.055) 0 1px, transparent 1px 14px);
  height: 7px;
}
footer::after {
  content: "DORSALIA";
  position: absolute;
  right: -18px;
  bottom: -34px;
  color: rgba(255,255,255,.045);
  font-size: clamp(72px, 13vw, 180px);
  font-weight: 900;
  line-height: .8;
  letter-spacing: 0;
}
.footer-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 28px;
  padding-top: 56px;
  padding-bottom: 34px;
}
.footer-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-hero img {
  display: block;
  width: 210px;
  max-width: 100%;
  margin-bottom: 20px;
}
.footer-hero strong {
  display: block;
  color: white;
  max-width: 760px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: .94;
  margin-bottom: 14px;
  letter-spacing: 0;
}
.footer-hero p,
.footer-panels p,
.footer-bottom p {
  max-width: 620px;
  margin: 0;
  color: rgba(255,255,255,.78);
  line-height: 1.65;
}
.footer-hero p { font-size: 18px; }
.payment-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 420px;
}
.payment-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: white;
  font-size: 12px;
  font-weight: 900;
}
.footer-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.footer-panels article {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 240px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.045));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.footer-panels article span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.footer-panels h3 {
  margin: 0;
  color: white;
  font-size: 24px;
  line-height: 1.1;
}
.footer-sell {
  background:
    radial-gradient(circle at 85% 12%, rgba(248,196,0,.24), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.055)) !important;
}
.newsletter-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 4px;
}
.newsletter-form input {
  min-height: 42px;
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.12);
  color: white;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.6); }
.newsletter-form button {
  min-height: 42px;
  background: var(--accent);
  color: #0b1f33;
}
.lead-page {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(420px, 1fr);
  gap: 30px;
  align-items: start;
  max-width: 1220px;
  margin: 44px auto 0;
}
.lead-page > div:first-child {
  position: sticky;
  top: 110px;
  padding: 34px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 12%, rgba(248,196,0,.25), transparent 28%),
    linear-gradient(135deg, var(--night), var(--night-2));
  color: white;
}
.lead-page h1 {
  margin: 8px 0 14px;
  font-size: clamp(36px, 5vw, 66px);
  line-height: .95;
}
.lead-page p,
.lead-page li {
  color: rgba(255,255,255,.78);
  line-height: 1.72;
}
.lead-page ul {
  margin: 22px 0 0;
  padding-left: 20px;
}
.lead-form {
  margin: 0;
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(15,23,42,.08);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding-top: 6px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  min-width: 0;
}
.footer-links a {
  color: rgba(255,255,255,.82);
  font-weight: 800;
}
.footer-links a:hover {
  color: white;
}
.legal-page {
  max-width: 860px;
  margin: 28px auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
}
.legal-page h1 { margin-top: 0; }
.legal-page p,
.legal-page li { line-height: 1.78; color: #4b5563; }
.legal-page h2 { margin-top: 28px; font-size: 22px; }
.legal-page table {
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.cookie-banner {
  position: fixed;
  z-index: 80;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px;
  border: 1px solid #c8d8ee;
  border-radius: 8px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 18px 48px rgba(15, 23, 42, .18);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 4px 0 0; color: var(--muted); line-height: 1.55; }
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.cookie-modal {
  max-width: 520px;
  border: 1px solid #d6e0ed;
  border-radius: 8px;
  padding: 22px;
}
.cookie-modal::backdrop { background: rgba(15,23,42,.42); }
.empty-state {
  grid-column: 1 / -1;
  padding: 28px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
}
.event-detail-hero {
  position: relative;
  max-width: 1280px;
  min-height: 470px;
  margin: 24px auto 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--night);
  color: white;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .22);
}
.event-detail-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .28;
  filter: blur(8px) saturate(1.15);
  transform: scale(1.04);
}
.event-detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17,24,39,.96), rgba(17,24,39,.82) 44%, rgba(17,24,39,.38));
}
.event-detail-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(230px, 360px) 1fr;
  gap: 34px;
  align-items: center;
  padding: 34px;
}
.event-poster-wrap {
  justify-self: center;
  width: min(100%, 340px);
}
.event-detail-poster {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(0,0,0,.36);
  background: #e6eaee;
}
.event-detail-copy h1 {
  max-width: 820px;
  margin: 8px 0 14px;
  font-size: clamp(38px, 5vw, 72px);
  line-height: .98;
  letter-spacing: 0;
}
.event-detail-badges { margin: 0 0 16px; }
.event-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.event-detail-summary {
  max-width: 760px;
  margin: 0;
  color: rgba(255,255,255,.82);
  font-size: 20px;
  line-height: 1.58;
}
.event-keyfacts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 760px;
  margin-top: 24px;
}
.event-keyfacts div {
  padding: 14px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
}
.event-keyfacts span {
  display: block;
  margin-bottom: 6px;
  color: rgba(255,255,255,.62);
  font-size: 12px;
  text-transform: uppercase;
}
.event-keyfacts strong { color: white; }
.event-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(360px, .7fr);
  gap: 22px;
  max-width: 1280px;
  margin: 22px auto 0;
}
.event-description, .event-tests-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 12px 34px rgba(15, 23, 42, .06);
}
.event-description h2, .event-tests-panel h2 {
  margin: 6px 0 16px;
  font-size: 30px;
}
.event-description p {
  margin: 0;
  color: #4b5563;
  line-height: 1.75;
  font-size: 17px;
}
.venue-map {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.venue-map h3 {
  margin: 0 0 12px;
  font-size: 22px;
}
.venue-map img {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}
.test-card-list { display: grid; gap: 12px; margin-bottom: 16px; }
.test-sale-group { border-top: 1px solid var(--line); }
.test-sale-group:first-child { border-top: 0; }
.test-sale-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0 10px;
  color: var(--brand);
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  list-style: none;
}
.test-sale-group-title::-webkit-details-marker { display: none; }
.test-sale-group-title::after { content: '+'; color: var(--ink); font-size: 20px; line-height: 1; }
.test-sale-group[open] .test-sale-group-title::after { content: '−'; }
.test-sale-group-title small { margin-left: auto; color: var(--muted); font-weight: 600; }
.test-sale-group-content { display: grid; gap: 10px; padding-bottom: 14px; }
.test-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 14px;
  padding: 15px;
  border: 1px solid #e5e9ee;
  border-radius: 8px;
  background: #fbfcfd;
}
.test-card-head { grid-column: 1 / -1; }
.test-card h3 { margin: 6px 0 0; font-size: 19px; line-height: 1.32; }
.test-card-info { min-width: 0; }
.test-card p { margin: 0; color: var(--muted); line-height: 1.55; }
.test-card .test-sport-categories { margin-top: 7px; color: var(--ink); font-size: 13px; font-weight: 700; }
.test-category {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eaf2ff;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}
.test-card-side {
  display: grid;
  align-content: start;
  justify-items: end;
  gap: 4px;
  min-width: 128px;
}
.test-card-side strong { font-size: 20px; color: var(--ink); }
.test-card-side span { color: var(--muted); font-size: 13px; text-align: right; }
.test-availability {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-top: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px !important;
  font-weight: 800;
  line-height: 1.1;
}
.test-availability.available { background: #e7f7ec; color: #18713d; }
.test-availability.sold-out { background: #fff0f0; color: #b42318; }
.event-share {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.event-share-hero {
  justify-content: flex-end;
  margin: 0 0 14px;
}
.event-share-button {
  min-height: 36px;
  padding: 7px 13px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 999px;
  background: rgba(7,20,33,.48);
  color: rgba(255,255,255,.94);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.event-share-button:hover {
  border-color: rgba(255,255,255,.72);
  background: rgba(255,255,255,.16);
  transform: translateY(-1px);
}
.event-share-button.copy-link { color: var(--yellow); }
.embed-code-panel { max-width: 1080px; }
.embed-preview {
  margin: 20px 0 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f7fb;
}
.embed-preview iframe {
  display: block;
  width: 100%;
  min-height: 340px;
  border: 0;
}
.embed-code {
  width: 100%;
  min-height: 112px;
  margin: 8px 0 24px;
  padding: 14px;
  border: 1px solid #cad7e6;
  border-radius: 6px;
  background: #10263c;
  color: #eef5fb;
  font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  resize: vertical;
}
.analytics-panel { max-width: 1420px; }
.analytics-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 16px;
}
.analytics-kpis article {
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--yellow);
  border-radius: 7px;
  background: #fff;
}
.analytics-kpis span,
.analytics-kpis small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.analytics-kpis strong {
  display: block;
  margin: 8px 0 7px;
  color: var(--night);
  font-size: 28px;
  line-height: 1;
}
.table-scroll { overflow-x: auto; }
.presale-access { max-width: 580px; margin: 42px auto; }
.btn.wide { width: 100%; }
.related-events {
  max-width: 1280px;
  margin: 28px auto 0;
  padding: 26px 0 6px;
}
.related-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.contract-panel { max-width: 980px; margin-left: auto; margin-right: auto; }
.contract-preview {
  margin: 24px 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
}
.contract-preview h2 {
  margin: 22px 0 10px;
  font-size: 17px;
  color: var(--blue-900);
}
.contract-preview h2:first-child { margin-top: 0; }
.contract-preview p {
  margin: 6px 0;
  line-height: 1.75;
}
.signature-preview,
.signature-box img {
  max-width: 260px;
  max-height: 120px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
}
.signature-form {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
@media (max-width: 760px) {
  .purchase-event-context {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px;
  }
  .purchase-event-context img {
    width: 56px;
    height: 70px;
  }
  .purchase-event-context .btn {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .wizard-steps { flex-direction: column; }
  .wizard-check,
  .wizard-finish { align-items: flex-start; flex-direction: column; }
  .wizard-check .btn,
  .wizard-finish .btn { width: 100%; text-align: center; }
  header {
    position: relative;
  }
  .internal-sidebar {
    position: relative;
    width: 100%;
    min-height: auto;
    padding: 18px 16px;
  }
  .internal-brand { margin-bottom: 16px; }
  .internal-brand img { width: 160px; }
  .internal-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .internal-nav span { display: none; }
  .internal-nav a {
    flex: 0 0 auto;
    min-height: 38px;
    white-space: nowrap;
  }
  .internal-nav a.active { box-shadow: inset 0 -3px 0 var(--internal-gold); }
  .internal-sidebar-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
    padding-top: 14px;
  }
  .internal-sidebar-foot a { min-height: 34px; padding: 0 10px; }
  .internal-workspace { margin-left: 0; }
  .internal-topbar { display: none; }
  .internal-main { padding: 24px 16px 36px; }
  .internal-main > h1 { font-size: 29px; }
  .economics-hero { padding: 22px 18px; }
  .economics-flow { grid-template-columns: 1fr; }
  .economics-target { grid-template-columns: 1fr; gap: 8px; }
  .economics-result { overflow-x: auto; }
  .economics-result table { min-width: 620px; }
  .bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
    padding-top: 22px;
    padding-bottom: 24px;
  }
  .brand img {
    width: min(72vw, 270px);
    height: auto;
  }
  nav {
    align-items: center;
    gap: 16px 20px;
    width: 100%;
  }
  nav .btn {
    margin-left: auto;
  }
  .mega-panel {
    top: 178px;
    left: 16px;
    width: calc(100vw - 32px);
    max-height: calc(100dvh - 196px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    grid-template-columns: 1fr;
    padding: 10px;
    transform: none;
  }
  .mega-panel::before { left: 28px; transform: rotate(45deg); }
  .mega-feature {
    min-height: 230px;
    padding: 22px;
  }
  .mega-feature strong { font-size: 30px; }
  .mega-content {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px 18px;
  }
  .mega-content::before { inset: auto; display: none; }
  .mega-grid { grid-template-columns: 1fr; gap: 10px; }
  .mega-grid a { min-height: 58px; padding: 12px 46px 12px 44px; }
  .discovery-band { grid-template-columns: 1fr; gap: 16px; }
  .bar, main, .footer-inner { padding-left: 16px; padding-right: 16px; }
  .hero, .hero-slider { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
  .page-head, .category-band, .events-search-band { margin-left: -16px; margin-right: -16px; }
  .hero-inner, .page-head, .category-band, .events-search-band { padding-left: 16px; padding-right: 16px; }
  .hero,
  .hero-slider {
    min-height: 720px;
  }
  .hero {
    align-items: flex-start;
    background-position: center top;
  }
  .hero-inner {
    padding-top: 42px;
    padding-bottom: 46px;
  }
  .hero h1 {
    max-width: 92vw;
    font-size: clamp(42px, 14vw, 62px);
    line-height: 1.02;
  }
  .hero p {
    max-width: 92vw;
    font-size: clamp(20px, 5.8vw, 28px);
    line-height: 1.5;
  }
  .public-search {
    margin-top: 24px;
    padding: 14px;
    border-radius: 14px;
  }
  .public-search { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .featured-events { margin-top: 20px; padding: 18px; }
  .featured-grid,
  .featured-card { grid-template-columns: 1fr; }
  .featured-card img { max-height: 360px; }
  .related-grid { grid-template-columns: 1fr; }
  .internal-body .panel {
    padding: 16px;
    overflow-x: auto;
  }
  .internal-body .form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .internal-body label {
    font-size: 12px;
    line-height: 1.35;
  }
  .internal-body input,
  .internal-body select,
  .internal-body textarea {
    min-height: 44px;
    font-size: 15px;
  }
  .internal-body .participant {
    padding: 16px;
    margin-bottom: 18px;
  }
  .internal-body .panel > .actions,
  .internal-body .panel form > .actions {
    align-items: stretch;
  }
  .internal-body .panel > .actions .btn,
  .internal-body .panel > .actions button,
  .internal-body .panel form > .actions .btn,
  .internal-body .panel form > .actions button {
    justify-content: center;
    width: 100%;
  }
  .internal-body .event-test-grid,
  .event-test-grid { grid-template-columns: 1fr; gap: 14px; }
  .seat-upload-field { grid-column: span 1; }
  .checkbox-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px 12px;
  }
  .checkbox-field small {
    grid-column: 1 / -1;
  }
  .checkbox-field input[type="checkbox"] {
    grid-row: 1 / span 2;
    grid-column: 2;
    margin: 0;
  }
  .refund-detail-grid,
  .refund-detail-grid .stacked-form { grid-template-columns: 1fr; }
  .refund-detail-grid .stacked-form label:last-of-type { grid-column: auto; }
  .split { grid-template-columns: 1fr; }
  .filters-row { grid-template-columns: 1fr; }
  .event-detail-inner, .event-detail-layout, .event-keyfacts, .test-card { grid-template-columns: 1fr; }
  .event-detail-hero, .event-detail-layout { margin-left: 0; margin-right: 0; }
  .event-detail-inner { padding: 20px; }
  .event-share-hero { justify-content: flex-start; }
  .analytics-kpis { grid-template-columns: 1fr; }
  .embed-preview iframe { min-height: 390px; }
  .event-card-side, .test-card-side { justify-items: start; }
  .footer-inner { padding-top: 42px; padding-bottom: 42px; }
  .footer-hero,
  .footer-panels,
  .footer-bottom { grid-template-columns: 1fr; }
  .footer-hero,
  .footer-bottom {
    display: grid;
    align-items: start;
  }
  .payment-strip { justify-content: flex-start; max-width: none; }
  .footer-panels { grid-template-columns: 1fr; }
  .newsletter-form { grid-template-columns: 1fr; }
  .lead-page {
    grid-template-columns: 1fr;
    margin-top: 24px;
  }
  .lead-page > div:first-child {
    position: static;
    padding: 24px;
  }
  .footer-links { grid-template-columns: 1fr; justify-content: flex-start; }
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-actions { justify-content: flex-start; }
  .account-order { overflow: visible; }
  .account-orders-table { overflow: visible; }
  .account-orders-table table,
  .account-orders-table tbody,
  .account-orders-table tr,
  .account-orders-table td { display: block; width: 100%; }
  .account-orders-table table { border: 0; }
  .account-orders-table tr:first-child { display: none; }
  .account-orders-table tr:not(:first-child) {
    margin: 12px 0;
    padding: 6px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
  }
  .account-orders-table td {
    display: grid;
    grid-template-columns: minmax(106px, .75fr) minmax(0, 1.25fr);
    gap: 10px;
    padding: 10px 0;
    border: 0;
    text-align: left;
  }
  .account-orders-table td + td { border-top: 1px solid #edf1f6; }
  .account-orders-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
  }
  th, td { font-size: 14px; }
}

@media (min-width: 761px) and (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .event-list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .internal-body .event-test-grid,
  .event-test-grid { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
}

@media (min-width: 981px) and (max-width: 1180px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media print {
  @page {
    size: A5 landscape;
    margin: 0;
  }
  body { background: white; }
  header, footer, .no-print, .internal-sidebar, .internal-topbar { display: none !important; }
  main,
  .bar,
  .footer-inner {
    padding: 0 !important;
  }
  .internal-workspace {
    margin-left: 0 !important;
  }
  .internal-main {
    padding: 0 !important;
  }
  .bib-print-area {
    display: block;
  }
  .bib-page {
    width: 210mm;
    height: 148mm;
    margin: 0;
    border: 0;
    page-break-after: always;
    position: relative;
    background-size: cover;
    background-position: center;
  }
  .bib-lockup {
    left: 12mm;
    right: 12mm;
    gap: 1mm;
  }
  .bib-number {
    font-size: 118pt;
    font-weight: 900;
    color: #111;
  }
  .bib-test-name {
    font-size: 18pt;
  }
  .bib-alias {
    font-size: 28pt;
  }
}
/* Hidden honeypot for public forms; real visitors never interact with it. */
.bot-trap { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.application-card { padding: 20px 0; border-bottom: 1px solid var(--line, #dbe3ef); }
.application-card:last-child { border-bottom: 0; }

/* Actividades con reserva por fecha. */
.activity-visit-selector {
  margin: 20px 0;
  padding: 24px;
  border: 1px solid #cddcf0;
  border-left: 4px solid #e5ad16;
  border-radius: 8px;
  background: #f8fbff;
}
.activity-visit-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.activity-visit-selector h2 { margin: 3px 0 6px; font-size: 24px; }
.activity-visit-heading p { margin: 0; color: var(--muted); }
.activity-availability-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.activity-availability-legend span { padding: 5px 8px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.activity-availability-legend .available { background: #e6f5eb; color: #16713d; }
.activity-availability-legend .limited { background: #fff4d7; color: #8d6200; }
.activity-availability-legend .sold { background: #fde9e7; color: #9b3128; }
.activity-booking-calendar { padding: 18px; border: 1px solid #d9e4f0; border-radius: 7px; background: #fff; }
.activity-calendar-navigation { display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px; align-items: center; gap: 12px; margin-bottom: 16px; text-align: center; }
.activity-calendar-navigation strong { color: var(--ink); font-size: 16px; }
.activity-calendar-navigation .icon-button { display: grid; width: 42px; height: 38px; place-items: center; padding: 0; font-size: 25px; line-height: 1; }
.activity-booking-months { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.activity-booking-month { min-width: 0; }
.activity-booking-month h3 { margin: 0 0 10px; color: var(--blue); font-size: 16px; text-align: center; }
.activity-booking-day-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.activity-booking-weekday { display: grid; min-height: 24px; place-items: center; color: var(--muted); font-size: 11px; font-weight: 800; }
.activity-booking-day-grid i { min-height: 48px; }
.activity-booking-day {
  display: grid;
  min-width: 0;
  min-height: 48px;
  place-content: center;
  gap: 2px;
  padding: 4px 2px;
  border: 1px solid #e1e7ee;
  border-radius: 5px;
  background: #f4f6f8;
  color: #8290a0;
  cursor: not-allowed;
}
.activity-booking-day strong { font-size: 14px; }
.activity-booking-day small { font-size: 9px; font-weight: 750; white-space: nowrap; }
.activity-booking-day.available { border-color: #8ac89e; background: #e9f7ed; color: #176d3b; cursor: pointer; }
.activity-booking-day.limited { border-color: #e6bd4e; background: #fff5d9; color: #865d00; cursor: pointer; }
.activity-booking-day.sold { border-color: #e5a19a; background: #fff0ee; color: #9b3128; }
.activity-booking-day.available:hover,
.activity-booking-day.limited:hover { filter: brightness(.97); transform: translateY(-1px); }
.activity-booking-day.selected {
  position: relative;
  border-color: #163d61;
  background: #1f5e91;
  color: #fff;
  box-shadow: 0 7px 14px rgba(21, 63, 99, .28);
  outline: 3px solid rgba(31, 94, 145, .2);
  outline-offset: 1px;
}
.activity-booking-day.selected small { color: #fff; }
.activity-booking-day.selected::after {
  content: "✓";
  position: absolute;
  top: 3px;
  right: 5px;
  font-size: 10px;
  font-weight: 900;
}
.activity-slot-picker { margin-top: 18px; padding-top: 18px; border-top: 1px solid #d9e4f0; }
.activity-slot-picker h3 { margin: 0 0 4px; font-size: 18px; }
.activity-slot-picker p { margin: 0; color: var(--muted); }
.activity-booking-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 14px; }
.activity-slot-option { display: grid; gap: 3px; min-height: 64px; padding: 11px; border: 1px solid #e1e7ee; border-radius: 6px; background: #f4f6f8; color: #8290a0; text-align: left; cursor: not-allowed; }
.activity-slot-option strong { font-size: 15px; }
.activity-slot-option span { font-size: 12px; font-weight: 650; }
.activity-slot-option.available { border-color: #8ac89e; background: #e9f7ed; color: #176d3b; cursor: pointer; }
.activity-slot-option.limited { border-color: #e6bd4e; background: #fff5d9; color: #865d00; cursor: pointer; }
.activity-slot-option.sold { border-color: #e5a19a; background: #fff0ee; color: #9b3128; }
.activity-slot-option.available:hover,
.activity-slot-option.limited:hover { filter: brightness(.97); }
.activity-slot-option.selected {
  position: relative;
  border-color: #163d61;
  background: #1f5e91;
  color: #fff;
  box-shadow: 0 7px 14px rgba(21, 63, 99, .28);
  outline: 3px solid rgba(31, 94, 145, .18);
  outline-offset: 1px;
}
.activity-slot-option.selected::after {
  content: "✓ Seleccionada";
  position: absolute;
  top: 7px;
  right: 8px;
  font-size: 10px;
  font-weight: 850;
}
.activity-calendar-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin: 18px 0; }
.activity-calendar-summary article { padding: 15px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.activity-calendar-summary strong { display: block; color: var(--blue); font-size: 22px; }
.activity-calendar-panel { max-width: 1420px; }
.activity-config-step { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.activity-config-step h2 { margin: 0 0 16px; font-size: 22px; }
.activity-config-step .section-title { align-items: flex-start; }
.activity-config-step .section-title h2 { margin-bottom: 4px; }
.activity-config-step .section-title p { margin: 0; color: var(--muted); }
.activity-year-calendar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.activity-month { min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.activity-month h3 { margin: 0 0 12px; color: var(--blue); font-size: 16px; }
.activity-month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.activity-weekday { display: grid; min-height: 26px; place-items: center; color: var(--muted); font-size: 11px; font-weight: 800; }
.activity-month-grid i { min-height: 34px; }
.activity-calendar-day {
  display: grid;
  min-width: 0;
  min-height: 34px;
  place-items: center;
  padding: 0;
  border: 1px solid #d8e2ef;
  border-radius: 5px;
  background: #f9fbfd;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.activity-calendar-day:hover { border-color: var(--blue); background: #edf5fc; }
.activity-calendar-day.is-closed,
.activity-calendar-day[aria-pressed="true"] { border-color: #c95247; background: #fff0ee; color: #8d261e; box-shadow: inset 0 0 0 1px rgba(201,82,71,.2); }
.activity-calendar-maintenance { max-width: 1420px; }
.activity-calendar-maintenance > h2 { margin: 5px 0 8px; }
.activity-maintenance-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 20px; }
.activity-maintenance-grid form { padding: 18px; border: 1px solid var(--line); border-radius: 7px; background: #fbfdff; }
.activity-empty-calendar { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.activity-empty-calendar small { color: var(--muted); }
.activity-commerce-setting { background: #fff9e7; padding: 12px; border: 1px solid #f0d879; border-radius: 6px; }
.access-mode-checkboxes { display: grid; gap: 6px; min-width: 210px; }
.access-mode-checkboxes label { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 13px; font-weight: 650; }
.access-mode-checkboxes input { width: auto; margin: 0; }

/* Página pública de servicios. */
.services-hero,
.services-intro,
.services-grid,
.services-format-clarity,
.services-listing-intro,
.services-cta {
  width: min(1420px, calc(100% - 72px));
  margin-left: auto;
  margin-right: auto;
}
.services-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr);
  min-height: 500px;
  margin-top: 38px;
  overflow: hidden;
  border-radius: 12px;
  background: #092840;
  color: #fff;
}
.services-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 6vw, 82px);
}
.services-hero-copy .eyebrow,
.services-cta .eyebrow { color: #f3b61c; }
.services-hero h1,
.services-cta h2 {
  max-width: 720px;
  margin: 10px 0 18px;
  color: #fff;
  font-size: clamp(38px, 4.6vw, 64px);
  line-height: 1.02;
}
.services-hero p {
  max-width: 620px;
  margin: 0 0 28px;
  color: #d9e5ed;
  font-size: 19px;
  line-height: 1.55;
}
.services-hero-image { min-height: 100%; margin: 0; }
.services-hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
  object-position: 62% center;
}
.services-intro { max-width: 860px; margin-top: 82px; margin-bottom: 34px; text-align: center; }
.services-intro h2,
.services-how h2 { margin: 8px 0 12px; font-size: clamp(30px, 3.2vw, 44px); }
.services-intro p,
.services-how p { margin: 0; color: #52647a; font-size: 18px; line-height: 1.55; }
.services-format-clarity {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 34px;
}
.services-format-clarity article {
  padding: 30px;
  border: 1px solid #d8e2ed;
  border-radius: 8px;
  background: #fff;
}
.services-format-clarity h2 { margin: 9px 0 10px; color: #132139; font-size: 25px; line-height: 1.2; }
.services-format-clarity p { margin: 0; color: #52647a; font-size: 16px; line-height: 1.55; }
.services-listing-intro { margin-top: 68px; margin-bottom: 30px; text-align: center; }
.services-listing-intro h2 { max-width: 760px; margin: 9px auto 10px; color: #132139; font-size: clamp(28px, 3vw, 42px); line-height: 1.13; }
.services-listing-intro p { max-width: 660px; margin: 0 auto; color: #52647a; font-size: 17px; line-height: 1.55; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 82px;
}
.service-card {
  min-height: 222px;
  padding: 28px;
  border: 1px solid #dbe3ef;
  border-top: 4px solid #e7af18;
  border-radius: 8px;
  background: #fff;
}
.service-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.service-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 8px; background: #e8f1f8; color: #1d5f94; }
.service-icon svg { width: 23px; height: 23px; }
.service-number { color: #2a679b; font-size: 13px; font-weight: 850; }
.service-card h2 { margin: 0 0 10px; color: #132139; font-size: 21px; line-height: 1.2; }
.service-card p { margin: 0; color: #53637a; line-height: 1.52; }
.services-how {
  position: relative;
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 7vw, 100px);
  box-sizing: border-box;
  padding: clamp(48px, 5.5vw, 84px) max(36px, calc((100vw - 1420px) / 2 + 36px));
  overflow: hidden;
  background: #092840;
  color: #fff;
}
.services-how::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('assets/services-activities-guided-tour.png') center / cover no-repeat;
  content: '';
  opacity: .42;
}
.services-how::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #092840;
  content: '';
  opacity: .58;
}
.services-how > * { position: relative; z-index: 1; }
.services-how .eyebrow { color: #f3b61c; }
.services-how h2 { color: #fff; }
.services-how p { color: #e1eaf0; }
.services-how ol { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: steps; }
.services-how li {
  position: relative;
  min-height: 58px;
  padding-left: 64px;
  counter-increment: steps;
}
.services-how li::before {
  content: counter(steps);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: #2c6799;
  color: #fff;
  font-weight: 850;
}
.services-how strong,
.services-how span { display: block; }
.services-how strong { margin-bottom: 3px; color: #fff; font-size: 17px; }
.services-how li span { color: #e1eaf0; line-height: 1.45; }
.services-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 82px;
  margin-bottom: 82px;
  padding: clamp(30px, 5vw, 60px);
  background: #0c2b45;
  color: #fff;
}
.services-cta h2 { font-size: clamp(30px, 3.2vw, 46px); }
.services-cta p { max-width: 660px; margin: 0; color: #d9e5ed; font-size: 18px; }
.services-cta .btn.light { flex: 0 0 auto; }
@media (max-width: 760px) {
  .activity-visit-selector { margin: 14px 0; padding: 16px; }
  .activity-visit-heading { display: block; }
  .activity-availability-legend { justify-content: flex-start; margin-top: 14px; }
  .activity-booking-calendar { padding: 13px; }
  .activity-booking-months { grid-template-columns: 1fr; }
  .activity-booking-day-grid { gap: 4px; }
  .activity-booking-day-grid i,
  .activity-booking-day { min-height: 43px; }
  .activity-booking-day small { font-size: 8px; }
  .activity-booking-slots { grid-template-columns: 1fr 1fr; }
  .activity-calendar-summary { grid-template-columns: 1fr; }
  .activity-config-step .section-title { display: block; }
  .activity-config-step .section-title .status-pill { margin-top: 12px; }
  .activity-year-calendar { grid-template-columns: 1fr; gap: 12px; }
  .activity-maintenance-grid { grid-template-columns: 1fr; }
  .activity-empty-calendar { align-items: flex-start; flex-direction: column; }
  .services-hero,
  .services-intro,
  .services-grid,
  .services-format-clarity,
  .services-listing-intro,
  .services-cta { width: min(100% - 32px, 620px); }
  .services-hero { grid-template-columns: 1fr; margin-top: 20px; }
  .services-hero-copy { padding: 34px 24px; }
  .services-hero h1 { font-size: 40px; }
  .services-hero-image img { min-height: 260px; max-height: 310px; }
  .services-intro { margin-top: 52px; text-align: left; }
  .services-format-clarity { grid-template-columns: 1fr; }
  .services-listing-intro { margin-top: 50px; text-align: left; }
  .services-listing-intro h2,
  .services-listing-intro p { margin-left: 0; }
  .services-grid { grid-template-columns: 1fr; margin-bottom: 52px; }
  .service-card { min-height: 0; padding: 23px; }
  .service-card-top { margin-bottom: 16px; }
  .services-how { grid-template-columns: 1fr; gap: 32px; padding: 42px 24px; }
  .services-cta { align-items: flex-start; flex-direction: column; margin-top: 52px; margin-bottom: 52px; padding: 30px 24px; }
}
