/*
Theme Name: TecBin Theme
Author: Tecnología Binaria
Version: 1.0
Description: Tema para TecBin.
*/


:root {
    --primary-blue: #0b192c;     /* Azul profundo de alta tecnología, más suave al ojo */
    --primary-light: #15273f;    /* Variación sutil para degradados y footers menos pesados */
    --accent-teal: #00b4d8;      /* Tu verde azulado/celeste de acento */
    --bg-main: #fafdff;          /* El fondo general claro */
    --bg-card: #ffffff;          /* Blanco puro reservado para componentes */
    --text-dark: #2d3748;        /* Gris oscuro suave para textos legibles */
}
/* Aplicamos el fondo a todo el sitio automáticamente */
body {
    background-color: var(--bg-main);
    color: var(--text-dark);
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

header {
    /* Degradado vertical sutil para suavizar el bloque superior */
    background: linear-gradient(180deg, #f0f4f8 0%, #ffffff 100%) !important; 
    
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 25px rgba(11, 25, 44, 0.05) !important; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 5%;
    border-bottom: 2px solid var(--accent-teal) !important; 
}

/* --- REDISEÑO PARA EL FOOTER CORPORATIVO --- */
footer {
    background: linear-gradient(180deg, #102238 0%, var(--primary-blue) 100%) !important;
    color: #cbd5e0;
    padding: 40px 5%;
    border-top: 3px solid var(--accent-teal); /* Un vivo de acento que amarra el diseño */
}

.custom-logo-link img, 
.logo img {
    height: 50px !important;
    width: auto !important;
    max-width: 100%;
    object-fit: contain;
}

nav a {
    color: var(--primary-blue);
    text-decoration: none;
    margin-left: 20px;
    font-weight: 600;
}

nav a:hover { color: var(--accent-teal); }

/* --- HERO ULTRASUAVE CON GRADIENTE AVANZADO --- */
.hero {
    /* Gradiente de 3 puntos en diagonal (45 grados) para dispersar la luz en pantallas anchas */
    background: linear-gradient(45deg, var(--primary-blue) 0%, #1a365d 50%, var(--primary-light) 100%) !important;
    color: #fff;
    padding: 100px 5%;
    text-align: center;
    position: relative;
    
    /* Suavizamos el choque con el header inyectando un sutil resplandor interno */
    box-shadow: inset 0 20px 40px rgba(11, 25, 44, 0.3);
}

.hero h1 { 
    font-size: 2.8rem; 
    margin-bottom: 20px; 
    font-weight: 700;
    letter-spacing: -0.5px; /* Un toque sutil de tracking que estiliza los títulos grandes */
}

.btn-primary {
    background-color: var(--accent-teal);
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    margin: 10px;
    font-weight: bold;
}

.btn-primary:hover { background-color: var(--light-blue); }

.section { padding: 80px 5%; }
.grid-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 40px; }
.card { background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.02); border-top: 4px solid var(--accent-teal); }

/* --- EFECTOS DINÁMICOS PARA SECCIÓN DE EQUIPOS --- */

/* Al pasar el puntero sobre la tarjeta entera, levanta sutilmente el contenedor */
.tarjeta-equipo:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(4, 20, 36, 0.08) !important;
}

/* Al pasar el puntero, escala la imagen de fondo hacia adelante de forma suave */
.tarjeta-equipo:hover .img-dinamica {
    transform: scale(1.08);
}

/* --- EFECTO INTERACTIVO PARA TARJETAS PILAR EN NOSOTROS --- */
.tarjeta-pilar {
    border-top: 3px solid transparent;
}

.tarjeta-pilar:hover {
    transform: translateY(-5px);
    border-top-color: var(--accent-teal);
    box-shadow: 0 15px 35px rgba(4, 20, 36, 0.05) !important;
}

/* --- INTERACCIÓN DE TARJETAS DE SERVICIOS --- */
.tarjeta-servicio:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(4, 20, 36, 0.06) !important;
    border-color: rgba(0, 180, 216, 0.3) !important;
}

.tarjeta-servicio:hover .btn-servicio-link {
    color: var(--primary-blue) !important;
}

