/* Estilos base para el carrusel - igual en backend y frontend */
.dioses-eventos-carousel {
    position: relative;
    padding: 20px 0;
}

.dioses-eventos-carousel .swiper {
    width: 100%;
    height: 100%;
    padding: 20px 0;
    overflow: hidden;
}

.dioses-eventos-carousel .swiper-slide {
    height: auto;
    padding: 0 12px;
}

.dioses-evento-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.dioses-evento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Contenedor de contenido */
.dioses-evento-contenido {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Estilos para los textos */
.dioses-evento-carrera {
    font-size: 0.875rem;
    line-height: 1.25rem;
    margin-bottom: 8px;
    color: #6b7280;
    font-weight: 500;
}

.dioses-evento-titulo {
    font-size: 1.25rem;
    line-height: 1.75rem;
    margin-bottom: 16px;
    color: #111827;
    font-weight: 700;
}

/* Contenedor de información (fecha y lugar) */
.dioses-evento-info {
    margin-top: auto;
    margin-bottom: 16px;
}

.dioses-evento-lugar,
.dioses-evento-fecha {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: #4b5563;
    margin-bottom: 8px;
}

/* Iconos */
.dioses-evento-lugar svg,
.dioses-evento-fecha svg,
.dioses-evento-compartir svg {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    flex-shrink: 0;
}

/* Acciones (Ver más y compartir) */
.dioses-evento-acciones {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dioses-evento-enlace {
    color: #3b82f6;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.dioses-evento-enlace:hover {
    color: #2563eb;
    text-decoration: underline;
}

.dioses-evento-compartir {
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    padding: 4px;
}

.dioses-evento-compartir:hover {
    color: #3b82f6;
}

/* Navegación del carrusel */
.dioses-eventos-carousel .swiper-button-prev,
.dioses-eventos-carousel .swiper-button-next {
    width: 36px;
    height: 36px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s;
}

.dioses-eventos-carousel:hover .swiper-button-prev,
.dioses-eventos-carousel:hover .swiper-button-next {
    opacity: 1;
}

.dioses-eventos-carousel .swiper-button-prev {
    left: 0;
}

.dioses-eventos-carousel .swiper-button-next {
    right: 0;
}

.dioses-eventos-carousel .swiper-button-prev::after,
.dioses-eventos-carousel .swiper-button-next::after {
    font-size: 14px;
    font-weight: bold;
}

.dioses-eventos-carousel .swiper-pagination {
    position: relative;
    margin-top: 20px;
    bottom: 0;
}

.dioses-eventos-carousel .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: #d1d5db;
    opacity: 1;
    margin: 0 6px;
}

.dioses-eventos-carousel .swiper-pagination-bullet-active {
    background-color: #3b82f6;
}

/* Imagen del evento */
.dioses-evento-imagen {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.dioses-evento-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.dioses-evento-card:hover .dioses-evento-imagen img {
    transform: scale(1.05);
}

/* Ajustes específicos para el editor */
.elementor-editor-active .dioses-eventos-carousel,
.elementor-editor-active .dioses-eventos-carousel .swiper {
    overflow: visible !important;
}

.elementor-editor-active .dioses-eventos-carousel .swiper-wrapper {
    transform: translate3d(0, 0, 0) !important;
}

.elementor-editor-active .dioses-eventos-carousel .swiper-slide {
    opacity: 1 !important;
    transform: translate3d(0, 0, 0) !important;
}

/* Mostrar navegación en editor */
.elementor-editor-active .dioses-eventos-carousel .swiper-button-prev,
.elementor-editor-active .dioses-eventos-carousel .swiper-button-next {
    opacity: 1 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .dioses-evento-imagen {
        height: 160px;
    }
    
    .dioses-evento-contenido {
        padding: 16px;
    }
}