﻿/* =========================
   VARIABLES Y RESET
========================= */
:root {
    --primary: #1a1a1a;
    --secondary: #f8f8f8;
    --accent: #cba135;
    --highlight: #dc3545;
    --light-shadow: rgba(0, 0, 0, 0.08);
    --font-main: 'Jost', sans-serif;
    --font-title: 'Fraunces', serif;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: var(--secondary) url('/images/paper-texture.jpg') center/cover no-repeat fixed;
    color: var(--primary);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--primary);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
    color: var(--primary);
}

    a:hover {
        color: var(--highlight);
    }


/* NAVBAR PREMIUM */
.bg-premium {
    background: rgba(31, 31, 31, 0.9);
    transition: background 0.3s ease, padding 0.3s ease;
    position: fixed !important; /* navbar fijo */
    top: 0;
    width: 100%;
    z-index: 1030; /* sobre otros elementos */
}

/* Evita animaciones de scroll para navbar fijo */
.navbar.scrolled {
    background: rgba(31, 31, 31, 0.95);
    padding: 8px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
}

.navbar-logo {
    height: 40px;
}

.navbar-nav .nav-link {
    color: #f8f8f8;
    font-weight: 500;
    padding: 8px 15px;
    transition: color 0.3s ease, background 0.3s ease;
}

    .navbar-nav .nav-link:hover {
        color: #C8A56E;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 5px;
    }

    .navbar-nav .nav-link.active {
        color: #C8A56E;
        font-weight: 700;
        border-bottom: 2px solid #C8A56E;
    }

.navbar-toggler {
    border: none;
    outline: none;
}

/* Animación del menú responsive */
.navbar-collapse {
    transition: all 0.4s ease-in-out;
    transform-origin: top;
}

    .navbar-collapse.collapsing {
        height: auto;
        overflow: hidden;
        transform: scaleY(0);
    }

    .navbar-collapse.show {
        transform: scaleY(1);
    }

/* Ajuste para evitar contenido oculto debajo del navbar fijo solo en páginas específicas */
body.navbar-fixed {
    padding-top: 70px; /* ajustar según altura navbar */
}







/* =========================
   CAROUSEL
========================= */
.carousel-item img {
    height: 80vh;
    object-fit: cover;
    width: 100%;
}

/* =========================
   BANNERS
========================= */
.menu-banner-parallax {
    background: linear-gradient(rgba(26,26,26,0.45), rgba(26,26,26,0.45)), url('/images/hero1.jpg') center/cover no-repeat fixed;
    height: 30vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: 'Noto Sans JP', sans-serif;
    position: relative;
}

    .menu-banner-parallax .overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

.banner-content {
    position: relative;
    z-index: 2;
    padding: 0 1rem;
    color: white;
    animation: fadeIn 1s ease-in-out;
}

.menu-banner-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 10px var(--light-shadow);
    color: white;
}

.menu-banner-subtitle {
    font-size: 1.2rem;
    color: white;
}


/* =========================
   BOTONES
========================= */
.btn, .menu-buttons .btn, .product-card .btn, .btn-premium {
    border-radius: 30px;
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    background: linear-gradient(45deg, var(--highlight), var(--accent));
    color: #fff;
    border: none;
    transition: all 0.3s ease;
}

    .btn:hover, .menu-buttons .btn:hover, .product-card .btn:hover, .btn-premium:hover {
        background: linear-gradient(45deg, var(--accent), var(--highlight));
        transform: scale(1.05);
        box-shadow: 0 4px 15px var(--light-shadow);
    }