.tarjeta-servicio:hover .btn-servicio-link span {
    transform: translateX(4px);
    transition: transform 0.2s ease;
}

/* --- ESTILOS COMPLEMENTARIOS PARA EL CONTENIDO INTERNO DE PÁGINAS --- */
.contenido-wp h2 {
    color: var(--primary-blue);
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 35px;
    margin-bottom: 15px;
}

.contenido-wp h3 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 10px;
}

.contenido-wp p {
    margin-bottom: 20px;
    color: #4a5568;
    font-size: 1.05rem;
    line-height: 1.75;
}

/* Estilo premium para las listas (bullets) de alcances técnicos */
.contenido-wp ul {
    margin-bottom: 25px;
    padding-left: 20px;
}

.contenido-wp li {
    margin-bottom: 8px;
    color: #4a5568;
    position: relative;
    list-style-type: none; /* Quitamos el bullet genérico negro */
}

/* Reemplazamos los bullets por un discreto check o punto de color corporativo */
.contenido-wp li::before {
    content: "•";
    color: var(--accent-teal);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* --- SELECCIÓN ACTIVA DE NAVEGACIÓN (MENÚ UNIVERSAL) --- */
nav a {
    position: relative;
    padding: 5px 0;
    transition: color 0.2s ease;
}

nav a:hover,
nav a.active {
    color: var(--accent-teal) !important;
}

/* El indicador de la línea inferior se activa solo en el elemento con la clase .active */
nav a.active::after {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--accent-teal);
    position: absolute;
    bottom: -5px;
    left: 0;
    border-radius: 2px;
}

/* Ocultar el botón de hamburguesa en pantallas de escritorio */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--primary-blue);
    cursor: pointer;
    padding: 5px;
}

/* --- MEDIA QUERY GENERAL PARA DISPOSITIVOS MÓVILES (Menor a 768px) --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: block; /* Hacemos visible la hamburguesa */
    }

    /* Transformamos el menú plano en un panel flotante responsivo */
    .nav-links {
        display: none; /* Se mantiene oculto por defecto */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        box-shadow: 0 10px 20px rgba(11, 25, 44, 0.08);
        padding: 20px 0;
        z-index: 999;
        border-bottom: 3px solid var(--accent-teal);
    }

    /* Cuando el usuario presiona la hamburguesa, se activa esta clase */
    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        margin: 12px 5% !important;
        font-size: 1.1rem;
        padding-bottom: 8px;
        border-bottom: 1px solid #edf2f7;
    }
}

/* --- DISEÑO AVANZADO PARA EL CONTENIDO INDIVIDUAL --- */
.contenido-wp {
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Espaciado de los párrafos introductorios */
.contenido-wp > p:first-of-type {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #3a4a5b;
    margin-bottom: 35px;
}

/* Encabezados Principales H2 */
.contenido-wp h2 {
    color: var(--primary-blue);
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 45px;
    margin-bottom: 20px;
    letter-spacing: -0.3px;
}

/* Separadores estilizados */
.contenido-wp hr {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, rgba(0, 180, 216, 0.2), rgba(0, 0, 0, 0.05), transparent);
    margin: 40px 0;
}

/* --- COMPORTAMIENTO RESPONSIVO DE TARJETAS --- */

/* Por defecto en pantallas grandes y tabletas se muestran en 2 columnas */
.grid-tarjetas-nosotros {
    grid-template-columns: 1fr 1fr;
}

/* Cuando la pantalla sea menor a 600px (Celulares), se apilan a 1 sola columna */
@media (max-width: 600px) {
    .grid-tarjetas-nosotros {
        grid-template-columns: 1fr !important;
    }
}

/* --- DISEÑO DE SUBSECCIONES (H3) COMO TARJETAS INTERNAS --- */
.contenido-wp h3 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 35px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- BLOQUE DE LLAMADA A LA ACCIÓN (CTA FINAL) --- */
/* Estilizamos las últimas líneas para que resalten como un banner de soporte */
.contenido-wp h2:last-of-type {
    text-align: center;
    margin-top: 50px;
    font-size: 1.8rem;
}

