/* Fuente Archivo auto-hospedada (variable 400-900, sin Google Fonts) */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 900;
  font-display: swap; src: url("/static/fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 900;
  font-display: swap; src: url("/static/fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* TuLlegada PR — palette (strict) */
:root {
  --off-white: #F5F5F0;
  --charcoal: #151515;
  --lime: #C6FF00;
  --gris: #A3A3A3;
  --white: #FFFFFF;
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background-color: var(--charcoal); }
body {
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--off-white);
  color: var(--charcoal);
  line-height: 1.55;
  display: flex; flex-direction: column; min-height: 100vh;
  overscroll-behavior-y: none;
}
main { flex: 1; }
a { color: inherit; }

/* ---------- header ---------- */
.site-header {
  background: var(--charcoal);
  color: var(--white);
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.nav {
  max-width: 1100px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; gap: 28px;
}
.nav img.logo { height: 42px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-weight: 600;
  align-items: center; }
.nav-links a { color: #9ca3af; text-decoration: none; padding: 6px 2px;
  position: relative; transition: color .3s cubic-bezier(.22,1,.36,1); }
/* Subrayado lima que crece al hover (desktop) */
.nav-links a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 2px; right: 2px; bottom: 1px;
  height: 2px; border-radius: 2px; background: #C6FF00;
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.nav-links a:not(.nav-cta):hover { color: #fff; }
.nav-links a:not(.nav-cta):hover::after,
.nav-links a:not(.nav-cta).active::after { transform: scaleX(1); }
.nav-links a:not(.nav-cta).active { color: #C6FF00; }
/* Botón CTA "Próximos eventos" */
.nav-links a.nav-cta {
  background: #C6FF00; color: #111; font-weight: 700; font-size: .8rem;
  padding: 7px 16px; border-radius: 999px; overflow: hidden;
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s ease;
}
.nav-links a.nav-cta:hover {
  transform: translateY(-2px); color: #111;
  box-shadow: 0 8px 24px rgba(198,255,0,.35);
}
.nav-links a.nav-cta:active { transform: translateY(0) scale(.97); }
/* Brillo que barre el botón al hover */
.nav-links a.nav-cta::before {
  content: ""; position: absolute; top: 0; bottom: 0; width: 44px; left: -70px;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-20deg); transition: left .55s ease; pointer-events: none;
}
.nav-links a.nav-cta:hover::before { left: 130%; }
.nav-toggle {
  display: none; margin-left: auto; background: none; border: none;
  cursor: pointer; padding: 8px 4px;
  flex-direction: column; gap: 5px; align-items: center;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; border-radius: 2px;
  background: var(--white);
  transition: transform .3s cubic-bezier(.22,1,.36,1), opacity .25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@keyframes navIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 62vh;
  display: flex; align-items: center; justify-content: center;
  background: var(--charcoal); color: var(--white);
  text-align: center;
  /* Sin overflow:hidden: el dropdown de eventos del buscador debe poder
     desbordar por debajo del hero; con hidden se cortaba el último
     evento y no se podía ver. (Augusto 2026-11-06) */
}
.hero img.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%; opacity: .55;
}
.hero-inner { position: relative; z-index: 2; padding: 48px 20px; max-width: 760px; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.15) 45%, rgba(0,0,0,.5));
  pointer-events: none;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -1px; margin-bottom: 8px; font-weight: 800; text-shadow: 0 2px 20px rgba(0,0,0,.7); }
.hero p.sub { color: var(--white); margin-bottom: 28px; font-size: 1.1rem; text-shadow: 0 1px 12px rgba(0,0,0,.75); }

/* ---------- bib search (modern charcoal panel) ---------- */
.search-panel {
  background: rgba(21,21,21,.92);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px; padding: 26px;
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
  backdrop-filter: blur(6px);
  position: relative; z-index: 10;
}
.search-field { display: flex; flex-direction: column; text-align: left; min-width: 200px; flex: 1; }
.search-field label { font-size: .78rem; color: var(--gris); margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: .08em; }
.search-field select, .search-field input {
  background: var(--off-white); border: none; border-radius: 10px;
  padding: 13px 14px; font-size: 1rem; color: var(--charcoal);
}
/* ---------- custom event dropdown (2 líneas: nombre + lugar) ---------- */
.ev-select { position: relative; }
.ev-btn { width: 100%; background: var(--off-white); border: none; border-radius: 10px;
  padding: 11px 14px; font-size: 1rem; color: var(--charcoal);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  cursor: pointer; text-align: left; }
