/* =========================================
   1. VARIABLES & CONFIGURACIÓN
   ========================================= */
:root {
    /* Paleta de Colores */
    --primary-color: #ebb51e;
    --primary-glow: rgba(235, 181, 30, 0.4);
    
    /* Fondos */
    --bg-body: #0b0b0c;
    --bg-gradient: radial-gradient(circle at top, #1c1c1f 0%, #0b0b0c 100%);
    --bg-card: rgba(22, 22, 24, 0.95);
    --bg-elevated: #1e1e21;
    
    /* Textos */
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-dark: #0b0b0c;
    
    /* Dimensiones y Estructura */
    --border-color: rgba(235, 181, 30, 0.2);
    --header-height: 100px;
    --nav-height: 70px;
    
    /* Offsets Dinámicos (JS) */
    --header-offset: var(--header-height);
    --nav-height-dyn: var(--nav-height);
    
    --border-radius: 16px;
    --container-max: 1200px;
    
    /* Animaciones */
    --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    
    /* Capas Z-Index */
    --z-back: 1;
    --z-nav: 900;
    --z-header: 1000;
    --z-floating: 2000;
}

/* =========================================
   2. RESET & OPTIMIZACIÓN (CROSS-BROWSER)
   ========================================= */
* { 
    box-sizing: border-box; 
    -webkit-tap-highlight-color: transparent; /* Elimina flash azul en móviles al tocar */
}

html {
    scroll-behavior: auto !important; /* JS "Glide" maneja el scroll suave */
    height: auto;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%; /* Previene zoom de texto automático en iOS */
}

body {
    margin: 0;
    padding-top: calc(var(--header-height) + var(--nav-height)); 
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg-body) var(--bg-gradient);
    background-size: cover;
    background-attachment: fixed; /* Mejora rendimiento visual */
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased; /* Texto más nítido en Mac */
    -moz-osx-font-smoothing: grayscale;
}

/* Offset para anclas (evita que el header tape títulos) */
[id] { 
    scroll-margin-top: 180px; 
}

ul { list-style: none; padding: 0; margin: 0; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }
button, input, textarea { font-family: inherit; }

/* Scrollbar Personalizada */
::-webkit-scrollbar { width: 8px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background: var(--primary-color); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #d4a017; }

/* =========================================
   3. HEADER (CABECERA)
   ========================================= */
.topbar {
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%;
    z-index: var(--z-header);
    height: var(--header-height); 
    background: rgba(11, 11, 12, 0.95);
    -webkit-backdrop-filter: blur(15px); /* Soporte Safari */
    backdrop-filter: blur(15px); 
    border-bottom: 1px solid var(--border-color);
    display: flex; 
    align-items: center;
    transition: height 0.3s ease;
}

.topbar-container {
    width: 100%; 
    max-width: var(--container-max); 
    margin: 0 auto;
    padding: 0 20px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
}

.topbar-left { display: flex; align-items: center; gap: 18px; }

.logo-wrapper {
    width: 70px; height: 70px; 
    border-radius: 50%; 
    border: 2px solid var(--primary-color);
    overflow: hidden; 
    box-shadow: 0 0 20px var(--primary-glow); 
    background: #000;
    transition: var(--transition);
    flex-shrink: 0;
}
.logo-link:hover .logo-wrapper { transform: scale(1.05); border-color: #fff; }
.logo-img { width: 100%; height: 100%; object-fit: cover; }

.brand-text { display: flex; flex-direction: column; justify-content: center; }
.restaurant-name { font-size: 1.5rem; font-weight: 900; color: var(--primary-color); margin: 0; line-height: 1; white-space: nowrap; }
.restaurant-tagline { font-size: 0.8rem; color: var(--text-secondary); margin: 4px 0 0; }

.status-badge { 
    font-size: 0.65rem; color: #4ade80; font-weight: 800; 
    display: flex; align-items: center; gap: 5px; margin-bottom: 4px; 
}
.status-dot { width: 7px; height: 7px; background: currentColor; border-radius: 50%; animation: pulse 2s infinite; }
/* Estado cuando el restaurante está cerrado */
.status-badge.is-closed {
    color: #ff4b4b; /* Rojo vibrante */
}
.topbar-right { display: flex; align-items: center; gap: 15px; flex-grow: 1; justify-content: flex-end; }

/* Buscador */
.search-wrapper { position: relative; width: 220px; transition: width 0.3s ease; }
.search-input {
    width: 100%; background: rgba(255,255,255,0.05); 
    border: 1px solid rgba(235, 181, 30, 0.3);
    border-radius: 10px; padding: 8px 12px 8px 35px; 
    color: white; font-size: 0.85rem;
    transition: var(--transition);
}
.search-input:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 15px var(--primary-glow); background: rgba(255,255,255,0.1); }
.search-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--primary-color); pointer-events: none; }

