/** ADD YOUR AWESOME CODES HERE **/
.background-image {
    background-image: url(images/banner_img.png);
    background-size: cover;
    width: 100%;
    height: 100%;
    position: absolute;
    filter: brightness(0.5);
    /* Ajusta el valor para controlar el oscurecimiento (0.5 es un ejemplo) */
    opacity: 0.7;
    /* Ajusta la opacidad según sea necesario */
}

/* estilos de boton de whatsapp */
.joinchat__button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #007bff;
    /* Color de fondo del botón */
    color: #fff;
    /* Color del texto del botón */
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.joinchat__tooltip {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #007bff;
    /* Color de fondo del tooltip */
    color: #fff;
    /* Color del texto del tooltip */
    padding: 5px 10px;
    border-radius: 5px;
}

.joinchat__button:hover .joinchat__tooltip {
    display: block;
}

/* Estilos segundo menú  */
.tab_menu ul li a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8px;
    color: #333;
    /* Cambia el color del texto según tu preferencia */
    font-size: 10px;
    /* Ajusta el tamaño del texto */
    white-space: nowrap;
    /* Evitar el corte de texto en múltiples líneas */
}

.tab_menu ul li a .icon {
    margin-bottom: 4px;
    /* Espacio entre la imagen y el texto */
}

.tab_menu ul li {
    margin-right: 5px;
    margin-left: 5px;
    /* Ajusta el valor según la distancia horizontal deseada entre los elementos */
}


.tab_menu ul li a .icon {
    margin-bottom: 5px;
    /* Espacio entre la imagen y el texto */
}

.tab_menu ul {
    display: flex;
    overflow-x: auto;
    text-align: center;
    /* Alinea los elementos a la izquierda */
}

.tab_menu ul li {
    margin-right: 10px;
}

/* Estilos opcionales para el desplazamiento horizontal (scroll) si los has aplicado previamente */
.tab_menu ul::-webkit-scrollbar {
    width: 8px;
}

.tab_menu ul::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 9px;
}

.tab_menu ul::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}

.tab_menu {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.tab_menu ul {
    max-width: 100%;
    overflow-x: auto;
}

.tab_menu ul::-webkit-scrollbar {
    width: 8px;
}

.tab_menu ul::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 10px;
}

.tab_menu ul::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}

/* Estilos para formulario de contacto */
.section.contact_section {
    background-image: url('images\banner_img.png') no-repeat center center fixed;
    background-size: cover;
    position: relative;
}

/* Aplicar un tono azul semitransparente sobre la imagen de fondo */
.section.contact_section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 56, 91, 0.7);
    /* Ajusta el color y la opacidad según tus preferencias */
    z-index: -1;
    /* Coloca este pseudo-elemento detrás del contenido principal */
}

.parallax-section {
    background-image: url('images/bg-image.png');
    /* Ruta de tu imagen de fondo */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 600px;
    /* Ajusta la altura según tus preferencias */
}

/* Agrega una capa semitransparente encima de la imagen de fondo */
.parallax-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Ajusta el color y la opacidad según tus preferencias */
}

/* stilos linea de tiempo */
.tl {
    position: relative;
    padding: 20px 0 20px;
    list-style: none;
}

.tl:before {
    content: " ";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    margin-left: -1.5px;
    background-color: #eeeeee;
}

.tl>li {
    position: relative;
    margin-bottom: 20px;
    list-style-type: none !important;
}

.tl>li:before,
.tl>li:after {
    content: " ";
    display: table;
}

.tl>li:after {
    clear: both;
}

.tl>li:before,
.tl>li:after {
    content: " ";
    display: table;
}

.tl>li:after {
    clear: both;
}

.tl>li>.tl-panel {
    float: left;
    position: relative;
    width: 40%;
    padding: 20px;
    border: 1px solid #d4d4d4;
    border-radius: 5px;
    -webkit-box-shadow: 0 1px 6px rgba(0, 0, 0, 0.175);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.175);
}

.tl-body {
    font-size: 18px;
    line-height: 26px;
    color: rgba(121, 112, 112, 0.71);
}

.tl>li>.tl-panel:before {
    content: " ";
    display: inline-block;
    position: absolute;
    top: 26px;
    right: -15px;
    border-top: 15px solid transparent;
    border-right: 0 solid #ccc;
    border-bottom: 15px solid transparent;
    border-left: 15px solid #ccc;
}

.tl>li>.tl-panel:after {
    content: " ";
    display: inline-block;
    position: absolute;
    top: 27px;
    right: -14px;
    border-top: 14px solid transparent;
    border-right: 0 solid #fff;
    border-bottom: 14px solid transparent;
    border-left: 14px solid #fff;
}

.tl>li>.tl-badge {
    z-index: 1;
    position: absolute;
    top: 16px;
    left: 50%;
    width: 50px;
    height: 50px;
    margin-left: -25px;
    border-radius: 50% 50% 50% 50%;
    text-align: center;
    font-size: 1.4em;
    line-height: 50px;
    color: #fff;
    background-color: #999999;
}

.tl>li.tl-inverted>.tl-panel {
    float: right;
}

.tl>li.tl-inverted>.tl-panel:before {
    right: auto;
    left: -15px;
    border-right-width: 15px;
    border-left-width: 0;
}

.tl>li.tl-inverted>.tl-panel:after {
    right: auto;
    left: -14px;
    border-right-width: 14px;
    border-left-width: 0;
}

.tl-badge {
    font-size: 18px !important;
    font-weight: bold;
}

.tl-badge.primary {
    background-color: #2e6da4 !important;
}

.tl-badge.success {
    background-color: #3f903f !important;
}

.tl-badge.warning {
    background-color: #f0ad4e !important;
}

.tl-badge.danger {
    background-color: #d9534f !important;
}

.tl-badge.info {
    background-color: #5bc0de !important;
}

.tl-title {
    margin-top: 0;
    margin-bottom: 10px;
    color: rgba(45, 45, 72, 0.44);
    font-size: 20px;
}

@media screen and (max-width: 380px) {
    .tl>li>.tl-panel {
        width: 25% !important;
    }
}

@media screen and (max-width: 800px) {
    .tl>li>.tl-panel {
        width: 33%;
    }
}

/* Establece la altura máxima inicial del menú a 0 y la opacidad a 0 */
#quienesSomosMenu {
    display: none;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    /* Agrega una transición suave */
}

/* Muestra el menú desplegable al hacer hover en el enlace "QUIENES SOMOS" */
#quienesSomosLink:hover+#quienesSomosMenu,
#quienesSomosMenu:hover {
    max-height: 200px;
    /* Cambia esta altura máxima según tus necesidades */
    opacity: 1;
}

/* Redefine el estilo del enlace en el menú desplegable */
#quienesSomosMenu .dropdown-item {
    display: block;
}

.img-center {
    width: 100%;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s; /* Agrega una transición suave */
    overflow: hidden; /* Oculta cualquier parte de la imagen que se desborde del contenedor */
    position: relative; 
}

.img-center:hover {
    transform: scale(1.1); /* Cambia la escala de la imagen en el hover */
    transform-origin: center; /* Establece el punto de transformación en el centro de la imagen */
}
