 :root{
  /* Identidad */
  --accent:   #f43f5e; /* rose */
  --accent-2: #f59e0b; /* amber */

  /* Dark base */
  --bg:   #070a12;
  --bg-2: #0a0f1f;

  --panel:   rgba(255,255,255,.06);
  --panel-2: rgba(255,255,255,.04);
  --border:  rgba(255,255,255,.12);

  --text:  rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);
  --muted2:rgba(255,255,255,.55);
}

/* =============== LIGHT THEME (NO pálido) =============== */
html[data-bs-theme="light"]{
  --bg:   #f6f7fb;
  --bg-2: #ffffff;

  --panel:   rgba(15,23,42,.06);
  --panel-2: rgba(15,23,42,.04);
  --border:  rgba(15,23,42,.14);

  --text:  rgba(15,23,42,.92);
  --muted: rgba(15,23,42,.70);
  --muted2:rgba(15,23,42,.55);
}

/* Transición suave */
html.theme-transition, html.theme-transition *{
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, filter .18s ease, opacity .18s ease;
}

body{
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% 0%, rgba(244,63,94,.16), transparent 55%),
    radial-gradient(1200px 600px at 90% 10%, rgba(245,158,11,.12), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg));
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  letter-spacing: .2px;
}

html[data-bs-theme="light"] body{
  background:
    radial-gradient(1200px 700px at 12% 0%, rgba(244,63,94,.10), transparent 55%),
    radial-gradient(1200px 700px at 88% 10%, rgba(245,158,11,.10), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg));
}

.muted{ color: var(--muted) !important; }
.muted-2{ color: var(--muted2) !important; }

/* ===== NAV ===== */
.nav-wrap{
  position: sticky;
  top: 0;
  z-index: 1050;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(7,10,18,.78), rgba(7,10,18,.40));
  border-bottom: 1px solid rgba(255,255,255,.06);
  isolation: isolate;
}

/* Fix clicks */
.nav-wrap{ pointer-events: none; }
.nav-wrap .container,
.nav-wrap .navbar,
.nav-wrap a,
.nav-wrap button{ pointer-events: auto; }

html[data-bs-theme="light"] .nav-wrap{
  background: linear-gradient(180deg, rgba(255,255,255,.90), rgba(255,255,255,.72));
  border-bottom: 1px solid rgba(15,23,42,.10);
}

.brand{
  font-weight: 900;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.icon-toggle{
  width: 42px;height:42px;
  display:inline-flex;align-items:center;justify-content:center;
  border-radius: 12px;
  position: relative;
  z-index: 3;
}
#themeIcon{ pointer-events:none; }

/* ===== HERO ===== */
.hero{
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: var(--bg-2);
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}

/* LIGHT: borde/sombra más “premium” */
html[data-bs-theme="light"] .hero{
  border-color: rgba(15,23,42,.12);
  box-shadow: 0 20px 60px rgba(2,6,23,.14);
}

/* --- Scrim inferior (LA CLAVE) ---
   Este scrim vive en .hero (no en la imagen),
   así garantizamos legibilidad abajo SIN apagar el póster completo. */
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index: 1;
  background:
    linear-gradient(180deg,
      rgba(0,0,0,0) 0%,
      rgba(0,0,0,0) 45%,
      rgba(0,0,0,.55) 72%,
      rgba(0,0,0,.78) 100%
    );
}

/* Light: scrim más suave, pero suficiente para que texto/botón se lean */
html[data-bs-theme="light"] .hero::after{
  background:
    linear-gradient(180deg,
      rgba(2,6,23,0) 0%,
      rgba(2,6,23,0) 46%,
      rgba(2,6,23,.18) 74%,
      rgba(2,6,23,.32) 100%
    );
}

.hero-media{
  position: relative;
  min-height: 440px;
  background: #0b0f1a;
  z-index: 0; /* debajo del scrim */
}

.hero-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
  transform: scale(1.02);
  opacity: .98;
  /* dark: un toque de punch */
  filter: contrast(1.06) saturate(1.03);
}

/* Light: más punch (sin saturar feo) */
html[data-bs-theme="light"] .hero-media img{
  filter: contrast(1.10) saturate(1.06);
  opacity: .99;
}

