:root {
    --color-primario: #f22a55;
    --color-fondo: #f4f5f7;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--color-fondo);
    -webkit-font-smoothing: antialiased;
    padding-bottom: 60px; /* Espacio para la barra inferior en móvil */
    margin: 0;
}

/* FORZAR QUE EL CONTENEDOR OCUPE TODO EL ANCHO */
.app-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0;
    padding: 0;
    background-color: transparent;
    min-height: 100vh;
    overflow-x: hidden;
}

/* NAV INFERIOR (MÓVIL) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100% !important;
    max-width: 100% !important;
    height: 60px;
    background-color: var(--color-primario);
    display: flex;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.bottom-nav .nav-btn {
    background-color: rgba(0, 0, 0, 0.2);
    border: none;
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.2s;
}

.bottom-nav .nav-btn:active { 
    background-color: rgba(0, 0, 0, 0.4); 
}

/* --- REGLAS EXCLUSIVAS PARA DESKTOP Y TABLETS GRANDES --- */
@media (min-width: 768px) {
    body {
        padding-bottom: 0 !important; /* Quita espacio de abajo */
        padding-top: 60px !important; /* Espacio para navbar superior */
    }
    
    .bottom-nav {
        display: none !important; /* MATAR la barra inferior en PC */
    }

    .desktop-nav {
        display: block !important; 
    }

    /* Centrar contenido y darle formato de panel ancho */
    .categorias-container {
        max-width: 1200px !important;
        margin: -60px auto 40px auto !important;
        border-radius: 30px !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        padding: 40px !important;
        background-color: white;
    }

    .hero-section {
        height: 450px !important; /* Un poco más alto en PC para lucir la foto */
    }
}

/* Ocultar barra superior de PC cuando estamos en móvil */
@media (max-width: 767px) {
    .desktop-nav {
        display: none !important;
    }
}