/* /assets/css/style.css */

/* ======================================== */
/* 1. VARIABLES Y ESTILOS GENERALES         */
/* ======================================== */
:root {
    --primary-color: #EC5221;   /* naranja intenso */
    --secondary-color: #F49B1C; /* amarillo cálido */
    --dark-bg: #1a1208;         /* fondo IMPORTANTE */
    --darker-bg: #0f0a03;       /* aún más IMPORTANBTE */
    --wood-bg: #2e2318;         /* tono madera */
    --text-light: #f5f5f5;       /* texto claro */
    --text-muted: #aaaaaa;       /* texto secundario */
    --black: #000000;           /* Negro para contrastes */

    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2 {
    font-family: var(--font-serif);
    color: var(--secondary-color);
    line-height: 1.2;
}
h3, h4 {
    font-family: var(--font-sans);
    color: var(--secondary-color);
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 100px 0;
}


.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    padding-bottom: 1rem;
    color: var(--text-light); /* Títulos principales más claros */
}

.section-title span {
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    background: var(--primary-color);
    color: var(--text-light);
    border: 2px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.video-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative; /* Esencial para que el ::before se posicione correctamente */
    width: 400px; /* O el tamaño que prefieras */
    height: 400px;
    margin: 0 auto;
}

/* 👇 ESTA ES LA NUEVA REGLA MÁGICA 👇 */
.video-wrapper::before {
    content: '';
    position: absolute;
    z-index: -1;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--primary-color), var(--secondary-color), transparent 70%);
    filter: blur(60px);

    transform: scale(1.1); /* <-- AÑADE ESTA LÍNEA */

    animation: soft-glow 4s infinite ease-in-out;
}

/* 👇 ESTA ES LA ANIMACIÓN OPCIONAL 👇 */
@keyframes soft-glow {
    0%, 100% {
        transform: scale(1); /* Tamaño inicial */
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1); /* Se expande un poco */
        opacity: 1;
    }
}
.video-wrapper video {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover; /* Mantiene el video cubriendo el contenedor */
    object-position: 50% 30%; /* <-- ESTA ES LA LÍNEA CLAVE */
    filter: brightness(1.1) contrast(1.2);
}


@keyframes flicker-background {
    0% {
        background-size: 200% 200%;
        background-position: 40% 40%;
    }
    100% {
        background-size: 250% 250%;
        background-position: 60% 60%;
    }
}

/* 👇 ¡Pega este código en lugar del anterior! 👇 */
@media (max-width: 768px) {
    .video-wrapper {
        /* Usa el 80% del ancho de la pantalla */
        width: 80vw;
        height: 80vw; /* Mismo valor para que siga siendo un círculo perfecto */

        /* Ponemos un límite para que no se haga demasiado grande en tablets pequeñas */
        max-width: 380px;
        max-height: 380px;
    }
}
/* ======================================== */
/* 2. HEADER Y NAVEGACIÓN                   */
/* ======================================== */
header {
    background-color: rgba(15, 10, 3, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

header.scrolled {
    background-color: var(--darker-bg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center; /* Centra verticalmente si tienen alturas distintas */
    gap: 10px; /* Espacio entre las imágenes */
}

.logo img:last-child {
    height: 3.5vh; /* La altura será el 5% de la altura de la ventana */
    width: auto; /* Mantiene la proporción de la imagen */
}


.logo img {
    height: 50px;
    transition: transform 0.3s ease;
}
.logo:hover img:first-child {
    transform: scale(1.05); /* Solo escala la primera imagen */
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-link {
    color: var(--text-light);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}
.nav-link.active {
    color: var(--primary-color);
}

.hamburger { display: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: var(--text-light); transition: all 0.3s ease; }

/* ======================================== */
/* 3. HERO SECTION (CARRUSEL)               */
/* ======================================== */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: var(--text-light);
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}
.carousel-slide.active {
    opacity: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 10, 3, 0.95), rgba(0, 0, 0, 0.5));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeIn 2s ease-out;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 4.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    text-shadow: 0 0 20px rgba(0,0,0,0.7);
}
.hero-title span {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    font-weight: 400;
    color: var(--text-muted);
}

.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 4;
}
.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.dot.active {
    background-color: var(--primary-color);
}