/* Grain */
.hero-media::before{
  content:"";
  position:absolute; inset:0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity:.16;
  pointer-events:none;
  z-index: 0;
}
html[data-bs-theme="light"] .hero-media::before{ opacity:.10; }

/* Luces / tono (SIN lavar) */
.hero-media::after{
  content:"";
  position:absolute; inset:0;
  pointer-events:none;
  z-index: 0;
  background:
    radial-gradient(900px 520px at 18% 18%, rgba(244,63,94,.14), transparent 62%),
    radial-gradient(900px 520px at 82% 20%, rgba(245,158,11,.12), transparent 64%),
    /* viñeta MUY suave */
    radial-gradient(1200px 600px at 50% 10%, rgba(0,0,0,.10), transparent 55%);
}

/* Light: nada de “capa blanca lechosa” */
html[data-bs-theme="light"] .hero-media::after{
  background:
    radial-gradient(900px 520px at 18% 18%, rgba(244,63,94,.10), transparent 62%),
    radial-gradient(900px 520px at 82% 20%, rgba(245,158,11,.08), transparent 64%),
    radial-gradient(1200px 600px at 50% 10%, rgba(2,6,23,.06), transparent 60%);
}

.hero-content{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px;
  z-index: 2; /* arriba del scrim */
  text-shadow: 0 10px 30px rgba(0,0,0,.55);
}

.kicker{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  margin-bottom: 10px;
}

.tag{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: .45rem .75rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.42);
  color: rgba(255,255,255,.92);
  font-size: .85rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

html[data-bs-theme="light"] .tag{
  background: rgba(255,255,255,.86);
  color: rgba(15,23,42,.92);
  border-color: rgba(15,23,42,.14);
  box-shadow: 0 10px 30px rgba(2,6,23,.06);
}

.headline{
  font-weight: 950;
  letter-spacing: .6px;
  text-transform: uppercase;
  line-height: 1.05;
  margin: 0;
  color: rgba(255,255,255,.98);
}

.subline{
  margin-top: 10px;
  color: rgba(255,255,255,.82);
  font-weight: 600;
}
html[data-bs-theme="light"] .subline{  color: rgba(255,255,255,.98);
}

/* ===== INFO STRIP ===== */
.info-strip{
  margin-top: 14px;
  border-top: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.38);
  display:flex;
  flex-wrap:wrap;
  gap: 0;
  position: relative;
  z-index: 2;
}
html[data-bs-theme="light"] .info-strip{
  background: rgba(255,255,255,.74);
  border-top-color: rgba(15,23,42,.10);
}

.info-item{
  flex: 1 1 220px;
  padding: 12px 16px;
  border-right: 1px solid rgba(255,255,255,.08);
}
html[data-bs-theme="light"] .info-item{ border-right-color: rgba(15,23,42,.08); }
.info-item:last-child{ border-right: 0; }

.info-label{
  font-size: .78rem;
  color: rgba(255,255,255,.70);
  display:flex; align-items:center; gap:8px;
}
html[data-bs-theme="light"] .info-label{ color: rgba(15,23,42,.60); }

.info-value{
  font-weight: 800;
  margin-top: 3px;
}