/* Acciones Sociales */
.social-actions { display: flex; align-items: center; gap: 12px; }
.social-list { display: flex; gap: 12px; align-items: center; }
.social-list a { color: #fff; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.social-list a:hover { color: var(--primary-color); transform: scale(1.15); }

/* Botones de Acción */
.btn-action {
    padding: 10px 18px; border-radius: 50px; font-weight: 800; font-size: 0.8rem;
    display: flex; align-items: center; justify-content: center; gap: 8px; transition: var(--transition);
    white-space: nowrap; cursor: pointer;
}
.btn-delivery { background: var(--primary-color); color: var(--text-dark); border: none; box-shadow: 0 4px 15px var(--primary-glow); }
.btn-contact { border: 1px solid var(--primary-color); color: var(--primary-color); background: transparent; }
.btn-location, .btn-reviews { padding: 10px; border: 1px solid var(--primary-color); color: var(--primary-color); background: transparent; }
.btn-action:hover { transform: translateY(-3px); box-shadow: 0 8px 20px var(--primary-glow); }

/* =========================================
   4. NAVEGACIÓN CATEGORÍAS (SCROLL HORIZONTAL)
   ========================================= */
.cat-nav {
    position: fixed;
    top: var(--header-offset); 
    left: 0; width: 100%;
    z-index: var(--z-nav);
    height: var(--nav-height); 
    background: rgba(11, 11, 12, 0.98);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color); 
    display: flex; align-items: center;
    transition: top 0.3s ease;
}

.cat-list { 
    display: flex; align-items: center; gap: 15px; 
    height: 100%; width: 100%; 
    margin: 0; padding: 0 20px;
    justify-content: flex-start; /* Default para asegurar scroll desde el inicio */
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* Scroll suave en iOS */
}

/* Centrado en pantallas grandes si no hay scroll */
@media (min-width: 1200px) {
    .cat-list { justify-content: center; }
}

/* Ocultar scrollbar pero permitir scroll */
.cat-list::-webkit-scrollbar { height: 4px; }
.cat-list::-webkit-scrollbar-thumb { background: var(--primary-color); border-radius: 10px; }

.cat-link { 
    white-space: nowrap; font-size: 0.9rem; font-weight: 700; 
    color: var(--text-secondary); padding: 8px 18px; border-radius: 50px; 
    transition: var(--transition); flex-shrink: 0;
    border: 1px solid transparent;
}
.cat-link:hover { color: var(--primary-color); border-color: rgba(235, 181, 30, 0.3); transform: translateY(-2px); }
.cat-link.active { background: var(--primary-color); color: var(--text-dark); box-shadow: 0 4px 15px var(--primary-glow); border-color: var(--primary-color); }

/* =========================================
   5. BANNER (SOLO IMAGEN - SIN BORDES)
   ========================================= */
