/* =========================================
   CONFIGURACIÓN BASE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #0b0f1a;
    color: white;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* =========================================
   NAVBAR
   ========================================= */
header {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background: rgba(11, 15, 26, 0.95);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.logo img {
    height: 50px;
    width: auto;
}

nav {
    display: flex;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #3BFFDF !important;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 10%;
    background: url('img/ingeniero-datacenter-qapak-solutions2.png') no-repeat center center/cover fixed;
    position: relative;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(11, 15, 26, 0.9), rgba(11, 15, 26, 0.4)); 
    z-index: 1;
}

.hero-text {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.hero h1 {
    font-size: 55px;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 25px;
}

.btn {
    background: #0000E3;
    padding: 16px 35px;
    border-radius: 5px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: 0.3s;
    display: inline-block;
}

.btn:hover {
    background: #0000b3;
    transform: scale(1.05);
}


/* =========================================
   SECCIÓN QUIÉNES SOMOS (REDISEÑO FINAL)
   ========================================= */
.quienes-somos-full {
    width: 100%;
    background: #FFFFFF;
    overflow: hidden;
}

.quienes-container {
    display: flex;
    min-height: 85vh;
}

/* Columna Blanca */
.quienes-logo-col {
    flex: 1;
    background: #FFFFFF;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px;
}

.quienes-vertical-logo {
    max-width: 280px;
    height: auto;
}

/* Columna Negra */
.quienes-text-col {
    flex: 1;
    background: #000000;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    padding: 80px 10% 80px 5%;
    position: relative;
}

.quienes-content-wrapper {
    max-width: 600px;
    z-index: 2;
}

.quienes-text-col h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 5px;
}

.quienes-text-col h3 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #FFFFFF;
}

.quienes-text-col p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #e0e0e0;
    font-weight: 300;
}

.quienes-text-col p strong {
    color: #FFFFFF;
    font-weight: 600;
}

/* Gráfico decorativo de la derecha */
.quienes-graphic-overlay {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 100px;
    height: 200px;
    border-left: 2px solid rgba(255,255,255,0.2);
    border-radius: 100px 0 0 100px;
}

.quienes-graphic-overlay::after {
    content: '';
    position: absolute;
    left: -10px;
    bottom: 40px;
    width: 20px;
    height: 20px;
    background: #0000E3;
    border-radius: 50%;
}

/* Responsivo */
@media(max-width: 992px) {
    .quienes-container {
        flex-direction: column;
    }
    .quienes-logo-col, .quienes-text-col {
        flex: none;
        width: 100%;
        padding: 60px 8%;
    }
    .quienes-text-col {
        text-align: center;
    }
    .quienes-graphic-overlay {
        display: none;
    }
}


/* --- Estilos para el Icono de Contacto en el Menú --- */

/* 1. Estado Inicial: Convertir icono negro a BLANCO */
.nav-icon {
    width: 28px; /* Ajusta el tamaño para que armonice con el texto */
    height: auto;
    vertical-align: middle;
    transition: filter 0.3s ease, transform 0.3s ease; /* Transición suave */

    /* Filtro para hacer blanca una imagen negra:
       Invertimos el color (negro -> blanco) y aseguramos brillo total. */
    filter: invert(100%) brightness(200%);
}

/* Contenedor del enlace para alineación */
.nav-icon-link {
    display: inline-flex;
    align-items: center;
    padding: 0 15px; /* Espaciado lateral igual que los otros menús */
    text-decoration: none; /* Quita subrayado si lo tuviera */
}

/* 2. Estado Hover: Cambiar al color verde exacto #3BFFDF */
.nav-icon-link:hover .nav-icon {
    /* Filtro para lograr el color #3BFFDF desde blanco:
       Este filtro es complejo para lograr el tono cian/verde brillante exacto. */
    filter: invert(74%) sepia(95%) saturate(1915%) hue-rotate(113deg) brightness(108%) contrast(107%);
    
    /* Efecto opcional de agrandado suave */
    transform: scale(1.15);
}


