/* ============ MINTSTORE · catálogo (tema oscuro de entretenimiento) ============ */
.theme-dark {
  --bg: #06080f;
  --bg-2: #0b1020;
  --panel: #111827;
  --text: #f4f6fb;
  --text-muted: #a2acc2;
  --hairline: rgba(255, 255, 255, 0.09);
  color: var(--text);
  background: var(--bg);
}
.theme-dark a { color: inherit; }

/* ---------- Botones sobre fondo oscuro ---------- */
.btn--outline-light { --btn-bg: transparent; --btn-fg: #fff; --btn-border: rgba(255, 255, 255, 0.35); }
.btn--outline-light:hover { --btn-border: #fff; --btn-bg: rgba(255, 255, 255, 0.06); }
.theme-dark .btn { border-radius: 6px; }

/* ---------- Buscador (base) ---------- */
.search { position: relative; display: flex; align-items: center; min-width: 0; }
.search__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #0a1530;
  font: 500 1rem var(--font-body);
  outline: none;
}
.search__input::placeholder { color: #6b7590; }
.search__input::-webkit-search-cancel-button { cursor: pointer; }
.search--inline { padding-left: 16px; border-radius: 6px; background: #fff; }
.search--inline .search__input { height: 48px; }
.search--inline .search__submit { height: 48px; }

/* Sugerencias */
.suggest {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  z-index: 70;
  max-height: min(70vh, 540px);
  overflow-y: auto;
  padding: 6px;
  border-radius: 8px;
  background: #fff;
  color: #0a1530;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.75);
  text-align: left;
}
.suggest__item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 6px; color: #0a1530; text-decoration: none; }
.suggest__item:hover, .suggest__item[aria-selected="true"] { background: #eef3ff; }
.suggest__thumb { position: relative; flex: none; width: 64px; height: 44px; overflow: hidden; border-radius: 4px; background: #1a2238; }
.suggest__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.suggest__text { display: grid; min-width: 0; }
.suggest__text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.95rem; }
.suggest__text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #59647d; font-size: 0.82rem; }
.suggest__all, .suggest__empty {
  display: block;
  margin-top: 4px;
  padding: 12px 10px;
  border-top: 1px solid #e6ebf5;
  color: var(--blue-500);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}
.suggest__empty { margin: 0; border: 0; color: #59647d; font-weight: 500; }

/* ---------- HERO ---------- */
.hero { position: relative; color: #fff; background: #000; }
.hero__slides { position: relative; height: clamp(560px, 82svh, 720px); overflow: hidden; }
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0s 0.9s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; transition: opacity 0.9s ease; }
.hero__slide picture, .hero__img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__img { object-fit: cover; object-position: center 35%; transform: scale(1.04); transition: transform 9s ease-out; }
.hero__slide.is-active .hero__img { transform: scale(1); }
/* Overlay suave: solo abajo y a la izquierda, donde va el texto */
.hero__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(4, 6, 12, 0.92) 0%, rgba(4, 6, 12, 0.45) 32%, rgba(4, 6, 12, 0) 62%),
    linear-gradient(90deg, rgba(4, 6, 12, 0.5) 0%, rgba(4, 6, 12, 0) 55%);
}
.hero__content {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  display: grid;
  gap: 12px;
  padding-bottom: 72px;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-300);
  font: 800 0.8rem/1 var(--font-body);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.hero__eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--accent-400); }
.hero__title {
  max-width: 15ch;
  font: 800 clamp(2.9rem, 9.5vw, 6.2rem)/0.88 var(--font-display);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
}
.hero__meta { display: flex; flex-wrap: wrap; gap: 6px 22px; color: rgba(255, 255, 255, 0.9); font-weight: 600; font-size: 1.05rem; }
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta .icon { width: 20px; height: 20px; color: var(--accent-300); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 10px; }
.hero__price { color: rgba(255, 255, 255, 0.82); font-weight: 600; }
.hero__price strong { color: #fff; font: 800 1.6rem/1 var(--font-display); }
.hero__credit { position: absolute; right: var(--gutter); bottom: 14px; z-index: 1; color: rgba(255, 255, 255, 0.5); font-size: 0.68rem; }
.hero__nav { position: absolute; left: 0; right: 0; bottom: 28px; z-index: 2; }
.hero__dots { display: flex; gap: 8px; }
.hero__dot {
  position: relative;
  width: 44px;
  height: 4px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
}
.hero__dot::before { content: ""; position: absolute; inset: -10px 0; }
.hero__dot[aria-current="true"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform-origin: left;
  animation: hero-progress var(--hero-duration, 7s) linear forwards;
}
.hero[data-paused] .hero__dot[aria-current="true"]::after { animation-play-state: paused; }
@keyframes hero-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (min-width: 900px) {
  .hero__slides { height: clamp(540px, 74vh, 650px); }
  .hero__content { padding-bottom: 84px; }
}

/* ---------- Carriles ---------- */
.rail { padding-top: 56px; }
.rail__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.rail__eyebrow { color: var(--accent-300); font: 800 0.75rem/1 var(--font-body); letter-spacing: 0.2em; text-transform: uppercase; }
.rail__title {
  margin-top: 8px;
  color: inherit;
  font: 800 clamp(2rem, 5vw, 3rem)/0.95 var(--font-display);
  text-transform: uppercase;
}
.rail__tools { display: flex; align-items: center; gap: 8px; flex: none; }
.rail__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  white-space: nowrap;
}
.rail__more .icon { width: 18px; height: 18px; color: var(--accent-400); transition: transform 0.2s; }
.rail__more:hover .icon { transform: translateX(3px); }
.rail__arrow {
  display: none;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.rail__arrow:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.3); }
