.top-bar-info .links-wrap li a {
    position: relative;
    display: inline-block;

    transition: all ease 0.3s;
    padding-bottom: 2px;
    color: rgba(255, 255, 255, 0.8);
}

.top-bar-info .links-wrap li a:hover {
    color: var(--primary-color);
}

.card-style03 .card-icon {
    margin-top: 10px;
    margin: 0 auto;
}

.card-style03 {
    padding: 30px 30px 30px 30px;
}

.card-style03:hover .card-icon {
    background-color: var(--secondary-color);
}


.navbar li>ul ul {
    margin-left: 100% !important;
}

.banner-pipe-tabs {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 5;
    pointer-events: none;
    bottom: 2%;
}


.banner-pipe-tabs .pipe-line {
    position: relative;
    width: 90%;
    margin: 0 auto;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;


}


.pipe-segment {
    pointer-events: auto;
    border: none;
    outline: none;
    height: 5px;
    flex: 1;
    /* Occupy all available space */
    min-width: auto;
    /* Allow shrinking if needed, or set a small min-width */
    margin: 0 5px;
    background: #ffffff;
    border-radius: 5px;
    position: relative;
    height: 3px;
    cursor: pointer;
    padding: 0;
    max-width: 275px;
}

.pipe-segment::before {
    content: "";
    position: absolute;
    top: -30px;
    left: 0;
    right: 0;
    bottom: -20px;
    z-index: 1;
}

.pipe-segment:hover {
    transform: translateY(-10px);
}

.pipe-segment .thumb {
    position: absolute;
    bottom: 60px;
    left: 0;
    width: 100%;
    height: auto;
    height: auto;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 10;
    pointer-events: none;
}

.pipe-segment:hover .thumb {
    opacity: 1;
    visibility: visible;
}


.pipe-label {
    position: absolute;
    bottom: 13px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    white-space: normal;
    line-height: 1.2;
    padding: 0 5px;
}

.pipe-segment.active {
    background: #ffffff;
}

.pipe-segment::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 0;
    background-color: var(--primary-color);
    z-index: 1;
}

.pipe-segment.active::after {
    border-radius: 5px;
    animation: pipeTime 5100ms linear forwards;
}

/* Video Cover Styles */
.item-video {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.item-video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    /* 16:9 Aspect Ratio */
    min-height: 100%;
    min-width: 177.77vh;
    /* 16:9 Aspect Ratio */
    transform: translate(-50%, -50%);
    pointer-events: none;
}



@keyframes pipeTime {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

.pipe-segment:hover {
    background: var(--primary-color);
}

.row-7-cols {
    display: flex;
    flex-wrap: wrap;
}

@media (min-width: 1200px) {
    .row-7-cols .col-7-custom {
        flex: 0 0 14.2857%;
        max-width: 14.2857%;
    }
}


@media (max-width: 770px) {
    .pipe-label {
        display: none;
    }

    .pipe-segment .thumb {
        bottom: 20px;
    }
}

#bannerSlider,
#bannerSlider .item {
    height: 100vh;
    max-height: 850px;
    min-height: auto !important;
}

.owl-video-wrapper {
    height: 100% !important;
    background: #000;
}

.owl-video-frame {
    width: 100% !important;
    height: 100% !important;
}


.menu-2cols {
    column-count: 2;
    column-gap: 0px;
    padding-left: 0;
    list-style: none;
}

.menu-2cols>li {
    break-inside: avoid;
}

.menu-2cols a {
    display: block;
    padding: 4px 0;
}

.menu-2cols ul {
    padding-left: 16px;
}

@media (min-width: 991px) {

    .navbar li>ul ul {
        min-width: 300px;
        z-index: 9;
    }
}

.menu-2cols li a {
    max-width: 250px;
}

.top-social-icon li a {
    color: #22386c;
}

.top-bar-info .links-wrap li a,
.btn-mega-menu {

    color: var(--secondary-color);
}

.top-bar-info li i {
    color: var(--secondary-color);
}

.navbar-nav li ul li a {
    padding: 8px 32px 8px 32px;
}

.top-social-icon li a:hover,
.btn-mega-menu:hover {
    color: var(--primary-color);
}

.navbar-nav li {
    max-width: 325px;
}

.col-mega-menu {
    padding: 15px 0px 15px 45px;

}

.btn-mega-menu i {
    transition: margin-left 0.3s ease;
}

.btn-mega-menu:hover i {
    margin-left: 5px;
}


@media (min-width: 991px) {
    .row-mega-menu {
        max-width: 650px;
    }
}



.navbar-nav>li:nth-last-child(-n + 4):hover>.ul-mega-menu {
    left: auto;
    /* Quita la alineación izquierda por defecto */
    right: 0;
    /* Alinea a la derecha */
    /* Otros estilos que necesites para asegurar la posición */
}

@media (max-width: 991px) {
    .navbar ul ul li.has-sub>a:after {
        content: none;
    }

    .navbar ul ul li.has-sub>a:before {
        content: none;
    }
}

