/* ============================================
   Argosleon Slider Inicio - Estilos
   ============================================ */

.alsi-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #1a1a1a;
}

.alsi-main-swiper,
.alsi-main-swiper > .swiper-wrapper,
.alsi-main-swiper > .swiper-wrapper > .swiper-slide {
    height: 100%;
}

/* ---- SLIDE ---- */
.alsi-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #1a1a1a;
}

/* ---- FONDO ---- */
.alsi-slide-background {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 1;
    transition: transform 8s ease-out;
    will-change: transform;
}

.alsi-slide.swiper-slide-active .alsi-slide-background {
    transform: scale(1.05);
}

/* ---- OVERLAY ---- */
.alsi-slide-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.30);
    z-index: 2;
}

/* ---- CONTENIDO ---- */
.alsi-slide-content {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    box-sizing: border-box;
}

.alsi-slide-inner {
    max-width: 1200px;
    width: 100%;
    text-align: center;
    color: #fff;
}

/* Modo Elementor: el contenido se muestra tal cual */
.alsi-slide-elementor-content {
    width: 100%;
}

.alsi-slide-elementor-content .elementor-section,
.alsi-slide-elementor-content .elementor-container,
.alsi-slide-elementor-content .elementor-column {
    /* Permitir que Elementor controle el layout */
}

/* Título modo clásico */
.alsi-slide-title {
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.alsi-slide-title a {
    color: inherit;
    text-decoration: none;
}

.alsi-slide-title a:hover {
    opacity: 0.85;
}

/* Cuerpo modo clásico */
.alsi-slide-body {
    margin: 0 auto 25px;
    max-width: 800px;
    color: #f5f5f5;
    font-size: 1.05rem;
    line-height: 1.6;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

/* Botón modo clásico */
.alsi-slide-button {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    color: #ffffff;
    background-color: #c2185b;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.alsi-slide-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    opacity: 0.92;
    color: #ffffff;
}

/* ---- FLECHAS ---- */
.alsi-slider-wrapper .swiper-button-next,
.alsi-slider-wrapper .swiper-button-prev {
    color: #fff;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 50%;
    transition: background 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.alsi-slider-wrapper .swiper-button-next:hover,
.alsi-slider-wrapper .swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.55);
}

.alsi-slider-wrapper .swiper-button-next::after,
.alsi-slider-wrapper .swiper-button-prev::after {
    font-size: 20px;
    font-weight: bold;
}

/* ---- PAGINACIÓN ---- */
.alsi-slider-wrapper .swiper-pagination {
    bottom: 20px !important;
}

.alsi-slider-wrapper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #fff;
    opacity: 0.5;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.alsi-slider-wrapper .swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.3);
}

/* Botones de Elementor dentro del slider */
.alsi-slide-elementor-content .elementor-button {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 12px 32px;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.alsi-slide-elementor-content .elementor-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    opacity: 0.92;
}

/* Asegurar que el contenedor del botón mantenga su alineación */
.alsi-slide-elementor-content .elementor-widget-button {
    margin: 20px 0;
}

.alsi-slide-elementor-content .elementor-align-center {
    text-align: center;
}

/* Preservar el wrapper del contenido del botón */
.alsi-slide-elementor-content .elementor-button-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- ESTADO VACÍO ---- */
.alsi-no-posts {
    padding: 40px;
    text-align: center;
    background: #f5f5f5;
    border: 1px dashed #ccc;
    border-radius: 6px;
    color: #666;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .alsi-slide-content {
        padding: 30px 20px;
    }

    .alsi-slider-wrapper .swiper-button-next,
    .alsi-slider-wrapper .swiper-button-prev {
        width: 40px;
        height: 40px;
    }

    .alsi-slider-wrapper .swiper-button-next::after,
    .alsi-slider-wrapper .swiper-button-prev::after {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .alsi-slide-content {
        padding: 20px 15px;
    }
}