/* --- FUNDAMENTOS Y RESET --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, sans-serif; background: #fff; color: #000; overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 25px; }

/* --- HEADER Y NAVEGACIÓN --- */
.header-transparente { position: absolute; top: 0; width: 100%; z-index: 1000; padding: 25px 0; }
.nav-flex { display: flex; justify-content: space-between; align-items: center; }
.logo { color: #fff; font-weight: 900; font-size: 1.4rem; letter-spacing: -1px; text-transform: uppercase; }
.logo .thin { font-weight: 200; }
.nav-list { display: flex; list-style: none; align-items: center; gap: 30px; }
.nav-link { text-decoration: none; color: #fff; font-size: 0.8rem; text-transform: uppercase; font-weight: 700; letter-spacing: 1px; transition: 0.3s; }
.btn-resaltado { text-decoration: none; color: #000; background: #fff; padding: 10px 20px; font-weight: 800; font-size: 0.75rem; text-transform: uppercase; }

/* BOTÓN HAMBURGUESA */
.menu-toggle { display: none; flex-direction: column; cursor: pointer; gap: 6px; z-index: 1100; }
.bar { width: 25px; height: 2px; background-color: #fff; transition: 0.4s; }

/* --- HERO SECTION --- */
.hero-impacto {
    position: relative; height: 100vh; min-height: 600px; display: flex; align-items: center;
    background-image: url('img/nodos.png');
    background-size: cover; background-position: center; color: #fff;
}
.overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.75); }
.contenido-hero { position: relative; z-index: 5; }
.hero-texto h1 { font-size: 4.5rem; line-height: 0.9; font-weight: 900; letter-spacing: -3px; margin-bottom: 25px; }
.hero-texto p { font-size: 1.2rem; max-width: 500px; opacity: 0.8; font-weight: 300; }

/* --- SECCIÓN SOBRE NOSOTROS --- */
.seccion-nosotros { padding: 120px 0; background: #fff; }
.sub-marca { font-size: 0.7rem; font-weight: 800; letter-spacing: 4px; color: #888; display: block; margin-bottom: 15px; }
.titulo-seccion { font-size: 3.5rem; font-weight: 900; line-height: 1; letter-spacing: -2px; max-width: 800px; }
.grid-nosotros { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 80px; margin-top: 40px; }
.columna-texto .lead { font-size: 1.6rem; font-weight: 600; line-height: 1.3; margin-bottom: 30px; }
.valor-item { border-top: 1px solid #eee; padding-top: 25px; margin-bottom: 40px; }
.valor-item h3 { font-size: 1.1rem; font-weight: 800; text-transform: uppercase; margin-bottom: 10px; }

/* --- SECCIÓN SERVICIOS CON ICONOS --- */
.seccion-servicios { padding: 120px 0; background-color: #f9f9f9; }
.grid-servicios { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.tarjeta-servicio { background: #fff; border: 1px solid #000; padding: 50px 40px; transition: 0.4s; }
.tarjeta-servicio:hover { background: #000; color: #fff; transform: translateY(-10px); }

.servicio-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 30px; }
.servicio-icon { width: 40px; height: 40px; color: #000; transition: 0.4s; }
.tarjeta-servicio:hover .servicio-icon { color: #fff; }

.servicio-numero { font-size: 0.8rem; font-weight: 900; opacity: 0.4; }
.tarjeta-servicio h3 { font-size: 1.6rem; font-weight: 800; text-transform: uppercase; margin-bottom: 20px; }
.lista-check { list-style: none; margin-top: 30px; }
.lista-check li { font-size: 0.85rem; font-weight: 600; margin-bottom: 10px; padding-left: 15px; position: relative; }
.lista-check li::before { content: "—"; position: absolute; left: 0; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .nav-menu {
        position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
        background: #000; display: flex; flex-direction: column; justify-content: center; align-items: center; transition: 0.5s;
    }
    .nav-menu.active { right: 0; }
    .nav-list { flex-direction: column; gap: 35px; }
    .nav-link { font-size: 1.8rem; }
    .hero-texto h1 { font-size: 2.8rem; }
    .grid-nosotros { grid-template-columns: 1fr; }
    .titulo-seccion { font-size: 2.2rem; }
    .is-active .bar:nth-child(2) { opacity: 0; }
    .is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
/* --- BOTÓN WHATSAPP FLOTANTE (POSICIÓN DERECHA) --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px; 
    right: 40px;   /* CORREGIDO A LA DERECHA */
    background-color: #000;
    color: #FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    z-index: 9999;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255,255,255,0.1);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
    background-color: #25d366; /* Verde WhatsApp al interactuar */
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 25px;
        right: 20px; /* Ajuste fino para pantallas pequeñas */
    }
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}
/* --- SECCIÓN CERTIFICACIONES --- */
.seccion-certificados {
    padding: 100px 0;
    background-color: #ffffff;
    border-top: 1px solid #eee;
}

.cert-header {
    text-align: center;
    margin-bottom: 70px;
}

.desc-seccion {
    max-width: 600px;
    margin: 20px auto 0;
    font-size: 1.1rem;
    color: #666;
}

.grid-certificados {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card-cert {
    padding: 40px;
    background: #fff;
    border: 1px solid #eee;
    text-align: center;
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-cert:hover {
    border-color: #000;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}

/* CONTENEDOR DE LOGOS */
.logo-wrapper {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.logo-color {
    max-width: 140px;
    max-height: 80px;
    object-fit: contain;
    /* Efecto: Escala de grises por defecto, color al pasar el ratón */
    filter: grayscale(100%);
    opacity: 0.7;
    transition: 0.4s;
}

.card-cert:hover .logo-color {
    filter: grayscale(0%);
    opacity: 1;
}

.cert-info h3 {
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.cert-info p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .grid-certificados { grid-template-columns: 1fr; }
    .card-cert { padding: 30px 20px; }
}
/* --- SECCIÓN CERTIFICACIONES (SIN EFECTOS Y LOGOS GRANDES) --- */
.seccion-certificados {
    padding: 100px 0;
    background-color: #ffffff;
    border-top: 1px solid #eee;
}

.cert-header {
    text-align: center;
    margin-bottom: 70px;
}

.grid-certificados {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.card-cert {
    padding: 50px 30px;
    background: #fff;
    border: 1px solid #eee;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.card-cert:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}

/* CONTENEDOR DE LOGOS: MÁS GRANDES Y SIEMPRE A COLOR */
.logo-wrapper {
    width: 100%;
    height: 140px; /* Aumentado de 120px a 140px */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.logo-color {
    max-width: 220px; /* Aumentado de 160px a 220px */
    max-height: 110px; /* Aumentado de 85px a 110px */
    object-fit: contain;
    /* Eliminado cualquier rastro de filter: grayscale y opacity */
    filter: none !important; 
    opacity: 1 !important;
}

.cert-info h3 {
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: #000;
    letter-spacing: -0.5px;
}

.cert-info p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .grid-certificados { grid-template-columns: 1fr; }
    .logo-color { max-width: 180px; }
}