/* Variables CSS personalizadas */
:root {
  --white-white-100: #FFF;
  --white-white-60: rgba(255, 255, 255, 0.60);
  --white-white-10: rgba(255, 255, 255, 0.10);
  --Primary-Base-500: #00DCCD;
  --Neutrals-Base-80: #1D2126;
  --Neutrals-Base-90: #2A2F36;
  --Neutrals-Base-100: #3A4048;
}

/* Fuente Yellix - usar fuente del sistema si no está disponible */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Contenedor principal del calendario */
.ace-cal {
  background: radial-gradient(120% 120% at 0% 0%, #0f1c26, #090f13 60%);
  color: var(--white-white-100) !important;
  padding: 32px 56px 40px 56px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  max-width: 464px;
  margin: 0 auto;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Título "Próximos eventos" */
.ace-cal__header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.ace-cal__title {
  color: var(--white-white-100) !important;
  text-align: center;
  font-variant-numeric: lining-nums proportional-nums;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: 160%; /* 38.4px */
  margin: 0;
}

/* Navegación del mes */
.ace-cal__nav {
  background: var(--Neutrals-Base-90);
  color: var(--white-white-100) !important;
  border: 1px solid var(--Neutrals-Base-100) !important;
  width: 34px;
  height: 34px;
  border-radius: 99px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.ace-cal__nav:hover {
  background: var(--Neutrals-Base-100) !important;
  border-color: var(--Primary-Base-500) !important;
}

/* Grid del calendario */
.ace-cal__grid {
  display: grid;
  gap: 8px;
}

/* Fila de días de la semana */
.ace-cal__week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

.ace-cal__dow {
  color: var(--white-white-60) !important;
  text-align: center;
  font-variant-numeric: lining-nums proportional-nums;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 160%; /* 25.6px */
  padding: 6px 0;
}

/* Contenedor de días */
.ace-cal__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

/* Días del calendario */
.ace-cal__day {
    padding: 2px !important;
    position: relative;
    display: flex;
    width: 34px;
    height: 34px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 100px !important;
    border: 1px solid transparent;
    background: transparent !important;
    color: white !important;
    text-align: center;
    font-variant-numeric: lining-nums proportional-nums;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 160%; /* 25.6px */
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0 auto;
}

.ace-cal__day:hover {
  background: var(--white-white-10) !important;
  border-color: var(--Primary-Base-500) !important;
}

/* Días vacíos (del mes anterior/siguiente) */
.ace-cal__day.-empty {
  visibility: hidden;
}

/* Días con eventos */
.ace-cal__day.-has {
  border: 1px solid var(--Primary-Base-500) !important;
}

/* Día actual */
.ace-cal__day.-current {
  background: var(--Primary-Base-500) !important;
  color: var(--Neutrals-Base-80) !important;
}

/* Día activo/seleccionado */
.ace-cal__day.-active {
  background: var(--Primary-Base-500) !important;
  color: var(--Neutrals-Base-80) !important;
  border-color: var(--Primary-Base-500) !important;
}

/* Punto indicador de eventos 
.ace-cal__dot {
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--Primary-Base-500);
  transform: translateX(-50%);
  box-shadow: 0 0 6px var(--Primary-Base-500);
}*/

/* Leyenda */
.ace-cal__legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--white-white-60) !important;
  font-size: 14px;
}

/* Lista de eventos */
.ace-cal__list {
  margin-top: 24px;
  display: grid;
  gap: 16px;
}

.ace-cal__item {
  padding: 16px;
  border: 1px solid var(--Neutrals-Base-100) !important;
  background: var(--white-white-10) !important;
  backdrop-filter: blur(6px);
  border-radius: 16px;
}

.ace-cal__item h4 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.ace-cal__item a {
  color: var(--white-white-100);
  text-decoration: none;
  transition: color 0.2s ease;
}

.ace-cal__item a:hover {
  color: var(--Primary-Base-500) !important;
}

.ace-cal__meta {
  color: var(--white-white-60) !important;
  font-size: 14px;
  margin-bottom: 12px;
  line-height: 1.4;
}

/* Etiquetas del evento */
.ace-cal__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.ace-cal__tag {
  display: inline-block;
  padding: 4px 8px;
  background: var(--Primary-Base-500) !important;
  color: var(--Neutrals-Base-80);
  border-radius: 99px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}

/* Botón de acción */
.ace-cal__btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 99px;
  background: var(--Primary-Base-500) !important;
  color: var(--Neutrals-Base-80);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.ace-cal__btn:hover {
  background: var(--white-white-100) !important;
  transform: translateY(-1px);
}

/* Mensaje cuando no hay eventos */
.ace-cal__empty {
  text-align: center;
  color: var(--white-white-60) !important;
  font-style: italic;
  padding: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .ace-cal {
    padding: 24px 32px 32px 32px;
    max-width: 100%;
    margin: 0 16px;
  }
  
  .ace-cal__title {
    font-size: 20px;
  }
  
  .ace-cal__day {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  
  .ace-cal__nav {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 480px) {
  .ace-cal {
    padding: 20px 24px 28px 24px;
    margin: 0 12px;
  }
  
  .ace-cal__title {
    font-size: 18px;
  }
  
  .ace-cal__day {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }
  
  .ace-cal__nav {
    width: 28px;
    height: 28px;
  }
  
  .ace-cal__item {
    padding: 12px;
  }
  
  .ace-cal__item h4 {
    font-size: 16px;
  }
  
  .ace-cal__tags {
    gap: 4px;
  }
  
  .ace-cal__tag {
    padding: 3px 6px;
    font-size: 11px;
  }
}

/* Evitar desbordamiento en pantallas muy pequeñas */
@media (max-width: 320px) {
  .ace-cal {
    padding: 16px 20px 24px 20px;
    margin: 0 8px;
  }
  
  .ace-cal__day {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }
  
  .ace-cal__nav {
    width: 26px;
    height: 26px;
  }
}

/* ===== ESTILOS PARA ELEMENTOR ===== */

/* Etiquetas tipo chips para Elementor */
.ace-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}

.ace-chip {
  display: inline-block;
  padding: 4px 12px;
  background: var(--Primary-Base-500) !important;
  color: var(--Neutrals-Base-80) !important;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.ace-chip:hover {
  background: var(--white-white-100) !important;
  color: var(--Neutrals-Base-80) !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 220, 205, 0.3);
}

/* Fechas formateadas para Elementor */
.ace-event-date {
  color: var(--white-white-60) !important;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.ace-event-date.-start {
  color: var(--Primary-Base-500) !important;
  font-weight: 500;
}

.ace-event-date.-end {
  color: var(--white-white-60) !important;
}

/* Lugar del evento para Elementor */
.ace-event-place {
  color: var(--white-white-60) !important;
  font-size: 14px;
  font-style: italic;
  margin-top: 4px;
}

.ace-event-place:before {
  content: "📍 ";
  margin-right: 4px;
}

/* Contenedor de evento para Elementor */
.ace-event-card {
  background: var(--white-white-10) !important;
  border: 1px solid var(--Neutrals-Base-100) !important;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
}

.ace-event-card:hover {
  border-color: var(--Primary-Base-500) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 220, 205, 0.15);
}

/* Título del evento para Elementor */
.ace-event-title {
  color: var(--white-white-100) !important;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 8px 0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ace-event-title:hover {
  color: var(--Primary-Base-500) !important;
}

/* Botón de evento para Elementor */
.ace-event-btn {
  display: inline-block;
  padding: 8px 16px;
  background: var(--Primary-Base-500) !important;
  color: var(--Neutrals-Base-80) !important;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  margin-top: 12px;
}

.ace-event-btn:hover {
  background: var(--white-white-100) !important;
  color: var(--Neutrals-Base-80) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 220, 205, 0.3);
}

/* Responsive para Elementor */
@media (max-width: 768px) {
  .ace-event-card {
    padding: 12px;
  }
  
  .ace-event-title {
    font-size: 16px;
  }
  
  .ace-chip {
    padding: 3px 8px;
    font-size: 11px;
  }
  
  .ace-chips {
    gap: 4px;
  }
}