@font-face {
  font-family: Cinzel;
  src: url("assets/Cinzel.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0b0c14;
  --surface: #131421;
  --surface-2: #1b1d30;
  --surface-raised: #222539;
  --line: #31364f;
  --text: #f7f6ff;
  --muted: #bec2d9;
  --gold: #ffcb56;
  --gold-line: #856638;
  --gold-soft: #332721;
  --accent-text: #231705;
  --violet: #a79bff;
  --violet-rich: #6856ee;
  --violet-soft: #27234b;
  --header: #0e0f1a;
  --scroll-thumb: #817c9a;
  --serif: Cinzel, Georgia, serif;
  --sans: Inter, Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --header-height: 70px;
}

:root[data-theme="claro"] {
  color-scheme: light;
  --bg: #faf9ff;
  --surface: #ffffff;
  --surface-2: #efedf9;
  --surface-raised: #ffffff;
  --line: #d3cfe6;
  --text: #15142b;
  --muted: #535372;
  --gold: #7a4703;
  --gold-line: #b88a41;
  --gold-soft: #fbecd3;
  --accent-text: #fff8e7;
  --violet: #4933ba;
  --violet-rich: #4933ba;
  --violet-soft: #e8e2ff;
  --header: #fbfaff;
  --scroll-thumb: #746e87;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 18px); }

@media (pointer: fine) {
  html { scrollbar-width: thin; scrollbar-color: var(--scroll-thumb) transparent; }
  body { scrollbar-color: auto; }

  @supports not (scrollbar-color: #000 transparent) {
    html::-webkit-scrollbar { width: 8px; height: 8px; }
    html::-webkit-scrollbar-track { background: transparent; }
    html::-webkit-scrollbar-thumb {
      border: 2px solid transparent;
      border-radius: 999px;
      background: var(--scroll-thumb) padding-box;
    }
  }
}

@media (forced-colors: active) {
  html { scrollbar-width: auto; scrollbar-color: auto; }
}

body { margin: 0; background: var(--bg); color: var(--text); font: 1rem/1.52 var(--sans); }
body:has(dialog[open]) { overflow: hidden; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; }
img { display: block; width: auto; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 4px; }
.shell { width: min(calc(100% - 104px), 1280px); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 10px 15px; border-radius: 7px; background: var(--gold); color: var(--accent-text); transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: var(--header); background: color-mix(in srgb, var(--header) 91%, transparent); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; min-height: calc(var(--header-height) - 1px); }
.brand { display: inline-flex; justify-self: start; align-items: center; gap: 11px; text-decoration: none; white-space: nowrap; }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.brand span { display: grid; gap: 3px; }
.brand strong { font-family: var(--serif); font-weight: 800; font-size: .87rem; line-height: 1.1; }
.brand small { color: var(--muted); font-size: .58rem; font-weight: 760; line-height: 1.15; letter-spacing: .16em; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: 3px; }
.main-nav a { display: grid; align-items: center; min-height: 42px; padding-inline: 11px; border-radius: 9px; color: var(--muted); text-decoration: none; font-weight: 680; white-space: nowrap; font-size: .89rem; }
.main-nav a:hover { color: var(--text); background: var(--surface-2); }
.main-nav a[aria-current="location"] { color: var(--violet); background: var(--violet-soft); }
.header-actions { display: flex; justify-self: end; align-items: center; gap: 8px; }
.offline-open { display: inline-flex; min-height: 44px; align-items: center; gap: 7px; padding-inline: 10px; border: 1px solid var(--gold-line); border-radius: 12px; background: var(--gold-soft); color: var(--gold); font-size: .8rem; font-weight: 740; white-space: nowrap; }
.offline-open:hover { background: var(--surface-2); border-color: var(--gold); }
.offline-open[data-state="guardado"] .icon-offline::after { inset: 4px 4px auto 4px; height: 3px; transform: rotate(-45deg); border: solid; border-width: 0 0 1.5px 1.5px; background: none; }
.theme-toggle { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; background: transparent; border: 1px solid var(--line); border-radius: 12px; color: var(--text); }
.theme-toggle:hover { background: var(--violet-soft); color: var(--violet); }
.theme-symbol { font-size: 1.25rem; line-height: 1; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff8ed;
  background: #0a0a19;
  border-bottom: 1px solid #322741;
}
.hero-visual,
.hero::before,
.hero::after { position: absolute; inset: 0; content: ""; pointer-events: none; }
.hero-visual {
  z-index: -3;
  background: #17254a url("assets/cubierta-campamento.webp") center 54% / cover no-repeat;
}
.hero::before {
  z-index: -2;
  background: radial-gradient(ellipse at 52% 39%, #30277b50, transparent 63%), linear-gradient(180deg, #10112884 0%, #0c0c1c28 52%, #0a0a17b8 79%, #0b0c14 100%);
}
.hero::after {
  z-index: -1;
  background: radial-gradient(ellipse at 50% 45%, #25195633, transparent 59%), linear-gradient(90deg, #090b2138, transparent 35%, transparent 65%, #090b2138);
}
.hero-inner {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  min-height: clamp(605px, 82svh, 790px);
  place-items: center;
  padding-block: clamp(34px, 5.4vw, 75px) clamp(47px, 6vw, 85px);
  text-align: center;
}
.identity-stage { position: relative; display: grid; place-items: center; width: 100%; height: 100%; min-height: 210px; }
.hero-wordmark { position: relative; width: min(100%, 970px); height: 100%; margin: 0; line-height: 1; }
.hero-wordmark img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 18px #050519b5) drop-shadow(0 0 42px #4f37be50);
}

@keyframes camporee-logo-enter {
  from { opacity: .84; transform: translateY(4px) scale(.975); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-wordmark img.media-in-view { animation: camporee-logo-enter 650ms ease-out; }
}

.emblem-section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  scroll-margin-top: calc(0px - var(--header-height) - 18px);
  background: #080910;
  border-bottom: 1px solid var(--line);
}
.opening-stage {
  position: absolute;
  inset: 0;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 50%, #15122a, #080910 72%);
}
.opening-visual {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.opening-fallback,
.opening-visual video {
  position: absolute;
  inset: 0;
  transition: opacity .3s ease-out;
}
.opening-visual img,
.opening-visual video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: screen;
  filter: contrast(1.055);
}
.opening-visual video { opacity: 0; }
.opening-stage.has-video video { opacity: 1; }
.opening-stage.has-video .opening-fallback { opacity: 0; }
.opening-stage.animate-fallback .opening-fallback { animation: emblem-in 2.6s cubic-bezier(.2,.65,.18,1) both; }
.opening-expand {
  position: absolute;
  z-index: 1;
  inset-inline-end: max(16px, env(safe-area-inset-right, 0px));
  inset-block-end: max(19px, env(safe-area-inset-bottom, 0px));
  display: grid;
  place-items: center;
  min-width: 46px;
  min-height: 46px;
  padding: 0;
  border: 1px solid #8681b8;
  border-radius: 10px;
  background: #15152de3;
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
}
.opening-expand:hover { background: #362960; }
.opening-expand:focus-visible { outline-color: #d7c7ff; }
.opening-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #0b0c14;
}
.opening-stage:fullscreen .opening-expand,
.opening-dialog .opening-expand { inset-block-end: max(19px, env(safe-area-inset-bottom, 0px)); }
@media (max-width: 800px) {
  .emblem-section .opening-expand { inset-block-end: calc(86px + env(safe-area-inset-bottom, 0px)); }
}
@keyframes emblem-in {
  from { transform: perspective(800px) rotateY(-62deg) scale(.74); }
  to { transform: none; }
}
.hero-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 27px; margin-bottom: 24px; color: #f4edf7; font-size: .93rem; font-weight: 690; }
.hero-facts span, .hero-facts a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.hero-facts a:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero-facts .icon { color: #ffd477; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.connection-security { display: flex; flex: 0 0 100%; align-items: center; justify-content: center; gap: 6px; color: #e1d9ec; font-size: .76rem; font-weight: 650; }
.connection-security .icon { color: #ffd477; }
[data-theme="claro"] .hero { border-color: #4c4466; }
[data-theme="claro"] .hero::before { background: radial-gradient(ellipse at 50% 35%, #4937a83b, transparent 64%), linear-gradient(180deg, #12142f73, #11142b30 53%, #0e0f23b8 82%, #101023); }
.hero :focus-visible { outline-color: #ffd477; }

.button { display: inline-flex; min-height: 45px; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border: 1px solid transparent; border-radius: 10px; font-size: .92rem; font-weight: 760; line-height: 1.28; text-align: center; text-decoration: none; transition: background-color 170ms, color 170ms, border-color 170ms; }
.button-primary { background: #ffcb56; color: #1a1425; padding-inline: 20px; }
.button-primary:hover { background: #ffe192; }
.hero-actions .button { min-height: 50px; }
.button-hero { background: #1e1946a8; color: #fff9fa; border-color: #c0b1f69c; -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px); }
.button-hero:hover { background: #422f79; }
.button-outline { background: var(--surface); color: var(--text); border-color: var(--line); }
.button-outline:hover { background: var(--violet-soft); color: var(--violet); border-color: var(--violet); }

.icon { position: relative; display: inline-block; flex: 0 0 15px; width: 15px; height: 15px; }
.icon-calendar { border: 1.5px solid; border-radius: 3px; }
.icon-calendar::before { position: absolute; top: 4px; inset-inline: 0; border-top: 1.5px solid; content: ""; }
.icon-calendar::after { position: absolute; top: -3px; left: 3px; width: 6px; height: 4px; border-inline: 1.5px solid; content: ""; }
.icon-pin::before { position: absolute; inset: 0 2px 3px; transform: rotate(-45deg); border: 1.5px solid; border-radius: 50% 50% 50% 0; content: ""; }
.icon-pin::after { position: absolute; top: 4px; left: 6px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; content: ""; }
.icon-document { width: 12px; flex-basis: 12px; border: 1.5px solid; border-radius: 2px; }
.icon-document::after { position: absolute; inset: 4px 2px auto; height: 4px; border-block: 1px solid; content: ""; }
.icon-lock::before { position: absolute; inset: 6px 2px 1px; border: 1.5px solid; border-radius: 2px; content: ""; }
.icon-lock::after { position: absolute; inset: 1px 4px 8px; border: 1.5px solid; border-bottom: 0; border-radius: 6px 6px 0 0; content: ""; }
.icon-offline { height: 12px; border: 1.5px solid; border-radius: 3px; }
.icon-offline::after { position: absolute; inset: 4px 3px auto; height: 1.5px; background: currentColor; content: ""; }
.icon-search::before { position: absolute; inset: 0 4px 4px 0; border: 1.5px solid; border-radius: 50%; content: ""; }
.icon-search::after { position: absolute; right: 0; bottom: 2px; width: 6px; height: 1.5px; transform: rotate(45deg); background: currentColor; content: ""; }
.icon-play::before { position: absolute; top: 1px; left: 4px; border-block: 6.5px solid transparent; border-left: 10px solid currentColor; content: ""; }

.section { padding-block: clamp(69px, 7.8vw, 118px); border-bottom: 1px solid var(--line); }
.section-header { margin-bottom: clamp(20px, 3.1vw, 42px); }
.section-header-action { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 24px; }
.section-header h2 { max-width: 18ch; margin: 0; font-size: clamp(2.4rem, 5.6vw, 5.35rem); font-weight: 790; letter-spacing: -.078em; line-height: .96; text-wrap: balance; }
.section-header > p:not(.eyebrow) { max-width: 56ch; margin: 13px 0 0; color: var(--muted); font-size: 1rem; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; color: var(--violet); font-size: .78rem; font-weight: 790; letter-spacing: .125em; text-transform: uppercase; }
.eyebrow::before { display: inline-block; width: 13px; height: 3px; border-radius: 2px; background: currentColor; content: ""; }
.schedule-section { background: radial-gradient(ellipse at 15% 0%, var(--violet-soft), transparent 53%), var(--bg); }
.pdf-link .icon { color: var(--violet); }
.offline-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 12px; margin-block: -5px 20px; }
.offline-actions:not(:has(#save-offline:not([hidden]), #offline-status:not(:empty))) { display: none; }
.offline-actions p { margin: 0; color: var(--muted); font-size: .86rem; }
.offline-actions p:empty { display: none; }
.offline-actions button:disabled { opacity: .75; cursor: wait; }
.offline-reminder {
  width: min(29rem, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: clamp(17px, 4.5vw, 27px);
  overflow: auto;
  border: 1px solid var(--gold-line);
  border-radius: 20px;
  background: radial-gradient(ellipse at top right, var(--violet-soft), transparent 70%), var(--surface);
  color: var(--text);
  box-shadow: 0 18px 60px #08081270;
}
.offline-reminder::backdrop { background: #080812a6; }
.offline-reminder h2 { margin: 0; font-size: clamp(1.25rem, 4.5vw, 1.6rem); line-height: 1.16; }
.offline-reminder p { margin: 10px 0 0; color: var(--muted); font-size: .91rem; }
.offline-reminder .offline-note { font-size: .8rem; }
.offline-reminder .offline-reminder-status { margin: 0; }
.offline-reminder .offline-reminder-status:not(:empty) { margin-top: 12px; padding-inline-start: 10px; border-inline-start: 2px solid var(--gold); color: var(--text); }
.offline-reminder-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.offline-reminder-actions .button { min-height: 44px; }
.offline-reminder-actions .button[aria-disabled="true"] { opacity: .75; cursor: wait; }

@media (max-width: 540px) {
  .offline-reminder { inset: auto 0 max(12px, env(safe-area-inset-bottom, 0px)); margin: 0 auto; }
}

.map-section { background: linear-gradient(155deg, var(--surface), var(--bg) 80%); }
.map-section .section-header h2 { max-width: 16ch; }
#mapa-interactivo { min-height: 12rem; }

.participants-section { background: radial-gradient(ellipse at 97% 10%, color-mix(in srgb, #367fca 24%, var(--surface)), transparent 66%), var(--surface); }
.segmented { display: inline-flex; max-width: 100%; align-items: center; flex-wrap: wrap; gap: 3px; margin-bottom: 20px; padding: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.segmented button { min-height: 42px; padding: 7px 14px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); font-size: .9rem; font-weight: 740; }
.segmented button[aria-selected="true"] { background: var(--violet-soft); border-color: var(--violet); color: var(--text); }
.segmented button:hover { color: var(--text); }
.participant-jump { display: inline-flex; gap: 6px; margin: 0 0 14px; padding-block: 4px; color: var(--gold); text-underline-offset: 4px; font-size: .9rem; font-weight: 700; }
.participant-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 10px; padding: 0; margin: 0; list-style: none; }
.participant { min-width: 0; overflow: hidden; border-radius: 5px 21px 5px 5px; border: 1px solid var(--line); background: var(--bg); }
.portrait {
  position: relative;
  isolation: isolate;
  display: grid;
  aspect-ratio: 4 / 5;
  justify-items: center;
  align-items: end;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 40%, #528bc8, #234e85 55%, #132644 95%);
}
.portrait::before { position: absolute; z-index: -1; top: 16%; width: 65%; aspect-ratio: 1; content: ""; border: 1px solid #cbe7ff85; border-radius: 50%; box-shadow: 0 0 0 6px #86c2ff26, 0 0 24px #9ed8ff50; }
.portrait-silhouette { position: absolute; inset: auto 0 0; width: min(84%, 162px); aspect-ratio: 1; margin-inline: auto; filter: drop-shadow(0 0 2px #132644); }
.portrait-silhouette::before, .portrait-silhouette::after { position: absolute; background: #0f1e37; content: ""; }
.portrait-silhouette::before { top: 13%; left: 31%; width: 38%; height: 52%; border-radius: 48% 48% 44% 43%; }
.portrait-silhouette::after { bottom: -5%; left: 10.5%; width: 79%; height: 47%; border-radius: 47% 47% 0 0 / 58% 58% 0 0; }
.portrait-silhouette.mujer::before { left: 26.5%; width: 47%; height: 62%; border-radius: 47% 52% 26% 24% / 40% 40% 26% 24%; }
.portrait-silhouette.mujer::after { left: 15%; width: 70%; }
.portrait.has-photo .portrait-silhouette { display: none; }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; transform-origin: center bottom; filter: drop-shadow(0 4px 7px #091e3870); }
.participant-data { display: grid; align-content: start; gap: 4px; min-height: 94px; padding: 12px 10px 13px; }
.participant-data p { margin: 0; color: var(--violet); font-size: .71rem; font-weight: 790; line-height: 1.35; overflow-wrap: anywhere; }
.participant-data h3 { margin: 0; overflow-wrap: anywhere; font-size: .96rem; line-height: 1.22; }

.clubs-section { background: var(--bg); }
.club-search { display: flex; min-height: 47px; width: min(100%, 250px); align-items: center; gap: 8px; padding-inline: 13px; background: var(--surface); color: var(--muted); border: 1px solid var(--line); border-radius: 8px; }
.club-search:focus-within { border-color: var(--violet); }
.club-search input { min-width: 0; width: 100%; color: var(--text); background: transparent; border: 0; padding: 8px 0; font-size: .9rem; }
.club-search input::placeholder { color: var(--muted); }
.camp-guests {
  margin-bottom: 24px;
  padding: clamp(12px, 2.4vw, 22px);
  border: 1px solid var(--gold-line);
  border-radius: 16px;
  background: linear-gradient(115deg, var(--gold-soft), var(--surface) 80%);
}
.camp-guests h3 { margin: 0 0 10px; font-size: clamp(1.05rem, 2.8vw, 1.45rem); line-height: 1.2; }
.camp-guest-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.camp-guest-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 12px;
  min-height: 60px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  text-decoration: none;
}
.camp-guest-link:hover { border-color: var(--gold-line); background: var(--bg); }
.camp-guest-link strong, .camp-guest-link small { display: block; line-height: 1.3; }
.camp-guest-link small { margin-top: 3px; color: var(--muted); font-size: .78rem; }
.camp-guest-map { display: inline-flex; align-items: center; gap: 5px; color: var(--gold); font-size: .82rem; font-weight: 720; }
.club-zones { min-inline-size: 0; padding: 0; margin: 0 0 20px; border: 0; }
.club-zones legend { margin-bottom: 8px; padding: 0; color: var(--muted); font-size: .9rem; font-weight: 700; }
.zone-grid {
  --zone-columns: 7;
  --zone-gap: 8px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--zone-gap);
}
.zone-card {
  position: relative;
  display: grid;
  flex: 0 0 calc((100% - (var(--zone-columns) - 1) * var(--zone-gap)) / var(--zone-columns));
  justify-items: center;
  align-content: start;
  gap: 4px;
  min-width: 0;
  padding: 10px 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  text-align: center;
  cursor: pointer;
}
.zone-card:hover { border-color: var(--violet); }
.zone-card:has(:checked) { border-color: var(--gold-line); background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--gold-line); }
.zone-card:has(:focus-visible) { outline: 2px solid var(--violet); outline-offset: 2px; }
.zone-card-all { display: inline-grid; min-height: 44px; align-content: center; margin-bottom: 10px; padding: 6px 12px; font-size: .85rem; font-weight: 730; }
.zone-card picture { width: min(100%, 84px); min-width: 0; }
.zone-logo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 3px;
  margin-bottom: 3px;
  background: radial-gradient(closest-side, #ddd3ff74, transparent);
  filter: drop-shadow(0 2px 4px #08072060);
}
.zone-card strong { font-size: .85rem; line-height: 1.2; }
.zone-grid .zone-card span { color: var(--muted); font-size: .73rem; line-height: 1.2; overflow-wrap: anywhere; }

@keyframes camporee-image-enter {
  from { opacity: .78; scale: .96; }
}
@media (prefers-reduced-motion: no-preference) {
  .portrait.media-in-view.has-photo img,
  .zone-logo.media-in-view { animation: camporee-image-enter 450ms ease-out; }
  .zone-logo { transition: transform 220ms ease-out; }
  .zone-card:has(:checked) .zone-logo { transform: translateY(-3px); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .portrait img { transition: transform 260ms ease-out; }
  .participant:hover .portrait.has-photo img { transform: scale(1.025); }
  .zone-card:hover .zone-logo { transform: translateY(-3px); }
}

.club-count { margin: 0 0 11px; color: var(--muted); font-size: .9rem; }
.club-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.club-card { display: grid; grid-template-columns: 40px minmax(0,1fr) 41px; align-items: center; min-width: 0; min-height: 82px; padding: 10px; gap: 9px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.club-zone-mark { display: grid; width: 39px; height: 39px; place-items: center; border-radius: 8px; background: var(--violet-soft); color: var(--violet); font-size: .79rem; font-weight: 780; }
.club-card strong { display: block; overflow-wrap: anywhere; font-size: .96rem; line-height: 1.25; }
.club-card small { display: block; margin-top: 3px; color: var(--muted); font-size: .77rem; }
.club-map-link { display: grid; place-items: center; min-width: 41px; min-height: 42px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); color: var(--gold); text-decoration: none; }
.club-map-link:hover { background: var(--gold-soft); border-color: var(--gold-line); }
.club-more { margin-top: 17px; }

.anthem-section { background: radial-gradient(ellipse at 0 85%, var(--violet-soft), transparent 68%), var(--surface); }
.anthem-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; align-items: stretch; }
.anthem-listen, .anthem-watch { min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: var(--bg); }
.anthem-listen { display: grid; grid-template-columns: minmax(110px, .49fr) minmax(0,1fr); align-items: center; gap: 14px; }
.anthem-cover { width: 100%; height: auto; border-radius: 9px; }
.anthem-platform { min-width: 0; }
.anthem-platform p { margin: 0 0 9px; color: var(--muted); font-size: .87rem; font-weight: 640; }
.spotify-embed { margin-bottom: 8px; border-radius: 8px; overflow: hidden; }
.spotify-embed iframe { display: block; width: 100%; height: 152px; border: 0; }
#anthem-status { color: var(--muted); font-size: .88rem; }
#anthem-status:empty { display: none; }
.video-frame { position: relative; aspect-ratio: 16 / 9; margin-bottom: 9px; overflow: hidden; border-radius: 9px; background: var(--surface-2); }
.video-frame iframe, .video-preview { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; }
.video-preview { color: #211704; }
.video-preview:focus-visible { outline-offset: -4px; }
.video-preview img { width: 100%; height: 100%; object-fit: cover; }
.video-play { position: absolute; inset: 50% auto auto 50%; display: grid; place-items: center; width: 57px; height: 57px; transform: translate(-50%,-50%); border-radius: 50%; background: #ffcb56; box-shadow: 0 5px 24px #0009; }
.video-preview:hover .video-play { background: #ffe299; }

.photo-section { padding-block: clamp(34px, 5.6vw, 70px); border-bottom: 1px solid var(--line); }
.photo-callout {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 17px;
  padding: clamp(18px, 3.5vw, 40px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(118deg, var(--violet-soft), var(--surface) 74%);
}
.photo-callout h2 { margin: 0; line-height: 1.05; font-size: clamp(1.8rem, 4.1vw, 3.3rem); letter-spacing: -.055em; }

.camp-impact {
  --impact-base: #0b1022;
  --impact-halo: #263867;
  --impact-ink: #f8f7ff;
  --impact-muted: #d2d8ec;
  --impact-gold: #ffcd63;
  --impact-tile: #141e37;
  --impact-edge: #465575;
  --impact-highlight: #292541;
  --impact-highlight-edge: #ac8345;
  background: radial-gradient(ellipse at 84% -15%, var(--impact-halo), transparent 64%), var(--impact-base);
  color: var(--impact-ink);
}
[data-theme="claro"] .camp-impact {
  --impact-base: #f1f4fe;
  --impact-halo: #d3e0fb;
  --impact-ink: #131d39;
  --impact-muted: #384769;
  --impact-gold: #794600;
  --impact-tile: #fafbff;
  --impact-edge: #afbddd;
  --impact-highlight: #fff4dd;
  --impact-highlight-edge: #c5a264;
}
.camp-impact-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 4.5vw, 60px);
  margin-block-end: clamp(20px, 4vw, 46px);
}
.camp-impact-header h2 {
  margin: 0;
  font-size: clamp(2.7rem, 7.6vw, 7.2rem);
  font-weight: 830;
  line-height: .93;
  letter-spacing: -.078em;
}
.camp-impact-header h2 span { display: block; color: var(--impact-gold); }
.camp-impact-mark { position: relative; isolation: isolate; width: clamp(126px, 24vw, 275px); }
.camp-impact-mark::before {
  position: absolute;
  z-index: -1;
  inset: 6%;
  border: 1px solid var(--impact-edge);
  border-radius: 50%;
  background: radial-gradient(circle, var(--impact-halo), transparent 71%);
  content: "";
}
.camp-impact-mark img { width: 100%; height: auto; filter: drop-shadow(0 8px 14px #070d304a); }
.camp-impact-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(8px, 1.25vw, 16px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.camp-impact-card {
  display: grid;
  grid-column: span 3;
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding: clamp(13px, 2.4vw, 30px);
  border: 1px solid var(--impact-edge);
  border-radius: clamp(11px, 1.7vw, 21px);
  background: var(--impact-tile);
}
.camp-impact-lead {
  grid-column: span 7;
  border-color: var(--impact-highlight-edge);
  background: linear-gradient(135deg, var(--impact-highlight), var(--impact-tile));
}
.camp-impact-visitors { grid-column: span 5; }
.camp-impact-team { grid-column: span 6; }
.camp-impact-count {
  font-size: clamp(2.35rem, 5.5vw, 5.15rem);
  font-weight: 850;
  line-height: .98;
  letter-spacing: -.07em;
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
}
.camp-impact-lead .camp-impact-count, .camp-impact-visitors .camp-impact-count { font-size: clamp(2.35rem, 8.9vw, 8rem); }
.camp-impact-lead .camp-impact-count, .camp-impact-plus { color: var(--impact-gold); }
.camp-impact-plus { padding-inline-end: .06em; font-size: .73em; }
.camp-impact-label { color: var(--impact-muted); font-size: clamp(.86rem, 1.6vw, 1.15rem); font-weight: 680; line-height: 1.3; }

@keyframes camp-impact-enter {
  from { opacity: .68; transform: translateY(9px); }
}
@media (prefers-reduced-motion: no-preference) {
  .camp-impact .media-in-view { animation: camp-impact-enter 480ms ease-out; }
}
@media (max-width: 620px) {
  .camp-impact-header { gap: 8px; }
  .camp-impact-header h2 { font-size: clamp(1.9rem, 8.1vw, 3.45rem); }
  .camp-impact-mark { width: clamp(83px, 26vw, 154px); }
  .camp-impact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .camp-impact-card { grid-column: span 1; }
  .camp-impact-team { grid-column: 1 / -1; }
}

.footer { padding-block: 39px 47px; background: var(--bg); }
.footer-inner { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: 20px; }
.footer-credit { margin-block-start: 22px; padding-block-start: 10px; border-top: 1px solid var(--line); color: var(--muted); }
.footer-credit small { font-size: .75rem; }
.footer p { margin: 11px 0 0; color: var(--muted); font-size: .87rem; }
.footer-social { display: grid; gap: 9px; justify-items: end; }
.social-handle { color: var(--gold); font-weight: 750; text-underline-offset: 4px; }
.footer-social nav { display: flex; flex-wrap: wrap; gap: 6px; }
.footer-social nav a { display: inline-grid; align-items: center; min-height: 42px; padding-inline: 11px; border: 1px solid var(--line); border-radius: 7px; color: var(--text); text-decoration: none; font-size: .86rem; font-weight: 680; }
.footer-social nav a:hover { color: var(--violet); border-color: var(--violet); }

@media (max-width: 1030px) {
  .shell { width: calc(100% - 62px); }
  .header-inner { gap: 12px; }
  .main-nav a { padding-inline: 10px; }
  .participant-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .club-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .anthem-listen { grid-template-columns: minmax(84px, 28%) minmax(0,1fr); }
}
@media (max-width: 970px) {
  :root { --header-height: 104px; }
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 0 10px; padding-top: 7px; }
  .site-header .brand { min-width: 0; min-height: 48px; white-space: normal; }
  .site-header .brand img { flex-shrink: 0; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; justify-content: start; max-width: 100%; overflow: auto; scrollbar-width: none; }
  .main-nav a { min-height: 41px; font-size: .82rem; }
  .main-nav::-webkit-scrollbar { display: none; }
}
@media (max-width: 790px) {
  .shell { width: calc(100% - 44px); }
  .hero-inner { min-height: max(540px, min(72svh, 650px)); }
  .hero-wordmark { width: min(100%, 750px); }
  .zone-grid { --zone-columns: 4; }
  .anthem-layout { gap: 10px; }
  .anthem-listen, .anthem-watch { padding: 10px; }
}
@media (max-width: 560px) {
  .shell { width: calc(100% - 30px); }
  .main-nav { gap: 2px; justify-content: space-between; }
  .main-nav a { min-height: 38px; padding-inline: 2px; font-size: .76rem; }
  .hero-visual { background-image: url("assets/cubierta-campamento-movil.webp"); background-position: 62% 58%; }
  .identity-stage { min-height: 158px; }
  .hero-wordmark { width: 100%; }
  .hero-facts { gap: 5px 14px; margin-bottom: 19px; font-size: .82rem; }
  .hero-actions { gap: 7px; }
  .hero-actions .button { min-height: 45px; padding-inline: 12px; font-size: .86rem; }
  .section { padding-block: 57px 60px; }
  .section-header h2 { font-size: clamp(2.25rem, 10vw, 3.35rem); letter-spacing: -.07em; }
  .section-header-action { gap: 12px; }
  .participant-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .participant-data { min-height: 73px; }
  .club-search { width: 100%; }
  .camp-guest-list { grid-template-columns: 1fr; }
  .zone-grid { --zone-gap: 6px; }
  .zone-card picture { width: min(100%, 64px); }
  .club-grid { grid-template-columns: 1fr; gap: 7px; }
  .club-card { min-height: 67px; }
  .anthem-layout { grid-template-columns: 1fr; }
  .footer-social { justify-items: start; }
}
@media (max-width: 370px) {
  .site-header .brand { gap: 6px; }
  .site-header .brand img { width: 29px; height: 29px; }
  .site-header .brand strong { font-size: .75rem; }
  .site-header .brand small { font-size: .53rem; letter-spacing: .08em; }
  .header-actions { gap: 6px; }
  .offline-open { gap: 5px; padding-inline: 7px; font-size: .74rem; }
}
@media (max-width: 350px) {
  .main-nav a { font-size: .72rem; }
  .hero-facts { font-size: .76rem; }
  .zone-grid { --zone-columns: 3; }
  .anthem-listen { grid-template-columns: 1fr; }
  .anthem-cover { max-width: 130px; }
}
@media (max-width: 319px) {
  .offline-open .icon { display: none; }
  .site-header .brand span { min-width: 0; overflow-wrap: anywhere; }
}
@media (max-width: 620px) {
  :root { --header-height: calc(98px + env(safe-area-inset-top, 0px)); }
  .site-header { position: fixed; inset: 0 0 auto; }
  .header-inner { padding-top: calc(7px + env(safe-area-inset-top, 0px)); }
  .hero-inner {
    min-height: 100vh;
    min-height: 100svh;
    padding-block: calc(var(--header-height) + 24px) max(33px, calc(env(safe-area-inset-bottom, 0px) + 20px));
  }
}

@media (orientation: landscape) and (max-height: 540px) {
  .hero-inner {
    min-height: max(225px, calc(100svh - var(--header-height)));
    padding-block: 8px max(12px, env(safe-area-inset-bottom, 0px));
  }
  .identity-stage { min-height: 125px; }
  .hero-facts { margin-bottom: 10px; }
  .hero-actions .button { min-height: 44px; }
}

@media (orientation: landscape) and (max-height: 540px) and (max-width: 620px) {
  .hero-inner {
    min-height: max(100svh, calc(var(--header-height) + 225px));
    padding-block-start: calc(var(--header-height) + 8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .opening-stage video { display: none; }
  .opening-stage.has-video .opening-fallback { opacity: 1; }
}
