/* ========================================
   ESTILOS GLOBALES Y VARIABLES
   ======================================== */
:root {
    --bg-dark: #492817;
    --bg-medium: #662a2a;
    --accent-soft: #8b685d;
    --accent-pale: #795e5e;
    --text-light: #f7e1cd;
    --black: #0a0505;
    --transition: all 0.3s ease;
    --glass-bg: rgba(20, 10, 10, 0.45);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--black);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}
/* ========================================
   BOTÓN DE WHATSAPP EN EL HEADER
   ======================================== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px; /* Separación entre el botón de WhatsApp y la hamburguesa */
}

.wa-header-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #25D366; /* Verde original de WhatsApp */
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.wa-header-btn:hover {
    background-color: #128c7e;
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.5);
    color: white; /* Para asegurar que el texto siga blanco */
}

/* Hacerlo Responsivo para Celulares */
@media (max-width: 500px) {
    .wa-header-btn span {
        display: none; /* Oculta la palabra "Pedir" en móviles */
    }
    .wa-header-btn {
        padding: 8px; /* Lo vuelve un círculo perfecto */
        border-radius: 50%;
    }
    .header-actions {
        gap: 10px; /* Reduce un poco el espacio en pantallas pequeñas */
    }
}
/* ========================================
   REDES SOCIALES Y BOTONES EN EL HEADER
   ======================================== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.top-icon-btn:hover {
    transform: scale(1.1);
}

/* Colores de las redes */
.ig-top { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.fb-top { background-color: #1877F2; }
.moto-top { background-color: #ff9800; }

.wa-header-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: #25D366;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 2px 5px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s ease, background 0.3s ease;
}

.wa-header-btn:hover {
    background-color: #128c7e;
    transform: scale(1.05);
}

/* ========================================
   RESPONSIVE: MAGIA PARA EL CELULAR
   ======================================== */
@media (max-width: 600px) {
    .header-actions {
        gap: 8px; /* Acercamos un poco los botones */
    }
    .top-icon-btn {
        width: 32px; /* Achicamos las burbujas */
        height: 32px;
    }
    .top-icon-btn svg {
        width: 16px;
        height: 16px;
    }
    .wa-text {
        display: none; /* Oculta la palabra "Pedir" para ahorrar espacio vital */
    }
    .wa-header-btn {
        padding: 8px; /* Convierte WhatsApp en otra burbuja redonda */
        border-radius: 50%;
        width: 32px;
        height: 32px;
        justify-content: center;
    }
    .wa-header-btn svg {
        margin: 0;
        width: 16px;
        height: 16px;
    }
}
/* ========================================
   MENÚ LATERAL FLOTANTE (A PRUEBA DE FALLOS)
   ======================================== */
.floating-social-menu {
    position: fixed !important;
    top: 50% !important;
    right: 15px !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    z-index: 999999 !important; /* Z-index exagerado para que nada lo tape */
    pointer-events: auto !important;
}

.float-btn {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    color: white !important;
    text-decoration: none !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 1 !important;
    visibility: visible !important;
}

.float-btn:hover {
    transform: scale(1.15) translateX(-5px) !important;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.6) !important;
}

.moto-btn { background-color: #ff9800 !important; }
.wa-btn { background-color: #25D366 !important; }
.ig-btn { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%) !important; }
.fb-btn { background-color: #1877F2 !important; }

/* Responsivo forzado para móviles */
@media screen and (max-width: 768px) {
    .floating-social-menu {
        right: 8px !important;
        gap: 10px !important;
        display: flex !important; /* Fuerza a que no se oculte */
    }
    .float-btn {
        width: 45px !important;
        height: 45px !important;
    }
    .float-btn svg {
        width: 22px !important;
        height: 22px !important;
    }
}

/* ========================================
   HEADER Y LOGO
   ======================================== */
header {
    background-color: var(--bg-dark);
    padding: 1rem 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.logo-img {
    max-height: 80px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover .logo-img { transform: scale(1.05); }

/* Efecto de Luz Premium en el Logo */
.logo::after {
    content: "";
    position: absolute;
    top: -150%;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.5) 50%, rgba(255,255,255,0) 100%);
    z-index: 2;
    pointer-events: none;
    transform: rotate(15deg) scale(1.5);
    animation: reflejoLuz 4s infinite;
}

@keyframes reflejoLuz {
    0%   { top: -150%; opacity: 0; }
    15%  { opacity: 1; }
    30%  { top: 200%; opacity: 0; }
    100% { top: 200%; opacity: 0; }
}

/* ========================================
   MENÚ LATERAL (EFECTO VIDRIO GLOBAL)
   ======================================== */
.nav-menu {
    position: fixed !important;
    top: 0;
    right: 0 !important; /* Lo anclamos a la derecha */
    width: 350px !important;
    height: 100vh;
    background: rgba(20, 10, 10, 0.3) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.08) !important;

    /* 🔥 ESTO ACTIVA EL MOVIMIENTO HACIA ARRIBA/ABAJO 🔥 */
    overflow-y: auto !important;
    max-height: 100vh;
    -webkit-overflow-scrolling: touch; /* Scroll suave en iOS */
    scrollbar-width: none; /* Oculta barra en Firefox */

    /* Agregamos el Flexbox faltante */
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    padding: 100px 2rem 2rem 2rem !important;

    /* Ocultamos el menú deslizándolo fuera de la pantalla (100% de su ancho) */
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 1000;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
}
.nav-menu::-webkit-scrollbar {
    display: none;
}

.nav-menu.active {
    transform: translateX(0);
}
.nav-menu ul {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1.5rem !important;
    list-style: none;
    width: 100%;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-light);
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 1px;
    transition: var(--transition);
    display: block;
    width: 100%;
    padding: 15px 0;
}

.nav-menu a:hover { color: var(--accent-soft); }

/* Submenú de Categorías */
.submenu-toggle {
    background: transparent !important;
    border: none !important;
    color: var(--text-light) !important;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 1px;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    transition: var(--transition);
}
.submenu-toggle:hover { color: var(--accent-soft) !important; }
.submenu-toggle::after {
    content: "▾";
    margin-left: 10px;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}
.has-submenu.active .submenu-toggle::after { transform: rotate(180deg); }

.submenu {
    display: none;
    list-style: none;
    padding-left: 15px !important;
    margin-top: 15px;
    border-left: 2px solid var(--accent-soft);
    width: 100%;
}
.has-submenu.active .submenu { display: flex; flex-direction: column; gap: 10px; }
.submenu li a {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important; /* Fuerza a que todo empiece desde la izquierda */
    text-align: left !important; /* Evita que el texto intente centrarse */
    gap: 12px;
    padding: 8px 10px;
    font-size: 0.95rem;
    text-transform: capitalize;
    border-radius: 8px;
    width: 100%; /* Asegura que ocupe todo el ancho disponible */
}
.submenu li a:hover { background: rgba(255, 255, 255, 0.05); }

.mini-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--accent-soft);
    background: #222;
}

