/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Alfa+Slab+One&family=Montserrat:wght@400;600;700&family=Open+Sans:wght@400;600&display=swap');

/* Variables de color - Nueva Paleta: Azul Profundo y Gris Elegante */
:root {
    --primary-color: #0056B3;       /* Azul profundo para CTA y acentos principales */
    --secondary-color: #007BFF;     /* Azul vibrante para hover y elementos secundarios */
    --accent-color: #FFC107;        /* Amarillo dorado para detalles y resaltado */
    --dark-bg: #1A1A1A;             /* Fondo principal gris muy oscuro (casi negro) */
    --light-bg: #2C2C2C;            /* Fondo para secciones alternas, gris un poco más claro */
    --text-light: #E0E0E0;          /* Texto principal gris claro */
    --text-dark: #121212;           /* Texto oscuro (usado raramente en fondos claros) */
    --border-color: #444444;        /* Color de borde sutil gris */
    --input-bg: #3A3A3A;            /* Fondo de inputs gris */
    --whatsapp-green: #25D366;      /* Color oficial de WhatsApp */
    --box-shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.7);
}

/* Base Styles */
body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden; /* Prevent horizontal scroll due to animations */
}

/* Updated: Font for all main headings (h1 to h6) */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Alfa Slab One', serif; /* New striking font for all main headings */
    color: var(--text-light);
    line-height: 1.2;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7); /* Stronger text shadow */
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px; /* Increased horizontal padding for more space */
}

/* Header */
.header {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Updated: Logo font */
.logo {
    font-family: 'Alfa Slab One', serif; /* Optional: Apply Alfa Slab One to logo as well */
    font-size: 2.5em;
    font-weight: normal; /* Alfa Slab One is already bold */
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo:hover {
    color: var(--secondary-color);
}

.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.navbar ul li {
    margin-left: 30px;
}

.navbar ul li a {
    color: var(--text-light);
    font-weight: 600;
    transition: color 0.3s ease;
}

.navbar ul li a:hover {
    color: var(--accent-color);
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 2em;
    color: var(--text-light);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    overflow: hidden;
    padding: 150px 0; /* Adjust hero padding for visual impact */
}

#background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translate(-50%, -50%);
    background-size: cover;
    filter: brightness(50%); /* Darken video for better text contrast */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
}

/* Updated: Hero Headline (h1) */
.hero-content h1 {
    font-size: 5.5em; /* Significantly larger for maximum impact */
    font-weight: normal; /* Alfa Slab One is already bold by default */
    line-height: 1.05;
    margin-bottom: 25px;
    color: var(--text-light);
    text-shadow: 4px 4px 10px rgba(0, 0, 0, 0.8); /* Even stronger shadow */
    -webkit-text-stroke: 1.5px var(--secondary-color); /* For webkit browsers */
    text-stroke: 1.5px var(--secondary-color);
}

.hero-content p {
    font-size: 1.4em; /* Larger for better readability */
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-light);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

.btn {
    display: inline-block;
    background-color: var(--primary-color); /* Your deep blue */
    color: var(--text-light);
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease; /* Added transform and box-shadow */
    border: none;
    cursor: pointer;
    font-size: 1.1em;
}

.btn:hover {
    background-color: var(--secondary-color); /* Your vibrant blue */
    transform: translateY(-3px); /* Subtle lift effect */
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.4); /* Soft shadow on hover */
}

/* Section General Styling */
.section-padded {
    padding: 100px 0; /* Increased top and bottom padding */
    background-color: var(--dark-bg);
}

.section-alt-bg {
    background-color: var(--light-bg);
}

/* Updated: Section Titles (h2, applied via .section-title) */
.section-title {
    font-family: 'Alfa Slab One', serif; /* Ensure this also uses the new font */
    font-size: 4em; /* Larger for prominence */
    font-weight: normal; /* Alfa Slab One is already bold */
    color: var(--text-light);
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.7); /* Deeper shadow */
    -webkit-text-stroke: 1px var(--primary-color); /* Subtle stroke */
    text-stroke: 1px var(--primary-color);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2em;
    margin-bottom: 60px; /* Add more space below subtitles before content starts */
    color: var(--text-light);
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* About Us Section */
#about-us .content-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

#about-us .text-content, #about-us .image-content {
    flex: 1;
    min-width: 300px;
}

#about-us img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--box-shadow-dark);
}

#about-us .mv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.mv-item {
    background-color: var(--input-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.mv-item:hover {
    transform: translateY(-5px);
    background-color: #404040; /* Slightly lighter on hover */
}

.mv-item i {
    font-size: 4em;
    color: var(--accent-color);
    margin-bottom: 15px;
}

/* Updated: h3 font */
.mv-item h3 {
    font-family: 'Alfa Slab One', serif; /* Apply new font to h3 elements */
    font-size: 1.8em;
    margin-bottom: 10px;
    color: var(--secondary-color);
    font-weight: normal;
}

/* Our Services Section */
#our-services .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-item {
    background-color: var(--input-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    background-color: #404040;
}

.service-item img {
    max-width: 100%;
    height: 200px; /* Consistent height for images */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.service-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.service-icon i {
    font-size: 3.5em;
    color: var(--accent-color);
}

/* Updated: h3 font */
.service-item h3 {
    font-family: 'Alfa Slab One', serif; /* Apply new font to h3 elements */
    font-size: 2em;
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-weight: normal;
}

.service-item p {
    color: var(--text-light);
}

/* Nutrition Plan Section */
#nutrition-plan .content-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

#nutrition-plan .nutrition-image, #nutrition-plan .nutrition-text {
    flex: 1;
    min-width: 300px;
}

#nutrition-plan img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--box-shadow-dark);
}

