/* =========================================================
= COMBOS PAGE
========================================================= */

.combos-page{
    position:relative;
    width:100%;
    min-height:100vh;
    padding:0 0 5rem;
    background:
        radial-gradient(
            circle at top right,
            rgba(254,207,12,.08),
            transparent 22%
        ),
        #ffffff;
}

/* =========================================================
= HERO
========================================================= */

.combos-hero{
    position:relative;
    overflow:hidden;
    width:min(1400px, calc(100% - 2rem));
    margin:2rem auto 1.5rem;
    border-radius:2rem;
    background:
        linear-gradient(
            135deg,
            #050505 0%,
            #0d0d0d 45%,
            #181200 100%
        );
    min-height:320px;
    display:flex;
    align-items:center;
    padding:4rem;
    isolation:isolate;
    box-shadow:
        0 25px 80px rgba(0,0,0,.18);
}

.combos-hero__background{
    position:absolute;
    inset:0;
    z-index:-1;
    background:
        radial-gradient(
            circle at top right,
            rgba(254,207,12,.25),
            transparent 25%
        ),
        radial-gradient(
            circle at bottom left,
            rgba(254,207,12,.12),
            transparent 30%
        );
}

.combos-hero__content{
    width:min(700px, 100%);
}

.combos-hero__badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:.7rem 1.2rem;
    border-radius:999px;
    background:rgba(254,207,12,.08);
    border:1px solid rgba(254,207,12,.25);
    margin-bottom:1.5rem;
    backdrop-filter:blur(12px);
}

.combos-hero__badge span{
    color:#fecf0c;
    font-size:.82rem;
    font-weight:700;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.combos-hero h1{
    margin:0;
    color:#ffffff;
    font-size:clamp(2.8rem, 6vw, 5rem);
    line-height:1;
    font-weight:900;
    letter-spacing:-.04em;
}

.combos-hero p{
    margin:1.5rem 0 0;
    color:rgba(255,255,255,.72);
    font-size:1.08rem;
    line-height:1.8;
    max-width:620px;
}

/* =========================================================
= SEARCHBAR
========================================================= */

.combos-searchbar{
    width:min(1400px, calc(100% - 2rem));
    margin:0 auto 2rem;
}

.combos-searchbar__form{
    display:flex;
    gap:1rem;
    align-items:center;
}

.combos-searchbar__input{
    position:relative;
    flex:1;
}

.combos-searchbar__input svg{
    position:absolute;
    top:50%;
    left:1.4rem;
    transform:translateY(-50%);
    color:#9ca3af;
    pointer-events:none;
}

.combos-searchbar__input input{
    width:100%;
    height:68px;
    border:none;
    outline:none;
    border-radius:1.5rem;
    background:#ffffff;
    padding:0 1.5rem 0 4.3rem;
    font-size:1rem;
    font-weight:600;
    color:#111827;
    box-shadow:
        0 10px 30px rgba(0,0,0,.06);
    transition:
        border-color .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}

.combos-searchbar__input input:focus{
    transform:translateY(-2px);
    box-shadow:
        0 15px 40px rgba(254,207,12,.18);
}

.combos-searchbar__btn{
    border:none;
    outline:none;
    cursor:pointer;
    height:68px;
    min-width:170px;
    padding:0 2rem;
    border-radius:1.5rem;
    background:#fecf0c;
    color:#000000;
    font-weight:800;
    font-size:.95rem;
    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}

.combos-searchbar__btn:hover{
    transform:translateY(-2px);
    background:#ffdb3d;
    box-shadow:
        0 15px 35px rgba(254,207,12,.35);
}

/* =========================================================
= SHELL
========================================================= */

.combos-shell{
    width:min(1400px, calc(100% - 2rem));
    margin:0 auto;
}

/* =========================================================
= TOOLBAR
========================================================= */

.combos-toolbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:1rem;
    margin-bottom:2rem;
}

.combos-toolbar__left span{
    color:#6b7280;
    font-size:.95rem;
    font-weight:600;
}

