/* Banner Slider Styles */
.hero-banner {
    position: relative;
    width: 100%;
    height: 250px; /* Reducido a la mitad en desktop */
    overflow: hidden;
    background: white;
    /* MARGEN SUPERIOR PARA SEPARACIÓN DEL HEADER */
    margin-top: 100px; /* Separación para desktop */
}

.hero-banner .container {
    position: relative;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.banner-slider {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e4002b, #c10023);
    border-radius: 15px;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s ease-in-out;
}

.banner-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.banner-content {
    flex: 1;
    max-width: 50%;
    color: white;
    z-index: 2;
}

.banner-content h1 {
    font-size: 2rem; /* Reducido para banner más pequeño */
    margin-bottom: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
}

.banner-content p {
    font-size: 1rem; /* Reducido para banner más pequeño */
    margin-bottom: 1.5rem;
    opacity: 0.9;
    line-height: 1.4;
}

.banner-image {
    flex: 1;
    text-align: center;
    z-index: 2;
}

.banner-image img {
    max-width: 200px; /* Reducido para banner más pequeño */
    max-height: 200px; /* Reducido para banner más pequeño */
    object-fit: contain;
}

/* Controles del banner */
.banner-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    z-index: 3;
}

.banner-prev,
.banner-next {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px; /* Reducido */
    height: 40px; /* Reducido */
    border-radius: 50%;
    font-size: 1.2rem; /* Reducido */
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e4002b;
}

.banner-prev:hover,
.banner-next:hover {
    background: white;
    transform: scale(1.1);
}

/* Indicadores */
.banner-indicators {
    position: absolute;
    bottom: 15px; /* Ajustado para banner más pequeño */
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 3;
}

.indicator {
    width: 10px; /* Reducido */
    height: 10px; /* Reducido */
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

/* Estilos para el menú hamburguesa */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: white;
    padding: 8px;
    z-index: 1001;
}

/* Estilos para productos destacados con icono de fuego */
.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2rem;
}

.section-title h2 {
    margin: 0;
    font-size: 2.5rem;
    color: #e4002b;
}

.fire-icon {
    color: #ff6b35;
    font-size: 2rem;
}

/* RESPONSIVE - CORRECCIONES PARA SEPARACIÓN DEL HEADER */
@media (max-width: 1024px) {
    .hero-banner {
        height: 220px; /* Reducido para tablets */
        margin-top: 90px; /* Menos separación en tablets */
    }
    
    .banner-content h1 {
        font-size: 1.8rem;
    }
    
    .banner-content p {
        font-size: 0.9rem;
    }
    
    .banner-image img {
        max-width: 150px;
        max-height: 150px;
    }
}

