/* ===== LONCHES GEMMA - DISEÑO GASTRONÓMICO MODERNO ===== */

/* ===== LOADER STYLES ===== */
.loader_bg {
    position: fixed;
    z-index: 9999999;
    background: linear-gradient(135deg, #D2691E 0%, #8B4513 100%);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader {
    text-align: center;
}

.loader img {
    width: 200px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #D2691E;
    --secondary-color: #8B4513;
    --accent-color: #FFD700;
    --text-dark: #2C1810;
    --text-light: #F5F5DC;
    --white: #FFFFFF;
    --shadow: rgba(210, 105, 30, 0.2);
    --gradient-warm: linear-gradient(135deg, #D2691E 0%, #CD853F 50%, #DEB887 100%);
    --gradient-dark: linear-gradient(135deg, #2C1810 0%, #8B4513 100%);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: #FFF8DC;
    overflow-x: hidden;
}

/* ===== HEADER GASTRONÓMICO ===== */
.header {
    background: var(--gradient-dark) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 2px solid var(--accent-color);
}

.header.scrolled {
    padding: 10px 0;
    background: rgba(44, 24, 16, 0.95) !important;
}

.navbar-nav .nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 12px 20px !important;
    margin: 0 5px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-warm);
    transition: left 0.3s ease;
    z-index: -1;
    border-radius: 25px;
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before {
    left: 0;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--white) !important;
    transform: translateY(-2px);
}

.logo img {
    height: 60px !important;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.1) rotate(-2deg);
}

/* ===== HERO SECTION ESPECTACULAR ===== */
.hero-food {
    min-height: 100vh;
    background: var(--gradient-warm);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 80px;
}

.hero-food::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grain" patternUnits="userSpaceOnUse" width="100" height="100"><circle cx="50" cy="50" r="1" fill="%23FFF" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    z-index: 2;
    position: relative;
    text-align: center;
    padding: 60px 0;
}

.hero-title {
    font-size: 4.5rem !important;
    font-weight: 800 !important;
    color: var(--white) !important;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px !important;
    letter-spacing: 2px;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.8rem !important;
    color: var(--text-light) !important;
    font-weight: 300 !important;
    margin-bottom: 30px !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-description {
    font-size: 1.2rem !important;
    color: var(--text-light) !important;
    max-width: 600px;
    margin: 0 auto 40px auto !important;
    line-height: 1.8;
    animation: fadeInUp 1s ease 0.4s both;
}

/* Botones héroe espectaculares */
.hero-buttons {
    animation: fadeInUp 1s ease 0.6s both;
}

.btn-hero {
    display: inline-block;
    padding: 18px 40px;
    margin: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-primary-hero {
    background: var(--accent-color);
    color: var(--text-dark);
}

.btn-secondary-hero {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.btn-primary-hero:hover {
    background: #FFA500;
    color: var(--text-dark);
}

.btn-secondary-hero:hover {
    background: var(--white);
    color: var(--text-dark);
}

/* ===== SECCIÓN DE LONCHES DESTACADOS ===== */
.lonches-featured {
    padding: 100px 0;
    background: var(--white);
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
}

.section-title h2 {
    font-size: 3.5rem !important;
    font-weight: 700 !important;
    color: var(--text-dark) !important;
    margin-bottom: 20px !important;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
}

.section-title p {
    font-size: 1.3rem !important;
    color: #666 !important;
    max-width: 700px;
    margin: 0 auto !important;
    line-height: 1.8;
}

/* Cards de lonches espectaculares */
.lonche-card {
    background: var(--white);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    margin-bottom: 40px;
    position: relative;
}

.lonche-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-warm);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.lonche-card:hover::before {
    opacity: 0.05;
}

.lonche-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 70px rgba(210, 105, 30, 0.2);
}

.lonche-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
}

.lonche-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    filter: brightness(0.9);
}

.lonche-card:hover .lonche-image img {
    transform: scale(1.1);
    filter: brightness(1);
}

.lonche-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent-color);
    color: var(--text-dark);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 2;
}

.lonche-content {
    padding: 30px;
    position: relative;
    z-index: 2;
}

.lonche-content h3 {
    font-size: 1.8rem !important;
    font-weight: 600 !important;
    color: var(--text-dark) !important;
    margin-bottom: 15px !important;
}

.lonche-content p {
    color: #666 !important;
    font-size: 1rem !important;
    line-height: 1.7;
    margin-bottom: 25px !important;
}

.lonche-price {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: var(--primary-color) !important;
    margin-bottom: 20px !important;
}

.btn-lonche {
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-lonche:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(210, 105, 30, 0.3);
}

/* ===== SECCIÓN ESPECIALIDADES ===== */
.specialties {
    padding: 100px 0;
    background: var(--gradient-warm);
    position: relative;
}

.specialties::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>');
}

.specialty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.specialty-item {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.specialty-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    background: var(--white);
}

.specialty-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 25px auto;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.specialty-item:hover .specialty-icon {
    transform: scale(1.1) rotate(5deg);
}

.specialty-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== WHATSAPP BUTTON MEJORADO ===== */
.whatsapp-float {
    position: fixed;
    width: 70px;
    height: 70px;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 35px;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: whatsappPulse 2s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.whatsapp-float:hover {
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.5);
    animation: none;
}

@keyframes whatsappPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ===== ANIMACIONES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== FOOTER GASTRONÓMICO ===== */
.footer-food {
    background: var(--gradient-dark);
    color: var(--text-light);
    padding: 80px 0 30px 0;
    position: relative;
}

.footer-food::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-warm);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--accent-color) !important;
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    margin-bottom: 20px !important;
}

.footer-section p, .footer-section li {
    color: var(--text-light) !important;
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--accent-color);
    color: var(--text-dark);
    transform: translateY(-3px);
}

/* ===== RESPONSIVIDAD ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.4rem !important;
    }
    
    .section-title h2 {
        font-size: 2.5rem !important;
    }
    
    .specialty-grid {
        grid-template-columns: 1fr;
    }
    
    .lonche-image {
        height: 250px;
    }
    
    .hero-buttons .btn-hero {
        display: block;
        margin: 10px auto;
        width: 80%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 40px 20px;
    }
    
    .lonches-featured {
        padding: 60px 0;
    }
    
    .specialties {
        padding: 60px 0;
    }
    
    .specialty-item {
        padding: 30px 20px;
    }
}

/* Efectos adicionales de comida */
.food-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Elemento visual de decoración */
.decoration-element {
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.1;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}