.nutrition-text ul {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.nutrition-text ul li {
    background-color: var(--input-bg);
    margin-bottom: 15px;
    padding: 20px;
    border-left: 5px solid var(--accent-color);
    border-radius: 5px;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.nutrition-text ul li i {
    color: var(--secondary-color);
    font-size: 1.5em;
}

/* Contact Section */
#contact .contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.contact-info, .contact-form {
    background-color: var(--input-bg);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--box-shadow-dark);
    border: 1px solid var(--border-color);
}

/* Updated: h3 font */
.contact-info h3 {
    font-family: 'Alfa Slab One', serif; /* Apply new font to h3 elements */
    color: var(--secondary-color);
    margin-bottom: 25px;
    font-size: 1.8em;
    font-weight: normal;
}

.contact-info p, .contact-info ul li {
    margin-bottom: 15px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info ul {
    list-style: none;
    padding: 0;
}

.contact-info ul li i {
    color: var(--accent-color);
    font-size: 1.2em;
}

.social-links {
    margin-top: 30px;
}

.social-links a {
    color: var(--text-light);
    font-size: 1.8em;
    margin-right: 20px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-light);
}

.contact-form input,
.contact-form textarea {
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--light-bg);
    color: var(--text-light);
    font-size: 1em;
    width: 100%;
    box-sizing: border-box; /* Include padding in element's total width and height */
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    align-self: flex-start;
    padding: 12px 30px;
}

/* Footer */
.footer {
    background-color: var(--light-bg);
    color: var(--text-light);
    padding: 60px 0 20px;
    text-align: center;
    box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.4);
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    text-align: left;
}

/* Updated: h3 font */
.footer-column h3 {
    font-family: 'Alfa Slab One', serif; /* Apply new font to h3 elements */
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.6em;
    font-weight: normal;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: var(--text-light);
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--accent-color);
}

.footer-column p {
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    margin-top: 20px;
    font-size: 0.9em;
    color: var(--text-light);
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--whatsapp-green); /* Your defined WhatsApp green */
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.1); /* Slightly enlarge on hover */
    background-color: #20b054; /* A slightly darker green on hover */
}

/* Fade-in Animation for Sections */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
    .navbar ul {
        display: none; /* Hide desktop nav */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 80px; /* Below header */
        left: 0;
        background-color: var(--dark-bg);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
        border-top: 1px solid var(--border-color);
        padding: 20px 0;
    }

    .navbar ul.active {
        display: flex;
    }

    .navbar ul li {
        margin: 10px 0;
        text-align: center;
    }

    .menu-toggle {
        display: block; /* Show menu toggle button */
    }

    /* Updated: Responsive Hero Headline */
    .hero-content h1 {
        font-size: 4.5em; /* Adjust for tablets */
        -webkit-text-stroke: 1px var(--secondary-color);
        text-stroke: 1px var(--secondary-color);
    }

    .hero-content p {
        font-size: 1.2em;
    }

    .section-padded {
        padding: 80px 0;
    }

    /* Updated: Responsive Section Title */
    .section-title {
        font-size: 3.5em; /* Adjust for tablets */
        -webkit-text-stroke: 0.8px var(--primary-color);
        text-stroke: 0.8px var(--primary-color);
    }

    .section-subtitle {
        font-size: 1.1em;
    }

    #about-us .content-wrapper,
    #nutrition-plan .content-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    #about-us .image-content,
    #nutrition-plan .nutrition-image {
        order: -1; /* Image first on mobile */
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 2em;
    }

    .hero {
        height: 80vh; /* Adjust height for smaller screens */
        padding: 100px 0;
    }

    /* Updated: Responsive Hero Headline */
    .hero-content h1 {
        font-size: 3.5em; /* Adjust for larger phones */
        -webkit-text-stroke: 0.8px var(--secondary-color);
        text-stroke: 0.8px var(--secondary-color);
    }

    .hero-content p {
        font-size: 1.1em;
    }

    /* Updated: Responsive Section Title */
    .section-title {
        font-size: 2.8em; /* Adjust for larger phones */
        -webkit-text-stroke: 0.6px var(--primary-color);
        text-stroke: 0.6px var(--primary-color);
    }

    .section-subtitle {
        font-size: 1.1em;
    }

    /* Updated: Responsive h3 font sizes */
    .mv-item h3, .service-item h3, .contact-info h3, .footer-column h3 {
        font-size: 1.5em;
    }

    .contact-info, .contact-form {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    .logo {
        font-size: 1.8em;
    }
    .hero {
        height: 60vh; /* Further adjust for very small screens */
        padding: 80px 0;
    }
    /* Updated: Responsive Hero Headline */
    .hero-content h1 {
        font-size: 2.8em; /* Adjust for small phones */
        -webkit-text-stroke: 0.5px var(--secondary-color);
        text-stroke: 0.5px var(--secondary-color);
    }
    .hero-content p {
        font-size: 0.95em;
    }
    /* Updated: Responsive Section Title */
    .section-title {
        font-size: 2.2em; /* Adjust for small phones */
        -webkit-text-stroke: 0.4px var(--primary-color);
        text-stroke: 0.4px var(--primary-color);
    }
    .section-subtitle {
        font-size: 0.9em;
    }
    /* Updated: Responsive h3 font sizes */
    .mv-item h3, .service-item h3, .contact-info h3, .footer-column h3 {
        font-size: 1.3em;
    }
    .mv-item i {
        font-size: 3em;
    }
    .service-item img {
        height: 150px;
    }
    .service-icon {
        width: 60px;
        height: 60px;
    }
    .service-icon i {
        font-size: 2.5em;
    }
    .nutrition-text .section-title {
        font-size: 2em;
    }
    .nutrition-text ul li {
        font-size: 1em;
    }
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 2em;
    }
}