/* Importar fuentes (Inter para el cuerpo, Arial/System-UI para el logo) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Variables CSS con los colores de tu logotipo */
:root {
    --brand-teal: #00807A; /* Color del icono y la palabra SOFTWARE */
    --brand-dark: #555555; /* Color de la palabra CODATEC */
    
    /* Sobrescribiendo variables de Bootstrap */
    --bs-primary: var(--brand-teal);
    --bs-primary-rgb: 0, 128, 122;
}

/* Reglas Generales */
html {
    scroll-behavior: smooth; 
}

body {
    font-family: 'Inter', sans-serif;
    color: #333;
    padding-top: 76px; 
}

/* =========================================
   ESTILOS DEL LOGO 
   ========================================= */
.logo-text-main {
    color: var(--brand-dark);
    font-weight: 900;
    font-size: 1.6rem;
    letter-spacing: 2px;
    font-family: 'Arial Black', Impact, sans-serif;
}

.logo-text-sub {
    color: var(--brand-teal);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 5px;
    margin-top: 3px;
    font-family: 'Inter', sans-serif;
}

/* Forzar colores primarios de Bootstrap al Teal de tu marca */
.text-primary { color: var(--brand-teal) !important; }
.bg-primary { background-color: var(--brand-teal) !important; }

/* Botones */
.btn-primary {
    background-color: var(--brand-teal);
    border-color: var(--brand-teal);
    transition: all 0.3s ease;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #006661;
    border-color: #006661;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 128, 122, 0.3);
}

.hover-scale {
    transition: transform 0.2s ease;
}
.hover-scale:hover {
    transform: scale(1.05);
}

/* Tipografía y Divisores */
.divider {
    height: 4px;
    width: 60px;
    border-radius: 2px;
    margin-top: 10px;
}

/* Hero Section (Inicio) */
.hero-section {
    position: relative;
    background-color: #ffffff;
    
    /* Patrón de cuadrícula tecnológica (Grid) con el color de tu marca muy tenue */
    background-image: 
        linear-gradient(rgba(0, 128, 122, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 128, 122, 0.08) 1px, transparent 1px);
    background-size: 40px 40px; /* Tamaño de la cuadrícula */
    background-position: center center;
    
    margin-top: -76px; /* Compensa el padding del body */
    overflow: hidden;
}

/* Efecto de viñeta/difuminado para suavizar la cuadrícula en los bordes */
.hero-section::before {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    /* Crea un resplandor central transparente que se vuelve blanco hacia las orillas */
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.95) 80%);
    pointer-events: none; /* Asegura que puedas hacer clic en los botones debajo */
}

/* Aseguramos que el contenido principal siempre esté por encima del fondo */
.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Tarjetas de Servicios */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.08) !important;
}

/* Formularios */
.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 128, 122, 0.25);
    border: 1px solid var(--brand-teal) !important;
}

/* NavBar Hover */
.nav-link {
    transition: color 0.2s;
}
.nav-link:hover {
    color: var(--brand-teal) !important;
}

/* =========================================
   SECCIÓN CLIENTES
   ========================================= */
.client-logo {
    /* Convierte las imágenes a blanco y negro y baja un poco la opacidad */
    filter: grayscale(100%) opacity(50%);
    transition: all 0.4s ease;
    cursor: pointer;
}

.client-logo:hover {
    /* Al pasar el mouse, recuperan su color y opacidad normal, y crecen un poco */
    filter: grayscale(0%) opacity(100%);
    transform: scale(1.08);
}

/* =========================================
   SECCIÓN TECNOLOGÍAS
   ========================================= */
.tech-icon-wrapper {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.tech-icon {
    /* Mantiene los iconos en tonos grises para un look limpio */
    filter: grayscale(100%) opacity(70%);
    transition: all 0.3s ease;
}

.tech-icon-wrapper:hover {
    transform: translateY(-5px);
}

.tech-icon-wrapper:hover .tech-icon {
    /* Al pasar el mouse, revelan su color real */
    filter: grayscale(0%) opacity(100%);
}

.tech-icon-wrapper:hover p {
    color: var(--brand-teal) !important;
    transition: color 0.3s ease;
}