.navbar-default .navbar-nav > li > a {
    font-size: 14px !important;
}
/* Navbar fija estilo imagen 2: siempre blanca y con logo/texto oscuro */
.navbar.navbar-default.light-menu.navbar-fixed-top {
    height: 66px;
    background: #ffffff !important;
    border-bottom: 1px solid #ededed !important;
    box-shadow: 0 1px 6px rgba(68, 68, 68, 0.07);
}
.navbar.navbar-default.light-menu.navbar-fixed-top .nav-container {
    margin: 0 auto;
}
.navbar.navbar-default.light-menu.navbar-fixed-top .navbar-brand {
    line-height: 60px;
}
.navbar.navbar-default.light-menu.navbar-fixed-top .navbar-nav > li > a {
    line-height: 66px;
    color: #2f2f2f;
}
.navbar.navbar-default.light-menu.navbar-fixed-top .navbar-nav > li > a.selected,
.navbar.navbar-default.light-menu.navbar-fixed-top .navbar-nav > li > a.selected:hover {
    color: #e59a1b;
}
.navbar.navbar-default.light-menu.navbar-fixed-top .logo {
    background: url(../images/logo-dark.png) top left no-repeat;
    background-size: contain;
    width: 178px;
    height: 41px;
}
/* Portafolio inline: reducir altura de imagen en modal */
.cbp-popup-singlePageInline .cbp-popup-content {
    background: #f3f5f8;
}
.cbp-popup-singlePageInline .cbp-popup-content .cbp-l-inline {
    max-width: 1140px;
    margin: 20px auto;
    padding: 34px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
    display: flex;
    gap: 32px;
    align-items: stretch;
}
.cbp-popup-singlePageInline .cbp-popup-content .cbp-l-inline-left {
    float: none;
    width: 46%;
    border-radius: 12px;
}
.cbp-popup-singlePageInline .cbp-popup-content .cbp-l-inline-left .cbp-l-project-img,
.cbp-popup-singlePageInline .cbp-popup-content .cbp-l-inline-left img {
    width: 100%;
    height: auto;
    display: block;
}
.cbp-popup-singlePageInline .cbp-popup-content .cbp-l-inline-right {
    float: none;
    width: 54%;
    padding-left: 0;
    max-width: 640px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.cbp-popup-singlePageInline .cbp-popup-content .cbp-l-inline-title {
    font-size: 32px;
    line-height: 1.15;
    font-weight: 700;
    color: #003366;
    margin-bottom: 8px;
}
.cbp-popup-singlePageInline .cbp-popup-content .cbp-l-inline-subtitle {
    font-size: 14px;
    line-height: 1.45;
    color: #666666;
    margin: 0 0 24px;
}
.cbp-popup-singlePageInline .cbp-popup-content .cbp-l-inline-desc {
    font-size: 17px;
    line-height: 1.6;
    color: #2a2a2a;
}
.cbp-popup-singlePageInline .cbp-popup-content .cbp-l-inline-desc p {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 18px;
}
.cbp-popup-singlePageInline .cbp-popup-content .cbp-l-inline-desc ul {
    list-style: none;
    padding-left: 0;
    margin: 0 0 22px;
}
.cbp-popup-singlePageInline .cbp-popup-content .cbp-l-inline-desc li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.6;
    color: #303030;
}
.cbp-popup-singlePageInline .cbp-popup-content .cbp-l-inline-desc li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
    color: #0a66cc;
}
.cbp-popup-singlePageInline .cbp-popup-content .cbp-l-inline-view {
    display: inline-block;
    background: #003366;
    color: #ffffff;
    border: 0;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: none;
}
.cbp-popup-singlePageInline .cbp-popup-content .cbp-l-inline-view:hover,
.cbp-popup-singlePageInline .cbp-popup-content .cbp-l-inline-view:focus {
    background: #0a66cc;
    color: #ffffff;
}
@media (max-width: 991px) {
    .cbp-popup-singlePageInline .cbp-popup-content .cbp-l-inline {
        display: block;
        padding: 22px;
        gap: 0;
    }
    .cbp-popup-singlePageInline .cbp-popup-content .cbp-l-inline-left {
        width: 100%;
        margin-bottom: 18px;
    }
    .cbp-popup-singlePageInline .cbp-popup-content .cbp-l-inline-left .cbp-l-project-img,
    .cbp-popup-singlePageInline .cbp-popup-content .cbp-l-inline-left img {
        height: auto;
    }
    .cbp-popup-singlePageInline .cbp-popup-content .cbp-l-inline-right {
        width: 100%;
        max-width: none;
    }
    .cbp-popup-singlePageInline .cbp-popup-content .cbp-l-inline-title {
        font-size: 28px;
    }
    .cbp-popup-singlePageInline .cbp-popup-content .cbp-l-inline-desc p {
        font-size: 16px;
    }
}
@media (max-width: 991px) {
    .navbar-default .navbar-nav > li > a {
        font-size: 14px !important;
    }
}
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}
.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}
@media (max-width: 768px) {
    .video-background video {
        object-position: center center;
    }
}
#parallax-home {
    position: relative;
    overflow: hidden;
}
#parallax-home .overlay-color {
    z-index: 1;
}
#parallax-home-contents,
#parallax-home .next-section {
    position: relative;
    z-index: 2;
}
#grid-container .cbp-caption img {
    -webkit-filter: none !important;
    -moz-filter: none !important;
    -ms-filter: none !important;
    -o-filter: none !important;
    filter: none !important;
}
/* BEGIN: SERVICES TEXT ALWAYS VISIBLE */
.ux-click-hints .cbp-caption {
    cursor: pointer;
    position: relative;
}
.ux-click-hints .cbp-caption-defaultWrap::after {
    content: none;
    display: none;
}
#grid-container .cbp-caption .cbp-caption-activeWrap {
    opacity: 1 !important;
    visibility: visible !important;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    height: 48%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(2, 16, 38, 0.72) 45%, rgba(2, 16, 38, 0.92) 100%);
    -webkit-transform: translateY(0) !important;
    -moz-transform: translateY(0) !important;
    transform: translateY(0) !important;
    transition: none;
    pointer-events: none;
}
#grid-container .cbp-caption .cbp-l-caption-alignLeft {
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
#grid-container .cbp-caption .cbp-l-caption-body {
    padding: 10px 14px 12px;
    margin: 0 !important;
    width: 100%;
    text-align: center;
}
#grid-container .cbp-caption .cbp-l-caption-title {
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    text-align: center;
}
#grid-container .cbp-caption .cbp-l-caption-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    line-height: 1.35;
    margin-top: 8px;
    text-align: center;
    opacity: 1;
    transform: translateY(0);
    transition: none;
}
.ux-click-hints .cbp-caption:focus,
.ux-click-hints .cbp-caption:hover {
    outline: none;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.24), 0 0 0 2px rgba(0, 60, 131, 0.2);
}
html.touch-device .ux-click-hints .cbp-caption:active {
    transform: scale(0.985);
}
/* END: SERVICES TEXT ALWAYS VISIBLE */
#grid-container .cbp-caption {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
#grid-container .cbp-caption:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.24);
}
.commercial-cta-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.commercial-cta-buttons .commercial-cta-button {
    margin: 0;
}
@media (max-width: 768px) {
    #grid-container .cbp-caption {
        border-radius: 10px;
        box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
    }
}

