@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;600&display=swap');

/* =========================
   Global
========================= */
body {
  margin: 0;
  font-family: 'Quicksand', sans-serif;
  background: linear-gradient(135deg, #e4f0fc, #f8fbff);
  color: #34495e;
  scroll-behavior: smooth;
  line-height: 1.6;
}

/* =========================
   Header
========================= */
.header {
  text-align: center;
  padding: 3rem 1rem 2rem;
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeInDown 0.6s ease-out;
  position: relative;
}

.header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 5px;
  width: 80px;
  background: #fff;
  border-radius: 2px;
  opacity: 0.25;
}

.header h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.8px;
  background: linear-gradient(180deg, #4096ea 10%, #3a5fe6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.header p {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.9px;
  background: #021352;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

/* =========================
   Event Grid
========================= */
.event-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  padding: 3rem 2rem;
  max-width: 1400px;
  margin: auto;
  animation: fadeInUp 0.8s ease;
}

/* =========================
   Event Card (Glassmorphism)
========================= */
.event-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.5s ease-in;
}

.event-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.event-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* =========================
   Card Content
========================= */
.event-content {
  padding: 1.8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.event-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: #3a5fe6;
  margin-bottom: 0.4rem;
}

.event-date {
  font-size: 0.95rem;
  color: #7f8c8d;
  margin-bottom: 1rem;
}

.event-description {
  font-size: 1.02rem;
  color: #5a5c69;
  flex-grow: 1;
  margin-bottom: 1rem;
}

/* =========================
   Fancy Button
========================= */
.view-btn {
  padding: 0.75rem 1.6rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  background: linear-gradient(135deg, #4096ea, #3a5fe6);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 16px rgba(64, 150, 234, 0.3);
  align-self: flex-start;
  position: relative;
  overflow: hidden;
}

.view-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(64, 150, 234, 0.45);
  background: linear-gradient(135deg, #3a5fe6, #4096ea);
}

/* =========================
   Skeleton Placeholder
========================= */
.skeleton {
  background: #e0e0e0;
  border-radius: 16px;
  height: 260px;
  animation: pulse 1.2s infinite ease-in-out;
}

@keyframes pulse {
  0% {
    background-color: #f0f0f0;
  }

  50% {
    background-color: #dedede;
  }

  100% {
    background-color: #f0f0f0;
  }
}

/* =========================
   Loading / Error
========================= */
.loading,
.error {
  text-align: center;
  padding: 2rem;
  font-weight: 600;
  font-size: 1rem;
}

.error {
  color: #e74a3b;
}

/* =========================
   Animations
========================= */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   Responsive
========================= */
@media (max-width: 768px) {
  .event-container {
    padding: 2rem 1rem;
  }

  .header h1 {
    font-size: 2rem;
  }

  .view-btn {
    font-size: 0.95rem;
    padding: 0.65rem 1.4rem;
  }
}

/* Estilo para el botón "Ver Mis Tickets" */
#verMisTicketsBtn {
  top: 80px; /* Distancia del borde superior para que no esté pegado al top */
  right: 80px; /* Asegura que el botón se quede en la esquina derecha */
  z-index: 1050; /* Asegura que el botón esté encima de las notificaciones y usuario */
  display: inline-flex; /* Usa flexbox para alinear el ícono y el texto */
  align-items: center; /* Centra el ícono y el texto verticalmente */
  padding: 12px 20px; /* Ajustamos el padding para que el botón sea más grande */
  background-color: #007bff; /* Color de fondo del botón */
  color: white; /* Color de texto */
  border: none;
  border-radius: 8px; /* Bordes redondeados */
  font-size: 16px; /* Tamaño de fuente */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Sombra sutil */
  cursor: pointer; /* Cambia el cursor al pasar por encima */
  transition: all 0.3s ease-in-out; /* Transición suave al pasar el ratón */
}

#verMisTicketsBtn i {
  margin-right: 8px; /* Agrega un margen entre el ícono y el texto */
  font-size: 18px; /* Tamaño del ícono */
}

#verMisTicketsBtn:hover {
  background-color: #0056b3; /* Color más oscuro en hover */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Sombra más pronunciada al pasar el ratón */
}

#verMisTicketsBtn:active {
  transform: translateY(2px); /* Efecto de "presionar" al hacer clic */
}

/* Asegura que la barra superior no tape el botón */
.navbar-nav {
  z-index: 1000; /* Para que el menú de usuario y las notificaciones no tapen el botón */
}

.mt-noti {
  margin-top: 22px; /* Podés probar con 5px, 10px, 15px, etc. */
}

