:root {
  --coal: #0d0b09;
  --coal-2: #16110e;
  --stone: #292826;
  --iron: #71716d;
  --ash: #d8d0be;
  --muted: #a79d89;
  --wood: #5f3825;
  --leather: #8a5631;
  --gold: #c7a45a;
  --fire: #c74925;
  --blood: #7f1d16;
  --forest: #17362c;
  --ok: #65a56f;
  --warn: #d7a647;
  --bad: #c85b4f;
  --radius: 8px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ash);
  background:
    radial-gradient(circle at 12% 0%, rgba(199, 73, 37, .16), transparent 28rem),
    linear-gradient(135deg, rgba(23, 54, 44, .25), transparent 34rem),
    var(--coal);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .09;
  background-image:
    linear-gradient(30deg, rgba(255,255,255,.08) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,.08) 87.5%),
    linear-gradient(150deg, rgba(255,255,255,.08) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,.08) 87.5%);
  background-size: 38px 66px;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.site-shell { min-height: 100vh; position: relative; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: 100%;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(13, 11, 9, .88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(199, 164, 90, .22);
}

.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  overflow: hidden;
  border: 0;
  background: transparent;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; padding: 0; }
.brand-copy { display: grid; align-items: center; gap: 2px; }
.brand-wordmark { display: block; width: min(160px, 26vw); max-height: 34px; object-fit: contain; object-position: left center; }
.brand strong, h1, h2, h3, .rune-title {
  font-family: Cinzel, Georgia, serif;
  letter-spacing: 0;
}
.brand strong { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.brand small { display: block; color: var(--muted); font-size: 12px; }
.main-nav { display: flex; justify-content: center; gap: clamp(10px, 1.6vw, 20px); font-size: clamp(13px, 1.1vw, 15px); font-weight: 700; color: var(--muted); }
.main-nav a:hover { color: var(--gold); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; }

.btn {
  border: 1px solid rgba(199, 164, 90, .38);
  border-radius: var(--radius);
  color: var(--ash);
  background: rgba(255, 255, 255, .04);
  padding: 10px 14px;
  font-weight: 800;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); border-color: var(--gold); }
.btn.primary { color: #120c08; background: linear-gradient(135deg, var(--gold), #e0c16f); }
.btn.ember { background: linear-gradient(135deg, var(--blood), var(--fire)); border-color: rgba(255, 168, 76, .42); }
.btn.ghost { background: transparent; }
.btn.small { padding: 7px 10px; font-size: 13px; }
.icon-button {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  border: 1px solid rgba(199, 164, 90, .28);
  color: var(--ash);
  background: rgba(255,255,255,.04);
  font-size: 0;
}
.icon-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-button span {
  position: absolute;
  top: -8px;
  right: -8px;
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  border-radius: 99px;
  background: var(--fire);
  color: #fff;
  font-size: 11px;
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: end;
  padding: clamp(44px, 7vw, 92px) clamp(18px, 6vw, 84px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13,11,9,.96), rgba(13,11,9,.65), rgba(13,11,9,.28)),
    url("Fotos/Skols-89.jpg") center/cover no-repeat;
  filter: saturate(.9) contrast(1.08);
}
.hero::after {
  content: "ᚨ ᛋ ᚴ ᛟ ᛚ ᚠ ᛖ ᛋ ᛏ";
  position: absolute;
  right: 3vw;
  bottom: 8vh;
  color: rgba(199, 164, 90, .22);
  writing-mode: vertical-rl;
  font-family: Cinzel, serif;
  font-size: clamp(18px, 3vw, 42px);
}
.hero-content { position: relative; max-width: 780px; z-index: 1; }
.kicker { color: var(--gold); font-weight: 900; text-transform: uppercase; font-size: 13px; }
h1 { margin: 8px 0 10px; font-size: clamp(56px, 12vw, 132px); line-height: .86; }
.hero p { max-width: 650px; font-size: clamp(18px, 2.5vw, 26px); color: #efe7d2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-countdown {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) minmax(320px, 2fr);
  gap: 16px;
  margin-top: 70px;
  max-width: 820px;
  padding: 18px;
  background: rgba(13, 11, 9, .72);
  border: 1px solid rgba(199,164,90,.18);
  backdrop-filter: blur(12px);
}
.countdown-head strong { display: block; color: var(--ash); font-family: Cinzel, Georgia, serif; font-size: 20px; }
.countdown-head small { display: block; color: var(--muted); margin-top: 5px; }
.countdown-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.countdown-cell {
  display: grid;
  place-items: center;
  min-height: 86px;
  border: 1px solid rgba(199,164,90,.2);
  background: rgba(255,255,255,.045);
}
.countdown-cell strong { color: var(--gold); font-family: Cinzel, Georgia, serif; font-size: clamp(28px, 4vw, 44px); line-height: 1; }
.countdown-cell span { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }

