/* ======================================= */
/* 0. Declaración de Fuente Global */
/* ======================================= */
@font-face {
    font-family: 'Mynerve Regular';
    /* Asegúrate de que esta ruta sea correcta */
    src: url('Mynerve-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Variables para colores clave (Consolidado de todas las secciones) */
:root {
    --color-principal-naranja: #F15931;
    --color-principal-marron: #793427;
    --color-secundario-oscuro: #2D2D2B;
    --color-texto-claro: #F5F5F5;
    --color-texto-oscuro: #4B0000;
    --color-naranja-quemado: #B22C00;
    --color-amarillo-claro: #FFEFB0;
    --color-naranja-evento: #FF5731; /* Se utiliza en la sección de menú */
    --color-amarillo-evento: #FFC72C;
}
/* ======================================= */
/* 1. Estilos Globales y Tipografía */
/* ======================================= */
body {
    margin: 0;
    padding: 0;
    font-family: 'Alegreya Sans', sans-serif;
}

/* Ocultar barra de desplazamiento (Consolidado) */
.overflow-auto::-webkit-scrollbar {
    display: none;
}
.overflow-auto {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
/* Clase especial para la fuente 'Mynerve' (Consolidado) */
.special-font {
    font-family: 'Mynerve Regular';
    font-weight: bold;
}

/* ======================================= */
/* 2. Navbar y Logo (Rectangular Gris Oscuro) */
/* ======================================= */

.navbar {
    background-color: var(--color-secundario-oscuro); 
    z-index: 1090;
    padding: 10px 0;
    /* Reducimos la altura fija para hacerlo más responsivo, pero mantenemos una altura mínima */
    min-height: 80px; 
    height: auto;
    display: flex;
    align-items: center;
}

.navbar-brand {
    padding-left: 20px;
    height: 100%;
    display: flex;
    align-items: center;
}

.logo-img {
    width: 90px;
    height: auto;
    display: block;
}

/* Estilo del menú de navegación (para escritorio) */
.navbar-nav {
    padding-right: 20px;
}

.navbar-nav .nav-item {
    margin-left: 20px;
}

.navbar-nav .nav-link {
    font-weight: 800;
    color: #fff !important;
    font-size: 1em;
    text-shadow: none;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #ddd !important;
}

.btn-contact {
    font-weight: 900;
    background-color: var(--color-principal-naranja);
    color: #fff !important;
    border: none;
    padding: 8px 30px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-contact:hover {
    background-color: var(--color-naranja-quemado);
    color: #fff !important;
}

/* ======================================= */
/* 3. ESTILOS DEL BOTÓN DE HAMBURGUESA (SÓLO MÓVIL) */
/* ======================================= */

/* Aseguramos que el toggler se muestre en móvil (y Bootstrap lo oculta en lg por defecto) */
/* Usamos media query para asegurarnos de que SOLO se muestre en móvil/tablet */
@media (max-width: 991.98px) {
    /* Quitamos el 'display: none;' que tenías en la versión de escritorio */
    .navbar-toggler {
        display: flex;
        /* Estilos del botón base */
        border: none !important; 
        background: transparent;
        padding: 0;
        width: 30px; 
        height: 20px; /* Alto total de las barras */
        flex-direction: column;
        justify-content: space-between; /* Distribuye el espacio entre las barras */
        cursor: pointer;
        position: relative; 
        z-index: 1060; /* Debe estar encima del menú fijo (aunque el WhatsApp estará más arriba) */
        /* CORRECCIÓN: Usamos margin-left: auto para forzarlo a la derecha */
        margin-left: auto;
        margin-right: 20px; /* Separación del borde derecho de la pantalla */
    }

    /* Estilo de las tres líneas blancas (basado en la clase .menu-toggle.bar de tu HTML) */
    .menu-toggle.bar {
        display: block;
        width: 100%;
        height: 3px;
        background-color: white; /* El color blanco que solicitaste */
        border-radius: 1px;
        transition: all 0.3s ease; /* Transición suave para la animación */
        transform-origin: center;
    }

    /* --- ESTADO ABIERTO (CLASE 'is-open' en el botón) --- */

    /* Barra superior (primera .bar) */
    .navbar-toggler.is-open .menu-toggle.bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg); 
    }

    /* Barra central (segunda .bar) */
    .navbar-toggler.is-open .menu-toggle.bar:nth-child(2) {
        opacity: 0;
        transform: scale(0.1); 
    }

    /* Barra inferior (tercera .bar) */
    .navbar-toggler.is-open .menu-toggle.bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg); 
    }
}


/* ======================================= */
/* 4. ESTILOS BASE DEL MENÚ MÓVIL (CERRADO Y ABIERTO) */
/* ======================================= */

.mobile-nav-menu {
    position: fixed;
    top: 0;
    height: 100vh; 
    width: 100%;
    
    background-color: #333333; 
    color: white; 
    
    display: flex;
    flex-direction: column;
    /* Ajuste para que el contenido empiece más abajo y no choque con la navbar */
    justify-content: flex-start; 
    align-items: center; 

    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out; 
    z-index: 1050; 
    
    overflow-y: auto;
    /* IMPORTANTE: Añadimos un padding superior para compensar la navbar fija */
    padding-top: 100px; /* Espacio para que el contenido no quede debajo de la navbar */
    padding-bottom: 20px;
}

.mobile-nav-menu.is-open {
    transform: translateX(0);
}

body.menu-open {
    overflow: hidden;
}

/* Nuevo: Estilos de la lista y enlaces */
.mobile-nav-menu .menu-list {
    list-style: none; /* Quitamos las viñetas */
    padding: 0;
    margin: 40px 0 60px 0; /* Espacio antes y después de la lista */
    text-align: center;
    width: 100%; /* Aseguramos que ocupe todo el ancho para centrar texto */
}

.mobile-nav-menu .menu-list li {
    /* Quitamos el punto por defecto de la lista */
    margin: 20px 0; /* Reducimos el margen entre ítems */
}

.mobile-nav-menu .menu-list a {
    color: white;
    text-decoration: none;
    /* CORRECCIÓN: Reducimos el tamaño de la fuente de 1.8rem a 1.4rem */
    font-size: 1.4rem; 
    font-weight: 700;
    letter-spacing: 1px; /* Reducimos el espaciado para que no se vea tan ancho */
    padding: 10px 20px;
    display: block; /* Para que el área de clic sea grande */
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.mobile-nav-menu .menu-list a:hover {
    color: var(--color-principal-naranja); /* Cambia al color de tu marca al pasar el ratón */
}

/* Estilo del botón de contacto */
.mobile-nav-menu .contact-button {
    display: block;
    padding: 15px 40px;
    background-color: var(--color-principal-naranja); 
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1.2rem;
    margin-top: 20px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    min-width: 200px; 
    text-align: center;
    transition: background-color 0.3s ease;
}

.mobile-nav-menu .contact-button:hover {
    background-color: var(--color-naranja-quemado);
}

/* ================================================= */
/* 5.1. AJUSTE: BOTÓN FLOTANTE DE WHATSAPP (Móvil) */
/* ================================================= */

@media (max-width: 768px) {
    
    .whatsapp-float {
        /*
         * CLAVE 1: Anulamos el 'bottom: 5px' de desktop 
         * y lo anclamos a una posición superior.
         */
        bottom: auto !important; 
        
        /* * CLAVE 2: Mueve el botón hacia abajo desde el borde superior de la ventana.
         * Ajústalo (90px, 100px, 110px) hasta que quede debajo del menú del encabezado.
         */
        top: 90px !important; 
        
        /* Opcional: Aseguramos que esté a la derecha */
        right: 20px !important;
        
        /* Aseguramos que siempre esté por encima de cualquier elemento (z-index ya está alto) */
        z-index: 9999; 
    }
}

/* ======================================= */
/* 3. AJUSTE DEL CARRUSEL PRINCIPAL (ESCRITORIO) */
/* ======================================= */

#heroCarousel {
    margin-top: 120px;
    height: 750px; /* Altura Fija para Escritorio */
    width: 100%;
    overflow: hidden;
    position: relative;
}

