:root {
    --bg-body: #0d1a13; /* Verde oscuro texturizado profundo */
    --bg-card: rgba(13, 26, 19, 0.6); /* Fondo semi-transparente para tarjetas */
    --accent: #d4af37; /* Dorado elegante */
    --accent-hover: #f1c40f;
    --text-white: #f8f9fa;
    --text-light: #a8bbaa; /* Tono verdoso claro para descripciones */
    --radius: 12px;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }

body {
    background-color: var(--bg-body);
    color: var(--text-white);
    /* Efecto de textura sutil para imitar el fondo de la imagen */
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E");
    padding-top: 0; 
    padding-bottom: 40px;
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
    padding-bottom: 90px;
}

/* BANNER PRINCIPAL TIPO HERO */
.hero-banner {
    width: 100%;
    height: 320px;
    background-image: url('https://images.unsplash.com/photo-1544025162-8315ea07f436?auto=format&fit=crop&w=1200&q=80'); 
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-bottom: 2px solid var(--accent);
}

.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(13,26,19,0.5) 0%, rgba(13,26,19,0.95) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 20px;
    margin-top: 20px;
}

.hero-title {
    color: var(--accent); 
    font-size: 3rem; 
    font-family: serif; 
    font-weight: bold;
    margin-bottom: 5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-subtitle {
    color: var(--text-white); 
    letter-spacing: 4px; 
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.hero-promo-text {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-top: 1px solid rgba(212, 175, 55, 0.4);
    border-bottom: 1px solid rgba(212, 175, 55, 0.4);
    padding: 8px 0;
    display: inline-block;
}

/* NAVEGACIÓN DE CATEGORÍAS */
.category-nav {
    display: flex; overflow-x: auto;
    padding: 15px 20px; gap: 15px;
    scrollbar-width: none;
    position: sticky; top: 0; 
    background: rgba(13, 26, 19, 0.95);
    backdrop-filter: blur(10px);
    z-index: 90;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}
.category-nav::-webkit-scrollbar { display: none; }

.category-nav a {
    text-decoration: none; color: var(--text-light);
    font-size: 0.95rem; font-weight: 500;
    padding: 8px 20px; border-radius: 25px;
    white-space: nowrap; transition: var(--transition);
}

.category-nav a.active {
    background: var(--accent); 
    color: var(--bg-body); 
    font-weight: 600;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* CONTENEDOR PRINCIPAL Y TÍTULOS */
main { padding: 0 20px; max-width: 800px; margin: 0 auto; }

.category-section {
    scroll-margin-top: 80px; /* Compensa la altura del menú sticky */
}

.category-title {
    font-size: 1.2rem; font-weight: 600; margin: 35px 0 20px;
    color: var(--accent);
}

/* TARJETAS CON BORDE DORADO */
.products-grid { display: flex; flex-direction: column; gap: 15px; }

.product-card {
    background: var(--bg-card); 
    border-radius: var(--radius);
    border: 1px solid rgba(212, 175, 55, 0.3);
    display: flex; padding: 12px; gap: 15px;
    cursor: pointer; transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    backdrop-filter: blur(4px);
}

.product-card:hover, .product-card:active { 
    border-color: var(--accent);
    transform: translateY(-2px);
}

.product-img {
    width: 90px; height: 90px;
    border-radius: 8px; object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.1);
}

.product-info {
    flex: 1; display: flex; flex-direction: column; justify-content: space-between;
}

.product-name {
    font-size: 1rem; font-weight: 600; color: var(--text-white);
    margin-bottom: 4px;
}

.product-desc {
    font-size: 0.8rem; color: var(--text-light);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; line-height: 1.4;
}

.product-bottom {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 10px;
}

.product-price { font-weight: 700; color: var(--text-white); font-size: 1rem; }

.btn-ver {
    background: var(--accent); color: var(--bg-body);
    border: none; padding: 6px 18px; border-radius: 20px;
    font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
    cursor: pointer;
}

/* ESTILOS DEL MODAL */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(5px);
    z-index: 1000; opacity: 0; visibility: hidden;
    transition: var(--transition); display: flex;
    align-items: flex-end; justify-content: center;
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-content {
    background: var(--bg-body); width: 100%; max-width: 500px;
    max-height: 90vh; overflow-y: auto;
    border-radius: 24px 24px 0 0;
    border-top: 2px solid var(--accent);
    transform: translateY(100%); transition: var(--transition);
    position: relative; color: var(--text-white);
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
}
.modal-overlay.active .modal-content { transform: translateY(0); }

.close-modal {
    position: absolute; top: 15px; right: 15px;
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(0,0,0,0.7); color: var(--accent); 
    border: 1px solid var(--accent);
    font-size: 1.2rem; cursor: pointer; z-index: 10;
}

.modal-img { width: 100%; height: 250px; object-fit: cover; }
.modal-body { padding: 25px 20px; }
.modal-title { font-size: 1.4rem; font-weight: 600; margin-bottom: 5px; color: var(--accent); }
.modal-price { font-size: 1.2rem; font-weight: 700; color: var(--text-white); margin-bottom: 15px; }
.modal-desc { font-size: 0.95rem; color: var(--text-light); line-height: 1.6; margin-bottom: 25px; }

.btn-action {
    width: 100%; padding: 14px; border: none; border-radius: 12px;
    background: var(--accent); color: var(--bg-body); font-size: 1rem;
    font-weight: 700; cursor: pointer; text-transform: uppercase;
}

@media (min-width: 768px) {
    .modal-overlay { align-items: center; }
    .modal-content { border-radius: 20px; border: 1px solid var(--accent); transform: scale(0.9); }
    .modal-overlay.active .modal-content { transform: scale(1); }
    .products-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
}

/* Contenedor principal del menú inferior (Celulares) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 20, 15, 0.85); /* Fondo oscuro semitransparente */
    backdrop-filter: blur(12px); /* Efecto cristal para que se vea el fondo borroso */
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 0 10px 0;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.8); 
    z-index: 1000;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

/* Estilo de cada botón */
.bottom-nav .nav-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.4); 
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 25%; 
}

