/* ================= VARIABLES Y CONFIGURACIÓN BASE ================= */
:root {
    --primary-color: #8bc34a; 
    --primary-dark: #689f38;  
    --text-dark: #333333;     
    --text-light: #666666;    
    --bg-light: #ffffff;
    --font-main: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-light);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    color: var(--text-dark);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================= COMPONENTES: BOTONES ================= */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 4px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

/* ================= BARRA DE NAVEGACIÓN (NAVBAR) ================= */
.navbar {
    background-color: #ffffff; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a.nav-item {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-links a.nav-item:hover, 
.nav-links a.nav-item.active {
    color: var(--primary-color);
}

/* ================= ÍCONOS DE REDES SOCIALES MEJORADOS ================= */
.social-icons-nav {
    display: flex;
    gap: 12px;
    margin-left: 20px;
}

.social-icons-nav a {
    color: var(--text-dark);
    font-size: 1.1rem;
    width: 38px;
    height: 38px;
    background-color: #f5f5f5; 
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%; 
    transition: all 0.3s ease;
}

.social-icons-nav a:hover {
    background-color: var(--primary-color); 
    color: white; 
    transform: translateY(-3px); 
    box-shadow: 0 5px 15px rgba(139, 195, 74, 0.4); 
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
}

/* ================= PIE DE PÁGINA (FOOTER) ================= */
.site-footer {
    background-color: white;
    padding: 40px 20px;
    border-top: 1px solid #eeeeee;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    margin-right: 20px;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-logo img {
    height: 50px;
}

.footer-credits p {
    font-size: 0.85rem;
    color: #999999;
}

/* ================= BOTÓN FLOTANTE 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: 35px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    animation: pulse-whatsapp 2s infinite; /* Empieza a latir inmediatamente */
}

.whatsapp-float:hover {
    background-color: #1ebd5c;
    color: white;
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4);
    animation: none; /* Detiene el latido al poner el mouse encima para que no maree */
}

@keyframes pulse-whatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ================= DISEÑO RESPONSIVO ================= */
@media (max-width: 900px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: -100%;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        transition: left 0.3s ease;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .social-icons-nav {
        margin-left: 0;
        margin-top: 15px;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links a {
        margin: 0 10px;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 30px;
    }
}