/* Efecto hover en los títulos */
.home-center-contents h2.firstbig,
.home-center-contents h2.popup {
    transition: opacity 0.5s ease, transform 0.5s ease;
    cursor: pointer;
}
.home-center-contents h2.popup {
    text-transform: none !important;
    font-size: 2.7em !important;
}

/* Boton principal de cotizacion */
.next-section {
    position: relative;
    z-index: 20;
    bottom: 90px !important;
}
.cta-cotizacion {
    display: inline-block;
    background: #003C83;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 14px 30px;
    border: 2px solid #003C83;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cta-cotizacion span {
    color: #fff;
}
.cta-cotizacion:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}
.cta-cotizacion:hover span {
    color: #fff;
}
.home-center-contents h2.firstbig:hover,
.home-center-contents h2.popup:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Tamaños responsive para los títulos */
/* Tablets - pantallas medianas */
@media (max-width: 992px) {
    .home-center-contents h2.firstbig {
        font-size: 60px !important;
    }
    .home-center-contents h2.popup {
        font-size: 2.25em !important;
    }
}

/* Móviles - pantallas pequeñas */
@media (max-width: 768px) {
    .home-center-contents h2.firstbig {
        font-size: 40px !important;
    }
    .home-center-contents h2.popup {
        font-size: 1.8em !important;
    }
    .cta-cotizacion {
        font-size: 16px;
        padding: 12px 20px;
    }
    .next-section {
        bottom: 45px !important;
    }
}

/* Móviles muy pequeños */
@media (max-width: 480px) {
    .home-center-contents h2.firstbig {
        font-size: 28px !important;
    }
    .home-center-contents h2.popup {
        font-size: 1.5em !important;
    }
}
/* Fondo de fun facts: cubrir todo el bloque sin afectar otras secciones */
#parallax-1 {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-color: #000;
    overflow: hidden;
}
/* Popup para Mision/Vision y Valores */
.mip-popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 9999;
}
.mip-popup.is-open {
    display: flex;
}
.mip-popup-card {
    position: relative;
    width: 100%;
    max-width: 720px;
    max-height: 85vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 12px;
    padding: 28px 24px 24px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}
