* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f4f6f8; /* <--- ¡Acá está el culpable viejo! */
    color: #333;
}

header {
    background-color: #ffffff !important;
    padding: 0px 20px !important;
    display: grid;
    grid-template-columns: 1fr auto 1fr; 
    align-items: center;
    border-bottom: 2px solid #cbd5e1 !important; /* <--- ¡Esta línea crea el corte oscuro que buscaban! */
}

.logo-container {
    grid-column: 2; /* Fuerza al logo a meterse exactamente en la columna del medio */
    text-align: center;
}

.carrito-icono {
    grid-column: 3; /* Manda el carrito a la columna de la extrema derecha */
    justify-self: end;
}

.cart-icon {
    background-color: #25d366;
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.grid-productos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card-producto {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
}

.card-producto img {
    max-width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 10px;
}

.card-producto h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.card-producto .precio {
    font-size: 1.2rem;
    color: #2c3e50;
    font-weight: bold;
    margin-bottom: 10px;
}

.btn-agregar {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
}

/* Modal Carrito */
.carrito-modal {
    display: none;
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 200;
    justify-content: flex-end;
}

.carrito-contenido {
    background: white;
    width: 100%;
    max-width: 400px;
    height: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.cerrar {
    font-size: 28px;
    cursor: pointer;
    align-self: flex-end;
}

.item-carrito {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
}

.btn-whatsapp {
    background-color: #25d366;
    color: white;
    border: none;
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
}

#form-pedido input, #form-pedido select {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* --- ESTILO Y TAMAÑO DEL LOGO --- */
.logo-local {
    width: 270px !important;
    height:100px !important;
    object-fit: fill !important; /* El 'fill' fuerza a que la imagen ocupe todo ese rectángulo estirándose */
    vertical-align: middle !important;
}

/* --- AJUSTE DEL CARRITO --- */
.cart-icon {
    font-size: 16px !important;
    padding: 10px 15px !important;
}

header h1 {
    font-family: 'Verdana', sans-serif !important;
}

/* --- Estilos para la barra de búsqueda y categorías --- */
/* La barra reparte los elementos: buscador a la izquierda y categorías a la derecha */
.barra-acciones {
    background-color: #ffffff !important;
    border-bottom: 1px solid #ddd !important;
    padding: 10px 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important; /* Manda buscador izq y categorías der */
    gap: 15px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    position: relative !important;
    z-index: 50 !important;
}

/* El buscador con tamaño fijo a la izquierda, sin estirarse al medio */
.buscador-container {
    display: flex !important;
    align-items: center !important;
    width: 280px !important; /* <--- Tamaño fijo compacto a la izquierda */
    max-width: 100% !important;
    background: #fff !important;
    border: 1px solid #ccc !important;
    border-radius: 6px !important;
    overflow: hidden !important;
}

/* La lupita bien contra el borde izquierdo */
.buscador-container button {
    background: transparent !important;
    border: none !important;
    padding: 8px 10px !important;
    cursor: pointer !important;
    font-size: 16px !important;
    order: 1 !important; /* <--- Asegura que la lupa esté primera a la izquierda */
}

/* El texto de búsqueda al lado de la lupita */
.buscador-container input[type="text"] {
    border: none !important;
    outline: none !important;
    padding: 8px 10px !important;
    width: 100% !important;
    font-size: 15px !important;
    background: transparent !important;
    order: 2 !important;
}

.buscador-container button {
    padding: 8px 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.categorias-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.categorias-container button {
    padding: 8px 14px;
    background-color: #007bff; /* <--- Color azul igual al de los otros botones */
    color: white;             /* <--- Letra blanca para que resalte */
    border: none;             /* <--- Sin borde gris */
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.categorias-container button:hover {
    background-color: #0056b3; /* <--- Un azul un poquito más oscuro cuando pasás el mouse por encima */
}

/* --- Centrado general y contenedor --- */
.main-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.grid-productos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* --- Unificación de todos los botones azules y efecto hover --- */

/* 1. Botón de la lupita */
.buscador-container button {
    background-color: #007bff;
    color: white;
    border: none;
    transition: background-color 0.2s ease;
}
.buscador-container button:hover {
    background-color: #0056b3 !important;
}

/* 2. Botones de categorías */
.categorias-container button {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}
.categorias-container button:hover {
    background-color: #0056b3 !important;
}

/* 3. Botones de "Agregar al Carrito" en las tarjetas */
.btn-agregar {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.btn-agregar:hover {
    background-color: #0056b3 !important;
}

/* 4. Botón de enviar pedido por WhatsApp */
.btn-enviar-wsp {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.btn-enviar-wsp:hover {
    background-color: #0056b3 !important;
}

/* --- Estilos del Menú Desplegable de Categorías --- */
.dropdown-categorias {
    position: relative;
    display: inline-block;
}

.btn-dropdown {
    padding: 8px 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.btn-dropdown:hover {
    background-color: #0056b3;
}

.dropdown-contenido {
    display: none;
    position: absolute;
    right: 0;
    top: 110%;
    background-color: #ffffff;
    min-width: 220px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.15);
    border-radius: 8px;
    z-index: 100;
    border: 1px solid #eee;
}

.dropdown-contenido button {
    width: 100%;
    padding: 10px 16px;
    text-align: left;
    background-color: white;
    color: #333;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
    display: block;
}

.dropdown-contenido button:hover {
    background-color: #f1f5f9;
}

/* --- Ajuste fino de colores: Barra blanca y fondo azul claro --- */

/* 1. Fondo general de la página (detrás de los productos) en azul clarito vibrante */
body {
    background-color: rgba(0, 123, 255, 0.12) !important; /* El mismo azul de los botones pero clarito y transparente */
}

/* 2. Barra de categorías y buscador en blanco limpio */
.barra-acciones {
    background-color: #ffffff !important;
    border-bottom: 1px solid #ddd !important;
}

/* 3. Título "Todos los Productos" en color oscuro para que resalte sobre el fondo claro */
.main-container h2, #titulo-categoria {
    color: #1e293b !important;
}

/* 4. Las tarjetas de productos se quedan blancas y prolijas */
.card-producto {
    background-color: #ffffff !important;
    color: #333333 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.card-producto h3 {
    color: #222222 !important;
}

@media (max-width: 768px) {
    .carrito-icono {
        display: flex !important;
        align-items: center !important;
        gap: 5px !important;
        font-size: 14px !important;
    }
    
    /* Ocultamos la palabra "Carrito" en celu para que solo quede el icono y el contador prolijos */
    .carrito-icono span:not(#cart-count) {
        display: none !important; 
    }
}

/* Botón Flotante de WhatsApp a la Derecha */
.btn-whatsapp {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important; /* <--- ¡Acá lo mandamos al otro lado! */
    width: 55px !important;
    height: 55px !important;
    background-color: #25d366 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3) !important;
    z-index: 9999 !important;
}

.btn-whatsapp img {
    width: 32px !important;
    height: 32px !important;
    max-width: 32px !important;
    object-fit: contain !important;
}

/* Estilo para la barra de ubicación */
.info-ubicacion {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #475569;
    font-weight: 500;
}

/* Ajuste del header para que acomode la dirección sin desarmarse */
header.header-tienda {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important; /* Permite que baje prolijo si el celu es muy chico */
    padding: 10px 20px !important;
}

/* Mandamos la dirección bien abajo, cerquita de la línea negra */
.info-ubicacion {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 13px !important;
    color: #475569 !important;
    font-weight: 500 !important;
    margin-top: auto !important; /* <--- Esto empuja el texto hacia el piso del header */
    padding-bottom: 2px !important;
}

/* Aseguramos que el header tenga altura para que el "margin-top: auto" funcione y baje la dirección */
header.header-tienda {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    align-items: center !important;
    padding: 10px 20px !important;
    background-color: #ffffff !important;
    border-bottom: 2px solid #1e293b !important;
}

/* Ajuste final para celulares: Logo centrado y carrito a la derecha */
@media (max-width: 768px) {
    header.header-tienda {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 8px 12px !important;
        gap: 6px !important;
        position: relative !important;
    }

    /* Renglón 1: Dirección arriba prolija */
    .info-ubicacion {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
        font-size: 11px !important;
        color: #64748b !important;
        margin-top: 0 !important;
        padding-bottom: 4px !important;
        border-bottom: 1px dashed #e2e8f0 !important;
    }

    /* Renglón 2: Contenedor principal para centrar el logo */
    .logo-container {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important; /* <--- ¡Centra el logo en medio de la pantalla! */
        align-items: center !important;
        margin: 0 !important;
        position: relative !important;
    }

    /* Tamaño ideal y firme para el logo */
    .logo-local {
        max-width: 150px !important;
        height: auto !important;
    }

    /* Mandamos el carrito bien abajo a la derecha, al ras de la línea negra */
    .carrito-icono {
        position: absolute !important;
        right: 12px !important;
        bottom: 8px !important; /* <--- ¡Lo bajamos para que se apoye contra el piso del header! */
        top: auto !important;
        font-size: 12px !important;
        background: #ffffff !important;
        padding: 4px 8px !important;
        border-radius: 6px !important;
        box-shadow: 0 2px 5px rgba(0,0,0,0.08) !important;
    
}