/* ==========================================================================
   ESTILOS PROFESIONALES - CONTROL DE PLAGAS VILLAVERDE
   ================================================================---------- */

:root {
    --primary: #0f172a;       /* Azul marino corporativo oscuro */
    --primary-light: #1e293b; 
    --accent: #0284c7;        /* Azul técnico */
    --highlight: #facc15;     /* Amarillo CTA / llamadas a la acción */
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --transition: all 0.3s ease;
    
    /* Tipografías seguras del sistema (Sin dependencias externas) */
    --font-stack: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-stack);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- HEADER / HERO SECTION CON IMAGEN DE FONDO --- */
header.hero-section {
    position: relative;
    background: linear-gradient(rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.94)), 
                url('../images/banner.jpg') no-repeat center center;
    background-size: cover;
    color: var(--white);
    padding: 2rem 1rem 5rem 1rem;
    text-align: center;
}

/* Barra de navegación superior */
nav.main-nav {
    max-width: 1200px;
    margin: 0 auto 3rem auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-logo {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--highlight);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: #cbd5e1;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--white);
}

/* Contenido Principal del Hero */
.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.badge-tag {
    display: inline-block;
    background: rgba(250, 204, 21, 0.15);
    color: var(--highlight);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(250, 204, 21, 0.3);
}

.hero-content h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.hero-content p.subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #94a3b8;
    margin-bottom: 2.5rem;
}

/* Botones de Acción Destacados */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.btn-primary {
    background-color: var(--highlight);
    color: var(--primary);
}

.btn-primary:hover {
    background-color: #fde047;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #25d366; /* Color WhatsApp */
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #22c55e;
    transform: translateY(-2px);
}

.phone-display {
    margin-top: 2rem;
    font-size: 1.1rem;
    color: #cbd5e1;
}

.phone-display a {
    color: var(--white);
    font-weight: 700;
    font-size: 1.8rem;
    display: block;
    margin-top: 0.3rem;
    letter-spacing: 1px;
}

/* --- SECCIÓN DE CARACTERÍSTICAS / SERVICIOS --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 5rem 1.5rem;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.grid-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    border: 1px solid #e2e8f0;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px -5px rgba(0,0,0,0.08);
    border-color: var(--accent);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(2, 132, 199, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    color: var(--accent);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.feature-card h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- SECCIÓN DE AUTORIDAD Y CONFIANZA --- */
.trust-section {
    background-color: var(--primary);
    color: var(--white);
    padding: 5rem 1.5rem;
    text-align: center;
}

.trust-content {
    max-width: 800px;
    margin: 0 auto;
}

.trust-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.trust-content p {
    color: #94a3b8;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

/* --- FOOTER PROFESIONAL --- */
footer {
    background-color: #090d16;
    color: #64748b;
    padding: 3rem 1.5rem 1.5rem 1.5rem;
    font-size: 0.9rem;
}

.footer-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #1e293b;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-col p, .footer-col li a {
    color: #94a3b8;
    margin-bottom: 0.5rem;
    display: block;
    transition: var(--transition);
}

.footer-col li a:hover {
    color: var(--white);
}

.footer-bottom {
    max-width: 1100px;
    margin: 1.5rem auto 0 auto;
    text-align: center;
    color: #475569;
    font-size: 0.85rem;
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: #ffffff;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* --- ESTILOS RESPONSIVOS PARA MÓVILES --- */
@media screen and (max-width: 768px) {
    /* Ajustar la barra de navegación en pantallas pequeñas */
    nav.main-nav {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 0.5rem 0;
    }

    /* Opcional: Centrar y ajustar el tamaño del menú de navegación */
    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem 1.2rem;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    /* Reducir los márgenes generales del hero para pantallas pequeñas */
    header.hero-section {
        padding: 1.5rem 1rem 3rem 1rem;
    }
}