:root {
  --color-ink: #0d1115;
  --color-charcoal: #14191f;
  --color-muted: #68716f;
  --color-surface: #f6f1e8;
  --color-surface-2: #eee7da;
  --color-panel: #fffdf8;
  --color-line: #d8d0c1;
  --color-accent: #10bad6;
  --color-accent-dark: #087c94;
  --color-gold: #b99a63;
  --color-danger: #a12828;
  --radius: 8px;
  --space: clamp(16px, 2vw, 28px);
  --shadow-soft: 0 24px 70px rgba(18, 18, 16, .13);
  --shadow-card: 0 12px 32px rgba(18, 18, 16, .08);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.54), rgba(246,241,232,0) 340px),
    radial-gradient(circle at 16% 8%, rgba(16,186,214,.12), transparent 32vw),
    var(--color-surface);
  color: var(--color-ink);
  font-family: var(--font);
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { outline-color: var(--color-accent); }
.protected-media,
.protected-media img {
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}
.capture-shield .protected-media img {
  filter: blur(24px) brightness(.18) !important;
}
.capture-shield .protected-media::before {
  content: "Contenido protegido";
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  color: white;
  background: rgba(5, 8, 10, .82);
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 10; background: var(--color-ink); color: white; padding: 10px 14px; }
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(16px, 4vw, 56px);
  background: rgba(255, 253, 248, .86);
  border-bottom: 1px solid rgba(17, 19, 21, .09);
  backdrop-filter: blur(18px);
}
.site-header > * { min-width: 0; }
.brand { display: inline-flex; gap: 12px; align-items: center; text-decoration: none; min-width: 0; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: white;
  background: #fff;
  border: 1px solid rgba(13,17,21,.12);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0,0,0,.08);
}
.brand-mark img { width: 150%; height: 150%; object-fit: contain; object-position: center 45%; }
.brand-wordmark {
  display: block;
  width: clamp(152px, 14vw, 214px);
  height: 54px;
  overflow: hidden;
}
.brand-wordmark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.02rem; letter-spacing: .01em; }
.brand small { color: var(--color-muted); }
nav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: end; min-width: 0; }
nav a { text-decoration: none; color: #3f4746; font-weight: 720; font-size: .94rem; }
nav a:hover { color: var(--color-ink); }
.nav-button { border: 0; background: transparent; color: #3f4746; font-weight: 720; cursor: pointer; padding: 0; }
.cart-link { background: var(--color-ink); color: white; padding: 9px 12px; border-radius: 999px; }
.cart-link span { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--color-accent); color: #06262d; margin-left: 4px; }

.hero {
  min-height: calc(100svh - 76px);
  display: flex;
  align-items: center;
  padding: clamp(72px, 10vw, 132px) clamp(16px, 5vw, 72px) clamp(74px, 10vw, 120px);
  position: relative;
  overflow: hidden;
  background: #071016;
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: transparent;
  pointer-events: none;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.82) contrast(1.08);
}
.gate-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,17,21,.05), rgba(13,17,21,.55));
  pointer-events: none;
}
.hero-copy {
  width: min(100%, 720px);
  max-width: 720px;
  min-width: 0;
  position: relative;
  z-index: 2;
  color: white;
}
.hero-logo {
  width: min(680px, 90vw);
  height: clamp(126px, 15vw, 210px);
  margin-bottom: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
  box-shadow: none;
}
.hero-kicker {
  width: min(680px, 90vw);
  margin: 0 0 10px;
  color: #FFF;
  text-align: center;
  font-size: clamp(1rem, 1.8vw, 1.32rem);
  font-weight: 830;
  text-shadow: 0 12px 30px rgba(0,0,0,.42);
}
.hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 18px 28px rgba(0,0,0,.34));
}
.eyebrow { margin: 0 0 8px; color: var(--color-accent-dark); text-transform: uppercase; letter-spacing: .08em; font-size: .76rem; font-weight: 850; }
h1, h2, h3 { line-height: 1.05; letter-spacing: 0; margin: 0 0 14px; }
h1 { font-size: clamp(2.8rem, 8vw, 7rem); font-weight: 860; }
h2 { font-size: clamp(1.7rem, 4vw, 3rem); }
h3 { font-size: 1.1rem; }
p { color: var(--color-muted); }
.hero p:not(.eyebrow) {
  color: rgba(255,255,255,.78);
  max-width: min(640px, 100%);
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
}
.hero p.hero-kicker {
  width: min(680px, 90vw);
  max-width: none;
  color: #FFF;
  text-align: center;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 11px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 780;
  cursor: pointer;
  background: transparent;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: linear-gradient(135deg, var(--color-ink), #22303a); color: white; box-shadow: 0 12px 28px rgba(13,17,21,.18); }
.btn.secondary { border-color: rgba(13,17,21,.12); background: rgba(255,253,248,.88); color: var(--color-ink); box-shadow: 0 8px 20px rgba(13,17,21,.06); }
.btn.ghost { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.1); color: white; backdrop-filter: blur(10px); }
.btn.text { color: var(--color-accent-dark); padding-inline: 0; }
.btn.small { min-height: 36px; padding: 7px 10px; font-size: .88rem; }
.btn.full { width: 100%; }
.btn.disabled { pointer-events: none; opacity: .45; }
.whatsapp-cta {
  background: linear-gradient(135deg, #0b7c55, #21c166);
  border-color: rgba(33,193,102,.42);
  color: white;
  box-shadow: 0 12px 28px rgba(18, 140, 91, .2);
}
.danger-text { color: var(--color-danger); }

.section { padding: clamp(46px, 6vw, 96px) clamp(16px, 5vw, 72px); }
.section > * { max-width: 1160px; margin-left: auto; margin-right: auto; }
.section.narrow > * { max-width: 640px; }
.flow h2, .faq h2, .contact h2 { max-width: 1160px; margin-inline: auto; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 24px; }
.steps article, .service-grid span, .metric, .rules article {
  background: rgba(255,253,248,.82);
  border: 1px solid rgba(13,17,21,.08);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-card);
}
.steps span { color: var(--color-accent-dark); font-weight: 900; font-size: 1.4rem; }
.dark {
  background: linear-gradient(135deg, #11161b, #1c252d);
  color: white;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 28px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.dark p { color: #d2d6d7; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.service-grid span {
  min-height: 96px;
  display: flex;
  align-items: end;
  color: white;
  font-weight: 860;
  background:
    linear-gradient(135deg, rgba(6, 125, 148, .96), rgba(12, 203, 220, .88) 52%, rgba(19, 107, 172, .96)),
    #0aaec8;
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 18px 38px rgba(5, 89, 112, .26);
  position: relative;
  overflow: hidden;
}
.service-grid span::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.22), transparent 44%);
  pointer-events: none;
}
.service-grid span:nth-child(2n) {
  background:
    linear-gradient(135deg, rgba(13, 95, 139, .98), rgba(17, 188, 215, .9) 48%, rgba(8, 54, 91, .98)),
    #0b84b6;
}
.service-grid span:nth-child(3n) {
  background:
    linear-gradient(135deg, rgba(14, 31, 47, .98), rgba(14, 178, 203, .9) 56%, rgba(24, 139, 184, .98)),
    #109abd;
}
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 5vw, 70px); }
.public-home {
  background:
    linear-gradient(180deg, rgba(255,253,248,.94), rgba(239,247,248,.88)),
    var(--color-panel);
}
.public-home-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(18px, 4vw, 46px);
  align-items: end;
}
.public-home-head p:not(.eyebrow) {
  max-width: 760px;
  font-size: 1.05rem;
}
.public-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}
.public-feature-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #0e151b;
  box-shadow: 0 28px 70px rgba(11, 35, 45, .22);
  isolation: isolate;
  aspect-ratio: 1 / 1;
  margin: 0;
}
.public-feature-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.92) contrast(1.04);
}
.access-band { padding: clamp(46px, 6vw, 84px) 16px; text-align: center; background: linear-gradient(135deg, #dff5f8, #f8f2e8); }
.access-card {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  background: rgba(255,255,255,.76);
  border: 1px solid rgba(13,17,21,.08);
  border-radius: 8px;
  padding: clamp(24px, 5vw, 48px);
  box-shadow: var(--shadow-soft);
}
.school-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #fffdf8;
}
.school-cta > div {
  max-width: 760px;
}
.school-cta .btn {
  flex: 0 0 auto;
}
details { border-top: 1px solid var(--color-line); padding: 18px 0; }
summary { cursor: pointer; font-weight: 760; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 28px clamp(16px, 4vw, 56px); background: var(--color-ink); color: white; flex-wrap: wrap; }
.footer span { display: block; color: #cfd4d5; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-wordmark { width: 150px; height: 44px; }

.whatsapp-widget {
  position: fixed;
  right: clamp(14px, 2vw, 28px);
  bottom: clamp(16px, 3vw, 30px);
  z-index: 20;
  display: grid;
  justify-items: end;
  gap: 10px;
  pointer-events: none;
}
.whatsapp-float {
  pointer-events: auto;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, #0b7c55, #21c166);
  box-shadow: 0 18px 42px rgba(7, 111, 76, .34);
  text-decoration: none;
  position: relative;
  isolation: isolate;
}
.whatsapp-float svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}
.whatsapp-float span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.whatsapp-bubble {
  max-width: min(280px, calc(100vw - 92px));
  margin-bottom: 30px;
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--color-ink);
  background: rgba(255,253,248,.98);
  border: 1px solid rgba(13,17,21,.1);
  box-shadow: var(--shadow-card);
  font-weight: 760;
  opacity: 0;
  transform: translateY(8px) scale(.98);
  transition: opacity .24s ease, transform .24s ease;
}
.whatsapp-widget.is-visible .whatsapp-bubble {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: whatsappNudge 1.5s ease .2s both;
}
.whatsapp-widget.is-visible .whatsapp-float {
  animation: whatsappPulse 1.8s ease both;
}