.ev-btn.invalid { outline: 2px solid #e5484d; }
.ev-btn-text { min-width: 0; flex: 1; }
.ev-ph { color: #8a8a8a; }
.ev-name { display: block; font-weight: 700; color: var(--charcoal); }
.ev-place { display: block; font-size: .82rem; color: var(--gris); }
.ev-chev { color: var(--gris); font-size: 1.3rem; line-height: 1; flex-shrink: 0; }
.ev-list { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff;
  border-radius: 12px; box-shadow: 0 18px 50px rgba(0,0,0,.35); z-index: 50;
  max-height: 280px; overflow-y: auto; }
.ev-opt { padding: 12px 14px; cursor: pointer; border-bottom: 1px solid #f0f0ea; }
.ev-opt:last-child { border-bottom: none; }
.ev-opt:hover, .ev-opt:focus { background: #f4f4ee; outline: none; }
.ev-opt[aria-selected="true"] { background: rgba(198,255,0,.25); }
.btn {
  display: inline-block; border: none; cursor: pointer; font-weight: 800;
  border-radius: 10px; padding: 14px 26px; font-size: 1rem;
  text-decoration: none; transition: transform .08s ease;
}
.btn:active { transform: scale(.97); }
.btn-lime { background: var(--lime); color: var(--charcoal); }
.btn-messenger { background: #0084FF; color: #fff; }
.btn-messenger:hover { box-shadow: 0 10px 28px rgba(0,132,255,.38); }
.btn-dark { background: var(--charcoal); color: var(--white); }
.btn-ghost { background: transparent; border: 2px solid var(--charcoal); color: var(--charcoal); }
.search-panel .btn { align-self: flex-end; }

/* ---------- sections ---------- */
.section { max-width: 1100px; margin: 0 auto; padding: 56px 20px; }
.section h2 { font-size: 1.9rem; letter-spacing: -.5px; margin-bottom: 6px; text-align: center; }
.section p.lead { text-align: center; color: var(--gris); margin-bottom: 32px; }

/* ---------- package list (white cards) ---------- */
.pkg-list { display: flex; flex-direction: column; gap: 18px; max-width: 680px; margin: 0 auto; }
.single-note { text-align: center; color: var(--gris); font-size: 1.02rem; margin: -8px 0 26px; }
.single-note a { color: var(--charcoal); font-weight: 700; text-decoration: underline;
  text-decoration-color: var(--lime); text-decoration-thickness: 2px; text-underline-offset: 3px; }
/* Prueba social: stats + testimonios */
.proof-band { display: flex; justify-content: center; gap: 48px; padding: 34px 20px;
  background: var(--charcoal); }
.proof-stat { text-align: center; }
.proof-stat b { display: block; font-size: 2.1rem; color: #fff; letter-spacing: -.5px; }
.proof-stat span { color: rgba(255,255,255,.72); font-size: .9rem; }
.testi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px; max-width: 1080px; margin: 0 auto; }
.testi-card { background: #fff; border: 1px solid rgba(0,0,0,.07); border-radius: 16px;
  padding: 24px; margin: 0; box-shadow: 0 6px 20px rgba(0,0,0,.05); }
.testi-card blockquote { margin: 0 0 14px; font-size: 1.02rem; line-height: 1.55; color: var(--charcoal); }
.testi-card figcaption { color: var(--gris); font-size: .88rem; }
.testi-card figcaption b { color: var(--charcoal); }
/* Form de testimonio en la página de descarga */
.dl-testi { margin: 40px auto 8px; max-width: 560px; padding: 30px 26px; border-radius: 20px;
  background: #fff; border: 1px solid rgba(0,0,0,.07); box-shadow: 0 10px 32px rgba(0,0,0,.08);
  text-align: center; }
.dl-testi h3 { margin: 0 0 8px; font-size: 1.3rem; }
.dl-testi p { color: var(--gris); margin: 0 0 16px; }
.dl-testi textarea { width: 100%; border: 1.5px solid #e2e2e2; border-radius: 12px;
  padding: 12px 14px; font: inherit; resize: vertical; box-sizing: border-box; }
.dl-testi textarea:focus { outline: none; border-color: var(--lime); }
.dl-testi-row { display: flex; gap: 10px; margin-top: 12px; }
.dl-testi-row input { flex: 1; border: 1.5px solid #e2e2e2; border-radius: 12px;
  padding: 12px 14px; font: inherit; min-width: 0; }
.dl-testi-row input:focus { outline: none; border-color: var(--lime); }
@media (min-width: 1024px) {
  .pkg-list { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1080px; align-items: stretch; }
  .pkg-list .btn { margin-top: auto; }
}
.pkg-card {
  background: var(--white); border-radius: var(--radius);
  padding: 28px 30px; box-shadow: 0 6px 24px rgba(0,0,0,.07);
  border: 1px solid rgba(0,0,0,.05);
}
.pkg-badge {
  display: inline-block; background: var(--lime); color: var(--charcoal);
  font-size: .75rem; font-weight: 800; letter-spacing: .08em;
  padding: 5px 14px; border-radius: 999px; margin-bottom: 14px;
}
.pkg-card h3 { font-size: 1.5rem; margin-bottom: 2px; }
.pkg-price { font-size: 3rem; font-weight: 900; letter-spacing: -2px; line-height: 1.1; }
.pkg-price small { font-size: 1.4rem; vertical-align: super; }
.pkg-desc { color: var(--gris); margin: 8px 0 16px; }
.pkg-benefits { list-style: none; margin-bottom: 20px; }
.pkg-benefits li { padding: 5px 0; font-weight: 500; }
.pkg-benefits li::before { content: "✓"; color: #4c8a00; font-weight: 900; margin-right: 10px; }
.pkg-card .btn { width: 100%; text-align: center; }

/* ---------- event cards ---------- */
.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px; max-width: 1000px; margin: 0 auto; }
.event-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,.07); text-decoration: none; display: block;
  border: 1px solid rgba(0,0,0,.05);
}
.event-card img { width: 100%; height: auto; object-fit: contain;
  display: block; transition: transform .35s ease; }
.event-card:hover img { transform: scale(1.04); }
.event-card .body { padding: 20px 22px; }
.event-card h3 { font-size: 1.25rem; margin-bottom: 4px; }
.event-card .meta { color: var(--gris); font-size: .9rem; }
/* CTA de las tarjetas de Próximos eventos: botón lima con texto oscuro
   (lima sobre blanco no se lee). */
.px-cta { display: inline-block; margin-top: 12px; background: #C6FF00; color: #111;
  font-weight: 700; font-size: .78rem; padding: 7px 16px; border-radius: 999px; }

/* ---------- gallery: masonry estable ---------- */
/* Columnas separadas (no CSS columns): cada foto nueva va al final de la
   columna más corta, así "Cargar más" siempre añade hacia abajo y nada
   se reordena ni salta de columna. */
.gallery { display: flex; gap: 10px; align-items: flex-start; }
.g-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 700px){
  .gallery { gap: 14px; }
  .g-col { gap: 14px; }
}
.g-item { position: relative; border-radius: 10px; overflow: hidden; background: #e9e9e4; }
.g-item img { width: 100%; height: auto; object-fit: contain; display: block;
  opacity: 0; transition: opacity .45s ease, transform .35s ease; cursor: zoom-in; }
.g-item:hover img { transform: scale(1.06); }
/* Shimmer mientras la foto carga */
.g-item::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 35%, rgba(255,255,255,.65) 50%, transparent 65%);
  background-size: 220% 100%; animation: shimmer 1.3s infinite; }
.g-item.loaded::after { display: none; }
.g-item.loaded img { opacity: 1; }
@keyframes shimmer { to { background-position: -220% 0; } }
.g-num { position: absolute; top: 8px; left: 8px; background: rgba(21,21,21,.8);
  color: var(--white); font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.g-check { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; z-index: 2;
  border-radius: 50%; border: 2px solid var(--white); background: rgba(21,21,21,.55);
  color: var(--white); font-size: 1.1rem; font-weight: 700; cursor: pointer; display: flex;
  align-items: center; justify-content: center; }
.g-item.selected .g-check { background: var(--lime); color: var(--charcoal); border-color: var(--lime); }
.cart-bar { position: sticky; bottom: 16px; margin: 24px auto 0; max-width: 640px;
  background: var(--charcoal); color: var(--white); border-radius: 14px;
  padding: 14px 20px; display: flex; align-items: center; gap: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,.35); z-index: 10; }
.cart-bar .btn { margin-left: auto; }

/* lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(10,10,10,.92); z-index: 100;
  display: none; align-items: center; justify-content: center; flex-direction: column;
  touch-action: pan-y; }
.lightbox.open { display: flex; }
.lightbox #lbimg { max-width: 92vw; max-height: 80vh; border-radius: 8px;
  -webkit-user-drag: none; user-select: none; -webkit-user-select: none;
  will-change: transform; }
.lightbox .lb-bar { margin-top: 16px; display: flex; gap: 10px; justify-content: center;
  align-items: center; flex-wrap: wrap; width: 100%; padding: 0 16px; box-sizing: border-box; }
.lightbox .lb-bar .btn { border-radius: 999px; padding: 13px 26px; font-size: .95rem; }
.lightbox .lb-bar .btn-lime { box-shadow: 0 8px 26px rgba(198,255,0,.28); }
.lightbox .lb-bar .btn-ghost { border: 1.5px solid rgba(255,255,255,.32);
  color: #fff; background: rgba(255,255,255,.07); }
.lightbox .lb-bar .btn-ghost:active { background: rgba(255,255,255,.16); }
#lbselect.is-on { background: #fff; color: var(--charcoal); box-shadow: none; }
.lightbox .close { position: absolute; top: 14px; right: 14px; color: #fff;
  font-size: 1.6rem; line-height: 1; cursor: pointer;
  background: rgba(0,0,0,.55); border: none; border-radius: 50%;
  width: 44px; height: 44px; display: flex; align-items: center;
  justify-content: center; z-index: 5; }
.lightbox .lbnav { position: absolute; top: 50%; transform: translateY(-50%); color: #fff;
  font-size: 1.9rem; line-height: 1; cursor: pointer; padding-bottom: 4px;
  background: rgba(0,0,0,.55); border: none; border-radius: 50%;
  width: 48px; height: 48px; display: flex; align-items: center;
  justify-content: center; z-index: 5; }
.lightbox .lbnav.prev { left: 12px; }
.lightbox .lbnav.next { right: 12px; }
.lightbox .lbnav:active { background: rgba(0,0,0,.8); }

/* ---------- forms ---------- */
.form-card { background: var(--white); border-radius: var(--radius); padding: 32px;
  max-width: 620px; margin: 0 auto; box-shadow: 0 6px 24px rgba(0,0,0,.07); }
.form-card label { display: block; font-weight: 600; margin: 14px 0 6px; }
.form-card input, .form-card select, .form-card textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid #ddd; border-radius: 10px;
  font-size: 1rem; background: var(--off-white); font-family: inherit;
}
.form-card textarea { min-height: 120px; resize: vertical; }
.form-card .btn { margin-top: 20px; width: 100%; }
.checkline { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: .95rem; }
.checkline input { width: auto; margin-top: 4px; }

