
.card-title {
  font-weight: bold;
}

/* Tabs base */
.custom-tab-button {
    background-color: #ffffff; /* fondo blanco para tabs inactivos */
    color: #031b4e !important; /* azul oscuro institucional */
}

    /* Tab activo */
    .custom-tab-button.active {
        background-color: #8b1f2d !important; /* rojo vino institucional */
        color: #ffffff !important;
        border-color: #8b1f2d !important;
    }

    /* Hover de todos los tabs */
    .custom-tab-button:hover {
        background-color: #21cdad !important; /* verde institucional */
        color: #ffffff !important;
        border-color: #21cdad !important;
    }

.navbar-nav li ul {
    left: 0;
    z-index: 9999; /* aseguramos que esté encima de otros elementos */
    display: none;
    padding: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.navbar-nav > li:hover > ul {
    display: block;
}

#aboutTabsContent {
    position: relative;
    transition: height 0.3s ease;
    min-height: 250px; /* Opcional: altura mínima para evitar saltos al contenido muy corto */
}

ul.segmentos-menu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 1000px;
    max-width: 90vw;
    padding: 20px;
    background: #fff;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 999;
    display: none;
    border-radius: 12px;
}

.segmentos-menu li ul {
    background-color: #ffffff; /* nuevo fondo */
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}


/* Encabezado de categoría */
ul.segmentos-menu > li > a {
    font-weight: bold;
    display: block;
}

@media (max-width: 992px) {
    ul.segmentos-menu > li.has-sub {
        flex: 1 1 45%;
    }
}

@media (max-width: 600px) {
    ul.segmentos-menu > li.has-sub {
        flex: 1 1 100%;
    }
}

.segmentos-menu li ul li a {
    white-space: nowrap; /* evita el salto de línea */
    display: inline-block; /* mantiene tamaño según contenido */
    min-width: max-content; /* asegura que se expanda horizontalmente */
}

ul.segmentos-menu,
.segmentos-menu li ul {
    transition: border-radius 0.2s ease;
}


/* Estilo base para el botón del tab */
.side-bar-list .nav-link {
    position: relative;
    display: block;
    z-index: 1;
    transition: all 0.3s ease 0s;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
    color: #fff;
    line-height: 30px;
    vertical-align: middle;
    border-radius: 5px;
    font-size: 16px;
    padding: 14px 25px;
    text-align: left;
    width: 100%;
    border: none;
}

    /* Estilo activo */
    .side-bar-list .nav-link.active {
        background-color: #21cdad;
        color: #fff;
    }

    /* Efecto hover animado con pseudo-elemento */
    .side-bar-list .nav-link::before {
        position: absolute;
        left: 0;
        top: 0;
        z-index: -1;
        height: 100%;
        width: 100%;
        content: "";
        background-color: #21cdad;
        transform: scale(0, 1);
        transform-origin: right top;
        transition: transform 500ms cubic-bezier(0.86, 0, 0.07, 1);
        border-radius: 5px;
    }

    /* Hover efecto expandido */
    .side-bar-list .nav-link:hover::before {
        transform: scale(1, 1);
        transform-origin: top left;
    }
@media (max-width: 991.98px) {
    .side-bar-block {
        display: none !important;
    }
}

/* Estilo del dropdown en móviles */
#mobileTabSelector {
    background-color: #21cdad; /* color institucional */
    color: #ffffff;
    border: none;
    border-radius: 5px;
    padding: 14px 20px;
    font-size: 16px;
    width: 100%;
    min-height: 48px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23ffffff' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
}

    /* Hover */
    #mobileTabSelector:hover {
        background-color: #21cdad;
        color: #fff;
    }

select:focus {
    outline: none;
    box-shadow: none;
}


.runner-wrap {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 12px;
    height: 80px;
    pointer-events: none;
    z-index: 9999;
    overflow: visible;
}

/* Asegúrate de NO tener otra regla .runner después de esta */
.runner {
    position: absolute;
    bottom: 0;
    height: 80px;
    transform: translateX(-120%);
    animation-name: run-cycle;
    animation-duration: 7s; /* 2s correr + 5s pausa */
    animation-timing-function: linear;
    animation-iteration-count: infinite; /* loop */
    animation-fill-mode: none; /* que NO se quede “congelado” */
    image-rendering: -webkit-optimize-contrast;
}