/* ========================================
   BOTÓN HAMBURGUESA Y OVERLAY
   ======================================== */
.menu-toggle {
    display: flex !important;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;

    /* 🔥 EL ARREGLO MÁGICO 🔥 */
    position: relative !important;
    margin: 0 0 0 auto !important; /* Lo empuja elegantemente a la derecha */
    padding: 0 !important;
    z-index: 1100 !important;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background-color: var(--text-light);
    transition: var(--transition);
    display: block; /* Asegura que se vean las rayas blancas */
}

.menu-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.menu-overlay.active { opacity: 1; visibility: visible; }

/* ========================================
   HERO Y CARRUSEL FLOTANTE
   ======================================== */
.hero {
    display: flex;
    align-items: center;
    min-height: 85vh;
    padding: 4rem 10%;
    gap: 4rem;
    background: linear-gradient(135deg, var(--black) 0%, var(--bg-dark) 100%);
}

.hero-content { flex: 1; }

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero-content p {
    font-size: 1.1rem;
    max-width: 450px;
    margin-bottom: 2.5rem;
    color: var(--accent-soft);
}

.btn-cta {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid var(--text-light);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    transition: var(--transition);
}

.btn-cta:hover {
    background-color: var(--accent-soft);
    color: var(--black);
    font-weight: 600;
}

.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
}