.section { padding: 76px clamp(18px, 6vw, 84px); }
.section.tight { padding-top: 44px; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
h2 { margin: 0; font-size: clamp(30px, 5vw, 56px); }
.section-head p, .lead { color: var(--muted); max-width: 760px; margin: 8px 0 0; }

.grid { display: grid; gap: 18px; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  border: 1px solid rgba(199, 164, 90, .2);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  overflow: hidden;
}
.card-body { padding: 18px; }
.card h3 { margin: 0 0 8px; font-size: 22px; }
.card p { color: var(--muted); margin: 0 0 14px; }
.media-thumb {
  min-height: 210px;
  background: var(--image, linear-gradient(135deg, #21150f, #62331f));
  background-size: cover;
  background-position: center;
  position: relative;
}
.media-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(13,11,9,.6));
}
.meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 13px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(199,164,90,.24);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--ash);
  background: rgba(255,255,255,.04);
  font-size: 12px;
  font-weight: 800;
}
.status-active, .status-aprobado, .status-pago-completo { color: var(--ok); }
.status-usado, .status-entrada-ocupada { color: var(--warn); }
.status-cancelado, .status-rechazado { color: var(--bad); }

.band {
  background:
    linear-gradient(90deg, rgba(23,54,44,.7), rgba(95,56,37,.34)),
    url("assets/skolfest-wood.svg") center/cover;
  border-block: 1px solid rgba(199,164,90,.18);
}
.feature-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.feature { padding: 18px; border-left: 2px solid var(--gold); background: rgba(0,0,0,.22); }
.feature strong { display: block; font-family: Cinzel, serif; }
.feature span { color: var(--muted); font-size: 14px; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tab { border-color: rgba(255,255,255,.12); color: var(--muted); }
.tab.active { color: #120c08; background: var(--gold); }
.panel-layout { display: grid; grid-template-columns: 260px 1fr; gap: 20px; align-items: start; }
.sidebar { position: sticky; top: 88px; padding: 14px; }
.sidebar button { width: 100%; text-align: left; margin-bottom: 8px; }
.workspace { min-height: 420px; }

.table-wrap { overflow: auto; border: 1px solid rgba(199,164,90,.16); border-radius: var(--radius); }
table { width: 100%; min-width: 760px; border-collapse: collapse; }
th, td { padding: 12px; border-bottom: 1px solid rgba(255,255,255,.08); text-align: left; }
th { color: var(--gold); font-size: 13px; text-transform: uppercase; }
td { color: var(--ash); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { color: var(--muted); font-size: 13px; font-weight: 800; }
input, select, textarea {
  width: 100%;
  border: 1px solid rgba(199,164,90,.22);
  border-radius: var(--radius);
  color: var(--ash);
  background: rgba(0,0,0,.24);
}
select option {
  background-color: #ffffff !important;
  color: #000000 !important;
}
  padding: 11px 12px;
}
textarea { min-height: 110px; resize: vertical; }
.full { grid-column: 1 / -1; }
.terms-check-wrap { margin-top: 2px; }
.terms-check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ash);
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
}
.terms-check-input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex: 0 0 20px;
}
.terms-check-text { display: inline; }