.banner-slider-container {
    width: 100%; 
    max-width: var(--container-max); 
    margin: 30px auto;
    overflow: hidden; 
    border-radius: var(--border-radius); /* Mantiene las esquinas redondeadas */
    height: 350px;
    position: relative;
    background: transparent; 
    border: none !important; /* Eliminamos cualquier rastro de borde */
    box-shadow: none; /* Aseguramos que no haya sombras que parezcan bordes */
}

/* Eliminamos el elemento ::after que creaba el borde virtual */
.banner-slider-container::after {
    display: none;
    content: none;
}

.banner-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: sequentialFade 16s infinite; 
}

/* Tiempos de las fotos (Ciclo de 16s / 4s por foto) */
.banner-slider img:nth-child(1) { animation-delay: 0s; }
.banner-slider img:nth-child(2) { animation-delay: 4s; }
.banner-slider img:nth-child(3) { animation-delay: 8s; }
.banner-slider img:nth-child(4) { animation-delay: 12s; }

@keyframes sequentialFade {
    0% {
        opacity: 0;
    }
    /* Aparece */
    5% {
        opacity: 1;
    }
    /* Se mantiene */
    22% {
        opacity: 1;
    }
    /* Se desvanece por completo antes de que empiece la otra */
    25% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}
/* =========================================
   6. SECCIÓN MENÚ (GRID)
   ========================================= */
.menu-grid { max-width: var(--container-max); margin: 20px auto; padding: 0 20px; }

.section-title {
    color: var(--primary-color); font-size: 1.1rem; text-transform: uppercase;
    letter-spacing: 2px; display: flex; align-items: center; gap: 15px; margin: 50px 0 25px;
}
.section-title::after { content: ""; height: 1px; flex-grow: 1; background: linear-gradient(to right, var(--primary-color), transparent); }

.section-items { 
    display: grid; 
    gap: 25px; 
    grid-template-columns: 1fr; /* Móvil por defecto */
}

/* Tablet y Desktop: 2 Columnas */
@media (min-width: 768px) { 
    .section-items { grid-template-columns: repeat(2, 1fr); } 
}

.item-card { 
    display: flex; background: var(--bg-card); border-radius: var(--border-radius); 
    overflow: hidden; border: 1px solid rgba(255,255,255,0.05); transition: var(--transition);
    position: relative;
    /* Prevención de desborde en móviles pequeños */
    min-height: 140px; 
}
.item-card:hover { transform: translateY(-5px); border-color: var(--primary-color); box-shadow: 0 10px 30px rgba(0,0,0,0.5); z-index: 2; }