/* ===== CTA ===== */
.btn-primary-concert{
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border: 0;
  color: #0b0c10;
  font-weight: 900;
  padding: .9rem 1.1rem;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.btn-primary-concert:hover{ filter: brightness(.98); color:#0b0c10; }

.btn-ghost{
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-weight: 800;
  padding: .9rem 1.1rem;
  border-radius: 16px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
html[data-bs-theme="light"] .btn-ghost{
  border-color: rgba(15,23,42,.16);
  background: rgba(255,255,255,.82);
  color: var(--text);
}

/* ===== SECTION TITLES ===== */
.section-title{
  font-weight: 950;
  letter-spacing: .6px;
  text-transform: uppercase;
  margin: 0;
}
.section-sub{
  margin-top: 6px;
  color: var(--muted);
}

/* ===== TICKETS LIST ===== */
.ticket{
  position: relative;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--panel);
  overflow: hidden;
}
.ticket::before, .ticket::after{
  content:"";
  position:absolute;
  top: 50%;
  width: 18px; height: 18px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: var(--bg);
  border: 1px solid rgba(255,255,255,.08);
}
.ticket::before{ left: -10px; }
.ticket::after{ right: -10px; }

html[data-bs-theme="light"] .ticket{
  background: rgba(255,255,255,.88);
}
html[data-bs-theme="light"] .ticket::before,
html[data-bs-theme="light"] .ticket::after{
  background: var(--bg);
  border-color: rgba(15,23,42,.14);
}

.ticket-inner{
  display:grid;
  grid-template-columns: 1.2fr .85fr;
  gap: 0;
}
@media (max-width: 991px){
  .ticket-inner{ grid-template-columns: 1fr; }
}

.ticket-main{
  padding: 18px;
  border-right: 1px dashed rgba(255,255,255,.18);
}
html[data-bs-theme="light"] .ticket-main{
  border-right-color: rgba(15,23,42,.18);
}
@media (max-width: 991px){
  .ticket-main{ border-right: 0; border-bottom: 1px dashed rgba(255,255,255,.18); }
  html[data-bs-theme="light"] .ticket-main{ border-bottom-color: rgba(15,23,42,.18); }
}

/* Centrar verticalmente el contenido cuando ticket-side solo tiene el botón */
.ticket-side{
  padding: 18px 22px 20px;
  border-top: 1px dashed rgba(255,255,255,.10);
  display: flex;
  justify-content: center;
  align-items: center;
}

.ticket-side .d-grid{
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.btn-pick,
.soldout{
  width: 100%;
  min-height: 50px;
  border-radius: 16px;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  line-height: 1.1;
}

@media (min-width: 768px){
  .ticket-side{
    padding: 20px 26px 22px;
  }

  .ticket-side .d-grid{
    max-width: 340px;
  }
}

@media (max-width: 576px){
  .ticket-side{
    padding: 16px 14px 18px;
  }

  .ticket-side .d-grid{
    max-width: 100%;
  }

  .btn-pick,
  .soldout{
    min-height: 48px;
    border-radius: 14px;
    font-size: .98rem;
  }
}
.zone-name{
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .7px;
  display:flex;
  align-items:center;
  gap:10px;
  margin: 0;
}

.chip{
  font-size: .78rem;
  font-weight: 900;
  padding: .28rem .55rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.25);
  color: rgba(255,255,255,.88);
}
html[data-bs-theme="light"] .chip{
  background: rgba(255,255,255,.70);
  color: rgba(15,23,42,.82);
  border-color: rgba(15,23,42,.14);
}

.price{
  font-size: 1.65rem;
  font-weight: 950;
  letter-spacing: .3px;
  margin-top: 8px;
}
.smallmeta{
  margin-top: 6px;
  color: var(--muted);
  font-size: .92rem;
}
.qty{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top: 14px;
  color: var(--muted);
  font-size: .92rem;
}

.btn-pick{
  width: 100%;
  border-radius: 14px;
  font-weight: 950;
  padding: .80rem 1rem;
  border: 0;
  color: #0b0c10;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.btn-pick:hover{ filter: brightness(.98); color:#0b0c10; }

.btn-details{
  width: 100%;
  border-radius: 14px;
  font-weight: 900;
  padding: .78rem 1rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,.16);
  color: var(--text);
}
html[data-bs-theme="light"] .btn-details{
  border-color: rgba(15,23,42,.16);
}

.soldout{
  width: 100%;
  border-radius: 14px;
  font-weight: 950;
  padding: .80rem 1rem;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.60);
}
html[data-bs-theme="light"] .soldout{
  color: rgba(15,23,42,.55);
  border-color: rgba(15,23,42,.14);
  background: rgba(15,23,42,.03);
}

footer{ color: var(--muted2); }

    /* =============================
        MAPA SVG (Public Index)
    ============================= */
.map-card{
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--panel);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.20);
}

html[data-bs-theme="light"] .map-card{
    background: rgba(255,255,255,.86);
    box-shadow: 0 20px 60px rgba(2,6,23,.10);
}

.map-frame{
    width: 100%;
    aspect-ratio: 21 / 9;
    background: rgba(0,0,0,.25);
    overflow: hidden;
}

html[data-bs-theme="light"] .map-frame{
    background: rgba(2,6,23,.05);
}

.map-object{
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

html[data-bs-theme="light"] .map-hint{
    border-top-color: rgba(15,23,42,.10);
    background: rgba(255,255,255,.60);
}
