/* ======== GLOBAL STYLES & VARIABLES ======== */
:root {
    --green-sage: #6B7B61;
    --green-dark: #5A6851;
    --bg-light: #F9F8F5;
    --text-dark: #3D403A;
    --text-light: #555555;
    --white: #FFFFFF;
    --border-light: #EAE8E2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-light);
    line-height: 1.6;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    color: var(--text-dark);
    font-weight: 600;
}

h1 {
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

section {
    padding: 6rem 0;
}

/* ======== BUTTONS ======== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--green-sage);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--green-dark);
}

.btn-secondary {
    background-color: var(--green-sage);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--green-dark);
}

/* ======== HEADER ======== */
.header {
    background-color: var(--bg-light);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-light);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 75px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem; 
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 400;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--green-sage);
}


/* ======== HERO SECTION ======== */
#hero {
    background: url('images/family-hero.jpg') no-repeat center center/cover;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 8%;
}

.hero-content {
    max-width: 600px;
}

#hero h1 {
    color: var(--white);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

/* ======== PILLARS SECTION ======== */
#pillars {
    background-color: var(--white);
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.pillars-container {
    display: flex;
    justify-content: space-around;
    text-align: center;
    gap: 2rem;
}

.pillar-item {
    flex: 1;
}

.pillar-item .icon-wrapper {
    margin-bottom: 1rem;
}

.pillar-item svg {
    width: 48px;
    height: 48px;
    color: var(--green-sage);
}

.pillar-item h3 {
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.4;
}

/* ======== ABOUT US SECTION ======== */
#about {
    padding-top: 2rem;
    padding-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 5rem;
}

.about-image {
    flex: 1;
    max-width: 450px; 
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.about-content {
    flex: 1;
}

.about-content h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ======== SERVICES SECTION ======== */
#services {
    background-color: var(--white);
    padding-top: 4rem;
    padding-bottom: 4rem;
}

#services h2 {
    color: var(--text-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.service-card {
    background-color: var(--white);
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Cambios para el menú desplegable */
    overflow: visible;
    position: relative; 
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    z-index: 20; /* Elevamos la tarjeta activa */
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.service-card .card-title {
    padding: 1.5rem 1rem;
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

/* ======== SERVICES CARD DROPDOWN (NUEVO) ======== */
.card-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--green-dark);
    color: var(--white);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    padding: 1rem 0;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.service-card:hover .card-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.card-dropdown ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-dropdown li {
    font-size: 0.95rem;
    transition: background-color 0.2s ease;
}

.card-dropdown li a {
    display: block;
    padding: 0.6rem 1.5rem;
    color: var(--white);
    text-decoration: none;
}

.card-dropdown li:hover {
    background-color: var(--green-sage);
}


/* ======== CLUB WEALTH LIFE SECTION ======== */
#club {
    margin-top: 20px;
    padding-top: 4rem;    
    padding-bottom: 4rem; 
    background-color: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 5rem;
}

.club-content {
    flex: 1;
}

.club-content h2 {
    text-align: left;
    margin-bottom: 1.5rem;
    color: var(--green-sage);
}

/* ===== ESTILO AÑADIDO PARA EL SLOGAN ===== */
.club-slogan {
    font-size: 2rem; /* Tamaño intermedio. ¡Puedes ajustarlo! */
    font-weight: 600; /* Mantenemos el peso de los encabezados */
    line-height: 1.3; /* Ajustamos el interlineado */
}

.club-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.club-features {
    list-style: none;
    padding: 0;
}

.club-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.club-features svg {
    color: var(--green-sage);
    flex-shrink: 0; 
}

.club-image {
    flex: 1;
    max-width: 500px;
}

.club-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}


/* ======== TESTIMONIALS SECTION ======== */
#testimonials {
    background-color: var(--bg-light); 
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.testimonial-card p {
    font-style: italic;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.testimonial-card footer {
    font-weight: 600;
    color: var(--green-sage);
}


/* ======== FOOTER / FINAL CTA ======== */
#final-cta {
    background: linear-gradient(rgba(40, 40, 40, 0.6), rgba(40, 40, 40, 0.6)), url('images/calm-nature.jpg') no-repeat center center/cover;
    color: var(--white);
    text-align: center;
    padding: 8rem 0; 
}

#final-cta h2 {
    color: var(--white);
    font-size: 2.5rem; 
}

#final-cta .btn-primary {
    background-color: var(--white);
    color: var(--green-dark);
    transform: scale(1.1); 
    margin-top: 1rem;
}

#final-cta .btn-primary:hover {
    background-color: #f0f0f0;
}

/* ======== NUEVO FOOTER CON INFORMACIÓN ======== */
.site-footer {
    background-color: var(--green-dark);
    color: var(--bg-light);
    padding: 5rem 0;
    font-size: 0.95rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: start;
}

.footer-col h3 {
    color: var(--white);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-logo {
    max-width: 200px;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.copyright {
    color: #c1c8bc;
    line-height: 1.5;
}

.footer-contact ul {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.footer-contact svg {
    flex-shrink: 0;
}

.footer-contact a,
.footer-contact span {
    color: var(--bg-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-map iframe {
    border-radius: 8px;
    height: 200px;
    width: 100%;
}


/* ======== RESPONSIVE DESIGN ======== */
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    #about {
        flex-direction: column;
        text-align: center;
    }
    .about-content h2 {
        text-align: center;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #club {
        flex-direction: column;
        text-align: center;
    }
    .club-content h2 {
        text-align: center;
    }
    .club-features li {
        justify-content: center;
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    .main-nav {
        width: 100%;
    }
    .main-nav ul {
        justify-content: center;
    }

    #hero {
        padding: 0 5%;
        text-align: center;
        justify-content: center;
    }
    
    .pillars-container {
        flex-direction: column;
        gap: 3rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
    
    #final-cta h2 {
        font-size: 2rem;
    }
}


/* ======== CORRECCIÓN BOTÓN DEL MENÚ ======== */
.main-nav .btn-secondary {
    color: var(--white);
}

.main-nav .btn-secondary:hover {
    color: var(--white);
}