/* Import Google Fonts - Oswald para encabezados, Lato para el cuerpo */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;700&family=Lato:wght@300;400;700&display=swap');

/* Variables de color - Paleta: Verde Oscuro, Negro, Verde Vibrante */
:root {
    --color-primary-green: #0A2A1A;     /* Verde muy oscuro, casi negro, para fondos */
    --color-secondary-green: #1C402E;   /* Verde oscuro para secciones alternas */
    --color-accent-green: #66BB6A;      /* Verde vibrante para acentos y CTA */
    --color-black: #1A1A1A;             /* Negro verdadero para fondos profundos */
    --color-text-light: #E0E0E0;        /* Texto principal claro */
    --color-text-dark: #333333;         /* Texto oscuro (en fondos claros, si los hubiera) */
    --color-border: #3D6B4E;            /* Borde sutil, verde más claro */
    --color-input-bg: #222222;          /* Fondo de campos de formulario */
    --color-whatsapp: #25D366;          /* Verde WhatsApp */
    --color-white: #FFFFFF;             /* Blanco puro */

    --shadow-strong: 0 8px 30px rgba(0, 0, 0, 0.7);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.5);
    --transition-speed: 0.3s ease-in-out;
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: var(--color-text-light);
    background-color: var(--color-primary-green);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
    color: var(--color-white);
    margin-bottom: 0.8em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h1 { font-size: 4.8em; font-weight: 700; }
h2 { font-size: 3.5em; }
h3 { font-size: 2.5em; }
h4 { font-size: 1.8em; }

p {
    margin-bottom: 1em;
    color: var(--color-text-light);
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: var(--color-accent-green);
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--color-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 35px;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color var(--transition-speed), transform 0.2s ease, box-shadow var(--transition-speed);
    border: none;
    cursor: pointer;
    font-family: 'Oswald', sans-serif;
    font-size: 1.05em;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-accent-green);
    color: var(--color-white);
    box-shadow: 0 5px 20px rgba(102, 187, 106, 0.4);
}

.btn-primary:hover {
    background-color: #55AA55; /* Un tono más oscuro del verde vibrante */
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 187, 106, 0.6);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--color-accent-green);
    color: var(--color-accent-green);
    padding: 14px 33px;
}

.btn-secondary:hover {
    background-color: var(--color-accent-green);
    color: var(--color-white);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 187, 106, 0.4);
}

/* Section Styling */
.section-padded {
    padding: 100px 0;
    position: relative;
}

.bg-black {
    background-color: var(--color-black);
}

.bg-dark-alt {
    background-color: var(--color-primary-green);
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.section-title {
    font-size: 3.2em;
    color: var(--color-white);
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    width: 80px;
    height: 4px;
    background-color: var(--color-accent-green);
    border-radius: 2px;
}
.section-title.text-left::after {
    left: 0;
    transform: translateX(0);
}

.section-subtitle {
    font-size: 1.2em;
    color: var(--color-text-light);
    margin-bottom: 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}
.section-subtitle.text-left {
    margin-left: 0;
    margin-right: auto;
}

/* --- Header and Navigation --- */
.header {
    background-color: rgba(10, 42, 26, 0.95); /* Semi-transparente para fixed header */
    padding: 18px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: var(--shadow-medium);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Oswald', sans-serif;
    font-size: 2.8em;
    font-weight: 700;
    color: var(--color-accent-green);
    letter-spacing: 2px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.3);
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 45px;
}

.main-nav ul li a {
    color: var(--color-white);
    font-weight: 500;
    font-size: 1.1em;
    position: relative;
    padding-bottom: 8px;
    transition: color var(--transition-speed);
    text-transform: uppercase;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 0;
    height: 4px;
    background-color: var(--color-accent-green);
    transition: width var(--transition-speed);
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2.2em;
    color: var(--color-white);
    cursor: pointer;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: var(--color-white);
    background: url('https://via.placeholder.com/1920x1080/1A1A1A/66BB6A?text=FITZONE+Fitness') no-repeat center center/cover;
    margin-top: 80px; /* Espacio para el header fijo */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), var(--color-primary-green));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 5.8em;
    margin-bottom: 30px;
    line-height: 1.1;
    text-shadow: 3px 3px 15px rgba(0, 0, 0, 0.6);
}

.hero-content p {
    font-size: 1.6em;
    margin-bottom: 50px;
    color: var(--color-text-light);
    opacity: 0.9;
}

/* --- About Section (Misión y Visión) --- */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.about-card {
    background-color: var(--color-secondary-green);
    border-radius: 10px;
    padding: 50px;
    box-shadow: var(--shadow-strong);
    text-align: center;
    transition: transform 0.4s ease, background-color 0.4s ease, box-shadow 0.4s ease;
    border-bottom: 5px solid var(--color-accent-green);
}

.about-card:hover {
    transform: translateY(-15px);
    background-color: #2D523C; /* Un verde oscuro más intenso al pasar el ratón */
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8);
}