.rail__arrow:disabled { opacity: 0.3; cursor: default; }
.rail__arrow .icon { width: 18px; height: 18px; }
.rail__viewport { position: relative; }
.rail__track {
  --cols: 1.25;
  --gap: 14px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * var(--gutter) - (var(--cols) - 1) * var(--gap)) / var(--cols));
  gap: var(--gap);
  overflow-x: auto;
  padding: 2px var(--gutter) 8px;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
}
.rail__track::-webkit-scrollbar { display: none; }
.rail__track > li { scroll-snap-align: start; min-width: 0; }
@media (min-width: 640px) { .rail__track { --cols: 2.3; --gap: 18px; } }
@media (min-width: 900px) {
  .rail__track { --cols: 3; }
  .rail__arrow { display: grid; }
}
@media (min-width: 1200px) { .rail__track { --cols: 4; --gap: 22px; } }
.rail--posters .rail__track { --cols: 1.4; }
@media (min-width: 640px) { .rail--posters .rail__track { --cols: 2.4; } }
@media (min-width: 900px) { .rail--posters .rail__track { --cols: 3.2; } }
@media (min-width: 1200px) { .rail--posters .rail__track { --cols: 4; } }

/* ---------- Tarjeta de evento ---------- */
.ev-card { position: relative; display: flex; flex-direction: column; gap: 14px; height: 100%; }
.ev-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: #151c2e;
}
.ev-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
@media (hover: hover) {
  .ev-card:hover .ev-card__media img { transform: scale(1.035); }
}
.ev-card__date {
  position: absolute;
  left: 10px; top: 10px;
  padding: 6px 9px;
  border-radius: 4px;
  background: rgba(6, 8, 15, 0.82);
  color: #fff;
  font: 800 0.72rem/1 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ev-card__body { display: flex; flex-direction: column; gap: 5px; flex: 1; }
.ev-card__cat { color: var(--accent-300); font: 800 0.7rem/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; }
.ev-card__title { font: 700 1.5rem/1.02 var(--font-display); text-transform: uppercase; letter-spacing: 0.005em; }
.ev-card__title a { text-decoration: none; }
.ev-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ev-card__title a:focus-visible { outline: none; }
.ev-card:focus-within .ev-card__media { outline: 3px solid var(--blue-400); outline-offset: 2px; }
.ev-card__meta { color: var(--text-muted, #a2acc2); font-size: 0.9rem; line-height: 1.35; }
.ev-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; }
.ev-card__price { color: var(--text-muted, #a2acc2); font-size: 0.85rem; }
.ev-card__price strong { display: block; color: #fff; font: 800 1.25rem/1.1 var(--font-display); letter-spacing: 0.01em; }
.ev-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 6px;
  background: var(--blue-500);
  color: #fff;
  font: 800 0.75rem/1 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.2s;
}
.ev-card:hover .ev-card__cta { background: var(--blue-700); }
.ev-card__cta .icon { width: 15px; height: 15px; }
.ev-card[data-state="SOLD_OUT"] .ev-card__cta, .ev-card[data-state="CLOSED"] .ev-card__cta, .ev-card[data-state="PAUSED"] .ev-card__cta { background: #2a3248; }
.ev-card[data-state="SOLD_OUT"] .ev-card__media img { filter: grayscale(0.6) brightness(0.8); }

/* Etiquetas de estado */
.ev-tag {
  position: absolute;
  right: 10px; top: 10px;
  padding: 6px 9px;
  border-radius: 4px;
  background: var(--blue-500);
  color: #fff;
  font: 800 0.68rem/1 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ev-tag--hot { background: #ff4d2e; }
.ev-tag[data-state="SOLD_OUT"], .ev-tag[data-state="CLOSED"] { background: #3a4257; }
.ev-tag[data-state="PAUSED"] { background: #9a6b00; }
.ev-tag--static { position: static; display: inline-block; }

/* Póster (Recitales): imagen vertical con el texto encima */
.ev-poster { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 8px; background: #151c2e; color: #fff; isolation: isolate; }
.ev-poster img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.ev-poster::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(4, 6, 12, 0.95) 0%, rgba(4, 6, 12, 0.55) 38%, rgba(4, 6, 12, 0) 65%); }
@media (hover: hover) { .ev-poster:hover img { transform: scale(1.04); } }
.ev-poster:focus-within { outline: 3px solid var(--blue-400); outline-offset: 2px; }
.ev-poster__body { position: absolute; inset: auto 0 0; display: grid; gap: 6px; padding: 20px 18px; }
.ev-poster__title { font: 800 clamp(1.9rem, 3vw, 2.3rem)/0.92 var(--font-display); text-transform: uppercase; text-wrap: balance; }
.ev-poster__title a { text-decoration: none; }
.ev-poster__title a::after { content: ""; position: absolute; inset: 0; }
.ev-poster__meta { color: rgba(255, 255, 255, 0.85); font-size: 0.9rem; font-weight: 600; }
.ev-poster .ev-card__foot { padding-top: 8px; }
.ev-poster .ev-card__price { color: rgba(255, 255, 255, 0.75); }

/* Más vendidos: número de ranking */
.rail--ranked .rail__track > li { counter-increment: rank; }
.rail--ranked .rail__track { counter-reset: rank; }
.rail--ranked .ev-card__media::before {
  content: counter(rank);
  position: absolute;
  left: 8px; bottom: -14px;
  z-index: 1;
  color: transparent;
  font: 800 6.5rem/1 var(--font-display);
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.9);
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

/* ---------- Explorar: accesos por categoría ---------- */
.explore { padding-top: 64px; }
.cat-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 900px) { .cat-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.cat-tile {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  aspect-ratio: 16 / 10;
  padding: 16px;
  overflow: hidden;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  isolation: isolate;
}
.cat-tile__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.cat-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(4, 6, 12, 0.85), rgba(4, 6, 12, 0.05) 60%); }
@media (hover: hover) { .cat-tile:hover .cat-tile__img { transform: scale(1.05); } }
.cat-tile__label { min-width: 0; font: 800 clamp(1.25rem, 4.6vw, 2.4rem)/0.9 var(--font-display); text-transform: uppercase; overflow-wrap: anywhere; }
@media (max-width: 559px) { .cat-tile { flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 4px; padding: 12px; } }
.cat-tile__count { color: rgba(255, 255, 255, 0.8); font-weight: 700; font-size: 0.85rem; }
.cat-tile__count:empty { display: none; }
.explore__empty { margin-top: 16px; color: var(--text-muted); }

/* ---------- Cómo comprar (franja) ---------- */
.how-strip { margin-top: 72px; padding-block: 56px; background: var(--bg-2); border-block: 1px solid var(--hairline); }
.theme-dark .how-steps { margin-top: 8px; }
.theme-dark .how-step { background: transparent; border: 0; border-top: 2px solid var(--hairline); border-radius: 0; padding: 18px 0 0; box-shadow: none; }
.theme-dark .how-step h3 { color: #fff; }
.theme-dark .how-step p { color: var(--text-muted); }
.theme-dark .how-step__n { position: static; display: block; width: auto; height: auto; margin-bottom: 6px; background: transparent !important; color: var(--accent-300); font: 800 2.2rem/1 var(--font-display); text-align: left; place-items: initial; }
@media (min-width: 900px) { .theme-dark .how-steps { grid-template-columns: repeat(5, 1fr); gap: 24px; } .theme-dark .how-step:last-child { grid-column: auto; } }

/* ---------- Listado /eventos ---------- */
.page-banner { position: relative; display: flex; align-items: flex-end; min-height: 300px; overflow: hidden; isolation: isolate; color: #fff; }
.page-banner--short { min-height: 240px; }
.page-banner__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.page-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--bg, #06080f) 0%, rgba(6, 8, 15, 0.55) 55%, rgba(6, 8, 15, 0.25) 100%); }
.page-banner__inner { padding-block: 40px 28px; }
.page-banner__title { margin-top: 10px; font: 800 clamp(2.6rem, 8vw, 4.6rem)/0.9 var(--font-display); text-transform: uppercase; }
.page-banner__count { margin-top: 8px; color: rgba(255, 255, 255, 0.8); font-weight: 600; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: rgba(255, 255, 255, 0.72); font-size: 0.85rem; font-weight: 600; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }

.filters { display: grid; gap: 12px; margin-top: 8px; }
.filters__selects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.select { display: grid; gap: 6px; min-width: 0; }
.select span { color: var(--text-muted); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.select select {
  width: 100%;
  min-height: 46px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  background: #121a2c url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23a2acc2' stroke-width='2.2' stroke-linecap='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 10px center / 16px no-repeat;
  color: #fff;
  font: 600 0.92rem var(--font-body);
  appearance: none;
  cursor: pointer;
}
.select select:focus { outline: none; border-color: var(--blue-400); box-shadow: 0 0 0 3px rgba(77, 141, 255, 0.35); }
@media (max-width: 559px) { .filters__selects { grid-template-columns: 1fr 1fr; } .filters__selects .select:last-child { grid-column: 1 / -1; } }
@media (min-width: 900px) {
  .filters { grid-template-columns: minmax(0, 1.4fr) minmax(0, 2fr); align-items: end; gap: 16px; }
}
.filter-bar { margin-block: 18px 26px; }
.filter-bar ul { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.filter-bar ul::-webkit-scrollbar { display: none; }
.filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s;
}
.filter-chip:hover { border-color: rgba(255, 255, 255, 0.35); }
.filter-chip[aria-current="page"] { border-color: #fff; background: #fff; color: #06080f; }
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 36px 22px; }
.ev-grid[aria-busy="true"]:empty { min-height: 320px; }
.listing { padding-bottom: 72px; }
.listing__more { display: flex; justify-content: center; margin-top: 44px; }
.skeleton { border-radius: 8px; background: linear-gradient(90deg, #121a2c 25%, #1a2338 50%, #121a2c 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.empty-state { display: grid; justify-items: center; gap: 10px; padding: 56px 24px; border: 1px dashed var(--hairline, #c7d3ea); border-radius: 8px; text-align: center; }
.empty-state h1, .empty-state h2 { font: 800 1.9rem/1 var(--font-display); text-transform: uppercase; }
.empty-state p { max-width: 46ch; color: var(--text-muted, #4a5875); }
.empty-state .btn { margin-top: 8px; }
.event-missing { padding-block: 80px; }

/* Modo prueba del administrador */
.preview-bar { position: relative; z-index: 60; padding: 10px var(--gutter); background: #fff4d6; color: #5e4500; font-weight: 700; font-size: 0.85rem; text-align: center; }

/* Ticket del checkout y del pedido: nombre del evento */
.co-ticket__event, .co-match__event { font: 800 1.5rem/1.05 var(--font-display); text-transform: uppercase; letter-spacing: 0.01em; }
.co-ticket--compact .co-ticket__event { font-size: 1.2rem; }