.combos-toolbar__right select{
    height:52px;
    min-width:160px;
    border:none;
    outline:none;
    border-radius:1rem;
    background:#ffffff;
    padding:0 1rem;
    font-weight:700;
    color:#111827;
    cursor:pointer;
    box-shadow:
        0 10px 30px rgba(0,0,0,.05);
}

/* =========================================================
= GRID
========================================================= */

.combos-grid{
    display:grid;
    grid-template-columns:
        repeat(
            auto-fill,
            minmax(320px, 1fr)
        );
    gap:2rem;
}

/* =========================================================
= CARD
========================================================= */

.combo-card{
    position:relative;
    overflow:hidden;
    border-radius:2rem;
    background:#ffffff;
    box-shadow:
        0 15px 45px rgba(0,0,0,.06);
    transition:
        transform .35s ease,
        box-shadow .35s ease;
}

.combo-card:hover{
    transform:translateY(-8px);
    box-shadow:
        0 25px 60px rgba(0,0,0,.12);
}

.combo-card--agotado{
    opacity:.9;
}

.combo-card__image-link{
    display:block;
    text-decoration:none;
}

.combo-card__image-wrapper{
    position:relative;
    aspect-ratio:1/1;
    overflow:hidden;
    background:
        linear-gradient(
            135deg,
            #f8fafc 0%,
            #f1f5f9 100%
        );
}

.combo-card__image{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:
        transform .45s ease;
}

.combo-card:hover .combo-card__image{
    transform:scale(1.05);
}

.combo-card__content{
    padding:1.5rem;
}

.combo-card__top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:1rem;
    margin-bottom:1rem;
}

.combo-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:.5rem .95rem;
    border-radius:999px;
    background:rgba(254,207,12,.15);
    color:#946200;
    font-size:.78rem;
    font-weight:800;
}

.combo-card__title{
    margin:0 0 .8rem;
    font-size:1.35rem;
    line-height:1.3;
    font-weight:900;
}

.combo-card__title a{
    color:#0f172a;
    text-decoration:none;
}

.combo-card__description{
    margin:0 0 1.2rem;
    color:#6b7280;
    font-size:.95rem;
    line-height:1.7;

    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

/* =========================================================
= PRECIOS
========================================================= */

.combo-precio{
    display:flex;
    align-items:flex-end;
    gap:.8rem;
    margin-bottom:1rem;
}

.precio-actual{
    color:#000000;
    font-size:2rem;
    font-weight:900;
    line-height:1;
}

.precio-anterior{
    color:#9ca3af;
    font-size:1rem;
    font-weight:700;
    text-decoration:line-through;
}

.combo-precio--hidden{
    margin-bottom:1rem;
    color:#6b7280;
    font-size:.95rem;
    font-weight:700;
}

/* =========================================================
= STOCK
========================================================= */

.combo-stock{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    margin-bottom:1.4rem;
    padding:.65rem 1rem;
    border-radius:999px;
    background:#ecfdf3;
    color:#027a48;
    font-size:.82rem;
    font-weight:800;
}

.combo-stock--out{
    background:#fef2f2;
    color:#dc2626;
}

/* =========================================================
= BUTTON
========================================================= */

.combo-btn{
    width:100%;
    height:56px;
    border:none;
    outline:none;
    cursor:pointer;
    border-radius:1rem;
    background:#000000;
    color:#ffffff;
    font-size:.92rem;
    font-weight:800;
    transition:
        transform .25s ease,
        background .25s ease,
        box-shadow .25s ease;
}

.combo-btn:hover{
    transform:translateY(-2px);
    background:#111111;
    box-shadow:
        0 12px 30px rgba(0,0,0,.22);
}

.combo-btn--preorder{
    background:#fecf0c;
    color:#000000;
}

.combo-btn--preorder:hover{
    background:#ffdb3d;
}

.combo-btn--disabled{
    background:#e5e7eb;
    color:#9ca3af;
    cursor:not-allowed;
    box-shadow:none;
}

/* =========================================================
= EMPTY
========================================================= */

.combos-empty{
    padding:6rem 2rem;
    text-align:center;
}

.combos-empty__icon{
    display:flex;
    justify-content:center;
    margin-bottom:1.5rem;
    color:#d1d5db;
}

.combos-empty h3{
    margin:0 0 1rem;
    color:#111827;
    font-size:2rem;
    font-weight:900;
}

.combos-empty p{
    margin:0;
    color:#6b7280;
    line-height:1.7;
}

/* =========================================================
= ERROR
========================================================= */

.combos-error{
    grid-column:1/-1;
    padding:3rem;
    border-radius:2rem;
    background:#ffffff;
    text-align:center;
    box-shadow:
        0 10px 35px rgba(0,0,0,.05);
}

.combos-error h3{
    margin:0 0 1rem;
    color:#dc2626;
    font-size:1.6rem;
    font-weight:900;
}

.combos-error p{
    margin:0;
    color:#6b7280;
}

/* =========================================================
= PAGINACIÓN
========================================================= */

.combos-paginacion{
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:.75rem;
    margin-top:3rem;
}

.pagination-btn{
    width:48px;
    height:48px;
    border:none;
    outline:none;
    cursor:pointer;
    border-radius:1rem;
    background:#ffffff;
    color:#111827;
    font-weight:800;
    font-size:.95rem;
    transition:
        transform .2s ease,
        background .2s ease,
        color .2s ease,
        box-shadow .2s ease;
    box-shadow:
        0 8px 25px rgba(0,0,0,.05);
}

.pagination-btn:hover{
    transform:translateY(-2px);
    background:#fecf0c;
}

.pagination-btn.active{
    background:#000000;
    color:#ffffff;
}

.pagination-btn:disabled{
    opacity:.45;
    cursor:not-allowed;
    transform:none;
}

/* =========================================================
= SKELETONS
========================================================= */

.skeleton{
    position:relative;
    overflow:hidden;
    background:#e5e7eb;
}

.skeleton::after{
    content:'';
    position:absolute;
    inset:0;
    transform:translateX(-100%);
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.55),
            transparent
        );
    animation:skeleton-loading 1.2s infinite;
}

