/* Estilos Generales */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Botón Flotante de WhatsApp */
.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;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Encabezado y Navegación */
header {
    background-color: #333;
    color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #eee;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ff6600; /* Color de acento */
}

/* Estilos de Sección General */
.section-content {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
}

.section-content h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: #333;
    position: relative;
}

.section-content h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #ff6600;
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Hero Section (Inicio con Carrusel) */
.hero-section {
    position: relative;
    text-align: center;
    color: #fff;
    padding: 100px 20px;
    overflow: hidden; /* Oculta partes de las imágenes si son más grandes */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Oscurece la imagen de fondo */
    z-index: 1;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    z-index: 2;
    position: relative;
}

.hero-section p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    z-index: 2;
    position: relative;
}

.btn {
    display: inline-block;
    background-color: #ff6600;
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    z-index: 2;
    position: relative;
}

.btn:hover {
    background-color: #e65c00;
}

/* Carrusel de Imágenes */
.carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-slide {
    display: none; /* Se mostrarán con JavaScript */
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    animation: fadeEffect 1.5s ease-in-out;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la imagen cubra el contenedor */
    filter: brightness(70%); /* Un poco más oscura */
}

@keyframes fadeEffect {
    from {opacity: 0;}
    to {opacity: 1;}
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 25px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.5);
    z-index: 3; /* Para que estén encima del overlay */
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

/* Horarios */
#horarios table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#horarios th, #horarios td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

#horarios th {
    background-color: #ff6600;
    color: #fff;
    font-weight: bold;
}

#horarios tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Planes de Entrenamiento */
.plans-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.plan-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.plan-card.featured {
    border: 3px solid #ff6600;
    transform: scale(1.05);
}

.plan-card h3 {
    font-size: 1.8rem;
    color: #ff6600;
    margin-bottom: 15px;
}

.plan-card p {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #666;
    flex-grow: 1;
}

.plan-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
    text-align: left;
}

.plan-card ul li {
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #555;
}

.plan-card ul li .fa-check-circle {
    color: #28a745; /* Verde para los checks */
    margin-right: 8px;
}

.plan-card ul li .fa-times-circle {
    color: #dc3545; /* Rojo para las X */
    margin-right: 8px;
}

.plan-card .price {
    font-size: 2.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 25px;
    display: block;
}

/* Sección de Nutricionista */
.nutricion-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
}

.nutricion-content .nutricionista-img {
    max-width: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.nutricion-content p, .nutricion-content ul {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #555;
}

.nutricion-content ul {
    list-style-type: disc;
    text-align: left;
    margin-top: 15px;
    padding-left: 20px;
}

/* Formulario de Registro */
.registration-form {
    max-width: 600px;
    margin: 40px auto 0;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: calc(100% - 20px);
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

.registration-form .btn {
    width: 100%;
    padding: 15px;
    font-size: 1.2rem;
    cursor: pointer;
    border: none;
    border-radius: 5px;
}

/* Pie de página */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

/* Responsivo */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 10px 0;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .section-content h2 {
        font-size: 2rem;
    }

    .plans-container {
        grid-template-columns: 1fr;
    }

    .plan-card.featured {
        transform: none; /* Elimina la escala en móviles para que no se vea extraño */
    }

    .nutricion-content {
        flex-direction: column;
    }
}