/* ==========================================================================
   GRUPO GESCON — Tema corporativo (#32548d + grises)
   Sobrescribe las variables de la plantilla Verto-X. Cargar SIEMPRE al final.
   ========================================================================== */

:root {
    --thm-base: #32548d;
    --thm-base-rgb: 50, 84, 141;
    --thm-primary: #3f66a8;
    --thm-primary-rgb: 63, 102, 168;
    --thm-black: #1f2a44;
    --thm-black-rgb: 31, 42, 68;
    --thm-main-bg: #26344f;
    --thm-gray: #5a6275;
    --thm-gray-rgb: 90, 98, 117;
    --thm-gray-bg: #eef2f7;
    --thm-gray-bg-2: #f4f6fa;
}

/* Gradientes corporativos (base -> negro) */
.banner-style1__top-gradient-bg,
.thm-gradient-bg {
    background: linear-gradient(90deg, rgba(var(--thm-base-rgb), .92), rgba(var(--thm-black-rgb), .96)) !important;
}

/* ====== Marca / Logo textual ====== */
.gescon-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--thm-font, 'Barlow', sans-serif);
    line-height: 1;
}
.gescon-brand__mark {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 20px;
    background: linear-gradient(135deg, var(--thm-base), var(--thm-black));
    box-shadow: 0 6px 18px rgba(var(--thm-base-rgb), .35);
}
.gescon-brand__text {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: .5px;
    color: var(--thm-black);
}
.gescon-brand__text b { color: var(--thm-base); }
.gescon-brand__text small {
    display: block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--thm-gray);
}
/* Variante clara para fondos oscuros (footer / mobile) */
.gescon-brand--light .gescon-brand__text { color: #fff; }
.gescon-brand--light .gescon-brand__text b { color: #9db9e6; }
.gescon-brand--light .gescon-brand__text small { color: rgba(255,255,255,.6); }

/* ====== Barra superior de diferenciadores ====== */
.topbar-gescon {
    background: var(--thm-black);
    color: rgba(255, 255, 255, .85);
    font-size: 13px;
}
.topbar-gescon a { color: rgba(255, 255, 255, .85); transition: color .3s; }
.topbar-gescon a:hover { color: #fff; }
.topbar-gescon .diff-links li { position: relative; padding-right: 18px; margin-right: 12px; }
.topbar-gescon .diff-links li::after {
    content: "";
    position: absolute; right: 0; top: 50%;
    width: 1px; height: 12px; margin-top: -6px;
    background: rgba(255, 255, 255, .2);
}
.topbar-gescon .diff-links li:last-child::after { display: none; }
.topbar-gescon .diff-links i { color: var(--thm-primary); margin-right: 6px; }
.topbar-gescon .topbar-social a { margin-left: 14px; }

/* ====== HERO SLIDER (M01) — Swiper ====== */
.gescon-hero { position: relative; }
.gescon-hero .swiper-slide { position: relative; }
.gescon-hero__item {
    position: relative;
    min-height: 640px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}
.gescon-hero__item::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(var(--thm-black-rgb), .88) 0%, rgba(var(--thm-black-rgb), .55) 55%, rgba(var(--thm-black-rgb), .2) 100%);
}
.gescon-hero__content { position: relative; z-index: 2; max-width: 680px; color: #fff; padding: 60px 0; }
.gescon-hero__sub {
    display: inline-block;
    font-size: 14px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
    color: #9db9e6; margin-bottom: 18px;
    border-left: 3px solid var(--thm-base); padding-left: 14px;
}
.gescon-hero__title { font-size: 56px; line-height: 1.08; font-weight: 700; margin-bottom: 22px; color: #fff; }
.gescon-hero__title span { color: #9db9e6; }
.gescon-hero__text { font-size: 18px; line-height: 1.7; color: rgba(255, 255, 255, .85); margin-bottom: 32px; }
.gescon-hero__btns .btn-one { margin-right: 14px; }
.gescon-hero .swiper-button-next,
.gescon-hero .swiper-button-prev {
    color: #fff; background: rgba(255, 255, 255, .12);
    width: 54px; height: 54px; border-radius: 50%; backdrop-filter: blur(4px);
    transition: background .3s;
}
.gescon-hero .swiper-button-next:hover,
.gescon-hero .swiper-button-prev:hover { background: var(--thm-base); }
.gescon-hero .swiper-button-next::after,
.gescon-hero .swiper-button-prev::after { font-size: 18px; }
.gescon-hero .swiper-pagination-bullet { background: #fff; opacity: .5; }
.gescon-hero .swiper-pagination-bullet-active { background: var(--thm-base); opacity: 1; width: 26px; border-radius: 6px; }

@media (max-width: 767px) {
    .gescon-hero__item { min-height: 520px; }
    .gescon-hero__title { font-size: 36px; }
    .gescon-hero__text { font-size: 16px; }
    .gescon-hero .swiper-button-next, .gescon-hero .swiper-button-prev { display: none; }
}

/* ====== Botón estándar (reafirma color base) ====== */
.btn-one { background-color: var(--thm-base); }
.btn-one.btn-outline { background: transparent; border: 2px solid #fff; }

/* ====== Sección Misión / Visión / Valores (M03) ====== */
.mvv-section { padding: 110px 0 90px; background: var(--thm-gray-bg-2); }
.mvv-card {
    background: #fff; border-radius: 14px; padding: 44px 34px; height: 100%;
    box-shadow: 0 12px 40px rgba(31, 42, 68, .06);
    border-top: 4px solid transparent; transition: all .35s ease;
}
.mvv-card:hover { transform: translateY(-8px); border-top-color: var(--thm-base); box-shadow: 0 20px 50px rgba(31, 42, 68, .12); }
.mvv-card__icon {
    width: 78px; height: 78px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 34px; color: #fff; margin-bottom: 26px;
    background: linear-gradient(135deg, var(--thm-base), var(--thm-primary));
}
.mvv-card h3 { font-size: 24px; color: var(--thm-black); margin-bottom: 14px; }
.mvv-card p { color: var(--thm-gray); line-height: 1.8; margin: 0; }

/* ====== Flotantes ====== */
.gescon-whatsapp {
    position: fixed; right: 26px; bottom: 96px; z-index: 9999;
    width: 56px; height: 56px; border-radius: 50%;
    background: #25d366; color: #fff !important;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; box-shadow: 0 8px 24px rgba(37, 211, 102, .45);
    transition: transform .3s;
    animation: gescon-pulse 2.2s infinite;
}
.gescon-whatsapp:hover { transform: scale(1.08); color: #fff; }
@keyframes gescon-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); }
    70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ====== Equipo por áreas (M11) ====== */
.area-block { margin-bottom: 30px; }
.area-title {
    font-size: 22px; color: var(--thm-black); font-weight: 700;
    margin: 24px 0 30px; padding-left: 16px; position: relative;
}
.area-title::before {
    content: ""; position: absolute; left: 0; top: 4px; bottom: 4px;
    width: 4px; border-radius: 4px; background: var(--thm-base);
}
.single-team-style1 .team-desc {
    color: var(--thm-gray); font-size: 14px; line-height: 1.7;
    margin: 18px 6px 36px; text-align: center;
}

/* ====== Servicios detallados (M14) ====== */
.servicio-detalle { padding: 70px 0; border-bottom: 1px solid #eef2f7; }
.servicio-detalle:nth-child(even) { background: var(--thm-gray-bg-2); }
.servicio-detalle__icon {
    width: 72px; height: 72px; border-radius: 14px; color: #fff; font-size: 32px;
    display: inline-flex; align-items: center; justify-content: center; margin-bottom: 20px;
    background: linear-gradient(135deg, var(--thm-base), var(--thm-primary));
}
.servicio-detalle__img img { border-radius: 14px; width: 100%; box-shadow: 0 18px 40px rgba(31,42,68,.12); }
.servicio-detalle h2 { font-size: 32px; color: var(--thm-black); margin-bottom: 16px; }
.servicio-detalle__items { list-style: none; padding: 0; margin: 22px 0 0; }
.servicio-detalle__items li { padding: 6px 0 6px 30px; position: relative; color: var(--thm-black); font-weight: 600; }
.servicio-detalle__items li::before {
    content: "\f058"; font-family: "Font Awesome 5 Free"; font-weight: 900;
    position: absolute; left: 0; color: var(--thm-base);
}

/* ====== Galería de proyectos / filtros (M17) ====== */
.proyecto-filtros { list-style: none; padding: 0; margin: 0 0 40px; text-align: center; }
.proyecto-filtros li {
    display: inline-block; margin: 6px; padding: 10px 24px; cursor: pointer;
    border-radius: 30px; font-weight: 600; color: var(--thm-black);
    background: #fff; border: 1px solid #e3e8f0; transition: all .3s;
}
.proyecto-filtros li:hover, .proyecto-filtros li.active {
    background: var(--thm-base); color: #fff; border-color: var(--thm-base);
}
.proyecto-item { margin-bottom: 30px; }
.proyecto-item__inner { position: relative; border-radius: 12px; overflow: hidden; }
.proyecto-item__inner img { width: 100%; height: 280px; object-fit: cover; transition: transform .5s; }
.proyecto-item__inner:hover img { transform: scale(1.08); }
.proyecto-item__overlay {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center; text-align: center; color: #fff;
    background: linear-gradient(0deg, rgba(var(--thm-black-rgb), .85), rgba(var(--thm-base-rgb), .35));
    opacity: 0; transition: opacity .4s;
}
.proyecto-item__inner:hover .proyecto-item__overlay { opacity: 1; }
.proyecto-item__overlay span { font-size: 13px; letter-spacing: 1px; color: #9db9e6; text-transform: uppercase; }
.proyecto-item__overlay h4 { color: #fff; font-size: 20px; margin: 8px 18px 18px; }
.proyecto-item__zoom {
    width: 48px; height: 48px; border-radius: 50%; background: var(--thm-base);
    display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 18px;
}

/* ====== Galería de clientes (M19) ====== */
.cliente-logo-box {
    background: #fff; border: 1px solid #eef2f7; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; padding: 30px;
    height: 140px; transition: all .3s; margin-bottom: 24px;
}
.cliente-logo-box:hover { box-shadow: 0 14px 36px rgba(31,42,68,.1); transform: translateY(-5px); }
.cliente-logo-box img { max-width: 100%; max-height: 70px; filter: grayscale(100%); opacity: .7; transition: all .3s; }
.cliente-logo-box:hover img { filter: grayscale(0); opacity: 1; }

/* ====== Diferenciadores ====== */
.quote-block {
    background: linear-gradient(135deg, var(--thm-base), var(--thm-black));
    color: #fff; border-radius: 16px; padding: 60px 50px; position: relative; overflow: hidden;
}
.quote-block::before {
    content: "\201C"; position: absolute; top: -30px; left: 24px;
    font-size: 180px; opacity: .12; font-family: Georgia, serif;
}
.quote-block p { font-size: 24px; line-height: 1.6; font-weight: 500; position: relative; margin: 0; }
.quote-block cite { display: block; margin-top: 20px; font-size: 15px; color: #9db9e6; font-style: normal; }

.diff-list { list-style: none; padding: 0; margin: 0; }
.diff-list li {
    background: #fff; border-radius: 12px; padding: 24px 26px; margin-bottom: 16px;
    display: flex; gap: 18px; align-items: flex-start; box-shadow: 0 8px 28px rgba(31,42,68,.05);
}
.diff-list li .num {
    flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; color: #fff; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--thm-base), var(--thm-primary));
}
.diff-list li h4 { font-size: 18px; color: var(--thm-black); margin: 0 0 6px; }
.diff-list li p { margin: 0; color: var(--thm-gray); font-size: 15px; line-height: 1.6; }

/* ====== Páginas legales ====== */
.legal-content { padding: 80px 0; }
.legal-content h3 { color: var(--thm-black); font-size: 22px; margin: 32px 0 14px; }
.legal-content p, .legal-content li { color: var(--thm-gray); line-height: 1.8; }
.legal-content ul { padding-left: 20px; }

/* ====== Contacto ====== */
.contact-info-card {
    background: #fff; border-radius: 12px; padding: 30px; margin-bottom: 24px;
    display: flex; gap: 18px; align-items: flex-start; box-shadow: 0 8px 28px rgba(31,42,68,.06);
}
.contact-info-card .icon {
    flex: 0 0 56px; width: 56px; height: 56px; border-radius: 12px; color: #fff; font-size: 22px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--thm-base), var(--thm-primary));
}
.contact-info-card h4 { font-size: 18px; color: var(--thm-black); margin: 0 0 6px; }
.contact-info-card p { margin: 0; color: var(--thm-gray); }
.contact-form .form-control {
    height: 56px; border: 1px solid #e3e8f0; border-radius: 8px; padding: 0 18px; margin-bottom: 18px;
}
.contact-form textarea.form-control { height: 140px; padding-top: 14px; }
.contact-form .form-control:focus { border-color: var(--thm-base); box-shadow: none; }

/* ====== Organigrama área tecnológica (M33) ====== */
.org-chart { max-width: 900px; margin: 0 auto; }
.org-level { margin-bottom: 0; }
.org-node {
    display: inline-block; background: #fff; border: 1px solid #e3e8f0; border-radius: 10px;
    padding: 16px 26px; font-weight: 600; color: var(--thm-black); margin: 6px;
    box-shadow: 0 8px 24px rgba(31,42,68,.06);
}
.org-node--top { background: linear-gradient(135deg, var(--thm-base), var(--thm-black)); color: #fff; border: none; font-size: 18px; padding: 18px 40px; }
.org-node--leaf { font-size: 14px; padding: 12px 18px; }
.org-connector { width: 2px; height: 28px; background: #cdd6e4; margin: 4px auto; }

/* ==========================================================================
   FALLBACK DE ÍCONOS — la fuente icomoon (thm-icons) vino vacía en la
   plantilla, así que mapeamos las clases icon-* usadas a Font Awesome 5
   (que sí carga). No requiere cambiar el marcado ni los datos.
   ========================================================================== */
/* Regla base: cualquier icon-* usa Font Awesome 5 y, si no está mapeado
   explícitamente abajo, muestra un glifo genérico (nunca un cuadro). */
[class^="icon-"]::before,
[class*=" icon-"]::before {
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    speak: never;
    -webkit-font-smoothing: antialiased;
    content: "\f111";   /* círculo genérico de respaldo */
}

.icon-checkmark::before { content: "\f00c" !important; }          /* check */
.icon-expertise::before { content: "\f559" !important; }          /* award */
.icon-iso::before { content: "\f0a3" !important; }                /* certificate */
.icon-raw-materials::before { content: "\f1b3" !important; }      /* cubes */
.icon-local-network::before { content: "\f6ff" !important; }      /* network-wired */
.icon-management::before { content: "\f509" !important; }         /* users-cog */
.icon-project-management::before { content: "\f542" !important; } /* project-diagram */
.icon-rating::before { content: "\f005" !important; }             /* star */
.icon-full-screen::before { content: "\f065" !important; }        /* expand */
.icon-link-2::before { content: "\f0c1" !important; }             /* link */
.icon-magnifying-glass::before { content: "\f002" !important; }   /* search */
.icon-plus::before { content: "\f067" !important; }               /* plus */
.icon-right-arrow-2::before { content: "\f060" !important; }      /* arrow-left (prev) */
.icon-right-arrow-21::before { content: "\f061" !important; }     /* arrow-right (next) */
.icon-share::before { content: "\f1e0" !important; }              /* share-alt */

/* Pequeños ajustes de acento */
.sec-title .sub-title h4 { color: var(--thm-base); }
.single-service-style1 .title-box .icon a:hover { background-color: var(--thm-base); }

/* ====== Header: nav compacto + botón CTA en una sola línea ====== */
/* Reduce la separación entre ítems de menú (original: 40px) */
.main-menu-style1 .main-menu__list > li + li,
.stricky-header--style1 .main-menu__list > li + li {
    margin-left: 24px;
}
/* Botón CTA: forzar una sola línea y padding más ajustado */
.header-btn .btn-one {
    white-space: nowrap;
    padding-left: 22px;
    padding-right: 22px;
}
/* Logo imagen: mismo comportamiento flex que la marca textual */
.logo-box-style1 .gescon-brand img {
    display: block;
}

/* ====== Scroll-to-top: botón circular blanco con flecha ====== */
.scroll-to-top {
    right: 26px;
    bottom: 170px;
}
.scroll-to-top .scroll-top-inner {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 18px rgba(0,0,0,.22);
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s, transform .3s;
    flex-direction: row;
}
.scroll-to-top .scroll-top-inner.visible {
    opacity: 1;
    visibility: visible;
}
.scroll-to-top .scroll-top-inner:hover {
    background: var(--thm-base);
}
/* Ícono flecha arriba — forzado vía ::before para evitar conflictos con icon-* override */
.scroll-to-top .gescon-scroll-up::before {
    content: "\f062";                   /* fa-arrow-up */
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    font-size: 17px;
    color: var(--thm-black);
    transition: color .3s;
    display: block;
}
.scroll-to-top .gescon-scroll-up:hover::before {
    color: #fff;
}

/* ====== Proyectos Destacados (M07) — 4 ítems uniformes con cover ====== */
/* Expande el carrusel a todo el ancho del contenedor (override de max-width:710px) */
.project-style1-carousel.owl-carousel {
    max-width: 100%;
}
/* Altura fija uniforme en todas las imágenes */
.project-style1 .single-project-item .img-holder {
    height: 280px;
}
.project-style1 .single-project-item .img-holder img {
    height: 100%;
    object-fit: cover;
    transform: none;
    transition: transform 0.5s ease;
}
.project-style1 .single-project-item:hover .img-holder img {
    transform: scale(1.06);
}
