@font-face {
   font-family: 'Poppins';
   src: url("../librerias/PoppinsFont/Poppins-Regular.ttf");
}

@font-face {
   font-family: 'PoppinsThin';
   src: url("../librerias/PoppinsFont/Poppins-Thin.ttf");
}

/* General */
body,
html {
   margin: 0;
   padding: 0;
   font-family: Arial, sans-serif;
   background-color: #f4f4f4;
   height: 100%; /*Asegura que la altura sea del 100% */
   display: flex;
   flex-direction: column;
}
 
 
 /* Contenedor del contenido principal */
 .main-content {
   flex: 1; /* Este contenido se expande para ocupar el espacio disponible */
 }

a:hover {
   text-decoration: none !important;
   /* color: white; */
}

header {
   background-color: #d93232;
   display: flex;
   justify-content: space-between;
   padding: 10px;
   align-items: center;
}

header .logo h1 {
   color: white;
   margin: 0;
   font-size: 24px;
}

nav {
   display: grid;
   grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
   gap: 10px;
}

nav a {
   margin: 0 15px;
   font-size: 16px;
   color: white;
}

/* Fondo y Login Box */
.background-image {
   background-image: url('../imgs/ImagenCamiones2.webp');
   background-size: cover;
   background-position: center;
   height: 93vh;
   display: flex;
   align-items: center;
   justify-content: center;
   position: relative !important;
}

.login-box {
   background-color: rgba(255, 255, 254, 0.7);
   /*padding: 30px;*/
   border-radius: 10px;
   color: white;
   text-align: center;
   max-width: 450px;
   width: 100%;
}

.login-box h2 {
   margin-bottom: 20px;
}

.login-box form {
   display: flex;
   flex-direction: column;
}

.login-box input {
   padding: 10px;
   margin: 10px 0;
   border-radius: 5px;
   border: none;
}

/*
.login-box button {
   padding: 10px;
   margin-top: 10px;
   background-color: #d93232;
   color: white;
   border: none;
   border-radius: 5px;
   cursor: pointer;
}
   */

.login-box p {
   margin: 10px 0;
}

/* Footer con iconos */

footer {
   background-color: #f4f4f4;
   padding: 20px;
   text-align: center;
}
  

.footer-icons a {
   margin: 0 0.8em;
}

.footer-icons img {
   width: 60px;
   height: 60px;
   /* border-radius: 50%; */
}

.footer-iconsIzq a {
   margin: 0 0.1em;
}

.footer-iconsIzq img {
   width: 50px;
   height: 50px;
   /* border-radius: 50%; */
}

footer p {
   margin-top: 15px;
}

.login-box_header {
   /* background-image: url('../imgs/fontoForm.png');*/
   background-color: rgba(217, 50, 50, 0.9);
   font-weight: bold;
   /* Texto en negrita */
   padding: 0.75rem;
   /* Espaciado interno */
   border-bottom: 1px solid #e0e0e0;
   /* Borde inferior */
   border-top-left-radius: 10px;
   border-top-right-radius: 10px;
   padding-top: 3em !important;
   padding-bottom: 3em !important;
}

.form_login {
   padding: 30px;
}

.input_login {

   background-color: rgba(217, 50, 50, 1);
   border-radius: 5em;
}

.normalInput {

   background-color: rgba(217, 50, 50, 1);
   border-radius: 0.5em;
}

.form_control_index_log {
   border-radius: 5em !important;
}

.input_normal {
   border-radius: 0.5em !important;
}

.input_gt_index {
   border: none;
   background-color: transparent;
   color: white;
   margin-top: 0.3em;
}

.input-group {
   margin-bottom: 0.3em;
   margin-top: -0.3em;
   padding-right: 0.3em !important;
}

.btn-air-danger {
   -webkit-box-shadow: 0 5px 10px 2px rgba(88, 103, 221, 0.19) !important;
   box-shadow: 0 5px 10px 2px rgba(88, 103, 221, 0.19) !important;
}

.btn-pill {
   border-radius: 60px !important;
}

