/* ============================================= */
/* VARIABLES Y ESTILOS GENERALES                 */
/* ============================================= */
:root {
    --primary-color: #1a1a1a;
    --secondary-color: #333333;
    --accent-color: #FF0000;
    --accent-color-darker: #d60000;
    --background-color: #f4f4f4;
    --white-color: #fff;
    --font-family: 'Montserrat', sans-serif;
}

body {
    font-family: var(--font-family);
    line-height: 1.7;
    margin: 0;
    padding: 0;
    color: var(--secondary-color);
    background-color: var(--white-color);
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

h1, h2, h3, h4 {
    color: var(--primary-color);
    font-weight: 700;
}

h1 { font-size: 3.5rem; font-weight: 900; }
h2 { text-align: center; font-size: 2.5rem; margin-bottom: 3rem; }
h3 { font-size: 1.5rem; }

section {
    padding: 80px 0;
}

/* ============================================= */
/* HEADER Y NAVEGACIÓN                           */
/* ============================================= */
.main-header {
    background: var(--white-color);
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-color);
    text-transform: uppercase;
}
.logo h2{color:white}
.logo img{
    width:70%;
}
.logo-accent {
    color: var(--accent-color);
}
.main-nav ul {
    margin: 0; padding: 0; list-style: none; display: flex; align-items: center;
}
.main-nav li { margin-left: 25px; }
.main-nav a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    transition: color 0.3s ease;
}
.main-nav a:hover {
    color: var(--accent-color);
}
.main-nav { display: flex; align-items: center; }

.header-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #25d366;
    color: var(--white-color);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
.header-whatsapp:hover {
    background-color: #128c7e;
    transform: scale(1.05);
}
.header-whatsapp i {
    font-size: 1.2rem;
}

/* ============================================= */
/* COMPONENTES: BOTONES                          */
/* ============================================= */
.btn {
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    border: 2px solid transparent;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

/* Botón de WhatsApp - Verde */
.btn-whatsapp {
    background-color: #25d366;
    color: var(--white-color);
    border-color: #25d366;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover {
    background-color: #128c7e;
    border-color: #128c7e;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(37, 211, 102, 0.4);
}

/* Botón Primario - Rojo (para otros usos) */
.btn-primary {
    background-color: var(--accent-color);
    color: var(--white-color);
    border-color: var(--accent-color);
    box-shadow: 0 4px 10px rgba(255, 0, 0, 0.2);
}
.btn-primary:hover {
    background-color: var(--accent-color-darker);
    border-color: var(--accent-color-darker);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(255, 0, 0, 0.3);
}

/* Botón Secundario - Rojo con fondo */
.btn-secondary {
    background-color: var(--accent-color);
    color: var(--white-color);
    border: 2px solid var(--accent-color);
    box-shadow: 0 4px 10px rgba(255, 0, 0, 0.2);
}
.btn-secondary:hover {
    background-color: var(--accent-color-darker);
    border-color: var(--accent-color-darker);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(255, 0, 0, 0.3);
}

/* ============================================= */
/* HERO SECTION                                  */
/* ============================================= */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white-color);
    text-align: center;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,101.3C1248,85,1344,75,1392,69.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}
.hero-section .container { position: relative; z-index: 1; }
.hero-section h1 { 
    color: var(--white-color); 
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.hero-section p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    color: #e0e0e0;
    line-height: 1.8;
}
.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-cta .btn {
    min-width: 200px;
}

/* ============================================= */
/* QUICK BENEFITS SECTION                        */
/* ============================================= */
.quick-benefits {
    background: var(--white-color);
    padding: 40px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.benefit-item {
    text-align: center;
    padding: 20px;
}
.benefit-item i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}
.benefit-item h3 {
    font-size: 1.1rem;
    margin: 0.5rem 0;
}
.benefit-item p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* ============================================= */
/* SECCIÓN DE SECTORES                           */
/* ============================================= */
.sectors-section { 
    background-color: var(--background-color); 
}
.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: -2rem auto 3rem;
}
.sectors-grid { 
    display: flex; 
    justify-content: space-between; 
    gap: 30px; 
}
.sector-card {
    background: var(--white-color);
    border: 1px solid #ddd;
    border-radius: 12px;
    text-align: center;
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.sector-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}
.sector-card img {
    max-width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}
.sector-card h3 { 
    margin-top: 0; 
    color: var(--primary-color);
}
.sector-card p { 
    flex-grow: 1; 
    margin-bottom: 1.5rem; 
    line-height: 1.7;
}
.service-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: left;
}
.service-features li {
    padding: 8px 0;
    font-size: 0.95rem;
}
.service-features i {
    color: var(--accent-color);
    margin-right: 10px;
}

/* ============================================= */
/* SECCIÓN DE PLAGAS                             */
/* ============================================= */
.pests-section {
    background: var(--white-color);
    padding: 80px 0;
}
.pests-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.pest-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--background-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}
.pest-item:hover {
    background: var(--white-color);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}
