:root {
    --color-primary: rgb(41, 167, 55);
    --color-secondary: #175676; 
    --color-accent: #4BA3E3; 
    --bg-white: #ffffff;
    --bg-light: #f4f7f6;
    --text-main: #333333;
    --text-light: #555555;
    --transition-speed: 0.4s;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background-color: var(--bg-white); color: var(--text-main); line-height: 1.6; }

/* UTILIDADES */
.section-padding { padding: 100px 5%; max-width: 1300px; margin: 0 auto; }
.bg-light { background-color: var(--bg-light); max-width: 100%; }
.mt-3 { margin-top: 30px; }

/* IMÁGENES */
.responsive-img { width: 100%; height: auto; display: block; object-fit: cover; }
.rounded-img { border-radius: 12px; }
.shadow { box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

/* NAVEGACIÓN */
#navbar {
    position: fixed; top: 0; width: 100%; padding: 25px 5%; z-index: 1000;
    background: transparent; transition: all var(--transition-speed) ease;
}
#navbar.scrolled { background: var(--bg-white); padding: 15px 5%; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 1300px; margin: 0 auto; }
.logo img { height: 45px; transition: all var(--transition-speed) ease; }
.nav-links { list-style: none; display: flex; gap: 30px; }
.nav-links a { text-decoration: none; color: #ffffff; font-weight: 600; transition: color 0.3s; }
#navbar.scrolled .nav-links a { color: var(--text-main); }
#navbar.scrolled .nav-links a:hover { color: var(--color-primary); }

/* --- MENÚ HAMBURGUESA (Por defecto oculto en Desktop) --- */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001; /* Para que quede por encima del menú desplegable */
}

.hamburger .bar {
    width: 30px;
    height: 3px;
    background-color: #ffffff; /* Blanco cuando está en el top transparente */
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* Cambiar color de la hamburguesa cuando el nav hace scroll a fondo blanco */
#navbar.scrolled .hamburger .bar {
    background-color: var(--color-primary);
}

/* HERO SECTION (Actualizado para el nuevo contenido) */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; color: white; padding: 120px 20px 60px 20px; }
.hero-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(10, 35, 66, 0.2); z-index: -1; }
.hero-content { max-width: 1000px; width: 100%; }
.hero-content h1 { font-size: 3rem; font-weight: 800; margin-bottom: 20px; }
.hero-lead { font-size: 1.15rem; margin-bottom: 40px; font-weight: 300; max-width: 800px; margin-left: auto; margin-right: auto; }

/* Hero Grid */
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 40px; text-align: left; }
.hero-card { background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); padding: 25px; border-radius: 10px; border-left: 4px solid var(--color-accent); }
.hero-card h4 { color: var(--color-accent); margin-bottom: 10px; font-size: 1.1rem; }
.hero-card p { font-size: 0.9rem; line-height: 1.5; color: #e0e0e0; }
.hero-footer-text { font-size: 1.1rem; font-weight: 600; }

/* BOTONES */
.btn-primary { display: inline-block; padding: 15px 30px; background: var(--color-accent); color: white; text-decoration: none; border-radius: 5px; font-weight: 600; border: none; cursor: pointer; transition: 0.3s; }
.btn-primary:hover { background: var(--color-primary); }

/* --- WORKING TOGETHER SECTION --- */
.section-header p {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-top: 10px;
}

.service-block {
    margin-bottom: 45px;
}

.service-block h3 {
    color: var(--color-primary);
    font-size: 1.4rem;
    margin-bottom: 12px;
    border-left: 4px solid var(--color-accent);
    padding-left: 15px;
}

.service-desc {
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.service-list {
    list-style: none;
    padding-left: 20px;
}

.service-list li {
    position: relative;
    margin-bottom: 12px;
    color: var(--text-main);
    line-height: 1.5;
}

/* Viñetas personalizadas con check mark */
.service-list li::before {
    content: '✓';
    position: absolute;
    left: -25px;
    color: var(--color-accent);
    font-weight: 800;
}

/* Efecto Sticky para la imagen: se queda fija acompañando la lectura del usuario */
.sticky-img {
    position: sticky;
    top: 120px; /* Distancia desde el tope de la pantalla, dejando espacio para el menú */
}

/* ABOUT SECTION */
.grid-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; margin-bottom: 80px; }
.about-text h2 { font-size: 2.5rem; color: var(--color-primary); margin-bottom: 20px; }
.about-text p { font-size: 1.1rem; color: var(--text-light); }

/* Pillars Grid */
.pillars-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-bottom: 80px; }
.pillar-card { background: #fff; padding: 30px; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); border-top: 3px solid var(--color-primary); }
.pillar-card h3 { color: var(--color-primary); margin-bottom: 15px; font-size: 1.2rem; }

/* Timeline List */
.resume-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.resume-grid h3 { color: var(--color-primary); font-size: 1.8rem; margin-bottom: 30px; border-bottom: 2px solid var(--color-accent); padding-bottom: 10px; display: inline-block; }
.timeline-list { list-style: none; border-left: 2px solid var(--color-accent); margin-left: 10px; padding-left: 20px; }
.timeline-list li { position: relative; margin-bottom: 25px; color: var(--text-light); }
.timeline-list li::before { content: ''; position: absolute; left: -27px; top: 5px; width: 12px; height: 12px; background: var(--color-accent); border-radius: 50%; }

/* CONTACT SECTION */
.contact-container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; max-width: 1200px; margin: 0 auto; }
.contact-info h2 { font-size: 2.5rem; color: var(--color-primary); margin-bottom: 20px; }

/* Contact Form */
.contact-form-wrapper { background: #fff; padding: 40px; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.08); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--color-primary); }
.form-group input, .form-group textarea { width: 100%; padding: 12px 15px; border: 1px solid #ddd; border-radius: 6px; font-family: inherit; font-size: 1rem; transition: border 0.3s; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(75, 163, 227, 0.1); }
.form-submit { width: 100%; font-size: 1.1rem; }

/* FOOTER */
footer { background: var(--color-primary); color: white; padding: 40px 5%; text-align: center; }
.footer-content { display: flex; justify-content: space-between; align-items: center; max-width: 1300px; margin: 0 auto 20px auto; flex-wrap: wrap; }
.footer-logo { height: 35px; }
.social-links a { color: white; margin-left: 15px; text-decoration: none; opacity: 0.8; }
.social-links a:hover { opacity: 1; }
.copyright { font-size: 0.9rem; opacity: 0.7; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; margin-top: 20px; }

/* ANIMACIONES */
.animate-on-scroll { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Oculto fuera de la pantalla por la derecha */
        width: 70%; /* Ocupa el 70% de la pantalla */
        height: 100vh;
        background-color: var(--bg-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }

    /* Clase que se activa con JS para mostrar el menú */
    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 25px 0;
    }

    /* En el menú móvil, los links siempre deben ser oscuros */
    .nav-links a,
    #navbar.scrolled .nav-links a {
        color: var(--color-primary);
        font-size: 1.5rem;
    }

    /* Animación de la Hamburguesa a "X" */
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        background-color: var(--color-primary); /* Forzar color oscuro en la X */
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0; /* La barra del medio desaparece */
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background-color: var(--color-primary); /* Forzar color oscuro en la X */
    }

    /* Ajustes generales para móvil */
    .hero-content h1 { font-size: 2.2rem; }
    .grid-2-col, .resume-grid, .contact-container { grid-template-columns: 1fr; gap: 40px; }
    .about-image-wrapper { order: -1; } /* Sube la imagen del About arriba en móviles */
}