.btn-danger {
   background-color: rgba(217, 50, 50, 1) !important;
   border-color: rgba(217, 50, 50, 1) !important;
   -webkit-tap-highlight-color: transparent;
   -webkit-transform: translateZ(0);
   transform: translateZ(0);
}

.btn-gray {
   background-color: #2c3e50 !important;
   border-color: #2c3e50 !important;
   -webkit-tap-highlight-color: transparent;
   -webkit-transform: translateZ(0);
   transform: translateZ(0);
   color: white;
}

body {
   margin: 0;
   height: 100vh;
   display: flex;
   flex-direction: column;
}

.background {
   flex: 1;
   background-image: url('tu-imagen.jpg');
   /* Reemplaza con la URL de tu imagen */
   background-size: cover;
   background-position: center;
   position: relative;
}
 
footer {
   background-color: transparent;  
   color: white;
   text-align: center;
   padding: 20px;
   /* position: absolute; */
   /* Posición absoluta para superponer */
   bottom: 0;
   left: 0;
   right: 0;
}

.modal-header {
   background-color: #2c3e50 !important;
   color: white;
   font-family: 'Poppins';
}


.ft-thx-slider-section {
   padding-top: 80px;
}

.ft-thx-feature-content {
   top: -80px;
   z-index: 2;
}

.ft-thx-feature-innerbox {
   padding: 50px 30px 45px;
   background-color: #ffffff;
   -webkit-box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
   box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
}

.ft-thx-feature-innerbox .thx-inner-icon {
   margin-bottom: 18px;
}

.ft-thx-feature-innerbox .thx-inner-icon i {
   line-height: 0.75;
   font-size: 50px;
   color: #ea1e00;
}

.ft-thx-feature-innerbox .ft-thx-inner-text h3 {
   font-size: 20px;
   font-weight: 700;
   padding-bottom: 15px;
   color: #000d51;
}

.ft-thx-banner-text {
   padding-top: 70px;
}

.ft-thx-banner-text .banner-slug {
   font-size: 18px;
   font-weight: 600;
   color: #ea1e00;
}

.ft-thx-banner-text h1 {
   color: #fff;
   font-size: 60px;
   font-weight: 700;
   padding: 10px 0px 20px;
}

.ft-thx-banner-text p {
   color: #fff;
}

.ft-thx-banner-text .ft-thx-banner-btn {
   margin-top: 30px;
}

.ft-thx-banner-text .ft-thx-banner-btn a {
   color: #fff;
   height: 55px;
   width: 150px;
   display: -webkit-box;
   display: -ms-flexbox;
   display: flex;
   font-weight: 600;
   margin-right: 15px;
   border-radius: 5px;
   -webkit-box-align: center;
   -ms-flex-align: center;
   align-items: center;
   -webkit-box-pack: center;
   -ms-flex-pack: center;
   justify-content: center;
   background-color: #ea1e00;
}

.ft-thx-banner-text .ft-thx-banner-btn a:hover {
   background-color: #943126 !important;
   color: white !important;
}

.Boton_Recibo_s {
   color: white !important;
   background-color: #2c3e50 !important
}

.mensaje{
   color: white;
   padding: 12px;
   border-radius: 10px;
   font-size: 12px;
   text-align: center;
   width: 20%;
}
#mensajePersona {
   display: none;
   transform: translateX(1em);
   background-color: #b70100;
}

#mensajeSeguridad{
   display: none;
   transform: translateX(5.5em);
   background-color: #6a6a6a;
}

#mensajeInnovacion{
   display: none;
   transform: translateX(10.5em);
   background-color: #ff3324;
}

#mensajeServicio{
   display: none;
   transform: translateX(15em);
   background-color: #006cb8;
}

#mensajeIntegridad{
   display: none;
   transform: translateX(19.5em);
   background-color: #ff9400;
}

#mensajeSostenibilidad{
   display: none;
   transform: translateX(24em);
   background-color: #53a500;
}

