:root {
    --ml-bg: #060606;
    --ml-card: #11151b;
    --ml-soft: #1d2430;
    --ml-border: #293241;
    --ml-red: #e31b23;
    --ml-green: #25d366;
    --ml-text: #f5f7fb;
    --ml-muted: #aab3c2
}

.megaline-catalog-section {
    background: radial-gradient(circle at top, #1a1a1a 0, #050505 55%);
    padding: 70px 0;
    color: var(--ml-text)
}

.megaline-catalog-head {
    text-align: center;
    margin-bottom: 28px
}

.megaline-catalog-head h2 {
    font-size: 38px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px
}

.megaline-catalog-head p {
    color: var(--ml-muted);
    max-width: 780px;
    margin: 0 auto
}

.ml-toolbar {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 14px;
    margin: 0 auto 30px;
    max-width: 1050px
}

.ml-toolbar input,
.ml-toolbar select {
    background: #10141a;
    border: 1px solid var(--ml-border);
    color: #fff;
    border-radius: 12px;
    padding: 13px 14px;
    outline: none
}

.ml-toolbar input:focus,
.ml-toolbar select:focus {
    border-color: var(--ml-red)
}

#megaline-catalogo {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px
}

.ml-card {
    background: linear-gradient(180deg, #151a22, #0d1015);
    border: 1px solid var(--ml-border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .35);
    position: relative
}

.ml-slider {
    height: 280px;
    background: #050505;
    position: relative;
    overflow: hidden
}

.ml-slide {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center
}

.ml-slide.active {
    display: flex
}

.ml-slide img,
.ml-slide video {
    width: 100%;
    height: 100%;
    object-fit: contain
}

.ml-slide img {
    cursor: zoom-in;
    transition: transform .25s ease
}

.ml-slide img:hover {
    transform: scale(1.04)
}

.ml-specs {
    padding: 22px;
    align-items: flex-start !important;
    justify-content: center !important;
    flex-direction: column;
    background: linear-gradient(135deg, #161d27, #0c1017)
}

.ml-specs h4 {
    font-size: 19px;
    color: #fff;
    margin: 0 0 12px
}

.ml-specs ul {
    margin: 0;
    padding-left: 19px;
    color: #dbe2ee;
    font-size: 14px;
    line-height: 1.65
}

.ml-specs li::marker {
    color: var(--ml-red)
}

.ml-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 44px;
    border: 0;
    border-radius: 10px;
    background: rgba(0, 0, 0, .58);
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    z-index: 3
}

.ml-prev {
    left: 9px
}

.ml-next {
    right: 9px
}

.ml-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    display: flex;
    gap: 6px;
    justify-content: center;
    z-index: 4
}

.ml-dot {
    width: 8px;
    height: 8px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .35);
    border: 0
}

.ml-dot.active {
    background: var(--ml-red);
    width: 20px
}

.ml-info {
    padding: 18px 18px 20px
}

.ml-info h3 {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 8px
}

.ml-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px
}

.ml-tag {
    background: #232b37;
    color: #d8dee9;
    border: 1px solid #303a4b;
    border-radius: 999px;
    font-size: 12px;
    padding: 5px 10px
}

.ml-info p {
    color: var(--ml-muted);
    font-size: 14px;
    min-height: 42px;
    margin-bottom: 14px
}

.ml-actions {
    display: flex;
    gap: 10px;
    align-items: center
}

.ml-wa {
    display: inline-block;
    background: var(--ml-green);
    color: #fff !important;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none
}

.ml-view {
    background: transparent;
    color: #fff;
    border: 1px solid var(--ml-border);
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer
}

.ml-empty {
    grid-column: 1/-1;
    color: #fff;
    text-align: center;
    padding: 35px;
    background: #111;
    border-radius: 14px
}

.ml-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .96);
    z-index: 99999;
    align-items: center;
    justify-content: center
}

.ml-lightbox.open {
    display: flex
}

.ml-lightbox img {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform .2s ease
}

.ml-lightbox.zoomed img {
    transform: scale(1.85);
    cursor: zoom-out
}

.ml-close {
    position: absolute;
    top: 18px;
    right: 26px;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 44px;
    cursor: pointer
}

.ml-loader {
    grid-column: 1/-1;
    color: #fff;
    text-align: center;
    padding: 30px
}

@media(max-width:991px) {
    #megaline-catalogo {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .ml-toolbar {
        grid-template-columns: 1fr
    }

    .megaline-catalog-head h2 {
        font-size: 30px
    }
}

@media(max-width:575px) {
    #megaline-catalogo {
        grid-template-columns: 1fr
    }

    .ml-slider {
        height: 245px
    }

    .megaline-catalog-section {
        padding: 45px 0
    }
}

/* ===== FIX BUSCADOR Y COMBO CATEGORÍAS MEGALINE ===== */

#mlSearch {
    font-size: 16px !important;
    color: #ffffff !important;
    height: 54px !important;
    padding: 14px 18px !important;
}

#mlSearch::placeholder {
    font-size: 16px !important;
    color: #b8c2d6 !important;
}

/* Nice Select del combo de categorías */
#mlCategory+.nice-select {
    display: none !important;
}

#mlCategory {
    display: block !important;
    width: 100% !important;
    height: 54px !important;
    padding: 0 16px !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    color: #111111 !important;
    font-size: 16px !important;
}

#mlCategory+.nice-select .current {
    color: #111111 !important;
    font-size: 16px !important;
}

#mlCategory+.nice-select .list {
    width: 100% !important;
    background: #ffffff !important;
    color: #111111 !important;
    z-index: 99999 !important;
    max-height: 260px !important;
    overflow-y: auto !important;
}

#mlCategory+.nice-select .option {
    color: #111111 !important;
    font-size: 15px !important;
    min-height: 38px !important;
    line-height: 38px !important;
}

#mlCategory+.nice-select .option:hover,
#mlCategory+.nice-select .option.focus,
#mlCategory+.nice-select .option.selected {
    background: #f1f1f1 !important;
    color: #000000 !important;
}