.pest-item i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}
.pest-item h4 {
    margin: 1rem 0 0.5rem;
    font-size: 1.2rem;
}
.pest-item p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* ============================================= */
/* SECCIÓN DE CONTACTO                           */
/* ============================================= */
.contact-section {
    background: var(--background-color);
    padding: 80px 0;
}
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    margin-top: 3rem;
}
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.info-item i {
    font-size: 2rem;
    color: var(--accent-color);
    min-width: 40px;
}
.info-item h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}
.info-item p {
    margin: 5px 0 0 0;
    color: #666;
    font-size: 0.9rem;
}
.info-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}
.info-item a:hover {
    color: var(--accent-color);
}

/* Formulario */
.contact-form {
    background: var(--white-color);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--primary-color);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: auto;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}
.form-group #email,
.form-group textarea {
    width: 88%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}
.form-group textarea {
    resize: vertical;
    min-height: 100px;
}
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: var(--accent-color);
}
.error-message {
    display: block;
    color: var(--accent-color);
    font-size: 0.85rem;
    margin-top: 5px;
    min-height: 20px;
}
.btn-submit {
    width: 100%;
    margin-top: 10px;
    cursor: pointer;
    border: none;
    position: relative;
}
.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    font-weight: 700;
    display: none;
}
.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}
.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}
.g-recaptcha {
    margin: 10px 0;
}

/* ============================================= */
/* SECCIÓN DE CONFIANZA                          */
/* ============================================= */
.trust-section { background-color: var(--white-color); }
.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}
.trust-item {
    text-align: center;
}
.trust-item .icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* ============================================= */
/* FOOTER                                        */
/* ============================================= */
.main-footer {
    background: var(--primary-color);
    color: #aaa;
    padding: 60px 0 20px 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h4 {
    color: var(--white-color);
    margin-bottom: 1rem;
}
.footer-col p, .footer-col li {
    font-size: 0.9rem;
}
.footer-col ul {
    list-style: none;
    padding: 0;
}
.footer-col ul li {
    margin-bottom: 10px;
}
.footer-col a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-col a:hover {
    color: var(--white-color);
}
.footer-col .fas {
    margin-right: 10px;
    color: var(--accent-color);
}
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 1rem;
}
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    color: var(--white-color);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}
.social-links a:hover {
    background: var(--accent-color-darker);
    transform: scale(1.1);
}
.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    font-size: 0.8rem;
}
.footer-bottom a {
    color: #aaa;
    text-decoration: none;
    margin: 0 10px;
}
.footer-bottom a:hover {
    color: var(--white-color);
}

/* ============================================= */
/* FLOATING BUTTONS                              */
/* ============================================= */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: var(--white-color);
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    overflow: visible;
}
.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
}
.whatsapp-float .float-text {
    position: absolute;
    right: 70px;
    background: var(--primary-color);
    color: var(--white-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.whatsapp-float:hover .float-text {
    opacity: 1;
}

.call-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 100px;
    right: 30px;
    background-color: var(--accent-color);
    color: var(--white-color);
    border-radius: 50%;
    text-align: center;
    font-size: 24px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    overflow: visible;
}
.call-float:hover {
    background-color: var(--accent-color-darker);
    transform: scale(1.1);
}
.call-float .float-text {
    position: absolute;
    right: 70px;
    background: var(--primary-color);
    color: var(--white-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.call-float:hover .float-text {
    opacity: 1;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ============================================= */
/* MENÚ MÓVIL Y RESPONSIVE                       */
/* ============================================= */
.mobile-nav-toggle { display: none; background: transparent; border: none; cursor: pointer; z-index: 1001; }
.hamburger { display: block; width: 25px; height: 3px; background: var(--primary-color); position: relative; transition: all 0.3s ease-in-out; }
.hamburger::before, .hamburger::after { content: ''; position: absolute; width: 25px; height: 3px; background: var(--primary-color); left: 0; transition: all 0.3s ease-in-out; }
.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    
    .main-nav { display: none; }
    .header-whatsapp { display: none; }
    .mobile-nav-toggle { display: block; }
    .main-nav.nav-active {
        display: flex; 
        position: absolute; 
        top: 75px; 
        left: 0; 
        right: 0;
        background: var(--white-color); 
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        flex-direction: column; 
        align-items: center; 
        padding: 20px;
    }
    .main-nav.nav-active ul { 
        flex-direction: column; 
        width: 100%; 
        text-align: center; 
    }
    .main-nav.nav-active li { 
        margin: 15px 0; 
    }
    
    .hero-section {
        padding: 60px 0 50px;
    }
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .sectors-grid { 
        flex-direction: column; 
    }
    
    .pests-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-form {
        padding: 25px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .trust-grid { 
        grid-template-columns: 1fr; 
    }
    
    .footer-grid { 
        grid-template-columns: 1fr; 
    }
    
    .call-float {
        display: flex;
    }
    
    .whatsapp-float {
        bottom: 137px;
    }
    
    .whatsapp-float .float-text,
    .call-float .float-text {
        display: none;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.8rem; }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .pests-grid {
        grid-template-columns: 1fr;
    }
    
    .whatsapp-float,
    .call-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        right: 20px;
    }
    
    .call-float {
        bottom: 80px;
    }
    
    .contact-form {
        padding: 20px;
    }
}