/* ==========================================================================
   Logo de Marca (Ajuste de Tamaño)
   ========================================================================== */
.brand-logo-img {
    height: 100px; /* o el tamaño que prefieras */
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease, height 0.3s ease;
    
    /* FIX: Elimina el fondo blanco de la imagen WebP */
    mix-blend-mode: multiply;
}

.brand-logo-img:hover {
    transform: scale(1.08); /* Ligero efecto al pasar el cursor */
}

/* Ajuste del Navbar para dar espacio al logo más grande */
.custom-navbar {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

/* Reducción sutil al hacer scroll para mantener el menú limpio */
.custom-navbar.scrolled .brand-logo-img {
    height: 48px;
}

/* Responsivo para celulares */
@media (max-width: 991.98px) {
    .brand-logo-img {
        height: 45px;
    }
}


/* ==========================================================================
   VARIABLES Y ESTILOS GENERALES
   ========================================================================== */
:root {
    --gold-primary: #A7850B;
    --gold-hover: #866A08;
    --dark-primary: #1A1A1A;
    --bg-ivory: #FDFBF7;
    --bg-light-gray: #F8F9FA;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--dark-primary);
    background-color: #FFFFFF;
    overflow-x: hidden;
}

h1, h2, h3, h4, .brand-logo {
    font-family: var(--font-heading);
}

.text-gold { color: var(--gold-primary) !important; }
.bg-gold { background-color: var(--gold-primary) !important; }
.bg-ivory { background-color: var(--bg-ivory) !important; }

/* ==========================================================================
   Navegación Smart Navbar
   ========================================================================== */
.custom-navbar {
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.custom-navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.navbar-menu .nav-link {
    color: var(--dark-primary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.navbar-menu .nav-link:hover {
    color: var(--gold-primary);
}

.highlight-link {
    color: var(--gold-primary) !important;
    font-weight: 600 !important;
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */
.btn-gold {
    background-color: var(--gold-primary);
    color: #FFFFFF;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background-color: var(--gold-hover);
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* ==========================================================================
   Hero Slider
   ========================================================================== */
#heroSlider .carousel-item {
    height: 85vh;
    min-height: 550px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-slide-1 { background-image: url('/img_barras/barra_baner.webp'); }
.hero-slide-2 { background-image: url('/img_corporativo/corporativoBannerNuevo.jpg'); }
.hero-slide-3 { background-image: url('/img_reposteria/bannerNuevo.jpg'); }
.hero-slide-4 { background-image: url('https://images.unsplash.com/photo-1587314168485-3236d6710814?auto=format&fit=crop&w=1600&q=80'); }

.overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.3) 100%);
}

.carousel-caption {
    bottom: 25%;
    z-index: 2;
}

/* ==========================================================================
   Componentes & Tarjetas UI
   ========================================================================== */
.card-custom {
    transition: all 0.3s ease;
    border-radius: 1rem;
    overflow: hidden;
}

.card-custom:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.img-fluid-product {
    height: 400px;
    object-fit: cover;
}

.max-w-700 { max-width: 700px; }
.max-w-800 { max-width: 800px; }

/* ==========================================================================
   Accordion Custom (FAQ)
   ========================================================================== */
.accordion-custom .accordion-button:not(.collapsed) {
    background-color: var(--bg-ivory);
    color: var(--gold-primary);
    font-weight: bold;
}

.accordion-custom .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,0.125);
}

/* ==========================================================================
   FIX: Espaciado superior para páginas secundarias con Navbar Fij
   ========================================================================== */

.header-page-padding {
    padding-top: 140px !important; /* Espacio suficiente para no tapar el título */
    padding-bottom: 3rem !important;
}

/* Opcional: Asegurar que la barra mantenga una altura definida */
.custom-navbar {
    min-height: 80px;
    display: flex;
    align-items: center;
}

/* Botón Flotante de WhatsApp */
.btn-wsp-float {
    position: fixed;
    width: 50px;
    height: 50px;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: #FFF !important;
    border-radius: 50px;
    text-align: center;
    font-size: 32px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-in-out;
    text-decoration: none;
}

.btn-wsp-float:hover {
    background-color: #20ba5a;
    transform: scale(1.1);
    box-shadow: 0px 6px 16px rgba(0, 0, 0, 0.35);
    color: #FFF !important;
}

/* ==========================================
   OPTIMIZACIÓN MOBILE & TABLET (PREVENCIÓN DE OVERFLOW)
   ========================================== */

/* Previene el scroll horizontal indeseado en móviles */
html, body {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* Asegura que los contenedores max-w sean totalmente fluidos */
.max-w-700, .max-w-800, .max-w-900 {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
}

@media (min-width: 768px) {
    .max-w-700 { max-width: 700px !important; }
    .max-w-800 { max-width: 800px !important; }
    .max-w-900 { max-width: 900px !important; }
}

/* Ajuste responsive para títulos grandes en pantallas móviles */
@media (max-width: 576px) {
    .display-3 {
        font-size: 2.2rem !important;
    }
    .display-4 {
        font-size: 1.8rem !important;
    }
    .display-5 {
        font-size: 1.6rem !important;
    }
    
    /* Asegurar que las imágenes o contenedores no sobresalgan */
    .brand-logo-img {
        max-width: 140px;
        height: auto;
    }
    
    /* Prevenir que el container del Navbar genere overflow */
    .custom-navbar .container {
        padding-left: 12px;
        padding-right: 12px;
    }
}