/* --- VARIABLES DE MARCA --- */
:root {
    --primary-color: #1b1f5b; /* Azul oscuro del logo */
    --secondary-color: #D1242A; /* Rojo del logo */
    --accent-color: #F4B634; /* Amarillo del logo */
    --text-dark: #333;
    --text-light: #f4f4f4;
    --bg-light: #f9f9f9;
}

/* --- ESTILOS GENERALES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    
    /* CONFIGURACIÓN DEL FONDO PARA TODA LA PÁGINA */
    background-image: url('Fondo_A4.webp'); /* Tu imagen de fondo */
    background-size: cover;                /* Cubre todo el ancho/alto */
    background-repeat: no-repeat;
    background-attachment: fixed;          /* ¡Truco! La imagen se queda quieta al bajar */
    background-position: center;
    background-color: #f4f4f4;             /* Color de respaldo */
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--secondary-color);
    color: #fff;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #a0151a;
    transform: translateY(-2px);
}

/* --- HEADER / NAVEGACIÓN --- */
header {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 60px; /* Ajuste del logo Asset 1.webp */
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    font-weight: 500;
    color: var(--primary-color);
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* --- HERO SECTION (BANNER) --- */
.hero {
    /* 1. Carga la imagen y asegura que cubra todo el espacio sin deformarse */
    background-image: url('Banner_doc.webp'); /* Asegúrate que el nombre sea exacto */
    background-size: cover;      /* Clave: Escala la imagen para cubrir el área */
    background-position: center; /* Clave: Centra la imagen */
    background-repeat: no-repeat;
    
    /* 2. Filtro oscuro para que el texto blanco se lea encima de la imagen */
    position: relative;
    z-index: 1;
    
    /* 3. Altura para Computador (Desktop) */
    height: 80vh; /* 80% de la altura de la pantalla */
    display: flex;
    align-items: center;
    justify-content: center; /* Centra el texto horizontalmente */
    text-align: center;
    color: #fff;
}

/* Capa oscura superpuesta (Overlay) para mejorar lectura */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 38, 64, 0.6); /* Azul oscuro semitransparente */
    z-index: -1; /* Se coloca detrás del texto pero sobre la imagen */
}

.hero-content {
    width: 90%; /* En móviles usa el 90% del ancho */
    max-width: 950px; /* En PC no pasa de 950px */
    padding: 20px;
}

/* --- AJUSTES PARA MÓVILES (MEDIA QUERY) --- */
@media (max-width: 768px) {
    .hero {
        /* En celular, reducimos la altura para que no ocupe toda la pantalla */
        height: 60vh; 
        /* Opcional: Si lo importante de la foto está arriba, cambia 'center' por 'top' */
        background-position: center; 
    }

    .hero h1 {
        font-size: 2rem; /* Texto más pequeño */
    }

    .hero p {
        font-size: 1rem;
        display: none; /* Opcional: Ocultar el párrafo largo en móviles si tapa mucho la imagen */
    }
}


/* --- TRUST SIGNALS (POR QUÉ NOSOTROS) --- */
.features {
    padding: 60px 0;
    /* Blanco al 90% de opacidad para ver sutilmente el fondo detrás */
    background: rgba(255, 255, 255, 0.3); 
    text-align: center;
}

.features-grid {
    background: rgba(255, 255, 255, 0.3);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
     
}

.feature-card {
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: 0.3s;
    background: rgba(255, 255, 255, 0.2); 
}

.feature-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.feature-card i {
    background: rgba(255, 255, 255, 0.9); 
    font-size: 2.5rem;
    color: var(--primary-color); 
    margin-bottom: 15px;
   
}

/* --- SERVICIOS --- */
.services {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-title .line {
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    /* Blanco al 90% para que el texto se lea bien */
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-img {
    height: 200px;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
}

.service-info {
    padding: 20px;
}

.service-info h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.service-info ul {
    font-size: 0.9rem;
    margin-bottom: 15px;
    list-style: disc;
    margin-left: 20px;
}

/* --- DESTACADO: TECNOLOGÍA HVA 60 --- */
.tech-highlight {
    /* CAMBIO CLAVE: Azul corporativo (#1B3F5B) con transparencia al 90% */
    background: rgba(255, 255, 255, 0);
    
    /* Efecto de desenfoque para que el texto se lea nítido sobre el fondo 
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);  */
    
    color: var(--primary-color);
    padding: 80px 0;
    display: flex;
    align-items: center;
    
    /* Bordes sutiles para separar visualmente la sección */
    border-top: 1px solid rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.7);
}

.tech-container {
    background: rgba(255, 255, 255, 0);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.tech-text {
    background: rgba(255, 255, 255, 0);
    flex: 1;
}

.tech-image {
    background: rgba(255, 255, 255, 0);
    flex: 1;
    text-align: center;
}

.tech-image img {
    max-width: 100%;
    border-radius: 10px;
    border: 4px solid var(--accent-color);
}

/* --- CLIENTES --- */
.clients {
    padding: 60px 0;
    text-align: center;
    background: rgba(255, 255, 255, 0); /* Un poco más transparente */
    color: var (--primary-color);
}

.clients-grid {
    background: rgba(255, 255, 255, 0);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    opacity: 0.9;
    color: var (--primary-color);   
}

.client-logo {
    font-weight: bold;
    font-size: 1.2rem;
    color: #888;
    /* Aquí irían los logos reales */
}

/* --- CONTACTO --- */
.contact {
    padding: 80px 0;
    background: var(--primary-color);
    color: #fff;
     opacity: 0.8;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-info h3 {
    margin-bottom: 20px;
    color: var(--accent-color);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-item i {
    margin-right: 15px;
    color: var(--secondary-color);
}

form input, form textarea, form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: none;
    border-radius: 5px;
}

/* --- FOOTER --- */
footer {
    background: #111;
    color: #777;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .nav-links { display: none; } /* En una versión real se usaría un menú hamburguesa */
}

/* --- WIDGET Y BOTÓN FLOTANTE WHATSAPP --- */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
}

.whatsapp-float {
    background-color: #25d366;
    color: #ffffff !important;
    border-radius: 50%;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    position: relative;
}

.whatsapp-float:hover {
    background-color: #20ba57;
    transform: scale(1.1);
    box-shadow: 0 8px 26px rgba(37, 211, 102, 0.55);
    color: #ffffff !important;
}

/* Pulso animado sutil */
.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25d366;
    opacity: 0.5;
    z-index: -1;
    animation: whatsapp-pulse 2.5s infinite;
}

@keyframes whatsapp-pulse {
    0% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.3); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}

/* Burbuja de mensaje 'Charlemos' */
.whatsapp-bubble {
    opacity: 0;
    visibility: hidden;
    transform: translateX(12px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: #ffffff;
    color: #1b1f5b;
    padding: 10px 18px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.18);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.whatsapp-bubble::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 0 6px 8px;
    border-style: solid;
    border-color: transparent transparent transparent #ffffff;
}

.whatsapp-bubble.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
}

.bubble-close {
    font-size: 1.15rem;
    color: #999;
    cursor: pointer;
    margin-left: 4px;
    line-height: 1;
    transition: color 0.2s;
}

.bubble-close:hover {
    color: #1b1f5b;
}

@media (max-width: 768px) {
    .whatsapp-widget {
        bottom: 20px;
        right: 20px;
        gap: 8px;
    }
    .whatsapp-float {
        width: 62px;
        height: 62px;
        font-size: 34px;
    }
    .whatsapp-bubble {
        font-size: 0.9rem;
        padding: 8px 14px;
    }
}