/* =========================================
   TÍTULOS GLOBALES CON LÍNEA AZUL
   ========================================= */
.proposito h2, 
.valores h2, 
.servicios h2, 
.experiencia h2,
.contacto-seccion h2 {
    font-size: 38px;
    color: white;
    font-weight: 700;
    position: relative;
    display: inline-block;
    margin-bottom: 50px;
text-align: left; /* Asegura alineación a la izquierda */
}

.proposito h2::after, 
.valores h2::after, 
.servicios h2::after,
.experiencia h2::after, 
.contacto-seccion h2::after {
    content: '';
    position: absolute;
    width: 60%;         
    height: 10px;        
    background-color: #0000E3; 
    bottom: -15px;       
    left: 0;
    border-radius: 2px;
}

/* =========================================
   SECCIÓN PROPÓSITO (CENTRADO Y RESALTADO)
   ========================================= */
.proposito {
    background: #000000; 
    padding: 120px 10%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.proposito-container {
    max-width: 1100px;
    width: 100%;
}

.proposito h2::after {
    left: 0%; /* Centra la línea azul del título */
}

/* =========================================
   TAMAÑO DE PARRAFOS
   ========================================= */
.text-design {
    font-size: 35px; 
    line-height: 1.4;
    color: #ffffff;
    font-weight: 300;
    margin-bottom: 40px;
}

.text-design strong {
    font-weight: 700;
}

.highlight-box {
    background-color: #79f8d4; 
    color: #000000;
    padding: 2px 12px;
    font-weight: 700;
    display: inline; 
    border-radius: 2px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* =========================================
   SERVICIOS, VALORES E INNOVACIÓN
   ========================================= */
.section { 
    padding: 100px 8%; 
}

.section h3 { 
    font-size: 26px; 
    color: #3BFFDF; 
    margin-bottom: 15px; 
}

.services, .valores-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.card, .valor-card {
    background: #121a33;
    padding: 35px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.card:hover, .valor-card:hover {
    border-color: #3BFFDF;
    transform: translateY(-5px);
}

.card.highlight {
    border: 1px solid #3BFFDF;
    background: rgba(59, 255, 223, 0.05);
}

.benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.benefit {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}


.wheel-icon img {
    width: 60%; /* Ajusta este porcentaje para que el icono no toque los bordes del círculo */
    height: 60%;
    object-fit: contain; /* Mantiene la proporción sin deformar */

/* Convierte cualquier color oscuro en blanco puro */
    filter: brightness(0) invert(1);
    
   /* Asegura un renderizado nítido del SVG */
    image-rendering: -webkit-optimize-contrast;

/* Suavizado para las transiciones */
    transition: filter 0.3s ease;

}


/* Para que el icono se mantenga centrado */
.wheel-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}






/* Contenedor principal del centro */
.wheel-center { 
    width: 1080px; 
    height: 1080px; 
    position: relative;
    z-index: 10; 
    display: flex; 
    justify-content: center; 
    align-items: center;
    
}

/* Capa del Borde (Los 4 colores en cruz) */
.wheel-border {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    /* Gradiente exacto: Turquesa y Azul eléctrico */
    background: conic-gradient(
        #3BFFDF 0deg 90deg, 
        #0000E3 90deg 180deg, 
        #3BFFDF 180deg 270deg, 
        #0000E3 270deg 360deg
    ) !important;
    z-index: -1;
}

/* Capa Blanca Interior */
.wheel-content-inner {
    width: calc(100% - 0.5px); /* El '20px' define el grosor del borde */
    height: calc(100% - 0.5px);
    background: white !important;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 5px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
}


/* Iconos Blancos */
.wheel-icon img {
    width: 50%;
    height: 50%;
    filter: brightness(0) invert(1) !important;
}

/* =========================================
  EXPERIENCIA
   ========================================= */

.experiencia {
    background: #0b0f1a; /* O el color de fondo que prefieras */
    padding: 100px 8%; 
    display: block;
}

.experiencia-container {
    max-width: 1200px;
    width: 100%;
    text-align: left;
}

/* Creamos una variante de texto más pequeña para que no se vea gigante 
   comparado con las tarjetas de arriba */
.text-design-short {
    font-size: 28px; /* Bajamos de 42px a 28px para mejor equilibrio visual */
    line-height: 1.4;
    color: #ffffff;
    font-weight: 300;
    margin-top: 20px;
}




/* ============================================================
   ESTÁNDAR DE LOGOS: SOLO SECCIÓN EXPERIENCIA
   ============================================================ */

/* 1. Forzamos que cada bloque de logos respete el flujo del grid */
#Experiencia .marcas-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;              /* Espacio uniforme entre marcas */
    align-items: center;    /* Centrado vertical entre logos de distintas formas */
    justify-content: flex-start;
    min-height: 50px;
}

    
    /* Estética corporativa Q’apak Solutions */
    filter: brightness(0) invert(1); /* Los vuelve blancos para un look premium */
    opacity: 0.7;
    transition: all 0.3s ease;
    animation: heartbeat 4s infinite ease-in-out;
}