/* Tamaño y animación del icono */
.bottom-nav .nav-item i {
    font-size: 1.5rem;
    margin-bottom: 4px;
    /* Animación de rebote muy premium */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}

/* Estado Activo y Hover */
.bottom-nav .nav-item.active,
.bottom-nav .nav-item:hover {
    color: #d4af37; 
}

/* Efecto especial al icono activo: Salta un poco y brilla */
.bottom-nav .nav-item.active i {
    transform: translateY(-5px);
    filter: drop-shadow(0px 4px 8px rgba(212, 175, 55, 0.6)); /* Brillo dorado */
}

/* La rayita superior para el elemento activo con luz */
.bottom-nav .nav-item.active::before {
    content: '';
    position: absolute;
    top: -12px; 
    width: 35px;
    height: 3px;
    background-color: #d4af37;
    border-radius: 0 0 5px 5px; 
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.8); /* Reflejo de luz en la rayita */
}

/* =========================================
   ADAPTACIÓN PARA PC Y PANTALLAS GRANDES
   ========================================= */
@media (min-width: 992px) {
    .bottom-nav {
        /* En PC se convierte en un Dock flotante centrado */
        width: 500px; /* Ancho fijo */
        left: 50%;
        transform: translateX(-50%);
        bottom: 25px; /* Separado del borde inferior */
        border-radius: 25px; /* Bordes muy redondeados */
        border: 1px solid rgba(212, 175, 55, 0.3); /* Borde dorado completo */
        padding: 15px 0 12px 0;
    }
    
    /* Ajustamos la rayita activa para el diseño flotante de PC */
    .bottom-nav .nav-item.active::before {
        top: -16px; 
    }
}

/* =========================================
   CARRUSEL HORIZONTAL CORREGIDO
   ========================================= */

/* Contenedor principal del carrusel */
.slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 40px;
    padding: 0 15px; /* Da un poco de aire a los lados */
}