/* ======================================== */
/* 4. SECCIÓN DIAGONAL "SOBRE NOSOTROS"     */
/* ======================================== */
.diagonal-section {
    position: relative;
    padding: 120px 0;
    color: var(--text-light);
}
.diagonal-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: var(--wood-bg);
    transform: skewY(-3deg); /* La magia de la diagonal */
    z-index: -1;
}
.diagonal-section.right-aligned::before {
    transform: skewY(3deg); /* Diagonal invertida */
    background: var(--dark-bg);
}

/* 👇 ¡Haz este cambio! 👇 */
.diagonal-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Columna de texto (1) y columna de video (1.5) */
    gap: 4rem;
    align-items: center;
}

.diagonal-section.right-aligned .diagonal-content .text-content {
    order: 2;
}
.diagonal-section.right-aligned .diagonal-content .visual-content {
    order: 1;
}

.text-content h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}
.text-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ======================================== */
/* 5. SECCIÓN GALERÍA (INICIO)              */
/* ======================================== */
.gallery-section {
    background-color: var(--darker-bg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 300px;
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
}
.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(0.7);
}
.gallery-item .overlay-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    color: white;
    font-size: 2.5rem;
    opacity: 0;
    transition: all 0.4s ease;
}
.gallery-item:hover .overlay-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* ======================================== */
/* 6. PÁGINA DE MENÚ                        */
/* ======================================== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.section-title span {
    color: var(--primary-color);
}

/* ======================================== */
/* 2. ESTILOS DE LA PÁGINA DE MENÚ          */
/* ======================================== */
.mesa-badge {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mesa-badge.hidden {
    opacity: 0;
    transform: translateY(-10px); /* sube un poco y se desvanece */
    pointer-events: none; /* evita clicks mientras está oculto */
}

.mesa-badge {
    position: fixed;
    bottom: 1rem;                /* más relativo que px */
    right: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;     /* un poco más grande y relativo */
    border-radius: 0.75rem;      /* suavizado más elegante */
    font-weight: bold;
    font-size: 1.125rem;         /* ligeramente más grande que el normal */
    font-family: var(--font-sans);
    z-index: 2000;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5); /* sombra más profunda */
    transition: all 0.3s ease;
}

.mesa-badge:hover {
    transform: translateY(-3px);        /* efecto de levitación */
    box-shadow: 0 10px 24px rgba(0,0,0,0.6); /* sombra más intensa */
    background: var(--secondary-color); /* un ligero cambio de color para interacción */
    color: var(--text-light);
    cursor: pointer;
}


.page-header {
    padding: 150px 0 50px;
    text-align: center;
    background-color: var(--darker-bg);
}

.menu-section {
    padding: 80px 0;
}

.menu-category {
    margin-bottom: 5rem;
}

.menu-category-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--text-light);
    font-family: var(--font-serif);
}

.menu-category-title img {
    height: 60px;
    filter: drop-shadow(0 0 10px rgba(244, 155, 28, 0.3));
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.sticky-inner-nav {
  position: sticky;
  top: 80px;
  background: var(--dark-bg);
  z-index: 999;
  padding: 1rem 0;
  border-bottom: 2px solid var(--primary-color);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  overflow-x: auto;
  overflow-y: hidden;
}

/* UL: usamos flex y centramos su contenido */
.sticky-inner-nav ul {
  list-style: none;
  display: flex;               /* flex en vez de inline-flex */
  justify-content: center;     /* <-- CENTRA los links aunque sean pocos */
  align-items: center;
  flex-wrap: nowrap;
  gap: 1.5rem;
  margin: 0;
  padding: 0 1rem;
  white-space: nowrap;
    scroll-snap-type: x mandatory;

}

/* Evita que los items se encojan */
.sticky-inner-nav li {
  flex: 0 0 auto;
    scroll-snap-align: start;

}


.sticky-inner-nav a {
    color: var(--text-light);
    text-decoration: none;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: block;
}

.sticky-inner-nav a:hover,
.sticky-inner-nav a:focus {
    background-color: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
}


/* ESTILOS DE LAS TARJETAS (DEL PRIMER CÓDIGO) */
.menu-item {
    background: var(--darker-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    border-bottom: 3px solid transparent;
}

.menu-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(236, 82, 33, 0.2);
    border-bottom-color: var(--primary-color);
}

.menu-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.menu-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, var(--darker-bg), transparent);
}

.menu-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.menu-item:hover .menu-img img {
    transform: scale(1.1);
}

.menu-content {
    padding: 20px;
}

.menu-item-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
    font-family: var(--font-serif);
}

.menu-item-desc {
    margin-bottom: 15px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.menu-item-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: right;
}

.menu-section:nth-of-type(odd) {
    background-color: var(--dark-bg); /* ejemplo: color principal */
}

