/* Mobile-First CSS Architecture */
:root {
    --primary-color: #2d4837; /* Dark Green */
    --secondary-color: #eacb3e; /* Yellow */
    --text-color: #333333;
    --light-bg: #f9f9f9;
    --white: #ffffff;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Nunito', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.text-center { text-align: center; }
.text-white { color: var(--white) !important; }
.text-white-opacity { color: rgba(255,255,255,0.9) !important; }
.w-100 { width: 100%; }
.border-0 { border: none !important; }

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

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

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
    width: 100%; /* Mobile first: full width button */
    display: block;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.95rem;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar (Mobile First) */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: transparent;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 40px;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    display: block; /* Visible on mobile */
}

.nav-menu {
    display: none; /* Hidden by default on mobile */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    padding: 20px 0;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    animation: slideDown 0.3s ease;
}

.nav-menu.active {
    display: block;
}

.nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.nav-links li a.nav-item {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Sections Base */
section {
    padding: 60px 0; /* Smaller padding for mobile */
}

.section-title {
    font-size: 2rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.section-title.text-left::after {
    left: 0;
    transform: none;
}

.section-subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 40px;
}

/* Bulletproof Mobile Background Images */
.section-bg-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
}

.section-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.opacity-bg {
    opacity: 0.3; /* Adjusted for better visibility */
}


/* Hero Section (Mobile First - No fixed parallax for safety) */
.hero {
    position: relative;
    min-height: auto; /* Allow content to dictate height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; /* Contain absolute image */
    padding-top: 100px; /* Offset for navbar */
    padding-bottom: 60px; /* Space for the endorsement overlap */
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0,0,0,0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 15px;
}

.hero-title {
    font-size: 2.5rem; /* Smaller for mobile */
    color: var(--white);
    margin-bottom: 15px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 30px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

/* Endorsement */
.endorsement {
    background-color: var(--light-bg);
    padding: 40px 0;
}

.endorsement-content {
    background-color: var(--white);
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-top: -30px; /* Pull up slightly */
    position: relative;
    z-index: 10;
    text-align: center;
    width: 100%;
}

.endorsement-logo {
    max-width: 150px;
    height: auto;
    margin: 0 auto 15px;
    display: block;
}

.endorsement h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Showcase (El equilibrio perfecto) */
.showcase {
    position: relative;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0;
    overflow: hidden;
}

.showcase-container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.slider-item {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slider-controls {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.slider-btn {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    padding: 8px 25px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.slider-btn.active, .slider-btn:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--secondary-color);
}

.showcase-image-wrapper, .showcase-text {
    width: 100%;
}

.showcase-img {
    width: 100%;
    border-radius: 15px;
    border: 4px solid var(--secondary-color);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.showcase-text .section-title {
    color: var(--secondary-color);
}

.showcase-text .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.showcase-intro {
    font-size: 1.05rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.benefit-card-inline {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    border-left: 4px solid var(--secondary-color);
}

.benefit-card-inline h3 {
    color: var(--secondary-color);
    margin-bottom: 5px;
    font-size: 1.2rem;
}

/* Features Grid */
.features {
    background-color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr; /* 1 col on mobile */
    gap: 30px;
}

.feature-box {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    text-align: center;
    border-bottom: 4px solid var(--primary-color);
}

.icon-circle {
    width: 70px;
    height: 70px;
    background-color: rgba(234, 203, 62, 0.2);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 15px;
}

.feature-box h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

/* About Section */
.about {
    background-color: var(--light-bg);
}

.about-container {
    display: flex;
    flex-direction: column; /* Stack on mobile */
    gap: 40px;
    text-align: center;
}
.about-text, .about-image-wrapper {
    width: 100%;
}
.about-text .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.features-list { margin-top: 25px; }
.features-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--primary-color);
}

.features-list i { color: var(--secondary-color); font-size: 1.2rem; }

.image-frame {
    position: relative;
    border-radius: 15px;
    margin-top: 20px;
}
.image-frame::before {
    content: '';
    position: absolute;
    top: -15px; left: -15px; right: 15px; bottom: 15px;
    background-color: var(--secondary-color);
    border-radius: 15px;
    z-index: 0;
}
.img-responsive {
    position: relative;
    z-index: 1;
    width: 100%;
    border-radius: 15px;
    display: block;
}

/* Mindful Cooking */
.mindful {
    position: relative;
    background-color: var(--primary-color);
    color: var(--white);
    overflow: hidden;
}

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

.mindful-layout {
    display: flex;
    flex-direction: column; /* Stack on mobile */
    gap: 30px;
}

.mindful-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.mindful-card {
    background: rgba(255,255,255,0.95);
    color: var(--text-color);
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    border-top: 4px solid var(--secondary-color);
}

.mindful-icon {
    width: 60px; height: 60px;
    background: rgba(45,72,55,0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 15px;
}

.mindful-spotify {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 20px;
    border-radius: 15px;
}

.mindful-spotify h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

/* Recipes */
.recipes { background-color: var(--light-bg); }

.recipes-header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.chef-img {
    max-width: 220px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.chef-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 15px;
}

.chef-socials a {
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.chef-socials a:hover {
    color: var(--secondary-color);
}

@media (min-width: 768px) {
    .recipes-header-container {
        flex-direction: row;
        justify-content: center;
        text-align: left;
    }
    .recipes-header-text {
        text-align: left;
        max-width: 500px;
    }
    .recipes-header-text .section-title::after {
        left: 0;
        transform: none;
    }
    .chef-socials {
        justify-content: flex-start;
    }
}

.recipes-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile */
    gap: 30px;
}
.recipe-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.recipe-image {
    position: relative;
    height: 200px;
}
.recipe-image img {
    width: 100%; height: 100%; object-fit: cover;
}
.recipe-badge {
    position: absolute; top: 15px; right: 15px;
    background: var(--secondary-color); color: var(--primary-color);
    padding: 5px 12px; border-radius: 15px; font-weight: bold; font-size: 0.8rem;
}
.recipe-content { padding: 25px; }
.recipe-content h3 { margin-bottom: 10px; font-size: 1.3rem; }
.recipe-content p { color: #666; margin-bottom: 20px; font-size: 0.95rem; }

/* Vitality Plans */
.vitality-container {
    display: flex;
    flex-direction: column; /* Mobile */
    gap: 40px;
    text-align: center;
}
.vitality-text, .vitality-image-wrapper {
    width: 100%;
}
.vitality-text .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}
.vitality-text p { margin-bottom: 25px; }

/* Glowing Button Animation */
.btn-glow {
    animation: glow 2s infinite;
}
@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(234, 203, 62, 0.5); }
    50% { box-shadow: 0 0 20px rgba(234, 203, 62, 0.8); }
    100% { box-shadow: 0 0 5px rgba(234, 203, 62, 0.5); }
}

/* Promos */
.promos { background-color: #f8f6fb; }
.promos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    /* No padding on mobile so it touches edges */
}
.promo-card {
    background: var(--white);
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    /* No border-radius on mobile so it looks like full width banners */
}
.promo-img-wrapper img {
    width: 100%; height: auto; object-fit: cover; display: block;
}
.promo-content { padding: 25px; }
.promo-content h3 { font-size: 1.3rem; margin-bottom: 5px; }
.promo-highlight { color: var(--primary-color); font-weight: bold; margin-bottom: 15px; }

/* Contact Section */
.contact {
    background-color: var(--primary-color);
    position: relative;
    overflow: hidden;
}
.contact-container { position: relative; z-index: 2; }
.contact-wrapper {
    display: flex;
    flex-direction: column; /* Mobile */
    gap: 40px;
    text-align: center;
}
.contact-text-box, .contact-form-box {
    width: 100%;
}
.contact-text-box .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}
.contact-list li { margin-bottom: 15px; display: flex; gap: 15px; align-items: center; color: var(--white); }
.contact-list i { color: var(--secondary-color); font-size: 1.2rem; }

