/* ===== ESTILOS ESPECÍFICOS PARA INDEX.HTML ===== */

/* ===== HERO SECTION ===== */
.hero {
    border-bottom: 2px solid black;
    min-height: 950px;
    background: linear-gradient(135deg, var(--background-color) 0%, #e8e5e1 100%);
    position: relative;
    overflow: hidden;
}

.hero__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100%;
    min-height: 950px;
}

.hero__title {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-xxl);
    font-size: clamp(4rem, 8vw, 8rem);
    line-height: 1;
    letter-spacing: 9px;
    background: #1E1E1C;
    background-clip: text;
}

@keyframes titleGlow {
    0% {
        filter: drop-shadow(0 0 5px rgba(231, 53, 44, 0.3));
    }

    100% {
        filter: drop-shadow(0 0 20px rgba(231, 53, 44, 0.6));
    }
}

/* ===== CAROUSEL ===== */
.hero__carousel {
    position: relative;
    border-left: var(--border-width) var(--border-style);
    overflow: hidden;
}

.carousel {
    width: 100%;
    height: 100%;
    position: relative;
}

.slidecarousel {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.8s ease-in-out;
}

.slidecarousel.active {
    display: block;
    opacity: 1;
}

.slidecarousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.slidecarousel:hover img {
    transform: scale(1.05);
}

/* Indicadores del carousel */
.carousel::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
    animation: carouselProgress 3.5s linear infinite;
}

@keyframes carouselProgress {
    0% {
        width: 0;
    }

    100% {
        width: 60px;
    }
}

/* ===== SECCIÓN DE COMIDA ===== */
.food {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-bottom: var(--border-width) var(--border-style);
}

.food h2 {
    text-align: center;
    font-size: 2rem;
    padding: var(--spacing-md);
    transition: all var(--transition-medium);
}

.food a {
    color: var(--text-dark);
    text-decoration: none;
    display: block;
    height: 100%;
    transition: all var(--transition-medium);
}

.food1,
.food2,
.food3,
.food4,
.food5 {
    border-bottom: var(--border-width) var(--border-style);
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-medium);
    background: #D2C4B3;
}

.food2,
.food3,
.food4,
.food5 {
    border-left: var(--border-width) var(--border-style);
}

.food1:hover,
.food2:hover,
.food3:hover,
.food4:hover,
.food5:hover {
    transform: translateY(-5px);
    background: #F2EFEB;
}

.food1:hover h2,
.food2:hover h2,
.food3:hover h2,
.food4:hover h2,
.food5:hover h2 {
    color: var(--primary-color);
    transform: scale(1.05);
}

/* ===== BANNERS - VERSIÓN COMPACTA ===== */
.banner1 {
    background-color: var(--secondary-color);
    color: var(--text-light);
    border-bottom: var(--border-width) var(--border-style);
    padding: var(--spacing-lg) 0;
    /* Reducido de xxl a lg */
}

.bg_banner1_1 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    /* Cambio proporción para dar más espacio al texto */
    gap: var(--spacing-lg);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.texto_banner1 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    /* Cambio a flex-start para alineación izquierda */
    text-align: left;
    /* Cambio a left */
}

.texto_banner1 p {
    font-size: 1.2rem;
    /* Reducido de 1.7rem */
    line-height: 1.4;
    margin-bottom: var(--spacing-md);
    /* Reducido de xl a md */
    max-width: 100%;
}

/* ===== BOTONES HORIZONTALES COMPACTOS ===== */
.order-buttons-container {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    margin: 25px 0;
    flex-direction: row;
}

.btn-takeaway,
.btn-delivery {
    flex: 1;
    max-width: 200px;
    min-width: 180px;
    padding: 18px 24px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
}

.btn-takeaway {
    background: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
}

.btn-takeaway:hover {
    background: #d12e25;
    transform: translateY(-1px);
}

.btn-delivery {
    background: transparent;
    color: var(--text-light);
    border-color: var(--text-light);
}

.btn-delivery:hover {
    background: var(--text-light);
    color: var(--secondary-color);
    transform: translateY(-1px);
}

/* Nota de delivery más discreta */
.delivery-note {
    font-size: 0.75rem;
    /* Mucho más pequeño */
    margin-top: 8px;
    color: rgba(242, 239, 235, 0.7);
    font-style: italic;
    text-align: left;
}

.map-container {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: transform var(--transition-medium);
    height: 250px;
    /* Altura fija más pequeña */
}

.map-container:hover {
    transform: scale(1.02);
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 100%;
}