/* 3. Comportamiento interactivo */
#Experiencia .logo-latido:hover {
    filter: none;           /* Recuperan su color original al pasar el mouse */
    opacity: 1;
    transform: scale(1.1);
    animation-play-state: paused; /* Se detiene el latido para facilitar la vista */
}

/* 4. Ajuste para pantallas pequeñas */
@media (max-width: 768px) {
    #Experiencia .logo-latido {
        height: 32px;       /* Reducimos un poco el tamaño en móviles */
        width: 110px;
    }
}






/* ============================================================
   ESTADO HOVER DEFINITIVO: COLOR ORIGINAL + RESPLANDOR AZUL
   ============================================================ */
section#Experiencia .experiencia-grid-principal .experiencia-block .marcas-flex img.logo-latido:hover {
    /* 1. Opacidad y escala */
    opacity: 1 !important;
    transform: scale(1.20) !important;
    animation-play-state: paused !important;

    /* 2. EL CAMBIO CLAVE: 
       brightness(1) invert(0) -> Devuelve el color original
       drop-shadow -> Crea el resplandor azul #0000FF
    */
    filter: brightness(1) invert(0) drop-shadow(0 0 20px #0000FF) !important;
    -webkit-filter: brightness(1) invert(0) drop-shadow(0 0 15px #0000FF) !important;
    
    cursor: pointer;
}




/* Mantén este bloque debajo tal como lo tienes para no perder la alineación */


#Experiencia .marcas-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center; /* Esto mantiene todos los logos alineados al centro visual */
    min-height: 100px;    /* Espacio suficiente para los logos grandes */

}






/* =========================================
   CONTACTO Y FORMULARIO
   ========================================= */
.contacto-seccion {
    padding: 100px 8%;
}

.contact-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
}

.mascota-contacto {
    height: 80px;
    width: auto;
}

form { 
    max-width: 600px; 
}

input, textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;
    background: #121a33;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 5px;
    outline: none;
}

input:focus, textarea:focus {
    border-color: #3BFFDF;
}

button {
    background: #0000E3;
    width: 100%;
    padding: 16px;
    border: none;
    color: white;
    font-weight: 600;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
}

button:hover {
    background: #0000b3;
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    padding: 60px 20px;
    text-align: center;
    background: #050914;
    color: #888;
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Estilo específico para el icono de LinkedIn */
.linkedin-icon-link img {
    width: 24px;  /* Tamaño del icono */
    height: 24px;
    vertical-align: middle;
    transition: all 0.3s ease;
    
}

/* Estilo específico para el icono de LinkedIn */
.linkedin-icon-link img {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    transition: all 0.3s ease;
    
    
}

/* =========================================
   AJUSTES ESPECÍFICOS PARA ICONOS
   ========================================= */

/* Asegura que la card alinee todo a la izquierda */
.services .card {
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
    text-align: left;
}

/* Contenedor del icono */
.card-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 20px;
}

