/* Variables de Colores */
:root {
    --primary-color: #e44d26; /* Naranja intenso para acentos y botones */
    --secondary-color: #3f51b5; /* Azul oscuro o morado para elementos secundarios */
    --text-color: #ecf0f1; /* Gris claro para texto principal */
    --bg-color-dark: #1a1a1a; /* Fondo oscuro principal */
    --bg-color-light: #2c3e50; /* Fondo secundario más claro (azul oscuro) */
    --border-color: #555;
    --hover-color: #f76e1f; /* Tono de naranja más claro para hover */
}

/* Estilos Generales */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: var(--bg-color-dark);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--bg-color-dark);
}

.section.bg-dark {
    background-color: var(--bg-color-light);
}

h1, h2, h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

h1 {
    font-size: 3.5em;
    margin-bottom: 10px;
}

h2 {
    font-size: 2.8em;
    margin-bottom: 40px;
}

h3 {
    font-size: 1.8em;
}

p {
    margin-bottom: 15px;
}

.section-description {
    font-size: 1.1em;
    color: #bbb;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1em;
}

.primary-btn {
    background-color: var(--primary-color);
    color: #fff;
}

.primary-btn:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
}

.secondary-btn {
    background-color: var(--secondary-color);
    color: #fff;
}

.secondary-btn:hover {
    background-color: #5c6bc0; /* Un tono más claro de secondary-color */
    transform: translateY(-2px);
}

/* Header/Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background: url('../image/gym.jfif') no-repeat center center/cover; /* Imagen de fondo */
    overflow: hidden; /* Asegura que el pseudo-elemento no se desborde */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7); /* Capa oscura para mejorar la legibilidad del texto */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2; /* Asegura que el contenido esté sobre la capa oscura */
    max-width: 900px;
    padding: 20px;
}

.hero-content p {
    font-size: 1.4em;
    margin-bottom: 30px;
    color: #ccc;
}

/* About Section */
.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.mission-vision-grid .card {
    background-color: var(--bg-color-light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: left;
    transition: transform 0.3s ease;
}

.mission-vision-grid .card:hover {
    transform: translateY(-5px);
}

.mission-vision-grid .card h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
}

.mission-vision-grid .card p {
    color: #ddd;
    font-size: 1.05em;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-item {
    background-color: var(--bg-color-dark);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 1px solid var(--border-color);
}

.service-item:hover {
    transform: translateY(-5px);
    background-color: #2a2a2a;
}

.service-item .service-icon { /* Changed from .icon to .service-icon */
    width: 60px; /* Adjust as needed */
    height: 60px; /* Adjust as needed */
    margin-bottom: 20px;
    /* The color property will not directly affect image color but is kept for consistency if icon fonts were to be used */
    color: var(--primary-color);
}

.service-item h3 {
    color: var(--text-color);
    margin-bottom: 10px;
}

.service-item p {
    color: #ccc;
}

/* Plans Section */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.plan-card {
    background-color: var(--bg-color-light);
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, border-color 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Para que el botón quede abajo */
}

.plan-card:hover {
    transform: translateY(-7px);
    border-color: var(--primary-color);
}

.plan-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.03);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.plan-card h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 20px;
}

.plan-card .price {
    font-size: 2.5em;
    font-weight: bold;
    color: #fff;
    margin-bottom: 20px;
}

.plan-card .price span {
    font-size: 0.5em;
    font-weight: normal;
    color: #ccc;
}

.plan-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    text-align: left;
    flex-grow: 1; /* Para que la lista ocupe el espacio disponible */
}

.plan-card ul li {
    margin-bottom: 15px;
    color: #ddd;
    font-size: 1.05em;
}

.plan-card ul li .fas {
    color: #25d366; /* Color verde para los iconos de check */
    margin-right: 10px;
}

.plan-card .btn {
    width: 100%;
    margin-top: auto; /* Empuja el botón al final */
}

/* Testimonials Section */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-item {
    background-color: var(--bg-color-dark);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    border: 1px solid var(--border-color);
}

.testimonial-item p {
    font-style: italic;
    color: #ddd;
    margin-bottom: 20px;
}

.testimonial-item h4 {
    color: var(--primary-color);
    margin: 0;
}

/* Contact Section */
.contact-form {
    max-width: 600px;
    margin: 50px auto 0 auto;
    background-color: var(--bg-color-light);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: #333;
    color: #fff;
    font-size: 1em;
    box-sizing: border-box; /* Incluye padding y borde en el ancho total */
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.contact-form .primary-btn {
    width: auto;
    padding: 12px 30px;
}

.form-messages {
    margin-top: 20px;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
    display: none; /* Se muestra con JavaScript */
}

.form-messages.success {
    background-color: #28a745;
    color: #fff;
}

.form-messages.error {
    background-color: #dc3545;
    color: #fff;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float i {
    margin-top: 0; /* Ajuste para centrar el icono */
}

/* Footer */
footer {
    background-color: #111;
    color: #aaa;
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5em;
    }

    .hero-content p {
        font-size: 1.2em;
    }

    h2 {
        font-size: 2em;
    }

    .mission-vision-grid,
    .services-grid,
    .plans-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 60px 0;
    }

    .plan-card.featured {
        transform: scale(1.0); /* Desactivar el escalado en móviles */
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }
}