:root {
    --bg-main: #FAFAF7; 
    --text-main: #1D1D1F; 
    --text-muted: #86868B;
    --soft-green: #9CB495; 
    --soft-green-light: #EBF1EA;
    --soft-orange: #EBA87A;
    --soft-orange-light: #FDF3EC;
    --wsp-color: #25D366;
    --radius-lg: 24px;
    --shadow-soft: 0 20px 40px rgba(0,0,0,0.06);
    --shadow-hover: 0 30px 60px rgba(0,0,0,0.12);
    --footer-bg: #EAE6DF; 
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; -webkit-font-smoothing: antialiased; }
body { background-color: var(--bg-main); color: var(--text-main); overflow-x: hidden; }

/* Navbar */
.navbar { position: fixed; top: 0; width: 100%; padding: 1.2rem 5%; display: flex; justify-content: space-between; align-items: center; background: rgba(29, 29, 31, 0.85); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); z-index: 1000; }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.2rem; color: #fff; }
.logo-img { height: 36px; border-radius: 50%; }
.nav-links { list-style: none; display: flex; gap: 2rem; }
.nav-links a { color: #F5F5F7; text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.3s ease; }
.nav-links a:hover { color: var(--soft-orange); }
.menu-toggle { display: none; color: #fff; font-size: 1.5rem; }

/* Language Switcher Navbar */
.lang-switch { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.1); padding: 6px 12px; border-radius: 20px; }
.lang-btn { background: none; border: none; color: #888; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: color 0.3s; }
.lang-btn.active, .lang-btn:hover { color: #fff; }
.lang-sep { color: #555; font-size: 0.8rem; }

/* Hero */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 5%; background: linear-gradient(135deg, var(--soft-green-light) 0%, var(--bg-main) 100%); overflow: hidden; }
.hero-content { position: relative; z-index: 10; max-width: 800px; }
.tagline { display: inline-block; color: var(--soft-green); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 1rem; }
.hero-content h1 { font-size: clamp(3.5rem, 8vw, 6rem); font-weight: 700; line-height: 1.05; letter-spacing: -2px; margin-bottom: 1.5rem; color: var(--text-main); }
.hero-content p { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 2.5rem; }
.btn-hero { display: inline-flex; align-items: center; gap: 8px; padding: 1rem 2rem; background-color: var(--text-main); color: #fff; text-decoration: none; border-radius: 100px; font-weight: 500; transition: all 0.3s ease; }
.btn-hero:hover { background-color: var(--soft-green); transform: translateY(-2px); }

/* Generales */
.section { padding: 6rem 5%; }
.bg-light-green { background-color: var(--soft-green-light); }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-size: 2.5rem; font-weight: 700; letter-spacing: -1px; margin-bottom: 0.5rem; }

/* Swiper */
.swiper { width: 100%; padding: 2rem 0 4rem 0; }
.swiper-slide { width: 320px; }
.product-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); }
.product-card .img-container { height: 350px; overflow: hidden; }
.product-card img { width: 100%; height: 100%; object-fit: cover; }
.card-info { padding: 2rem; }
.card-info h3 { font-size: 1.4rem; margin-bottom: 0.5rem; letter-spacing: -0.5px; }
.card-info .ingredients { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.4; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 100px; font-size: 0.75rem; font-weight: 600; }
.badge-orange { background: var(--soft-orange-light); color: #C67843; }
.badge-green { background: var(--soft-green-light); color: #6D8763; }

/* Botones */
.btn-open-modal { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 0.9rem; background-color: var(--bg-main); color: var(--text-main); border: 1px solid #E5E5EA; border-radius: 100px; font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: all 0.3s ease; }
.btn-open-modal:hover { background-color: var(--text-main); color: #fff; }

/* Grid Cards (Pies / Catering) */
.grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 3rem; max-width: 1200px; margin: 0 auto; }
.product-card-flat { background: #fff; border-radius: var(--radius-lg); padding: 1.5rem; display: flex; gap: 2rem; align-items: center; box-shadow: var(--shadow-soft); transition: transform 0.4s ease; }
.product-card-flat:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }
.product-card-flat img { width: 160px; height: 160px; border-radius: 16px; object-fit: cover; }
.card-flat-info { flex: 1; }
.card-flat-info h3 { font-size: 1.5rem; margin-bottom: 0.5rem; letter-spacing: -0.5px; }
.card-flat-info .desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.action-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.price { font-weight: 600; font-size: 1rem; }
.btn-icon { border:none; display: flex; align-items: center; gap: 6px; padding: 0.6rem 1.2rem; background: var(--text-main); color: #fff; border-radius: 100px; font-size: 0.85rem; font-weight: 500; cursor: pointer; transition: 0.3s; }
.btn-icon:hover { background: var(--soft-orange); }

/* Catering Premium Section */
.section-dark { background-color: #111113; position: relative; overflow: hidden; }
.catering-bg { position: absolute; width: 100%; height: 100%; top: 0; left: 0; background: radial-gradient(circle at right, rgba(235, 168, 122, 0.1) 0%, transparent 60%); pointer-events: none; }
.product-card-premium { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-lg); overflow: hidden; backdrop-filter: blur(10px); display: flex; flex-direction: column; transition: transform 0.4s; }
.product-card-premium:hover { transform: translateY(-5px); border-color: var(--soft-orange); }
.premium-img { height: 250px; background-size: cover; background-position: center; }
.premium-info { padding: 2rem; color: #fff; }
.premium-info h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.premium-info p { font-size: 0.9rem; color: #999; margin-bottom: 1.5rem; }
.btn-premium { background: var(--soft-orange); color: #111; border: none; padding: 0.6rem 1.5rem; border-radius: 100px; font-weight: 600; cursor: pointer; transition: 0.3s; }
.btn-premium:hover { background: #fff; color: #000; }

/* ==========================================
   MODAL APP-LIKE
   ========================================== */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 2000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-content { background: #fff; width: 90%; max-width: 450px; border-radius: var(--radius-lg); padding: 2.2rem 2rem 2rem 2rem; position: relative; transform: translateY(50px) scale(0.95); transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1); box-shadow: 0 40px 80px rgba(0,0,0,0.2); }
.modal-overlay.active .modal-content { transform: translateY(0) scale(1); }

.close-modal { position: absolute; top: 1.2rem; right: 1.2rem; background: #F5F5F7; border: none; width: 32px; height: 32px; border-radius: 50%; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-muted); transition: all 0.2s ease; z-index: 10; }
.close-modal:hover { background: #E5E5EA; color: var(--text-main); transform: scale(1.05); }

.modal-header { display: flex; gap: 1.2rem; align-items: flex-start; margin-bottom: 1.8rem; }
.modal-header img { width: 75px; height: 75px; border-radius: 16px; object-fit: cover; flex-shrink: 0; }
.modal-title-area { flex: 1; padding-right: 35px; }
.modal-title-area h2 { font-size: 1.25rem; letter-spacing: -0.5px; margin-bottom: 4px; line-height: 1.25; }
.modal-body label { display: block; font-size: 0.9rem; font-weight: 500; margin-bottom: 0.5rem; color: var(--text-muted); }

.custom-select-wrapper { position: relative; margin-bottom: 1.5rem; }
.custom-select-wrapper select { width: 100%; appearance: none; background: #F5F5F7; border: 1px solid #E5E5EA; padding: 1rem; border-radius: 14px; font-size: 0.95rem; color: var(--text-main); font-weight: 500; cursor: pointer; outline: none; }
.custom-select-wrapper i { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }

.price-display { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.2rem; background: var(--soft-green-light); border-radius: 14px; margin-bottom: 1.8rem; }
.price-display span { font-size: 0.9rem; color: #555; }
.price-display h3 { font-size: 1.25rem; color: var(--text-main); font-weight: 700; }

.btn-wsp-app { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 1rem; background-color: var(--wsp-color); color: #fff; text-decoration: none; border-radius: 100px; font-weight: 600; font-size: 1rem; transition: transform 0.2s, box-shadow 0.2s; }
.btn-wsp-app:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3); }

#modal-alergias { margin-top: 6px; line-height: 1.3; }

/* ==========================================
   WELCOME SCREEN (Glassmorphism + No FOUC)
   ========================================== */
.welcome-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(250, 250, 247, 0.7); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); z-index: 9999; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.6s; }
.welcome-overlay.show-welcome { opacity: 1; visibility: visible; pointer-events: auto; }
.welcome-content { text-align: center; background: #fff; padding: 3.5rem 3rem; border-radius: var(--radius-lg); box-shadow: 0 40px 80px rgba(0,0,0,0.1); transform: translateY(-40px) scale(0.95); transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); max-width: 90%; width: 420px; border: 1px solid rgba(255,255,255,0.8); }
.welcome-overlay.show-welcome .welcome-content { transform: translateY(0) scale(1); }
.welcome-logo { width: 75px; height: 75px; border-radius: 50%; margin-bottom: 1.5rem; box-shadow: 0 10px 20px rgba(0,0,0,0.08); }
.welcome-title { font-size: 1.6rem; font-weight: 700; color: var(--text-main); margin-bottom: 0.5rem; letter-spacing: -0.5px; }
.welcome-subtitle { color: var(--text-muted); margin-bottom: 2.5rem; line-height: 1.5; font-size: 0.95rem; font-weight: 500; }
.welcome-buttons { display: flex; flex-direction: column; gap: 1rem; }
.btn-lang-select { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; padding: 1.1rem; background: #F5F5F7; border: 2px solid transparent; border-radius: 16px; font-size: 1.05rem; font-weight: 600; color: var(--text-main); cursor: pointer; transition: all 0.3s ease; }
.btn-lang-select:hover { background: #fff; border-color: var(--soft-green); box-shadow: 0 10px 25px rgba(156, 180, 149, 0.25); transform: translateY(-2px); }
.lang-flag { font-size: 1.4rem; }

/* Animaciones */
.reveal-on-scroll { opacity: 0; transform: translateY(30px); transition: all 1s cubic-bezier(0.5, 0, 0, 1); }
.reveal-3d { opacity: 0; transform: translateY(50px) rotateX(-15deg); transform-origin: top; transition: all 1.2s cubic-bezier(0.25, 1, 0.5, 1); }
.reveal-visible { opacity: 1; transform: translateY(0) rotateX(0); }
.delay-1 { transition-delay: 0.2s; }

/* Footer */
.footer { background-color: var(--footer-bg); padding: 5rem 5%; border-top: 1px solid #D5D1C8; }
.footer-content { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 2rem; }
.dark-text { color: #1D1D1F; font-weight: 700; font-size: 1.2rem; }
.contact-info p { color: #4A4A4F; font-weight: 500; display: flex; align-items: center; gap: 8px; margin-bottom: 0.5rem; }

@media (max-width: 900px) { .product-card-flat { flex-direction: column; text-align: center; } .product-card-flat img { width: 100%; height: 250px; } .action-row { flex-direction: column; gap: 1rem; } }
@media (max-width: 768px) { .nav-links { display: none; } .hero-content h1 { font-size: 3rem; } .welcome-content { padding: 2.5rem 2rem; } }