.imagenMensaje {
   width: 5em !important;
   position: fixed;
   top: -2em;
   left: -1em;
}

.bordeInferior{
   border: solid 2px;
    padding: 1em;
    border-radius: 10px;
}

 /* Estilo del offcanvas */
 .offcanvas {
   position: fixed;
   top: 0;
   left: -30em; /* Oculto inicialmente */
   width: 30em;
   height: 100vh;
   background-color: #f4f4f4;
   box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
   transition: left 0.3s ease;
   z-index: 1000;
   /* padding: 20px; */
   overflow-y: auto; /* Scroll vertical */
 }


 /* Offcanvas visible */
 .offcanvas.active {
   left: 0; /* Mostrar offcanvas */
 }

 /* Estilo del overlay */
 .overlay {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: rgba(0, 0, 0, 0.5);
   opacity: 0;
   visibility: hidden;
   transition: opacity 0.3s ease;
   z-index: 999;
 }

 /* Overlay visible */
 .overlay.active {
   opacity: 1;
   visibility: visible;
 }

 /* Contenido */
 .offcanvas h2 {
   margin: 0 0 20px;
 }

 .itemMenu:hover{
    color:#d93232 !important;
 }


  /* Elementos del menú */
  .menu-item {
   display: flex;
   align-items: center;
   padding: 10px 15px;
   cursor: pointer;
   transition: all 0.3s ease;
   position: relative;
 }

 /* Estilo predeterminado */
 .menu-item span {
   flex-grow: 1;
   color: #000;
   font-size: 16px;
 }

 .menu-item .icon {
   color: #ccc;
   font-size: 16px;
 }

 /* Estilo activo */
 .menu-item.active {
   background-color: #fff;
   font-weight: bold;
 }

 .menu-item.active span {
   color: #ea1e00; /* Color rosa */
 }

 .menu-item.active::before {
   content: "";
   position: absolute;
   left: 0;
   top: 0;
   bottom: 0;
   width: 4px;
   background-color: #ea1e00; /* Barra rosa */
 }

 /* Hover para hombre */
 .menu-item:hover {
   background-color: #fff;
 }

 .menu-item:hover span {
   color: #ea1e00;
 }

 .menu-item:hover .icon {
   color: #ea1e00;
 }

 .menu-item:hover::before {
   content: "";
   position: absolute;
   left: 0;
   top: 0;
   bottom: 0;
   width: 4px;
   background-color: #ea1e00;
 }

 .menu-item:hover .flecha{
    display: block !important;
 }

 /* Submenú */
.submenu{
   display: none;
   position: fixed !important;
   top: 0;
   left: 30em; /* Aparece al lado derecho */
   min-width: 40em;
   max-width: 60em;
   background-color: #fff;
   box-shadow: 2px 0 5px rgba(0,0,0,0.3);
   padding: 15px;
   z-index: 1050;
   border-bottom-right-radius: 1em;
   border-top-right-radius: 1em;
 }

 
 .submenu h3 {
   margin-top: 0;
 }
 
 
 .submenu ul {
   list-style: none;
   padding: 0;
   margin: 0;
 }
 
 .submenu ul li {
   margin-bottom: 10px;
 }
 
 .submenu ul li a {
   color: #2c3e50;
   text-decoration: none;
   font-size: 16px;
 }
 
 .submenu ul li a:hover {
   font-weight: 600;
 }
 
 /* Mostrar el submenú al hacer hover */
 .menu-item:hover .submenu {
   display: block;
 }

 /*inicio card lateral*/
 /* Contenedor principal */