/* FORZAMOS la dirección horizontal sin que salten de línea */
.horizontal-scroll {
    display: flex !important;
    flex-direction: row !important; /* Fuerza a que estén lado a lado */
    flex-wrap: nowrap !important; /* Evita que se caigan a la fila de abajo */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 20px;
    padding: 10px 30px; /* Espacio interno para que no choquen con las flechas */
    width: 100%;
}

/* Ocultar la barra de scroll nativa para que se vea limpio */
.horizontal-scroll::-webkit-scrollbar {
    display: none;
}
.horizontal-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Ajuste estricto de la tarjeta para el carrusel */
.horizontal-scroll .product-card {
    flex: 0 0 320px !important; /* Fija el ancho exacto de cada tarjeta (no se encogen) */
    max-width: 320px;
    scroll-snap-align: center;
    margin: 0; /* Quita márgenes externos que puedan dañar el flex */
}

/* Flechas doradas centradas perfectamente */
.slider-btn {
    position: absolute;
    top: 50%; /* Lo baja a la mitad del contenedor */
    transform: translateY(-50%); /* Lo centra matemáticamente exacto */
    z-index: 10;
    background: #0a140f;
    border: 1px solid #d4af37;
    color: #d4af37;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.8); /* Sombra más fuerte */
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: #d4af37;
    color: #0a140f;
}

/* Pegar las flechas a los bordes */
.left-btn { left: 0px; }
.right-btn { right: 0px; }

/* Ocultar flechas en móviles (ya que se usa el dedo para deslizar) */
@media (max-width: 768px) {
    .slider-btn {
        display: none;
    }
    .horizontal-scroll {
        padding: 10px 5px; /* Menos padding lateral en celulares */
    }
}

/* ========================================================
   ESTILOS PREMIUM PARA ADICIONALES EN MODAL
   ======================================================== */

/* El contenedor principal de adicionales */
#modal-aditionals-container {
    margin-top: 30px;
    padding: 20px;
    background-color: #1a1e1d; /* Un fondo ligeramente distinto para destacar */
    border-radius: 10px;
    border: 1px solid #d4af37; /* Borde dorado Bruma */
    box-shadow: 0 5px 15px rgba(0,0,0,0.7); /* Sombra para dar profundidad */
}

/* El título de la sección */
.aditionals-title {
    color: #d4af37; /* Dorado llamativo */
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 2px solid #d4af37; /* Línea separadora */
    padding-bottom: 10px;
}

/* La lista ul */
.aditionals-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Cada item li de la lista */
.aditionals-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1); /* Separadores sutiles */
    transition: background-color 0.3s ease;
}

/* Efecto hover elegante al pasar el ratón */
.aditionals-list li:hover {
    background-color: rgba(212, 175, 55, 0.05); /* Un tinte dorado sutil */
}

/* Quitar el borde al último item */
.aditionals-list li:last-child {
    border-bottom: none;
}

/* El nombre del adicional (izquierda) */
.aditionals-name {
    color: #e0e0e0; /* Un blanco crudo elegante */
    font-size: 1rem;
    font-weight: 500;
    flex-grow: 1;
}

/* El precio (derecha) */
.aditionals-price {
    font-size: 1.1rem;
    font-weight: 700;
    margin-left: 15px;
}

/* Colores para destacar los precios */
.price-free {
    color: #2ecc71; /* Un verde vibrante y moderno */
}

.price-paid {
    color: #d4af37; /* Dorado para los que cuestan */
}

/* ========================================================
   ESTILOS PREMIUM PARA CUADRÍCULA DE CATEGORÍAS
   ======================================================== */

.menu-categories-section {
    padding: 20px 15px;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

/* El sistema de cuadrícula (2 columnas) */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Crea 2 columnas del mismo tamaño */
    gap: 15px; /* Espacio entre las tarjetas */
}

/* La tarjeta individual */
.category-box {
    position: relative;
    height: 130px; /* Altura de la tarjeta */
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(212, 175, 55, 0.2); /* Borde dorado muy sutil */
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Efecto al presionar o pasar el mouse */
.category-box:active, .category-box:hover {
    transform: scale(0.97);
    box-shadow: 0 2px 5px rgba(0,0,0,0.8);
}

/* La capa de sombra sobre la foto (estilo Bruma) */
.category-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 20, 15, 0.75); /* Fondo verde oscuro semitransparente */
    z-index: 1;
    transition: background 0.3s ease;
}

