/* ================================
   SLIDER LOADING STATE
   ================================ */

/* Contenedor principal del slider */
.custom-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f5f7fa;
}

/* Loader limpio - cubre todo el espacio del slider */
#slider-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f5f7fa;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.4s ease-out, visibility 0.4s ease-out;
}

#slider-loader.loader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Spinner simple y elegante */
.spinner-container {
    position: relative;
    width: 40px;
    height: 40px;
}

#slider-loader .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e0e0e0;
    border-top: 3px solid #FEC700;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Texto de carga */
.loader-text {
    margin-top: 15px;
    color: #999;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 300;
}

/* ================================
   SLIDER PRINCIPAL
   ================================ */

/* Slider - visible pero con imágenes ocultas hasta inicialización */
.custom-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Ocultar slides individuales hasta que slick esté listo */
.custom-slider:not(.slick-initialized) .slide {
    display: none;
}

/* Mostrar solo el primer slide para mantener altura */
.custom-slider:not(.slick-initialized) .slide:first-child {
    display: block;
    visibility: hidden;
}

.custom-slider.slick-initialized .slide {
    display: block;
    visibility: visible;
}

.custom-slider .slick-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.custom-slider .slide {
    position: relative;
}

.custom-slider .slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.custom-slider .slider-button {
    position: absolute;
    background-color: #FFC72C;
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 20px;
    margin: 30px;
    border-radius: 30px;
    z-index: 10;
}

.custom-slider .slider-button.top-left {
    top: 0;
    left: 0;
}

.custom-slider .slider-button.top-right {
    top: 0;
    right: 0;
}

.custom-slider .slider-button.bottom-left {
    bottom: 0;
    left: 0;
}

.custom-slider .slider-button.bottom-right {
    bottom: 0;
    right: 0;
}

.custom-slider .slick-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex !important;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 10px;
    z-index: 5;
}

.custom-slider .slick-dots li {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

.custom-slider .slick-dots li button {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    border-radius: 50%;
    appearance: none;
}

.custom-slider .slick-dots li.slick-active {
    background-color: white;
    width: 15px;
    height: 15px;
}

/* Hide #slick-slide-control elements */
[id^="slick-slide-control"] {
    display: none !important;
}

/* Hide slick-dots on mobile */
@media (max-width: 767px) {
    .custom-slider .slick-dots {
        display: none !important;
    }
}
