/* Estilos del Carrusel - Basado en Royal Elementor Addons */

.aecp-advanced-slider-wrap {
    position: relative;
    width: 100%;
}

.aecp-carousel {
    position: relative;
    width: 100%;
    height: 574px;
    overflow: hidden;
    background-color: #ffffff;
    transition: opacity 0.3s ease;
}

.aecp-carousel .slick-list {
    height: 100%;
}

.aecp-carousel .slick-track {
    display: flex;
    height: 100%;
}

.aecp-carousel .slick-slide {
    height: 100%;
    padding: 0;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
    display: flex;
    align-items: stretch;
}

.aecp-carousel .slick-slide > div {
    height: 100%;
}

.aecp-slider-item {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    border-radius: 0;
    background-color: transparent;
    box-sizing: border-box;
}

.aecp-slider-item-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    overflow: hidden;
    border-radius: 0;
    box-sizing: border-box;
}

.aecp-cv-container {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.aecp-cv-outer {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aecp-cv-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aecp-slider-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.aecp-slider-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    max-width: 750px;
    padding: 10px 50px 50px 50px;
    margin: 0 auto;
}

.aecp-slider-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.2;
    color: #ffffff;
}

.aecp-slider-sub-title h3 {
    font-size: 1.8rem;
    font-weight: 400;
    margin: 0 0 15px 0;
    line-height: 1.3;
    color: #ffffff;
}

.aecp-slider-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0 0 20px 0;
    color: #ffffff;
}

.aecp-slider-description p {
    margin: 0;
}

.aecp-slider-btns {
    margin-top: 20px;
}

.aecp-slider-primary-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: transparent;
    color: #ffffff;
    text-decoration: none;
    border: 1px solid #ffffff;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.aecp-slider-primary-btn:hover {
    background-color: #666666;
    color: #ffffff;
    border-color: #666666;
    text-decoration: none;
}

/* Navegación - Flechas sin círculo */
.aecp-slider-arrow-container {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    z-index: 10;
    pointer-events: none;
}

.aecp-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    height: auto;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.aecp-slider-prev-arrow {
    left: 20px;
}

.aecp-slider-next-arrow {
    right: 20px;
}

.aecp-slider-arrow svg {
    width: 20px;
    height: 20px;
    fill: #ffffff;
    transition: all 0.3s ease;
}

.aecp-slider-arrow:hover svg {
    fill: #cccccc;
    transform: scale(1.1);
}

/* Dots */
.aecp-slider-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.aecp-slider-dots {
    display: flex;
    gap: 7px;
}

.aecp-slider-dots .slick-dots {
    display: flex;
    gap: 7px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.aecp-slider-dots .slick-dots li {
    margin: 0;
}

.aecp-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
}

.aecp-slider-dots .slick-active .aecp-slider-dot {
    background-color: #222222;
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 1024px) {
    .aecp-carousel .slick-slide {
        padding: 0;
    }
    
    .aecp-slider-content {
        padding: 10px 30px 30px 30px;
    }
    
    .aecp-slider-title h2 {
        font-size: 2rem;
    }
    
    .aecp-slider-sub-title h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .aecp-carousel {
        height: 400px;
    }
    
    .aecp-slider-content {
        padding: 10px 60px 20px 60px;
        max-width: calc(100% - 120px);
    }
    
    .aecp-slider-title h2 {
        font-size: 1.5rem;
    }
    
    .aecp-slider-sub-title h3 {
        font-size: 1.2rem;
    }
    
    .aecp-slider-description {
        font-size: 1rem;
    }
    
    .aecp-slider-arrow svg {
        width: 15px;
        height: 15px;
    }
    
    .aecp-slider-prev-arrow {
        left: 10px;
    }
    
    .aecp-slider-next-arrow {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .aecp-carousel {
        height: 350px;
    }
    
    .aecp-slider-content {
        padding: 10px 50px 20px 50px;
        max-width: calc(100% - 100px);
    }
    
    .aecp-slider-title h2 {
        font-size: 1.2rem;
    }
    
    .aecp-slider-sub-title h3 {
        font-size: 1rem;
    }
    
    .aecp-slider-description {
        font-size: 0.9rem;
    }
    
    .aecp-slider-primary-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .aecp-slider-arrow svg {
        width: 12px;
        height: 12px;
    }
    
    .aecp-slider-prev-arrow {
        left: 5px;
    }
    
    .aecp-slider-next-arrow {
        right: 5px;
    }
}

@media (max-width: 360px) {
    .aecp-slider-content {
        padding: 10px 40px 20px 40px;
        max-width: calc(100% - 80px);
    }
    
    .aecp-slider-title h2 {
        font-size: 1.1rem;
    }
    
    .aecp-slider-sub-title h3 {
        font-size: 0.9rem;
    }
    
    .aecp-slider-description {
        font-size: 0.8rem;
    }
    
    .aecp-slider-arrow svg {
        width: 10px;
        height: 10px;
    }
    
    .aecp-slider-prev-arrow {
        left: 3px;
    }
    
    .aecp-slider-next-arrow {
        right: 3px;
    }
}

/* Slick Slider Overrides */
.aecp-carousel .slick-slide {
    opacity: 1;
    transition: opacity 0.3s ease;
}

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

.aecp-carousel .slick-slide.slick-current {
    opacity: 1;
}

/* WPR Slick Visible Class */
.aecp-carousel .slick-slide.wpr-slick-visible {
    opacity: 1;
}

/* Elementor Style Overrides */
.elementor-widget-aecp-carousel .aecp-slider-title h2 {
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.elementor-widget-aecp-carousel .aecp-slider-sub-title h3 {
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.elementor-widget-aecp-carousel .aecp-slider-description {
    margin: 0 0 20px 0;
}

.elementor-widget-aecp-carousel .aecp-slider-primary-btn {
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: none;
}

.elementor-widget-aecp-carousel .aecp-slider-btns {
    margin-top: 20px;
}