.slider-flotante {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow {
    position: absolute;
    background: rgba(20, 10, 10, 0.8);
    color: var(--text-light);
    border: 1px solid var(--glass-border);
    font-size: 1.5rem;
    padding: 15px 20px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.slider-arrow:hover { background: var(--text-light); color: var(--bg-dark); }
.slider-arrow.prev { left: -20px; }
.slider-arrow.next { right: -20px; }

.main-food-img {
    width: 100%;
    max-width: 550px;
    aspect-ratio: 1/1;
    background-image: url('https://ik.imagekit.io/napzon/nolos/hamburnolopri.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border: none;
    border-radius: 50%;
    background-color: transparent;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
    animation: float 4s ease-in-out infinite;
    transition: background-image 0.4s ease, opacity 0.3s ease;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* ========================================
   SECCIÓN ESPECIALIDADES (GRID)
   ======================================== */
.specialties {
    padding: 6rem 10%;
    background-color: var(--black);
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.card {
    background-color: var(--bg-medium);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255,255,255,0.05);
}

.card:hover {
    transform: translateY(-10px);
    background-color: var(--bg-dark);
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}

.card-img-placeholder {
    width: 100%;
    aspect-ratio: 16/10;
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-img-placeholder span {
    background: rgba(0, 0, 0, 0.6);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.7rem;
    color: var(--text-light);
    text-transform: uppercase;
}

.card-content { padding: 1.5rem; }
.card-content h3 { font-family: 'Playfair Display', serif; font-size: 1.4rem; margin-bottom: 0.5rem; color: var(--text-light); }
.card-content p { font-size: 0.9rem; color: var(--accent-soft); }

/* ========================================
   SECCIÓN DE PEDIDO
   ======================================== */
.order-section {
    padding: 4rem 10%;
    background: var(--black);
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.order-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.whatsapp-form {
    max-width: 600px;
    margin: 2rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.whatsapp-form .form-group { text-align: left; }
.whatsapp-form label { display: block; margin-bottom: 0.5rem; color: var(--accent-soft); }

.whatsapp-form select,
.whatsapp-form input,
.whatsapp-form textarea {
    width: 100%;
    padding: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: white;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
}

.whatsapp-form select option { background-color: var(--bg-dark); color: white; }

.cta-button {
    background: #25d366;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s;
}

.cta-button:hover { transform: scale(1.05); background-color: #128c7e; }

/* ========================================
   FOOTER
   ======================================== */
.footer {
    text-align: center;
    padding: 2rem;
    background: var(--black);
    color: var(--accent-soft);
    font-size: 0.8rem;
    border-top: 1px solid var(--bg-dark);
}

/* ========================================
   RESPONSIVE (MÓVILES Y TABLETS)
   ======================================== */
@media (max-width: 992px) {
    .hero { flex-direction: column; text-align: center; padding-top: 2rem; }
    .hero-content p { margin: 0 auto 2.5rem; }
    .hero-image-container { order: 2; width: 100%; }
}

@media (max-width: 768px) {
    .logo-img { max-height: 60px; }

    /* 1. Le devolvemos un espacio a la izquierda para que no se pegue a la pantalla */
    .nav-menu {
        width: 100% !important;
        padding: 100px 2rem 2rem 2rem !important;
    }

    /* 2. Forzamos a que TODOS los enlaces del menú empiecen desde la izquierda */
    .nav-menu ul {
        align-items: flex-start !important;
    }

    .slider-arrow.prev { left: 0px; }
    .slider-arrow.next { right: 0px; }
    .main-food-img { width: 280px; height: 280px; max-width: 90vw; }
}

/**/
.nav-menu {
    pointer-events: none;
}

.nav-menu.active {
    pointer-events: auto;
}
.floating-social-menu {
    position: fixed;
    bottom: 90px;
    right: 12px;
    top: auto;
    transform: none;
}
@media (max-width:768px){
    .floating-social-menu{
        bottom: 90px;
        top: auto;
        transform:none;
    }
}

/* Contenedor responsivo para el mapa */
.map-responsive {
    overflow: hidden;
    padding-bottom: 56.25%; /* Relación de aspecto 16:9 */
    position: relative;
    height: 0;
    max-width: 1000px; /* Ancho máximo para que no se vea inmenso en PC */
    margin: 0 auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.map-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
}

/* Ajuste específico para móviles */
@media (max-width: 768px) {
    .map-responsive {
        padding-bottom: 75%; /* Un poco más alto en móvil para que sea cómodo de usar */
    }
}