/* Color B para las secciones pares */
.menu-section:nth-of-type(even) {
    background-color: var(--darker-bg);
}


/* ======================================== */
/* 3. ESTILOS PARA EL PANEL DE DETALLES     */
/* ======================================== */
.menu-item-details {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--darker-bg);
    border-top: 3px solid var(--primary-color);
    padding: 30px;
    z-index: 1001;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.5);
    max-height: 90vh;
    overflow-y: auto;
}

.menu-item-details.active {
    transform: translateY(0);
}

.details-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.close-details {
    position: absolute;
    top: -10px;
    right: 0;
    background: var(--primary-color);
    color: var(--text-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    border: 2px solid var(--darker-bg);
}

.close-details:hover {
    background: var(--secondary-color);
    transform: rotate(90deg);
}

.details-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    margin-top: 30px;
}

.details-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    height: 100%;
    min-height: 300px;
}

.details-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.details-text h3 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-family: var(--font-serif);
}

.details-price {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 20px;
}

.details-description {
    margin-bottom: 25px;
    line-height: 1.8;
    color: var(--text-muted);
}

.details-ingredients h4, .details-nutrition h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
    font-family: var(--font-serif);
}

.ingredients-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.ingredient-tag {
    background: var(--wood-bg);
    color: var(--text-light);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.nutrition-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 20px;
}

.nutrition-item {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
    padding: 8px 0;
    font-size: 0.9rem;
}
.nutrition-item span:last-child {
    font-weight: 600;
    color: var(--text-light);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .details-content {
        grid-template-columns: 1fr;
    }
    .menu-item-details {
        padding: 20px;
        max-height: 85vh;
    }
    .details-text h3 {
        font-size: 1.8rem;
    }
    .details-price {
        font-size: 1.5rem;
    }
    .sticky-inner-nav ul {
    justify-content: flex-start;
  }
}
/* ======================================== */
/* 7. PÁGINAS DE RESERVAS Y CONTACTO (FORM) */
/* ======================================== */
.form-section {
    max-width: 800px;
    margin: 0 auto;
}
.form-container {
    background: var(--wood-bg);
    padding: 3rem;
    border-radius: 10px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}
.form-group.full-width {
    grid-column: 1 / -1;
}
.form-group label {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-weight: 500;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    background-color: var(--dark-bg);
    border: 1px solid var(--wood-bg);
    border-radius: 5px;
    color: var(--text-light);
    font-size: 1rem;
    font-family: var(--font-sans);
    transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(236, 82, 33, 0.2);
}
.form-group textarea {
    min-height: 120px;
    resize: vertical;
}
.form-container .btn {
    width: 100%;
    margin-top: 1.5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: flex-start;
}
.contact-info h3 {
    margin-bottom: 2rem;
    font-size: 1.8rem;
}
.contact-info ul {
    list-style: none;
}
.contact-info li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}
.contact-info li i {
    color: var(--primary-color);
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
}
.map-placeholder {
    margin-top: 2rem;
    width: 100%;
    height: 250px;
    background: var(--darker-bg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border: 1px solid var(--wood-bg);
}

/* ======================================== */
/* 8. FOOTER                                */
/* ======================================== */
footer {
    background-color: var(--darker-bg);
    padding: 80px 0 40px;
    border-top: 3px solid var(--primary-color);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-column h3 { font-size: 1.4rem; margin-bottom: 1.5rem; }
.footer-column p, .footer-column li { color: var(--text-muted); }
.footer-column ul { list-style: none; }
.footer-column li { margin-bottom: 10px; }
.footer-column a:hover { padding-left: 8px; }

.footer-social { display: flex; gap: 15px; margin-top: 20px; }
.social-icon { width: 45px; height: 45px; border-radius: 50%; background: var(--wood-bg); display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; }
.social-icon i { font-size: 1.2rem; }
.social-icon:hover { background: var(--primary-color); transform: translateY(-5px); }

.copyright { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, 0.1); color: var(--text-muted); font-size: 0.9rem; }

/* ======================================== */
/* 9. ANIMACIONES Y RESPONSIVE              */
/* ======================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        background-color: var(--darker-bg);
        width: 100%;
        height: calc(100vh - 80px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.4s ease-in-out;
        gap: 2rem;
    }
    .nav-menu.active { right: 0; }
    .nav-link { font-size: 1.5rem; }
    .hamburger { display: block; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .diagonal-content { grid-template-columns: 1fr; }
    .diagonal-section.right-aligned .diagonal-content .text-content,
    .diagonal-section.right-aligned .diagonal-content .visual-content {
        order: initial;
    }
    #model-3d-container { margin-top: 3rem; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 3rem; }
    .hero-subtitle { font-size: 1.2rem; }
    .section-title, .text-content h2 { font-size: 2.2rem; }
    .form-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .logo img:last-child {
        height: 3vh; /* La altura será el 5% de la altura de la ventana */
        width: auto; /* Mantiene la proporción de la imagen */
    }
    .sticky-inner-nav ul {
    justify-content: flex-start;
  }
}