/* Estilo de la imagen SVG */
.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Filtro para convertir iconos negros al turquesa #3BFFDF */
    filter: invert(82%) sepia(36%) saturate(1000%) hue-rotate(120deg) brightness(100%) contrast(105%);
}

/* Ajuste de espacio para los párrafos de la lista */
.card p {
    margin-bottom: 5px;
    font-size: 0.8rem;
}


/* NUEVOS ESTILOS PARA SUBSERVICIOS */
.subservices-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
    width: 100%;
}

.subservices-list li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.8rem;
    color: #e0e0e0;
    transition: all 0.3s ease;
}

.subservices-list li img {
    width: 28px;
    height: 28px;
    margin-right: 12px;
    object-fit: contain;
   
/* Mismo filtro AZUL ELÉCTRICO que los principales */
    filter: invert(8%) sepia(97%) saturate(7407%) hue-rotate(247deg) brightness(85%) contrast(115%);
}

.subservices-list li:hover {
    transform: translateX(8px);
    color: #3BFFDF;
}




/* =========================================
   REDISEÑO EXPERIENCIA (2 COLUMNAS)
   ========================================= */

.experiencia {
    padding: 100px 8%;
    background: #0b0f1a; /* Fondo original conservado */
}

/* Grid Principal de 2 Columnas */
.experiencia-grid-principal {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dos columnas iguales */
    gap: 60px 40px; /* Espacio entre filas y columnas */
    margin-top: 50px;
}

.experiencia-block {
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Línea sutil divisoria */
    padding-top: 20px;
}

.experiencia-block h3 {
    font-size: 18px;
    color:  #B2B2B2; /* COLOR DE SUB TITULOS EXPERIENCIA */
    margin-bottom: 25px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Contenedor de logos dentro de cada bloque */
.marcas-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    align-items: center;
}

.logo-latido {
    max-height: 35px; /* Altura uniforme para logos */
    width: auto;
    filter: brightness(1.2); /* Mejora visibilidad en fondo oscuro */
    transition: transform 0.3s ease;
    animation: heartbeat 4s infinite ease-in-out;
}

.logo-latido:hover {
    transform: scale(1.1);
    animation-play-state: paused; /* Se detiene al pasar el mouse */
}

/* =========================================
   ANIMACIÓN HEARTBEAT (LATIDO)
   ========================================= */
@keyframes heartbeat {
    0% { transform: scale(1); }
    10% { transform: scale(1.08); }
    20% { transform: scale(1); }
    30% { transform: scale(1.08); }
    50% { transform: scale(1); }
}



/* Ajuste Responsivo */
@media(max-width: 768px) {
    .logo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}



/* Responsivo */
@media(max-width: 900px) {
    .text-design { font-size: 26px; }
    .proposito { padding: 80px 5%; }
    .contact-header { flex-direction: column; text-align: center; }
}


/* =========================================
   BOTÓN FLOTANTE DE WHATSAPP (Q'APAK STYLE)
   ========================================= */
.whatsapp-float {
    position: fixed;
    width: 65px;
    height: 65px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366; /* Verde original de WhatsApp */
    color: #FFF;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000; /* Por encima de todo el contenido */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float img {
    width: 35px;
    height: 35px;
}

/* Efecto Hover inspirado en tu sección Experiencia */
.whatsapp-float:hover {
    transform: scale(1.15);
    background-color: #0000E3; /* Cambia a tu Azul Eléctrico al pasar el mouse */
    box-shadow: 0 0 25px rgba(59, 255, 223, 0.6); /* Resplandor Turquesa */
}

/* Animación de entrada suave */
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

.whatsapp-float {
    animation: fadeInRight 1s ease-out;
}

/* Adaptación para móviles (Responsivo) */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 25px;
        right: 25px;
    }
    .whatsapp-float img {
        width: 30px;
    }
}
