/* estilo.css - Versión Completa con Correcciones de Menú Móvil */

:root {
    --primary: #f97316;
    --primary-dark: #ea580c;
    --secondary: #1e293b;
    --light: #ffffff;
    --bg-soft: #f8fafc;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-500: #64748b;
    --gray-700: #334155;
    --gray-900: #0f172a;
    --shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--gray-700);
    background: var(--light);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-header .subtitle {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--gray-900);
    font-weight: 800;
    line-height: 1.2;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: var(--light);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
}

/* NAVBAR */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    padding: 16px 0;
    transition: box-shadow 0.2s;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--gray-900);
    text-decoration: none;
    z-index: 10;
}

.brand i {
    color: var(--primary);
    margin-right: 5px;
}

/* --- ESTILOS DE MENÚ ESCRITORIO --- */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0; /* Ajustado en móvil */
}

.nav-menu a {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: var(--primary);
}

.hamburger-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--gray-900);
    cursor: pointer;
    z-index: 10;
}

/* HERO SECTION */
.hero {
    color: var(--light);
    height: 60vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1533241242342-6317e_0d2a843?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1740&q=80');
    background-size: cover;
    background-position: center;
    padding: 0 24px;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: var(--light);
    font-size: 3.5rem;
    font-weight: 800;
    max-width: 700px;
    line-height: 1.1;
}

.hero p {
    font-size: 1.2rem;
    max-width: 550px;
    margin: 24px auto 32px;
    color: rgba(255, 255, 255, 0.9);
}

/* GRIDS */
.features-grid, .products-grid, .testimonials-grid {
    display: grid;
    gap: 30px;
}

.features-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.products-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.testimonials-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* CARDS */
.step-card {
    text-align: center;
}

.step-card .icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.step-card h3 {
    margin-bottom: 0.5rem;
}

.product-card {
    background: var(--light);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    text-align: left;
    transition: all 0.2s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.product-image {
    height: 220px;
    background-size: cover;
    background-position: center;
}

.product-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-content h3 {
    font-size: 1.5rem;
}

.product-features {
    list-style: none;
    margin: 16px 0;
    padding: 0;
    color: var(--gray-500);
    flex-grow: 1;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.product-features li::before {
    content: '✓';
    color: var(--primary);
    font-weight: 600;
}

.price {
    font-weight: 800;
    font-size: 2rem;
    color: var(--gray-900);
    margin-top: 1rem;
}

.price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-500);
}

.product-content .actions {
    display: flex;
    gap: 10px;
    margin-top: 1.5rem;
}

.product-content .actions .btn {
    width: 100%;
}

.product-content .actions .btn-secondary {
    flex-shrink: 0;
    width: auto;
    padding: 12px 16px;
}

.benefit-card {
    background: var(--bg-soft);
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
}

.benefit-card .icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.benefit-card h3 {
    margin-bottom: 0.5rem;
}

.testimonial-card {
    background: var(--bg-soft);
    padding: 2rem;
    border-radius: var(--radius);
}

.testimonial-card p {
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.testimonial-author .name {
    font-weight: 600;
    color: var(--gray-900);
}

.testimonial-author .event {
    color: var(--gray-500);
}

.cta-section {
    background: var(--secondary);
    border-radius: var(--radius);
    padding: 4rem;
    text-align: center;
}

.cta-section h2 {
    color: var(--light);
}

.cta-section p {
    color: var(--gray-300);
    max-width: 500px;
    margin: 1rem auto 2rem;
}

.footer {
    background: var(--bg-soft);
    border-top: 1px solid var(--gray-200);
    padding: 48px 0;
    text-align: center;
    color: var(--gray-500);
}

/* MODAL DE RESERVA */
#reservationModal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-card {
    background: var(--light);
    border-radius: var(--radius);
    width: 100%;
    max-width: 800px;
    max-height: 95vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: var(--light);
    z-index: 10;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-500);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
}

.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--gray-200);
    background: var(--bg-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    bottom: 0;
}

.form-grid {
    display: grid;
    gap: 16px;
}

.grid-3 {
    grid-template-columns: 2fr 1fr 1fr;
}

.grid-2 {
    grid-template-columns: 1fr 1fr;
}

