@media screen and (max-width: 768px) {
    /* Ajustes de la Barra Superior */
    .top-bar {
        padding: 5px 10px;
        height: auto;
        flex-wrap: nowrap;
        align-items: center;
        flex-direction: row;
        gap: 10px;
        padding: 10px 15px;
        justify-content: space-between;
    }

    .menu-toggle {
        display: flex;
        padding: 5px;
        order: 0;
    }
    .menu-toggle:hover {
        background-color: #e0e0e0;
        color: #007bff;
        transition: background-color 0.2s ease, color 0.2s ease;
    }

    .nombre-local {
        flex: 0;
        font-size: 16px;
        margin-right: 10px;
        white-space: nowrap;
        order: 1;
    }

    .barra-busqueda {
        flex: 1;
        padding: 0;
        order: 2;
    }

    .search-bar {
        max-width: 100%;
        width: 100%;
        padding: 5px;
        font-size: 14px;
    }

    .iconos-contacto {
        flex: 0;
        gap: 0px;
        align-items: center;
        order: 3;
    }

    .icono-ws {
        font-size: 0;
    }

    .editor-toggle {
        display: flex !important;
        padding: 5px;
    }

    .editor-toggle:hover {
        background-color: #e0e0e0;
        color: #007bff;
        transition: background-color 0.2s ease, color 0.2s ease;
    }

    .editor-toggle i {
        font-size: 18px;
    }

    .editor-toggle i:hover {
        color: #007bff;
        transition: color 0.2s ease;
    }

    .theme-icon {
        font-size: 18px;
    }

    .theme-icon:hover {
        color: #007bff;
        transform: scale(1.1);
        transition: color 0.2s ease, transform 0.2s ease;
    }

    .icono-ubicacion i {
        font-size: 0px;
    }

    .icono-ubicacion {
        font-size: 0px;
    }

    /* Menú de Navegación */
    .nav-container {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 32%;
        background-color: var(--nav-bg);
        box-shadow: 0 4px 8px var(--card-shadow);
        z-index: 20;
        transition: background-color 0.3s ease;
        overflow: hidden;
    }

    .nav-container.active {
        display: block;
    }

    .nav-bar {
        padding: clamp(10px, 2vw, 15px);
        width: 100%;
        box-sizing: border-box;
        background: none;
    }

    .nav-bar ul {
        flex-direction: column;
        gap: 10px;
        padding: 0;
        align-items: flex-start;
        width: 100%;
        background: none;
        list-style: none;
        margin: 0;
    }

    .nav-bar a {
        padding: clamp(8px, 2vw, 10px) clamp(10px, 2vw, 15px);
        font-size: 14px;
        text-align: left;
        color: var(--text-color);
        background-color: rgba(255, 255, 255, 0.05);
        border-radius: 5px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
        width: 100%;
        box-sizing: border-box;
        text-decoration: none;
    }

    .nav-bar a:hover,
    .nav-bar a:focus {
        background-color: var(--nav-hover-bg);
        color: var(--nav-hover-text);
        transform: translateX(5px);
    }

    /* Hover para modo oscuro */
    [data-theme="dark"] .nav-bar a:hover {
        background-color: #5a5a5a;
        color: #00b7ff;
    }

    /* Estilos para las tarjetas de productos */
    .product-card {
        transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease, background-color 0.3s ease;
        border: 2px solid transparent;
    }

    /* Hover en modo claro */
    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 16px var(--card-hover-shadow);
        border: 2px solid #ffcccb;
        background-color: #fff5f5;
    }

    /* Hover en modo oscuro */
    [data-theme="dark"] .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 16px var(--card-hover-shadow);
        border: 2px solid #ff6f61;
        background-color: #3a3a3a;
    }

    /* Ajustes adicionales para la galería de productos */
    .product-gallery {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    /* Contenedor Principal */
    .main-container {
        height: calc(100vh - 52px);
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
    }

    /* Modo Oscuro para la Top Bar */
    [data-theme="dark"] .top-bar {
        background: #333 !important;
        box-shadow: 0 2px 5px rgba(255, 255, 255, 0.1) !important;
    }

    [data-theme="dark"] .top-bar .icono-ws i {
        color: #ffffff !important;
    }

    [data-theme="dark"].icono-ws i {
        color: #ffffff !important;
    }

    [data-theme="dark"] .top-bar .editor-toggle i {
        color: #ffffff !important;
    }

    [data-theme="dark"] .top-bar .editor-toggle i:hover {
        color: #66b0ff;
    }

    [data-theme="dark"] .top-bar .theme-icon {
        color: #ffffff !important;
    }

    [data-theme="dark"] .top-bar .theme-icon:hover {
        color: #66b0ff;
    }

    [data-theme="dark"] .top-bar .search-bar {
        background: #444 !important;
        color: #e0e0e0 !important;
        border: 1px solid #666 !important;
    }

    [data-theme="dark"] .menu-toggle:hover {
        background-color: #555;
        color: #66b0ff;
    }

    [data-theme="dark"] .nav-bar a:hover {
        background-color: #555;
        color: #66b0ff;
    }

    [data-theme="dark"] .editor-toggle:hover {
        background-color: #555;
        color: #66b0ff;
    }
}