.portfolio-style-01 .content {
    transform: translateY(60%);
}

.portfolio-style-01 .content .title {
    padding-bottom: 5px !important;
}

.portfolio-style-01::before {
    background: transparent !important;
}

/* .portfolio-style-01 .portfolio-body {
    background-image: linear-gradient(to top, rgb(34 57 108), var(--secondary-color)00);
} */





.accordion-style .btn-link:after {
    color: var(--primary-color);
}

.owl-carousel .owl-nav button.owl-prev,
.owl-carousel .owl-nav button.owl-next {
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    cursor: pointer;
    display: block;
    margin: 0px 5px;
    height: 52px;
    width: 52px;
    color: var(--theme-color1);
    border-radius: 50%;
    background-color: rgb(255, 255, 255);
    font-size: 16px;
    line-height: 52px;
    font-weight: 700;
    text-align: center;
    -webkit-transition: all 500ms ease;
    transition: all 500ms ease;
}

.carousel-blog .owl-item {
    margin-bottom: 30px;
}

.carousel-blog .owl-nav.disabled,
.carousel-blog .owl-dots.disabled {
    display: block !important;
}

.service-carousel .owl-dots {
    text-align: center !important;
    position: absolute !important;
    justify-content: center !important;
    -webkit-tap-highlight-color: transparent !important;
    display: flex !important;
    width: 100% !important;
}

.navbar-nav>li>a {
    text-transform: none;
}

.normal-button {
    cursor: pointer;
    display: inline-block;
    position: relative;
    font-size: 14px;
    font-weight: 700;
    line-height: 24px;
    color: #ffffff;
    background: var(--primary-color) !important;
    padding: 13px 32px !important;
    /*  padding: 20px 20px !important; */
    border-radius: 0.25rem !important;
    /* border-radius: 50px !important; */
    z-index: 1;
    text-transform: uppercase;
    transition: all 0.4s ease-in-out 0s;
}

.product-carousel .owl-nav.disabled {
    display: block !important;
}

.product-carousel .owl-nav.disabled button.owl-prev,
.product-carousel .owl-nav.disabled button.owl-next {
    box-shadow: none !important;
}


.product-carousel .owl-nav.disabled span {
    box-shadow: none;
    background: #42465f00 !important;
}

a.btn-style-custom:hover {
    background: var(--secondary-color);
}

a.btn-style-custom {
    cursor: pointer;
    display: inline-block;
    position: relative;
    font-size: 14px;
    font-weight: 700;
    line-height: 24px;
    color: #ffffff;
    background: var(--primary-color);
    /* padding: 13px 32px !important; */
    padding: 20px 20px;
    /* border-radius: 0.25rem; */
    border-radius: 50px !important;
    z-index: 1;
    text-transform: uppercase;
    transition: all 0.4s ease-in-out 0s;
}

.timeline-flag {
    visibility: hidden;
}

.btn-solutions {
    margin-top: 20px;
}


h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Red Hat Display", sans-serif !important;
}

/* Pulsing Effect */
/* Refined Multi-Ripple Pulsing Effect */
@keyframes pulse-ripple {
    0% {
        box-shadow: 0 0 0 0 var(--primary-color);
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        box-shadow: 0 0 0 30px var(--primary-color);
        transform: scale(1.05);
        opacity: 0;
    }
}

.pulse-box {
    position: relative;
    z-index: 1;
    border-radius: 0.8rem;
}

.pulse-box::before,
.pulse-box::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    z-index: -1;
    animation: pulse-ripple 1.5s infinite linear;
}

.pulse-box::after {
    animation-delay: 0.75s;
}

.title-slider span {

    -webkit-text-fill-color: transparent;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: #fff;
}

.portfolio-style-01 .content p {
    position: absolute;
}

.portfolio-style-01:hover .content p {
    position: relative !important;
}

.portfolio-style-01 .content {
    transform: none;

    bottom: -65px;
    position: relative;
}

.portfolio-style-01:hover .content {
    transform: translateY(-70px) !important;
}

header {
    z-index: 999 !important;
}

#gjs-content-wrapper,
.content-editor {
    box-sizing: border-box !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    -webkit-font-smoothing: antialiased !important;
    font-smoothing: antialiased !important;
    font-size: 16px !important;
    letter-spacing: 0.5px !important;
    color: #4a5257 !important;
    font-weight: 500 !important;
    line-height: 1.7 !important;
}

ul.ul-mega-menu {
    max-width: 550px;
}

.card-style01 .card-body {
    background: white;
}

.content-ckaeditor li {
    height: 100%;
    flex-direction: column;
    justify-content: center;
}

/* Forzar a que los ítems del carrusel tengan la misma altura */
.carousel-blog .owl-stage {
    display: flex;
    display: -webkit-flex;
}

.carousel-blog .owl-item {
    display: flex;
    flex: 1 0 auto;
}