.carousel-indicators {
    display: none;
}

.carousel-inner,
.carousel-item {
    width: 100%;
    height: 100%; /* Toma la altura de #heroCarousel (750px) */
}

/* Estilo de la imagen en Escritorio (Cubre el contenedor) */
.carousel-img {
    width: 100%;
    height: 100%; 
    /* Recorta la imagen para llenar los 750px manteniendo su proporción */
    object-fit: cover; 
    object-position: center; 
}

.hero-slide-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: absolute;
    top: 0;
    left: 0;
}

/* --- Flechas Personalizadas --- */

.carousel-control-prev,
.carousel-control-next {
    opacity: 1;
    width: 80px;
    padding: 0 30px;
    z-index: 20;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    display: none;
    background-image: none;
}

/* Estilos de flechas ::before (VECTORES SVG) */
.carousel-control-prev::before,
.carousel-control-next::before {
    content: '';
    display: block;
    width: 60px;
    height: 60px;
    pointer-events: none;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.carousel-control-prev::before {
    background-image: url('imagenes/flechaizquierda.svg');
}

.carousel-control-next::before {
    background-image: url('imagenes/flechaderecha.svg');
}


/* ======================================= */
/* 4. Estilo del Botón de Reservación (Principal) */
/* ======================================= */

.carousel-caption {
    position: absolute;
    bottom: -12%;
    left: 22%;
    transform: translateX(-50%);
    width: auto;
}

.reservation-box {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 15px 50px;
    border-radius: 50px;
    display: inline-block;
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(3px);
}

.btn-reservation {
    font-weight: 900;
    background-color: transparent;
    border: none;
    color: var(--color-principal-naranja) !important; 
    font-size: 1.1rem;
    padding: 0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.btn-reservation:hover {
    color: #D63300 !important;
}

/* ======================================= */
/* 5. Icono Flotante de WhatsApp */
/* ======================================= */

.whatsapp-float {
    position: fixed;
    top: 130px;
    right: 20px;
    z-index: 1100;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #25D366;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    transition: transform 0.2s;
}

.whatsapp-icon {
    width: 35px;
    height: 35px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* ======================================= */
/* 5. Estilo Específico para el ÚLTIMO Slide */
/* ======================================= */

/* Selecciona el último elemento del carrusel y cambia el color del botón. */
.carousel-item:last-child .reservation-box {
    /* Fondo del cuadro del botón - Ejemplo: Gris Oscuro */
    background-color: #FFEFB0; 
}

.carousel-item:last-child .btn-reservation {
    /* Color del texto del botón - Ejemplo: Blanco */
    color: #847B04 !important; 
}

.carousel-item:last-child .btn-reservation:hover {
    /* Color del texto en hover - Ejemplo: Gris Claro */
    color: #CCCCCC !important;
}

/* ======================================= */
/* CARRUSEL MÓVIL – IMAGEN COMPLETA (object-fit: contain) */
/* ======================================= */

@media (max-width: 768px) {

    /* Contenedor del carrusel */
    #heroCarousel {
        /* Mantenemos el margen superior para la barra de navegación */
        margin-top: 60px;      
        width: 100%;
        /* 🔥 CORRECCIÓN CLAVE: Altura fija calculada: 
           100% del alto de la ventana (vh) menos los 60px de la barra de navegación. */
        height: calc(100vh - 60px); 
        min-height: 0;
        max-height: 100vh; /* Máximo absoluto, si deseas un límite */
        overflow: hidden;
        position: relative;
    }

    .carousel-inner,
    .carousel-item {
        width: 100%;
        /* Aseguramos que los contenedores internos tomen la altura del padre */
        height: 100%;
    }

    /* IMAGEN: Usar contain para mostrarla completa sin recortar */
    .carousel-img {
        width: 100%;
        height: 100%; 
        /* 🔥 CORRECCIÓN CLAVE: 'contain' para mostrar la imagen COMPLETA. */
        object-fit: contain !important;  
        object-position: center;
    }
    
    /* Si estás usando la etiqueta <picture> */
    picture {
        width: 100%;
        height: 100%; /* Asegurar que la etiqueta picture tome la altura completa */
        display: block;
    }

    picture img,
    picture source {
        width: 100%;
        height: 100%; /* Asegurar que las fuentes e imágenes dentro tomen la altura completa */
    }

    /* ------------------------------------------- */
    /* --- CORRECCIÓN BOTÓN: Se elimina el margin negativo --- */
    /* ------------------------------------------- */
    .carousel-caption {
        position: absolute;
        /* Aseguramos que el botón esté pegado a la parte inferior del contenedor (donde iría la barra negra) */
        bottom: 0; 
        /* 🔥 Eliminado el margin-bottom negativo que lo sacaba de la pantalla */
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        display: flex; 
        justify-content: center;
        align-items: flex-end; 
        object-fit: cover;

        padding-bottom: 20px; 

        z-index: 50;
        text-align: center;
    }

    .reservation-box {
        padding: 10px 25px;
        border-radius: 40px;
        background-color: rgba(255, 255, 255, 0.80);
        backdrop-filter: blur(4px);
    }

    .btn-reservation {
        font-size: 1rem;
        font-weight: 900;
    }

    /* FLECHAS CUSTOM EN MÓVIL (Sin cambios) */
    .carousel-control-prev,
    .carousel-control-next {
        width: 50px;
        opacity: 1;
        z-index: 40;
    }

    .carousel-control-prev::before,
    .carousel-control-next::before {
        width: 35px;
        height: 35px;
    }
}
/* ======================================= */
/* 6. SECCIÓN DE MENÚ */
/* ======================================= */

/* --- Configuración General de la Sección --- */
.menu-section {
    background-image: url('imagenes/fondo_menu.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 70vh;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* --- Contenedor Maestro --- */
.menu-content-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.menu-content-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -50%;
    transform: translateY(-50%);
    background-color: var(--color-amarillo-claro);
    width: 200%;
    height: 170px;
    z-index: 1;
}

/* --- Elemento Flotante Izquierdo (Texto "MENÚ" Grande) --- */
.menu-floating-left {
    position: relative;
    z-index: 10;
    padding: 0 20px;
}

.menu-floating-text {
    font-family: 'Alegreya Sans';
    font-weight: 800;
    font-size: 8vw;
    line-height: 0.9;
    margin: 0;
    opacity: 1;
    color: transparent;
    -webkit-text-stroke: 3px var(--color-naranja-evento);
}

/* --- Elemento Central: La Imagen del Menú --- */
.menu-center-box {
    position: relative;
    z-index: 20;
}

.menu-preview-img-center {
    max-width: 450px;
    height: auto;
    z-index: 30;
}

/* --- Elemento Flotante Derecho (CTA y Botones) --- */
.menu-call-to-action {
    position: relative;
    z-index: 10;
    font-family: 'Alegreya Sans', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--color-naranja-evento);
    margin-bottom: 10px;
    margin-right: 30px !important;
}

/* --- Estilo de los Botones de Idioma --- */
.btn-menu-action {
    position: relative;
    z-index: 10;
    font-family: 'Mynerve';
    font-weight: 900;
    font-size: 0.9rem;
    padding: 8px 20px;
    border-radius: 20px;
    text-transform: uppercase;
    min-width: 100px;
    text-align: center;
    transition: all 0.3s;
    text-decoration: none;
    line-height: 1.2;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Consolidación de estilos comunes para ambos botones */
    background-color: var(--color-naranja-evento);
    color: var(--color-amarillo-claro);
    border: none;
}

.btn-espanol:hover,
.btn-ingles:hover {
    /* Consolidado el hover para ambos botones */
    background-color: #e04a29;
}

/* ======================================= */
/* 6.1. AJUSTES ESPECÍFICOS DE MENÚ (Móvil) */
/* ======================================= */

@media (max-width: 768px) {

    /* --- 0. Contenedor Principal (Fondo Naranja) --- */
    .menu-section {
        background-image: url('imagenes/fondo_menumobile.png');
        background-position: center; 
        background-size: cover; 
        
        /* CLAVE 1: Centrado vertical de todo el contenido */
        display: flex;
        align-items: center; 
        justify-content: center; 
        min-height: 90vh; 
        padding: 80px 0; 
    }
    
    .menu-content-wrapper {
        width: 100%;
        max-width: 400px; 
    }

    /* --- Franja Amarilla (::before) --- */
    .menu-content-wrapper::before {
        /* Mantenemos este elemento activo para la franja amarilla */
        height: 150px; 
    }

    /* --- 1. ESTILIZAR Y MOVER "Ver nuestro menú" a la parte superior --- */
    .menu-call-to-action {
        display: block !important; /* Aseguramos que se muestre (revirtiendo 'display: none') */
        
        /* Estilos para que se vea como el título "Nuestro Menú" */
        font-size: 2rem; 
        color: var(--color-amarillo-titulo, #FBE099); 
        text-align: center; 
        
        /* Separación de la imagen */
        margin-bottom: 30px !important; 
        margin-left: 20px !important;
    }
    
    /* --- 2. Ajustar la Imagen Central del Menú --- */
    .menu-preview-img-center {
        max-width: 85%;
        height: auto;
        max-height: 400px; 
        display: block;
        margin: 0 auto; 
    }

    /* --- 3. Ajuste del Título "MENÚ" (Texto flotante) --- */
    .menu-floating-text {
        font-size: 10vw; 
        -webkit-text-stroke: 1.5px var(--color-naranja-evento); 
        text-align: center;
        width: 100%;
    }
    
    /* --- 4. Centrar los botones de descarga en móvil --- */
    .d-flex.gap-3.mt-3 {
        justify-content: center !important;
        margin-top: 30px !important; /* Espacio entre la imagen/franja y los botones */
    }
}

/* ======================================= */
/* 7. SECCIÓN NOSOTROS (ESCRITORIO) */
/* ======================================= */

.nosotros-section {
    background-image: url('imagenes/fondo1.jpg');
    background-size: 100% auto !important;   /* Fondo cubre horizontal */
    background-position: top center;
    background-repeat: no-repeat;      
    min-height: 92vh !important;             /* Quitamos altura sobrante */
    position: relative;
    overflow: hidden;
}

.nosotros-container {
    padding-top: 0;
    padding-bottom: 0 !important;            /* Evita espacio blanco inferior */
    position: relative;
}

/* ------------ TÍTULOS (ESCRITORIO) ------------ */

.nosotros-title-wrapper {
    position: relative;
    z-index: 5;
    margin-top: 0 !important;
    margin-bottom: -60px !important;
    margin-left: 20px !important;
}

.nosotros-title {
    font-family: 'Alegreya Sans', sans-serif;
    font-weight: 900;
    font-size: 90pt !important;
    line-height: 0.8;
    margin-left: 20px;
    margin: 0;
    white-space: nowrap;
    margin-bottom: 10px;
    color: #56f3f8;
    position: relative;
    z-index: 10;
    display: block;
}

.third-layer {
    font-family: 'Alegreya Sans', sans-serif;
    font-weight: 900;
    font-size: 90pt;
    line-height: 0.8;
    margin: 0;
    white-space: nowrap;
    color: transparent;
    -webkit-text-stroke: 3px #56f3f8;
    margin-top: 5px;
    margin-bottom: 5px;
    position: relative;
    z-index: 7;
}

/* ------------ TEXTO (ESCRITORIO) ------------ */

.nosotros-text-column {
    font-family: 'Alegreya Sans', sans-serif;
    font-weight: 400;
    margin-top: 10px;
    margin-bottom: 10px !important;  /* Reducido de 50px */
    padding-left: 15px;
    margin-left: 10px;
    position: relative;
    z-index: 10;
}

.nosotros-paragraph {
    font-family: 'Alegreya Sans', sans-serif;
    font-size: 18pt;
    line-height: 1.6;
    color: white;
    max-width: 450px;
    margin-bottom: 20px;
}

.nosotros-paragraph.second-paragraph {
    font-size: 20pt;
    font-family: 'Mynerve';
    font-weight: bold;
    margin-top: 60px;
}

/* ------------ COLUMNA IMAGEN (ESCRITORIO) ------------ */

.nosotros-image-column {
    min-height: 0 !important;    /* Antes 250px → causaba hueco blanco */
    height: auto !important;
    padding: 0 !important;
}


/* ======================================= */
/* 7.1 MODO MÓVIL (NO MODIFICADO) */
/* ======================================= */

@media (max-width: 768px) {

    .nosotros-title-wrapper {
        position: relative;
        width: 100%;
        text-align: center;
        min-height: auto;
        padding-top: 50px;
        margin-bottom: 0;
        left: 0;
    }

    .nosotros-title {
        font-size: 46pt !important;
        margin-bottom: 10px;
        margin-top: -125px;
        text-align: left;
    }

    .third-layer {
        font-size: 46pt;
        position: relative;
        left: 0;
        margin-left: 0;
        margin-top: 5px;
        margin-bottom: -30px;
        text-align: left;
    }

    .nosotros-section {
        background-image: url('imagenes/fondo1-vertical.png');
        padding-top: 40px;
        padding-bottom: 90px;
        background-size: cover;
        background-position: center top 38%;;
    }

    .nosotros-text-column {
        margin-top: 10px;
        margin-bottom: 40px !important;
        font-size: 14pt !important;
    }

    .nosotros-image-column {
        min-height: 0;
    }
}


/* ======================================= */
/* 8. SECCIÓN CARRUSEL PANADERÍA (ESTILOS BASE / DESKTOP) */
/* ======================================= */

.panaderia-section {
    padding: 0;
    position: relative;
}

.panaderia-carousel {
    height: 700px !important; /* Altura de Desktop */
    overflow: hidden;
}

/* Base de la imagen de escritorio (se usará directamente en desktop) */
.panaderia-img {
    height: 100%;
    object-fit: cover;
    object-position: center;
}


/* --------------------------------- */
/* BOTÓN DE RESERVACIÓN EN LA PANADERÍA */
/* --------------------------------- */
.panaderia-caption {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-73%); /* CENTRA VERTICALMENTE COMO EN LA IMAGEN */
    padding-left: 250px;
    width: 100%;
}
.reservation-box-panaderia {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 12px 30px;
    border-radius: 50px;
    display: inline-block;
}

.btn-reservation-panaderia {
    font-family: 'Alegreya Sans', sans-serif;
    font-weight: 900;
    font-size: 1.1rem;
    background-color: transparent;
    border: none;
    color: #333 !important;
    padding: 0;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Los controles de carrusel de panadería */
.panaderia-carousel .carousel-control-prev,
.panaderia-carousel .carousel-control-next {
    z-index: 101; /* Z-index alto para clicabilidad */
    top: 50%;
}

.panaderia-carousel .carousel-control-prev {
    left: 20px;
}

.panaderia-carousel .carousel-control-next {
    right: 20px;
}


/* ======================================= */
/* 8.1. AJUSTES ESPECÍFICOS DE PANADERÍA (Móvil) */
/* ======================================= */

@media (max-width: 768px) {
    
    /* --- 1. Ajuste de Altura y Visibilidad de Imagen --- */
    .panaderia-carousel,
    .panaderia-carousel .carousel-item {
        width: 100%;
        height: 100vh; 
        min-height: 750px; 
        
        /* 🚀 CORRECCIÓN: Usar 'cover' para que la imagen llene el espacio */
        background-size: cover; 
        
        background-position: center;
        background-repeat: no-repeat;
    }
    
    .panaderia-desktop-img {
        display: none !important; 
    }
    
    /* --- 2. CAMBIO DE IMAGEN: Cargar Versión Móvil (5 Slides) --- */
    /* ATENCIÓN: Se asume que la extensión correcta es .webp */
    .panaderia-slide-1 {
        background-image: url('imagenes/panaderia1_mobile.png'); 
    }
    .panaderia-slide-2 {
        background-image: url('imagenes/panaderia2_mobile.png');
    }
    .panaderia-slide-3 {
        background-image: url('imagenes/panaderia3_mobile.png');
    }
    .panaderia-slide-4 {
        background-image: url('imagenes/panaderia4_mobile.png');
    }
    .panaderia-slide-5 {
        background-image: url('imagenes/panaderia5_mobile.png');
    }

    /* --- 3. Títulos y Header (CLAVE: Ocultar subtítulos) --- */
    .panaderia-header {
        top: -12px;
        width: 100%;
        text-align: center;
    }
    
    .panaderia-title-main {
        font-size: 38pt !important; 
    }
    
    .panaderia-title-sub {
        display: none !important; 
    }
    
    /* ---------------------------------------------------- */
    /* --- 4. Contenedor del Botón (Posición y Anulación de Flex) --- */
    /* ---------------------------------------------------- */
    .panaderia-caption {
        /* Anulamos la altura completa y los estilos flex de Bootstrap */
        height: auto !important;
        display: block !important; 
        align-items: center !important; 
        justify-content: center !important; 
        
        top: auto;        
        bottom: 55px; /* Altura del botón */
        left: 50%;
        transform: translateX(-50%); 
        padding: 0;
        text-align: center; 
        /* Se mantiene ancho para el efecto visual */
        width: 80%; 
        max-width: 300px; 
        z-index: 999;
    }

    .reservation-box-panaderia {
        margin: 0 auto;
        display: block !important; 
        width: 100%; 
        max-width: 100%;
    }

    /* ---------------------------------------------------------- */
    /* --- 5. Flechas (Posición CLAVE: Pegadas a los bordes) --- */
    /* ---------------------------------------------------------- */
    .panaderia-carousel .carousel-control-prev,
    .panaderia-carousel .carousel-control-next {
        display: flex !important; 
        z-index: 998 !important; 
        top: auto; 
        bottom: 55px; /* Misma altura que el botón */
        margin-left: 40px;
        margin-right: 40px;
        width: 50px; 
        height: 50px;
        opacity: 1; 
        background: none; 
        position: absolute; 
    }
    
    .panaderia-carousel .carousel-control-prev {
        /* CLAVE: Pegado al borde izquierdo */
        left: 0; 
    }

    .panaderia-carousel .carousel-control-next {
        /* CLAVE: Pegado al borde derecho */
        right: 0;
    }
    
    /* Asegurar que el ícono de las flechas se vea */
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 1.5rem; 
        height: 1.5rem;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e") !important; 
    }
     /* ---------------------------------------------------------- */
    /* --- 6. ESTILO DEL BOTÓN (Como en la imagen de referencia) --- */
    /* ---------------------------------------------------------- */
    .btn-reservation-panaderia {
        color: black !important; 
        font-family: 'Alegreya Sans';
        border: none !important;
        border-radius: 50px !important; /* Bordes redondeados */
        padding: 2px -5px!important; 
        font-weight: 900!important;
        font-size: 1.1em !important;
        width: 60%; 
    }
}

/* ======================================= */
/* 9. SECCIÓN EVENTOS */
/* ======================================= */

.eventos-landing-section {
    background: radial-gradient(circle at top center, #421c00 0%, #1a0b00 50%, #000000 100%);
    background-image: url('imagenes/fondo_eventos.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    padding: 100px 100px 30px;
    color: white;
    position: relative;
    overflow: hidden;
}

.eventos-landing-container {
    position: relative;
    z-index: 2;
}

/* === ÁREA DE TEXTO (COLUMNA IZQUIERDA) === */

.eventos-text-area {
    padding-right: 25px;
}

.eventos-main-title-landing {
    font-size: 80pt;
    font-weight: 900;
    color: #FFC500;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.eventos-sub-title-landing {
    -webkit-text-stroke: 0.5px #FFC500;
    color: transparent;
    font-size: 1.2rem;
    margin-top: -5px;
    margin-bottom: 2rem;
}

.eventos-slogan {
    font-family: 'Mynerve';
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.eventos-description {
    font-size: 1.1rem;
    color: #e0e0e0;
    line-height: 1.6;
    max-width: 90%;
    margin-bottom: 2rem;
}

.btn-mas-informacion {
    background-color: #FFC500;
    color: #2e2e2e;
    font-weight: bold;
    border: none;
    padding: 0.75rem 2.5rem;
    font-size: 1.2rem;
    border-radius: 50px;
    transition: background-color 0.3s ease;
}

/* ======================================= */
/* ÁREA DE IMÁGENES (COLUMNA DERECHA) */
/* ======================================= */

.eventos-image-area {
    position: relative;
    min-height: 550px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* **ESTRUCTURA DE SUPERPOSICIÓN** */

.evento-poster,
.evento-brindis {
    /* Consolidación de estilos comunes */
    width: 250px;
    height: auto;
    position: absolute;
}

.evento-poster {
    top: 50px;
    left: 10px;
    z-index: 10;
}

.evento-brindis {
    top: 50px;
    right: 0px;
    z-index: 5;
}

/* === TEXTOS FLOTANTES Y FLECHAS === */

.floating-text {
    font-family:'Mynerve';
    font-size: 2.5rem;
    color: var(--color-amarillo-evento);
    position: absolute;
    z-index: 15;
    pointer-events: none;
}
/* Estilos de ::before se mantienen, ya que son únicos */

.celebraciones {
    top: -10px;
    right: 20px;
}
/* ... y sus ::before ... */

.musica-vivo {
    bottom: 80px;
    left: 10px;
    font-size: 2rem;
}
/* ... y sus ::before ... */

.alcohol-note {
    position: absolute;
    bottom: 90px;
    right: 10px;
    font-size: 0.8rem;
    color: #aaaaaa;
    max-width: 200px;
    text-align: right;
    z-index: 20;
}

/* ================================================= */
/* 9. AJUSTES PARA SECCIÓN EVENTOS (MÓVIL) */
/* (Flujo Visual Basado en Imagen de Referencia 9:06 PM) */
/* ================================================= */

@media (max-width: 768px) {
    
    /* --- 1. Contenedor Principal (Fondo y padding) --- */
    .eventos-landing-section {
        padding: 40px 15px 40px 15px;
        background-size: cover; 
        background-position: center top;
        min-height: 100vh; 
    }

    /* --- 2. Área de Texto (Centrado) --- */
    .eventos-text-area {
        padding-right: 0;
        text-align: center;
        margin-bottom: 20px; 
    }

    .eventos-main-title-landing {
        font-size: 46pt !important; 
        line-height: 1.1;
    }

    .eventos-sub-title-landing {
        font-size: 1rem;
        margin-top: 0;
        margin-bottom: 1.5rem;
    }

    .eventos-slogan {
        font-size: 1.8rem;
        margin-top: 1rem;
        margin-bottom: 1rem;
        color: white; 
    }

    .eventos-description {
        font-size: 1rem;
        max-width: 100%;
        margin: 0 auto 2rem auto;
    }

    /* --- 3. Botón de Acción --- */
    .btn-mas-informacion {
        font-family: 'Alegreya Sans', sans-serif !important;
        font-weight: 900;
        display: block;
        width: 60%; 
        margin: 15px auto 20px auto; 
        padding: 1rem 1rem;
        font-size: 1.1rem;
    }

    /* ------------------------------------------------------------------ */
    /* --- 4. ÁREA DE IMÁGENES: REORDENAMIENTO CON FLEXBOX (CLAVE) --- */
    /* ------------------------------------------------------------------ */
    .eventos-image-area {
        min-height: auto;
        display: flex; /* Habilitamos Flexbox */
        flex-direction: column; /* Apilamiento vertical */
        justify-content: flex-start;
        align-items: center; 
        text-align: center;
        width: 100%; 
    }
    
    /* **ANULACIÓN DE POSICIONAMIENTO ABSOLUTO para apilar** */
    .evento-poster,
    .evento-brindis {
        position: static; 
        width: 85%; 
        height: auto;
        margin: 20px auto; 
        display: block;
        z-index: auto;
    }

    /* ********** VALORES DE ORDER PARA EL FLUJO 9:06 PM ********** */
    /* Flujo: 1. Poster, 2. Música En vivo, 3. Brindis, 4. Celebraciones, 5. Nota Alcohol */

    .celebraciones {
        order: 4; /* CUARTO: Texto Celebraciones (al final de la columna de imágenes) */
    }

    .evento-poster {
        order: 1; /* PRIMERO: Imagen Junta Vecinal (Poster) */
    }

    .musica-vivo {
        order: 2; /* SEGUNDO: Música En vivo (Separador/Flecha) */
    }
    
    .evento-brindis {
        order: 3; /* TERCERO: Imagen Brindis */
    }
    
    .alcohol-note {
        order: 5; /* QUINTO: Nota de Alcohol */
    }
    /* ************************************************************ */

    /* ------------------------------------------------------------------ */
    /* --- 5. Estilos de Textos Flotantes (FLECHAS Y SIN LÍNEA PUNTEADA) --- */
    /* ------------------------------------------------------------------ */
    .floating-text {
        position: static; 
        z-index: auto;
        font-size: 1.5rem;
        margin: 30px auto 30px auto;
        display: block;
        text-align: center;
        padding: 10px 0;
        width: 80%;
        color: #FFC500; 
        font-weight: bold;
        border: none !important; /* ELIMINAR LÍNEA PUNTEADA */
    }
    
    /* Nota: Los textos 'Celebraciones' y 'Música En vivo' ahora son separadores */

    /* **FLECHA DESPUÉS DEL POSTER** (Separador Música En Vivo) */
    .musica-vivo::before { /* Usamos ::before para que la flecha quede arriba del texto */
        content: "";
        display: block;
        width: 50px; 
        height: 50px;
        /* RUTA DE LA IMAGEN DE LA FLECHA: AJUSTA 'flecha_eventos.png' si es diferente */
        background-image: url('imagenes/flecha_evento.svg'); 
        background-size: contain;
        background-repeat: no-repeat;
        margin: 0 auto 10px auto; 
        margin-left: 170px !important;
    }
    
    /* **FLECHA DESPUÉS DE LA IMAGEN DE BRINDIS** (Separador Celebraciones) */
    .celebraciones::before { /* Usamos ::before para que la flecha quede arriba del texto */
        content: "";
        display: block;
        width: 50px; 
        height: 50px;
        /* RUTA DE LA IMAGEN DE LA FLECHA: AJUSTA 'flecha_eventos.png' si es diferente */
        background-image: url('imagenes/flecha_evento.svg'); 
        background-size: contain;
        background-repeat: no-repeat;
        margin: 0 auto 10px auto; 
        margin-left: 170px !important;
    }
    
    /* Aseguramos que los otros pseudo-elementos no interfieran */
    .musica-vivo::after,
    .celebraciones::after,
    .evento-poster::after,
    .evento-brindis::after {
        content: none;
        margin: 0;
    }

    /* --- 6. Nota de Alcohol (Al final, centrado) --- */
    .alcohol-note {
        position: static; 
        width: 90%;
        margin: -30px auto 0 auto;
        text-align: center;
        font-size: 0.9rem;
        z-index: auto;
        color: #fff; 
    }
}

/* ======================================= */
/* 10. SECCIÓN QUELITE (Carrusel de Fotos - Desktop) */
/* ======================================= */

.quelite-section {
    background-color: #f7edd7; /* Fondo beige claro */
    padding: 80px 5%; /* Padding estándar para desktop */
}

/* Títulos y subtítulos por defecto (Desktop) */
.quelite-section h2.display-4 {
    font-family: 'Mynerve Regular', cursive;
    font-size: 3rem;
    color: #4a4a4a;
    text-align: center; /* Alineación por defecto para desktop si no se especifica */
}

.subtitle-text {
    color: #6c757d; 
    text-align: center;
}

/* ESTILOS DEL CARRUSEL DE TARJETAS (Desktop) */
.carousel-item-custom {
    border: none !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex: 0 0 250px;
    height: 300px;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.carousel-item-custom:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.carousel-item-custom img {
    height: calc(100% - 35px);
    width: 100%;
    object-fit: cover;
}

.carousel-item-custom .card-body {
    height: 35px;
    padding: 5px 10px !important;
    background-color: white;
    border-top: 1px solid #eee;
}

.card-text {
    font-size: 0.9em;
    font-weight: bold;
    color: #4a4a4a; 
}


/* ======================================= */
/* ESTILOS GALERÍA - EFECTO LIGHTBOX (MODAL) */
/* (Se mantienen iguales en desktop y mobile) */
/* ======================================= */

.modal-backdrop.show {
    opacity: .85 !important; 
}

#imageModal .modal-content {
    background-color: transparent; 
    border: none;
    box-shadow: none;
}

#imageModal .modal-header {
    border-bottom: none; 
    color: white; 
}

#imageModal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%); 
}

#imageModal .modal-body {
    padding: 0;
}

#modalImage {
    max-height: 90vh; 
    width: auto; 
    max-width: 100%; 
    display: block; 
    margin: 0 auto; 
}


/* ======================================= */
/* 11. SECCIÓN BANNER IMAGEN (General) */
/* ======================================= */

.image-banner-section {
    margin: 0 !important;
    padding: 0;
}

.banner-container-fixed {
    height: 100px; /* Altura de desktop */
    overflow: hidden;
}

.banner-container-fixed img {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
}


/* ======================================= */
/* 📱 MEDIA QUERY: ESTILOS SOLO PARA MÓVIL (< 992px) */
/* ======================================= */
@media (max-width: 991.98px) {
    /* -------------------------------------- */
    /* 1. SECCIÓN QUELITE (Adaptación al Boceto) */
    /* -------------------------------------- */
    .quelite-section {
        padding: 40px 0; /* Reducir padding en móvil */
    }

    /* ⚠️ Título: Estilo y alineación según el boceto móvil */
    .quelite-section h2.display-4 {
        font-size: 2.5rem; /* Tamaño ajustado para móvil */
        line-height: 1.2;
        text-align: left; /* Alineación a la izquierda */
        padding-left: 5%; 
        margin-bottom: 20px !important;
    }

    /* ⚠️ Subtítulo: Estilo y alineación según el boceto móvil */
    .subtitle-text {
        font-size: 1.1rem; 
        text-align: left; /* Alineación a la izquierda */
        line-height: 1.5;
        padding: 0 5%;
        margin-bottom: 30px !important;
    }
    
    /* ⚠️ Ocultar carrusel de tarjetas de escritorio en móvil (asumiendo clases Bootstrap en HTML) */
    /* .quelite-desktop-carousel { display: none; } */

    /* ⚠️ Estilos del Contenedor de Imagen y Navegación (para la imagen central con flechas) */
    .image-with-nav-container {
        display: flex;
        align-items: center; 
        justify-content: center;
        position: relative;
        padding: 0 5%;
    }

    .main-quelite-image {
        max-width: 90%; 
        height: auto;
        border-radius: 10px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    }
    
    /* ⚠️ Estilos de las Flechas de Navegación */
    .arrow-button {
        background: none;
        border: none;
        font-size: 2.5rem;
        color: #4a4a4a;
        cursor: pointer;
        position: absolute;
        padding: 0 10px;
        z-index: 10;
        top: 50%;
        transform: translateY(-50%);
    }

    .left-arrow {
        left: 0%;
    }

    .right-arrow {
        right: 0%;
    }


    /* -------------------------------------- */
    /* 2. SECCIÓN BANNER IMAGEN (Adaptación a Móvil) */
    /* -------------------------------------- */
    .banner-container-fixed {
        height: 80px; 
    }
    
}
/* ======================================= */
/* SECCIÓN LEALTAD - BANNER RESPONSIVO (CON BOTÓN CENTRADO) */
/* ======================================= */

.loyalty-banner-section {
    /* --- ESTILOS BASE (Comunes y Mobile First) --- */
    background-size: cover; 
    background-position: center center; 
    padding: 0; 
    margin-top: 0; 
    min-height: 110vh; /* Altura de Mobile First */
    background-image: url('imagenes/banner_lealtadmobile.webp'); 
    
    /* ¡CLAVE! Para posicionar el botón de forma absoluta respecto a la sección */
    position: relative; 
}

/* ---------------------------------- */
/* ESTILOS DEL BOTÓN DE LEALTAD (DEFAULT / DESKTOP) */
/* ---------------------------------- */
.loyalty-button {
    /* Estilos de diseño */
    display: inline-block;
    padding: 10px 25px;
    background-color: #FFEFB0;
    color: #7ccbdc; 
    text-decoration: none; 
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50px;
    transition: background-color 0.3s ease;
    
    /* Posicionamiento ABSOLUTO */
    position: absolute;
    
    /* 🔥 POSICIÓN DESKTOP (VALORES ESPECÍFICOS) 🔥 */
    left: 23%;
    top: 92%;
    
    /* Ajuste para centrarlo (Necesario porque left y top no lo centran por sí solos) */
    transform: translate(-50%, -50%); 
    
    z-index: 10;
}

.loyalty-button:hover {
    background-color: white; 
}


/* ------------------------------------------------ */
/* 1. Estilos para DESKTOP (Mayor o igual a 768px) */
/* ------------------------------------------------ */
@media (min-width: 768px) {
    .loyalty-banner-section {
        background-image: url('imagenes/banner_lealtad.webp'); 
        min-height: 900px !important; 
    }
    .loyalty-button {
        font-size: 1.5rem;
        /* La posición de left: 23% y top: 92% se mantiene */
    }
}

/* ---------------------------------------------- */
/* 2. Estilos para MOBILE (Menor a 767.98px) */
/* ---------------------------------------------- */
@media (max-width: 767.98px) {
    .loyalty-button {
        /* 🔥 NUEVO POSICIONAMIENTO EN MÓVIL 🔥 */
        
        /* Centrado Horizontal en móvil */
        left: 32%;
        
        /* Posición Vertical en móvil (Ejemplo: más arriba que el 92%) */
        top: 65%; /* Ajusta este valor (60%, 70%, 80%) según tu imagen móvil */
        
        /* Mantenemos el ajuste de tamaño y transform */
        padding: 10px 25px;
        font-size: 1.2rem;
        transform: translate(-50%, -50%);
    }
}

/* ======================================= */
/* 12. SECCIÓN POSTRES (Desktop Styling - GLOBAL) */
/* ======================================= */

.dessert-section {
    position: relative;
    display: flex;
    align-items: center;
    /* Padding para desktop (texto a la izquierda) */
    padding: 100px 5% 100px 10%; 
    min-height: 90vh; 
    color: #444; 
    overflow: hidden;
}

/* Base de Fondo (Desktop/Base) */
.dessert-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* ⚠️ IMAGEN DE FONDO */
    background-image: url('imagenes/fondo_postre1.png'); 
    background-size: cover;
    background-position: 60% center; 
    z-index: -2;
}

.menu-button {
    /* 🔥 Padding para hacerlo menos ancho y más corto (Ver menú) */
    padding: 10px 50px; 
    display: inline-block;
    background-color: #FFEFB0;
    color: #492603;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    font-size: 15pt; 
    transition: background-color 0.3s;
    margin-top: 0;
}

.menu-button:hover {
    background-color: white;
}

/* ---------------------------------- */
/* 🅰️ MOBILE: Sobrescribir estilos */
/* Usamos 991.98px para el breakpoint 'lg' de Bootstrap */
/* ---------------------------------- */
@media (max-width: 991.98px) {
    .dessert-section {
        /* Ajustamos el padding para dar espacio a tu contenido sobre la imagen */
        padding: 120px 5% 50px 5%; 
        
        /* ⚠️ CAMBIO CLAVE 1: Altura fija para controlar la imagen vertical */
        height: 100vh !important; /* O usa un valor fijo en px, ej: 800px */
        min-height: auto !important; /* Quitamos el min-height para que no se estire de más */
        
        align-items: flex-start; 
        text-align: left; 
        overflow: hidden; /* Asegura que no se salga nada del contenedor */
    }

    .dessert-section::before {
        /* ⚠️ IMAGEN 2: Mobile/Vertical */
        background-image: url('imagenes/fondo_postrecelular.png'); 
        /* Centramos la imagen en móvil */
        background-position: center center; 
    }
    /* ---------------------------------- */
    /* 🔘 ESTILOS DEL BOTÓN EN MÓVIL */
    /* ---------------------------------- */
    .menu-button {
        /* 1. Cambiamos a block para que ocupe el ancho y permita centrado con margen */
        display: block; 
        
        /* 2. Centramos horizontalmente el botón */
        margin-left: 160px;
        margin-right: auto;
        
        /* 3. Ajustamos el margen superior (para separarlo de los elementos de arriba) */
        margin-top: 45px; 
        
        /* 4. Opcional: Reducimos el padding lateral para que sea más estrecho */
        padding: 10px 30px; 

        /* Opcional: Centramos el texto dentro del botón (si no lo está ya) */
        text-align: center;
        
    }

}

/* ======================================= */
/* 13. SECCIÓN SUCURSALES (Banners Card) */
/* ======================================= */

.sucursales-container {
    padding: 0;
}

/* ⚠️ AJUSTE CLAVE: Eliminar el espacio entre el mapa y la siguiente tarjeta/imagen */
/* Esto elimina cualquier margen inferior predeterminado de Bootstrap en los rows de esta sección */
.sucursales-container .col-12.p-0 {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.sucursal-card {
    position: relative;
    color: white;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 400px;
    display: flex;
    align-items: center;
    border-radius: 0;
    overflow: hidden;
}

/* Fondos específicos */
#reforma-card {
    background-image: url('imagenes/sucursal_reforma.webp');
}

#centro-card {
    background-image: url('imagenes/sucursal_centro.webp');
    color: var(--color-texto-oscuro);
}

