/* --- Variables de Marca --- */
:root {
    --primary: #0161aa;
    --primary-dark: #014a82;
    --dark: #1a1a1a;
    --light: #ffffff;
    --gray: #f4f4f4;
    --text-dark: #333;
    --pear-dark: #0161aa;
    --pear-light: #699223;
    --transition: all 0.3s ease;
}

/* --- Reset General --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light);
    overflow-x: hidden;
}

/* --- Animaciones Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Navegación --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

header.scrolled {
    background: rgba(0, 0, 0, 0.95);
    padding: 12px 5%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--light);
    font-weight: 700;
    font-size: 1.5rem;
}

.logo img {
    height: 70px; 
    width: auto;
    transition: var(--transition);
}

header.scrolled .logo img {
    height: 55px; 
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: var(--transition);
    font-weight: 400;
}

.nav-links a:hover { color: var(--pear-light); }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--light);
    cursor: pointer;
}

.close-menu {
    display: none; /* Solo visible en móvil */
    background: none;
    border: none;
    color: var(--light);
    align-self: flex-end;
    margin-bottom: 20px;
    cursor: pointer;
}

/* --- Componentes --- */
.container {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2rem;
    text-transform: uppercase;
    color: var(--pear-dark);
}

.underline {
    width: 60px;
    height: 4px;
    background: var(--pear-light);
    margin: 10px auto;
}

.btn {
    padding: 14px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.8rem;
    min-width: 160px;
    text-align: center;
}

.btn-primary { background: var(--primary); color: white; border: none; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* --- Intro Grid --- */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.badge {
    background: var(--pear-light);
    color: var(--light);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.image-block img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* --- CTA --- */
.cta-banner {
    background: var(--pear-dark);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

/* --- WhatsApp Float --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s;
    text-decoration: none;
    overflow: hidden;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float img { width: 100%; height: 100%; object-fit: cover; }

/* --- Footer --- */
.main-footer {
    background: var(--dark);
    color: var(--light);
    padding: 80px 5% 40px;
}

.container-footer {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand { display: flex; flex-direction: column; gap: 20px; }
.footer-logo-container { width: 200px; min-height: 80px; display: flex; align-items: center; }
.footer-brand-img { max-width: 100%; height: auto; }
.footer-description { color: #aaa; font-size: 0.9rem; line-height: 1.8; }
.social-icons { display: flex; gap: 15px; }

.social-icons a {
    color: var(--light);
    background: rgba(255,255,255,0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-icons a:hover { background: var(--pear-light); transform: translateY(-3px); }

.footer-links h4, .footer-contact h4 { color: var(--pear-light); text-transform: uppercase; margin-bottom: 25px; font-size: 1rem; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: #ccc; text-decoration: none; font-size: 0.9rem; transition: var(--transition); }
.footer-links a:hover { color: var(--light); padding-left: 5px; }

.contact-list { list-style: none; display: flex; flex-direction: column; gap: 15px; }
.contact-list li, .contact-list a { color: #ccc; text-decoration: none; font-size: 0.9rem; display: flex; align-items: center; gap: 10px; }
.contact-list a:hover { color: var(--light); }
.contact-list i { color: var(--pear-light); }

.footer-dev h4 { color: var(--pear-light); margin-bottom: 25px; text-transform: uppercase; font-size: 1rem; }
.dev-link { color: #aaa; text-decoration: none; font-size: 0.9rem; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; text-align: center; color: #666; font-size: 0.85rem; }

/* --- Responsive --- */
@media (max-width: 992px) {
    .menu-toggle { display: block; }
    .close-menu { display: block; }
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 280px;
        background: var(--dark);
        flex-direction: column;
        padding: 40px 30px;
        transition: 0.4s ease;
        z-index: 2000;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
        align-items: flex-start;
    }
    /* Clase show activada por main.js */
    .nav-links.show { right: 0; }
    
    .intro-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .footer-brand, .footer-contact, .footer-links, .footer-dev { align-items: center; }
    .footer-logo-container { justify-content: center; }
}