.category-box:hover .category-overlay {
    background: rgba(10, 20, 15, 0.6); /* Se aclara ligeramente al tocar */
}

/* Contenedor del texto */
.category-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 90%;
}

/* El nombre de la categoría */
.category-name {
    color: #f8f9fa; /* Letra blanca */
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 0 8px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.9); /* Sombra para que nunca se pierda en la foto */
}

/* La línea dorada de abajo (idéntica a tu referencia) */
.category-divider {
    height: 2px;
    width: 60%;
    background-color: #d4af37; /* Dorado Bruma */
    margin: 0 auto;
    border-radius: 2px;
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.5); /* Brillo dorado */
}

/* Responsive: Para celulares muy chiquitos lo pasamos a 1 columna */
@media (max-width: 360px) {
    .categories-grid {
        grid-template-columns: 1fr; 
    }
    .category-box {
        height: 110px;
    }
}

/* ========================================================
   ESTILOS PARA LA PÁGINA DE PRODUCTOS (productos.php)
   ======================================================== */

/* Banner principal de la categoría */
.category-header {
    position: relative;
    height: 180px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #d4af37;
}

/* Capa oscura del banner */
.category-header .category-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 20, 15, 0.7); /* Verde oscuro semi-transparente */
    z-index: 1;
}

/* Título de la categoría */
.category-title-main {
    position: relative;
    z-index: 2;
    color: #f8f9fa;
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.9);
    margin: 0;
    text-align: center;
}

/* Botón flotante para regresar */
.back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 3;
    color: #f8f9fa;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(10, 20, 15, 0.6);
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.5); /* Borde dorado */
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #d4af37;
    color: #0a140f;
}

/* La lista hacia abajo de las tarjetas */
.productos-page-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 15px 100px 15px; /* Los 100px abajo evitan que el menú inferior tape el último plato */
    max-width: 800px;
    margin: 0 auto;
}

/* Hacemos que la tarjeta ocupe el 100% del ancho en esta vista */
.productos-page-grid .product-card {
    width: 100%;
    max-width: 100%;
}

/* ========================================================
   ESTILOS PREMIUM PARA EL BUSCADOR
   ======================================================== */

.search-header {
    padding: 20px 15px;
    background: #0a140f; /* Fondo oscuro Bruma */
    position: sticky;
    top: 0;
    z-index: 100; /* Se queda pegado arriba al hacer scroll */
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.search-input-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #d4af37;
    font-size: 1.2rem;
}

#live-search-input {
    width: 100%;
    background: #1a1e1d;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 25px;
    padding: 12px 15px 12px 45px;
    color: #f8f9fa;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#live-search-input:focus {
    border-color: #d4af37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

#live-search-input::placeholder {
    color: #888;
}

/* ========================================================
   ESTILOS PREMIUM PARA LA PÁGINA DE CONTACTO
   ======================================================== */

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 0 15px;
}

/* Tarjeta individual */
.contact-card {
    background-color: #1a1e1d;
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
    position: relative;
    overflow: hidden;
}

/* Círculo dorado para el ícono */
.contact-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid #d4af37;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px auto;
}

.contact-icon-wrapper i {
    font-size: 1.8rem;
    color: #d4af37;
}

/* Textos de la tarjeta */
.contact-title {
    color: #d4af37;
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.contact-desc {
    color: #a0aab2;
    font-size: 0.95rem;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Botón especial de WhatsApp */
.btn-whatsapp {
    display: inline-block;
    background-color: #25D366; /* Verde oficial de WhatsApp */
    color: #ffffff;
    font-weight: 800;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    color: #ffffff;
}

/* Contenedor del Iframe del Mapa */
.map-wrapper {
    width: 100%;
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Botón secundario para el mapa */
.btn-location {
    display: inline-block;
    background-color: transparent;
    color: #d4af37;
    border: 2px solid #d4af37;
    font-weight: 700;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-location:hover {
    background-color: #d4af37;
    color: #0a140f;
}