#plaza-card {
    background-image: url('imagenes/sucursal_plazadelvalle.webp');
    color: var(--color-texto-oscuro);
}

.card-body {
    width: 100%;
    max-width: 650px;
    padding: 3rem 2rem;
    z-index: 2;
}

.sucursal-title {
    font-size: 30pt;
    font-weight: 900;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    margin-left: 85px;
    color: white;
    white-space: nowrap !important;
}

/* Color para SUCURSAL REFORMA */
.sucursal-color-reforma {
    color: #FF8E85;
    font-weight: 900;
}

/* Color para SUCURSAL CENTRO */
.sucursal-color-centro {
    color: #BCFF60; 
    font-weight: 900;
}

/* Color para SUCURSAL PLAZA DEL VALLE */
.sucursal-color-plaza {
    color: #FF5731; 
    font-weight: 900;
    font-size: 30pt;
    white-space: nowrap !important;
}

.sucursal-info {
    font-size: 20pt;
    font-weight: 500;
    margin-bottom: 0.75rem;
    margin-left: 55px;
    display: flex;
    align-items: center;
    color: white;
}

/* 2. NUEVO ESTILO: Iconos de imagen (Reloj y Ubicación) */
.sucursal-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    vertical-align: middle;
}

/* Ajustes para el mapa */
.map-link,
.map-iframe-responsive {
    display: block;
    width: 100% !important;
    cursor: pointer;
}

