.cee-calendario-wrapper {
  background: #070b0b !important;
  color: #fff !important;
  font-family: ivypresto-display, "Classy Serif", serif !important;
  padding: 20px !important;
  border-radius: 4px !important;
  border: 1px solid rgba(229, 0, 25, 0.2) !important;
}

.cee-calendario-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 20px !important;
  border-bottom: 1px solid rgba(229, 0, 25, 0.2) !important;
  padding-bottom: 15px !important;
  flex-wrap: wrap !important;
  gap: 15px !important;
}

.cee-vistas {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

.cee-vistas button,
.cee-navegacion button {
  background: transparent !important;
  border: 1px solid #e50019 !important;
  color: #fff !important;
  font-family: ivypresto-display, "Classy Serif", serif !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  padding: 4px 10px !important;
  border-radius: 4px !important;
  transition: all 0.2s ease !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.cee-vistas button:hover,
.cee-vistas button.active {
  background: #e50019 !important;
  color: #fff !important;
}

.cee-navegacion button {
  padding: 4px 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.cee-navegacion button:hover {
  background: #e50019 !important;
}

.cee-navegacion {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.cee-fecha {
  font-size: 18px !important;
  font-weight: 500 !important;
  text-transform: capitalize !important;
  color: #fff !important;
  min-width: 120px !important;
  text-align: center !important;
  font-family: ivypresto-display, "Classy Serif", serif !important;
}

.cee-prev,
.cee-next {
  font-size: 14px !important;
}

/* LISTA MODERNA ESTILO WEB */
.cee-lista-eventos .evento {
  display: grid !important;
  grid-template-columns: 150px 1fr !important;
  padding: 20px !important;
  background: #f5f5f5 !important;
  border: 1px solid rgba(229, 0, 25, 0.1) !important;
  border-radius: 8px !important;
  margin-bottom: 15px !important;
  gap: 15px !important;
  transition: transform 0.3s ease, border-color 0.3s ease !important;
}

.cee-lista-eventos .evento:hover {
  border-color: #e50019 !important;
}

.evento-fecha {
  font-weight: bold;
  font-size: 14px;
  color: #e50019;
  margin-bottom: 5px;
}

.evento-hora {
  font-size: 12px !important;
  color: #333 !important;
}

.evento-info h3 {
  margin: 0 0 8px 0 !important;
  font-size: 16px !important;
  color: #000 !important;
  text-transform: uppercase !important;
}

.evento-info p {
  color: #444 !important;
  line-height: 1.5 !important;
  font-size: 13px !important;
}

/* VISTA DÍA MEJORADA */
.cee-dia-header {
  text-align: center !important;
  margin-bottom: 20px !important;
  border-bottom: 1px solid rgba(229, 0, 25, 0.2) !important;
  padding: 10px 0 !important;
}

.cee-dia-header h3 {
  font-size: 18px !important;
  color: #fff !important;
  font-family: ivypresto-display, "Classy Serif", serif !important;
  text-transform: uppercase !important;
}

.cee-dia-evento-card {
  display: flex !important;
  background: #f5f5f5 !important;
  border: 1px solid rgba(229, 0, 25, 0.1) !important;
  border-radius: 4px !important;
  overflow: hidden !important;
  transition: border-color 0.3s ease !important;
  margin-bottom: 10px !important;
}

.cee-dia-evento-card:hover {
  border-color: #e50019 !important;
}

.cee-evento-time {
  background: rgba(229, 0, 25, 0.05) !important;
  padding: 10px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 80px !important;
  border-right: 1px solid rgba(229, 0, 25, 0.2) !important;
}

.cee-time-badge {
  font-weight: bold !important;
  color: #e50019 !important;
  font-size: 14px !important;
}

.cee-time-end {
  color: #333 !important;
  font-size: 11px !important;
}

.cee-evento-detalle {
  padding: 15px !important;
  flex-grow: 1 !important;
}

.cee-evento-detalle h4 {
  margin: 0 0 5px 0 !important;
  font-size: 16px !important;
  color: #000 !important;
  font-family: ivypresto-display, "Classy Serif", serif !important;
}

.cee-evento-detalle p {
  margin: 5px 0 0 !important;
  color: #444 !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
}

.cee-evento-action {
  padding: 10px !important;
  display: flex !important;
  align-items: center !important;
  color: #e50019 !important;
  font-weight: bold !important;
  font-size: 11px !important;
}

.cee-no-eventos {
  text-align: center;
  padding: 40px;
  color: #aaa;
  font-style: italic;
  font-size: 14px;
}

/* RESPONSIVE & SCROLL */
.cee-calendario-wrapper * {
  box-sizing: border-box;
}

.cee-scroll-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 10px; /* Espacio para la barra de scroll */
}

/* Ocultar barra de scroll pero permitir scroll (opcional) */
.cee-scroll-wrapper::-webkit-scrollbar {
  height: 4px;
}
.cee-scroll-wrapper::-webkit-scrollbar-track {
  background: #111;
}
.cee-scroll-wrapper::-webkit-scrollbar-thumb {
  background: #e50019;
  border-radius: 4px;
}

@media (max-width: 1024px) {
  .cee-mes-grid {
    min-width: 800px;
  }
  .cee-week {
    min-width: 800px;
  }
}

@media (max-width: 768px) {
  /* Lista a 1 columna - ESTILO TICKET */
  .cee-lista-eventos .evento {
    grid-template-columns: 1fr;
    padding: 20px;
    border-bottom: 2px dashed rgba(229, 0, 25, 0.2);
    gap: 15px;
  }

  .evento-meta {
    background: rgba(229, 0, 25, 0.05);
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 4px;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(229, 0, 25, 0.2);
  }

  .evento-fecha {
    font-size: 13px;
    margin-bottom: 0;
  }

  .evento-hora {
    font-size: 11px;
    border-left: 1px solid rgba(229, 0, 25, 0.2);
    padding-left: 8px;
  }

  .evento-info h3 {
    font-size: 18px;
    margin-top: 8px;
  }

  /* Día responsive - TARJETAS MODERNAS */
  .cee-dia-evento-card {
    flex-direction: column;
    border-radius: 8px;
    border-left: 4px solid #e50019;
  }

  .cee-evento-time {
    flex-direction: row;
    min-width: 0;
    padding: 10px 15px;
    justify-content: flex-start;
    gap: 10px;
    border-right: none;
    border-bottom: 1px solid rgba(229, 0, 25, 0.2);
    background: #111;
  }

  .cee-time-badge {
    font-size: 16px;
  }

  .cee-evento-detalle {
    padding: 20px;
  }

  .cee-evento-detalle h4 {
    font-size: 20px;
  }

  .cee-evento-action {
    padding: 10px 20px 20px;
    background: transparent;
  }
  .cee-calendario-wrapper {
    padding: 15px;
  }

  .cee-calendario-header {
    flex-direction: column;
    gap: 15px;
  }

  .cee-navegacion {
    order: -1;
    width: 100%;
    justify-content: space-between;
  }

  .cee-mes-grid,
  .cee-week {
    min-width: 750px; /* Forzar scroll horizontal */
    gap: 2px;
  }

  .cee-dia {
    min-height: 100px;
    padding: 5px;
  }

  .cee-dia-num {
    font-size: 14px; 
    font-weight: bold;
    color: #000 !important;
    margin-bottom: 2px;
  }

  .cee-evento-mini {
    display: block !important;
    font-size: 9px !important;
    padding: 2px 4px !important;
    background: rgba(229, 0, 25, 0.1) !important;
    border-left: 2px solid #e50019 !important;
    color: #000 !important;
    border-radius: 2px !important;
  }

  .cee-dia-head {
    font-size: 12px;
    padding: 10px 0;
  }

  .cee-dia-head .full {
    display: none;
  }
  .cee-dia-head .short {
    display: inline;
  }

  /* Los eventos de semana también se ven forzados por el min-width */
  .cee-week-day h4 {
    font-size: 13px;
    padding-bottom: 5px;
  }
}

@media (max-width: 480px) {
  .cee-mes-grid,
  .cee-week {
    min-width: 650px;
  }

  .cee-fecha {
    font-size: 18px;
  }
}
/* MES */
.cee-mes-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

.cee-dia-head {
  text-align: center;
  font-weight: bold;
  font-size: 12px;
  padding: 8px 0;
  color: #e50019;
  border-bottom: 1px solid rgba(229, 0, 25, 0.2);
}

.cee-dia {
  border: 1px solid rgba(229, 0, 25, 0.15);
  padding: 8px;
  min-height: 100px;
  background: #f5f5f5 !important;
  transition: all 0.3s ease;
}

.cee-dia.empty {
  background: #070b0b !important;
  opacity: 0.2;
}

.cee-dia:hover {
  background: rgba(229, 0, 25, 0.05);
}

.cee-dia-num {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #000 !important;
}

.cee-evento-mini {
  font-size: 10px !important;
  margin-top: 4px !important;
  border-left: 2px solid #e50019 !important;
  padding: 3px 6px !important;
  background: rgba(229, 0, 25, 0.1) !important;
  color: #000 !important;
  cursor: pointer !important;
}

.cee-evento-mini:hover {
  background: rgba(229, 0, 25, 0.3);
}

.fade-in {
  animation: fadeIn 0.4s ease forwards;
}

.fade-out {
  opacity: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hover elegante */
.cee-evento-mini,
.evento {
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.cee-evento-mini:hover,
.evento:hover {
  transform: translateX(4px);
}

.cee-week {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  gap: 10px !important;
}

.cee-week-day {
  border: 1px solid rgba(229, 0, 25, 0.1) !important;
  padding: 10px !important;
  background: #f5f5f5 !important;
  min-height: 120px !important;
  border-radius: 4px !important;
}

.cee-week-day h4 {
  font-size: 12px !important;
  margin-bottom: 10px !important;
  color: #e50019 !important;
  border-bottom: 1px solid rgba(229, 0, 25, 0.2) !important;
  padding-bottom: 5px !important;
  text-transform: uppercase !important;
  font-family: ivypresto-display, "Classy Serif", serif !important;
}

.cee-week-day .evento {
  font-size: 11px !important;
  color: #000 !important;
  background: rgba(229, 0, 25, 0.05) !important;
  padding: 5px !important;
  border-left: 2px solid #e50019 !important;
  margin-bottom: 5px !important;
  cursor: pointer !important;
}

.cee-week-day .evento strong {
  color: #000 !important;
  display: block !important;
  margin-bottom: 2px !important;
}

.cee-week-day .evento small {
  color: #333 !important;
}

/* POPUP MEJORADO Y CENTRADO */
.cee-popup {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(0, 0, 0, 0.8) !important;
  backdrop-filter: blur(4px) !important;
  display: none; /* Se activa vía JS */
  align-items: center !important;
  justify-content: center !important;
  z-index: 10000 !important;
  padding: 20px !important;
}

.cee-popup-content {
  background: #f5f5f5 !important;
  color: #000 !important;
  padding: 30px !important;
  max-width: 500px !important;
  width: 100% !important;
  position: relative !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8) !important;
  border: 1px solid #e50019 !important;
  border-radius: 4px !important;
  animation: popupIn 0.3s ease-out !important;
  font-family: ivypresto-display, "Classy Serif", serif !important;
}

.cee-popup-close {
  position: absolute !important;
  top: 10px !important;
  right: 15px !important;
  cursor: pointer !important;
  font-size: 24px !important;
  color: #000 !important;
  line-height: 1 !important;
}

.cee-popup-close:hover {
  color: #e50019 !important;
}

.cee-popup-evento h3 {
  font-size: 22px !important;
  margin-bottom: 15px !important;
  color: #000 !important;
  border-bottom: 1px solid #e50019 !important;
  padding-bottom: 8px !important;
}

.cee-tipo-tag {
  background: rgba(229, 0, 25, 0.1) !important;
  color: #e50019 !important;
  font-size: 10px !important;
  font-weight: bold !important;
  padding: 2px 8px !important;
  border-radius: 4px !important;
  border: 1px solid #e50019 !important;
}

.cee-lugar-info {
  font-size: 12px !important;
  color: #333 !important;
  margin-bottom: 10px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.cee-popup-desc {
  font-size: 14px !important;
  line-height: 1.5 !important;
  color: #444 !important;
  margin: 15px 0 !important;
}

.cee-popup-meta {
  background: #eee !important;
  padding: 15px !important;
  border-radius: 4px !important;
  font-size: 13px !important;
  border: 1px solid rgba(229, 0, 25, 0.15) !important;
}

.cee-popup-meta p {
  margin-bottom: 5px !important;
  color: #000 !important;
}

.cee-popup-evento strong {
  color: #e50019 !important;
}

@keyframes popupIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* SHORTCODE PRÓXIMOS EVENTOS - RECEPTOR DE ESTILOS DE LISTA */
.cee-titulo-proximos {
  font-size: 24px !important;
  margin-bottom: 15px !important;
  color: #fff !important;
  font-family: ivypresto-display, "Classy Serif", serif !important;
  border-bottom: 2px solid #e50019 !important;
  padding-bottom: 5px !important;
  display: inline-block !important;
}

.cee-proximos-wrapper .cee-lista-eventos .evento:hover {
  background: #f0f0f0 !important;
  border-color: #e50019 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}