.rank-card {
   width: 300px;
   padding: 20px;
   background-color: white; /* Color de fondo */
   border-radius: 15px; /* Bordes redondeados */
   box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Sombra */
   text-align: center; /* Alinear texto al centro */
   font-family: 'Arial', sans-serif;
   position: relative;
 }
 
 /* Título */
 .rank-title {
   font-size: 18px;
   color: #2c3e50; /* Color del título */
   margin: 0;
   margin-bottom: 10px;
   font-weight: bold;
   font-family: 'Poppins';
 }
 
 /* Mensaje */
 .rank-message {
   font-size: 14px;
   color: #4a4a4a; /* Color del texto */
   margin: 0;
   margin-bottom: 20px;
   line-height: 1.5;
 }
 
 /* Fondo curvado */
 .rank-card::before {
   content: "";
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 50px;
   background: linear-gradient(to bottom, #d6d7ff, #e9eaff);
   border-top-left-radius: 15px;
   border-top-right-radius: 15px;
   z-index: -1;
 } 


 
 /*fin card lateral*/


 /*Sección para los comentarios de las publicaciones*/
 .post-container {
   display: flex;
   align-items: flex-start;
   width: 100%;
   margin: 20px auto;
   padding: 15px;
   border-radius: 8px;
}

.profile-pic {
   width: 60px;
   height: 60px;
   border-radius: 50%;
   overflow: hidden;
   margin-right: 15px;
   flex-shrink: 0;
}

.profile-pic img {
   width: 100%;
   height: auto;
   object-fit: cover;
}

.message-bubble {
   background-color: #ffffff;
   border: 1px solid #ddd;
   box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
   border-radius: 15px;
   padding: 15px;
   position: relative;
   flex: 1;
}

.message-bubble::before {
   content: "";            
   position: absolute;
   top: 20px;
   left: -10px;
   width: 0;
   height: 0;
   border-style: solid;
   border-width: 10px 10px 10px 0;
   border-color: transparent #ddd transparent transparent;
}

.name {
   color: #CC0000;
   font-weight: bold;
   margin: 0;
   font-size: 16px;
   font-family: 'Poppins';
}

.time {
   color: #888;
   font-size: 12px;
   margin-bottom: 8px;
}

.text {
   font-size: 12.5px;
   line-height: 1.5;
   color:#2e4053;
}

.text span {
   font-weight: bold;
   color: #0073b1;
}

.close-btn {
   color: #888;
   font-size: 18px;
   cursor: pointer;
   position: absolute;
   top: 10px;
   right: 10px;
}

.name .time i {
   display: inline-block;
   vertical-align: middle;
}

 /*Fin de la sección para los comentarios de las publicaciones*/

 /* Estilo del enlace */
 /* Estilo del enlace */
.tooltip-link {
   position: relative; /* Asegura que los pseudo-elementos se posicionen en relación al enlace */
   display: inline-block;
}

/* Texto del tooltip */
.tooltip-link::before {
   content: attr(title);
   position: absolute;
   bottom: 120%; /* Posiciona el tooltip justo arriba del elemento */
   left: 50%; /* Centra el tooltip horizontalmente */
   transform: translateX(-50%); /* Ajusta el tooltip al centro */
   background-color: #2c3e50; /* Fondo gris oscuro */
   color: #ffffff; /* Texto blanco */
   padding: 6px 10px;
   border-radius: 4px; /* Bordes redondeados */
   font-size: 14px;
   font-family: Arial, sans-serif;
   white-space: nowrap;
   opacity: 0;
   visibility: hidden;
   transition: opacity 0.2s ease-in-out;
   z-index: 10; /* Asegura que el tooltip aparezca sobre otros elementos */
}

/* Flecha del tooltip */
.tooltip-link::after {
   content: '';
   position: absolute;
   bottom: 120%; /* Alinea la flecha con el borde inferior del tooltip */
   left: 50%; /* Centra la flecha horizontalmente */
   transform: translateX(-50%); /* Ajusta la posición de la flecha */
   border-width: 6px;
   border-style: solid;
   border-color: transparent transparent #2c3e50 transparent; /* Flecha con el mismo color que el fondo del tooltip */
   opacity: 0;
   visibility: hidden;
   transition: opacity 0.2s ease-in-out;
   z-index: 10; /* Asegura que la flecha aparezca sobre otros elementos */
}

/* Mostrar tooltip al hacer hover */
.tooltip-link:hover::before,
.tooltip-link:hover::after {
   opacity: 1;
   visibility: visible;
}