/* ---------- FAQ ---------- */
.faq { max-width: 720px; margin: 0 auto; }
.faq details { background: var(--white); border-radius: 10px; margin-bottom: 10px;
  padding: 16px 20px; cursor: pointer; }
.faq summary { font-weight: 700; }

/* ---------- checkout ---------- */
.pay-logos { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0 18px; align-items: center; }
.pay-logos span { background: var(--white); border: 1.5px solid #e2e2e2; border-radius: 8px;
  padding: 8px 14px; font-size: .82rem; font-weight: 700; color: #444; }
.pay-logos img { height: 28px; width: auto; background: #fff; border: 1px solid #e8e8e8;
  border-radius: 8px; padding: 5px 10px; }
.order-summary { background: var(--charcoal); color: var(--white); border-radius: var(--radius);
  padding: 24px 28px; margin: 0 auto 24px; max-width: 620px; }
.order-summary .total { font-size: 2rem; font-weight: 900; color: var(--lime); }
.order-summary .os-event { font-weight: 700; font-size: 1.05rem; margin-bottom: 6px; }
.secure-note { text-align: center; color: var(--gris); font-size: .85rem; margin-top: 14px; }
.thumbs-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.thumbs-row img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }

/* ---------- poll ---------- */
.poll-row { display: flex; align-items: center; gap: 14px; background: var(--white);
  border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; }
.poll-rank { font-size: 1.4rem; font-weight: 900; width: 40px; }
.poll-bar { height: 12px; background: var(--lime); border-radius: 999px; min-width: 8px; }
.poll-rank { display: inline-flex; width: 30px; height: 30px; border-radius: 50%;
  background: #F0EDDF; color: #555; font-weight: 800; font-size: .9rem;
  align-items: center; justify-content: center; flex-shrink: 0; }
.poll-rank.first { background: var(--lime); color: var(--charcoal); }
.poll-count { margin-left: auto; font-weight: 800; white-space: nowrap; }