.contenido-wp h2:last-of-type + p {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 30px auto;
    font-size: 1.1rem;
}

/* --- BOTÓN DE CONTACTO NATIVO DE GUTENBERG PREMIUM --- */
/* --- REDISEÑO DEFINITIVO PARA EL BOTÓN DE CONTACTO NATIVO --- */
.contenido-wp .wp-block-button {
    text-align: center !important;
    margin: 40px auto 20px auto !important;
    display: block !important;
}

/* --- CAMBIO DE COLOR EN BOTÓN DE CONTACTO PREMIUM --- */
.contenido-wp .wp-block-button__link {
    /* Cambiamos el color de fondo base al celeste/teal de acento */
    background-color: var(--accent-teal) !important;
    color: #ffffff !important;
    
    padding: 16px 38px !important; 
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    
    /* Sombra sutil que combine con el tono celeste */
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.2) !important;
    border: none !important;
    line-height: 1.2 !important;
}

/* Efecto Hover: Al pasar el mouse, cambia al azul marino corporativo */
.contenido-wp .wp-block-button__link:hover {
    background-color: var(--primary-blue) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 22px rgba(4, 20, 36, 0.2) !important;
}

/* Espaciado interno para el contenedor gris de contacto */
.contenido-wp .wp-block-group {
    padding: 45px !important;
    border-radius: 12px !important;
    margin-top: 50px !important;
    border: 1px solid rgba(4, 20, 36, 0.05) !important;
}

/* --- ESTILIZADO DE IMÁGENES DENTRO DEL CONTENIDO --- */
.contenido-wp img, 
.contenido-wp .wp-block-media-text__media {
    border-radius: 10px !important;
    box-shadow: 0 8px 25px rgba(4, 20, 36, 0.04) !important;
    transition: transform 0.4s ease !important;
}

.contenido-wp img:hover {
    transform: scale(1.01);
}

/* --- ESTILOS PREMIUM PARA LA GALERÍA TÉCNICA --- */
.btn-filtro {
    background-color: var(--bg-card);
    color: var(--primary-blue);
    border: 1px solid rgba(4, 20, 36, 0.1);
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-filtro:hover, .btn-filtro.active {
    background-color: var(--primary-blue);
    color: #ffffff;
    border-color: var(--primary-blue);
    box-shadow: 0 4px 15px rgba(4, 20, 36, 0.1);
}

.btn-filtro.active {
    background-color: var(--accent-teal);
    border-color: var(--accent-teal);
}

/* Efecto de Elevación en las Tarjetas de Evidencia */
.item-galeria {
    transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.3s ease;
    opacity: 1;
}

.item-galeria:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(4, 20, 36, 0.06) !important;
}

.item-galeria:hover .img-container {
    transform: scale(1.02);
    transition: transform 0.4s ease;
}

/* --- ESTILADO DE FORMULARIOS DE CONTACTO --- */
.contenedor-formulario-contacto input[type="text"],
.contenedor-formulario-contacto input[type="email"],
.contenedor-formulario-contacto input[type="tel"],
.contenedor-formulario-contacto textarea {
    width: 100% !important;
    padding: 12px 16px !important;
    margin-bottom: 18px !important;
    border: 1px solid #cbd5e0 !important;
    background-color: #ffffff !important;
    border-radius: 6px !important;
    font-family: inherit;
    font-size: 0.95rem !important;
    color: var(--text-dark) !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
}

/* Enfoque activo en los campos */
.contenedor-formulario-contacto input:focus,
.contenedor-formulario-contacto textarea:focus {
    border-color: var(--accent-teal) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.15) !important;
}

/* Botón de Enviar Formulario */
.contenedor-formulario-contacto input[type="submit"],
.contenedor-formulario-contacto button[type="submit"] {
    background-color: var(--accent-teal) !important;
    color: #ffffff !important;
    width: 100% !important;
    padding: 14px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.2) !important;
}

.contenedor-formulario-contacto input[type="submit"]:hover {
    background-color: var(--primary-blue) !important;
    box-shadow: 0 6px 18px rgba(4, 20, 36, 0.2) !important;
    transform: translateY(-1px);
}