.map-link img {
    width: 100%;
    height: auto;
    display: block;
}


/* ======================================= */
/* Ajustes específicos para MOBILE */
/* (Máximo 767.98px de ancho) */
/* ======================================= */
@media (max-width: 767.98px) {

    /* 🔥 CORRECCIÓN CLAVE 1: Eliminamos cualquier padding/margin horizontal en los contenedores de sucursales/mapa */
    .sucursales-container .row,
    .sucursales-container .col-12 {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100%; 
    }
    
    /* 1. SOLUCIÓN AL CORTE DE TEXTO (Plaza del Valle) */
    .sucursal-title {
        font-size: 26pt !important;       
        margin-left: 40px;     
        white-space: normal !important; 
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .sucursal-color-plaza {
        font-size: 26pt !important;       
        white-space: normal !important;   
    }

    .sucursal-info {
        /* Ajustar el margen de la información (horario, ubicación) */
        margin-left: 10px; 
    }

    /* 2. CAMBIO DE IMAGEN DE FONDO PARA CADA SUCURSAL EN MÓVIL */
    #reforma-card {
        background-image: url('imagenes/sucursal_mobile1.png'); 
        min-height: 500px;
    }

    #centro-card {
        background-image: url('imagenes/sucursal_mobile2.png');
        min-height: 550px;
    }

    #plaza-card {
        background-image: url('imagenes/sucursal_mobile3.png'); 
        color: white;
        min-height: 500px;
    }
}

