/* Overlay de novedades — solo desktop */

.novedades-overlay {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    background: rgba(17, 24, 39, 0.28);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.novedades-overlay[hidden] {
    display: none !important;
}

.novedades-panel {
    width: min(720px, 100%);
    max-height: min(86vh, 880px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 24px 80px rgba(17, 24, 39, 0.18);
    overflow: hidden;
    animation: novedades-in 220ms ease-out;
}

@keyframes novedades-in {
    from { opacity: 0; transform: translateY(12px) scale(0.985); }
    to { opacity: 1; transform: none; }
}

.novedades-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 28px 32px 8px;
}

.novedades-kicker {
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9ca3af;
}

.novedades-title {
    margin: 0;
    font-size: 28px;
    font-weight: 400;
    letter-spacing: -0.03em;
    color: #111827;
    line-height: 1.2;
}

.novedades-close {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #f3f4f6;
    color: #4b5563;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.novedades-close:hover {
    background: #e5e7eb;
    color: #111827;
}

.novedades-cards {
    flex: 1;
    overflow-y: auto;
    padding: 12px 32px 8px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.novedades-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.novedades-card-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 16px;
    background: #f3f4f6;
}

.novedades-card-img.is-empty {
    display: none;
}

.novedades-card h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: #111827;
    letter-spacing: -0.02em;
}

.novedades-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: #6b7280;
    white-space: pre-wrap;
}

.novedades-foot {
    display: flex;
    justify-content: center;
    padding: 18px 32px 28px;
}

.novedades-ok {
    min-width: 180px;
    padding: 14px 36px;
    border: none;
    border-radius: 999px;
    background: #181818;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}

.novedades-ok:hover {
    background: #111;
}

.novedades-ok:active {
    transform: scale(0.98);
}

body.novedades-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .novedades-overlay {
        display: none !important;
    }
}

@media (min-width: 820px) {
    .novedades-cards:has(.novedades-card:nth-child(3)) {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px 18px;
    }
    .novedades-cards:has(.novedades-card:nth-child(3)) .novedades-card:first-child:last-child {
        grid-column: 1 / -1;
    }
}