.carousel-blog .blog-item {
    width: 100%;
    display: flex;
}

/* Asegurar que el article ocupe todo el alto disponible */
.carousel-blog .card-style04 {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100% !important;
}

/* Hacer que el cuerpo de la tarjeta crezca para empujar el footer si existiera */
.carousel-blog .card-body {
    flex-grow: 1;
}

@media (max-width: 550px) {
    .col-mega-menu {
        padding: 35px;
    }
}

.navbar-nav>li.has-sub {
    padding-right: 0px;
}


.content_grapesjs_front h1:not(.accordion-header),
.content_grapesjs_front h2:not(.accordion-header),
.content_grapesjs_front h3:not(.accordion-header),
.content_grapesjs_front h4:not(.accordion-header),
.content_grapesjs_front h5:not(.card-title),
.content_grapesjs_front h6:not(.accordion-header) {
    margin-top: 20px !important;
}


.sticky-top {
    position: sticky;
    top: 90px;
    z-index: 99;
}

.main-wrapper,
body {
    overflow: visible !important;
}

section {
    overflow: visible !important;
}

.btn-slider-custom {
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 8px !important;
}

.owl-carousel .owl-nav button.owl-prev {
    left: -40px;
}

.owl-carousel .owl-nav button.owl-next {
    right: -40px;
}

.custom-title-megamenu {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.7rem;
}

@media (max-width: 450px) {
    .title-slider {
        font-size: 20px;
    }

    .content-slider a.btn-style-custom {
        font-size: 10px !important;
        font-weight: 600 !important;
        line-height: 5px !important;

        padding: 15px !important;
    }
}

@media (max-width: 750px) {

    .swiper-button-prev,
    .swiper-button-next {
        display: none;
    }
}






/* ==========================================================================
   SOBREESCRITURA NATIVA DE BOOTSTRAP 5
   Fuerza a todas las clases nativas (btn, border, bg, text, opacities)
   a utilizar los colores corporativos de Aplika.
   ========================================================================== */

:root,
[data-bs-theme="light"] {
    /* 1. Mapeo a las variables de tu styles.css */
    --bs-primary: var(--primary-color) !important;
    --bs-secondary: var(--secondary-color) !important;

    /* 2. Variables RGB (CRÍTICAS para que funcionen las opacities, sombras y fondos sutiles) */
    /* #f19700 convertido a RGB */
    --bs-primary-rgb: 241, 151, 0 !important;
    /* #21386c convertido a RGB */
    --bs-secondary-rgb: 33, 56, 108 !important;

    /* 3. Colores de enlaces por defecto */
    --bs-link-color: var(--primary-color) !important;
    --bs-link-hover-color: var(--secondary-color) !important;

    /* 4. Fondos sutiles y bordes (Para alertas, list-groups, bg-primary-subtle) */
    --bs-primary-bg-subtle: rgba(241, 151, 0, 0.1) !important;
    --bs-primary-border-subtle: rgba(241, 151, 0, 0.4) !important;
    --bs-secondary-bg-subtle: rgba(33, 56, 108, 0.1) !important;
    --bs-secondary-border-subtle: rgba(33, 56, 108, 0.4) !important;
}

/* 5. Sobreescritura específica para Botones Nativos de Bootstrap */
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--primary-color);
    --bs-btn-border-color: var(--primary-color);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #d98800;
    /* Naranja un poco más oscuro */
    --bs-btn-hover-border-color: #c47b00;
    --bs-btn-active-bg: #c47b00;
    --bs-btn-active-border-color: #b06e00;
    --bs-btn-disabled-bg: var(--primary-color);
    --bs-btn-disabled-border-color: var(--primary-color);
}

.btn-secondary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--secondary-color);
    --bs-btn-border-color: var(--secondary-color);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #18294f;
    /* Azul un poco más oscuro */
    --bs-btn-hover-border-color: #121e3b;
    --bs-btn-active-bg: #121e3b;
    --bs-btn-active-border-color: #0b1326;
    --bs-btn-disabled-bg: var(--secondary-color);
    --bs-btn-disabled-border-color: var(--secondary-color);
}

.btn-outline-primary {
    --bs-btn-color: var(--primary-color);
    --bs-btn-border-color: var(--primary-color);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--primary-color);
    --bs-btn-active-bg: var(--primary-color);
}

.btn-outline-secondary {
    --bs-btn-color: var(--secondary-color);
    --bs-btn-border-color: var(--secondary-color);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--secondary-color);
    --bs-btn-active-bg: var(--secondary-color);
}

.content_grapesjs_front .swiper-button-prev,
.content_grapesjs_front .swiper-button-next,
.content-editor .swiper-button-prev,
.content-editor .swiper-button-next {

    width: 40px !important;
    height: 40px !important;
}

.content_grapesjs_front .swiper-button-next:after,
.content_grapesjs_front .swiper-button-prev:after,
.content-editor .swiper-button-next:after,
.content-editor .swiper-button-prev:after {
    font-size: 25px;
}