/**
 * Sistema de Promociones - Estilos CSS
 * Slider de promociones para formularios de búsqueda
 */

.reslynx-promo-slider {
    position: relative;
    width: 100%;
    height: 100%;

    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    background: #f8f9fa;
}

.promo-slider-container {
    position: relative;
    width: 100%;
    height: 100%;

}

.promo-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: linear-gradient(135deg, #5191FA 0%, #3b82f6 100%); /* Fallback default background */
}

.promo-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

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

.promo-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Overlay gradient para mejorar legibilidad del texto */
/* Overlay eliminado por solicitud del usuario */
.promo-slide::before {
    display: none;
}

.promo-content {
    position: relative;
    z-index: 2;
    padding: 40px 30px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.promo-subtitle {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    opacity: 0.95;
}

.promo-title {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 20px 0;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.promo-price {
    font-size: 48px;
    font-weight: 900;
    margin: 15px 0;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    line-height: 1;
}

.promo-terms {
    font-size: 11px;
    opacity: 0.9;
    margin-top: auto;
    padding-top: 20px;
    line-height: 1.4;
}

/* Botones de navegación */
/* Botones de navegación Modernos */
.promo-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.15);
    /* Glass effect */
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: white;
}

.promo-nav:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #5191FA;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    border-color: white;
}

.promo-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.promo-prev {
    left: 15px;
}

.promo-next {
    right: 15px;
}

/* Dots de navegación */
.promo-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.promo-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.promo-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.promo-dot.active {
    background: white;
    width: 32px;
    border-radius: 6px;
}

/* Responsive */
@media (max-width: 768px) {
    .reslynx-promo-slider {
        min-height: 350px;
    }

    .promo-slider-container {
        min-height: 350px;
    }

    .promo-content {
        padding: 30px 20px;
    }

    .promo-title {
        font-size: 22px;
    }

    .promo-price {
        font-size: 36px;
    }

    .promo-subtitle {
        font-size: 12px;
    }

    .promo-terms {
        font-size: 10px;
    }

    .promo-nav {
        width: 35px;
        height: 35px;
    }

    .promo-prev {
        left: 10px;
    }

    .promo-next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .reslynx-promo-slider {
        min-height: 320px;
        border-radius: 12px;
    }

    .promo-slider-container {
        min-height: 320px;
    }

    .promo-content {
        padding: 25px 15px;
    }

    .promo-title {
        font-size: 20px;
    }

    .promo-price {
        font-size: 32px;
        margin: 10px 0;
    }

    .promo-nav {
        width: 30px;
        height: 30px;
    }

    .promo-nav svg {
        width: 18px;
        height: 18px;
    }
}

/* Animación de entrada */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.promo-slide.active .promo-content>* {
    animation: slideIn 0.6s ease-out;
}

.promo-slide.active .promo-subtitle {
    animation-delay: 0.1s;
}

.promo-slide.active .promo-title {
    animation-delay: 0.2s;
}

.promo-slide.active .promo-price {
    animation-delay: 0.3s;
}

.promo-slide.active .promo-terms {
    animation-delay: 0.4s;
}