/* =========================================
   1. ESTRUCTURA PRINCIPAL
   ========================================= */
.mcb-wrapper-pro {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    min-height: 400px;
    box-sizing: border-box;
}

/* Clases de utilidad */
.mcb-nav-hidden { display: none; }
.mcb-list-hidden { display: none; }
.visible-flex { display: block !important; }


/* =========================================
   2. BARRA DE NAVEGACIÓN (FULL WIDTH & FLAT)
   ========================================= */

.mcb-sticky-nav {
    position: sticky;
    top: 0;
    z-index: 9999;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: #15181c;
    padding: 15px 0;
    margin-bottom: 30px;
}

/* Contenedor Interno (Centrado con la carta) */
.mcb-nav-scroll {
    max-width: 1000px; 
    margin: 0 auto;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    padding: 0 20px;
    align-items: center;
    scrollbar-width: none; /* Firefox */
}
.mcb-nav-scroll::-webkit-scrollbar { display: none; /* Chrome */ }

/* BOTONES (PÍLDORAS PLANAS) */
.mcb-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    
    /* Fondo Gris Oscuro */
    background: #222; 
    color: #bbb; /* Texto gris */
    
    /* SIN BORDES NI SOMBRAS */
    border: none;
    box-shadow: none;
    
    padding: 10px 20px;
    border-radius: 50px;
    
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1;
    outline: none;
}

/* Hover */
.mcb-nav-link:hover {
    background: #333;
    color: #fff;
}

/* ACTIVO (Blanco Plano) */
.mcb-nav-link.active {
    background: #fff;
    color: #000;
    font-weight: 800;
    
    /* Sin sombras ni bordes extra */
    border: none;
    box-shadow: none;
    
    transform: scale(1.05);
}


/* =========================================
   3. LANDING DE CATEGORÍAS (MODO APP)
   ========================================= */
.mcb-landing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 20px 0;
}

.mcb-cat-card {
    aspect-ratio: 16/9;
    background: rgba(255,255,255,0.05); 
    border: 1px solid rgba(255,255,255,0.1);
    color: inherit;
    border-radius: 12px;
    
    font-size: 1.1em;
    font-weight: 800;
    text-transform: uppercase;
    
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: none;
}

.mcb-cat-card:hover {
    background: rgba(255,255,255,0.1);
    transform: scale(1.02);
}


/* =========================================
   4. LISTA DE PRODUCTOS (CARTA)
   ========================================= */

/* Contenedor Base */
.mcb-grid {
    display: block;
    width: 100%;
}

/* GRUPO DE SECCIÓN */
.mcb-section-group {
    display: grid;
    grid-template-columns: 1fr; /* 1 columna móvil */
    gap: 20px;
    margin-bottom: 40px;
    animation: fadeIn 0.3s ease-in-out;
}

/* TÍTULOS DE SECCIÓN */
.mcb-section-header {
    grid-column: 1 / -1; /* Ocupa todo el ancho */
    margin: 20px 0 10px 0;
    
    font-size: 1.6em;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.2;
    opacity: 0.9;
    
    border: none;
    padding: 0;
}

/* ITEM PRODUCTO (FLAT) */
.mcb-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    
    /* Sin bordes ni fondos */
    background: transparent;
    border: none;
    padding: 0;
    min-width: 0;
}

/* Imagen */
.mcb-img-wrap { flex-shrink: 0; }

.mcb-img {
    width: 100px;
    height: 100px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    background-color: transparent;
}

/* Ocultar si no hay foto */
.mcb-no-img { display: none; }

/* Contenido Texto */
.mcb-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mcb-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
    gap: 10px;
}

.mcb-title {
    margin: 0;
    font-size: 1.05em;
    font-weight: 700;
    line-height: 1.3;
    color: inherit;
}

.mcb-price {
    font-weight: 700;
    white-space: nowrap;
    font-size: 1.05em;
    opacity: 0.9;
}

.mcb-desc {
    font-size: 0.9em;
    opacity: 0.7;
    line-height: 1.5;
    margin: 0;
}
.mcb-desc p { margin: 0; }


/* =========================================
   5. RESPONSIVE (PC / TABLET)
   ========================================= */
@media (min-width: 768px) {
    /* Lista de productos a 2 columnas */
    .mcb-section-group {
        grid-template-columns: 1fr 1fr;
        column-gap: 40px;
        row-gap: 30px;
    }
    
    /* Landing de categorías a 4 columnas */
    .mcb-landing-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Animación de entrada */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}