@keyframes whatsappPulse {
  0%, 100% { transform: scale(1); }
  35% { transform: scale(1.05); }
  65% { transform: scale(.99); }
}

@keyframes whatsappNudge {
  0%, 100% { transform: translateY(0) scale(1); }
  45% { transform: translateY(-3px) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-widget.is-visible .whatsapp-bubble,
  .whatsapp-widget.is-visible .whatsapp-float {
    animation: none;
  }
}

.gate { min-height: 100svh; display: grid; grid-template-columns: 1fr 520px; background: var(--color-charcoal); }
.gate-cover { position: relative; overflow: hidden; }
.gate-cover img { width: 100%; height: 100%; object-fit: cover; }
.gate-panel, .form-panel {
  background: rgba(255,253,248,.96);
  padding: clamp(22px, 4vw, 42px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: -20px 0 70px rgba(0,0,0,.18);
}
.gate-panel { justify-content: center; }
.admin-login-section {
  min-height: calc(100svh - 72px);
  display: grid;
  align-items: center;
}
.admin-login-form h1 {
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  overflow-wrap: anywhere;
}
.gate-brand {
  position: absolute;
  z-index: 2;
  left: 24px;
  top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 999px;
  color: white;
  background: rgba(13,17,21,.58);
  backdrop-filter: blur(14px);
}
.gate-brand img {
  width: 152px;
  height: 42px;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
}
label { display: grid; gap: 6px; font-weight: 720; color: var(--color-ink); }
input, select, textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(13,17,21,.13);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: #fffefa;
  color: var(--color-ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
input:focus, select:focus, textarea:focus { border-color: var(--color-accent-dark); box-shadow: 0 0 0 4px rgba(16,186,214,.13); }
textarea { min-height: 86px; resize: vertical; }
.readonly-field {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 12px;
  background: #fffefa;
}
.readonly-field span { display: block; color: var(--color-muted); font-size: .9rem; }
.readonly-field strong { display: block; margin-top: 2px; }
.check-row, .radio-row { display: flex; grid-template-columns: none; gap: 10px; align-items: flex-start; font-weight: 600; }
.check-row input, .radio-row input { width: 20px; min-height: 20px; margin-top: 2px; }
.event-meta, .summary dl, .confirm-grid { display: grid; gap: 10px; margin: 12px 0; }
.event-meta div, .summary dl div, .confirm-grid div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--color-line); padding-bottom: 8px; }
dt { color: var(--color-muted); }
dd { margin: 0; font-weight: 800; text-align: right; }
.fineprint { font-size: .9rem; color: var(--color-muted); }
.notice { padding: 12px; border-radius: var(--radius); background: #fff1d4; color: #734d00; }
.notice.danger, .form-message.error { background: #ffe4e4; color: var(--color-danger); }
.form-message { min-height: 24px; padding: 8px 0; }
.form-message.success { color: #127246; }
.upload-status-list { display: grid; gap: 8px; margin: 8px 0 14px; }
.upload-status-item { display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--color-line); }
.upload-status-item strong { display: block; overflow-wrap: anywhere; font-size: 0.92rem; }
.upload-status-item span { display: block; color: var(--color-muted); font-size: 0.82rem; }
.upload-status-item.error span { color: var(--color-danger); }
.upload-status-item.completed span { color: #127246; }
.upload-status-item progress { width: 100%; height: 8px; }

.event-list, .portfolio-grid, .dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  max-width: 1160px;
  margin: 0 auto;
}
.lobby-instructions {
  max-width: 1160px;
  margin: 0 auto 28px;
}
.event-access-card, .portfolio-card {
  background: rgba(255,253,248,.94);
  border: 1px solid rgba(13,17,21,.08);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 16px;
}
.event-card-cover { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; border: 1px solid var(--color-line); background: #eef0eb; }
.portfolio-card { padding: 0; overflow: hidden; }
.portfolio-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.cover-preview { border: 1px solid var(--line); border-radius: 8px; min-height: 120px; display: grid; place-items: center; color: var(--muted); overflow: hidden; background: #fff; }
.cover-preview img { width: 100%; max-height: 220px; object-fit: cover; display: block; }
.event-cover { width: min(280px, 100%); aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.portfolio-card > div { padding: 18px; }
.compact-section { padding-inline: 0; }
.status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: .78rem;
  font-weight: 850;
  background: #eef0eb;
  color: #46504d;
}
.status-pill.active, .status-pill.reactivated { background: #dff7ef; color: #0f6640; }
.status-pill.scheduled { background: #e1f4fa; color: #075b6d; }
.status-pill.expired, .status-pill.deleted { background: #ffe5e5; color: #8c1f1f; }
.status-pill.draft, .status-pill.disabled { background: #ece8df; color: #6a6258; }
.countdown { color: var(--color-accent-dark); font-weight: 850; }
.countdown.big { display: block; font-size: clamp(1.8rem, 4vw, 3.2rem); color: var(--color-ink); margin: 10px 0 20px; }
.wait-panel {
  background: rgba(255,253,248,.94);
  border: 1px solid rgba(13,17,21,.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(20px, 4vw, 34px);
  margin: 20px 0;
}
.inline-form { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; }
.admin-toolbar { max-width: 760px; padding: 0; margin: 0 0 16px; }

.gallery-head { padding: 36px clamp(16px, 4vw, 56px) 18px; display: flex; gap: 16px; align-items: end; justify-content: space-between; background: linear-gradient(180deg, rgba(255,255,255,.52), transparent); }
.gallery-head h1, .page-title h1, .confirmation h1 { font-size: clamp(2rem, 5vw, 4.2rem); }
.back-link { color: var(--color-accent-dark); font-weight: 760; }
.floating-cart { position: sticky; top: 88px; z-index: 4; background: linear-gradient(135deg, var(--color-ink), #24323b); color: white; text-decoration: none; padding: 12px 16px; border-radius: 999px; font-weight: 850; box-shadow: 0 16px 34px rgba(13,17,21,.2); }
.toolbar { display: grid; grid-template-columns: 280px 1fr; gap: 16px; padding: 0 clamp(16px, 4vw, 56px) 20px; align-items: end; }
.segments { display: flex; gap: 8px; flex-wrap: wrap; }
.segments button, .icon-btn {
  min-height: 38px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-panel);
  cursor: pointer;
  padding: 8px 11px;
  font-weight: 760;
}
.segments .active, .icon-btn.active { border-color: rgba(16,186,214,.55); background: #e5f7fa; color: #063540; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; padding: 0 clamp(16px, 4vw, 56px) 30px; }
.photo-card { background: rgba(255,253,248,.9); border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(13,17,21,.08); position: relative; box-shadow: var(--shadow-card); transition: transform .16s ease, box-shadow .16s ease; }
.photo-card:hover { transform: translateY(-2px); box-shadow: 0 18px 42px rgba(18,18,16,.13); }
.image-button { width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; cursor: zoom-in; position: relative; overflow: hidden; background: linear-gradient(110deg, #eef0eb 8%, #f8f5ed 18%, #eef0eb 33%); background-size: 220% 100%; animation: soft-shimmer 1.2s linear infinite; }
.image-button img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92) contrast(1.04); transition: transform .22s ease; }
.photo-card:hover .image-button img { transform: scale(1.035); }
.photo-info { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px; }
.photo-info span, .cart-row span { display: block; color: var(--color-muted); font-size: .88rem; }
.photo-card > .btn { margin: 0 10px 10px; width: calc(100% - 20px); }
.center-row { display: flex; justify-content: center; padding: 10px 16px 42px; }
.watermark { position: absolute; pointer-events: none; color: rgba(255,255,255,.62); font-weight: 900; text-transform: uppercase; letter-spacing: 0; text-shadow: 0 1px 12px rgba(0,0,0,.24); }
.watermark.center { left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: clamp(2rem, 7vw, 6rem); }
.watermark.tile { left: 12px; right: 12px; bottom: 12px; font-size: 1rem; opacity: .75; }
.watermark.diagonal { left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-18deg); font-size: clamp(2rem, 7vw, 6rem); width: 120%; text-align: center; opacity: .42; }

@keyframes soft-shimmer {
  to { background-position-x: -220%; }
}

.modal-backdrop { position: fixed; inset: 0; z-index: 20; background: rgba(0,0,0,.84); display: grid; place-items: center; padding: 16px; backdrop-filter: blur(10px); }
.modal { width: min(1120px, 100%); max-height: 94svh; background: #080a0d; color: white; border-radius: var(--radius); overflow: hidden; position: relative; box-shadow: 0 30px 90px rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.08); }
.modal img { width: 100%; max-height: 72svh; object-fit: contain; background: #08090a; }
.modal-info { display: flex; justify-content: space-between; gap: 16px; padding: 16px; align-items: center; }
.modal-info p { color: #d5d7d8; margin: 0; }
.modal-close, .modal-nav {
  position: absolute;
  z-index: 22;
  border: 0;
  background: rgba(255,255,255,.92);
  color: var(--color-ink);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.modal-close { right: 10px; top: 10px; width: 44px; height: 44px; border-radius: 50%; font-size: 1.8rem; }
.modal-nav { top: 42%; width: 46px; height: 58px; font-size: 2.2rem; border-radius: var(--radius); }
.modal-nav.prev { left: 10px; }
.modal-nav.next { right: 10px; }
.compact { margin: 0; }
.privacy-modal { width: min(760px, calc(100vw - 28px)); max-height: min(760px, 86svh); overflow: auto; background: #fffdf8; color: var(--color-ink); border-radius: var(--radius); padding: clamp(18px, 4vw, 30px); position: relative; box-shadow: 0 30px 90px rgba(0,0,0,.32); }
.privacy-content { display: grid; gap: 12px; padding-right: 4px; }
.privacy-content h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.inline-link { width: fit-content; padding-left: 0; }

.page-title, .admin-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.bulk-actions { display: flex; gap: 10px; flex-wrap: wrap; max-width: 1160px; margin: 0 auto 16px; }
.cart-layout, .checkout-grid { display: grid; grid-template-columns: 1fr 340px; gap: 18px; align-items: start; max-width: 1160px; margin-inline: auto; }
.cart-list { display: grid; gap: 12px; }
.cart-row { display: grid; grid-template-columns: 86px 1fr 190px 110px 90px; gap: 12px; align-items: center; background: rgba(255,253,248,.92); border: 1px solid rgba(13,17,21,.08); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow-card); }
.cart-row img { width: 86px; height: 64px; object-fit: cover; border-radius: 6px; }
.summary { position: sticky; top: 92px; background: rgba(255,253,248,.96); border: 1px solid rgba(13,17,21,.08); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-soft); }
.summary .total { font-size: 1.25rem; border-bottom: 0; }
.empty { text-align: center; padding: 42px; background: var(--color-panel); border-radius: var(--radius); }
fieldset { border: 1px solid var(--color-line); border-radius: var(--radius); padding: 14px; }
legend { font-weight: 830; }
.confirmation { max-width: 900px; margin-inline: auto; }
.next-steps { background: rgba(255,253,248,.94); border: 1px solid rgba(13,17,21,.08); border-radius: var(--radius); padding: 20px; margin-top: 20px; box-shadow: var(--shadow-card); }

.admin-layout { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100svh - 72px); }
.admin-nav { background: linear-gradient(180deg, #11161b, #1b242c); color: white; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.admin-logo { width: 210px; height: 70px; overflow: hidden; display: grid; place-items: center; margin-bottom: 10px; }
.admin-logo img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.admin-nav a { color: #e7ecee; text-decoration: none; padding: 10px 12px; border-radius: var(--radius); }
.admin-nav a.active { background: rgba(255,255,255,.12); color: white; }
.admin-content { padding: clamp(18px, 4vw, 42px); overflow: auto; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.metric span { color: var(--color-muted); }
.metric strong { display: block; font-size: 1.7rem; margin-top: 8px; }
.admin-empty-note {
  margin-top: 18px;
  max-width: 760px;
  padding: 18px 20px;
  border: 1px solid rgba(13,17,21,.08);
  border-radius: var(--radius);
  background: rgba(255,253,248,.86);
  box-shadow: var(--shadow-card);
}
.admin-empty-note p { margin-bottom: 0; }
.table-wrap { overflow-x: auto; background: rgba(255,253,248,.95); border: 1px solid rgba(13,17,21,.08); border-radius: var(--radius); box-shadow: var(--shadow-card); }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 12px; border-bottom: 1px solid var(--color-line); text-align: left; vertical-align: top; }
th { color: var(--color-muted); font-size: .86rem; }
td span { display: block; color: var(--color-muted); }
.admin-event-title { display: grid; grid-template-columns: 74px 1fr; gap: 10px; align-items: center; }
.admin-cover-thumb, .admin-photo-thumb { width: 74px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; border: 1px solid var(--color-line); background: #eef0eb; }
.admin-cover-empty { width: 74px; aspect-ratio: 4 / 3; border-radius: 6px; border: 1px dashed var(--color-line); display: grid; place-items: center; font-size: .72rem; text-align: center; color: var(--color-muted); }
.file-action { position: relative; overflow: hidden; }
.file-action input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.admin-form { margin-top: 18px; max-width: 760px; }
.qr { width: 120px; height: 120px; display: grid; place-items: center; background: repeating-linear-gradient(45deg, #111 0 8px, #fff 8px 16px); color: var(--color-accent); font-weight: 900; border: 8px solid white; box-shadow: 0 0 0 1px var(--color-line); }
.upload-panel { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }

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

.settings-form h3,
.settings-form .form-message,
.settings-form .readonly-field,
.settings-form button {
  grid-column: 1 / -1;
}

.settings-form textarea {
  min-height: 96px;
}

@media (max-width: 720px) {
  .settings-form {
    grid-template-columns: 1fr;
  }
}
.rules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

.user-layout { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100svh - 76px); }
.user-nav {
  background: #fffdf8;
  border-right: 1px solid rgba(13,17,21,.08);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.user-nav h1 { font-size: 2rem; }
.user-nav a { text-decoration: none; color: #33403f; padding: 10px 12px; border-radius: var(--radius); font-weight: 760; }
.user-nav a.active { background: #e5f7fa; color: #063540; }
.user-content { padding: clamp(18px, 4vw, 42px); overflow: auto; }
.user-content h2 { font-size: clamp(2rem, 5vw, 4.2rem); }

@media (max-width: 900px) {
  .site-header {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
  }
  nav {
    width: 100%;
    justify-content: start;
  }
  .gate, .dark, .split, .cart-layout, .checkout-grid, .admin-layout, .user-layout { grid-template-columns: 1fr; }
  .school-cta { display: grid; }
  .hero { min-height: calc(100svh - 76px); }
  .gate-cover { min-height: 34svh; }
  .steps, .service-grid, .metric-grid, .rules { grid-template-columns: repeat(2, 1fr); }
  .public-home-head { grid-template-columns: 1fr; align-items: start; }
  .public-feature-grid { grid-template-columns: repeat(3, 1fr); }
  .toolbar { grid-template-columns: 1fr; }
  .admin-nav { position: static; }
  .user-nav { position: static; border-right: 0; border-bottom: 1px solid rgba(13,17,21,.08); }
  .cart-row { grid-template-columns: 76px 1fr; }
  .cart-row label, .cart-row button { grid-column: 1 / -1; }
  .summary { position: static; }
}

@media (max-width: 560px) {
  .site-header { align-items: flex-start; }
  .brand { gap: 6px; }
  .brand-wordmark { width: 136px; height: 44px; }
  nav {
    display: grid;
    grid-template-columns: 1fr;
    font-size: .86rem;
    gap: 8px;
  }
  nav a,
  .nav-button,
  .cart-link {
    width: 100%;
    min-width: 0;
    justify-content: center;
    text-align: center;
  }
  .cart-link span { margin-left: 6px; }
  h1 { font-size: 2.7rem; }
  .hero { align-items: end; padding: 52px 24px 118px; }
  .hero-copy { width: calc(100vw - 48px); max-width: calc(100vw - 48px); }
  .hero p:not(.eyebrow) { max-width: calc(100vw - 48px); font-size: 1rem; }
  .hero-logo { width: min(350px, 86vw); height: 110px; }
  .steps, .service-grid, .metric-grid, .rules { grid-template-columns: 1fr; }
  .public-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-head, .page-title, .modal-info { display: grid; }
  .floating-cart { position: fixed; right: 12px; bottom: 12px; top: auto; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .photo-info { align-items: start; }
  .modal-backdrop { padding: 0; }
  .privacy-backdrop { padding: 10px; }
  .privacy-modal { width: 100%; max-height: 88svh; border-radius: 8px; }
  .modal { max-height: 100svh; border-radius: 0; }
  .actions, .bulk-actions { display: grid; }
  .inline-form { grid-template-columns: 1fr; }
  .whatsapp-float { width: 56px; height: 56px; }
  .whatsapp-widget { right: 12px; bottom: 12px; }
}

@media (max-width: 430px) {
  .site-header { padding-inline: 14px; }
  nav {
    font-size: .82rem;
    gap: 7px;
  }
  .cart-link { padding: 8px 10px; }
}
