/* General Body Styles */
body {
    font-family: 'Lato', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1a1a1a; /* Primary Dark */
    color: #cccccc; /* Light grey text */
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

h1, h2, h3 {
    font-family: 'Cinzel Decorative', serif;
    color: #a38c4b; /* Dark Gold/Bronze for headings */
    text-align: center;
    margin-bottom: 20px;
}

h1 {
    font-size: 3.5em;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
}

h2 {
    font-size: 2.5em;
    border-bottom: 2px solid #7a0000; /* Deep Red accent */
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 40px;
}

/* Sections */
.section-dark {
    background-color: #282828; /* Secondary Dark */
    padding: 80px 0;
}

.section-light {
    background-color: #1a1a1a; /* Primary Dark (lighter than previous section for contrast) */
    padding: 80px 0;
}

/* Hero Section */
.hero {
    background: url('../images/Ffondo.jpg') no-repeat center center/cover; /* Ruta corregida */
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6); /* Overlay oscuro para que el texto se vea mejor */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content p {
    font-size: 1.5em;
    margin-bottom: 40px;
    font-style: italic;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: #7a0000; /* Deep Red */
    color: white;
    border: 1px solid #7a0000;
}

.btn-primary:hover {
    background-color: #990000; /* Lighter red on hover */
    transform: scale(1.05);
}

.btn-secondary {
    background-color: transparent;
    color: #a38c4b; /* Dark Gold/Bronze */
    border: 1px solid #a38c4b;
}

.btn-secondary:hover {
    background-color: #a38c4b;
    color: #1a1a1a;
    transform: scale(1.05);
}

/* About Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
    text-align: center;
}

.stats-grid div {
    background-color: #1a1a1a; /* Darker background for stat boxes */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stats-grid div img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
    filter: brightness(1.2) sepia(0.5) hue-rotate(330deg);
}

.stats-grid h3 {
    color: #7a0000; /* Deep Red */
    font-size: 2em;
    margin-bottom: 10px;
}

.stats-grid p {
    color: #888888;
}

/* Image Gallery with Hovers */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease-in-out, filter 0.4s ease-in-out;
    filter: brightness(0.8) grayscale(0.5);
}

.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    text-align: center;
    padding: 20px;
}

.gallery-item .overlay h3 {
    color: #a38c4b;
    margin-bottom: 10px;
    font-size: 1.8em;
}

.gallery-item .overlay p {
    font-size: 1.1em;
    color: #cccccc;
}

/* Hover Effect for Images */
.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(1) grayscale(0);
}

.gallery-item:hover .overlay {
    opacity: 1;
}

/* Membership Cards */
.membership-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.card {
    background-color: #1a1a1a;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    border: 1px solid #333;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: brightness(1.2) sepia(0.5) hue-rotate(330deg);
}


.card:hover {
    transform: translateY(-10px);
    border-color: #7a0000;
}

.card h3 {
    color: #a38c4b;
    margin-bottom: 15px;
    font-size: 2em;
}

.card .price {
    font-size: 2.5em;
    font-weight: bold;
    color: #7a0000;
    margin-bottom: 20px;
}

.card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.card ul li {
    margin-bottom: 10px;
    color: #cccccc;
}

.featured-card {
    background-color: #333;
    border: 2px solid #7a0000;
    box-shadow: 0 0 20px rgba(122, 0, 0, 0.7);
    transform: scale(1.05);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 50px auto 0;
    gap: 20px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    padding: 15px;
    border: 1px solid #333;
    border-radius: 5px;
    background-color: #1a1a1a;
    color: #cccccc;
    font-size: 1em;
    outline: none;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    border-color: #7a0000;
    background-color: #282828;
}

.contact-form textarea {
    resize: vertical;
}

/* Footer */
footer {
    background-color: #0d0d0d;
    color: #888888;
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid #333;
}

.social-links a {
    color: #a38c4b;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #7a0000;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5em;
    }

    h2 {
        font-size: 2em;
    }

    .hero-content p {
        font-size: 1.2em;
    }

    .container {
        padding: 30px 15px;
    }

    .section-dark, .section-light {
        padding: 60px 0;
    }

    .stats-grid, .image-gallery, .membership-cards {
        grid-template-columns: 1fr;
    }

    .featured-card {
        transform: scale(1.02);
    }
}

@media (max-width: 480px) {
    .hero {
        height: 80vh;
    }

    .btn-primary, .btn-secondary {
        padding: 12px 20px;
        font-size: 0.9em;
    }

    .stats-grid div, .card {
        padding: 20px;
    }
}
/* Botón de WhatsApp - Dentro de la tarjeta (si aplica) */
.btn-whatsapp {
    background-color: #25D366; /* Color verde de WhatsApp */
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 5px;
    margin-top: 15px; /* Espacio entre el botón Seleccionar y el de WhatsApp */
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-whatsapp:hover {
    background-color: #1DA851; /* Un verde un poco más oscuro al pasar el ratón */
    transform: scale(1.05);
}

/* Estilos para el botón flotante de WhatsApp (AHORA NO ES FIJO) */
.whatsapp-float {
    display: block; /* Ocupará su propio espacio en el flujo del documento */
    width: 60px; /* Tamaño del botón */
    height: 60px;
    background-color: #25D366; /* Verde de WhatsApp */
    border-radius: 50%; /* Lo hace circular */
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4); /* Sombra para efecto flotante */
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin: 20px auto; /* Centrar y darle margen para que no esté pegado al footer */
    
    /* ¡IMPORTANTE! Eliminamos las propiedades que lo hacían fijo */
    /* position: fixed; */
    /* bottom: 40px; */
    /* right: 40px; */
    /* z-index: 1000; */
}

.whatsapp-float img {
    width: 35px; /* Tamaño del icono dentro del botón */
    height: 35px;
    margin-top: 12.5px; /* Centrar verticalmente el icono */
}

.whatsapp-float:hover {
    background-color: #1DA851; /* Verde más oscuro al pasar el ratón */
    transform: scale(1.1); /* Efecto de crecimiento al pasar el ratón */
}

/* Ajuste para que los botones dentro de la tarjeta se apilen mejor */
.card a {
    margin-bottom: 10px; /* Espacio entre los enlaces dentro de la tarjeta */
    width: 80%; /* Para que los botones tomen un ancho más uniforme */
    max-width: 250px; /* Limita el ancho máximo */
}

/* Ajuste para el botón principal de la tarjeta destacada */
.featured-card .btn-primary {
    background-color: #7a0000; /* Asegura el color rojo para el botón primario */
    border: 1px solid #7a0000;
    color: white;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Cambia esta línea para usar tu imagen de fondo */
    background: url('../images/Ffondo.jpg.jpg') no-repeat center center/cover;
    z-index: 1;
    /* Puedes añadir una opacidad si quieres que se vea la imagen del .hero debajo */
    /* opacity: 0.7; */
}