/* ✅ Base / mejoras generales */
* {
  scroll-behavior: smooth;
}

.hover\:scale-105 {
  will-change: transform;
}

img {
  image-rendering: -webkit-optimize-contrast;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ✅ Ticket background */
.ticket-bg {
  background-image: radial-gradient(circle at 100% 0, rgba(255, 255, 255, 0.05) 5%, transparent 5%),
    radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.05) 5%, transparent 5%);
  background-position: top left, top right;
  background-repeat: no-repeat;
  background-size: 1rem 2rem;
}

.ticket-bg:before {
  content: "";
  position: absolute;
  top: 0;
  left: 1rem;
  right: 1rem;
  height: 1px;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.1) 50%, transparent 50%);
  background-size: 8px 1px;
}

/* ✅ Imagen expandible */
.image-container {
  position: relative;
  overflow: hidden;
}

.expand-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border-radius: 50%;
  padding: 0.5rem;
  opacity: 0;
  transition: all 0.3s ease;
  cursor: pointer;
}

.image-container:hover .expand-button {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

#imageModal {
  transition: opacity 0.3s ease;
}

/* ✅ Modal ticket activo */
#ticketModal.is-active {
  display: flex !important;
  opacity: 1;
  z-index: 1000;
}

/* ✅ Carousel */
#carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  flex: 0 0 calc(100% / 5);
  box-sizing: border-box;
  padding: 0 0.5rem;
}

.carousel-slide img {
  width: 100%;
  height: 30rem;
  object-fit: contain;
  object-position: center;
}

#carousel-container {
  position: relative;
  overflow: hidden;
}

#carousel-prev,
#carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
}

#carousel-prev {
  left: 10px;
}

#carousel-next {
  right: 10px;
}

/* ✅ Responsive Carousel */
@media (max-width: 1200px) {
  .carousel-slide {
    flex: 0 0 calc(100% / 4);
  }
}

@media (max-width: 768px) {
  .carousel-slide {
    flex: 0 0 calc(100% / 3);
  }
}

@media (max-width: 480px) {
  .carousel-slide {
    flex: 0 0 100%;
  }
}

/* ✅ Who I Am */
#who-iam-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  #who-iam-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  #who-iam-content {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* ✅ Badge Glow "Hoy" */
@keyframes glowPulseBadge {
  0% {
    box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.5), 0 0 18px 6px rgba(250, 204, 21, 0.35);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(250, 204, 21, 0), 0 0 26px 12px rgba(250, 204, 21, 0.55);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.5), 0 0 18px 6px rgba(250, 204, 21, 0.35);
  }
}

.badge-glow {
  position: relative;
  isolation: isolate;
}

.badge-glow::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 9999px;
  z-index: -1;
  animation: glowPulseBadge 1.8s ease-in-out infinite;
}

/* ✅ Glow verde "Próximo evento" */
.badge-glow-green {
  box-shadow: 0 0 12px 4px rgba(34, 197, 94, 0.45);
}

/* ✅ Accesibilidad */
@media (prefers-reduced-motion: reduce) {
  .badge-glow::after {
    animation: none;
  }
}

/* ✅ Scroll modal */
#ticketModalPanel {
  max-height: 80vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 10px;
}

#ticketModalPanel::-webkit-scrollbar {
  width: 6px;
}

#ticketModalPanel::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 10px;
}

#ticketModalPanel::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

/* ✅ Fondo global correcto según tema */
html,
body {
  background: #f5f6fb;
}

html.dark,
html.dark body {
  background: #000;
}

/* ✅ Pattern NO se elimina, solo se controla con opacidad en Tailwind */


/* ✅ HERO estilo Vastion */
.vastion-hero {
  width: 100%;
  height: 160px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.vastion-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vastion-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.55) 50%,
    rgba(0, 0, 0, 0.2) 100%
  );
}

.vastion-hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.vastion-hero-title {
  font-size: 28px;
  font-weight: 800;
  color: white;
  margin: 0;
}

.vastion-hero-subtitle {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 4px;
}

/* ✅ Barra inferior estilo Vastion */
.vastion-bar {
  width: 100%;
  background: rgba(0, 0, 0, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
}

.vastion-bar .container {
  display: flex;
  gap: 18px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* ✅ Sticky box para compras */
.sticky-box {
  position: sticky;
  top: 92px;
}

/* ✅ Skeleton shimmer premium */
.skeleton {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 1rem;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.15) 50%, transparent 100%);
  animation: skeletonShimmer 1.2s infinite;
}

@keyframes skeletonShimmer {
  100% {
    transform: translateX(100%);
  }
}

/* ✅ HERO estilo Vastion (banner recortado) */
.vastion-hero {
  width: 100%;
  height: 220px; /* ✅ aquí controlas el tamaño */
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid rgba(255,255,255,0.10);
  background: #000;
}

/* ✅ La imagen siempre se recorta como banner */
.vastion-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;        /* ✅ recorta */
  object-position: center;  /* ✅ centra */
  filter: saturate(1.1) contrast(1.05);
  transform: scale(1.02);
}

/* ✅ Overlay oscuro tipo Vastion */
.vastion-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.88) 0%,
    rgba(0,0,0,0.55) 55%,
    rgba(0,0,0,0.15) 100%
  );
}

/* ✅ Texto encima */
.vastion-hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ✅ Título del evento */
.vastion-hero-title {
  font-size: clamp(18px, 2vw, 30px);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

/* ✅ Light mode improvements */
html:not(.dark) .detail-card,
html:not(.dark) .ticket-card,
html:not(.dark) .card,
html:not(.dark) .modal-card {
  background: rgba(255,255,255,0.8) !important;
  border: 1px solid rgba(0,0,0,0.08) !important;
  color: #0b0b0f !important;
}

html:not(.dark) .text-white\/70,
html:not(.dark) .text-white\/80,
html:not(.dark) .text-white\/60 {
  color: rgba(0,0,0,0.65) !important;
}

/* ✅ Light mode shadow for cards */
html:not(.dark) .event-card { 
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.08);
}

html, body {
  transition: background-color .25s ease, color .25s ease;
}