.ticket {
  display: grid;
  grid-template-columns: 1fr 130px;
  gap: 16px;
  align-items: center;
  border: 1px dashed rgba(199,164,90,.42);
  background: rgba(0,0,0,.24);
  padding: 14px;
  margin-bottom: 12px;
  max-width: 760px;
}
.ticket--narrow {
  max-width: 720px;
}
.tickets-stack {
  display: grid;
  gap: 10px;
}
.qr-box { background: #ffffff !important; padding: 12px !important; border-radius: 4px; min-height: 120px; display: grid; place-items: center; color-scheme: light only !important; isolation: isolate; }
.qr-box canvas, .qr-box img { filter: none !important; mix-blend-mode: normal !important; }
.scanner {
  display: grid;
  gap: 14px;
  max-width: 760px;
}
video {
  width: 100%;
  min-height: 260px;
  border-radius: var(--radius);
  background: #000;
  border: 1px solid rgba(199,164,90,.2);
}

.cart-drawer {
  position: fixed;
  right: 18px;
  top: 86px;
  z-index: 30;
  width: min(420px, calc(100vw - 36px));
  max-height: calc(100vh - 120px);
  overflow: auto;
  box-shadow: var(--shadow);
}
.modal[hidden], .cart-drawer[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 18px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.72); }
.modal-card { position: relative; width: min(760px, 100%); max-height: min(86vh, 820px); overflow: auto; }
.modal-card.card { box-shadow: var(--shadow); }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 6vw, 84px);
  border-top: 1px solid rgba(199,164,90,.18);
  color: var(--muted);
}
.footer a { margin-left: 16px; color: var(--ash); }

.about-intro {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  margin-bottom: 44px;
}
.about-text h2 {
  margin: 8px 0 12px;
}
.about-media {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(199, 164, 90, .22);
  box-shadow: var(--shadow);
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1),
              box-shadow 0.45s cubic-bezier(0.25, 1, 0.5, 1),
              border-color 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform, box-shadow;
}
.about-media img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.about-media:hover {
  transform: scale(1.03) translateY(-4px);
  border-color: rgba(199, 164, 90, 0.6);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.65), 
              0 0 25px rgba(199, 164, 90, 0.2);
}
.about-media:hover img {
  transform: scale(1.03);
}


@media (max-width: 920px) {
  .topbar { grid-template-columns: auto 1fr; }
  .menu-toggle { display: block; justify-self: end; border: 1px solid rgba(199,164,90,.3); color: var(--ash); background: transparent; border-radius: var(--radius); padding: 9px 12px; }
  .main-nav { display: none; position: absolute; left: 18px; right: 18px; top: 72px; flex-direction: column; align-items: stretch; padding: 14px; background: rgba(13,11,9,.97); border: 1px solid rgba(199,164,90,.2); }
  .main-nav.open { display: flex; }
  .top-actions { display: none !important; } /* Ocultar por completo las acciones superiores */
  .mobile-auth-actions { display: flex !important; flex-direction: column; gap: 10px; margin-top: 15px; padding-top: 15px; border-top: 1px solid rgba(199,164,90,0.2); }
  .grid.three, .grid.two, .feature-list, .hero-countdown { grid-template-columns: 1fr; }
  .about-intro { grid-template-columns: 1fr; gap: 24px; }
  .countdown-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .panel-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .ticket { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .brand { min-width: 0; }
  .brand small { display: none; }
  /* Mantener el botón 'Ingresar' visible en móviles */
  .hero { min-height: 720px; }
  h1 { font-size: 58px; }
  .countdown-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head { display: block; }
  .footer { display: block; }
  .footer a { display: inline-block; margin: 10px 14px 0 0; }
}

@media print {
  .topbar, .footer, .chat-widget, .btn, .sidebar { display: none !important; }
  body { background: white; color: black; }
  .ticket { color: black; border: 2px solid black; }
}

/* Dashboard analytics & Acreditados styles */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.kpi-card {
  padding: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,.05), rgba(255,255,255,.01));
  border: 1px solid rgba(199,164,90,.18);
  border-radius: var(--radius);
  text-align: center;
}
.kpi-card span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 800;
}
.kpi-card strong {
  display: block;
  font-size: 28px;
  color: var(--gold);
  margin-top: 6px;
  font-family: Cinzel, serif;
}