/* ======================================= */
/* 14. FOOTER (MOBILE FIRST) 📱 - CORREGIDO */
/* ======================================= */

.main-footer {
    background-color: var(--color-naranja-evento); 
    color: white; 
    padding: 30px 5%;
    font-family: 'Alegreya Sans', sans-serif; 
    text-align: center;
}

.footer-content-wrapper {
    display: flex;
    flex-direction: column; 
    align-items: center; 
    max-width: 1200px;
    margin: 0 auto;
}

/* Ocultar copyright de escritorio en móvil */
.footer-copyright {
    display: none; 
}

/* --- Secciones y Separadores (Móvil) --- */
.footer-section {
    width: 100%;
    padding: 0; 
    margin: 0;
    border-bottom: none; 
    color: white;
}

/* Estilo del Divisor Corto y Centrado */
.short-divider {
    height: 1px;
    background-color: white;
    margin: 30px auto; 
    width: 60%; 
}

/* 1. Logo Section */
.logo-section {
    order: -1; 
    padding-top: 0;
    padding-bottom: 0;
}

.footer-logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 0;
}

/* 2. Links Section */
.links-section {
    padding-top: 30px;
    padding-bottom: 30px;
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav a {
    color: var(--color-texto-principal);
    font-weight: bold;
    padding: 5px 0;
    display: block;
}

/* 3. Contacto y Redes Section */
.contact-social-section {
    padding-top: 30px;
    padding-bottom: 30px; 
}

/* Contacto y Teléfono (Mobile First) */
.contact-info .contact-item {
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-bottom: 8px; 
}

.contact-info .contact-icon {
    width: 20px; 
    height: 20px;
    margin-right: 10px; 
    vertical-align: middle; 
}

.contact-info p {
    color: white;
    margin: 0; 
    font-size: 15pt;
    line-height: 1.2;
}


/* ICONOS SOCIALES (Estilos para Móvil: Dos líneas) */
.social-icons {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* 🔑 CLAVE: Permite que salten a dos líneas en móvil */
    gap: 15px; /* Espacio entre iconos */
}

.social-icon {
    width: 70px; 
    height: 70px;
    border-radius: 50%;
    background-color: var(--color-texto-principal);
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-svg {
    width: 60%; 
    height: 60%;
}

/* --- Separador y Copyright Final (Móvil) --- */
.footer-divider {
    display: none; 
    color: white;
}


/* ======================================= */
/* ESTILOS DE ESCRITORIO (Desktop) */
/* (min-width: 768px) */
/* ======================================= */
@media (min-width: 768px) {
    
    .footer-content-wrapper {
        flex-direction: row; /* Pone las secciones lado a lado */
        justify-content: space-between; /* Distribuye el espacio entre ellas */
        text-align: left; /* Alinea el contenido de cada columna a la izquierda */
        padding: 30px 0;
    }

    .short-divider {
        display: none; /* Oculta los divisores cortos en desktop */
    }

    .footer-section {
        width: 30%; /* Da espacio a cada sección */
        padding: 0 15px;
    }

    /* 1. Logo Section: No necesita grandes cambios */
    .logo-section {
        order: 0; /* Vuelve al orden normal */
    }

    /* 3. Contacto y Redes Section */

    /* 🔑 CLAVE: Desactiva el salto de línea para que todo quede en una fila */
    .social-icons {
        flex-wrap: nowrap; /* Fuerza a que los iconos estén en una sola línea */
        gap: 10px; /* Reduce un poco el espacio si es necesario */
    }

    /* 🔑 CLAVE: Alinea los iconos de teléfono/correo a la izquierda */
    .contact-info .contact-item {
        justify-content: flex-start; /* Alinea el grupo de contacto a la izquierda */
    }
}

/* ======================================= */
/* MEDIA QUERY PARA ESCRITORIO 🖥️ */
/* ======================================= */
@media (min-width: 768px) {
    .main-footer {
        padding: 50px 5%;
        text-align: left;
    }
    
    .footer-content-wrapper {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between; 
        padding-bottom: 20px;
    }
    
    /* Mostrar el Copyright principal de escritorio */
    .footer-copyright {
        display: block;
        padding-top: 10px;
        text-align: center;
    }

    /* 🧱 Quitamos las líneas cortas */
    .short-divider {
        display: none !important;
    }
    
    /* Columna 1: Logo y Copyright */
    .logo-section {
        flex-basis: 35%; 
        padding-right: 20px;
        /* Quitamos el padding de móvil */
        padding: 0;
    }

    /* Columna 2: Links */
    .links-section {
        flex-basis: 25%;
        padding-top: 0;
        border-right: 1px solid var(--color-linea-divisor); 
        color: white;
        padding-right: 40px;
        padding-left: 20px;
    }

    /* Columna 3: Contacto y Redes */
    .contact-social-section {
        flex-basis: 40%;
        padding-top: 0;
        padding-left: 40px;
        /* La información de contacto y redes deben estar alineadas */
        display: flex;
        flex-direction: column;
    }

    /* Ajuste de Contacto en Escritorio */
    .contact-info p {
        /* Poner el teléfono y email en dos líneas separadas */
        display: block; 
        justify-content: flex-start;
        margin-bottom: 5px;
        color: white;
    }
    
    /* Ajuste de Redes Sociales en Escritorio */
    .social-icons {
        justify-content: flex-start;
        margin-top: 15px;
    }

    /* Divisor largo antes del copyright */
    .footer-divider {
        display: block;
        height: 1px;
        background-color: white;
        margin: 30px auto 10px auto;
        width: 100%;
    }
}

/* ======================================= */
/* 15. MEDIA QUERIES RESPONSIVE (ORGANIZADO Y CORREGIDO) */
/* ======================================= */

/* ========================================================= */
/* 📱 GLOBAL MOBILE (max-width: 767.98px) */
/* ========================================================= */
@media (max-width: 767.98px) {

    /* Navbar */
    .navbar { height: auto; }

    /* Carrusel Principal */
    #heroCarousel {
        margin-top: 100px;
        height: calc(110vh - 100px);
        min-height: 450px;
        padding-bottom: 0;
        background-color: #333333;
    }
    .carousel-inner { height: 100%; }
    .carousel-img {
        width: 100%; height: 100%; object-fit: cover !important;
    }
    .carousel-control-prev,
    .carousel-control-next { display: none; }

    /* Botón Reserva */
    .carousel-caption {
        position: absolute;
        bottom: -280px;
        left: 50%; transform: translateX(-50%);
        width: 100%; display: flex;
        justify-content: center; align-items: flex-end;
        padding-bottom: 0; z-index: 50;
        text-align: center;
    }
    .reservation-box { padding: 10px 25px; border-radius: 40px; background-color: rgba(255,255,255,0.8); backdrop-filter: blur(4px); }
    .btn-reservation { font-size: 1rem; font-weight: 900; }

    /* WhatsApp */
    .whatsapp-float {
        bottom: 20px; right: 15px;
        width: 45px; height: 45px; z-index: 1100;
    }

    /* Nosotros */
    .nosotros-title-wrapper { top: 50px; left: 15px; }
    .nosotros-title { font-size: 10vw; }
    .nosotros-text-column { margin-top: 80px; }

    /* Footer */
    .footer-content-wrapper { flex-direction: column; }
    .logo-section,
    .links-section,
    .contact-social-section {
        flex-basis: 100%; text-align: center !important;
        padding: 20px 0; border-right: none;
        border-bottom: 1px solid var(--color-linea-divisor);
    }
    .social-icons { justify-content: center; }

    /* Banners */
    .banner-container-fixed { height: 180px; }

    /* Títulos generales */
    .carousel-caption h5 { font-size: 2.5rem; }

    /* Eventos */
    .eventos-image-area { min-height: auto; }
    .evento-poster, .evento-brindis { position: static; width: 80%; margin: 20px auto; display: block; }
    .floating-text { position: static; text-align: center; margin-top: 10px; }

    /* PANADERÍA – móvil */
    #panaderia-section {
        height: 100vh; height: 100dvh; height: 100svh;
        /* Aseguramos que no haya padding o margin en los laterales */
        padding: 0;
        margin: 0;
    }
    .panaderia-carousel,
    .panaderia-carousel .carousel-item {
        height: 100vh; height: 100dvh; height: 100svh;
    }
}