.about-icon {
    font-size: 4.5em;
    color: var(--color-accent-green);
    margin-bottom: 25px;
    text-shadow: 0 0 15px rgba(102, 187, 106, 0.5);
}

.about-card h2 {
    font-size: 2.8em;
    color: var(--color-white);
    margin-bottom: 20px;
}

.about-card p {
    font-size: 1.05em;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.service-card {
    background-color: var(--color-secondary-green);
    border-radius: 10px;
    box-shadow: var(--shadow-medium);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; /* Para que la imagen respete el borde */
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
}

.service-image-container {
    width: 100%;
    height: 200px; /* Altura fija para las imágenes */
    overflow: hidden;
    border-bottom: 3px solid var(--color-accent-green);
}

.service-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la imagen cubra el contenedor */
    transition: transform 0.3s ease;
}

.service-card:hover .service-image-container img {
    transform: scale(1.05); /* Ligeramente más grande al pasar el ratón */
}

.service-card h4 {
    font-size: 1.9em;
    color: var(--color-white);
    margin-top: 30px;
    margin-bottom: 15px;
    padding: 0 20px;
}

.service-card p {
    font-size: 1em;
    color: var(--color-text-light);
    padding: 0 25px 30px;
    margin-bottom: 0;
}

/* --- Nutrition Section --- */
.nutrition-layout {
    display: flex;
    align-items: center;
    gap: 70px;
    margin-top: 30px;
    flex-wrap: wrap;
    flex-direction: row; /* Default para desktop */
}

.nutrition-content {
    flex: 1.2;
    min-width: 400px;
}

.nutrition-image {
    flex: 1;
    min-width: 350px;
    text-align: center;
}

.nutrition-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: var(--shadow-strong);
    border: 4px solid var(--color-accent-green);
}

.nutrition-list {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
}

.nutrition-list li {
    font-size: 1.1em;
    color: var(--color-text-light);
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
}

.nutrition-list li .list-icon {
    color: var(--color-accent-green);
    margin-right: 18px;
    font-size: 1.3em;
    margin-top: 2px;
}

/* --- Contact Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
    margin-bottom: 60px;
}

.contact-info-block {
    background-color: var(--color-secondary-green);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow-medium);
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 1px solid var(--color-border);
}

.contact-info-block:hover {
    transform: translateY(-8px);
    background-color: #2D523C; /* Match hover of about-card */
}

.contact-icon {
    font-size: 3.5em;
    color: var(--color-accent-green);
    margin-bottom: 25px;
}

.contact-info-block h4 {
    font-size: 1.7em;
    color: var(--color-white);
    margin-bottom: 12px;
}

.contact-info-block p,
.contact-info-block a {
    font-size: 1em;
    color: var(--color-text-light);
    margin: 0;
}

.contact-info-block a:hover {
    color: var(--color-accent-green);
    text-decoration: underline;
}

.contact-form-section {
    background-color: var(--color-secondary-green);
    padding: 60px;
    border-radius: 15px;
    box-shadow: var(--shadow-strong);
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    border: 1px solid var(--color-border);
}

.contact-form-section h3 {
    font-size: 2.8em;
    color: var(--color-white);
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.contact-form-section h3::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -15px;
    width: 70px;
    height: 4px;
    background-color: var(--color-accent-green);
    border-radius: 2px;
}

/* Form Styling */
.form-group {
    margin-bottom: 28px;
}

.form-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--color-white);
    font-size: 1em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background-color: var(--color-input-bg);
    color: var(--color-white);
    font-size: 1.05em;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    border-color: var(--color-accent-green);
    box-shadow: 0 0 0 4px rgba(102, 187, 106, 0.3);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 180px;
}

.form-submit-btn {
    width: 100%;
    padding: 18px;
    font-size: 1.1em;
    font-weight: 700;
}

/* --- Footer --- */
.footer {
    background-color: var(--color-black);
    color: var(--color-text-light);
    padding: 80px 0 30px;
    font-size: 0.95em;
    border-top: 1px solid var(--color-border);
}

.footer-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h3 {
    color: var(--color-white);
    font-size: 1.8em;
    margin-bottom: 25px;
    position: relative;
    text-transform: uppercase;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 60px;
    height: 3px;
    background-color: var(--color-accent-green);
    border-radius: 1.5px;
}

.footer-col p, .footer-col ul li {
    color: var(--color-text-light);
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a {
    color: var(--color-text-light);
    transition: color var(--transition-speed);
}

.footer-col ul li a:hover {
    color: var(--color-accent-green);
}

.social-icons {
    margin-top: 30px;
    display: flex;
    gap: 25px;
}

.social-icons a {
    color: var(--color-text-light);
    font-size: 2.2em;
    transition: color var(--transition-speed), transform 0.2s ease;
}

.social-icons a:hover {
    color: var(--color-accent-green);
    transform: translateY(-7px) scale(1.15);
}

.footer-bottom-bar {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-light);
    margin-top: 40px;
    font-size: 0.85em;
}

