/* assets/style.css — Promos Carousel v2.2.0 */

/* ===========================
   WRAPPER
   =========================== */
.promos-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
    box-sizing: border-box;
}

/* ===========================
   TÍTULO "FILTRAR POR"
   =========================== */
.promos-filter-title {
    text-align: center;
    color: rgba(255, 255, 255, 0.55);
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0 0 4px;
}

.promos-filter-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin: 0 0 12px;
    font-style: italic;
}

/* ===========================
   TOGGLE MODO DE BÚSQUEDA
   =========================== */
.promos-mode-toggle {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 18px;
}

.promos-mode-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 22px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    background: rgba(15, 10, 36, 0.4);
    color: rgba(255, 255, 255, 0.55);
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.promos-mode-btn:hover {
    color: rgba(255, 255, 255, 0.85);
    border-color: rgba(139, 92, 246, 0.4);
}

.promos-mode-btn.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(59, 130, 246, 0.25));
    border-color: rgba(139, 92, 246, 0.7);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 0 16px rgba(139, 92, 246, 0.2);
}

.promos-mode-btn__icon {
    font-size: 14px;
    line-height: 1;
}

/* ===========================
   PANELS (show/hide)
   =========================== */
.promos-panel {
    display: none;
}

.promos-panel.active {
    display: block;
}

/* ===========================
   BUSCADOR
   =========================== */
.promos-search {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.promos-search__inner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    width: 100%;
    max-width: 420px !important;
    box-sizing: border-box;
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 12px;
    background: rgba(15, 10, 36, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.promos-search__inner:focus-within {
    border-color: rgba(139, 92, 246, 0.7);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.15);
}

.promos-search__icon {
    font-size: 14px;
    line-height: 1;
    flex-shrink: 0;
    opacity: 0.7;
}

.promos-search__input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.2px;
}

.promos-search__input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.promos-search__clear {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 50%;
    transition: all 0.2s ease;
    line-height: 1;
}

.promos-search__clear:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* ===========================
   BARRA DE FILTROS
   =========================== */
.promos-filters {
    margin-bottom: 24px;
    position: relative;
}

.promos-filters__scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 6px 2px 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
}

.promos-filters__scroll::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

/* Botón de filtro individual */
.promos-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 14px;
    background: rgba(15, 10, 36, 0.6);
    color: rgba(255, 255, 255, 0.75);
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    user-select: none;
    flex-shrink: 0;
}

.promos-filter:hover {
    border-color: rgba(139, 92, 246, 0.7);
    color: #fff;
    background: rgba(139, 92, 246, 0.15);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.2),
        inset 0 0 15px rgba(139, 92, 246, 0.05);
    transform: translateY(-1px);
}

/* Estado activo */
.promos-filter.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(59, 130, 246, 0.3));
    border-color: rgba(139, 92, 246, 0.8);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3),
        0 0 40px rgba(139, 92, 246, 0.1),
        inset 0 0 20px rgba(139, 92, 246, 0.1);
}

.promos-filter__icon {
    font-size: 15px;
    line-height: 1;
}

.promos-filter__label {
    line-height: 1;
}

/* ===========================
   MENSAJE SIN RESULTADOS
   =========================== */
.promos-empty {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-size: 15px;
}

.promos-empty p {
    margin: 0;
    padding: 30px 40px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    background: rgba(15, 10, 36, 0.4);
    backdrop-filter: blur(6px);
    display: inline-block;
}

/* ===========================
   CARRUSEL SPLIDE
   =========================== */
.splide {
    background: transparent;
    padding-bottom: 30px;
}

/* Transición suave de slides al filtrar */
.promos-wrapper .splide {
    animation: promosSlideIn 0.4s ease-out;
}

@keyframes promosSlideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

/* Imágenes en Móvil */
.splide__slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    margin: 0 auto;
    border-radius: 8px;
}

/* Imágenes en Escritorio */
@media (min-width: 992px) {
    .splide__slide img {
        height: 650px;
        width: auto;
        max-width: 100%;
    }
}

.splide__pagination {
    display: none !important;
}

.splide__scrollbar {
    background: rgba(255, 255, 255, 0.08);
    height: 6px;
    margin-top: 15px;
    border-radius: 3px;
}

.splide__scrollbar__bar {
    background: rgba(139, 92, 246, 0.6);
    border-radius: 3px;
    opacity: 0.9;
    transition: background 0.3s ease;
}

.splide__scrollbar__bar:hover {
    background: rgba(139, 92, 246, 0.9);
}

/* ===========================
   RESPONSIVE — MÓVIL
   =========================== */
@media (max-width: 768px) {
    .promos-wrapper {
        padding: 0 15px;
    }

    .promos-filters {
        margin-bottom: 18px;
    }

    .promos-filter {
        padding: 8px 16px;
        font-size: 12px;
    }

    .promos-filter__icon {
        font-size: 13px;
    }
}

/* Tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .promos-filters__scroll {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Desktop grande: centrar filtros */
@media (min-width: 1025px) {
    .promos-filters__scroll {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ===========================
   BOTÓN "COMPRAR"
   =========================== */
.promos-slide-content {
    position: relative;
    display: block;
    border-radius: 8px;
    overflow: hidden;
}

.promos-comprar-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 15px;
    background: linear-gradient(to top, rgba(15, 10, 36, 0.95), transparent);
    display: flex;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border-radius: 0 0 8px 8px;
    box-sizing: border-box;
}

.splide__slide:hover .promos-comprar-wrapper {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .promos-comprar-wrapper {
        opacity: 1;
        transform: none;
        background: linear-gradient(to top, rgba(15, 10, 36, 0.85), transparent);
        padding: 15px 10px;
    }
}

.promos-btn-comprar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 200px;
    padding: 10px 24px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.9), rgba(59, 130, 246, 0.8));
    color: #fff;
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.promos-btn-comprar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
    background: linear-gradient(135deg, rgba(139, 92, 246, 1), rgba(59, 130, 246, 0.9));
}

.promos-btn-comprar:active {
    transform: translateY(0);
}

/* ===========================
   MODAL COMPRA
   =========================== */
.promos-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.promos-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 5, 25, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.promos-modal__box {
    position: relative;
    width: 100%;
    max-width: 400px;
    background: rgba(20, 15, 45, 0.95);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(139, 92, 246, 0.2);
    animation: promosModalIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes promosModalIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.promos-modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s;
    padding: 0;
}

.promos-modal__close:hover {
    color: #fff;
}

.promos-modal__header {
    text-align: center;
    margin-bottom: 25px;
    padding-top: 5px;
}

.promos-modal__title {
    color: #fff;
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.3;
}

.promos-modal__badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Montserrat', 'Inter', sans-serif;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(249, 115, 22, 0.2));
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fcd34d;
}

.promos-modal__options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.promos-modal__subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 400;
    margin: 0 0 15px;
}

.promos-modal__btn {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    background: rgba(139, 92, 246, 0.1);
    color: #fff;
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.promos-modal__btn:hover {
    background: rgba(139, 92, 246, 0.25);
    border-color: rgba(139, 92, 246, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.15);
}

.promos-modal__btn .price {
    font-size: 16px;
    font-weight: 700;
}

.promos-modal__extra {
    text-align: center;
    margin-bottom: 20px;
    color: #fff;
    font-size: 14px;
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.promos-modal__footer {
    text-align: center;
    margin-top: 15px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.promos-modal__link-diff {
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}

.promos-modal__link-diff:hover {
    color: #fff;
    text-decoration: underline;
}