/* ================= VARIABLES Y RESET ================= */
:root {
    --primary-color: #6a9c4a; /* Verde del logo PREVENT */
    --secondary-color: #f39c12; /* Naranja/Amarillo de seguridad */
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f4f7f6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

body {
    color: var(--text-dark);
    line-height: 1.6;
}

/* ================= HEADER Y NAVEGACIÓN ================= */
header {
    background-color: var(--text-light);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    height: 60px; /* Tamaño ajustado para el logo */
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* ================= 1. INICIO (HERO) ================= */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(106, 156, 74, 0.8), rgba(0, 0, 0, 0.7)), 
                url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-light);
    padding: 0 20px;
    margin-top: 60px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    max-width: 800px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn-main {
    padding: 15px 30px;
    background-color: var(--secondary-color);
    color: var(--text-dark);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    border-radius: 5px;
    transition: transform 0.3s, background 0.3s;
}

.btn-main:hover {
    background-color: #e67e22;
    transform: translateY(-3px);
}

/* ================= SECCIONES GENERALES ================= */
.section {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 40px;
}

/* ================= 2. SOBRE NOSOTROS ================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.about-text h3 {
    color: var(--secondary-color);
    margin-top: 20px;
}

.about-list {
    list-style: none;
}

.about-list li {
    margin-bottom: 10px;
}

.about-list i {
    color: var(--secondary-color);
    margin-right: 10px;
}

/* ================= 3. SERVICIOS ================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-top: 4px solid var(--primary-color);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-card ul {
    list-style: none;
}

.service-card ul li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.service-card ul li::before {
    content: '✓';
    color: var(--secondary-color);
    font-weight: bold;
    margin-right: 8px;
}

/* ================= 4. CLIENTES (CARRUSEL) ================= */
.carousel-container {
    overflow: hidden;
    width: 100%;
    background: var(--text-light);
    padding: 20px 0;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
}

.carousel-track {
    display: flex;
    align-items: center;
    width: calc(200px * 10);
    animation: scroll 20s linear infinite;
}

.client-logo {
    width: 200px;
    padding: 0 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: #999;
    font-size: 1.2rem;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-200px * 5)); }
}

/* ================= 5. CONTACTO ================= */
.contact-container {
    text-align: center;
    background: var(--bg-light);
    padding: 60px 20px;
    border-radius: 8px;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    font-size: 1.2rem;
    text-decoration: none;
    border-radius: 5px;
    color: white;
    transition: opacity 0.3s;
}

.contact-btn:hover {
    opacity: 0.8;
}

.btn-email { background-color: var(--primary-color); }
.btn-ws { background-color: #25D366; }

/* ================= BOTÓN WHATSAPP FLOTANTE ================= */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    left: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* ================= FOOTER ================= */
footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--text-light);
        text-align: center;
        padding: 20px 0;
        box-shadow: 0 5px 5px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .whatsapp-float {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 25px;
    }
}