/* ==========================================================================
   VARIABLES Y ESTILOS GENERALES
   ========================================================================== */
:root {
    --color-principal: #1a1a1a; 
    --color-acento: #d35400; 
    --color-texto: #f4f4f4;
    --color-fondo-seccion: #2a2a2a;
}

* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: 'Montserrat', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--color-texto);
    background-color: var(--color-principal);
    scroll-behavior: smooth;
}

/* ==========================================================================
   BARRA DE NAVEGACIÓN (HEADER)
   ========================================================================== */
header {
    background-color: rgba(26, 26, 26, 0.95);
    border-bottom: 2px solid var(--color-acento);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    box-sizing: border-box;
}

.logo-texto {
    font-family: 'Alfa Slab One', cursive;
    font-size: 1.6rem;
    font-weight: 400;
    color: #fff;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
}

.logo-texto span {
    color: var(--color-acento);
    font-family: 'Alfa Slab One', cursive;
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 60px;
    width: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-acento);
    transition: transform 0.3s;
}

.nav-logo:hover {
    transform: scale(1.1);
}

nav a {
    text-decoration: none;
    color: #fff;
    margin-left: 20px;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--color-acento);
}

/* ==========================================================================
   SECCIÓN HERO CON VIDEO DE FONDO
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: #fff;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 300;
    color: #ccc;
}

/* ==========================================================================
   BOTONES
   ========================================================================== */
.btn {
    background-color: var(--color-acento);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s, transform 0.2s;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #e67e22;
    transform: scale(1.05);
}

.hero-botones {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.btn-reserva {
    background-color: #25d366;
    color: white;
}

.btn-reserva:hover {
    background-color: #20ba5a;
    transform: scale(1.05);
}

.btn-limpiar {
    background-color: transparent;
    color: #ccc;
    border: 2px solid #555;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-limpiar:hover {
    background-color: #444;
    color: #fff;
    border-color: var(--color-acento);
    transform: scale(1.05);
}

.text-center {
    text-align: center;
}

/* ==========================================================================
   SECCIÓN DEL MENÚ
   ========================================================================== */
.menu-section {
    padding: 5rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 3rem;
    color: #fff;
    text-transform: uppercase;
    border-bottom: 3px solid var(--color-acento);
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 10px;
}

.menu-descripcion {
    text-align: center;
    color: #bbb;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.menu-item {
    background: var(--color-fondo-seccion);
    border-radius: 8px;
    border-left: 5px solid var(--color-acento);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden !important;
    padding: 1 !important;
    display: flex;
    flex-direction: column;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(211, 84, 0, 0.2);
}

.menu-img {
    width: 100% !important;
    max-width: 100% !important;
    height: 220px !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 8px 8px 0 0 !important;
    background-color: #1a1a1a;
    transition: transform 0.3s;
}

.menu-item:hover .menu-img {
    transform: scale(1.03);
}

.menu-item h3 {
    font-size: 1.4rem;
    color: #fff;
    padding: 15px 20px 5px 20px !important;
    margin: 0;
    border-bottom: 1px solid #444;
}

.menu-item p {
    color: #bbb;
    font-size: 1rem;
    line-height: 1.6;
    padding: 10px 20px 20px 20px !important;
    margin: 0;
}

/* ==========================================================================
   MENÚ INTERACTIVO
   ========================================================================== */
.menu-select {
    display: block;
    width: 100%;
    max-width: 500px;
    margin: 0 auto 25px auto;
    padding: 14px 20px;
    background: var(--color-fondo-seccion);
    color: #fff;
    border: 2px solid var(--color-acento);
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.menu-select option {
    background: #1a1a1a;
    color: #fff;
    padding: 10px;
}

.precio {
    color: var(--color-acento);
    font-size: 1.2rem;
    font-weight: 700;
}

.cantidad-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    margin-top: auto;
}

.btn-cantidad {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--color-acento);
    background: transparent;
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.btn-cantidad:hover {
    background: var(--color-acento);
    transform: scale(1.1);
}

.cantidad-input {
    width: 50px;
    height: 40px;
    text-align: center;
    background: #1a1a1a;
    border: 2px solid #444;
    border-radius: 8px;
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
}

.cantidad-input::-webkit-inner-spin-button,
.cantidad-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.total-container {
    text-align: center;
    margin-top: 3rem;
}

.total-box {
    background: var(--color-fondo-seccion);
    border: 2px solid var(--color-acento);
    border-radius: 12px;
    padding: 2rem;
    display: inline-block;
    min-width: 300px;
}

.total-box h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

#total-pedido {
    color: var(--color-acento);
    font-size: 2.2rem;
}

#enviar-pedido {
    font-size: 1.1rem;
    padding: 15px 30px;
}

.total-botones {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
}

/* ==========================================================================
   SECCIÓN AMBIENTE
   ========================================================================== */
.ambiente-section {
    background-color: #111;
    padding: 5rem 2rem;
    text-align: center;
}

.ambiente-section p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #ddd;
}

.ambiente-section strong {
    color: var(--color-acento);
}

/* ==========================================================================
   PIE DE PÁGINA Y MAPA
   ========================================================================== */