/* ---------- admin ---------- */
.admin-wrap { display: flex; min-height: 80vh; flex: 1; background: #e4e4e0; }
.admin-side {
  position: fixed; top: 0; left: 0; bottom: 0; width: 230px; z-index: 40;
  background: var(--charcoal); color: var(--white); padding: 24px 0;
  overflow-y: auto;
}
.admin-side a { display: block; color: var(--white); text-decoration: none; padding: 11px 24px; opacity: .8; }
.admin-side a:hover, .admin-side a.active { opacity: 1; background: rgba(198,255,0,.12);
 }
.admin-topbar { display: none; }
@media (min-width: 641px) { .admin-mhead { display: contents; } }
.admin-main { flex: 1; padding: 32px; margin-left: 230px; background: #e4e4e0; }
.admin-main h1 { margin-bottom: 20px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat { background: var(--white); border: 1px solid #E7E2D2; border-radius: 14px; padding: 18px 20px; }
.stat .n { font-size: 1.8rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .l { color: #6E6E66; font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }
table.admin-tbl { width: 100%; border-collapse: separate; border-spacing: 0;
  background: #fff; border: 1px solid #E7E2D2; border-radius: 14px;
  overflow: hidden; margin-bottom: 24px; }
table.admin-tbl th { text-align: left; padding: 12px 16px; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: #6E6E66;
  background: #FBFAF6; border-bottom: 1px solid #E7E2D2; white-space: nowrap; }
table.admin-tbl td { padding: 13px 16px; border-bottom: 1px solid #EFEAD9;
  color: #23231F; font-size: .93rem; vertical-align: middle;
  font-variant-numeric: tabular-nums; }
table.admin-tbl tr:last-child td { border-bottom: none; }
table.admin-tbl tbody tr:hover td { background: #FBFAF5; }
table.admin-tbl a:not(.btn) { color: var(--charcoal); font-weight: 600; }
table.admin-tbl td.num, table.admin-tbl th.num { text-align: right; }
.tbl-wrap { overflow-x: auto; }
.tag { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.tag-detected { background: #d9f5c2; color: #2c6e00; }
.tag-review { background: #ffe9a8; color: #8a5b00; }
.tag-pending { background: #e4e4e4; color: #555; }
.tag-manual { background: #d7ecff; color: #0b5fa5; }
.tag-paid { background: #d9f5c2; color: #2c6e00; }
.tag-pending-pay { background: #ffe9a8; color: #8a5b00; }
.tag-refunded { background: #e8e8e8; color: #555; }

/* ---------- Admin: grillas, archivos y etiquetas ---------- */
.admin-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px; }
.admin-gallery .g-item { margin-bottom: 0; }
.admin-gallery .g-item img { opacity: 1; }
.admin-gallery .g-item::after { display: none; }
input[type="file"] { font: inherit; font-size: .92rem; padding: 9px 10px;
  border: 1.5px solid #ddd6c4; border-radius: 10px; background: #fff;
  color: var(--charcoal); max-width: 100%; }
.stat .n { white-space: nowrap; }

/* ================= Admin design system v2 (2026-10-20) ================= */
.admin-main { background: #F6F5F0; }
.admin-main h1 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 4px; }
.admin-main h2 { letter-spacing: -.01em; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end;
  gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.page-sub { color: #6E6E66; font-size: .93rem; margin-top: 4px; }
.sec-title { font-size: 1.02rem; font-weight: 800; letter-spacing: -.01em; margin: 26px 0 12px; }
.card { background: #fff; border: 1px solid #E7E2D2; border-radius: 14px; padding: 20px; }
.admin-main .btn { padding: 10px 18px; font-size: .92rem; border-radius: 9px; font-weight: 700;
  transition: background .15s ease, border-color .15s ease, transform .08s ease; }
.admin-main .btn-ghost { background: #fff; border: 1.5px solid #D8D2BE; color: var(--charcoal); }
.admin-main .btn-ghost:hover { border-color: var(--charcoal); }
.admin-main .form-card { border: 1px solid #E7E2D2; box-shadow: none; border-radius: 14px; }
.admin-main .form-card h3 { font-size: 1.02rem; font-weight: 800; letter-spacing: -.01em; }
.admin-main .form-card input, .admin-main .form-card select, .admin-main .form-card textarea {
  background: #fff; border-color: #D8D2BE; }
.admin-main .tag { padding: 3px 11px; font-size: .74rem; letter-spacing: .02em; }
.admin-main .filter-bar { border-color: #E7E2D2; box-shadow: none; }
.admin-main .ctl { border-color: #D8D2BE; height: 40px; }
.admin-main .btn-sm { height: 40px; }
.admin-side { background: #14140F; }
.admin-side a { display: flex; align-items: center; gap: 11px; margin: 1px 12px;
  border-radius: 8px; border-left: none; padding: 10px 12px; }
.admin-side a .ic { width: 17px; height: 17px; flex-shrink: 0; opacity: .65; }
.admin-side a.active { background: rgba(198,255,0,.13); color: #fff;
  box-shadow: inset 2.5px 0 0 var(--lime); }
.admin-side a.active .ic { opacity: 1; color: var(--lime); }
.admin-side .side-label { padding: 14px 24px 6px; font-size: .68rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.38); }
.admin-side .side-sep { border-top: 1px solid rgba(255,255,255,.09); margin: 10px 12px; }

.f-label { display: block; font-weight: 700; font-size: .85rem;
  margin-bottom: 5px; color: var(--charcoal); }
.admin-main .row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
input.inline, select.inline { padding: 10px 12px; border: 1.5px solid #ddd; border-radius: 8px; font-size: .95rem; }

/* footer */
.site-footer { background: var(--charcoal); color: var(--gris); text-align: center;
  padding: 32px 20px; margin-top: 40px; font-size: .9rem; }
.site-footer img { height: 34px; margin-bottom: 10px; }
.site-footer .social { display: flex; align-items: center; justify-content: center;
  gap: 12px; margin-top: 16px; }
.site-footer .social span { font-size: .8rem; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--gris); }
.site-footer .social a { display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border: 1px solid #3a3a3a; border-radius: 50%;
  color: var(--gris); transition: color .2s, border-color .2s; }
.site-footer .social a:hover { color: var(--lime); border-color: var(--lime); }
.site-footer .social svg { width: 15px; height: 15px; }

/* ---------- formulario de aviso (registro pre-carrera) ---------- */
.aviso-form { background: #1a1a1a; border: 1px solid #2c2c2c; border-radius: 18px;
  padding: 28px 26px; }
.aviso-field { margin-bottom: 18px; text-align: left; }
.aviso-field:last-of-type { margin-bottom: 22px; }
.aviso-field label { display: block; font-size: .78rem; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--gris); margin-bottom: 8px; }
.aviso-field label .req { color: var(--lime); }
.aviso-field label .opt { text-transform: none; letter-spacing: 0; color: #777; }
.aviso-field input { width: 100%; box-sizing: border-box; padding: 14px 18px;
  border-radius: 12px; border: 1px solid #333; background: #111;
  color: var(--off-white); font-size: 1rem; }
.aviso-field input:focus { outline: none; border-color: var(--lime); }
.aviso-field .hint { margin: 8px 0 0; font-size: .85rem; color: #777; }
.aviso-submit { width: 100%; border-radius: 999px; padding: 15px; font-size: 1.05rem; }
.aviso-actions { margin-top: 28px; text-align: center; display: flex;
  flex-direction: column; gap: 16px; align-items: center; }
.aviso-back { color: var(--gris); font-size: .95rem; text-decoration: underline;
  text-underline-offset: 4px; }
.aviso-back:hover { color: var(--lime); }

/* ---------- checks redondos del aviso (evento padre) ---------- */
/* El input nativo queda oculto pero enfocable; el círculo lo dibuja .dot. */
.aviso-field label.aviso-check { display: flex; align-items: center; gap: 12px;
  margin: 10px 0; min-height: 44px; cursor: pointer; font-size: 1rem;
  letter-spacing: 0; text-transform: none; color: var(--off-white); }
.aviso-field label.aviso-check.todo { font-weight: 700; }
.aviso-field .aviso-check input { position: absolute; opacity: 0;
  width: 1px; height: 1px; padding: 0; border: none; }
.aviso-check .dot { flex: none; width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid #555; background: #111;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s ease, border-color .15s ease; }
.aviso-check .dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: var(--charcoal); opacity: 0; transform: scale(.5);
  transition: opacity .15s ease, transform .15s ease; }
.aviso-check input:checked + .dot { background: var(--lime); border-color: var(--lime); }
.aviso-check input:checked + .dot::after { opacity: 1; transform: scale(1); }
.aviso-check input:focus-visible + .dot { outline: 2px solid var(--lime); outline-offset: 2px; }

.flash { max-width: 680px; margin: 18px auto 0; padding: 12px 18px; border-radius: 10px;
  background: #fff3c4; border: 1px solid #e8c93d; }
.flash-ok { background: #e6f7d4; border-color: #8fd14f; }
.flash-error { background: #fde8e8; border-color: #e5484d; }
@media (max-width: 640px) {
  body { overflow-x: hidden; }
  .nav { gap: 12px; padding: 10px 14px; }
  .nav img.logo { height: 34px; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(10,10,10,.92); flex-direction: column; gap: 0;
    margin: 0; padding: 8px 0 12px; border: none;
    border-top: 1px solid rgba(255,255,255,.1);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    box-shadow: 0 12px 24px rgba(0,0,0,.35);
  }
  .nav-links.open { display: flex; }
  /* Entrada escalonada al abrir el menú */
  .nav-links.open a {
    animation: navIn .45s cubic-bezier(.22,1,.36,1) backwards;
  }
  .nav-links.open a:nth-child(2) { animation-delay: .05s; }
  .nav-links.open a:nth-child(3) { animation-delay: .1s; }
  .nav-links.open a:nth-child(4) { animation-delay: .15s; }
  .nav-links.open a:nth-child(5) { animation-delay: .2s; }
  .nav-links.open a:nth-child(6) { animation-delay: .25s; }
  .nav-links.open a:nth-child(7) { animation-delay: .3s; }
  .nav-links a { padding: 13px 20px; font-size: 1rem; border-bottom: 1px solid #222; color: #9ca3af; }
  .nav-links a:not(.nav-cta)::after { display: none; }
  .nav-links a.active { color: #C6FF00; }
  .nav-links a:active { transform: scale(.98); }
  .nav-links a:last-child { border-bottom: none; }
  /* CTA a todo ancho en el dropdown */
  .nav-links a.nav-cta {
    margin: 10px 20px 4px; text-align: center;
    border-bottom: none;
  }
  .site-header { position: sticky; }
  .nav { position: relative; }
  .search-panel { flex-direction: column; }
  .search-panel .btn { align-self: stretch; }
  /* Admin en móvil: hamburger con dropdown (igual que el sitio público) */
  .admin-wrap { flex-direction: column; min-width: 0; }
  .admin-mhead { position: sticky; top: 0; z-index: 60; }
  .admin-topbar { display: flex; align-items: center; justify-content: space-between;
    background: var(--charcoal); padding: 10px 14px; }
  .admin-topbar img { height: 32px; }
  .admin-toggle { display: block; background: none; border: none; color: var(--white);
    font-size: 1.7rem; line-height: 1; cursor: pointer; padding: 4px 8px; }
  .admin-side { display: none; position: absolute; top: 100%; left: 0; right: 0; bottom: auto;
    width: 100%; max-height: calc(100vh - 60px); overflow-y: auto; padding: 8px 0 12px;
    box-shadow: 0 12px 24px rgba(0,0,0,.35); }
  .admin-side.open { display: block; }
  .admin-side > div:first-child { display: none; }
  .admin-side a { padding: 13px 20px; font-size: 1rem; border-bottom: 1px solid #2a2a2a; }
  .admin-side a:last-child { border-bottom: none; }
  .admin-main { padding: 20px 14px; margin-left: 0; min-width: 0; max-width: none;
    background: var(--off-white); }
  .admin-main h1 { font-size: 1.5rem; }
  .admin-main .row { gap: 10px; }
  .admin-main input, .admin-main select, .admin-main textarea { max-width: 100%; }
  /* Stats: 2 columnas compactas */
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat { padding: 14px 16px; }
  .stat .n { font-size: 1.6rem; }
  /* Tablas como tarjetas en móvil */
  .tbl-wrap { margin: 0; padding: 0; overflow: visible; }
  table.admin-tbl { min-width: 0; background: transparent; margin-bottom: 8px; font-size: .95rem; }
  table.admin-tbl .tbl-head { display: none; }
  table.admin-tbl, table.admin-tbl tbody { display: block; }
  table.admin-tbl tr { display: block; background: #fff; border-radius: 14px;
    margin-bottom: 14px; padding: 4px 18px; box-shadow: 0 2px 10px rgba(0,0,0,.05);
    border: 1px solid #E7E2D2; }
  table.admin-tbl td { display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 11px 0; border-bottom: 1px solid #EFEAD9; text-align: right; overflow-wrap: anywhere; color: #23231F; }
  table.admin-tbl td:last-child { border-bottom: none; }
  table.admin-tbl td::before { content: attr(data-label); font-weight: 700; font-size: .72rem;
    text-transform: uppercase; letter-spacing: .05em; color: #8A8A80;
    text-align: left; flex-shrink: 0; max-width: 42%; }
  /* Tabla de definición: el th es la etiqueta de la fila y ya vive en
     el ::before del td — esconderlo para no mostrarla dos veces. */
  table.admin-tbl.tbl-def th { display: none; }
  /* Revisar dorsales: apilar foto y formulario */
  .rev-card { flex-direction: column; }
  .rev-card img { width: 100%; }
}

/* ---------- revisar dorsales: foto grande + campos lado a lado ---------- */
.rev-list { display: flex; flex-direction: column; gap: 16px; }
.rev-card { display: flex; gap: 18px; background: var(--white); border-radius: var(--radius);
  padding: 14px; box-shadow: 0 4px 16px rgba(0,0,0,.06); border: 1px solid rgba(0,0,0,.05);
  align-items: flex-start; }
.rev-card img { width: 260px; border-radius: 8px; display: block; cursor: zoom-in; }
.rev-info { flex: 1; min-width: 0; padding-top: 4px; }
.rev-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 1.05rem; }
.rev-detected { color: var(--gris); margin-bottom: 12px; }
.rev-detected b { color: var(--charcoal); font-size: 1.15rem; }
.rev-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.rev-form input.inline { padding: 10px 12px; border: 1.5px solid #ddd; border-radius: 10px;
  font-size: 1rem; width: 130px; }
.rev-form input.inline:focus { border-color: var(--lime); outline: none; }
@media (max-width: 640px) {
  .rev-card { flex-direction: column; }
  .rev-card img { width: 100%; }
}

/* ---------- banner de resultados de búsqueda ---------- */
.result-banner { display: flex; align-items: flex-start; gap: 12px;
  background: var(--charcoal); color: var(--white);
  border-radius: 12px; padding: 8px 12px;
  max-width: 520px; margin: 0 auto 24px;
  box-shadow: 0 8px 28px rgba(0,0,0,.14); }
.result-badge { background: var(--lime); color: var(--charcoal);
  font-size: .95rem; font-weight: 900; border-radius: 8px;
  min-width: 46px; height: 40px; padding: 0 10px; white-space: nowrap;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
/* Los botones oscuros dentro del banner carbón no se veían: fondo oscuro
   sobre fondo oscuro. En el banner llevan fondo claro translúcido + borde. */
.result-banner .btn-dark { background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.35); }
.result-center { flex: 1; text-align: center; min-width: 0; }
.result-text { font-size: .85rem; line-height: 1.3; }
.result-text b { color: var(--lime); }
.result-q { font-size: .7rem; opacity: .62; margin: 2px 0 0; }
.result-btn { width: auto; white-space: nowrap; padding: 8px 12px; font-size: .85rem; flex-shrink: 0; }
.result-hint { text-align: center; font-size: .78rem; color: var(--gris);
  max-width: 560px; margin: -14px auto 22px; }
@media (max-width: 640px) {
  .result-banner { flex-wrap: wrap; gap: 12px; }
  .result-banner .btn { width: 100%; }
}

/* ---------- modal de revisión con fondo negro ---------- */
.rev-modal { position: fixed; inset: 0; background: rgba(8,8,8,.95); z-index: 100;
  display: none; align-items: center; justify-content: center; padding: 18px; }
.rev-modal.open { display: flex; }
.rev-modal-box { background: #161616; border-radius: 14px; width: 100%; max-width: 860px;
  max-height: 94vh; overflow-y: auto; padding: 16px; position: relative;
  border: 1px solid #2a2a2a; }
.rev-modal-box img { width: 100%; border-radius: 8px; display: block; }
.rev-modal .close { position: absolute; top: 8px; right: 12px; z-index: 2;
  background: rgba(0,0,0,.6); color: #fff; border: none; border-radius: 50%;
  width: 38px; height: 38px; font-size: 1.4rem; cursor: pointer; }
.rev-modal-form { padding: 14px 4px 4px; }
.rev-modal-form .rev-meta b { color: #fff; }
.rev-modal-form .rev-detected { color: #a3a3a3; margin-bottom: 12px; }
.rev-modal-form .rev-detected b { color: #C6FF00; font-size: 1.2rem; }

/* ---------- checkboxes elegantes ---------- */
.check { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer;
  font-size: .9rem; line-height: 1.45; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check .box { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 7px;
  border: 2px solid #d4d4d4; background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; color: transparent; transition: all .15s ease; }
.check input:checked + .box { background: var(--lime); border-color: var(--lime); color: var(--charcoal); }
.check input:focus-visible + .box { outline: 2px solid var(--lime); outline-offset: 2px; }

/* ---------- hero de portada del evento ---------- */
.event-hero { border-radius: 18px; overflow: hidden; margin: 0 0 26px;
  box-shadow: 0 14px 44px rgba(0,0,0,.18);
  background: linear-gradient(110deg, #1c1c1c 30%, #2b2b2b 45%, #1c1c1c 60%);
  background-size: 200% 100%; animation: hero-shimmer 1.6s linear infinite; }
@keyframes hero-shimmer { to { background-position: -200% 0; } }
.event-hero img { width: 100%; height: auto; display: block;
  position: relative; z-index: 1; }
.event-hero.loaded { animation: none; background: #1c1c1c; }


/* ---------- páginas legales ---------- */
.legal { max-width: 680px; }
.legal .kicker { font-size: .78rem; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gris); margin-bottom: 8px; text-align: center; }
.legal h2 { text-align: center; }
.legal-body { text-align: left; margin-top: 28px; display: grid; gap: 18px; }
.legal-body h3 { font-size: 1.05rem; margin-bottom: 2px; }
.legal-body p { color: #444; }
.legal-body a { color: var(--charcoal); font-weight: 700; }

/* ---------- precio por foto en paquetes ---------- */
.pkg-perphoto { color: var(--gris); font-size: .85rem; margin: -4px 0 0; }

/* ---------- links legales en footer ---------- */
.footer-legal { margin-top: 14px; font-size: .82rem; color: var(--gris); }
.footer-legal a { color: var(--gris); text-decoration: none; margin: 0 8px; }
.footer-legal a:hover { color: var(--lime); }
.footer-legal span { opacity: .5; }
.footer-credit { margin-top: 10px; font-size: .82rem; color: var(--gris); }
.footer-credit a { color: var(--gris); text-decoration: none; }
.footer-credit a:hover { color: var(--lime); }

/* ---------- refinamiento elegante v32 (público) ---------- */
h1, h2, h3 { letter-spacing: -0.015em; text-wrap: balance; }
.section { padding: 72px 20px; }
.section h2 { font-size: 2.1rem; font-weight: 800; }
.eyebrow {
  font-size: .74rem; font-weight: 700; letter-spacing: .24em;
  text-transform: uppercase; color: #6d6d6d; margin-bottom: 10px;
}

/* hero */
.hero::after {
  background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.22) 45%, rgba(0,0,0,.62));
}
.hero .eyebrow { color: rgba(255,255,255,.75); }
.hero h1 { letter-spacing: -0.03em; font-weight: 800; }
.hero-inner { padding: 64px 20px; }

/* tarjeta de búsqueda */
.search-panel {
  border-radius: 20px; padding: 28px;
  background: rgba(18,18,18,.94);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 24px 70px rgba(0,0,0,.5);
}
.search-field label { color: #bdbdbd; font-weight: 700; letter-spacing: .07em; margin-bottom: 8px; }
.search-field input, .search-field select, .ev-btn {
  border: 1.5px solid rgba(255,255,255,.16); border-radius: 12px;
  background: rgba(255,255,255,.06); color: #fff;
}
.search-field input::placeholder { color: #8f8f8f; }
.search-field input:focus, .ev-btn:focus-visible {
  outline: none; border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(198,255,0,.22);
}
.ev-btn { background: rgba(255,255,255,.06); }
.ev-ph { color: #8f8f8f; }
.ev-btn .ev-name { color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-btn .ev-place { color: #bdbdbd; }
.ev-opt .ev-name { color: var(--charcoal); }
.ev-opt .ev-place { color: #767676; }

/* botones */
.btn {
  border-radius: 12px; font-weight: 700; letter-spacing: .01em;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0,0,0,.16); }
.btn-lime:hover { box-shadow: 0 10px 28px rgba(198,255,0,.38); }
.btn:focus-visible { outline: 3px solid rgba(198,255,0,.5); outline-offset: 2px; }
.btn:active { transform: scale(.98); }

/* tarjetas */
.pkg-card {
  padding: 34px 34px; border-radius: 18px;
  box-shadow: 0 12px 36px rgba(0,0,0,.08);
  border: 1px solid rgba(0,0,0,.05);
}
.pkg-price { letter-spacing: -0.03em; }
.event-card { border-radius: 18px; box-shadow: 0 12px 36px rgba(0,0,0,.08); transition: transform .18s ease, box-shadow .18s ease; }
.event-card:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(0,0,0,.12); }
.event-card:hover img { transform: scale(1.04); }

/* faq */
.faq details { border-radius: 14px; padding: 18px 22px; border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 4px 16px rgba(0,0,0,.04); }
.faq summary { font-weight: 700; cursor: pointer; }

/* footer */
.site-footer { padding: 48px 20px 40px; }

/* ---------- refinamiento elegante v32 (admin) ---------- */
a.stat { display: block; text-decoration: none; color: inherit; }
.admin-main h1 { font-size: 1.65rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 22px; }
.admin-main h2 { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; }
.admin-side a {
  font-weight: 600; font-size: .94rem; letter-spacing: .01em;
  padding: 12px 24px;
  color: rgba(255,255,255,.68); transition: background .12s ease, color .12s ease;
}
.admin-side a:hover { color: #fff; background: rgba(255,255,255,.05); opacity: 1; }
.admin-side a.active { color: #fff; }
.admin-side a.active { color: var(--lime); background: rgba(198,255,0,.08); opacity: 1; }
.stat {
  border: 1px solid rgba(0,0,0,.06); box-shadow: 0 6px 20px rgba(0,0,0,.05);
  transition: transform .15s ease, box-shadow .15s ease;
}
.stat:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.09); }
.stat .n { letter-spacing: -0.02em; }
.stat .l { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
table.admin-tbl { border: 1px solid rgba(0,0,0,.06); box-shadow: 0 6px 20px rgba(0,0,0,.05); }
table.admin-tbl th {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 700;
  padding: 14px 16px;
}
.tag { letter-spacing: .02em; padding: 4px 13px; }

/* ---------- tabs del admin: una sola fila, desliza si no cabe ---------- */
.dash-tabs, .ctabs { display: flex; gap: 2px; margin-bottom: 20px; flex-wrap: nowrap;
  overflow-x: auto; max-width: 100%; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  background: #fff; border: 1.5px solid #e3e3e3; border-radius: 12px; padding: 4px; }
.dash-tabs::-webkit-scrollbar, .ctabs::-webkit-scrollbar { display: none; }
.dash-tabs a, .ctabs a { flex: none; padding: 8px 18px; border-radius: 8px; text-decoration: none;
  font-weight: 700; font-size: .92rem; color: #555; border: none; background: transparent;
  white-space: nowrap; }
.dash-tabs a:hover, .ctabs a:hover { color: var(--charcoal); background: #f0f0f0; }
.dash-tabs a.active, .ctabs a.active { background: var(--charcoal); color: #fff; }

/* ---------- resumen nuevo: hero + paneles ---------- */
.hero-card { display: block; position: relative; background: var(--charcoal); color: #fff;
  border-radius: 16px; padding: 22px 24px; margin-bottom: 20px; text-decoration: none;
  box-shadow: 0 4px 18px rgba(0,0,0,.12); overflow: hidden; }
.hero-card:hover { color: #fff; }
.hero-l { display: block; font-weight: 700; font-size: .95rem; opacity: .75; }
.hero-n { display: block; font-size: 2.6rem; font-weight: 800; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; margin: 2px 0; }
.hero-s { display: block; font-size: .85rem; opacity: .75; }
.hero-dot { position: absolute; top: 0; right: 0; width: 64px; height: 10px;
  background: #C6FF00; border-bottom-left-radius: 10px; }
.dash-panels { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; margin-bottom: 20px; }
.dash-panel { background: #fff; border: 1px solid #e8e8e8; border-radius: 16px;
  padding: 18px 20px; box-shadow: 0 4px 18px rgba(0,0,0,.05); }
.dash-panel h2 { margin: 0 0 12px; font-size: 1.15rem; }
.stack-panels .dash-panel { margin-bottom: 14px; }
.dash-panel .sub { color: #6E6E66; font-size: .88rem; margin: 0 0 16px; }
.pend-row { display: flex; align-items: center; gap: 10px; padding: 12px 2px;
  border-bottom: 1px solid #eee; text-decoration: none; color: inherit; }
.pend-row:last-child { border-bottom: none; }
.pend-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #C6FF00;
  border: 2px solid #151515; }
.pend-t { flex: 1; font-weight: 600; }
.pend-arrow { color: #999; }
@media (max-width: 700px) {
  .dash-panels { grid-template-columns: 1fr; }
  .hero-n { font-size: 2.2rem; }
}

/* ---------- resumen retractable: secciones y filas ---------- */
.panel-head { display: flex; justify-content: space-between; align-items: center;
  width: 100%; padding: 0 0 12px; background: none; border: none; cursor: pointer;
  font: inherit; font-size: 1.15rem; font-weight: 800; color: var(--charcoal);
  text-align: left; }
.dash-panel h2 { margin: 0; }
.chev { color: #999; font-size: .95rem; }
.ev-row { border-top: 1px solid #eee; }
.ev-row:first-child { border-top: none; }
.ev-head { display: flex; justify-content: space-between; align-items: center;
  width: 100%; padding: 13px 2px; background: none; border: none; cursor: pointer;
  font: inherit; font-weight: 700; color: var(--charcoal); text-align: left; }
.ev-name { flex: 1; min-width: 0; }
.ev-body { padding: 2px 2px 14px; }
.ev-stat { display: flex; justify-content: space-between; padding: 7px 0;
  border-top: 1px solid #f2f2f2; color: #555; font-size: .92rem; }
.ev-stat:first-child { border-top: none; }
.ev-stat b { color: var(--charcoal); }
.ev-sub { font-weight: 400; font-size: .78rem; color: var(--gris); margin-left: 8px; }
.sub-row { border-top: 1px solid #f2f2f2; }
.sub-head { display: flex; justify-content: space-between; align-items: center;
  width: 100%; padding: 10px 2px; background: none; border: none; cursor: pointer;
  font: inherit; font-weight: 600; font-size: .92rem; color: var(--charcoal); text-align: left; }
.sub-body { padding: 2px 2px 10px; }
.reg-row { padding: 8px 0; border-top: 1px solid #f5f5f5; }
.reg-row:first-child { border-top: none; }
.reg-top { font-size: .92rem; color: var(--charcoal); }
.reg-meta { font-size: .8rem; color: var(--gris); margin-top: 2px; }
.tag-ok { display: inline-block; font-size: .7rem; font-weight: 700; color: #1a7a2e;
  background: #e2f3e5; border-radius: 20px; padding: 1px 8px; margin-left: 4px; vertical-align: 1px; }
.tag-ev { display: inline-block; font-size: .7rem; font-weight: 700; color: #555;
  background: #f0efea; border-radius: 20px; padding: 1px 8px; margin-left: 4px; vertical-align: 1px; }
.ctabs a .n { font-weight: 400; opacity: .65; }
.ctabs a.csv { margin-left: 10px; background: transparent; color: var(--charcoal);
  border: 1.5px solid var(--charcoal); border-radius: 8px; }
.ctabs a.csv:hover { background: var(--charcoal); color: #fff; }

/* ---------- controles del admin: un solo sistema ---------- */
.ctl { font: inherit; font-size: .95rem; height: 42px; padding: 0 12px;
  border: 1.5px solid #ddd6c4; border-radius: 10px; background: #fff;
  color: var(--charcoal); }
select.ctl { appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23151515' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 12px; }
.ctl:focus { outline: none; border-color: var(--charcoal);
  box-shadow: 0 0 0 3px rgba(198,255,0,.35); }
.filter-bar { background: #fff; border: 1px solid rgba(0,0,0,.06); border-radius: 14px;
  padding: 14px 16px; display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap;
  box-shadow: 0 4px 16px rgba(0,0,0,.04); margin-bottom: 18px; }
.flabel { display: flex; flex-direction: column; gap: 6px; font-size: .78rem;
  font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #555; }
.btn-sm { padding: 10px 20px; font-size: .92rem; height: 42px;
  display: inline-flex; align-items: center; }
.seg { display: inline-flex; gap: 2px; background: #fff; border: 1.5px solid #ddd6c4;
  border-radius: 12px; padding: 4px; }
.seg a { padding: 7px 16px; border-radius: 8px; text-decoration: none; font-weight: 700;
  font-size: .88rem; color: #555; }
.seg a:hover { color: var(--charcoal); background: #f4f1e6; }
.seg a.active { background: var(--charcoal); color: #fff; }

/* ---------- buscador de dorsal en la página del evento ---------- */
.bib-search { display: flex; gap: 10px; max-width: 560px; margin: 4px auto 26px; }
.bib-search input {
  flex: 1; min-width: 0; border: 1.5px solid #e2e2dc; border-radius: 12px;
  padding: 13px 16px; font-size: 1rem; background: #fff; color: var(--charcoal);
}
.bib-search input:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px rgba(198,255,0,.28); }
.bib-search .btn { white-space: nowrap; }

/* ---------- tarjetas "hoy" del dashboard ---------- */
.stat-today { background: linear-gradient(135deg, #f4ffd6, #eef9d8); border: 1px solid rgba(140,180,0,.25); }
.stat-today .n { color: #3d5a00; }

/* ---------- auditoría + refresh v44 (2026-10-20) ---------- */
/* Paquetes: tarjetas flex para que los botones queden alineados */
.pkg-card { display: flex; flex-direction: column; }
.pkg-card .btn { margin-top: auto; }

/* Contraste: grises sobre fondo claro más oscuros (legibilidad AA) */
.section p.lead { color: #666; }
.event-card .meta { color: #666; }
.pkg-desc, .pkg-perphoto { color: #666; }
.secure-note { color: #666; }
.single-note { color: #666; }
.result-hint { color: #666; }
.testi-card figcaption { color: #666; }
.faq details p { color: #444; }

/* Formularios: anillo de foco visible (checkout, contacto, aviso) */
.form-card input:focus, .form-card select:focus, .form-card textarea:focus {
  outline: none; border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(198,255,0,.25);
}

/* Imágenes: fondo mientras cargan (sin huecos blancos/negros) */
.event-card img { background: #e9e9e4; }
.hero { background: #101010; }

/* Toque de marca + scroll suave */
::selection { background: var(--lime); color: var(--charcoal); }
html { scroll-behavior: smooth; }

/* Aparición suave al hacer scroll (solo home, vía data-reveal) */
[data-reveal] { opacity: 0; transform: translateY(16px);
  transition: opacity .55s cubic-bezier(0.23,1,0.32,1), transform .55s cubic-bezier(0.23,1,0.32,1); }
[data-reveal].in { opacity: 1; transform: none; }

/* Menos movimiento si el sistema lo pide */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important;
    animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Hero: foto más presente (antes doble oscurecimiento la apagaba) */
.hero img.hero-bg { opacity: .82; animation: hero-in .7s cubic-bezier(0.23,1,0.32,1); }
@keyframes hero-in { from { opacity: 0; } to { opacity: .82; } }
.hero::after { background: linear-gradient(180deg, rgba(0,0,0,.52), rgba(0,0,0,.16) 45%, rgba(0,0,0,.55)); }
.thumbs-row img { background: #2a2a2a; }

/* ---------- premium v52: controles de la página de evento ---------- */
/* Buscador de dorsal: una sola barra fusionada, acción carbón adentro */
.bib-search { align-items: center; gap: 0; background: #fff; border: 1px solid #E3E0D3;
  border-radius: 14px; padding: 5px; margin: 6px auto 14px;
  box-shadow: 0 1px 2px rgba(21,21,21,.05);
  transition: border-color .18s ease-out, box-shadow .18s ease-out; }
.bib-search:focus-within { border-color: #151515; box-shadow: 0 0 0 3px rgba(198,255,0,.30); }
.bib-search input { border: none; border-radius: 0; background: transparent; padding: 10px 12px; }
.bib-search input:focus { border: none; box-shadow: none; }
.bib-search .bib-go { background: var(--charcoal); color: #fff; border-radius: 10px;
  padding: 11px 24px; font-weight: 600; box-shadow: none; }
.bib-search .bib-go:hover { background: #000; transform: none; box-shadow: none; }
.bib-search .bib-go:active { transform: scale(.97); }

/* Cargar más: botón fantasma amplio, sin píldora lima */
.btn-more { display: inline-flex; align-items: center; gap: 10px; background: #fff;
  color: var(--charcoal); border: 1px solid #D9D4C3; border-radius: 12px;
  padding: 15px 32px; font-weight: 600; font-size: .98rem; box-shadow: none;
  transition: border-color .18s ease-out, background .18s ease-out, transform .12s ease-out; }
.btn-more:hover { border-color: var(--charcoal); background: #FBFAF5; transform: none; box-shadow: none; }
.btn-more:active { transform: scale(.98); }
.btn-more:disabled { opacity: .55; cursor: default; }
.btn-more::after { content: ""; width: 13px; height: 13px; flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23151515' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat; }
.btn-more:disabled::after { display: none; }

/* Botón de selección en la galería: cristal sobrio; lima solo al seleccionar */
.g-check { width: 30px; height: 30px; top: 10px; right: 10px; font-size: 1rem; font-weight: 500;
  border: 1px solid rgba(255,255,255,.45); background: rgba(18,18,18,.48);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: transform .16s ease-out, background .16s ease-out, border-color .16s ease-out; }
.g-check:hover { background: rgba(18,18,18,.72); transform: scale(1.07); }
.g-check:active { transform: scale(.93); }
.g-item.selected .g-check { background: var(--lime); color: var(--charcoal);
  border-color: transparent; font-size: 0; }
.g-item.selected .g-check::after { content: "\2713"; font-size: .92rem; font-weight: 700; }

/* Avísame (evento sin fotos): lima sin glow, radio sobrio */
.btn-aviso { border-radius: 14px; padding: 16px 38px; font-size: 1.05rem; box-shadow: none; }
.btn-aviso:hover { box-shadow: 0 8px 22px rgba(21,21,21,.16); }

/* Modal de cara: botones sin glow neón */
.face-actions .btn { border-radius: 11px; font-weight: 600; }
.face-actions .btn-lime:hover { box-shadow: 0 6px 18px rgba(21,21,21,.14); }

/* ================= Admin redesign v54 (2026-10-25) ================= */
/* Sidebar: la sección activa es una píldora lima, como el mockup aprobado. */
.admin-side a.active { background: var(--lime); color: var(--charcoal); box-shadow: none; }
.admin-side a.active .ic { color: var(--charcoal); }
/* Píldoras de período: la activa en lima. */
.seg a.active { background: var(--lime); color: var(--charcoal); }
/* KPIs con subtítulo en lenguaje plano. */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi { background: #fff; border: 1px solid #e8e8e8; border-radius: 16px; padding: 18px 20px; box-shadow: 0 4px 18px rgba(0,0,0,.05); }
.kpi .l { font-weight: 800; font-size: .95rem; }
.kpi .n { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; margin: 2px 0; }
.kpi .s { color: #6E6E66; font-size: .8rem; line-height: 1.35; }
a.kpi { text-decoration: none; color: inherit; display: block; }
a.kpi:hover { border-color: var(--charcoal); }
/* Tarjetas de sección. */
.dash-card { background: #fff; border: 1px solid #E7E2D2; border-radius: 16px; padding: 20px 22px; box-shadow: 0 4px 18px rgba(0,0,0,.05); margin-bottom: 20px; }
.dash-card h2 { margin: 0 0 4px; font-size: 1.15rem; }
.dash-card .sub { color: #6E6E66; font-size: .88rem; margin: 0 0 16px; }
.dash-card table.admin-tbl { border: none; box-shadow: none; margin-bottom: 0; }
/* Embudo: la fuga se ve en el % que continúa paso a paso. */
.funnel-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.funnel-row .fl { width: 172px; flex-shrink: 0; font-size: .88rem; font-weight: 600; }
.funnel-track { flex: 1; background: #f0f0ea; border-radius: 10px; height: 30px; overflow: hidden; }
.funnel-fill { background: var(--lime); border-radius: 10px; height: 30px; min-width: 10px; }
.funnel-num { font-weight: 800; font-size: 1.05rem; min-width: 92px; text-align: right; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.funnel-num small { display: block; font-weight: 400; color: #6E6E66; font-size: .75rem; }
/* Gráficos + tarjeta de detalle (táctil: funciona con toque, no solo hover). */
.chart-card { background: #fff; border-radius: 16px; padding: 18px 14px 10px; box-shadow: 0 4px 18px rgba(0,0,0,.05); border: 1px solid #E7E2D2; }
.chart-card svg { width: 100%; height: auto; display: block; }
.chart-card svg .hit { cursor: pointer; }
.chart-detail { background: #FBFAF6; border: 1px solid #E7E2D2; border-radius: 12px; padding: 12px 16px; margin-top: 12px; font-size: .92rem; line-height: 1.5; }
.chart-detail b { font-size: 1.02rem; }
.chart-detail .vs { color: #6E6E66; }
.chart-sub { color: #6E6E66; font-size: .88rem; margin: 0 0 12px; }
.chart-sub b { color: var(--charcoal); }
/* Secciones colapsables (leaderboards). */
.msec { margin: 20px 0 0; }
.msec>summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; margin-bottom: 12px; }
.msec>summary::-webkit-details-marker { display: none; }
.msec>summary h2 { margin: 0; font-size: 1.15rem; }
.msec .chev { flex-shrink: 0; color: #8a8a8a; transition: transform .18s ease-out; }
.msec:not([open]) .chev { transform: rotate(-90deg); }
.msec:not([open])>summary { margin-bottom: 2px; }
.msec .hint { color: #6E6E66; font-size: .85rem; font-weight: 400; }
.lb-row { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid #f0f0ea; }
.lb-row:last-child { border-bottom: none; }
.lb-rank { width: 32px; height: 32px; border-radius: 50%; background: #EFEBDD; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .85rem; flex-shrink: 0; }
.lb-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.lb-sub { display: block; font-size: .78rem; color: #6E6E66; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-count { font-weight: 800; font-size: 1.1rem; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.lb-count small { font-weight: 400; color: #6E6E66; font-size: .72rem; }
@media (max-width: 640px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .kpi { padding: 14px 16px; }
  .kpi .n { font-size: 1.6rem; }
  .funnel-row .fl { width: 110px; font-size: .82rem; }
  .funnel-num { min-width: 74px; font-size: .95rem; }
  .dash-card { padding: 16px; }
}

/* Badge de mensajes sin leer sobre el tab Mensajes (v56): rojo con número
   blanco — imposible de confundir con el fondo carbón o la píldora lima. */
.msg-badge { margin-left: auto; background: #E5484D; color: #fff;
  font-size: .8rem; font-weight: 800; min-width: 24px; height: 24px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.admin-side a.active .msg-badge { background: #E5484D; color: #fff; }

/* Subeventos en /admin/eventos: se ocultan con clase, no con el atributo
   hidden — en móvil las filas de la tabla son display:block y ese estilo
   del autor le gana al display:none del atributo hidden. */
.child-row.collapsed { display: none !important; }

/* La bolita de Mensajes: el display del autor le ganaba al atributo hidden
   y la bolita vacía se veía siempre, aunque no hubiera nada sin leer. */
#msg-badge[hidden] { display: none !important; }
/* Detalle de cada mensaje: igual que los subeventos, en móvil la fila es
   display:block y el hidden no la ocultaba (el detalle salía abierto). */
.c-detail.collapsed { display: none !important; }

/* ===== Panel de subida rediseñado (2026-10-31, ref. ZebraSnap) ===== */
.up-drop { display: block; border: 2px dashed #D8D2BE; border-radius: 14px;
  padding: 28px 20px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.up-drop:hover, .up-drop.over { border-color: var(--lime); background: rgba(198,255,0,.06); }
.up-drop strong { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.up-drop span { color: var(--gris); font-size: .88rem; }
.up-live { margin-top: 18px; }
.up-summary { background: #FAFAF7; border: 1px solid #ECEAE2; border-radius: 14px; padding: 18px 20px; }
.up-summary-top { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.up-left { font-weight: 800; font-size: 1.05rem; }
.up-speed { color: var(--gris); font-size: .88rem; }
.up-pct { margin-left: auto; font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; }
.up-pause { padding: 7px 16px; font-size: .85rem; }
.up-bar { background: var(--charcoal); border-radius: 10px; height: 14px; overflow: hidden; margin-top: 12px; }
.up-bar > div { height: 100%; width: 0%; background: var(--lime); border-radius: 10px; transition: width .25s ease-out; }
.up-bytes { color: var(--gris); font-size: .85rem; margin-top: 8px; }
.up-tabs { display: flex; gap: 6px; margin: 16px 0 4px; border-bottom: 2px solid #ECEAE2; }
.up-tab { background: none; border: none; font: inherit; font-weight: 700; color: var(--gris);
  padding: 10px 14px; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.up-tab .n { display: inline-block; min-width: 24px; text-align: center; background: #ECEAE2;
  border-radius: 999px; font-size: .78rem; padding: 1px 7px; margin-left: 6px; color: var(--charcoal); }
.up-tab.on { color: var(--charcoal); border-bottom-color: var(--lime); }
.up-tab .n.warn { background: #FDE8E8; color: #C0392B; }
.up-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; max-height: 380px; overflow-y: auto; }
.up-row { background: #fff; border: 1px solid #ECEAE2; border-radius: 12px; padding: 12px 14px; }
.up-row-top { display: flex; align-items: center; gap: 10px; }
.up-name { font-weight: 700; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-meta { color: var(--gris); font-size: .82rem; margin-top: 2px; }
.up-rowbar { background: #F0EFE9; border-radius: 8px; height: 8px; overflow: hidden; margin-top: 8px; }
.up-rowbar > div { height: 100%; width: 0%; background: var(--lime); border-radius: 8px; transition: width .2s ease-out; }
.up-row.issue { border-color: #F5C6C6; background: #FFF8F8; }
.up-row.issue .up-rowbar > div { background: #E5484D; }
.up-issue-msg { color: #C0392B; font-size: .85rem; font-weight: 600; margin-top: 6px; }
.up-retry { margin-left: auto; flex-shrink: 0; padding: 6px 14px; font-size: .82rem; }
.up-status { margin: 14px 0 0; font-weight: 700; font-size: 1.02rem; }
.up-foot { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.up-foot .btn { width: auto; margin-top: 0; }
/* ===== Pulido estilo Apple — página de evento (admin) ===== */
.admin-main h1 { letter-spacing: -.02em; font-weight: 800; }
.ev-sec-title { letter-spacing: -.01em; }
.ev-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; margin-top: 14px; }
.ev-stat { background: #FAFAF7; border: 1px solid #ECEAE2; border-radius: 12px; padding: 12px 14px; }
.ev-stat b { display: block; font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; color: var(--charcoal); }
.ev-stat span { font-size: .78rem; color: var(--gris); }
@media (max-width: 640px) {
  .up-summary { padding: 14px; }
  .up-pct { font-size: 1.1rem; }
  .up-tab { padding: 8px 10px; font-size: .88rem; }
}
@media (prefers-reduced-motion: reduce) {
  .up-bar > div, .up-rowbar > div { transition: none; }
}