.contact-form-box {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 15px;
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--primary-color); font-size: 0.9rem;}
.form-control {
    width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; font-family: var(--font-body);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-grid {
    display: grid; grid-template-columns: 1fr; gap: 30px; margin-bottom: 40px;
}
.footer-logo { max-width: 150px; height: auto; margin-bottom: 15px; display: block; margin: 0 auto 15px; }
.footer-col h3 { color: var(--secondary-color); margin-bottom: 15px; font-size: 1.2rem; }
.footer-col ul li { margin-bottom: 10px; }
.social-links { display: flex; gap: 15px; margin-top: 20px; }
.social-links a {
    width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: var(--white);
}
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; font-size: 0.85rem; opacity: 0.7; }

/* Floating WhatsApp */
.whatsapp-btn {
    position: fixed; bottom: 20px; right: 20px;
    width: 50px; height: 50px; background: #25d366; color: #fff;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 25px; box-shadow: 0 4px 10px rgba(0,0,0,0.2); z-index: 1000;
}

/* Modal Calendario */
.modal {
    display: none; position: fixed; inset: 0; z-index: 2000;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(5px);
    overflow-y: auto; padding: 20px;
}
.modal-dialog {
    background: #f8f9fa; border-radius: 15px; width: 100%; max-width: 900px;
    margin: 40px auto; overflow: hidden;
}
.modal-header {
    background: var(--primary-color); color: var(--white); padding: 15px 20px;
    display: flex; justify-content: space-between; align-items: center;
}
.modal-header h2 { font-size: 1.2rem; margin: 0; }
.close-btn {
    background: rgba(255,255,255,0.2); border: none; color: white; width: 30px; height: 30px;
    border-radius: 50%; font-size: 1.5rem; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.modal-body { padding: 20px; background: #fff; }
.modal-subtitle { text-align: center; color: #555; margin-bottom: 20px; font-size: 0.95rem; }
.calendar-layout {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px;
}
.cal-item {
    border: 1px solid #eee; border-radius: 10px; padding: 15px 10px; text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); display: flex; flex-direction: column; align-items: center;
}
.cal-month { color: var(--primary-color); font-weight: 700; font-size: 0.8rem; margin-bottom: 10px; }
.cal-item img { height: 60px; object-fit: contain; margin-bottom: 10px; }
.cal-name { font-weight: 600; font-size: 0.85rem; color: #333; }
.modal-footer { padding: 15px 20px; text-align: center; border-top: 1px solid #eee; }

/* ---------------------------------------------------
   MEDIA QUERIES (ESCALAMIENTO MOBILE-FIRST)
--------------------------------------------------- */

/* Tablet & Pequeñas Laptops */
@media (min-width: 768px) {
    .hero-title { font-size: 3.5rem; }
    .hero-subtitle { font-size: 1.5rem; }
    .btn-large { display: inline-block; width: auto; }
    
    section { padding: 80px 0; }
    .section-title { font-size: 2.5rem; }
    
    .features-grid { grid-template-columns: repeat(3, 1fr); }
    .mindful-cards { grid-template-columns: 1fr 1fr; }
    .recipes-grid { grid-template-columns: repeat(3, 1fr); }
    
    .promos-grid { 
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
        gap: 30px;
        width: 90%; 
        margin: 0 auto; /* Act like a container on tablet/desktop */
    }
    .promo-card {
        border-radius: 15px; /* Bring back border radius on larger screens */
    }
    
    .calendar-layout { grid-template-columns: repeat(3, 1fr); }
    .cal-item img { height: 80px; }
    
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
    
    .whatsapp-btn { width: 60px; height: 60px; font-size: 30px; bottom: 40px; right: 40px; }
}

/* Laptops & Desktops */
@media (min-width: 1024px) {
    /* Navbar Desktop */

    .menu-toggle { display: none; }
    .nav-menu {
        display: flex;
        justify-content: flex-end;
        flex: 1; position: static; background: transparent; padding: 0;
        box-shadow: none; animation: none;
        margin-left: auto;
    }
    .nav-links { flex-direction: row; gap: 30px; }
    .logo-img { height: 50px; }
    
    .hero {
        min-height: 100vh;
    }
    
    .hero-content {
        margin-top: 40vh; /* Empuja el texto hacia abajo para no tapar la botella */
    }
    

    /* Layouts en Columnas (Desktop) */
    .slider-item,
    .about-container,
    .mindful-layout,
    .vitality-container,
    .contact-wrapper {
        flex-direction: row;
        align-items: center;
        text-align: left;
    }
    
    .slider-controls {
        margin-top: 60px;
    }
    
    .showcase-text .section-title::after,
    .about-text .section-title::after,
    .vitality-text .section-title::after,
    .contact-text-box .section-title::after {
        left: 0;
        transform: none;
    }
    
    .showcase-image-wrapper, .showcase-text,
    .about-text, .about-image-wrapper,
    .vitality-text, .vitality-image-wrapper,
    .contact-text-box, .contact-form-box {
        flex: 1;
        width: auto;
    }
    
    /* Parallax Desktop Seguro - Now handled differently since we use img tags */
    
    
    .section-bg-img {
        /* Optional: Add a subtle parallax effect on desktop using sticky or fixed, but fixed on img is buggy. Keep it simple or use CSS parallax. Let's stick to standard object-fit for safety. */
    }
    
    .mindful-cards { flex: 2; }
    .mindful-spotify { flex: 1; margin-top: 0; }
    
    .calendar-layout { grid-template-columns: repeat(4, 1fr); }
    .contact-form-box { padding: 40px; }
    
    /* Hover Effects (Desktop Only) */
    .recipe-card, .promo-card, .recipe-detail-card {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .recipe-card:hover, .promo-card:hover, .recipe-detail-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    }
    
    .nav-item {
        position: relative;
    }
    .nav-item::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: -5px;
        left: 0;
        background-color: var(--secondary-color);
        transition: width 0.3s ease;
    }
    .nav-item:hover::after {
        width: 100%;
    }
}

/* Formspree Messages */
.form-success-msg {
    display: none;
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
    font-weight: 500;
}
.form-error-msg {
    display: none;
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
    font-weight: 500;
}
/* Formspree auto-shows the success message by adding a style block or attribute, 
but if it sets data-fs-success="true", we can target it. 
Actually, the script removes display:none or similar, but let's be safe. */
[data-fs-success] { display: none; }
[data-fs-error] { display: none; color: #dc3545; font-size: 0.9rem; margin-top: 5px; }

/* Display classes for responsive backgrounds */
.mobile-only-bg {
    display: block;
}
.desktop-only-bg {
    display: none;
}

@media (min-width: 1024px) {
    .mobile-only-bg {
        display: none !important;
    }
    .desktop-only-bg {
        display: block !important;
    }
}

@media (min-width: 1024px) {
    .navbar:not(.scrolled) .nav-links li a.nav-item {
        color: #ffffff;
        text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
    }
}