.mip-popup-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 18px;
}
.mip-popup-text {
    text-align: justify;
    font-size: 17px;
    line-height: 1.7;
    color: #333;
}
.mip-popup-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 0;
    background: transparent;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    color: #555;
}
@media (max-width: 768px) {
    .mip-popup-card {
        padding: 22px 18px 18px;
    }
    .mip-popup-title {
        font-size: 26px;
    }
    .mip-popup-text {
        font-size: 15px;
    }
}
/* Tarjetas de soluciones (imagen arriba, texto abajo) */
.service-cards-row {
    margin-top: 10px;
}
.service-card-box {
    background: transparent;
    border: 3px solid #003C83;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
    height: 100%;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.service-card-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
}
.service-card-img {
    display: block;
    width: 100%;
    height: 260px;
    object-fit: cover;
}
.service-card-content {
    padding: 18px 20px 22px;
    color: #111;
    text-align: left;
}
.service-card-content h4 {
    color: #111;
    font-size: 17px;
    line-height: 1.05;
    margin: 0 0 12px;
    text-transform: uppercase;
    font-weight: 700;
}
.service-card-content ul {
    margin: 0;
    padding-left: 20px;
}
.service-card-content li {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 4px;
}
@media (max-width: 991px) {
    .service-card-box {
        margin-bottom: 20px;
    }
    .service-card-img {
        height: 220px;
    }
    .service-card-content h4 {
        font-size: 16px;
    }
    .service-card-content li {
        font-size: 13px;
    }
}
/* WhatsApp Button States */
#whatsapp-btn {
    cursor: pointer;
    position: relative;
    background: #003C83;
    border: 1px solid #003C83;
    color: #fff !important;
}
#whatsapp-btn:hover,
#whatsapp-btn:active,
#whatsapp-btn:focus {
    background: #003C83;
    border-color: #003C83;
    color: #fff !important;
}
/* Ensure text is always visible */
#whatsapp-btn span {
    display: inline-block;
    color: #fff !important;
    opacity: 1 !important;
    visibility: visible !important;
}
/* Disabled state while processing */
#whatsapp-btn.is-processing {
    pointer-events: none;
}
#whatsapp-btn.is-processing span {
    animation: pulse-text 1s infinite;
}
.cta-cotizacion {
    position: relative;
    overflow: hidden;
}
.cta-cotizacion::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.9);
    transform: scaleX(0);
    transform-origin: left center;
}
.cta-cotizacion.is-processing {
    pointer-events: none;
}
.cta-cotizacion.is-processing::after {
    animation: cta-loader 1.8s linear forwards;
}
.cta-cotizacion.is-processing span {
    animation: pulse-text 1s infinite;
}
.hero-video-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 10000;
}
.hero-video-lightbox.is-open {
    display: flex;
}
.hero-video-lightbox-dialog {
    position: relative;
    width: min(80vw, 1200px);
}
.hero-video-close {
    position: absolute;
    top: -46px;
    right: 0;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}
.hero-video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.hero-video-player {
    width: 100%;
    height: 100%;
    display: block;
}
body.no-scroll {
    overflow: hidden;
}
@media (max-width: 768px) {
    .hero-video-lightbox {
        padding: 14px;
    }
    .hero-video-lightbox-dialog {
        width: 95vw;
    }
    .hero-video-close {
        top: -42px;
    }
}
@keyframes cta-loader {
    0% {
        transform: scaleX(0);
    }
    100% {
        transform: scaleX(1);
    }
}
/* Pulse animation for processing state */
@keyframes pulse-text {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}
/* Disable scroll reveal effects: keep elements always visible */
.animated,
.fadeIn,
.fadeInUp,
.fadeInDown,
.fadeInRightBig,
.flipInX,
.fadeInLeft,
.fadeInRight,
.fadeInUpBig,
.fadeInDownBig {
    -webkit-animation: none !important;
    animation: none !important;
    -webkit-transform: none !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}
.notinview,
.skillbar.notinview,
.numerical-container .notinview,
.skillbar.clearfix.notinview {
    opacity: 1 !important;
    visibility: visible !important;
}
/* Go Top button: stylized arrow, blue on black */
#back-top a {
    background: #000 !important;
    border: 1px solid #003C83;
    border-radius: 999px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
#back-top a i {
    color: #003C83 !important;
    font-size: 1.35em;
    font-weight: 700;
}
#back-top a:hover {
    background: #000 !important;
    border-color: #0A66CC;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.45);
    transform: translateY(-2px);
}
#back-top a:hover i {
    color: #0A66CC !important;
}
/* Footer logo: icon + text, responsive */
.logo-footer {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 10px 0 20px;
}
.logo-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    max-width: 100%;
    text-decoration: none;
    padding: 6px 10px;
}
.logo-footer-icon {
    width: clamp(36px, 4vw, 52px);
    height: 36px;
    background: url('images/Frame 2.png') center center no-repeat;
    background-size: contain;
    flex: 0 0 auto;
}
.logo-footer-wordmark {
    width: clamp(130px, 16vw, 190px);
    height: auto;
    display: block;
}
@media (max-width: 480px) {
    .logo-footer-brand {
        gap: 8px;
    }
    .logo-footer-icon {
        width: 40px;
        height: 28px;
    }
    .logo-footer-wordmark {
        width: 145px;
    }
}