/* ============================================
   PROMOCIONES SLIDER - ESTILOS MODULARES
   Extraído de resultados.css para uso global
   ============================================ */

/* Variables CSS - Específicas del módulo */
:root {
    --color-primary: #1a365d;
    --color-accent: #d4af37;
    --color-accent-light: #f4e4bc;
    --color-text: #2d3748;
    --color-text-light: #718096;
    --color-bg: #f7fafc;
    --color-white: #ffffff;
    --color-success: #48bb78;
    --color-border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Contenedor especial para ajuste de ancho */
.promotions-section .promociones-slider-wrapper {
    max-width: 1510px;
    margin: 0 auto;
}

/* Sección Principal */
.promotions-section {
    margin-bottom: 2rem;
    margin-top: 3rem;
    padding: 3rem 0;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.03) 0%, rgba(212, 175, 55, 0.05) 100%);
    border-top: 3px solid var(--color-accent);
    border-radius: 12px;
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.promotions-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.promotions-section .section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    font-size: 2rem;
    color: var(--color-primary);
    font-weight: 600;
}

.promotions-section .section-title::before {
    content: '⭐';
    font-size: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Estructura del Slider */
.promociones-slider-wrapper {
    position: relative;
    width: 100%;
    padding: 0 2.5rem;
    max-width: 100%;
}

.promociones-slider-container {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.promociones-slider-track {
    display: flex;
    gap: 1.25rem;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    min-width: 100%;
    /* Asegurar que no colapse */
}

/* Botones de Navegación */
.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    display: flex;
    /* Restaurado globalmente */
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    line-height: 1;
}

.slider-nav-btn:hover {
    background: var(--color-accent);
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-lg);
}

.slider-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: translateY(-50%);
}

.slider-prev {
    left: 0;
}

.slider-next {
    right: 0;
}

/* Indicadores (Dots) */
.slider-dots-container {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-border);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--color-primary);
    width: 25px;
    border-radius: 5px;
}

/* Tarjeta Crystal Styles */
.card-promocion-crystal {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    min-height: 300px;
    height: 300px;
    /* Ajuste robusto: Ancho fijo para evitar colapso en slider */
    min-width: 270px;
    width: 270px;
    flex: 0 0 270px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.card-promocion-crystal:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}

.card-promocion-crystal:hover .card-bg-image {
    filter: blur(5px);
    transform: scale(1.1);
}

.card-title-overlay {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.6rem 1.2rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #FFFFFF;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 0, 0, 0.6);
    line-height: 1.3;
}

.card-action-btn {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    z-index: 2;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.card-action-btn:hover {
    background: var(--color-accent);
    transform: scale(1.05);
}

/* Crystal Overlay Content */
.crystal-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 82, 130, 0.60);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
    overflow: hidden;
    box-sizing: border-box;
    border-radius: 12px;
}

.card-promocion-crystal:hover .crystal-overlay,
.card-promocion-crystal.active .crystal-overlay {
    bottom: 0;
}

.crystal-overlay h3 {
    font-size: 1.3rem;
    color: #FFFFFF;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.crystal-overlay>p:not(.price) {
    font-size: 0.95rem;
    color: #FFFFFF;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.crystal-overlay .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
}

.crystal-overlay .benefits {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
    overflow-y: auto;
}

.crystal-overlay .benefits li {
    font-size: 0.9rem;
    color: #FFFFFF;
    padding: 0.3rem 0;
    font-weight: 500;
}

.crystal-overlay .cta-btn {
    display: block;
    width: 100%;
    background-color: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
    text-align: center;
    padding: 0.8rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    margin-top: auto;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: none;
}

.crystal-overlay .cta-btn:hover {
    background-color: #ffffff;
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Responsive */
@media (max-width: 968px) {
    .card-promocion-crystal {
        min-width: calc(50% - 0.7rem);
        width: calc(50% - 0.7rem);
        flex: 0 0 calc(50% - 0.7rem);
    }
}

@media (max-width: 640px) {
    .promociones-slider-wrapper {
        padding: 0 2rem;
        width: 100%;
    }

    .card-promocion-crystal {
        min-width: calc(100% - 1rem);
        width: calc(100% - 1rem);
        flex: 0 0 calc(100% - 1rem);
    }

    .promotions-section .section-title {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .slider-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
    }
}