.lm-destacados {
    display: grid;
    width: 100%;
    height: var(--lm-height, 636px);
    gap: var(--lm-gap, 12px);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.lm-destacados--1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.lm-destacados--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 1fr; }
.lm-destacados--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); }
.lm-destacados--3 .lm-destacados__panel--1 { grid-row: 1 / span 2; }
.lm-destacados--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); }

.lm-destacados__panel {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border-radius: var(--lm-radius, 6px);
    color: #fff !important;
    text-decoration: none !important;
    cursor: pointer;
    isolation: isolate;
    box-sizing: border-box;
}

.lm-destacados__panel:hover,
.lm-destacados__panel:focus { color: #fff !important; text-decoration: none !important; }

.lm-destacados__bg {
    position: absolute;
    z-index: 0;
    inset: 0;
    display: block;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #2b2b32;
    transition: transform .8s cubic-bezier(.25,.46,.45,.94);
}

.lm-destacados__panel:hover .lm-destacados__bg,
.lm-destacados__panel:focus .lm-destacados__bg { transform: scale(1.05); }

.lm-destacados__overlay {
    position: absolute;
    z-index: 1;
    inset: 0;
    display: block;
    background: linear-gradient(to top, rgba(10,10,22,.68) 0%, rgba(10,10,22,.12) 55%, rgba(10,10,22,.01) 100%);
    transition: background .4s ease;
}

.lm-destacados__overlay--warm { background: linear-gradient(to top, rgba(120,10,10,.70) 0%, rgba(80,5,5,.15) 55%, rgba(20,0,0,.02) 100%); }
.lm-destacados__overlay--offer { background: linear-gradient(155deg, rgba(10,10,22,.02) 0%, rgba(10,10,22,.26) 50%, rgba(10,10,22,.76) 100%); }
.lm-destacados__overlay--purple { background: linear-gradient(to top, rgba(61,24,94,.75) 0%, rgba(61,24,94,.16) 55%, rgba(20,0,30,.02) 100%); }

.lm-destacados__panel:hover .lm-destacados__overlay--neutral,
.lm-destacados__panel:focus .lm-destacados__overlay--neutral { background: linear-gradient(to top, rgba(10,10,22,.80) 0%, rgba(10,10,22,.27) 58%, rgba(10,10,22,.03) 100%); }
.lm-destacados__panel:hover .lm-destacados__overlay--warm,
.lm-destacados__panel:focus .lm-destacados__overlay--warm { background: linear-gradient(to top, rgba(120,10,10,.82) 0%, rgba(80,5,5,.30) 58%, rgba(20,0,0,.05) 100%); }
.lm-destacados__panel:hover .lm-destacados__overlay--offer,
.lm-destacados__panel:focus .lm-destacados__overlay--offer { background: linear-gradient(155deg, rgba(10,10,22,.04) 0%, rgba(10,10,22,.39) 50%, rgba(10,10,22,.84) 100%); }
.lm-destacados__panel:hover .lm-destacados__overlay--purple,
.lm-destacados__panel:focus .lm-destacados__overlay--purple { background: linear-gradient(to top, rgba(61,24,94,.86) 0%, rgba(61,24,94,.32) 58%, rgba(20,0,30,.05) 100%); }

.lm-destacados__body {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    padding: 24px;
    box-sizing: border-box;
    color: #fff;
}

.lm-destacados__tag {
    display: inline-block;
    margin-bottom: 8px;
    padding: 4px 11px;
    border: 1px solid rgba(255,255,255,.30);
    border-radius: 2px;
    background: rgba(255,255,255,.18);
    color: rgba(255,255,255,.95);
    font-family: inherit;
    font-size: .65rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .14em;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}
.lm-destacados__tag--warm { border-color: rgba(220,50,50,.55); background: rgba(180,20,20,.62); color:#fff; }
.lm-destacados__tag--offer { border-color: rgba(230,180,40,.70); background: rgba(200,150,20,.55); color:#ffe082; }
.lm-destacados__tag--purple { border-color: rgba(194,134,255,.65); background: rgba(92,34,143,.62); color:#fff; }

.lm-destacados__title {
    display: block;
    margin: 0 0 9px;
    color: #fff !important;
    font-family: inherit;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.lm-destacados__desc {
    display: -webkit-box;
    max-height: 0;
    margin: 0 0 14px;
    overflow: hidden;
    opacity: 0;
    color: rgba(255,255,255,.85);
    font-family: inherit;
    font-size: 1.12rem;
    line-height: 1.55;
    transition: max-height .4s ease, opacity .35s ease .08s;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.lm-destacados__panel:hover .lm-destacados__desc,
.lm-destacados__panel:focus .lm-destacados__desc { max-height: 65px; opacity: 1; }

.lm-destacados__btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 17px;
    border: 1.5px solid rgba(255,255,255,.80);
    border-radius: 3px;
    background: transparent;
    color: #fff;
    font-family: inherit;
    font-size: .70rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .10em;
    text-transform: uppercase;
    transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.lm-destacados__panel:hover .lm-destacados__btn,
.lm-destacados__panel:focus .lm-destacados__btn { border-color:#fff; background:#fff; color:#1a1a2e; }

.lm-destacados__badge {
    position: absolute;
    top: 22px;
    right: -31px;
    z-index: 3;
    display: block;
    padding: 6px 45px;
    transform: rotate(40deg);
    background: #e53935;
    box-shadow: 0 2px 8px rgba(0,0,0,.30);
    color: #fff;
    font-family: inherit;
    font-size: .62rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.lm-destacados-empty { padding: 14px 16px; border: 1px dashed #c3c4c7; background:#fff; color:#50575e; }

@media (max-width: 900px) {
    .lm-destacados__body { padding: 20px; }
    .lm-destacados__title { font-size: 1.25rem; }
    .lm-destacados__btn { padding: 7px 13px; font-size: .64rem; }
}

@media (max-width: 600px) {
    .lm-destacados,
    .lm-destacados--1,
    .lm-destacados--2,
    .lm-destacados--3,
    .lm-destacados--4 {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        height: auto;
        gap: 10px;
    }
    .lm-destacados--3 .lm-destacados__panel--1 { grid-row: auto; }
    .lm-destacados__panel { min-height: var(--lm-mobile-height, 252px); }
    .lm-destacados__body { padding: 20px 18px; }
    .lm-destacados__title { font-size: 1.25rem; }
    .lm-destacados__desc { display: none; }
    .lm-destacados__btn { padding: 8px 14px; font-size: .66rem; }
}