input, select {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
}

.booths-grid, .extras-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.booth-card, .extra-card {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 16px;
    cursor: pointer;
    position: relative;
}

.booth-card.selected, .extra-card.selected {
    border-color: var(--primary);
    background: rgba(249, 115, 22, 0.05);
}

.selected-check {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary);
    color: var(--light);
    border-radius: 99px;
    width: 24px;
    height: 24px;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.selected .selected-check {
    display: inline-flex;
}

#estimated_total {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
}

#estimate_breakdown {
    font-size: 0.8rem;
}

.success-box {
    display: none;
    text-align: center;
    padding: 24px;
}

/* GALLERY ICON EN CARDS */
.gallery-icon {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s ease-in-out;
    z-index: 5;
}

.gallery-icon:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* LIGHTBOX PARA GALERÍA */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90%;
    height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: all 0.3s;
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 80px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: 2px solid white;
    border-radius: 8px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: all 0.3s;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-close:hover {
    background: rgba(249, 115, 22, 0.9);
    border-color: #f97316;
    transform: scale(1.1);
}

.lightbox-nav:hover {
    background: rgba(249, 115, 22, 0.9);
    border-color: #f97316;
    transform: translateY(-50%) scale(1.05);
}


/* SELECTOR DE IDIOMAS */
.language-selector {
    display: flex;
    gap: 10px;
    align-items: center;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    text-decoration: none;
    color: var(--gray-700);
    border-radius: 6px;
    transition: all 0.3s;
    font-size: 14px;
}

.lang-option:hover {
    background: var(--gray-200);
    color: var(--primary);
}

.lang-option.active {
    background: var(--primary);
    color: white;
}

.lang-flag {
    font-size: 18px;
}

.lang-name {
    display: none;
}

/* Mostrar nombre del idioma en pantallas grandes */
@media (min-width: 1024px) {
    .lang-name {
        display: inline;
    }
}

/* Integración del selector de idiomas en la navbar */
.nav-menu .language-selector {
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid var(--gray-300);
}


/* ======================================= */
/* RESPONSIVE MOBILE (ESTILOS FINALES)   */
/* ======================================= */
@media (max-width: 768px) {
    
    body {
        /* Empuja el contenido hacia abajo para dejar espacio a la navbar fija */
        padding-top: 70px;
    }

    .navbar {
        /* Asegura que la barra de navegación esté siempre arriba */
        position: fixed;
        width: 100%;
        top: 0;
        left: 0;
    }
    
    /* Ajustes generales */
    .section {
        padding: 60px 0;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }

    /* ---- Navegación móvil (LA CLAVE ESTÁ AQUÍ) ---- */
    .hamburger-btn {
        display: block; /* Muestra el botón de hamburguesa */
    }

    .nav-menu {
        display: none; /* OCULTA EL MENÚ POR DEFECTO */
        position: absolute;
        top: 70px; /* Altura de la navbar */
        left: 0;
        right: 0;
        width: 100%;
        background: var(--light);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--gray-200);
        box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    }
    
    .nav-menu.active {
        display: flex; /* MUESTRA EL MENÚ CUANDO TIENE LA CLASE .active */
    }

    .nav-menu a {
        width: 100%;
        text-align: center;
        padding: 12px 0;
    }
    
    .nav-menu .btn-primary {
        margin-top: 10px;
    }

    /* Selector de idiomas en móvil */
    .nav-menu .language-selector {
        margin: 20px 0;
        padding: 0;
        border: none;
        justify-content: center;
    }
    
    .lang-option {
        padding: 8px 15px;
    }
    
    /* Hero móvil */
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }

    /* Grids en móvil */
    .features-grid,
    .products-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    /* Modal en móvil */
    .form-grid.grid-3,
    .form-grid.grid-2 {
        grid-template-columns: 1fr;
    }
    
    .modal-footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .booths-grid, .extras-grid {
        grid-template-columns: 1fr;
    }
    
    /* Lightbox en móvil */
    .lightbox-content {
        width: 95%;
        height: 85%;
    }
    
    .lightbox-nav {
        width: 40px;
        height: 60px;
        font-size: 20px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
}