/* ========================================
   FEATURED SLIDER - Carrusel Destacado
   ======================================== */

/* Variables */
:root {
    --slide-duration: 15s;
    --indicator-size: 18px;
    --indicator-stroke: 2px;
}

/* Contenedor principal */
.featured-slider-section {
    position: relative;
    min-height: 50vh;
    overflow: hidden;
}

/* Slider container */
.featured-slider {
    position: relative;
    width: 100%;
    min-height: 50vh;
}

/* ========================================
   SLIDES
   ======================================== */
.featured-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 50vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    z-index: 1;
}

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

/* ========================================
   INDICADORES CON PROGRESO CIRCULAR
   ======================================== */
.featured-indicators {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 16px;
    z-index: 100;
    pointer-events: auto;
}

/* Cada indicador */
.indicator {
    width: var(--indicator-size);
    height: var(--indicator-size);
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease;
}

.indicator:hover {
    transform: scale(1.2);
}

/* SVG del indicador */
.indicator svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

/* Círculo de fondo (track) */
.indicator-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.25);
    stroke-width: var(--indicator-stroke);
}

/* Círculo de progreso */
.indicator-progress {
    fill: none;
    stroke: #b30f0f;
    stroke-width: var(--indicator-stroke);
    stroke-linecap: round;
    stroke-dasharray: 44;
    stroke-dashoffset: 44;
    transition: stroke-dashoffset 0.3s ease;
}

/* Punto central */
.indicator-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transition: background 0.3s ease, transform 0.3s ease;
}

/* Estado activo */
.indicator.active .indicator-dot {
    background: #b30f0f;
    transform: translate(-50%, -50%) scale(1.1);
}

.indicator.active .indicator-progress {
    animation: fill-progress var(--slide-duration) linear forwards;
}

/* Animación de llenado */
@keyframes fill-progress {
    from {
        stroke-dashoffset: 44;
    }

    to {
        stroke-dashoffset: 0;
    }
}

/* Estado completado (para indicadores pasados) */
.indicator.completed .indicator-progress {
    stroke-dashoffset: 0;
    animation: none;
}

.indicator.completed .indicator-dot {
    background: rgba(179, 15, 15, 0.6);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .featured-indicators {
        bottom: 15px;
        gap: 12px;
    }

    :root {
        --indicator-size: 14px;
    }

    .indicator-dot {
        width: 4px;
        height: 4px;
    }
}

@media (max-width: 480px) {
    .featured-indicators {
        bottom: 10px;
        gap: 10px;
    }
}