/* Estilos para el frontend del plugin Upcoming Events */

/* Estilos para la ubicación */
.upcoming-events-location {
    display: flex;
    align-items: center;
    gap: 6px;
}

.upcoming-events-location svg {
    width: 16px;
    height: 20px;
    flex-shrink: 0;
}
span.upcoming-events-separator {color: #E84626;}

.upcoming-events-city {
    color: #E84626;
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    text-transform: uppercase;
}

.upcoming-events-country {
    color: #E84626;
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    text-transform: uppercase;
}

/* Estilos para el país solamente */
.upcoming-events-country-container {
    display: flex;
    align-items: center;
    gap: 8px;
    
}

.upcoming-events-country-container svg {
    width: 16px;
    height: 20px;
    flex-shrink: 0;
}

.upcoming-events-country-only {
    color: #E84626;
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    text-transform: uppercase;
}

/* Estilos para la imagen de máscara */

.upcoming-events-mask img {
    height: 52px;
    width: auto;
}

/* Estilos para la fecha (grande) */
.upcoming-events-date-large {
    display: inline-block;
    text-align: center;
    margin-right: 15px;
}

.upcoming-events-date-day {
    color: #E84626;
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 45.5px;
    font-weight: 700;
    line-height: 29px;
}

.upcoming-events-date-month {
    color: #E84626;
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 26px;
    font-weight: 400;
    line-height: normal;
    text-transform: uppercase;
}

/* Estilos para la fecha (pequeña) */
.upcoming-events-date-small {
    display: inline-block;
    text-align: center;
    margin-right: 10px;
}

.upcoming-events-date-day-small {
    color: #E84626;
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: normal;
}

.upcoming-events-date-month-small {
    color: #E84626;
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 6px;
    text-transform: uppercase;
}

/* Estilos para el header del evento */
.upcoming-events-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

/* Estilos para la fecha (horizontal) */
.upcoming-events-date-horizontal {
    display: flex;
    align-items: center;
    gap: 5px;
}

.upcoming-events-date-day-horizontal {
    color: #E84626;
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 16px;
    font-weight: 700;

    text-transform: uppercase;
}

.upcoming-events-date-month-horizontal {
    color: #E84626;
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
}

/* Estilos para el título */
.upcoming-events-title {
    margin: 0 0 10px 0;
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 24px;
    font-weight: 700;
}

/* Estilos para el carrusel */
.upcoming-events-carousel {
    position: relative;
    width: 100%;
    height: 804px;
    overflow: hidden;
}

@media only screen and (max-width: 768px) {
  .upcoming-events-carousel {
    position: relative;
    width: 100%;
    height: 460px !important;
  
}
}
.upcoming-events-carousel-slides {
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    background-size: cover;
    background-position: center;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
    padding: 0;
    outline: none;
}

.carousel-arrow.prev {
    left: 20px;
}

.carousel-arrow.next {
    right: 20px;
}

/* Estilos para los botones */
.upcoming-events-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 20px;
}

