:root{
    --primary:#ff5a00;

    --bg:#f7f7f8;
    --card:#ffffff;

    --text:#121212;
    --muted:#6b7280;

    --radius:24px;

    --shadow:0 10px 30px rgba(0,0,0,.08);
    --shadow-hover:0 18px 42px rgba(0,0,0,.12);

    --transition:.25s ease;
}

        * { margin: 0; padding: 0; box-sizing: border-box; }
        body {
            background: var(--bg);
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
            padding: 24px;
            color: var(--text);
            -webkit-font-smoothing: antialiased;
            text-rendering: optimizeLegibility;
        }
        .container { max-width: 1200px; margin: 0 auto; }
        .header {
            text-align: center;
            margin-bottom: 32px;
            padding-bottom: 16px;
            border-bottom: 1px solid #e0e0e0;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px;
        }
        .logo-principal {
            width: 80px; height: 80px;
            object-fit: contain;
            border-radius: 20px;
            background: var(--card);
            padding: 8px;
            box-shadow: var(--shadow);
        }
        .header-text h1 { font-size: 1.8rem; font-weight: 600; color: #2c2c2c; margin-bottom: 8px; }
        .sub { color: var(--muted); font-size: 0.9rem; }
        .filtros {
            display: flex;
            justify-content: center;
            gap: 12px;
            margin-bottom: 32px;
            flex-wrap: wrap;
        }
        .btn-filtro {
            background: var(--card);
            border: 1px solid #d0d0d0;
            padding: 8px 20px;
            border-radius: 30px;
            font-size: 0.85rem;
            font-weight: 500;
            cursor: pointer;
            transition: all var(--transition);
            color: #444;
        }
        .btn-filtro.activo { background: #1a1a1a; color: white; border-color: var(--text); }
        .grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
            gap: 24px;
            margin-bottom: 48px;
        }
        .card {
            background: var(--card);
            border-radius: var(--radius);
            overflow: hidden;
            box-shadow: var(--shadow);
            border: 1px solid rgba(18,18,18,0.06);
            transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
        }
        .card:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-hover);
            border-color: rgba(18,18,18,0.10);
        }
        .card-header {
            background: #fafafa;
            padding: 16px 20px;
            border-bottom: 1px solid #eaeaea;
            display: flex;
            align-items: center;
            gap: 16px;
        }
        .logo-carrito {
            width: 60px; height: 60px;
            object-fit: contain;
            border-radius: 12px;
            background: var(--card);
            padding: 6px;
            box-shadow: 0 1px 4px rgba(0,0,0,0.1);
            flex-shrink: 0;
        }
        .info-header { flex: 1; }
        .nombre { font-size: 1.4rem; font-weight: 600; color: var(--text); margin-bottom: 4px; }
        .especialidad {
            font-size: 0.75rem; color: var(--muted);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            line-height: 1.3;
        }
        .estado-badge {
            display: inline-block;
            font-size: 0.7rem;
            font-weight: 500;
            padding: 4px 12px;
            border-radius: 20px;
            margin-top: 8px;
        }
        .estado-badge.abierto { background: #e6f4ea; color: #1e7e34; }
        .estado-badge.cerrado { background: #fce8e6; color: #c5221f; }

        /* ── PROMO BANNER: ahora solo es informativo / decorativo ── */
        .promo-banner {
            background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
            color: white;
            padding: 10px 16px;
            margin: 12px 0;
            border-radius: 12px;
            font-size: 0.8rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 10px;
            box-shadow: 0 2px 8px rgba(255,107,53,0.2);
        }
        .promo-banner span:first-child { font-size: 1.2rem; }
        .promo-banner .promo-texto { flex: 1; }

        /* ── CATEGORÍA PROMOS en el menú ── */
        .menu-categoria.promo-cat {
            background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
            color: white;
            padding: 6px 10px;
            border-radius: 8px;
            border-bottom: none;
            margin-top: 0;
        }

        .card-body { padding: 20px; }
        .descripcion { color: #555; font-size: 0.85rem; line-height: 1.4; margin-bottom: 16px; }
        .horario-container {
            background: #f8f8f8;
            border-radius: 12px;
            padding: 12px;
            margin: 16px 0;
            font-size: 0.8rem;
        }
        .turno { display: flex; justify-content: space-between; padding: 4px 0; }
        .turno-nombre { font-weight: 500; color: #444; }
        .turno-horario { color: #222; font-family: monospace; }
        .badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
        .badge {
            background: #f0f0f0;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.7rem;
            font-weight: 500;
            color: #444;
        }
        .badge.delivery { background: #e3f2fd; color: #1565c0; }
        .badge.local { background: #e8f5e9; color: #2e7d32; }
        .badge.solo-delivery { background: #fff3e0; color: #e65100; }
        .badge.pago { background: #f3e8ff; color: #6b21a8; }
        .badge.pastas { background: #fff8e1; color: #f57f17; }

        .btn-menu {
            width: 100%;
            background: var(--card);
            border: 1px solid #d0d0d0;
            padding: 10px;
            border-radius: 30px;
            font-size: 0.85rem;
            font-weight: 500;
            cursor: pointer;
            margin: 12px 0;
            transition: all var(--transition);
            color: #333;
        }
        .btn-menu:hover { background: #f5f5f5; border-color: #aaa; }
        .menu-preview {
            display: none;
            margin: 16px 0;
            border-top: 1px solid #eaeaea;
            padding-top: 16px;
            max-height: 400px;
            overflow-y: auto;
        }
        .menu-preview.open { display: block; }
        .menu-categoria {
            font-weight: 600;
            font-size: 0.8rem;
            color: var(--text);
            margin: 16px 0 8px;
            padding-bottom: 4px;
            border-bottom: 1px solid #eaeaea;
        }
        .menu-categoria:first-child { margin-top: 0; }
        .menu-item {
            display: grid;
            grid-template-columns: 72px 1fr auto;
            gap: 12px;
            align-items: center;

            padding: 10px 0;
            font-size: 0.8rem;
            border-bottom: 1px dashed #f0f0f0;
        }

        .menu-item:not(:has(.foto-producto)) {
            grid-template-columns: 1fr auto;
        }
        .menu-item-info {
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }
        .menu-item-nombre { color: #444; display: block; font-weight: 600; }
        .menu-item-descripcion { font-size: 0.7rem; color: #999; display: block; }
        .menu-item-precio-agregar {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-shrink: 0;
        }
        .precio { font-weight: 600; color: var(--text); }
        .btn-agregar {
            background: #1a1a1a;
            color: white;
            border: none;
            border-radius: 50%;
            width: 26px; height: 26px;
            font-size: 1rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            transition: background 0.2s;
            line-height: 1;
        }
        .btn-agregar:hover { background: #333; }
        /* Botón + naranja para ítems de promo */
        .btn-agregar.promo { background: #ff6b35; }
        .btn-agregar.promo:hover { background: #e05520; }

        .nota-menu {
            font-size: 0.7rem;
            color: var(--muted);
            text-align: center;
            margin-top: 12px;
            padding-top: 8px;
            border-top: 1px solid #eaeaea;
        }
        .botones { display: flex; gap: 12px; margin-top: 16px; }
        .btn {
            flex: 1;
            text-align: center;
            padding: 10px 8px;
            border-radius: 30px;
            text-decoration: none;
            font-weight: 500;
            font-size: 0.8rem;
            transition: var(--transition);
            cursor: pointer;
        }
        .btn-llamar { background: #1a1a1a; color: white; border: none; }
        .btn-llamar:hover { background: #333; }
        .btn-wsp { background: #25D366; color: white; border: none; }
        .btn-wsp:hover { background: #20b859; }
        .btn-maps { background: var(--card); color: var(--text); border: 1px solid #d0d0d0; }
        .btn-maps:hover { background: #f5f5f5; }
        .donacion-section {
            text-align: center;
            background: var(--card);
            border-radius: var(--radius);
            padding: 32px 20px;
            margin-top: 20px;
            border: 1px solid #eaeaea;
        }
        .donacion-section h3 { font-weight: 500; font-size: 1.2rem; margin-bottom: 8px; color: #2c2c2c; }
        .donacion-section p { color: var(--muted); font-size: 0.85rem; margin-bottom: 16px; }
        .btn-donar {
            background: #f0f0f0;
            color: #333;
            padding: 10px 28px;
            font-size: 0.85rem;
            font-weight: 500;
            border: 1px solid #d0d0d0;
            border-radius: 30px;
            cursor: pointer;
            transition: var(--transition);
        }
        .btn-donar:hover { background: #e0e0e0; }
        footer { text-align: center; margin-top: 40px; color: #999; font-size: 0.7rem; }
        .logo-error {
            display: flex;
            align-items: center;
            justify-content: center;
            background: #eef2f5;
            color: #5a6e7a;
            font-weight: bold;
            font-size: 24px;
        }

        /* ===== CARRITO FLOTANTE ===== */
        .carrito-flotante {
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            background: #1a1a1a;
            color: white;
            padding: 14px 24px;
            border-radius: 50px;
            cursor: pointer;
            display: none;
            align-items: center;
            gap: 12px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.3);
            z-index: 1000;
            font-size: 0.9rem;
            font-weight: 500;
            white-space: nowrap;
            transition: transform 0.2s;
            border: none;
        }
        .carrito-flotante:hover { transform: translateX(-50%) scale(1.03); }
        .carrito-flotante.visible { display: flex; }
        .carrito-badge {
            background: #25D366;
            color: white;
            border-radius: 50%;
            width: 22px; height: 22px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.75rem;
            font-weight: 700;
        }

        /* ===== MODAL CARRITO ===== */
        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.5);
            z-index: 2000;
            display: none;
            align-items: flex-end;
            justify-content: center;
        }
        .modal-overlay.visible { display: flex; }
        .modal-carrito {
            background: var(--card);
            border-radius: var(--radius) var(--radius) 0 0;
            width: 100%;
            max-width: 520px;
            max-height: 90vh;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            animation: slideUp 0.25s ease;
        }
        @keyframes slideUp {
            from { transform: translateY(100%); }
            to { transform: translateY(0); }
        }
        .modal-header {
            padding: 20px 20px 12px;
            border-bottom: 1px solid #eaeaea;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .modal-header h2 { font-size: 1.1rem; font-weight: 600; }
        .modal-header h2 span { font-size: 0.8rem; color: var(--muted); font-weight: 400; margin-left: 6px; }
        .btn-cerrar-modal {
            background: #f0f0f0;
            border: none;
            border-radius: 50%;
            width: 32px; height: 32px;
            font-size: 1rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .modal-body { overflow-y: auto; flex: 1; padding: 16px 20px; }
        .direccion-section {
            background: #f8f8f8;
            border-radius: 12px;
            padding: 12px 16px;
            margin-bottom: 16px;
        }
        .notas-section {
            background: #f8f8f8;
            border-radius: 12px;
            padding: 12px 16px;
            margin-bottom: 16px;
        }
        .direccion-label {
            font-size: 0.7rem;
            color: var(--muted);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 6px;
        }
        .direccion-input-row { display: flex; gap: 8px; align-items: center; }
        .direccion-input {
            flex: 1;
            border: 1px solid #ddd;
            border-radius: 8px;
            padding: 8px 10px;
            font-size: 0.85rem;
            outline: none;
        }
        .direccion-input:focus { border-color: var(--text); }
        .btn-guardar-dir {
            background: #1a1a1a;
            color: white;
            border: none;
            border-radius: 8px;
            padding: 8px 12px;
            font-size: 0.78rem;
            cursor: pointer;
            white-space: nowrap;
        }
        .direccion-guardada {
            font-size: 0.85rem;
            color: #333;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .btn-cambiar-dir {
            background: none;
            border: none;
            color: var(--muted);
            font-size: 0.75rem;
            cursor: pointer;
            text-decoration: underline;
        }
        .carrito-item {
            display: flex;
            align-items: center;
            padding: 10px 0;
            border-bottom: 1px solid #f0f0f0;
            gap: 10px;
        }
        .carrito-item-info { flex: 1; }
        .carrito-item-nombre { font-size: 0.85rem; font-weight: 500; color: var(--text); }
        .carrito-item-precio-unit { font-size: 0.75rem; color: var(--muted); }
        .carrito-item-controles { display: flex; align-items: center; gap: 8px; }
        .btn-qty {
            background: #f0f0f0;
            border: none;
            border-radius: 50%;
            width: 28px; height: 28px;
            font-size: 1rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.15s;
        }
        .btn-qty:hover { background: #e0e0e0; }
        .carrito-item-qty { font-size: 0.9rem; font-weight: 600; min-width: 20px; text-align: center; }
        .carrito-item-total { font-size: 0.85rem; font-weight: 600; min-width: 52px; text-align: right; }
        .pago-section { margin: 16px 0; }
        .pago-label {
            font-size: 0.7rem;
            color: var(--muted);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 8px;
        }
        .pago-opciones { display: flex; gap: 8px; flex-wrap: wrap; }
        .btn-pago {
            flex: 1;
            min-width: 90px;
            padding: 8px 12px;
            border: 1.5px solid #ddd;
            border-radius: 10px;
            background: var(--card);
            font-size: 0.8rem;
            cursor: pointer;
            text-align: center;
            transition: all 0.15s;
        }
        .btn-pago.seleccionado {
            border-color: var(--text);
            background: #1a1a1a;
            color: white;
        }
        .modal-footer {
            padding: 16px 20px;
            border-top: 1px solid #eaeaea;
            background: var(--card);
        }
        .resumen-total {
            display: flex;
            justify-content: space-between;
            margin-bottom: 14px;
            font-size: 0.85rem;
        }
        .resumen-total .label { color: var(--muted); }
        .resumen-total .valor { font-weight: 700; font-size: 1rem; }
        .costo-envio-info { font-size: 0.75rem; color: var(--muted); margin-top: 2px; }
        .btn-pedir-wsp {
            width: 100%;
            background: #25D366;
            color: white;
            border: none;
            border-radius: 30px;
            padding: 14px;
            font-size: 0.95rem;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: background 0.2s;
        }
        .btn-pedir-wsp:hover { background: #20b859; }
        .btn-pedir-wsp:disabled { background: #ccc; cursor: not-allowed; }
        .carrito-vacio { text-align: center; padding: 40px 20px; color: #999; }
        .carrito-vacio .icono { font-size: 2.5rem; margin-bottom: 8px; }

        @media (max-width: 600px) {
            .grid { grid-template-columns: 1fr; }
            body { padding: 16px; }
            .botones { flex-direction: column; gap: 8px; }
            .card-header { flex-direction: column; text-align: center; }
            .logo-carrito { width: 70px; height: 70px; }
            .header { flex-direction: column; }
        }
    
        /* ===== ROSARIO YA V2 · UI PRO ===== */

        /* Cards premium */
        .card {
            transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
        }

        .card:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-hover);
            border-color: rgba(18,18,18,0.10);
        }

        /* Botón menú PRO */
        .btn-menu {
            background: linear-gradient(135deg, var(--primary), #ff7a1a);
            color: white;
            border: none;
            box-shadow: 0 10px 22px rgba(255,90,0,0.24);
        }

        .btn-menu:hover {
            background: linear-gradient(135deg, #f04f00, #ff6d0a);
            transform: translateY(-1px);
        }

        /* Menú desplegable PRO */
        .menu-preview {
            display: none;
            opacity: 0;
            transform: translateY(-8px);
            transition: opacity 0.25s ease, transform 0.25s ease;
        }

        .menu-preview.open {
            display: block;
            opacity: 1;
            transform: translateY(0);
        }

        /* Botón agregar */
        .btn-agregar {
            transition: transform 0.2s ease, background 0.2s ease;
        }

        .btn-agregar:hover {
            transform: scale(1.12);
        }

        /* Carrito flotante app-like */
        .carrito-flotante {
            transition: transform 0.25s ease, box-shadow 0.25s ease;
        }

        .carrito-flotante.visible {
            animation: popIn 0.25s ease;
        }

        .carrito-flotante.visible:hover {
            transform: translateX(-50%) scale(1.04);
            box-shadow: 0 8px 28px rgba(0,0,0,0.35);
        }

        @keyframes popIn {
            from {
                transform: translateX(-50%) scale(0.85);
                opacity: 0;
            }
            to {
                transform: translateX(-50%) scale(1);
                opacity: 1;
            }
        }

        /* Badges premium */
        .badge {
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

        .badge:hover {
            transform: scale(1.04);
        }

        /* Modal más pulido */
        .modal-carrito {
            box-shadow: 0 -12px 40px rgba(0,0,0,0.18);
        }

        .btn-pedir-wsp {
            box-shadow: 0 6px 18px rgba(37,211,102,0.25);
        }

        .btn-pedir-wsp:hover {
            transform: translateY(-1px);
        }

        /* Mejor lectura mobile */
        @media (max-width: 600px) {
            .card {
                border-radius: var(--radius);
            }

            .btn-menu {
                padding: 12px;
                font-size: 0.9rem;
            }

            .carrito-flotante {
                bottom: 16px;
                width: calc(100% - 32px);
                justify-content: center;
            }
        }
        /* ===== OPCIONES / INGREDIENTES ===== */

        .menu-item.tiene-opciones {
            align-items: start;
        }

        .opciones-submenu {
            display: none;
            grid-column: 1 / -1;
            width: 100%;
            background: #f8f9fa;
            border: 1.5px solid #e8e8e8;
            border-radius: 10px;
            padding: 12px;
            margin-top: 8px;
        }

        .opciones-submenu.open {
            display: block;
            animation: opcionesFade 0.15s ease;
        }

        @keyframes opcionesFade {
            from { opacity: 0; transform: translateY(-4px); }
            to   { opacity: 1; transform: translateY(0); }
        }

        .opciones-titulo {
            font-size: 0.72rem;
            font-weight: 700;
            color: var(--muted);
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin-bottom: 8px;
        }

        .opciones-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-bottom: 10px;
        }

        .opcion-check {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            background: var(--card);
            border: 1.5px solid #ddd;
            border-radius: 20px;
            padding: 4px 10px;
            cursor: pointer;
            font-size: 0.78rem;
            color: #333;
            transition: border-color 0.12s, background 0.12s;
            user-select: none;
        }

        .opcion-check:hover {
            border-color: #25D366;
        }

        .opcion-check input[type="checkbox"] {
            accent-color: #25D366;
            width: 13px;
            height: 13px;
            cursor: pointer;
            flex-shrink: 0;
        }

        .opcion-check.marcada {
            border-color: #25D366;
            background: #f0fff4;
            font-weight: 600;
            color: #1a8a42;
        }

        .btn-confirmar-opciones {
            width: 100%;
            background: #25D366;
            color: #fff;
            border: none;
            border-radius: 8px;
            padding: 9px;
            font-size: 0.83rem;
            font-weight: 700;
            cursor: pointer;
            transition: background 0.15s;
        }

        .btn-confirmar-opciones:hover {
            background: #1aa851;
        }

        .btn-confirmar-opciones.promo {
            background: #e67e22;
        }

        .btn-agregar.abierto {
            background: #e74c3c !important;
        }

        .carrito-item-opciones {
            font-size: 0.72rem;
            color: #1a8a42;
            margin: 2px 0 3px;
            font-style: italic;
        }

        .foto-producto {
            width: 72px;
            height: 72px;
            object-fit: cover;
            border-radius: 10px;
            background: #e5e7eb;
            margin: 0;
            display: block;
        }

.buscador-box {
    margin: 16px 0 20px;
    position: relative;
}

.buscador-box::before {
    content: "🔎";
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    opacity: 0.65;
    pointer-events: none;
}

.buscador-input {
    width: 100%;
    box-sizing: border-box;
    padding: 15px 16px 15px 44px;
    border: 1px solid #d1d5db;
    border-radius: var(--radius);
    font-size: 16px;
    background: var(--card);
    outline: none;
    box-shadow: var(--shadow);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.buscador-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255,90,0,0.14), var(--shadow);
    transform: translateY(-1px);
}

.buscador-input::placeholder {
    color: #9ca3af;
}

#zonasEnvio {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-zona {
    border: 1px solid #e5e7eb;
    background: var(--card);
    color: #111827;
    border-radius: 999px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.btn-zona .zona-costo {
    background: #f3f4f6;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 13px;
}

.btn-zona.seleccionado {
    background: #0f766e;
    color: white;
    border-color: var(--primary);
}

.btn-zona.seleccionado .zona-costo {
    background: var(--card);
    color: var(--primary);
}



/* ===== ROSARIO YA V3.1 · CARDS MÁS PREMIUM ===== */

/* Home más limpia y centrada */
.container{
    max-width: 1180px;
}

.header{
    margin: 8px auto 28px;
    padding: 28px 20px 22px;
    border-bottom: none;
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(18,18,18,0.06);
    border-radius: 32px;
    box-shadow: 0 12px 34px rgba(0,0,0,0.06);
    backdrop-filter: blur(14px);
}

.logo-principal{
    width: 86px;
    height: 86px;
    border-radius: 26px;
    box-shadow: 0 14px 32px rgba(0,0,0,0.10);
}

.header-text h1{
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.06em;
    color: var(--text);
    margin-bottom: 10px;
}

.sub{
    font-size: clamp(0.98rem, 2vw, 1.08rem);
    color: var(--muted);
    font-weight: 500;
}

/* Filtros como chips de app */
.filtros{
    justify-content: flex-start;
    gap: 10px;
    margin: 0 0 18px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 2px 2px 8px;
    scrollbar-width: none;
}

.filtros::-webkit-scrollbar{
    display: none;
}

.btn-filtro{
    flex: 0 0 auto;
    border: 1px solid rgba(18,18,18,0.08);
    background: rgba(255,255,255,0.86);
    color: #3f3f46;
    padding: 11px 18px;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}

.btn-filtro:hover{
    transform: translateY(-1px);
    border-color: rgba(255,90,0,0.24);
}

.btn-filtro.activo{
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 12px 24px rgba(255,90,0,0.24);
}

/* Buscador más integrado */
.buscador-box{
    margin: 0 0 26px;
}

.buscador-input{
    border: 1px solid rgba(18,18,18,0.08);
    border-radius: 999px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
    font-weight: 500;
}

.buscador-input:focus{
    border-color: rgba(255,90,0,0.58);
    box-shadow: 0 0 0 4px rgba(255,90,0,0.12), 0 14px 34px rgba(0,0,0,0.08);
}

/* Grid más elegante */
.grid{
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 26px;
}

/* Card estilo producto/app */
.card{
    position: relative;
    border-radius: 30px;
    border: 1px solid rgba(18,18,18,0.07);
    background: rgba(255,255,255,0.92);
    box-shadow: 0 14px 36px rgba(0,0,0,0.07);
    overflow: hidden;
}

.card::before{
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 86px;
    background: linear-gradient(135deg, rgba(255,90,0,0.10), rgba(255,255,255,0));
    pointer-events: none;
}

.card:hover{
    transform: translateY(-6px);
    box-shadow: 0 24px 54px rgba(0,0,0,0.12);
    border-color: rgba(255,90,0,0.18);
}

.card-header{
    position: relative;
    background: transparent;
    border-bottom: 1px solid rgba(18,18,18,0.06);
    padding: 22px 22px 18px;
    align-items: flex-start;
}

.logo-carrito{
    width: 72px;
    height: 72px;
    border-radius: 22px;
    padding: 7px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.10);
}

.nombre{
    font-size: 1.35rem;
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.035em;
    margin-bottom: 8px;
}

.especialidad{
    font-size: 0.82rem;
    text-transform: none;
    letter-spacing: -0.01em;
    color: var(--muted);
    font-weight: 600;
}

.estado-badge{
    font-size: 0.74rem;
    font-weight: 800;
    padding: 7px 12px;
    border-radius: 999px;
    margin-top: 12px;
}

.estado-badge.abierto{
    background: #ecfdf3;
    color: #027a48;
    box-shadow: inset 0 0 0 1px rgba(2,122,72,0.10);
}

.estado-badge.cerrado{
    background: #fff1f0;
    color: #b42318;
    box-shadow: inset 0 0 0 1px rgba(180,35,24,0.10);
}

.card-body{
    padding: 20px 22px 22px;
}

.descripcion{
    color: #4b5563;
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 16px;
}

.horario-container{
    background: #f8fafc;
    border: 1px solid rgba(18,18,18,0.05);
    border-radius: 20px;
    padding: 14px;
    margin: 16px 0;
}

.turno{
    gap: 12px;
}

.turno-nombre{
    color: #475569;
    font-weight: 700;
}

.turno-horario{
    color: #111827;
    font-family: 'Inter', monospace;
    font-weight: 700;
}

.badges{
    gap: 8px;
    margin: 16px 0;
}

.badge{
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 0.72rem;
    font-weight: 800;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5);
}

.promo-banner{
    border-radius: 18px;
    padding: 12px 14px;
    box-shadow: 0 12px 26px rgba(255,107,53,0.22);
}

.btn-menu{
    min-height: 46px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 16px 0 12px;
    box-shadow: 0 14px 28px rgba(255,90,0,0.24);
}

.btn-menu:hover{
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(255,90,0,0.30);
}

.botones{
    gap: 10px;
    margin-top: 18px;
}

.btn{
    border-radius: 999px;
    padding: 12px 10px;
    font-weight: 800;
}

.btn-llamar{
    background: #111827;
}

.btn-maps{
    background: #f8fafc;
    border: 1px solid rgba(18,18,18,0.08);
}

.donacion-section{
    border-radius: 30px;
    border: 1px solid rgba(18,18,18,0.06);
    box-shadow: 0 12px 34px rgba(0,0,0,0.06);
}

/* Mobile: más app, menos desktop */
@media (max-width: 600px){
    body{
        padding: 14px;
    }

    .header{
        padding: 24px 16px 20px;
        border-radius: 28px;
        margin-top: 0;
    }

    .logo-principal{
        width: 76px;
        height: 76px;
    }

    .grid{
        gap: 18px;
    }

    .card{
        border-radius: 28px;
    }

    .card-header{
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
        padding: 20px;
    }

    .logo-carrito{
        width: 66px;
        height: 66px;
    }

    .nombre{
        font-size: 1.22rem;
    }

    .especialidad{
        font-size: 0.78rem;
    }

    .card-body{
        padding: 18px 20px 20px;
    }

    .botones{
        flex-direction: row;
    }

    .btn{
        font-size: 0.78rem;
    }
}

@media (max-width: 390px){
    .card-header{
        gap: 12px;
    }

    .logo-carrito{
        width: 58px;
        height: 58px;
        border-radius: 18px;
    }

    .botones{
        flex-direction: column;
    }
}

/* ===== ROSARIO YA V3.2 · CARDS LIMPIAS / HOME APP-LIKE ===== */

/* Objetivo: la home muestra locales de forma limpia; el detalle pesado queda detrás de Ver menú. */
.grid{
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 22px;
    align-items: start;
}

.card{
    border-radius: 32px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(17,24,39,0.07);
    box-shadow: 0 16px 44px rgba(15,23,42,0.08);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.card::before{
    height: 104px;
    background:
        radial-gradient(circle at 18% 0%, rgba(255,90,0,0.18), transparent 34%),
        linear-gradient(135deg, rgba(255,90,0,0.08), rgba(255,255,255,0));
}

.card:hover{
    transform: translateY(-5px);
    box-shadow: 0 24px 58px rgba(15,23,42,0.13);
    border-color: rgba(255,90,0,0.22);
}

.card-header{
    border-bottom: none;
    padding: 22px 22px 14px;
    gap: 16px;
}

.logo-carrito{
    width: 70px;
    height: 70px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15,23,42,0.12);
}

.info-header{
    min-width: 0;
}

.nombre{
    font-size: 1.34rem;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: #111827;
}

.especialidad{
    margin-top: 2px;
    color: #6b7280;
    font-size: .82rem;
    font-weight: 650;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.estado-badge{
    margin-top: 12px;
    padding: 7px 11px;
    font-size: .72rem;
}

.card-body{
    padding: 0 22px 22px;
}

/* Menos ruido en la home: descripción breve, horarios y badges compactos */
.descripcion{
    margin: 0 0 12px;
    color: #6b7280;
    font-size: .86rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.horario-container{
    margin: 10px 0 12px;
    padding: 10px 12px;
    border-radius: 18px;
    background: #f9fafb;
    border-color: rgba(17,24,39,0.06);
    max-height: 92px;
    overflow: hidden;
    position: relative;
}

.horario-container::after{
    content:"";
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    height:22px;
    background: linear-gradient(to bottom, rgba(249,250,251,0), #f9fafb);
    pointer-events:none;
}

.turno{
    font-size: .76rem;
    padding: 3px 0;
}

.badges{
    margin: 10px 0 14px;
    gap: 7px;
}

.badge{
    padding: 6px 10px;
    font-size: .68rem;
    font-weight: 800;
}

/* La acción principal debe dominar */
.btn-menu{
    margin: 12px 0 12px;
    min-height: 48px;
    background: linear-gradient(135deg, #ff5a00, #ff7a1a);
    color: #fff;
    box-shadow: 0 16px 32px rgba(255,90,0,0.28);
}

.btn-menu:hover{
    background: linear-gradient(135deg, #f05200, #ff6f00);
}

/* Botones secundarios: menos peso visual */
.botones{
    margin-top: 12px;
    gap: 8px;
}

.btn{
    padding: 11px 10px;
    font-size: .78rem;
}

.btn-llamar{
    background: #111827;
}

.btn-wsp{
    background: #22c55e;
}

.btn-maps{
    background: #fff;
    color: #374151;
    border: 1px solid rgba(17,24,39,0.10);
}

/* Menú desplegable más premium cuando se abre */
.menu-preview.open{
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(17,24,39,0.08);
}

.menu-categoria{
    font-size: .78rem;
    letter-spacing: -0.01em;
    color: #111827;
    border-bottom-color: rgba(17,24,39,0.08);
}

.menu-item{
    padding: 12px 0;
    border-bottom: 1px solid rgba(17,24,39,0.06);
}

.foto-producto{
    border-radius: 16px;
}

.btn-agregar{
    background: #ff5a00;
    box-shadow: 0 8px 18px rgba(255,90,0,0.22);
}

.btn-agregar:hover{
    background: #f05200;
}

@media (max-width: 600px){
    .grid{
        gap: 16px;
    }

    .card{
        border-radius: 30px;
    }

    .card-header{
        padding: 20px 18px 12px;
        gap: 14px;
    }

    .card-body{
        padding: 0 18px 18px;
    }

    .logo-carrito{
        width: 64px;
        height: 64px;
        border-radius: 22px;
    }

    .nombre{
        font-size: 1.18rem;
    }

    .especialidad{
        font-size: .77rem;
    }

    .horario-container{
        max-height: 84px;
    }

    .botones{
        flex-direction: row;
    }
}

@media (max-width: 390px){
    .logo-carrito{
        width: 56px;
        height: 56px;
        border-radius: 18px;
    }

    .botones{
        flex-direction: column;
    }
}

/* =========================================================
   ROSARIO YA V3.3 · MENÚ DESPLEGABLE PRO
   Mejora lectura, jerarquía, productos y botones de agregar
   sin tocar lógica JavaScript.
   ========================================================= */

.menu-preview {
    margin-top: 18px;
    padding: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 22px;
    max-height: 520px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(17, 24, 39, .22) transparent;
}

.menu-preview::-webkit-scrollbar {
    width: 6px;
}

.menu-preview::-webkit-scrollbar-track {
    background: transparent;
}

.menu-preview::-webkit-scrollbar-thumb {
    background: rgba(17, 24, 39, .18);
    border-radius: 999px;
}

.menu-preview.open {
    animation: menuReveal .22s ease both;
}

@keyframes menuReveal {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.menu-categoria {
    position: sticky;
    top: -18px;
    z-index: 3;
    margin: 20px -18px 10px;
    padding: 12px 18px 10px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(17,24,39,.08);
    color: #111827;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.menu-categoria:first-child {
    margin-top: -6px;
}

.menu-categoria.promo-cat {
    position: relative;
    top: auto;
    margin: 8px 0 12px;
    padding: 10px 14px;
    border-radius: 16px;
    border: none;
    background: linear-gradient(135deg, #ff5a00 0%, #ff8a00 100%);
    color: white;
    box-shadow: 0 10px 26px rgba(255, 90, 0, .18);
}

.menu-item {
    position: relative;
    display: grid;
    grid-template-columns: 82px minmax(0,1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(17,24,39,.06);
    font-size: .9rem;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:not(:has(.foto-producto)) {
    grid-template-columns: minmax(0,1fr) auto;
}

.foto-producto {
    width: 82px;
    height: 82px;
    border-radius: 18px;
    object-fit: cover;
    background: #f1f5f9;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
}

.menu-item-info {
    min-width: 0;
    gap: 5px;
}

.menu-item-nombre {
    color: #111827;
    font-size: .94rem;
    font-weight: 750;
    line-height: 1.25;
}

.menu-item-descripcion {
    color: #6b7280;
    font-size: .78rem;
    line-height: 1.35;
    max-width: 46ch;
}

.menu-item-precio-agregar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 4px;
}

.precio {
    color: #111827;
    font-size: .98rem;
    font-weight: 850;
    white-space: nowrap;
}

.btn-agregar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #111827;
    color: white;
    box-shadow: 0 8px 18px rgba(17,24,39,.22);
    font-size: 1.15rem;
    font-weight: 700;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn-agregar:hover {
    background: #ff5a00;
    transform: scale(1.08);
    box-shadow: 0 10px 24px rgba(255, 90, 0, .28);
}

.btn-agregar.promo {
    background: #ff5a00;
    box-shadow: 0 8px 18px rgba(255, 90, 0, .22);
}

.btn-agregar.abierto {
    background: #ef4444 !important;
}

.nota-menu {
    margin-top: 16px;
    padding: 12px 14px;
    border: 1px dashed rgba(17,24,39,.14);
    border-radius: 16px;
    background: #fff;
    color: #6b7280;
    font-size: .78rem;
    line-height: 1.4;
}

/* Opciones/ingredientes dentro del menú */
.opciones-submenu {
    grid-column: 1 / -1;
    background: #fff;
    border: 1px solid rgba(37, 211, 102, .18);
    border-radius: 18px;
    padding: 14px;
    margin-top: 8px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

.opciones-titulo {
    color: #111827;
    font-size: .76rem;
    font-weight: 850;
    letter-spacing: .06em;
}

.opcion-check {
    border-radius: 999px;
    padding: 7px 12px;
    background: #f9fafb;
    border: 1px solid rgba(17,24,39,.10);
    font-size: .8rem;
}

.opcion-check:hover {
    border-color: rgba(37, 211, 102, .55);
    background: #ffffff;
}

.opcion-check.marcada {
    border-color: #25D366;
    background: #ecfdf5;
    color: #047857;
}

.btn-confirmar-opciones {
    border-radius: 999px;
    padding: 12px 14px;
    font-weight: 850;
    box-shadow: 0 10px 22px rgba(37,211,102,.18);
}

/* Botones de contacto más ordenados después del menú */
.botones {
    gap: 10px;
    margin-top: 18px;
}

.btn {
    border-radius: 999px;
    padding: 12px 10px;
    font-weight: 750;
}

@media (max-width: 600px) {
    .menu-preview {
        padding: 14px;
        margin-top: 16px;
        border-radius: 20px;
        max-height: 64vh;
    }

    .menu-categoria {
        top: -14px;
        margin-left: -14px;
        margin-right: -14px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .menu-item {
        grid-template-columns: 72px minmax(0,1fr);
        gap: 12px;
        align-items: start;
        padding: 14px 0;
    }

    .menu-item:not(:has(.foto-producto)) {
        grid-template-columns: 1fr;
    }

    .foto-producto {
        width: 72px;
        height: 72px;
        border-radius: 16px;
    }

    .menu-item-precio-agregar {
        grid-column: 2;
        justify-content: space-between;
        width: 100%;
        margin-left: 0;
        margin-top: 6px;
    }

    .menu-item:not(:has(.foto-producto)) .menu-item-precio-agregar {
        grid-column: 1;
    }

    .precio {
        font-size: 1rem;
    }

    .btn-agregar {
        width: 36px;
        height: 36px;
    }
}


/* =========================================================
   ROSARIO YA V4 · MODAL FULLSCREEN DEL LOCAL
   Convierte "Ver menú" en experiencia tipo app.
   ========================================================= */

body.modal-local-open{
    overflow: hidden;
}

.modal-local-overlay{
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    background:
        radial-gradient(circle at top, rgba(255,90,0,.18), transparent 32%),
        rgba(15, 23, 42, .54);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 18px;
}

.modal-local-overlay.visible{
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalLocalFade .18s ease both;
}

@keyframes modalLocalFade{
    from{ opacity: 0; }
    to{ opacity: 1; }
}

.modal-local{
    position: relative;
    width: min(760px, 100%);
    height: min(92vh, 860px);
    background: #fff;
    border-radius: 34px;
    box-shadow: 0 30px 90px rgba(0,0,0,.28);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalLocalUp .24s ease both;
}

@keyframes modalLocalUp{
    from{
        opacity: 0;
        transform: translateY(18px) scale(.985);
    }
    to{
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.btn-cerrar-local{
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 6;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 999px;
    background: rgba(255,255,255,.88);
    color: #111827;
    font-size: 1.08rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(15,23,42,.16);
    transition: transform .18s ease, background .18s ease;
}

.btn-cerrar-local:hover{
    transform: scale(1.05);
    background: #fff;
}

.modal-local-header{
    padding: 28px 28px 18px;
    background:
        radial-gradient(circle at 0% 0%, rgba(255,90,0,.18), transparent 34%),
        linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
    border-bottom: 1px solid rgba(17,24,39,.06);
}

.modal-local-hero{
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding-right: 46px;
}

.modal-local-logo{
    width: 94px;
    height: 94px;
    object-fit: contain;
    border-radius: 28px;
    padding: 8px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(15,23,42,.14);
    flex-shrink: 0;
}

.modal-local-kicker{
    color: #ff5a00;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.modal-local-header h2{
    color: #111827;
    font-size: clamp(1.65rem, 5vw, 2.45rem);
    line-height: .98;
    letter-spacing: -.06em;
    font-weight: 900;
    margin: 0 0 8px;
}

.modal-local-header p{
    color: #6b7280;
    font-size: .98rem;
    line-height: 1.42;
    font-weight: 650;
    margin: 0;
    max-width: 52ch;
}

.modal-promo{
    margin: 18px 0 0;
    border-radius: 20px;
}

.modal-local-tabs{
    position: sticky;
    top: 0;
    z-index: 12;

    display: flex;
    gap: 10px;

    padding: 14px 20px;

    background: rgba(255,255,255,0.78);

    backdrop-filter: blur(18px);

    border-bottom: 1px solid rgba(17,24,39,0.06);
}

.tab-local{
    position: relative;

    border: none;
    background: transparent;

    padding: 10px 14px;

    border-radius: 999px;

    font-weight: 700;
    font-size: .9rem;

    color: #6b7280;

    cursor: pointer;

    transition: all .22s ease;
}

.tab-local:hover{
    transform: translateY(-1px);
}

.tab-local.activa{
    background: rgba(255,90,0,0.10);
    color: var(--primary);
}

.tab-local::after{
    content:"";

    position:absolute;

    left:12px;
    right:12px;
    bottom:-6px;

    height:3px;

    border-radius:999px;

    background:transparent;

    transition:.22s ease;
}

.tab-local.activa::after{
    background: var(--primary);
}

.modal-local-content{
    flex: 1;
    overflow-y: auto;
    padding: 20px 28px 28px;
    background: #fff;
    scrollbar-width: thin;
    scrollbar-color: rgba(17,24,39,.24) transparent;
}

.modal-local-content::-webkit-scrollbar{
    width: 7px;
}

.modal-local-content::-webkit-scrollbar-track{
    background: transparent;
}

.modal-local-content::-webkit-scrollbar-thumb{
    background: rgba(17,24,39,.20);
    border-radius: 999px;
}

.tab-content{
    display: none;
}

.tab-content.activa{
    display: block;
    animation: tabFade .18s ease both;
}

@keyframes tabFade{
    from{
        opacity: 0;
        transform: translateY(6px);
    }
    to{
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-menu-list{
    background: #fff;
}

.modal-menu-list .menu-categoria{
    top: -20px;
    margin-left: -28px;
    margin-right: -28px;
    padding-left: 28px;
    padding-right: 28px;
}

.menu-vacio{
    padding: 48px 18px;
    text-align: center;
    color: #9ca3af;
    font-weight: 700;
}

/* Info tab */
.modal-info-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.modal-info-card{
    background: #f9fafb;
    border: 1px solid rgba(17,24,39,.07);
    border-radius: 22px;
    padding: 16px;
}

.modal-info-label{
    display: block;
    color: #6b7280;
    font-size: .74rem;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 7px;
}

.modal-info-card strong{
    display: block;
    color: #111827;
    font-size: .95rem;
    line-height: 1.35;
}

.modal-info-section{
    margin-top: 18px;
    padding: 18px;
    border: 1px solid rgba(17,24,39,.07);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15,23,42,.05);
}

.modal-info-section h3{
    color: #111827;
    font-size: 1rem;
    font-weight: 900;
    margin-bottom: 12px;
    letter-spacing: -.03em;
}

.modal-info-section p{
    color: #4b5563;
    font-size: .92rem;
    line-height: 1.55;
}

.modal-badges{
    margin: 0;
}

.modal-info-actions{
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.modal-info-actions .btn{
    flex: 1;
}

@media (max-width: 700px){
    .modal-local-overlay{
        padding: 0;
        align-items: flex-end;
    }

    .modal-local{
        width: 100%;
        height: 96vh;
        max-height: none;
        border-radius: 30px 30px 0 0;
    }

    .modal-local-header{
        padding: 24px 18px 16px;
    }

    .modal-local-hero{
        gap: 14px;
        padding-right: 44px;
    }

    .modal-local-logo{
        width: 74px;
        height: 74px;
        border-radius: 23px;
    }

    .modal-local-header h2{
        font-size: 1.55rem;
        letter-spacing: -.055em;
    }

    .modal-local-header p{
        font-size: .86rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .btn-cerrar-local{
        top: 14px;
        right: 14px;
        width: 38px;
        height: 38px;
    }

    .modal-local-tabs{
        padding: 10px 12px;
    }

    .tab-local{
        padding: 11px 12px;
        font-size: .86rem;
    }

    .modal-local-content{
        padding: 16px 18px 24px;
    }

    .modal-menu-list .menu-categoria{
        top: -16px;
        margin-left: -18px;
        margin-right: -18px;
        padding-left: 18px;
        padding-right: 18px;
    }

    .modal-info-grid{
        grid-template-columns: 1fr;
    }

    .modal-info-actions{
        flex-direction: column;
    }
}


/* =========================================================
   ROSARIO YA V4.2 · HERO PREMIUM
   Header más fuerte, claro y con mejor percepción de producto.
   ========================================================= */

.hero-rosarioya{
    position: relative;
    isolation: isolate;
    overflow: hidden;
    align-items: flex-start;
    text-align: left;
    gap: 22px;
    padding: clamp(26px, 5vw, 46px);
    margin: 6px auto 26px;
    border-radius: 36px;
    background:
        radial-gradient(circle at 12% 8%, rgba(255,90,0,.22), transparent 30%),
        radial-gradient(circle at 86% 0%, rgba(255,138,0,.14), transparent 28%),
        linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,255,255,.78));
    border: 1px solid rgba(17,24,39,.07);
    box-shadow: 0 22px 60px rgba(15,23,42,.10);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.hero-rosarioya::after{
    content:"";
    position:absolute;
    right:-70px;
    bottom:-90px;
    width:220px;
    height:220px;
    border-radius:999px;
    background: rgba(255,90,0,.10);
    filter: blur(4px);
    z-index:-1;
}

.hero-brand-row{
    display:flex;
    align-items:center;
    gap:14px;
}

.hero-brand-row .logo-principal{
    width:64px;
    height:64px;
    border-radius:22px;
    padding:7px;
    box-shadow: 0 16px 34px rgba(15,23,42,.14);
}

.hero-brand-copy{
    display:flex;
    flex-direction:column;
    gap:4px;
}

.hero-eyebrow{
    display:inline-flex;
    width:max-content;
    padding:5px 10px;
    border-radius:999px;
    background:rgba(255,90,0,.10);
    color:#c2410c;
    font-size:.72rem;
    font-weight:850;
    letter-spacing:.04em;
    text-transform:uppercase;
}

.hero-brand-copy strong{
    color:#111827;
    font-size:1.02rem;
    letter-spacing:-.03em;
}

.hero-copy{
    max-width:760px;
}

.hero-copy h1{
    max-width:720px;
    margin:0;
    color:#0f172a;
    font-size:clamp(2.25rem, 7vw, 4.75rem);
    line-height:.95;
    letter-spacing:-.075em;
    font-weight:900;
}

.hero-copy .sub{
    max-width:620px;
    margin-top:16px;
    color:#475569;
    font-size:clamp(1rem, 2.2vw, 1.18rem);
    line-height:1.5;
    font-weight:600;
}

.hero-trust-row{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:4px;
}

.hero-trust-row span{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:10px 13px;
    border-radius:999px;
    background:rgba(255,255,255,.78);
    border:1px solid rgba(17,24,39,.07);
    color:#334155;
    font-size:.84rem;
    font-weight:800;
    box-shadow:0 10px 24px rgba(15,23,42,.06);
}

@media (max-width: 600px){
    .hero-rosarioya{
        padding:24px 18px;
        border-radius:30px;
        gap:18px;
        margin-bottom:20px;
    }

    .hero-brand-row .logo-principal{
        width:58px;
        height:58px;
        border-radius:20px;
    }

    .hero-copy h1{
        font-size:clamp(2.15rem, 13vw, 3.15rem);
        letter-spacing:-.07em;
    }

    .hero-copy .sub{
        margin-top:12px;
        font-size:.98rem;
    }

    .hero-trust-row{
        gap:8px;
    }

    .hero-trust-row span{
        padding:9px 11px;
        font-size:.78rem;
    }
}


/* =========================================================
   ROSARIO YA V4.3 · BOTTOM NAV MOBILE
   Navegación inferior tipo app sin tocar la lógica principal.
   ========================================================= */

.bottom-nav-app{
    position: fixed;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    width: min(440px, calc(100% - 28px));
    min-height: 68px;
    padding: 8px;
    border-radius: 28px;
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(17,24,39,.08);
    box-shadow: 0 18px 50px rgba(15,23,42,.18);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 1450;
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.bottom-nav-item{
    appearance: none;
    border: none;
    background: transparent;
    color: #6b7280;
    border-radius: 22px;
    min-height: 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-family: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.bottom-nav-item span{
    font-size: 1.16rem;
    line-height: 1;
}

.bottom-nav-item small{
    font-size: .68rem;
    line-height: 1;
}

.bottom-nav-item.activo{
    background: #111827;
    color: #fff;
    box-shadow: 0 10px 24px rgba(17,24,39,.18);
}

.bottom-nav-item:active{
    transform: scale(.96);
}

@media (max-width: 760px){
    body{
        padding-bottom: 104px;
    }

    .bottom-nav-app{
        display: grid;
    }

    .carrito-flotante.visible{
        bottom: 92px;
        width: min(420px, calc(100% - 32px));
    }

    footer{
        margin-bottom: 76px;
    }
}

@media (max-width: 390px){
    .bottom-nav-app{
        width: calc(100% - 18px);
        bottom: 10px;
        border-radius: 24px;
    }

    .bottom-nav-item small{
        font-size: .64rem;
    }
}

/* =========================================================
   ROSARIO YA V4.4 · MODAL LOCAL PREMIUM
   Pulido visual del modal fullscreen: header app-like,
   tabs sticky, mejor scroll, info cards y CTA inferior.
   ========================================================= */

.modal-local-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(15, 23, 42, 0.54);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.modal-local-overlay.visible {
    display: flex;
    animation: modalOverlayIn .22s ease both;
}

@keyframes modalOverlayIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-local {
    position: relative;
    width: min(100%, 760px);
    height: min(92vh, 920px);
    background: #ffffff;
    border-radius: 34px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.30);
    border: 1px solid rgba(255, 255, 255, 0.72);
    animation: modalLocalIn .28s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes modalLocalIn {
    from {
        opacity: 0;
        transform: translateY(22px) scale(.97);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.btn-cerrar-local {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 12;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(17,24,39,.08);
    border-radius: 999px;
    background: rgba(255,255,255,.86);
    color: #111827;
    box-shadow: 0 10px 28px rgba(15,23,42,.12);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.btn-cerrar-local:hover {
    transform: scale(1.06);
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15,23,42,.16);
}

.modal-local-header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 30px 30px 24px;
    min-height: 150px;
    background:
        radial-gradient(circle at 12% 10%, rgba(255,90,0,.24), transparent 34%),
        linear-gradient(135deg, #fff7ed 0%, #ffffff 54%, #f8fafc 100%);
    border-bottom: 1px solid rgba(17,24,39,.06);
}

.modal-local-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,90,0,.34), transparent);
}

.modal-local-logo {
    width: 92px;
    height: 92px;
    object-fit: contain;
    border-radius: 28px;
    background: #ffffff;
    padding: 8px;
    box-shadow: 0 18px 42px rgba(15,23,42,.16);
    border: 1px solid rgba(255,255,255,.88);
    flex-shrink: 0;
}

.modal-local-info {
    min-width: 0;
    padding-right: 48px;
}

.modal-local-info h2 {
    font-size: clamp(1.55rem, 4vw, 2.25rem);
    line-height: .98;
    letter-spacing: -.055em;
    color: #111827;
    font-weight: 900;
    margin: 0 0 8px;
}

.modal-local-info p {
    color: #6b7280;
    font-size: .95rem;
    font-weight: 650;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.modal-local-info .estado-badge {
    margin-top: 12px;
}

.modal-local-tabs {
    position: sticky;
    top: 0;
    z-index: 8;
    display: flex;
    gap: 8px;
    padding: 12px 18px;
    background: rgba(255,255,255,.88);
    border-bottom: 1px solid rgba(17,24,39,.07);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.tab-local {
    position: relative;
    flex: 1;
    border: none;
    border-radius: 999px;
    padding: 12px 14px;
    background: transparent;
    color: #6b7280;
    font-size: .92rem;
    font-weight: 850;
    cursor: pointer;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.tab-local:hover {
    background: #f9fafb;
    color: #111827;
}

.tab-local.activa {
    background: #111827;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(17,24,39,.16);
}

.modal-local-content {
    flex: 1;
    overflow-y: auto;
    padding: 18px 24px 96px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(17,24,39,.22) transparent;
}

.modal-local-content::-webkit-scrollbar {
    width: 7px;
}

.modal-local-content::-webkit-scrollbar-track {
    background: transparent;
}

.modal-local-content::-webkit-scrollbar-thumb {
    background: rgba(17,24,39,.18);
    border-radius: 999px;
}

.tab-content {
    display: none;
}

.tab-content.activa {
    display: block;
    animation: tabContentIn .18s ease both;
}

@keyframes tabContentIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-promo {
    margin: 0 0 16px;
    border-radius: 22px;
    padding: 14px 16px;
    box-shadow: 0 14px 32px rgba(255,90,0,.22);
}

.modal-local .menu-categoria {
    position: sticky;
    top: -18px;
    z-index: 5;
    margin: 22px -24px 12px;
    padding: 14px 24px 12px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: #111827;
    border-bottom: 1px solid rgba(17,24,39,.07);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.modal-local .menu-categoria:first-child {
    margin-top: 0;
}

.modal-local .menu-categoria.promo-cat {
    position: relative;
    top: auto;
    margin: 8px 0 14px;
    padding: 12px 15px;
    border-radius: 20px;
    background: linear-gradient(135deg, #ff5a00, #ff8a00);
    color: #ffffff;
    box-shadow: 0 14px 32px rgba(255,90,0,.22);
}

.menu-categoria-descripcion {
    margin: -4px 0 10px;
    color: #6b7280;
    font-size: .86rem;
    line-height: 1.45;
}

.modal-local .menu-item {
    grid-template-columns: 92px minmax(0,1fr) auto;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(17,24,39,.065);
}

.modal-local .foto-producto {
    width: 92px;
    height: 92px;
    border-radius: 22px;
    box-shadow: 0 12px 26px rgba(15,23,42,.10);
}

.modal-local .menu-item-nombre {
    color: #111827;
    font-size: 1rem;
    font-weight: 850;
    line-height: 1.2;
}

.modal-local .menu-item-descripcion {
    color: #6b7280;
    font-size: .82rem;
    line-height: 1.4;
    margin-top: 3px;
}

.modal-local .precio {
    font-size: 1.05rem;
    font-weight: 950;
    color: #111827;
}

.modal-local .btn-agregar {
    width: 38px;
    height: 38px;
    background: #111827;
    box-shadow: 0 10px 24px rgba(17,24,39,.22);
}

.modal-local .btn-agregar:hover {
    background: #ff5a00;
    box-shadow: 0 12px 28px rgba(255,90,0,.28);
}

.modal-local .opciones-submenu {
    margin-top: 10px;
    border-radius: 22px;
    border: 1px solid rgba(37,211,102,.18);
    background: #ffffff;
    box-shadow: 0 16px 34px rgba(15,23,42,.10);
}

.menu-vacio {
    margin: 24px 0;
    padding: 32px 18px;
    text-align: center;
    color: #6b7280;
    background: #ffffff;
    border: 1px dashed rgba(17,24,39,.16);
    border-radius: 24px;
    font-weight: 750;
}

.modal-info-content {
    display: grid;
    gap: 14px;
}

.modal-descripcion {
    padding: 18px;
    background: #ffffff;
    border: 1px solid rgba(17,24,39,.07);
    border-radius: 24px;
    color: #4b5563;
    font-size: .95rem;
    line-height: 1.55;
    box-shadow: 0 12px 30px rgba(15,23,42,.06);
}

.modal-info-block {
    padding: 18px;
    background: #ffffff;
    border: 1px solid rgba(17,24,39,.07);
    border-radius: 24px;
    box-shadow: 0 12px 30px rgba(15,23,42,.06);
}

.modal-info-block strong {
    display: block;
    color: #111827;
    font-size: .9rem;
    font-weight: 900;
    margin-bottom: 8px;
}

.modal-info-block p {
    color: #6b7280;
    font-size: .92rem;
    line-height: 1.45;
    margin: 0;
}

.modal-badges {
    margin: 0;
}

.modal-info-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 2px;
}

.modal-info-actions .btn {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-local::after {
    content: "🛒 Ver pedido";
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 18px;
    z-index: 9;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #111827, #1f2937);
    color: #ffffff;
    font-weight: 900;
    box-shadow: 0 18px 38px rgba(17,24,39,.24);
    pointer-events: none;
    opacity: .96;
}

/* Nota: el CTA visual anterior no abre el carrito porque es pseudo-elemento.
   Para hacerlo clickeable luego conviene agregar un botón real al HTML del modal. */

@media (max-width: 760px) {
    .modal-local-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .modal-local {
        width: 100%;
        height: 94vh;
        max-height: none;
        border-radius: 32px 32px 0 0;
        animation: modalLocalMobileIn .26s cubic-bezier(.2,.8,.2,1) both;
    }

    @keyframes modalLocalMobileIn {
        from {
            opacity: 0;
            transform: translateY(100%);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .modal-local-header {
        padding: 26px 18px 20px;
        gap: 14px;
        min-height: 132px;
    }

    .modal-local-logo {
        width: 76px;
        height: 76px;
        border-radius: 24px;
    }

    .modal-local-info {
        padding-right: 44px;
    }

    .modal-local-info h2 {
        font-size: 1.55rem;
    }

    .modal-local-info p {
        font-size: .84rem;
    }

    .btn-cerrar-local {
        top: 14px;
        right: 14px;
        width: 38px;
        height: 38px;
    }

    .modal-local-tabs {
        padding: 10px 14px;
    }

    .tab-local {
        padding: 11px 12px;
        font-size: .86rem;
    }

    .modal-local-content {
        padding: 14px 16px 104px;
    }

    .modal-local .menu-categoria {
        top: -14px;
        margin-left: -16px;
        margin-right: -16px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .modal-local .menu-item {
        grid-template-columns: 78px minmax(0,1fr);
        gap: 13px;
        align-items: start;
        padding: 15px 0;
    }

    .modal-local .menu-item:not(:has(.foto-producto)) {
        grid-template-columns: 1fr;
    }

    .modal-local .foto-producto {
        width: 78px;
        height: 78px;
        border-radius: 20px;
    }

    .modal-local .menu-item-precio-agregar {
        grid-column: 2;
        width: 100%;
        justify-content: space-between;
        margin-left: 0;
        margin-top: 6px;
    }

    .modal-local .menu-item:not(:has(.foto-producto)) .menu-item-precio-agregar {
        grid-column: 1;
    }

    .modal-info-actions {
        grid-template-columns: 1fr;
    }

    .modal-local::after {
        left: 16px;
        right: 16px;
        bottom: calc(14px + env(safe-area-inset-bottom));
    }
}

@media (max-width: 390px) {
    .modal-local-logo {
        width: 68px;
        height: 68px;
        border-radius: 21px;
    }

    .modal-local-info h2 {
        font-size: 1.34rem;
    }

    .modal-local .menu-item {
        grid-template-columns: 70px minmax(0,1fr);
    }

    .modal-local .foto-producto {
        width: 70px;
        height: 70px;
    }
}

/* ===== ROSARIO YA V4.4.1 · MODAL PREMIUM POLISH ===== */

.modal-local{
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow:
        0 30px 80px rgba(0,0,0,0.22),
        0 10px 30px rgba(0,0,0,0.08);

    animation: modalLocalIn .28s ease;
}

@keyframes modalLocalIn{
    from{
        opacity:0;
        transform:translateY(18px) scale(.98);
    }

    to{
        opacity:1;
        transform:translateY(0) scale(1);
    }
}

.modal-local-header{
    position: sticky;
    top: 0;
    z-index: 30;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.96),
            rgba(255,255,255,.88)
        );

    backdrop-filter: blur(18px);

    padding: 22px 22px 18px;

    border-bottom:
        1px solid rgba(18,18,18,.06);
}

.modal-local-logo{
    width: 84px;
    height: 84px;

    border-radius: 26px;

    background: white;

    padding: 8px;

    box-shadow:
        0 16px 34px rgba(0,0,0,.12);
}

.modal-local-info h2{
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -.05em;
    color: var(--text);
}

.modal-local-info p{
    color: var(--muted);
    font-weight: 600;
    margin-top: 4px;
}

.modal-local-tabs{
    position: sticky;
    top: 132px;
    z-index: 25;

    display:flex;
    gap:12px;

    padding:14px 20px;

    background:
        rgba(255,255,255,.88);

    backdrop-filter: blur(18px);

    border-bottom:
        1px solid rgba(18,18,18,.06);
}

.tab-local{
    flex:1;

    min-height:46px;

    border:none;

    border-radius:999px;

    background:#f3f4f6;

    color:#4b5563;

    font-weight:800;

    transition:all .22s ease;
}

.tab-local:hover{
    transform:translateY(-1px);
}

.tab-local.activa{
    background:
        linear-gradient(
            135deg,
            #111827,
            #1f2937
        );

    color:white;

    box-shadow:
        0 10px 24px rgba(17,24,39,.22);
}

.modal-local-content{
    padding:
        10px 20px 120px;

    overflow-y:auto;

    scrollbar-width:thin;
}

.modal-local-content::-webkit-scrollbar{
    width:8px;
}

.modal-local-content::-webkit-scrollbar-thumb{
    background:#d1d5db;
    border-radius:999px;
}

.menu-categoria{
    position: sticky;
    top: 0;

    background:
        rgba(255,255,255,.92);

    backdrop-filter: blur(14px);

    padding:
        14px 0 10px;

    margin-top: 12px;

    z-index: 5;

    font-size: .78rem;

    letter-spacing: .08em;

    text-transform: uppercase;

    color:#6b7280;
}

.menu-item{
    grid-template-columns:
        minmax(0,1fr)
        auto
        auto;

    gap: 14px;

    padding: 18px 0;

    border-bottom:
        1px solid rgba(18,18,18,.06);
}

.menu-item-info{
    gap:6px;
}

.menu-item-nombre{
    font-size:1rem;
    font-weight:800;
    line-height:1.1;

    color:#111827;
}

.menu-item-descripcion{
    font-size:.78rem;
    color:#6b7280;
    line-height:1.4;
}

.precio{
    font-size:1rem;
    font-weight:800;
    color:#111827;
}

.btn-agregar{
    width:38px;
    height:38px;

    border-radius:50%;

    background:
        linear-gradient(
            135deg,
            #111827,
            #1f2937
        );

    box-shadow:
        0 10px 20px rgba(17,24,39,.18);

    transition:
        transform .18s ease,
        box-shadow .18s ease;
}

.btn-agregar:hover{
    transform:scale(1.08);

    box-shadow:
        0 14px 26px rgba(17,24,39,.28);
}

.modal-info-content{
    display:flex;
    flex-direction:column;
    gap:16px;
}

.modal-info-block{
    background:#f9fafb;

    border:
        1px solid rgba(18,18,18,.06);

    border-radius:22px;

    padding:18px;
}

.modal-info-block strong{
    display:block;

    margin-bottom:8px;

    font-size:.82rem;

    letter-spacing:.04em;

    text-transform:uppercase;

    color:#6b7280;
}

.modal-info-block p{
    color:#111827;
    font-weight:600;
    line-height:1.5;
}

.btn-cerrar-local{
    position:absolute;

    top:18px;
    right:18px;

    width:42px;
    height:42px;

    border:none;

    border-radius:50%;

    background:
        rgba(255,255,255,.92);

    backdrop-filter: blur(10px);

    box-shadow:
        0 10px 20px rgba(0,0,0,.10);

    font-size:1rem;

    transition:all .18s ease;
}

.btn-cerrar-local:hover{
    transform:scale(1.06);
}

@media (max-width: 600px){

    .modal-local{
        border-radius:32px 32px 0 0;
    }

    .modal-local-header{
        padding:20px 18px 16px;
    }

    .modal-local-logo{
        width:72px;
        height:72px;
    }

    .modal-local-info h2{
        font-size:1.6rem;
    }

    .modal-local-tabs{
        top:118px;
        padding:12px 16px;
    }

    .modal-local-content{
        padding:
            8px 16px 120px;
    }

    .menu-item{
        gap:12px;
    }

    .menu-item-nombre{
        font-size:.95rem;
    }

    .btn-agregar{
        width:36px;
        height:36px;
    }
}

/* FIX: botón cerrar modal local siempre visible */
.btn-cerrar-local{
    position: fixed;
    top: calc(14px + env(safe-area-inset-top));
    right: 14px;
    z-index: 9999;

    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 999px;

    background: rgba(17,24,39,.92);
    color: white;

    font-size: 1.1rem;
    font-weight: 800;

    box-shadow: 0 10px 28px rgba(0,0,0,.22);
}
.modal-local-cta{
position: fixed;


left: 50%;
bottom: calc(18px + env(safe-area-inset-bottom));

transform: translateX(-50%);

width: calc(100% - 36px);
max-width: 560px;

height: 56px;

border: none;
border-radius: 999px;

background:
    linear-gradient(
        135deg,
        #111827,
        #1f2937
    );

color: white;

font-size: 1rem;
font-weight: 800;

z-index: 9999;

box-shadow:
    0 18px 38px rgba(17,24,39,.28);

backdrop-filter: blur(12px);


}
/* =========================================================
   FIX FINAL · BOTTOM NAV + CTA MODAL
   ========================================================= */

@media (max-width: 390px){

    .bottom-nav-app{
        width: calc(100% - 18px);
        bottom: 10px;
        border-radius: 24px;
        padding: 6px;
    }

    .bottom-nav-item{
        min-height: 48px;
    }

    .bottom-nav-item span{
        font-size: 1rem;
    }

    .bottom-nav-item small{
        font-size: .64rem;
    }

}

/* ===== CTA VER PEDIDO DEL MODAL ===== */

.modal-local-cta{
    position: fixed;

    left: 50%;
    bottom: calc(18px + env(safe-area-inset-bottom));

    transform: translateX(-50%);

    width: calc(100% - 36px);
    max-width: 560px;

    height: 56px;

    border: none;
    border-radius: 999px;

    background: linear-gradient(
        135deg,
        #111827,
        #1f2937
    );

    color: white;

    font-size: 1rem;
    font-weight: 800;

    z-index: 9999;

    box-shadow:
        0 18px 38px rgba(17,24,39,.28);

    backdrop-filter: blur(12px);

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        background .18s ease;
}

.modal-local-cta:hover{
    transform:
        translateX(-50%)
        translateY(-2px);

    box-shadow:
        0 22px 46px rgba(17,24,39,.34);

    background: linear-gradient(
        135deg,
        #0f172a,
        #111827
    );
}

.modal-local-content{
    padding-bottom: 110px !important;
}

/* FIX botón cerrar visible siempre */

.btn-cerrar-local{
    position: fixed;

    top: calc(14px + env(safe-area-inset-top));
    right: 14px;

    z-index: 99999;

    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 999px;

    background: rgba(17,24,39,.92);

    color: white;

    font-size: 1.1rem;
    font-weight: 800;

    box-shadow:
        0 10px 28px rgba(0,0,0,.22);

    backdrop-filter: blur(12px);
}


/* =========================================================
   FIX FINAL · EVITAR DOBLE BOTÓN "VER PEDIDO"
   Oculta el carrito flotante normal cuando el modal del local está abierto.
   ========================================================= */

body:has(.modal-local-overlay.visible) .carrito-flotante{
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Fallback por si luego agregamos/quitasemos esta clase desde JS */
.carrito-flotante.oculto-modal-local{
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Asegura que el CTA del modal sea el único botón de pedido visible dentro del modal */
.modal-local-overlay.visible .modal-local-cta{
    display: flex !important;
}

/* Si por algún bug se duplicara el CTA, se ocultan copias adicionales */
.modal-local-cta + .modal-local-cta{
    display: none !important;
}
.modal-local-cta{
    display:none !important;
}

.modal-local-overlay.visible ~ .carrito-flotante,
body:has(.modal-local-overlay.visible) .carrito-flotante{
    display:flex !important;
    z-index:10000;
    bottom: calc(18px + env(safe-area-inset-bottom));
}

/* =========================================================
   FIX DEFINITIVO · MODAL LOCAL + BOTÓN VER PEDIDO
   ========================================================= */

/* El pseudo-elemento anterior creaba un segundo “botón” falso y no clickeable. */
.modal-local::after{
    content: none !important;
    display: none !important;
}

body:has(.modal-local-overlay.visible) .carrito-flotante{
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.modal-local-overlay.visible .modal-local-cta{
    display: flex !important;
}

.modal-local-cta{
    position: fixed !important;
    left: 50% !important;
    bottom: calc(18px + env(safe-area-inset-bottom)) !important;
    transform: translateX(-50%) !important;
    width: calc(100% - 36px) !important;
    max-width: 560px !important;
    height: 56px !important;
    border: none !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #111827, #1f2937) !important;
    color: #fff !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    z-index: 9999 !important;
    box-shadow: 0 18px 38px rgba(17,24,39,.28) !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
}

.modal-local-content{
    padding-bottom: 110px !important;
}


/* =========================================================
   ROSARIO YA 8.5 · PULIDO FINAL FRONTEND
   Objetivo: menos ruido visual, mejor jerarquía, modal usable
   y experiencia mobile más profesional sin tocar Supabase.
   ========================================================= */

:root{
    --primary:#ff5a00;
    --primary-2:#ff7a1a;
    --ink:#111827;
    --surface:#ffffff;
    --soft:#f8fafc;
    --line:rgba(17,24,39,.08);
}

body{
    background:
        radial-gradient(circle at top left, rgba(255,90,0,.08), transparent 28%),
        linear-gradient(180deg, #fafafa 0%, #f3f4f6 100%);
}

/* Home: más producto, menos flyer */
.hero-rosarioya{
    box-shadow: 0 24px 70px rgba(15,23,42,.11);
}

.hero-copy h1{
    max-width: 780px;
}

.hero-copy .sub{
    max-width: 680px;
}

.filtros,
.buscador-box{
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}

.grid{
    align-items:start;
}

/* Cards: el usuario entiende rápido qué hacer */
.card{
    isolation:isolate;
}

.card-header{
    min-height:112px;
}

.card-body{
    display:flex;
    flex-direction:column;
}

.btn-menu{
    order:20;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
}

.btn-menu::after{
    content:"→";
    font-size:1rem;
    transition:transform .18s ease;
}

.btn-menu:hover::after{
    transform:translateX(3px);
}

.botones:empty{
    display:none;
}

.botones{
    order:21;
}

/* Acciones secundarias más tranquilas */
.botones .btn{
    background:#fff;
    color:#374151;
    border:1px solid var(--line);
    box-shadow:0 8px 18px rgba(15,23,42,.04);
}

.botones .btn-llamar{
    background:#111827;
    color:#fff;
    border-color:#111827;
}

.botones .btn:hover{
    transform:translateY(-1px);
    box-shadow:0 12px 24px rgba(15,23,42,.08);
}

/* El modal del local pasa a ser el centro del pedido */
.modal-local-overlay.visible{
    display:flex !important;
}

.modal-local{
    background:#fff !important;
    border:1px solid rgba(255,255,255,.72) !important;
}

.modal-local-header{
    position:relative !important;
    top:auto !important;
    z-index:3 !important;
    min-height:auto !important;
    padding:24px 24px 20px !important;
    background:
        radial-gradient(circle at 12% 0%, rgba(255,90,0,.18), transparent 32%),
        linear-gradient(135deg,#fff7ed 0%,#fff 62%,#f8fafc 100%) !important;
}

.modal-local-tabs{
    top:0 !important;
    z-index:7 !important;
}

.modal-local-content{
    padding-bottom:104px !important;
}

.modal-local .menu-item{
    background:#fff;
}

.modal-local .menu-item-precio-agregar{
    align-items:center;
}

.modal-local-cta{
    display:none !important;
    gap:8px !important;
    letter-spacing:-.01em !important;
}

.modal-local-overlay.visible .modal-local-cta{
    display:flex !important;
}

.modal-local-cta:hover{
    transform:translateX(-50%) translateY(-2px) !important;
}

.modal-local::after{
    content:none !important;
    display:none !important;
}

/* Carrito: más claro y táctil */
.modal-carrito{
    border:1px solid rgba(255,255,255,.8);
    box-shadow:0 -18px 60px rgba(15,23,42,.20);
}

.modal-header h2{
    font-weight:850;
    letter-spacing:-.03em;
}

.carrito-item{
    background:#fff;
    border:1px solid rgba(17,24,39,.06);
    border-radius:18px;
    padding:12px;
    margin-bottom:10px;
}

.btn-qty{
    width:32px;
    height:32px;
    font-weight:900;
}

.btn-pedir-wsp{
    min-height:52px;
    font-weight:850;
    box-shadow:0 14px 32px rgba(37,211,102,.25);
}

/* Mobile: evita sensación de pantalla saturada */
@media (max-width:760px){
    body{
        padding-inline:12px;
    }

    .hero-rosarioya{
        margin-top:0;
    }

    .card:hover{
        transform:none;
    }

    .btn-menu,
    .btn-pedir-wsp,
    .modal-local-cta{
        min-height:54px;
    }

    .modal-local{
        height:95vh !important;
    }

    .modal-local-header{
        padding:22px 18px 16px !important;
    }

    .modal-local-tabs{
        padding:10px 12px !important;
    }

    .modal-local-content{
        padding:12px 16px 108px !important;
    }

    .modal-local-cta{
        bottom:calc(14px + env(safe-area-inset-bottom)) !important;
    }

    .carrito-flotante.visible{
        bottom:88px;
    }
}

@media (max-width:420px){
    .hero-copy h1{
        font-size:2.25rem;
    }

    .hero-trust-row span{
        font-size:.74rem;
    }

    .botones{
        flex-direction:row !important;
    }

    .botones .btn{
        font-size:.74rem;
        padding-inline:8px;
    }
}

/* ============================================
   LUCIDE ICONS - Estilos profesionales
   ============================================ */
.icon {
  width: 1.1em;
  height: 1.1em;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
  stroke-width: 1.8;
  stroke: currentColor;
  fill: none;
  flex-shrink: 0;
}

.btn .icon,
.badge .icon {
  margin-right: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Iconos dentro de botones flotantes */
.carrito-flotante .icon {
  margin-right: 8px;
}

/* Hero trust row */
.hero-trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Modal local tabs */
.tab-local {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Ajustes responsivos */
@media (max-width: 600px) {
  .icon {
    width: 1em;
    height: 1em;
  }
}

/* ============================================
   MULTIRUBRO BADGES
   ============================================ */
.badge.rubro {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    color: #4338ca;
    border: 1px solid rgba(67, 56, 202, 0.15);
}

.badge.servicio {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #15803d;
    border: 1px solid rgba(21, 128, 61, 0.15);
}

.badge.reserva {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #b45309;
    border: 1px solid rgba(180, 83, 9, 0.15);
}

.badge.abierto {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #047857;
}

.badge.cerrado {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #b91c1c;
}

/* Destacado badge */
.destacado-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 10;
    backdrop-filter: blur(4px);
}

.destacado-badge .icon {
    width: 0.9em;
    height: 0.9em;
}

/* Botón reserva */
.btn-reserva {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
}

.btn-reserva:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(245, 158, 11, 0.3);
}

/* Loader animation */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

[data-lucide="loader-circle"] {
    animation: spin 1s linear infinite;
}

/* Menu vacío con ícono */
.menu-vacio {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 48px 24px;
    text-align: center;
    color: #9ca3af;
}

.menu-vacio .icon {
    width: 48px;
    height: 48px;
    stroke-width: 1.5;
}

/* ============================================
   BOTÓN COMPARTIR (agregado)
   ============================================ */
.btn-share {
    background: #fff;
    color: #374151;
    border: 1px solid rgba(17,24,39,0.15);
    border-radius: 999px;
    padding: 12px 10px;
    font-size: 0.78rem;
    font-weight: 750;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
}

.btn-share:hover {
    background: #f3f4f6;
    transform: translateY(-1px);
    border-color: rgba(17,24,39,0.25);
}

/* Asegurar que los chips de opciones se vean correctamente */
.opciones-submenu {
    display: none;
}

.opciones-submenu.open {
    display: block;
}

.opcion-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: white;
    border: 1.5px solid #e2e8f0;
    border-radius: 999px;
    padding: 6px 14px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
    color: #334155;
    transition: all 0.15s;
}

.opcion-check:hover {
    border-color: #22c55e;
    background: #f0fdf4;
}

.opcion-check input {
    width: 14px;
    height: 14px;
    accent-color: #22c55e;
    margin: 0;
}

.opcion-check.marcada {
    border-color: #22c55e;
    background: #f0fdf4;
    color: #166534;
    font-weight: 600;
}

.btn-confirmar-opciones {
    width: 100%;
    background: #22c55e;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.btn-confirmar-opciones:hover {
    background: #16a34a;
}

.btn-confirmar-opciones.promo {
    background: #f97316;
}

.btn-confirmar-opciones.promo:hover {
    background: #ea580c;
}

/* ============================================
   MODAL DE SOLICITUD DE NEGOCIO
   ============================================ */

.modal-solicitud {
    background: var(--card);
    border-radius: var(--radius);
    width: 100%;
    max-width: 550px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.25s ease;
    box-shadow: var(--shadow-lg);
}

.modal-solicitud .modal-body {
    overflow-y: auto;
    padding: 20px;
}

.modal-solicitud label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text);
}

.modal-solicitud input,
.modal-solicitud textarea,
.modal-solicitud select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.9rem;
    transition: var(--transition);
    background: var(--card);
}

.modal-solicitud input:focus,
.modal-solicitud textarea:focus,
.modal-solicitud select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15,118,110,0.1);
}

.modal-solicitud textarea {
    resize: vertical;
    min-height: 80px;
}

.aviso-legal {
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 12px;
    font-size: 0.8rem;
    color: #b45309;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 15px 0;
}

.acciones-modal {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn-cancelar {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid var(--border);
}

.btn-cancelar:hover {
    background: #e5e7eb;
}

.btn-enviar {
    background: var(--primary);
    color: white;
}

.btn-enviar:hover {
    background: var(--primary-dark);
}

.btn-enviar:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-agregar-negocio {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-agregar-negocio:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15,118,110,0.3);
}

/* Spinner dentro del botón */
.spinning {
    animation: spin 1s linear infinite;
}

/* ============================================
   BOTÓN AGREGAR NEGOCIO - DESTACADO
   ============================================ */

.btn-agregar-negocio {
    background: linear-gradient(135deg, #ff5a00, #e04e00);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(255, 90, 0, 0.3);
}

.btn-agregar-negocio:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(255, 90, 0, 0.4);
    background: linear-gradient(135deg, #e04e00, #cc4400);
}

.btn-agregar-negocio .icon {
    width: 1.2em;
    height: 1.2em;
}

/* Ajuste para mobile */
@media (max-width: 600px) {
    .btn-agregar-negocio {
        padding: 12px 20px;
        font-size: 0.85rem;
        width: 100%;
        justify-content: center;
    }
}


/* ============================================
   MODAL DE SOLICITUD - BOTONES MEJORADOS
   ============================================ */

.modal-solicitud .acciones-modal {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.modal-solicitud .btn-cancelar {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.modal-solicitud .btn-cancelar:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

.modal-solicitud .btn-enviar {
    background: linear-gradient(135deg, #ff5a00, #e04e00);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(255, 90, 0, 0.3);
}

.modal-solicitud .btn-enviar:hover {
    background: linear-gradient(135deg, #e04e00, #cc4400);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 90, 0, 0.4);
}

.modal-solicitud .btn-enviar:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Mejorar el aviso legal */
.modal-solicitud .aviso-legal {
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.8rem;
    color: #b45309;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.modal-solicitud .aviso-legal .icon {
    flex-shrink: 0;
}

/* Mejorar los inputs del modal */
.modal-solicitud input,
.modal-solicitud textarea,
.modal-solicitud select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.9rem;
    transition: all 0.2s;
    background: white;
}

.modal-solicitud input:focus,
.modal-solicitud textarea:focus,
.modal-solicitud select:focus {
    outline: none;
    border-color: #ff5a00;
    box-shadow: 0 0 0 3px rgba(255, 90, 0, 0.1);
}

.modal-solicitud label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #1e293b;
}

.modal-solicitud label .icon {
    margin-right: 6px;
    color: #ff5a00;
}
/* ============================================
   FIX MÓVIL: Evitar parpadeo en botones
   ============================================ */

/* Deshabilitar hover effects en móvil */
@media (max-width: 768px) {
    .btn-menu {
        transition: none !important;
        transform: none !important;
        will-change: auto !important;
    }
    
    .btn-menu:hover {
        transform: none !important;
    }
    
    .btn-menu::after {
        transition: none !important;
    }
    
    .btn-menu:hover::after {
        transform: none !important;
    }
    
    /* Estabilizar cards durante scroll */
    .card {
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
    
    /* Evitar repintados en scroll */
    .card-body {
        transform: translateZ(0);
    }
}
