/* 1. Ajustes Globales y Fuente */
* { box-sizing: border-box; }

body { 
    font-family: 'Poppins', sans-serif; 
    background-color: #e9ecef; /* Fondo gris para PC */
    margin: 0; 
    padding: 0;
}

/* Contenedor Maestro: Esto limita el ancho en PC y centra todo */
.app-wrapper {
    max-width: 500px;
    margin: 0 auto;
    background-color: #f8f9fa; /* Fondo de la app */
    min-height: 100vh;
    position: relative;
    padding-bottom: 80px; /* Espacio para el menú inferior */
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* 2. Header Moderno */
/* 2. Header Moderno - Ajustado para Nacional */
header { 
    background: linear-gradient(135deg, #e74c3c, #c0392b); 
    color: white; 
    padding: 15px 15px; /* Un poco menos de padding para dar espacio */
    position: sticky; 
    top: 0; 
    z-index: 1000;
    width: 100%;
}
header h1 { margin: 0; font-size: 1.2rem; font-weight: 800; }
header p { margin: 0; font-size: 0.75rem; opacity: 0.8; text-align: left; }

/* Aseguramos que el contenido del header sea flexible */
header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 3. Contenedor de contenido */
.container { 
    padding: 15px; 
}

.grid-comida { 
    display: grid; 
    grid-template-columns: 1fr 1fr; /* Siempre 2 columnas en móvil y PC */
    gap: 12px; 
}

/* 4. Tarjetas de Platillos (Cards) */
.card { 
    background: white; 
    border-radius: 12px; 
    overflow: hidden; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); 
}
.card img { 
    width: 100%; 
    height: 120px; 
    object-fit: cover; 
}
.card-info { padding: 10px; }
.card-info h3 { 
    margin: 0; 
    font-size: 0.85rem; 
    color: #2c3e50; 
    height: 35px; 
    line-height: 1.2;
    overflow: hidden;
}
.price { 
    color: #27ae60; 
    font-weight: 700; 
    font-size: 1rem; 
    margin: 4px 0;
}
.colonia { 
    font-size: 0.7rem; 
    color: #95a5a6; 
    margin-bottom: 8px;
}

/* 5. Botón de WhatsApp */
.btn-ws { 
    display: block; 
    background: #25d366; 
    color: white; 
    text-align: center; 
    padding: 8px; 
    text-decoration: none; 
    border-radius: 6px; 
    font-weight: bold; 
    font-size: 0.75rem;
}

/* 6. Mapa */
#map { 
    height: 220px; 
    width: 100%; 
    border-radius: 15px; 
    margin-bottom: 20px; 
    z-index: 1; 
}

/* 7. Menú Inferior (Corregido para PC) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 500px; /* Importante: mismo que app-wrapper */
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    box-shadow: 0 -3px 15px rgba(0,0,0,0.08);
    z-index: 2000;
}
.nav-item {
    text-decoration: none;
    color: #bdc3c7;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.7rem;
}
.nav-item i { font-size: 1.2rem; margin-bottom: 3px; }
.nav-item:hover { color: #e74c3c; }

/* Ajuste final para móviles */
@media (max-width: 500px) {
    .app-wrapper {
        box-shadow: none;
    }
}
.search-box input:focus {
    border-color: #e74c3c !important;
    box-shadow: 0 0 8px rgba(231, 76, 60, 0.2);
}

#titulo-seccion {
    transition: all 0.3s ease;
}