.upcoming-events-button {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.main-button {
    color: #ffffff;
    background-color: #E84626;
    border: 1px solid #E84626;
}

.main-button:hover {
    border-color: #E84626;
    color: #E84626;
	background-color: #f1f1f1;
}

.register-button {
    color: #E84626;
    background-color: #FFFFFF;
    border: 1px solid #FFFFFF;
}

.register-button:hover {
    background-color: #FFFFFF;
    border-color: #E84626;
    color: #E84626;
}

/* Estilos para especificaciones */
.upcoming-events-specs {
    display: flex;
    justify-content: flex-end;
    column-gap: 24px !important;   
	flex-direction: row; 
    border-top: 1px solid #111;
    padding-top: 17px;
    padding-bottom: 0px;
    border-bottom: 1px solid #111;
}

@media only screen and (max-width: 768px) {
  .upcoming-events-specs {
    display: flex;
  row-gap: 0px !important;    /* Espacio vertical */
  column-gap: 12px !important;  /* Sin espacio horizontal */
    border-top: 1px solid #111;
    padding-top: 17px;
    padding-bottom: 0px;
    border-bottom: 1px solid #111;
    flex-wrap: wrap;
    flex-direction: row;
	  justify-content: flex-start;
}
}




.spec-item {
    margin-bottom: 20px;
}

.spec-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.spec-header span {
    color: #111111;
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 14px;
    font-weight: 700;
}

.spec-content {
    color: #111111;
    font-family: "Space Grotesk", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: normal;
    padding-left: 23px; /* Para alinear con el icono */
}

/* Estilos para la lista de eventos */
.upcoming-events-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.upcoming-events-item {
    border: 1px solid #f0f0f0;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* ESTILOS ADICIONALES PARA BOTONES INDIVIDUALES */

/* Estilos para botones individuales */


.upcoming-events-single-button-container .upcoming-events-button {
    display: block !important;
    text-decoration: none;
    transition: all 0.3s ease;
    vertical-align: top;
}

/* Estilo para botón de ancho completo */
.upcoming-events-button.full-width-button {
    width: 100% !important;
    text-align: center;
    box-sizing: border-box;
    display: block;
}

/* Soporte para controles de Elementor */
.elementor-widget-upcoming_events_main_button .upcoming-events-button,
.elementor-widget-upcoming_events_register_button .upcoming-events-button {
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Mejorar compatibilidad con Elementor */
.elementor-widget-upcoming_events_main_button,
.elementor-widget-upcoming_events_register_button {
    overflow: visible;
}

.elementor-widget-upcoming_events_main_button .upcoming-events-single-button-container,
.elementor-widget-upcoming_events_register_button .upcoming-events-single-button-container {
    width: 100%;
}

/* Asegurar que los botones respeten el ancho personalizado */
.upcoming-events-button[style*="width"] {
    display: block;
    box-sizing: border-box;
}

/* Contenedor de botones centrados */
.upcoming-events-single-button-container[style*="text-align: center"] .upcoming-events-button {
    margin: 0 auto;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .upcoming-events-buttons {
        
    }
    
    .upcoming-events-button {
        width: 100%;
        text-align: center;
    }
    
    .upcoming-events-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .upcoming-events-date-large,
    .upcoming-events-date-small {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    /* Responsivo para botones individuales */
    .upcoming-events-single-button-container .upcoming-events-button {
        width: 100% !important;
        text-align: center;
        display: block;
    }
    
    .upcoming-events-single-button-container {
        text-align: center !important;
    }
    
    /* Asegurar que en mobile los botones de Elementor también sean full width */
    .elementor-widget-upcoming_events_main_button .upcoming-events-button,
    .elementor-widget-upcoming_events_register_button .upcoming-events-button {
        width: 100% !important;
        text-align: center;
        display: block;
    }
}

/* Forzar ancho completo cuando el inline style dice 100% */
.upcoming-events-button[style*="width: 100%"] {
  display: block;            /* en vez de inline-block */
  width: 100% !important;
  box-sizing: border-box;    /* incluye padding/borde en el 100% */
  text-align: center;        /* típico en botones full width */
}

/* FIX móvil: el botón principal del widget ocupa el 100% solo en mobile */
@media (max-width: 768px) {
  .elementor-element.elementor-widget-upcoming_events_main_button {
    --container-widget-width: 100% !important;
    --container-widget-flex-grow: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
    align-self: stretch !important;
  }

  .elementor-widget-upcoming_events_main_button .upcoming-events-single-button-container {
    display: block;
    width: 100%;
  }

  .elementor-widget-upcoming_events_main_button .upcoming-events-button[style*="width: 100%"],
  .elementor-widget-upcoming_events_main_button .upcoming-events-button[style*="width:100%"] {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    text-align: center;
  }
}