.item-details { flex: 1; padding: 20px; display: flex; flex-direction: column; justify-content: center; }
.item-name { margin: 0; font-size: 1.15rem; font-weight: 800; line-height: 1.3; }
.item-price { color: var(--primary-color); font-weight: 800; font-size: 1.1rem; margin-top: 8px; }
.item-desc { color: var(--text-secondary); font-size: 0.9rem; margin-top: 8px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Contenedor de Imagen (Fondo invisible para espacio reservado) */
.item-media { 
    width: 140px; min-width: 140px; 
    background: rgba(255,255,255,0.01); 
    position: relative;
    overflow: hidden;
}
.item-img { 
    width: 100%; height: 100%; object-fit: cover; 
    transition: opacity 0.5s ease, transform 0.8s; 
    opacity: 0; /* Oculto hasta cargar */
}
.item-img.loaded { opacity: 1; }
.item-card:hover .item-img { transform: scale(1.1); }

/* =========================================
   7. SECCIONES ESPECIALES (DELIVERY, MAPA, CONTACTO)
   ========================================= */

/* Separador visual */
.section-divider {
    width: 100%; height: 1px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
    margin: 60px 0; opacity: 0.5;
}

/* --- ESTILOS DE TÍTULOS PRINCIPALES (Delivery, Visítanos) --- */
/* Los hacemos coincidir con el estilo del menú pero centrados */
.delivery-main-title, .main-section-title { 
    color: var(--primary-color); 
    font-size: 2rem; 
    font-weight: 900; 
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
    margin: 60px auto 40px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 90%;
}

/* Líneas decorativas a los lados del título (Efecto elegante) */
.delivery-main-title::before, .delivery-main-title::after,
.main-section-title::before, .main-section-title::after {
    content: "";
    height: 2px;
    width: 60px; /* Largo de la línea */
    background: linear-gradient(to right, transparent, var(--primary-color));
}
.delivery-main-title::after, .main-section-title::after {
    background: linear-gradient(to left, transparent, var(--primary-color));
}


/* --- SECCIÓN DELIVERY --- */
.delivery-section { max-width: 1400px; margin: 0 auto 80px auto; padding: 20px; text-align: center; }

.delivery-card {
    background: var(--primary-color); 
    color: var(--text-dark); 
    padding: 30px 50px;
    border-radius: 50px; /* Más redondo, estilo botón */
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    transition: var(--transition); 
    box-shadow: 0 0 20px var(--primary-glow); /* Glow inicial */
    text-decoration: none; 
    width: auto; 
    min-width: 300px;
    border: 2px solid var(--primary-color);
}

/* Animación Hover Delivery: Se eleva y brilla más */
.delivery-card:hover { 
    transform: translateY(-5px) scale(1.05); 
    box-shadow: 0 0 40px var(--primary-color);
    background: #fff; /* Fondo blanco al pasar mouse */
    border-color: #fff;
}
/* Al pasar el mouse, el logo de Uber Eats debe verse bien sobre blanco */
.delivery-card:hover .uber-logo-svg { filter: brightness(0); /* Logo negro */ }
.uber-logo-svg { width: 140px; height: auto; transition: var(--transition); }


/* --- SECCIÓN CONTACTO --- */
.contact-section { padding: 80px 20px; background: url('assets/img/banner/imgb1.jpg') center/cover fixed; position: relative; }
.contact-section::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.85); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }

.contact-card {
    position: relative; max-width: 700px; margin: 0 auto; 
    background: rgba(20, 20, 22, 0.6); /* Más transparente */
    padding: 40px; border-radius: 24px; 
    border: 1px solid rgba(235, 181, 30, 0.1); /* Borde sutil */
    backdrop-filter: blur(12px); 
    text-align: center; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transition: var(--transition);
}

/* Hover suave en la tarjeta de contacto entera */
.contact-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 30px var(--primary-glow);
}

.contact-title { 
    color: var(--primary-color); font-size: 1.8rem; font-weight: 800; margin-bottom: 5px; 
    text-transform: uppercase; letter-spacing: 1px;
}
.contact-email-text { color: white; margin-bottom: 30px; font-weight: 600; }

.contact-form input, .contact-form textarea {
    width: 100%; 
    background: rgba(0,0,0,0.3); 
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px; padding: 15px; 
    color: white; margin-bottom: 20px; outline: none; 
    transition: all 0.3s ease;
}

/* Al escribir, el borde se pone amarillo brillante (INPUTS) */
.contact-form input:focus, .contact-form textarea:focus { 
    border-color: var(--primary-color); 
    background: rgba(0,0,0,0.5); 
    box-shadow: 0 0 15px rgba(235, 181, 30, 0.2);
}

.btn-submit { 
    width: 100%; padding: 15px; 
    background: var(--primary-color); color: var(--text-dark); 
    font-weight: 800; border-radius: 12px; border: none; 
    cursor: pointer; transition: 0.3s; text-transform: uppercase; letter-spacing: 1px;
}
.btn-submit:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 5px 20px var(--primary-glow);
    background: #fff;
}