/* Estilos para realizar_pedido.php */
.pedido-resumen {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.pedido-resumen h3 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
}

.resumen-content {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.resumen-imagen {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.resumen-imagen img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.resumen-info h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.resumen-desc {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.resumen-precio {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.resumen-mesa {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Alertas */
.alert {
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

/* Acciones del formulario */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 2rem;
}

.btn-secondary {
    background: var(--text-light);
    color: var(--white);
}

.btn-secondary:hover {
    background: #6c757d;
}

/* Quantity Selector Styles */
.quantity-selector {
    margin: 20px 0;
}

.quantity-selector label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #e0e0e0;
    background: #f8f8f8;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: #e9e9e9;
    border-color: #d0d0d0;
}

.quantity-input {
    width: 60px;
    height: 40px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

.quantity-input:focus {
    outline: none;
    border-color: #007bff;
}

.estado-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 500;
}
.estado-pendiente { background-color: #fff3cd; color: #856404; }
.estado-preparando { background-color: #cce7ff; color: #004085; }
.estado-listo { background-color: #d4edda; color: #155724; }
.estado-entregado { background-color: #d1ecf1; color: #0c5460; }



/* Responsive */
@media (max-width: 768px) {
    .resumen-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .resumen-imagen {
        width: 100px;
        margin: 0 auto;
    }
    
    .resumen-imagen img {
        height: 80px;
    }
    
    .form-actions {
        flex-direction: column;
    }
}


/* ======================================== */
/* 8. NAVEGACIÓN RESPONSIVE (MÓVIL)         */
/* ======================================== */

/* 1. Ocultar los iconos en la vista de escritorio por defecto */
.nav-link i {
    display: none;
}

/* 2. Media Query para aplicar los estilos en pantallas pequeñas (móviles) */
@media (max-width: 768px) {
    /* Muestra el ícono de la hamburguesa y lo posiciona */
    .hamburger {
        display: block;
        z-index: 1001; /* Asegura que esté por encima del menú */
    }

    /* Oculta los links de navegación en la barra superior */
    .nav-menu {
        position: fixed; /* Lo saca del flujo normal del documento */
        right: -100%;    /* Posición inicial, fuera de la pantalla */
        top: 0;
        height: 100vh;   /* Ocupa toda la altura */
        width: 280px;    /* Ancho fijo, no ocupa toda la pantalla */
        flex-direction: column; /* Apila los elementos verticalmente */
        background-color: var(--darker-bg);
        padding-top: 100px; /* Espacio para que no choque con el header */
        gap: 0; /* Quitamos el gap para controlar el espacio con padding */
        transition: right 0.4s ease-in-out; /* Animación suave */
        box-shadow: -5px 0 15px rgba(0,0,0,0.5); /* Sombra para darle profundidad */
        z-index: 1000;
    }

    /* Clase 'active' que se añadirá con JS para mostrar el menú */
    .nav-menu.active {
        right: 0; /* Lo desliza a la vista */
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        display: flex; /* Para alinear el ícono y el texto */
        align-items: center;
        gap: 15px; /* Espacio entre ícono y texto */
        width: 100%;
        padding: 18px 30px;
        font-size: 1.1rem;
    }

    .nav-link::after {
        /* Opcional: puedes quitar o modificar el efecto de subrayado en móvil */
        display: none;
    }
    
    .nav-link.active {
        background-color: var(--primary-color);
        color: var(--text-light);
    }
    
    /* 3. Mostrar los iconos en móvil */
    .nav-link i {
        display: inline-block; /* Los hacemos visibles */
        font-size: 1.2rem;
        width: 25px; /* Ancho fijo para que los textos se alineen */
        text-align: center;
    }

    /* 4. Animación de la Hamburguesa a 'X' */
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* 5. Estilos para el Overlay (fondo oscuro) */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        z-index: 999; /* Detrás del menú pero encima del resto */
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}