@keyframes run-cycle {
    0% {
        transform: translateX(-120%);
    }
    28.57% {
       transform: translateX(calc(100vw + 20%));
    }
    28.58% {
        transform: translateX(-120%);
    }
    100% {
        transform: translateX(-120%);
    }
}
/* Respeto a usuarios con reducción de movimiento */
@media (prefers-reduced-motion: reduce) {
    .runner {
        animation: none;
    }
}

/* Asegura que el ícono sea visible en .navbar-light */
.navbar-light .navbar-toggler-icon {
    background-image: var(--bs-navbar-toggler-icon-bg, url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0,0,0,.7)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"));
}

.navbar-toggler {
    border: none;
    outline: none;
}

@media (max-width: 991.98px) {
    .onepage-nav .navbar-nav {
        display: block;
    }
    /* deja que el collapse la muestre/oculte */
    .onepage-nav .navbar {
        position: relative;
        z-index: 1040;
    }
    /* sobre el overlay */
}


@media (max-width: 991.98px) {
    #megaMobile .list-group-item,
    #solMobile .list-group-item {
        padding: 14px 16px;
    }

    #megaMobile .seg-item i,
    #solMobile .sol-item i {
        width: 22px;
        text-align: center;
        margin-right: 8px;
        opacity: .85;
    }

    #megaMobile .offcanvas-body,
    #solMobile .offcanvas-body {
        max-height: calc(100vh - 56px);
        overflow: auto;
    }

    .offcanvas {
        z-index: 1060;
    }
    /* por encima de overlays del tema */
}

/* ===== Dentro del MEGAMENÚ: abrir solo con click ===== */

/* Segmentos: oculta sub-submenús por defecto */
ul.segmentos-menu li > ul {
    display: none;
}

/* Anula hover en niveles internos dentro del megamenú */
ul.segmentos-menu li.has-sub:hover > ul {
    display: none !important;
}

/* Al abrir por JS (clase .open), muestra el sub-submenú */
ul.segmentos-menu li.has-sub.open > ul {
    display: block; /* o grid si tu sub-sub necesita layout especial */
}

/* Soluciones (estructura análoga): oculta internos por defecto */
.onepage-header .nav-soluciones > ul li > ul {
    display: none;
}

/* Anula hover en niveles internos dentro del megamenú de Soluciones */
.onepage-header .nav-soluciones > ul li.has-sub:hover > ul {
    display: none !important;
}

/* Mostrar sub-submenú de Soluciones solo cuando está .open */
.onepage-header .nav-soluciones > ul li.has-sub.open > ul {
    display: block;
}

/* (Opcional) En desktop refuerza que el hover interno no abra nada */
@media (min-width: 992px) {
    ul.segmentos-menu li.has-sub:hover > ul,
    .onepage-header .nav-soluciones > ul li.has-sub:hover > ul {
        display: none !important;
    }
}


.about-media {
    position: relative;
    /*min-height: 420px;*/
}

    .about-media .about-img {
        position: absolute;
        height: auto;
        border-radius: 0.5rem;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    }

    /* Imagen grande (abajo) */
    .about-media .about-bg {
        bottom: 0;
        left: 0;
        width: 100%;
        max-width: 70%;
        z-index: 1;
        transform: translate(0%, 50%)
    }

    /* Imagen pequeña (arriba a la derecha) */
    .about-media .about-fg {
        top: 0;
        right: 0;
        width: 55%;
        max-width: 320px;
        transform: translate(15%, -150%);
        z-index: 2;
    }

    /* Caja "20+ Años" */
    .about-media .exp-box {
        position: absolute;
        z-index: 3;
        transform: translate(10%, -65%)
    }

    .about-media .box-inner {
        background-color: #16c1a5;
        color: #fff;
        padding: 0.8rem 1.2rem;
        border-radius: 4px;
        text-align: center;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

        .about-media .box-inner h4 {
            font-size: 2rem;
            margin: 0;
            font-weight: 700;
        }

        .about-media .box-inner span {
            font-size: 1.5rem;
        }

        .about-media .box-inner h6 {
            font-size: 0.95rem;
            margin: 0;
            font-weight: 600;
        }

/* --- Responsivo --- */
@media (max-width: 991.98px) {
    .about-media {
        min-height: 360px;
    }

        .about-media .about-bg {
            width: 100%;
            left: 50%;
            transform: translateX(-50%);
            bottom: 0;
            max-width: 75%;
        }

        .about-media .about-fg {
            width: 60%;
            right: 5%;
            top: -10%;
            transform: none;
        }

        .about-media .exp-box {
            left: 60%;
            transform: translate(10%, 45%)
        }
}