.banner2 {
    background: linear-gradient(135deg, var(--background-color) 0%, #e8e5e1 100%);
    padding: var(--spacing-lg) 0;
    /* Reducido de xxl */
    text-align: center;
}

.bg_banner2_2 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.bg_banner2_2 p {
    font-size: 1.3rem;
    /* Reducido de 1.7rem */
    line-height: 1.4;
    margin-bottom: var(--spacing-lg);
    /* Reducido de xl */
    color: var(--text-dark);
}

/* ===== RESPONSIVE DESIGN ESPECÍFICO ===== */
@media (max-width: 1440px) {
    .hero__title {
        font-size: 5.4rem;
        line-height: 1.2;
        letter-spacing: 4px;
    }

    .bg_banner1_1 {
        gap: var(--spacing-md);
        /* Reducido */
    }

    .map-container {
        height: 220px;
        /* Reducido */
    }

    .texto_banner1 p,
    .bg_banner2_2 p {
        font-size: 1.1rem;
        /* Reducido */
    }
}

@media (max-width: 810px) {
    .hero {
        min-height: auto;
    }

    .hero__content {
        display: flex;
        flex-direction: column;
        min-height: auto;
    }

    .hero__carousel {
        order: 1;
        border-left: none;
        border-bottom: var(--border-width) var(--border-style);
        min-height: 350px;
        height: 50vh;
        max-height: 450px;
    }

    .hero__title {
        order: 2;
        font-size: 3rem;
        line-height: 1.1;
        letter-spacing: 2px;
        padding: var(--spacing-xl) var(--spacing-md);
        background: var(--background-color);
    }

    .food {
        grid-template-columns: 1fr;
    }

    .food2,
    .food3,
    .food4,
    .food5 {
        border-left: none;
    }

    .bg_banner1_1 {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-md);
    }

    .texto_banner1 {
        align-items: center;
        text-align: center;
    }

    .order-buttons-container {
        justify-content: center;
        flex-direction: row;
        max-width: 300px;
        margin: 0 auto;
        gap: 8px;
    }

    .btn-takeaway,
    .btn-delivery {
        flex: 1;
        padding: 8px 12px;
        font-size: 11px;
        min-width: auto;
        max-width: 140px;
    }

    .texto_banner1 p {
        font-size: 1rem;
        margin-bottom: var(--spacing-sm);
    }

    .map-container {
        height: 180px;
        /* Más pequeño en móvil */
    }

    .bg_banner2_2 p {
        font-size: 1rem;
        margin: var(--spacing-sm);
    }

    .delivery-note {
        font-size: 0.7rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero__carousel {
        min-height: 300px;
        height: 45vh;
        max-height: 400px;
    }

    .hero__title {
        font-size: 2.5rem;
        padding: var(--spacing-lg) var(--spacing-sm);
        letter-spacing: 1px;
    }

    .food1,
    .food2,
    .food3,
    .food4,
    .food5 {
        padding: var(--spacing-lg) var(--spacing-sm);
    }

    .food h2 {
        font-size: 1.5rem;
    }

    .order-buttons-container {
        max-width: 280px;
        gap: 6px;
    }

    .btn-takeaway,
    .btn-delivery {
        padding: 7px 10px;
        font-size: 10px;
        max-width: 130px;
    }

    .texto_banner1 p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .map-container {
        height: 160px;
    }

    .bg_banner2_2 p {
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {
    .hero__carousel {
        min-height: 250px;
        height: 40vh;
        max-height: 350px;
    }

    .hero__title {
        font-size: 2.2rem;
        padding: var(--spacing-md) var(--spacing-sm);
    }
}

/* ===== AJUSTE DEL WARNING SLIDER ===== */
@media (max-width: 810px) {
    .slider {
        margin-top: 0;
    }
}

/* ===== ANIMACIONES MEJORADAS PARA MÓVIL ===== */
@media (max-width: 810px) {
    .hero__carousel {
        animation: fadeInDown 0.8s ease-out;
    }

    .hero__title {
        animation: fadeInUp 0.8s ease-out 0.3s both;
    }

    @keyframes fadeInDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* ===== MEJORAS VISUALES ===== */
@media (max-width: 810px) {
    .hero__title {
        font-weight: 800;
        text-transform: uppercase;
        color: var(--text-dark);
        position: relative;
    }
}

/* ===== INDICADORES DEL CAROUSEL EN MÓVIL ===== */
@media (max-width: 810px) {
    .carousel::after {
        bottom: 10px;
        width: 40px;
    }
}

/* ===== ANIMACIONES ESPECÍFICAS ===== */
.food1,
.food2,
.food3,
.food4,
.food5 {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: calc(var(--index, 0) * 0.1s);
}

.food1 {
    --index: 0;
}

.food2 {
    --index: 1;
}

.food3 {
    --index: 2;
}

.food4 {
    --index: 3;
}

.food5 {
    --index: 4;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== EFECTOS DE PARALLAX SUTIL ===== */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(231, 53, 44, 0.03) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* ===== LOADING STATES ESPECÍFICOS ===== */
.slidecarousel img {
    transition: opacity 0.3s ease;
}

.slidecarousel img[loading="lazy"] {
    opacity: 0;
}

.slidecarousel img.loaded {
    opacity: 1;
}

/* ===== CSS OVERRIDE FIX - AGREGAR AL FINAL DE index.css ===== */

/* Forzar estilos de botones horizontales con mayor especificidad */
.banner1 .order-buttons-container {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
    justify-content: flex-start !important;
    margin: 20px 0 !important;
    align-items: center !important;
}

.banner1 .btn-takeaway,
.banner1 .btn-delivery {
    flex: 1 !important;
    min-width: 200px !important;
    width: auto !important;
    height: auto !important;
    padding: 10px 35px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    border-radius: 20px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid transparent !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    white-space: nowrap !important;
    margin: 0 !important;
    position: relative !important;
    overflow: visible !important;
}

.banner1 .btn-takeaway {
    background: var(--primary-color) !important;
    color: var(--text-light) !important;
    border-color: var(--primary-color) !important;
}

.banner1 .btn-takeaway:hover {
    background: #d12e25 !important;
    transform: translateY(-1px) !important;
}

.banner1 .btn-delivery {
    background: transparent !important;
    color: var(--text-light) !important;
    border-color: var(--text-light) !important;
}

.banner1 .btn-delivery:hover {
    background: var(--text-light) !important;
    color: var(--secondary-color) !important;
    transform: translateY(-1px) !important;
}

/* Asegurar que los spans dentro de los botones también tengan el estilo correcto */
.banner1 .btn-takeaway span,
.banner1 .btn-delivery span {
    padding: 0 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: inherit !important;
    z-index: 2 !important;
    position: relative !important;
    transition: all 0.3s ease !important;
    width: auto !important;
    text-align: center !important;
}

/* Reset de cualquier estilo conflictivo */
.banner1 .order-buttons-container .btn-takeaway::after,
.banner1 .order-buttons-container .btn-delivery::after {
    display: none !important;
}

/* ===== RESPONSIVE MÓVIL CON MAYOR ESPECIFICIDAD ===== */
@media (max-width: 810px) {
    .banner1 .order-buttons-container {
        justify-content: center !important;
        flex-direction: row !important;
        max-width: 300px !important;
        margin: 0 auto !important;
        gap: 8px !important;
    }

    .banner1 .btn-takeaway,
    .banner1 .btn-delivery {
        flex: 1 !important;
        padding: 8px 12px !important;
        font-size: 11px !important;
        min-width: auto !important;
        max-width: 140px !important;
        height: auto !important;
        width: auto !important;
    }

    .banner1 .btn-takeaway span,
    .banner1 .btn-delivery span {
        font-size: 11px !important;
        padding: 0 !important;
    }
}

@media (max-width: 480px) {
    .banner1 .order-buttons-container {
        max-width: 280px !important;
        gap: 6px !important;
    }

    .banner1 .btn-takeaway,
    .banner1 .btn-delivery {
        padding: 7px 10px !important;
        font-size: 10px !important;
        max-width: 130px !important;
    }

    .banner1 .btn-takeaway span,
    .banner1 .btn-delivery span {
        font-size: 10px !important;
    }
}

/* ===== BADGES NEW! PARA MENÚ ===== */

/* Badge absoluto (esquina superior derecha) */
.menu-item__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #E7352C;
    color: #F2EFEB;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(231, 53, 44, 0.3);
    animation: pulseNew 2s ease-in-out infinite;
    line-height: 1;
}

/* Badge inline (al lado del título) */
.menu-item__title-badge {
    display: inline-block;
    background: #E7352C;
    color: #F2EFEB;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-left: 8px;
    vertical-align: middle;
    position: relative;
    top: -1px;
    box-shadow: 0 1px 3px rgba(231, 53, 44, 0.4);
    animation: sparkle 3s ease-in-out infinite;
}

/* Animaciones */
@keyframes pulseNew {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 6px rgba(231, 53, 44, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 3px 12px rgba(231, 53, 44, 0.5);
    }
}

@keyframes sparkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.02);
    }
}

/* Responsive */
@media (max-width: 810px) {
    .menu-item__title-badge {
        font-size: 0.55rem;
        padding: 1px 4px;
        margin-left: 6px;
    }
    
    .menu-item__badge {
        font-size: 0.6rem;
        padding: 3px 6px;
        top: 8px;
        right: 8px;
    }
}