.skeleton-text{
    height:18px;
    border-radius:.5rem;
    margin-bottom:.8rem;
}

.skeleton-text.short{
    width:60%;
}

.skeleton-price{
    width:40%;
    height:32px;
    border-radius:.7rem;
    margin:1.5rem 0;
}

.skeleton-button{
    width:100%;
    height:56px;
    border-radius:1rem;
}

@keyframes skeleton-loading{

    100%{
        transform:translateX(100%);
    }
}

/* =========================================================
= RESPONSIVE
========================================================= */

@media (max-width: 992px){

    .combos-hero{
        min-height:auto;
        padding:3rem 2rem;
    }

    .combos-toolbar{
        flex-direction:column;
        align-items:flex-start;
    }

    .combos-toolbar__right{
        width:100%;
    }

    .combos-toolbar__right select{
        width:100%;
    }
}

@media (max-width: 768px){

    .combos-hero{
        border-radius:1.5rem;
        padding:2.5rem 1.5rem;
    }

    .combos-searchbar__form{
        flex-direction:column;
    }

    .combos-searchbar__btn{
        width:100%;
    }

    .combos-grid{
        grid-template-columns:1fr;
    }

    .combo-card__content{
        padding:1.25rem;
    }

    .precio-actual{
        font-size:1.7rem;
    }

    .combos-empty{
        padding:4rem 1rem;
    }

    .combos-empty h3{
        font-size:1.6rem;
    }
}

@media (max-width: 480px){

    .combos-hero h1{
        font-size:2.5rem;
    }

    .combos-hero p{
        font-size:.95rem;
    }

    .combos-searchbar__input input{
        height:60px;
        font-size:.95rem;
    }

    .combos-searchbar__btn{
        height:60px;
    }

    .combo-card{
        border-radius:1.5rem;
    }
}

.combo-card__image-fallback{
    position:absolute;
    inset:0;
    display:none;
    align-items:center;
    justify-content:center;
    padding:1rem;
    color:#64748b;
    font-weight:900;
    text-align:center;
}

.combo-card__image-wrapper.is-missing .combo-card__image-fallback{
    display:flex;
}
