/* =============================================
   ARGOS SLIDER — CSS
   ============================================= */

/* --- Contenedor principal --- */
.argos-slider {
    position: relative;
    /*width: 100vw;*/
    margin-left: calc(50% - 50vw); /* fuerza ancho completo */
    overflow: hidden;
}

/* --- Track (contenedor de slides) --- */
.argos-slider__track {
    position: relative;
    width: 100%;
    min-height: 75vh;
}

/* --- Cada Slide --- */
.argos-slider__slide.slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    min-height: 75vh;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #1a1a2e; /* fallback si no hay imagen */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s ease;
    z-index: 1;
}

.argos-slider__slide.slide.is-active {
    opacity: 1;
    visibility: visible;
    position: relative;
    z-index: 2;
}

/* --- Overlay oscuro sobre la imagen --- */
.slide__overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

/* --- Contenido del slide --- */
.slide__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    padding: 2rem 1.5rem;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

/* Títulos */
.slide__content h1 {
    font-size: clamp(2rem, 6vw, 4.5rem);
    font-weight: 800;
    text-transform: uppercase;
    margin: 0 0 0.3em;
    line-height: 1.1;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.slide__content h2 {
    font-size: clamp(1.1rem, 3vw, 2rem);
    font-weight: 400;
    margin: 0 0 1.5em;
    line-height: 1.3;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.5);
}

/* Botones de Gutenberg */
.slide__content .wp-block-buttons {
    justify-content: center;
}

.slide__content .wp-block-button__link {
    background-color: #e8491d;
    color: #fff;
    border: 2px solid #e8491d;
    padding: 0.8em 2.5em;
    font-size: clamp(0.9rem, 2vw, 1.15rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    /* Solo cambia el color, sin movimiento ni efectos de posición */
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    transform: none; /* bloquea cualquier transformación */
}

.slide__content .wp-block-button__link:hover,
.slide__content .wp-block-button__link:focus {
    background-color: transparent!important;
    color: #fff;
    border-color: #fff;
}


/* --- Flechas de navegación --- */
.argos-slider__arrow {
    position: absolute;
    top: 50%;
    /*transform: translateY(-50%);*/
    z-index: 10;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.4);
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.argos-slider__arrow:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: #fff;
}

.argos-slider__arrow--prev { left: 1.5rem; padding: inherit!important;}
.argos-slider__arrow--next { right: 1.5rem; padding: inherit!important;}


/* --- Dots --- */
.argos-slider__dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.argos-slider__dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.argos-slider__dot.is-active,
.argos-slider__dot:hover {
    background: #fff;
    border-color: #fff;
}

/* Feedback visual mientras se arrastra */
.argos-slider.is-dragging {
    cursor: grabbing !important;
}

.argos-slider.is-dragging .argos-slider__track {
    transition: none !important;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .argos-slider__track,
    .argos-slider__slide.slide {
        min-height: 60vh;
    }

    .slide__content {
        padding: 1.5rem 1rem;
    }

    /* OCULTAR flechas de navegación en móvil */
    .argos-slider__arrow {
        display: none !important;
    }

    /* Mantener dots visibles */
    .argos-slider__dots {
        bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .argos-slider__track,
    .argos-slider__slide.slide {
        min-height: 50vh;
    }

    .argos-slider__arrow {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
}