/* ================================================================== */
/* SECCIÓN DE DESTACADOS — Carrusel Infinito                           */
/* ================================================================== */

.mt-destacados-section {
    position: relative;
}

/* ── Encabezado ───────────────────────────────────────────────────── */
.mt-destacados-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.mt-destacados-title-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.25rem 0.95rem;
    background: rgba(245, 158, 11, 0.04);
    border: 1px solid rgba(245, 158, 11, 0.22);
    /* Asymmetrical border-radius for a premium label feel */
    border-radius: 2px 20px 2px 20px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow:
        0 4px 14px rgba(245, 158, 11, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

[data-theme="noche"] .mt-destacados-title-wrap {
    background: rgba(245, 158, 11, 0.06);
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.mt-destacados-star-icon {
    font-size: 1rem;
    color: #f59e0b;
    filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.7));
    animation: star-pulse 2.5s ease-in-out infinite;
}

@keyframes star-pulse {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.7));
    }

    50% {
        transform: scale(1.15) rotate(15deg);
        filter: drop-shadow(0 0 14px rgba(245, 158, 11, 0.9));
    }
}

.mt-destacados-title {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    background: linear-gradient(90deg,
            var(--mt-text-main, #0f172a) 0%,
            var(--mt-text-main, #0f172a) 30%,
            #f59e0b 50%,
            var(--mt-text-main, #0f172a) 70%,
            var(--mt-text-main, #0f172a) 100%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: text-shimmer 3.5s linear infinite;
    display: inline-block;
    /* Soft golden neon shadow aura */
    filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.28));
}

@keyframes text-shimmer {
    0% {
        background-position: 200% center;
    }

    100% {
        background-position: -200% center;
    }
}

/* ── Botones de navegación ────────────────────────────────────────── */
.mt-destacados-nav {
    display: flex;
    gap: 0.4rem;
}

.mt-destacados-btn {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 1.5px solid var(--mt-border, rgba(0, 0, 0, 0.1));
    background: var(--mt-bg-card, rgba(255, 255, 255, 0.9));
    color: var(--mt-text-muted, #475569);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.18s, color 0.18s, transform 0.15s, box-shadow 0.18s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.mt-destacados-btn:hover {
    background: var(--mt-primary, #3b82f6);
    color: #fff;
    border-color: var(--mt-primary, #3b82f6);
    transform: scale(1.08);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

/* ── Viewport (ventana visible del carrusel) ──────────────────────── */
.mt-destacados-viewport {
    overflow: hidden;
    border-radius: 16px;
    position: relative;
}

/* ── Track (contenedor deslizante) ───────────────────────────────── */
.mt-destacados-track {
    display: flex;
    gap: 0.75rem;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    padding: 0.25rem 0.1rem 0.5rem;
}

/* ── Tarjeta Compacta Cuadrada ────────────────────────────────────── */
.mt-dest-card {
    flex: 0 0 calc(25% - 0.57rem);
    min-width: 0;
    aspect-ratio: 1 / 1;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: var(--mt-bg-card, #ffffff);
    border: 1.5px solid var(--mt-border, rgba(0, 0, 0, 0.06));
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.22s;
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.mt-dest-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    z-index: 2;
}

/* ── Imagen ────────────────────────────────────────────────────────── */
.mt-dest-card-img-wrap {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.mt-dest-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

.mt-dest-card:hover .mt-dest-card-img {
    transform: scale(1.08);
}

.mt-dest-card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.8);
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
}

/* ── Info inferior (título + badges) ─────────────────────────────── */
.mt-dest-card-info {
    padding: 0.45rem 0.6rem 0.5rem;
    background: var(--mt-bg-card, #ffffff);
    border-top: 1px solid var(--mt-border, rgba(0, 0, 0, 0.06));
}

.mt-dest-card-name {
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--mt-text-main, #1e293b);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.3rem;
}

.mt-dest-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
}

.mt-dest-badge {
    font-size: 0.52rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    white-space: nowrap;
}

.mt-dest-badge-fs {
    background: rgba(22, 163, 74, 0.15);
    color: #16a34a;
    border: 1px solid rgba(22, 163, 74, 0.3);
}

/* ── Estado vacío ─────────────────────────────────────────────────── */
.mt-destacados-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2.5rem 1rem;
    color: var(--mt-text-muted, #94a3b8);
    font-size: 0.8rem;
    font-style: italic;
    text-align: center;
}

.mt-destacados-empty i {
    font-size: 2rem;
    opacity: 0.4;
}

.mt-destacados-empty.hidden {
    display: none;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .mt-dest-card {
        flex: 0 0 calc(33.33% - 0.52rem);
    }
}

@media (max-width: 600px) {
    .mt-dest-card {
        flex: 0 0 calc(50% - 0.4rem);
    }

    .mt-destacados-title {
        font-size: 0.95rem;
    }
}

@media (max-width: 380px) {
    .mt-dest-card {
        flex: 0 0 calc(50% - 0.4rem);
    }
}