footer {
    background-color: #0a0a0a;
    color: #888;
    text-align: center;
    padding: 4rem 2rem;
    border-top: 1px solid #333;
}

footer h2 {
    color: #fff;
    margin-bottom: 1.5rem;
}

.contacto-info {
    font-size: 1.1rem;
    margin: 12px 0;
    color: #ccc;
}

.contacto-info strong {
    color: var(--color-acento);
}

.mapa-container {
    max-width: 700px;
    margin: 30px auto 10px auto;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--color-acento);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.mapa-container iframe {
    display: block;
    width: 100%;
    height: 300px;
}

/* ==========================================================================
   BOTÓN FLOTANTE DE WHATSAPP
   ========================================================================== */
.whatsapp-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: transparent;
    width: 55px;
    height: 55px;
    z-index: 2000;
    transition: transform 0.3s;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.whatsapp-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.whatsapp-btn:hover {
    transform: scale(1.15);
}

/* ==========================================================================
   MENÚ HAMBURGUESA (MÓVIL)
   ========================================================================== */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ==========================================================================
   MEDIA QUERIES: MÓVILES (Max 768px)
   ========================================================================== */
@media (max-width: 768px) {
    
    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    header {
        padding: 1rem !important;
        position: fixed;
        width: 100%;
    }

    .menu-toggle {
        display: flex !important;
    }

    header nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(26, 26, 26, 0.98);
        display: flex !important;
        flex-direction: column !important;
        align-items: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
        box-shadow: 0 10px 15px rgba(0,0,0,0.5);
    }

    header nav.active {
        max-height: 300px;
        padding: 20px 0;
    }

    header nav a {
        margin: 12px 0 !important;
        font-size: 1.2rem;
        width: 100%;
        text-align: center;
        display: block;
    }

    .menu-toggle.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero-content h1 {
        font-size: 2.2rem !important;
    }
    .hero-content p {
        font-size: 1rem !important;
    }

    .hero-botones {
        flex-direction: column !important;
        align-items: center !important;
        gap: 35px !important;
        margin-top: 20px !important;
    }
    
    .btn {
        width: auto !important;
        text-align: center !important;
        padding: 16px 20px !important;
        font-size: 1rem !important;
    }

    .section-title {
        font-size: 2rem !important;
        margin-bottom: 2rem;
    }

    .menu-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }

    .menu-item {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
    }

    .menu-img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: 250px !important;
        object-fit: fill !important;
        display: block !important;
        border-radius: 8px 8px 0 0 !important;
        background-color: #1a1a1a;
    }

    .menu-item h3 {
        font-size: 1.2rem !important;
        padding: 12px 15px 5px 15px !important;
    }

    .menu-item p {
        font-size: 0.95rem !important;
        padding: 8px 15px 15px 15px !important;
    }

    .menu-select {
        font-size: 0.95rem;
        padding: 12px 15px;
        max-width: 100%;
    }

    .total-box {
        min-width: auto;
        width: 90%;
    }
    
    .total-box h3 {
        font-size: 1.4rem;
    }
    
    #total-pedido {
        font-size: 1.8rem;
    }
    
    .cantidad-control {
        padding: 10px 15px;
    }

    .total-botones {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-limpiar {
        width: 80%;
    }

    iframe {
        width: 100% !important;
        height: 250px !important;
    }

    .whatsapp-btn {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }
}

/* Ocultar hamburguesa en escritorio */
@media (min-width: 769px) {
    .menu-toggle {
        display: none !important;
    }
}

.datos-cliente {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.input-cliente {
    width: 100%;
    padding: 12px 15px;
    background: #1a1a1a;
    border: 2px solid #444;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.input-cliente::placeholder {
    color: #888;
}

.input-cliente:focus {
    border-color: var(--color-acento);
    outline: none;
}

/* Botón Volver */
.btn-volver {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #2c2c2c;
    color: #f5e6c8;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid #f5e6c8;
}

.btn-volver:hover {
    background: #f5e6c8;
    color: #2c2c2c;
    transform: translateX(-5px);
}

.lista-pedido {
    background: var(--color-fondo-seccion);
    border: 2px solid var(--color-acento);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
    display: none;
}

.lista-pedido.visible {
    display: block;
}

.lista-pedido h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

#items-pedido {
    list-style: none;
    padding: 0;
    color: #ddd;
}

#items-pedido li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #444;
}

#items-pedido li:last-child {
    border-bottom: none;
}

#items-pedido .eliminar-item {
    background: transparent;
    border: none;
    color: #d35400;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0 5px;
}

#items-pedido .eliminar-item:hover {
    color: #e67e22;
}

/* Animación fade-in al hacer scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


.whatsapp-btn {
    border-radius: 50%;
    animation: onda-circular 2.5s infinite;
}

@keyframes onda-circular {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }
    50% {
        box-shadow: 0 0 0 18px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 768px) {
    .whatsapp-btn {
        animation: onda-circular 2.5s infinite;
    }
}

/* Quitar el destello azul al tocar en móvil */
nav a, 
.btn, 
.btn-cantidad, 
.menu-toggle,
.whatsapp-btn,
button,
a {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    outline: none;
}

/* Quitar el destello en la hamburguesa */
.menu-toggle span {
    -webkit-tap-highlight-color: transparent;
}