.btn-detalle.btn-ordenar {
    background: linear-gradient(45deg, #28a745, #218838);
    padding: 0.7rem 1.8rem;
    font-size: 1.1rem;
    border-radius: 30px;
    font-weight: bold;
    color: #fff;
    border: none;
}

    .btn-detalle.btn-ordenar:hover {
        background: linear-gradient(45deg, #218838, #28a745);
        transform: scale(1.05);
    }

.btn-detalle.btn-regresar {
    background: linear-gradient(45deg, #6c757d, #495057);
    padding: 0.7rem 1.8rem;
    font-size: 1.1rem;
    border-radius: 30px;
    font-weight: bold;
    color: #fff;
    border: none;
}

    .btn-detalle.btn-regresar:hover {
        background: linear-gradient(45deg, #495057, #6c757d);
        transform: scale(1.05);
    }



/* =========================
   FILTROS COMPACTOS
========================= */
.filtros-compactos {
    margin-top: 20px;
    margin-bottom: 20px;
}

    .filtros-compactos .form-control,
    .filtros-compactos .form-select {
        border: 2px solid var(--primary);
        border-radius: 25px;
        padding: 0.5rem 1rem;
        font-size: 1rem;
        transition: border-color 0.3s ease, box-shadow 0.3s ease;
    }

        .filtros-compactos .form-control:focus,
        .filtros-compactos .form-select:focus {
            border-color: var(--accent);
            box-shadow: 0 0 5px var(--accent);
            outline: none;
        }

    .filtros-compactos .btn {
        border-radius: 30px;
        padding: 0.6rem 1.2rem;
        font-weight: bold;
        font-size: 1rem;
        background: linear-gradient(45deg, var(--highlight), var(--accent));
        color: white;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

        .filtros-compactos .btn:hover {
            transform: scale(1.05);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }

    /* Icono de búsqueda integrado */
    .filtros-compactos .form-control::placeholder {
        font-style: italic;
    }





/* =========================
   PRODUCT CARDS
========================= */
.product-card {
    border: none;
    border-radius: 20px;
    background: linear-gradient(135deg, #fff, #f9f7f2);
    overflow: hidden;
    box-shadow: 0 6px 20px var(--light-shadow);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    position: relative;
}

    .product-card img {
        border-bottom: 2px solid #f5f5f5;
        border-radius: 20px 20px 0 0;
        transition: transform 0.5s ease, filter 0.3s ease;
    }

    .product-card:hover {
        transform: translateY(-6px) scale(1.02);
        box-shadow: 0px 12px 30px rgba(0,0,0,0.25);
    }

        .product-card:hover img {
            transform: scale(1.03);
            filter: brightness(1.05);
        }

    .product-card .card-body {
        padding: 1.2rem;
    }

    .product-card .card-title {
        font-size: 1.35rem;
        font-weight: 600;
        margin-bottom: 0.75rem;
        color: var(--primary);
        font-family: 'Playfair Display', serif;
    }

.card-text {
    color: #555;
}



/* =========================
   PROMOCIONES
========================= */
.promo-highlight {
    border: 2px solid transparent;
    border-image: linear-gradient(45deg, gold, var(--accent));
    border-image-slice: 1;
    box-shadow: 0 10px 25px rgba(220, 53, 69, 0.45), 0 0 15px rgba(220, 53, 69, 0.3);
    position: relative;
    overflow: hidden;
}

    .promo-highlight:hover {
        transform: translateY(-5px) scale(1.03);
        box-shadow: 0 14px 35px rgba(220, 53, 69, 0.55), 0 0 20px rgba(220, 53, 69, 0.35);
    }

    .promo-highlight::before {
        content: "🔥 PROMO";
        position: absolute;
        top: 10px;
        left: -40px;
        background: var(--highlight);
        color: #fff;
        padding: 5px 15px;
        font-size: 0.9rem;
        font-weight: bold;
        transform: rotate(-45deg);
    }




/* =========================
   PRODUCTOS RELACIONADOS
========================= */
.productos-relacionados {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.relacionados-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(250px,1fr));
    gap: 25px;
    margin-top: 30px;
}

.productos-relacionados .product-card {
    max-width: 280px;
    min-width: 250px;
    height: 380px;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 20px;
}

.productos-relacionados img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.productos-relacionados .card-body {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.productos-relacionados .card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
}

.price-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.original-price {
    text-decoration: line-through;
    color: #999;
}

.offer-price {
    color: var(--highlight);
    font-weight: bold;
}






/* =========================
   DETALLE PRODUCTO
========================= */
.detalle-container {
    max-width: 1000px;
    margin: 50px auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--light-shadow);
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.detalle-imagen img {
    width: 100%;
    border-radius: 16px;
}

.detalle-info h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.detalle-info p.descripcion {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
}

.precio {
    font-size: 1.5rem;
}

    .precio .viejo {
        text-decoration: line-through;
        color: #999;
    }

    .precio .oferta {
        color: var(--highlight);
        font-weight: bold;
    }

/* =========================
   MEDIA QUERIES
========================= */
@media (max-width:992px) {
    .product-card .card-title {
        font-size: 1.2rem;
    }
}

@media (max-width:768px) {
    .detalle-container {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .menu-banner-title {
        font-size: 2rem;
    }
}

@media (max-width:576px) {
    .menu-banner-title {
        font-size: 1.8rem;
    }
}



.btn-delivery {
    border-radius: 25px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-ubereats {
    background: linear-gradient(45deg, #1db954, #1ed760);
    color: white;
}

    .btn-ubereats:hover {
        background: linear-gradient(45deg, #1ed760, #1db954);
        transform: scale(1.05);
    }

.btn-didifood {
    background: linear-gradient(45deg, #ffcc00, #ff9900);
    color: white;
}

    .btn-didifood:hover {
        background: linear-gradient(45deg, #ff9900, #ffcc00);
        transform: scale(1.05);
    }

.promo-badge {
    position: absolute;
    top: 12px;
    left: -20px;
    background: linear-gradient(45deg, gold, var(--accent));
    color: white;
    padding: 6px 15px;
    font-size: 0.85rem;
    font-weight: bold;
    transform: rotate(-25deg);
    box-shadow: 0px 4px 10px rgba(0,0,0,0.2);
    z-index: 10;
    transition: transform 0.3s ease;
}

    .promo-badge:hover {
        transform: rotate(-25deg) scale(1.05);
    }


.menu-banner-parallax {
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.banner-content h2 {
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}

.banner-content p {
    font-size: 1.2rem;
}

.detalle-container {
    display: flex;
    gap: 2rem;
}

.detalle-imagen img {
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 0px 4px 15px rgba(0,0,0,0.2);
}

.precio .viejo {
    margin-right: 1rem;
}

.precio .oferta {
    color: var(--premium-color);
}

.btn-outline-premium {
    border: 2px solid var(--premium-color);
    color: var(--premium-color);
}

    .btn-outline-premium:hover {
        background-color: var(--premium-color);
        color: white;
    }

.section-title {
    font-size: 1.8rem;
    font-weight: bold;
    border-bottom: 2px solid var(--premium-color);
    padding-bottom: 0.5rem;
}


.product-card {
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0px 10px 20px rgba(0,0,0,0.15);
    }

.product-image-wrapper {
    border-radius: 15px 15px 0 0;
    overflow: hidden;
}

.promo-badge {
    background: linear-gradient(135deg, #FF7E5F, #FEB47B);
    padding: 5px 10px;
    border-radius: 10px;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    top: 10px;
    left: 10px;
    z-index: 10;
}

.price-row .original-price {
    font-size: 0.9rem;
}

.price-row .offer-price {
    font-size: 1.2rem;
}

.price-row .price {
    font-size: 1.2rem;
}

.btn-delivery {
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    transition: background 0.3s ease, color 0.3s ease;
}

.btn-ubereats {
    background-color: #00C853;
    color: white;
}

    .btn-ubereats:hover {
        background-color: #00E676;
        color: white;
    }

.btn-didifood {
    background-color: #FFC107;
    color: black;
}

    .btn-didifood:hover {
        background-color: #FFD54F;
        color: black;
    }





/* =========================
   Efecto Fade-In + Slide-Up para Main
========================= */
.main-fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInSlideUp 1s ease forwards;
}

@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}





html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main.flex-fill {
    flex: 1;
}





/* ===== Botón de compartir en Facebook ===== */
/*.btn-share-fb {
    background-color: rgba(24, 119, 242, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    cursor: pointer;
}




    .btn-share-fb:hover {
        background-color: #1877f2;
        transform: scale(1);
    }*/

/* Mostrar al hacer hover sobre la imagen */
/*.product-image-wrapper:hover .btn-share-fb {
    opacity: 1;
    transform: scale(1);
}*/


/* ===== BOTÓN FACEBOOK DETALLE ===== */
/*.btn-facebook {
    background-color: #1877f2;
    color: #fff;
    border: none;
    transition: all 0.3s ease;
}

    .btn-facebook:hover {
        background-color: #145dc1;
        transform: translateY(-2px);
    }*/