/* ========================================================= */
/* 📱 EXTRA SMALL (max-width: 575.98px) */
/* ========================================================= */
@media (max-width: 575.98px) {
    .mobile-header { padding: 10px 4%; }
    .logo { width: 50px; }

    #heroCarousel {
        margin-top: 60px;
        height: calc(110vh - 60px);
    }

    .whatsapp-float { top: 15px; right: 10px; }

    /* Nosotros */
    .nosotros-title, .floating-shadow { font-size: 2rem; }
    .nosotros-paragraph { font-size: 1.1rem; }

    /* Panadería */
    .panaderia-title-main { font-size: 30pt; }
    .panaderia-title-sub { font-size: 1.8rem; }

    /* Eventos */
    .eventos-main-title-landing { font-size: 3rem; }
    .eventos-slogan { font-size: 2rem; }
    .evento-poster, .evento-brindis { width: 150px; }
}


/* ========================================================= */
/* 📱 SM (576px–767.98px) */
/* ========================================================= */
@media (min-width: 576px) and (max-width: 767.98px) {
    .carousel-caption h5 { font-size: 3rem; }

    /* Nosotros */
    .nosotros-title, .floating-shadow { font-size: 3.5rem; }
    .nosotros-paragraph { font-size: 1.3rem; }

    /* Panadería */
    .panaderia-carousel,
    .panaderia-carousel .carousel-item {
        height: 100vh; height: 100dvh; height: 100svh;
    }
    .panaderia-title-main { font-size: 40pt; }
    .panaderia-title-sub { font-size: 2.2rem; }

    /* Eventos */
    .eventos-main-title-landing { font-size: 3.5rem; }
    .evento-poster, .evento-brindis { width: 180px; }
    .quelite-section h2.display-4 { font-size: 2.8rem; }
}


/* ========================================================= */
/* 💻 MD (768px–991.98px) */
/* ========================================================= */
@media (min-width: 768px) and (max-width: 991.98px) {
    #heroCarousel { margin-top: 100px; height: 600px; }
    .carousel-control-prev,
    .carousel-control-next { display: block; width: 50px; }

    .navbar { height: 100px; }
    .logo-img { width: 80px; }

    /* Panadería */
    .panaderia-carousel { height: 100%; } /* CORRECCIÓN: Usar 100% de la sección padre */
}


/* ========================================================= */
/* 💻 LG (min-width: 992px) */
/* ========================================================= */
@media (min-width: 992px) {
    /* Nosotros */
    .nosotros-title-wrapper { top: 40px; left: 0; }
    .nosotros-title { font-size: 6vw; }
    .nosotros-text-column { margin-top: 150px; }
    .nosotros-image-column { min-height: 500px; }

    /* Panadería */
    .panaderia-carousel { height: 100%; } /* CORRECCIÓN: Usar 100% de la sección padre */
}


/* ========================================================= */
/* 💻 XL (min-width: 1400px) */
/* ========================================================= */
@media (min-width: 1400px) {
    .nosotros-image-column { height: 700px; }
    .panaderia-caption { padding-top: 550px; }
}