/* --- SECCIÓN MAPA Y TARJETAS FLOTANTES --- */
.map-section { position: relative; width: 100%; background: #000; }
.map-container { height: 500px; width: 100%; position: relative; }

.map-info-overlay { 
    position: absolute; 
    top: 50%; left: 50%; 
    transform: translate(-50%, -50%); 
    z-index: 10; 
    width: 90%; max-width: 900px; 
    pointer-events: none; /* Permite ver el mapa detrás, pero... */
}

.map-cards-container { 
    display: flex; gap: 30px; justify-content: center; 
    pointer-events: auto; /* ...hace clickeables las tarjetas */
}

/* Tarjetas de Dirección y Horario (IGUAL AL MENÚ) */
.map-info-card {
    background: rgba(22, 22, 24, 0.95); 
    padding: 40px 30px; 
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.05); /* Borde invisible inicial */
    flex: 1; 
    backdrop-filter: blur(15px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.8); 
    text-align: center; 
    transition: var(--transition); /* Animación suave */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* EL EFECTO HOVER QUE FALTABA (Igual al menú) */
.map-info-card:hover { 
    transform: translateY(-10px); /* Se eleva */
    border-color: var(--primary-color); /* Borde Amarillo */
    box-shadow: 0 20px 60px var(--primary-glow); /* Resplandor dorado */
}

.map-info-card h3 { 
    font-size: 1.3rem; color: white; 
    margin: 15px 0 10px; font-weight: 800; 
    text-transform: uppercase;
}
.map-info-card p { 
    font-size: 1rem; color: var(--text-secondary); 
    line-height: 1.6; margin: 0;
}
.map-info-card svg {
    filter: drop-shadow(0 0 5px var(--primary-glow)); /* Icono brilla un poco */
}
/* =========================================
   8. BOTONES FLOTANTES (CORREGIDO)
   ========================================= */
.float-btn {
    position: fixed;
    width: 52px; 
    height: 52px; 
    border-radius: 50% !important; /* Fuerza la forma circular */
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
    z-index: var(--z-floating);
    box-shadow: 0 8px 25px rgba(0,0,0,0.6);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none; 
    cursor: pointer;
    padding: 0;
}


.float-btn:hover { 
    transform: translateY(-5px) scale(1.1) !important; 
    box-shadow: 0 15px 30px rgba(0,0,0,0.7); 
}

/* Flecha Abajo (Izquierda Superior) */
.float-down {
    top: calc(var(--header-offset) + var(--nav-height-dyn) + 20px); 
    left: 30px; 
    background: var(--primary-color); 
    color: var(--text-dark); 
    border: 2px solid #000; /* Borde negro estético */
    opacity: 0; 
    transform: translateY(-20px); 
    pointer-events: none;
}

/* Flecha Arriba (Izquierda Inferior) */
.float-top {
    left: 30px; 
    bottom: 30px;
    background: var(--primary-color); 
    color: var(--text-dark); 
    border: 2px solid #000;
    opacity: 0; 
    transform: translateY(20px); 
    pointer-events: none;
}

/* WhatsApp (Derecha Inferior) */
.float-whatsapp {
    right: 30px;
    bottom: 30px;
    background: #25D366 !important; 
    color: white !important;
    border: 2px solid white !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.float-whatsapp svg {
    /* Tamaño ideal para un botón de 52px */
    width: 34px !important;
    height: 34px !important;
    margin: 0 !important;
    display: block;
    /* Centrado óptico: corregimos la colita del globo */
    transform: translate(0.5px, 0.5px); 
}
/* Clases de visibilidad (JS) */
.float-top.visible, .float-down.visible { 
    opacity: 1; 
    transform: translateY(0); 
    pointer-events: auto; 
}
/* =========================================
   9. LÓGICA ESPECIAL DE BEBIDAS (ZOOM CORREGIDO)
   ========================================= */
/* Configuración base para el contenedor de la bebida */
section[id*="bebida" i] .item-media {
    display: flex; 
    align-items: center; 
    justify-content: center;
    padding: 0; 
    overflow: hidden;
}

/* 1. Zoom Base (Fanta, Inka Kola, etc): +25% */
section[id*="bebida" i] .item-img {
    object-fit: contain !important;
    height: 130px !important; 
    width: 100% !important;
    transform: scale(1.25); 
    transition: transform 0.4s ease, opacity 0.5s ease;
}
/* Hover Base */
section[id*="bebida" i] .item-card:hover .item-img { 
    transform: scale(1.45); 
}

/* 2. SPRITE: Zoom Extra (+65%) para compensar el borde transparente */
section[id*="bebida" i] .item-card[data-search*="sprite"] .item-img { 
    transform: scale(1.65) !important; 
}
section[id*="bebida" i] .item-card[data-search*="sprite"]:hover .item-img { 
    transform: scale(1.85) !important; 
}

/* 3. COCA NORMAL/ZERO: Zoom Medio (+15%) */
section[id*="bebida" i] .item-card[data-search*="coca"] .item-img { 
    transform: scale(1.15) !important; 
}
section[id*="bebida" i] .item-card[data-search*="coca"]:hover .item-img { 
    transform: scale(1.25) !important; 
}

/* 4. COCA LIGHT: Sin Zoom (Tamaño natural) */
section[id*="bebida" i] .item-card[data-search*="light"] .item-img { 
    transform: scale(1.0) !important; 
}
section[id*="bebida" i] .item-card[data-search*="light"]:hover .item-img { 
    transform: scale(1.1) !important; 
}
/* =========================================
   10. FOOTER (ESTILO PREMIUM CENTRADO)
   ========================================= */
.footer { 
    width: 100%; 
    padding: 60px 20px 80px 20px; /* Más espacio abajo para que no choque con botones */
    background: #080809; /* Un negro un pelín más profundo */
    border-top: 1px solid rgba(235, 181, 30, 0.3); /* Línea dorada sutil */
    display: flex; 
    flex-direction: column;
    justify-content: center; 
    align-items: center;
    text-align: center;
}

.footer p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    letter-spacing: 1.5px;
    text-transform: uppercase; /* Le da un toque más elegante */
    font-weight: 400;
}

/* Resaltamos el nombre en dorado */
.footer p span {
    color: var(--primary-color);
    font-weight: 800;
    text-shadow: 0 0 10px rgba(235, 181, 30, 0.2);
}

/* Línea decorativa final opcional */
.footer::after {
    content: "";
    width: 40px;
    height: 2px;
    background: var(--primary-color);
    margin-top: 15px;
    border-radius: 2px;
    opacity: 0.6;
}
/* ==========================================================================
   11. RESPONSIVIDAD TOTAL (HEADER + DELIVERY + CONTACTO + MAPA FINAL)
   ========================================================================== */

/* --- TABLETS Y LAPTOPS --- */
@media (max-width: 1100px) {
    .search-wrapper { width: 160px; }
    .restaurant-name { font-size: 1.2rem; }
}

/* --- MÓVILES Y TABLETS VERTICALES (Max 992px) --- */
@media (max-width: 992px) {
    :root {
        --header-height: auto; 
        --nav-height: 50px;
    }

    body { padding-top: 240px !important; }
    [id] { scroll-margin-top: 240px !important; }

    /* 1. HEADER (Marca, Buscador e Iconos) */
    .topbar { padding: 10px 0; height: auto; }
    .topbar-container { display: flex; flex-direction: column; gap: 12px; padding: 0 15px; }
    .topbar-left { width: 100%; display: flex; align-items: center; gap: 12px; }
    .logo-wrapper { width: 45px; height: 45px; }
    .restaurant-name { font-size: 1.2rem; }
    .topbar-right { width: 100%; display: flex; flex-direction: column; gap: 12px; }
    .social-actions { width: 100%; display: flex !important; flex-direction: row; justify-content: space-between; align-items: center; order: 1; }
    .social-list { display: flex !important; gap: 12px; }
    .social-list svg { width: 20px !important; height: 20px !important; }
    .btn-action { width: 38px !important; height: 38px !important; padding: 0 !important; border-radius: 8px; justify-content: center; }
    .btn-action span { display: none; } 
    .btn-action svg { width: 20px; height: 20px; margin: 0 !important; }
    .search-wrapper { width: 100% !important; margin: 0; order: 2; }
    .search-input { height: 42px; width: 100%; background: rgba(255,255,255,0.08); border-radius: 10px; padding-left: 40px; }

    /* Barra Categorías */
    .cat-nav { height: 50px; background: #0b0b0c; border-bottom: 1px solid var(--border-color); }
    .cat-link { padding: 6px 14px; font-size: 0.85rem; border-radius: 50px; }

    /* 2. SECCIÓN DELIVERY */
    .delivery-main-title { font-size: 1.5rem; gap: 10px; margin: 40px auto 20px auto; }
    .delivery-main-title::before, .delivery-main-title::after { width: 30px; }
    .delivery-card { min-width: unset; width: 90%; max-width: 300px; padding: 18px; border-radius: 40px; }
    .uber-logo-svg { width: 110px; }

    /* 3. SECCIÓN CONTACTO */
    .contact-section { padding: 40px 15px; }
    .contact-card { padding: 25px 20px; border-radius: 20px; }
    .contact-title { font-size: 1.3rem; }
    .contact-email-text { font-size: 0.85rem; margin-bottom: 20px; }
    .contact-form label { font-size: 0.75rem; }
    .contact-form input, .contact-form textarea { padding: 10px; font-size: 0.85rem; margin-bottom: 12px; }

    /* 4. SECCIÓN VISÍTANOS (CORRECCIÓN MAPA Y TARJETAS) */
    .main-section-title { 
        font-size: 1.5rem; /* Título principal más pequeño */
        margin: 40px auto 20px auto;
        gap: 10px;
    }
    .main-section-title::before, .main-section-title::after {
        width: 30px; /* Líneas doradas más cortas */
    }

    .map-section { position: relative; width: 100%; }
    .map-container { height: 580px; } /* Ajustamos alto para que no sobre tanto mapa vacío */

    .map-info-overlay {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 85%; /* Un poco más angosto para que se vea más mapa a los lados */
        z-index: 10;
        pointer-events: none;
    }

    .map-cards-container {
        display: flex;
        flex-direction: column;
        gap: 12px; /* Espacio más pequeño entre las dos tarjetas */
        pointer-events: auto;
    }

    .map-info-card {
        width: 100%;
        padding: 15px 10px; /* Mucho menos padding interno */
        border-radius: 18px; /* Bordes un poco más finos */
        background: rgba(22, 22, 24, 0.95);
        border: 1px solid rgba(235, 181, 30, 0.4);
    }

    .map-info-card h3 {
        font-size: 0.9rem; /* Título de tarjeta más pequeño */
        margin: 5px 0;
        letter-spacing: 1px;
    }

    .map-info-card p {
        font-size: 0.85rem; /* Texto de dirección más pequeño */
        line-height: 1.3;
    }

    .map-info-card svg {
        width: 22px; /* Iconos (lupa/reloj) más pequeños */
        height: 22px;
    }

    /* Botones Flotantes */
    .float-down { top: 250px; left: 15px; }
    .float-top { left: 15px; bottom: 25px; }
    .float-whatsapp { right: 15px; bottom: 25px; }
}

/* --- MÓVILES MINI --- */
@media (max-width: 450px) {
    .main-section-title { font-size: 1.3rem; }
    .map-info-card { padding: 12px 8px; }
    .map-info-card h3 { font-size: 0.85rem; }
    .map-info-card p { font-size: 0.8rem; }
}
/* Ajuste banner móvil mini */
    .banner-slider-container { height: 200px; margin: 15px auto; }
    .banner-slider img { height: 100%; }