.chart-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
@media (max-width: 768px) {
  .chart-container { grid-template-columns: 1fr; }
}
.chart-card {
  padding: 20px;
  background: rgba(0,0,0,.2);
  border: 1px solid rgba(199,164,90,.12);
  border-radius: var(--radius);
}
.chart-card h4 {
  margin: 0 0 16px;
  font-family: Cinzel, serif;
  color: var(--ash);
  font-size: 16px;
}
.chart-bar-wrap {
  display: grid;
  gap: 12px;
}
.chart-row {
  display: grid;
  grid-template-columns: 140px 1fr 60px;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.chart-label {
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chart-bar-bg {
  height: 14px;
  background: rgba(255,255,255,.05);
  border-radius: 99px;
  overflow: hidden;
}
.chart-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blood), var(--fire));
  border-radius: 99px;
  transition: width .8s ease;
}
.chart-bar-fill.gold {
  background: linear-gradient(90deg, var(--leather), var(--gold));
}
.chart-value {
  text-align: right;
  font-weight: bold;
  color: var(--gold);
}

.accreditation-slots {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}
.slot-dot {
  width: 14px;
  height: 14px;
  border-radius: 99px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(199,164,90,.2);
}
.slot-dot.active {
  background: var(--gold);
  border-color: #fff;
  box-shadow: 0 0 8px var(--gold);
}

.accredited-worker-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius);
  margin-bottom: 8px;
}
.accredited-worker-info h5 {
  margin: 0;
  font-size: 15px;
}
.accredited-worker-info p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
}

/* ==========================================================================
   Efectos de Galería y Quiénes Somos (#media y #quienes)
   ========================================================================== */
#media .card,
#quienes .card {
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1), 
              box-shadow 0.45s cubic-bezier(0.25, 1, 0.5, 1), 
              border-color 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform, box-shadow;
  position: relative;
  z-index: 1;
}

#media .card:hover,
#quienes .card:hover {
  transform: scale(1.05) translateY(-6px);
  z-index: 5;
  border-color: rgba(199, 164, 90, 0.6);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.65), 
              0 0 25px rgba(199, 164, 90, 0.2);
}

#media .card .media-thumb,
#quienes .card .media-thumb {
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

#media .card:hover .media-thumb,
#quienes .card:hover .media-thumb {
  transform: scale(1.04);
}



.media-poster {
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-color: var(--black, #000) !important;
  min-height: 400px !important;
}
\n
/* Skolfest Custom Modal UI */
.skolfest-ui-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.skolfest-ui-modal:not(.hidden) {
  opacity: 1;
  pointer-events: all;
}
.skolfest-ui-content {
  background: var(--surface, #1e1e1e);
  border: 1px solid var(--border, #333);
  border-radius: 12px;
  padding: 32px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.skolfest-ui-modal:not(.hidden) .skolfest-ui-content {
  transform: scale(1) translateY(0);
}
.skolfest-ui-content h3 { margin-top: 0; color: var(--gold, #d4af37); font-size: 1.4rem; font-weight: 700; }
.skolfest-ui-content p { margin: 16px 0; color: var(--text-muted, #aaa); line-height: 1.5; font-size: 1rem; }
.skolfest-ui-actions { display: flex; gap: 12px; justify-content: center; margin-top: 28px; }
.skolfest-ui-actions .btn { padding: 10px 24px; font-weight: 600; border-radius: 6px; cursor: pointer; border: none; font-size: 1rem; transition: transform 0.2s, filter 0.2s; }
.skolfest-ui-actions .btn:hover { filter: brightness(1.1); transform: translateY(-2px); }
.skolfest-ui-actions .btn:active { transform: translateY(0); }
.skolfest-ui-actions .btn.ghost { background: transparent; color: var(--text, #fff); border: 1px solid var(--border, #333); }
.skolfest-ui-actions .btn.primary { background: var(--gold, #d4af37); color: #000; }
.skolfest-ui-actions .btn.hidden { display: none; }