@media (max-width: 768px) {
    /* CORRECCIÓN PRINCIPAL: Compensar el header fijo en móviles */
    .hero-banner {
        margin-top: 70px; /* Compensa el header fijo en móviles */
        height: 200px; /* Reducido para mobile */
    }
    
    .hero-banner .container {
        margin-top: 20px;
        padding: 0 15px;
        height: 150px;
    }
    
    .banner-slider {
        height: 100%;
        border-radius: 10px;
    }
    
    .banner-slide {
        flex-direction: column;
        text-align: center;
        padding: 15px 10px; /* Reducido padding */
        justify-content: center;
        align-items: center;
        gap: 15px; /* Reducido gap */
    }
    
    .banner-content {
        margin-top:35px;
        max-width: 100%;
        order: 1;
        flex: none;
    }
    
    .banner-content h1 {
        font-size: 1.3rem; /* Reducido para mobile */
        margin-bottom: 0.5rem;
        line-height: 1.2;
    }
    
    .banner-content p {
        font-size: 0.8rem; /* Reducido para mobile */
        margin-bottom: 1rem;
        line-height: 1.3;
    }
    
    .banner-image {
        order: 2;
        max-width: 100px; /* Reducido para mobile */
        margin: 0 auto;
        flex: none;
        display: none;
    }
    
    .banner-image img {
        max-width: 40px; /* Reducido para mobile */
        max-height: 40px; /* Reducido para mobile */
    }
    
    .banner-controls {
        display: none;
    }
    
    .banner-indicators {
        bottom: 10px; /* Ajustado para mobile */
    }
    
    .btn-primary {
        padding: 8px 16px; /* Reducido para mobile */
        font-size: 0.8rem; /* Reducido para mobile */
    }

    /* MENÚ HAMBURGUESA - AL LADO IZQUIERDO DEL LOGO */
    .menu-toggle {
        display: block !important;
        order: 1;
        margin-right: 15px;
    }

    /* OVERRIDE de los estilos problemáticos de styles.css */
    .header-top {
        display: flex !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        align-items: center !important;
        padding: 12px 0 !important;
        flex-wrap: nowrap !important;
    }

    .logo {
        order: 2;
        flex-shrink: 0;
        margin-right: auto;
    }

    .logo img {
        height: 45px !important;
        width: auto;
    }

    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
        display: block !important;
    }

    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav ul {
        flex-direction: column !important;
        padding: 20px;
        margin: 0;
        list-style: none;
        gap: 0 !important;
    }

    .nav ul li {
        margin: 10px 0;
    }

    .nav ul li a {
        display: block;
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
        text-decoration: none;
        color: #333 !important;
        font-weight: 500;
        transition: all 0.3s ease;
        border-radius: 0 !important;
        text-align: left;
    }

    .nav ul li a:hover {
        background: #f8f8f8;
        color: #e4002b !important;
        transform: none !important;
    }

    .header-actions {
        display: flex !important;
        align-items: center;
        gap: 15px;
        order: 3;
        margin-left: auto;
    }

    .btn-pedido {
        padding: 10px 15px !important;
        font-size: 0.8rem !important;
        white-space: nowrap;
    }

    .cart-icon {
        font-size: 20px;
    }

    /* Ajustes para la sección de productos en mobile */
    .section-title h2 {
        font-size: 2rem;
    }

    .fire-icon {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero-banner {
        
        margin-top: 60px; /* Menos margen para móviles más pequeños */
    }
    
    .banner-slide {
        padding: 10px 8px; /* Más reducido */
        gap: 10px; /* Más reducido */
    }
    
    .banner-content h1 {
        font-size: 1.1rem; /* Más reducido */
        margin-bottom: 0.4rem;
    }
    
    .banner-content p {
        font-size: 0.75rem; /* Más reducido */
        margin-bottom: 0.8rem;
    }
    
    .banner-image {
        max-width: 80px; /* Más reducido */
    }
    
    .banner-image img {
        max-width: 70px; /* Más reducido */
        max-height: 70px; /* Más reducido */
    }
    
    .banner-indicators {
        bottom: 8px; /* Más ajustado */
    }
    
    .indicator {
        width: 6px; /* Más reducido */
        height: 6px; /* Más reducido */
    }

    /* Ajustes adicionales para móviles muy pequeños */
    .nav {
        top: 60px;
    }

    .header-top {
        padding: 10px 0 !important;
    }

    .logo img {
        height: 40px !important;
    }

    .menu-toggle {
        font-size: 1.6rem;
        padding: 6px;
        margin-right: 10px;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .fire-icon {
        font-size: 1.6rem;
    }

    .header-actions {
        gap: 8px;
    }

    .btn-pedido {
        padding: 8px 12px !important;
        font-size: 0.75rem !important;
    }
}

/* Para tablets pequeñas */
@media (max-width: 1024px) and (min-width: 769px) {
    .banner-content h1 {
        font-size: 1.8rem;
    }
    
    .banner-content p {
        font-size: 0.9rem;
    }
    
    .banner-image img {
        max-width: 150px;
        max-height: 150px;
    }
}

/* Asegurar que las secciones tengan scroll-margin para anclas */
#inicio, #menu, #promociones, #locales {
    scroll-margin-top: 100px;
}

@media (max-width: 768px) {
    #inicio, #menu, #promociones, #locales {
        scroll-margin-top: 70px;
    }
}

@media (max-width: 480px) {
    #inicio, #menu, #promociones, #locales {
        scroll-margin-top: 60px;
     
    }
}

@media (max-width: 480px) {
    #inicio {
        margin-top: 60px;
        
        
    }
}