/* === PALETA DE COLORES Y VARIABLES === */
:root {
    --color-fondo-principal: #1A1A1A;
    --color-fondo-tarjeta: #2A2A2A;
    --color-texto-claro: #FFFFFF;
    --color-acento-verde: #00FF41;
    --color-acento-amarillo: #FFD700;
}

/* === ESTILOS GENERALES Y RESET === */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--color-texto-claro);
    background-color: var(--color-fondo-principal);
    padding-bottom: 80px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================================
   ESTILOS DEL MENÚ DEL LOCAL (menu_local.php)
   ========================================= */

#cabecera-local {
    text-align: center;
    padding: 30px 20px 20px;
}

.nombre-local {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 5px;
}

.slogan-local {
    color: var(--color-acento-verde);
    font-size: 1.1em;
    font-weight: 500;
}

/* Botón WhatsApp */
.btn-whatsapp-flotante {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    background-color: var(--color-acento-verde);
    color: #1A1A1A;
    border-radius: 50px;
    font-weight: bold;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95em;
}

.icono-whatsapp {
    width: 20px;
    height: 20px;
    fill: #1A1A1A;
}

/* Navegación Categorías */
#nav-categorias {
    display: flex;
    overflow-x: auto;
    padding: 10px 15px;
    margin-bottom: 20px;
    background-color: var(--color-fondo-tarjeta);
    position: sticky;
    top: 0;
    z-index: 50;
    white-space: nowrap;
    border-bottom: 1px solid #444;
}

.categoria-item {
    padding: 8px 15px;
    margin: 0 5px;
    font-size: 0.9em;
    font-weight: 600;
    color: #AAA;
    border-bottom: 3px solid transparent;
}

.categoria-activa {
    border-bottom-color: var(--color-acento-amarillo);
    color: var(--color-acento-amarillo);
    font-weight: 700;
}

/* Lista Platillos */
#lista-platillos {
    padding: 0 15px;
}

.titulo-categoria {
    font-size: 1.5em;
    font-weight: 700;
    margin-top: 25px;
    margin-bottom: 15px;
}

.tarjeta-platillo {
    display: flex;
    background-color: var(--color-fondo-tarjeta);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.info-platillo {
    flex: 2;
    padding: 15px;
}

.imagen-container {
    flex: 1;
    max-width: 120px;
}

.imagen-platillo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nombre-platillo {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 5px;
}

.descripcion-platillo {
    font-size: 0.85em;
    color: #E0E0E0;
    margin-bottom: 10px;
    line-height: 1.4;
}

.precio {
    font-weight: 700;
    font-size: 1.2em;
    color: var(--color-acento-amarillo);
}

#pie-menu {
    text-align: center;
    padding: 40px 20px 20px;
    font-size: 0.8em;
    color: #888;
    line-height: 1.5;
}

.credito-hastatumesa {
    margin-top: 10px;
    font-weight: bold;
}

/* =========================================
   ESTILOS DE LA PÁGINA PRINCIPAL (index.php)
   ========================================= */

.hero-section {
    text-align: center;
    padding: 100px 20px; /* Más altura para más impacto visual */
    
    /* TRUCO: Capa negra al 70% de opacidad + La imagen de fondo */
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8)), url('../img/fondo_hero.png');
    
    background-size: cover;   /* Que cubra todo el ancho */
    background-position: center; /* Que se centre */
    background-repeat: no-repeat;
    
    border-bottom: none; /* Un borde neón abajo para cerrar con estilo */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); /* Sombra para darle profundidad */
}

.logo-principal-home {
    max-width: 380px; /* ¡Más grande para llenar el círculo! */
    height: auto;
    display: block;
    margin: 0 auto -20px auto; /* Margen negativo para acercar el de abajo */
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.5)); 
}

.search-bar {
    width: 100%;
    max-width: 500px;
    padding: 15px;
    border-radius: 30px;
    border: 2px solid var(--color-acento-verde);
    background: #000;
    color: white;
    font-size: 1em;
    margin-top: 20px;
    outline: none;
}

.seccion-titulo {
    padding: 0 20px;
    margin-top: 30px;
    color: var(--color-acento-amarillo);
    font-size: 1.3em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Grid de Locales */
.grid-locales {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    padding: 20px;
}

.card-local {
    background-color: var(--color-fondo-tarjeta);
    border-radius: 15px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.2s;
    display: block;
    text-decoration: none;
    border: 1px solid transparent;
}

.card-local:hover {
    transform: scale(1.03);
    border: 1px solid var(--color-acento-verde);
}

.card-img-top {
    width: 100%;
    height: 120px;
    object-fit: cover;
    background-color: #333;
}

.card-body {
    padding: 15px 10px;
}

.card-title {
    font-size: 1em;
    font-weight: bold;
    color: white;
    margin-bottom: 5px;
}

.card-info {
    font-size: 0.8em;
    color: #AAA;
}

.badge-calificacion {
    background-color: var(--color-acento-amarillo);
    color: black;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.8em;
}

/* === ESTILOS PARA EL LOGO EN EL ENCABEZADO === */
.contenedor-logo-header {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
    width: 100%; /* Asegura que el contenedor ocupe el ancho */
}

.logo-header {
    width: 120px;       /* Ancho fijo: Ni más, ni menos */
    height: 120px;      /* Alto fijo: Igual que el ancho */
    max-width: 120px;   /* Candado extra de seguridad */
    object-fit: cover;  /* Recorta la imagen para que llene el círculo sin deformarse */
    border-radius: 50%; /* Lo hace redondo */
    border: 3px solid var(--color-acento-verde);
    background-color: #000;
    box-shadow: 0 4px 15px rgba(0, 255, 65, 0.3);
}

/* Clases de utilidad */
.color-acento-verde { color: var(--color-acento-verde); }
.color-acento-amarillo { color: var(--color-acento-amarillo); }

/* =========================================
   NUEVO BOTÓN WHATSAPP MINIMALISTA (CORREGIDO)
   ========================================= */
.btn-whatsapp-minimal {
    position: fixed; /* Esto hace que flote respecto a la ventana */
    bottom: 25px;    /* Distancia desde abajo */
    right: 25px;     /* Distancia desde la derecha */
    
    width: 60px;     /* Tamaño del círculo */
    height: 60px;
    border-radius: 50%; /* Esto lo hace redondo */
    
    /* Degradado oficial WhatsApp */
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    
    /* Centrar el icono perfectamente */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Sombra Neón */
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    
    /* Z-INDEX SUPREMO: Para que nada lo tape */
    z-index: 999999 !important; 
    
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: flotar 3s ease-in-out infinite;
}

.btn-whatsapp-minimal:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.7);
}

/* Animación suave de flotación */
@keyframes flotar {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}

/* IMPORTANTE: Matar el estilo viejo que pueda estar estorbando */
.btn-whatsapp-flotante { display: none !important; }