/* --- WhatsApp Floating Button --- */
.whatsapp-float-btn {
    position: fixed;
    bottom: 35px;
    right: 35px;
    background-color: var(--color-whatsapp);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.whatsapp-float-btn:hover {
    transform: scale(1.18) rotate(7deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9);
}

.whatsapp-float-btn i {
    color: white;
    font-size: 40px;
    transition: transform 0.3s ease;
}

/* --- Media Queries for Responsiveness --- */
@media (max-width: 992px) {
    h1 { font-size: 4em; }
    h2 { font-size: 3em; }
    h3 { font-size: 2.2em; }
    h4 { font-size: 1.7em; }

    .main-nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: rgba(10, 42, 26, 0.98);
        position: absolute;
        top: 100%;
        left: 0;
        padding: 30px 0;
        box-shadow: var(--shadow-strong);
        border-top: 1px solid var(--color-border);
    }

    .main-nav.active ul {
        display: flex;
    }

    .main-nav ul li {
        margin: 18px 25px;
        text-align: center;
    }

    .nav-toggle {
        display: block;
    }

    .hero-content h1 {
        font-size: 4.5em;
    }

    .hero-content p {
        font-size: 1.4em;
    }

    .btn {
        padding: 14px 30px;
        font-size: 1em;
    }

    .section-padded {
        padding: 80px 0;
    }

    .section-title {
        font-size: 2.8em;
    }

    .section-subtitle {
        font-size: 1.1em;
        margin-bottom: 50px;
    }

    .about-grid {
        grid-template-columns: 1fr; /* Una columna en pantallas más pequeñas */
    }

    .about-card {
        padding: 40px;
    }

    .about-icon {
        font-size: 4em;
    }

    .nutrition-layout {
        flex-direction: column-reverse; /* Imagen abajo, contenido arriba para móviles */
        text-align: center;
    }
    .nutrition-content, .nutrition-image {
        min-width: unset; /* Eliminar min-width en móviles */
    }
    .nutrition-content .section-title,
    .nutrition-content .section-subtitle {
        text-align: center;
    }
    .nutrition-content .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .nutrition-list li {
        justify-content: center;
    }

    .contact-form-section {
        padding: 40px;
    }

    .contact-form-section h3 {
        font-size: 2.2em;
    }

    .contact-info-block {
        padding: 30px;
    }
    
    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 3.5em; }
    h2 { font-size: 2.8em; }
    h3 { font-size: 2em; }
    h4 { font-size: 1.6em; }

    .logo {
        font-size: 2.2em;
    }

    .hero-content h1 {
        font-size: 3.8em;
    }
    .hero-content p {
        font-size: 1.2em;
    }

    .section-padded {
        padding: 70px 0;
    }

    .section-title {
        font-size: 2.5em;
    }

    .section-subtitle {
        font-size: 1em;
        margin-bottom: 40px;
    }

    .about-card {
        padding: 30px;
    }

    .about-icon {
        font-size: 3.5em;
    }

    .service-image-container {
        height: 180px;
    }

    .service-card h4 {
        font-size: 1.7em;
    }

    .nutrition-list li {
        font-size: 1em;
    }

    .contact-form-section {
        padding: 30px;
    }

    .contact-form-section h3 {
        font-size: 1.8em;
    }

    .whatsapp-float-btn {
        bottom: 25px;
        right: 25px;
        width: 60px;
        height: 60px;
    }

    .whatsapp-float-btn i {
        font-size: 35px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .logo {
        font-size: 1.8em;
    }

    .hero-content h1 {
        font-size: 2.8em;
    }

    .hero-content p {
        font-size: 0.95em;
    }

    .section-title {
        font-size: 2em;
    }

    .section-subtitle {
        font-size: 0.9em;
        margin-bottom: 30px;
    }

    .btn {
        padding: 12px 25px;
        font-size: 0.9em;
    }

    .about-card {
        padding: 25px;
    }

    .about-icon {
        font-size: 3em;
    }

    .service-image-container {
        height: 150px;
    }

    .service-card h4 {
        font-size: 1.5em;
    }

    .service-card p {
        font-size: 0.9em;
    }

    .nutrition-image img {
        border-radius: 10px;
    }

    .nutrition-list li {
        font-size: 0.9em;
    }

    .contact-info-block {
        padding: 25px;
    }

    .contact-icon {
        font-size: 3em;
    }

    .contact-form-section {
        padding: 25px;
    }

    .form-group label {
        font-size: 0.9em;
    }
    .form-group input, .form-group textarea {
        padding: 12px 15px;
        font-size: 0.95em;
    }
    .form-submit-btn {
        padding: 15px;
        font-size: 1em;
    }

    .footer-col h3 {
        font-size: 1.5em;
    }

    .social-icons {
        gap: 18px;
    }
    .social-icons a {
        font-size: 1.8em;
    }

    .whatsapp-float-btn {
        bottom: 18px;
        right: 18px;
        width: 50px;
        height: 50px;
    }

    .whatsapp-float-btn i {
        font-size: 30px;
    }
}