/* --- Botones y contenedores del header igual que Style.css, sin animaciones --- */
.input-group {
  display: flex !important;
  align-items: stretch !important;
  gap: 0 !important;
  justify-content: flex-start !important;
  width: auto !important;
  max-width: fit-content !important;
}
.input-group > .form-control {
  margin-right: 0 !important;
  position: relative;
  z-index: 2;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 200px !important;
}
.input-group > .btn {
  margin-left: 0 !important;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.input-group-lg .form-control {
  min-height: 50px;
  margin-right: 0 !important;
}
.input-group-lg .btn {
  min-height: 50px;
  margin-left: 0 !important;
}
#ProyectoInput {
  border: 2px solid #0082bb;
  border-right: none !important;
  border-radius: 8px 0 0 8px !important;
  font-size: 1.1rem;
  width: auto !important;
  min-width: 320px !important;
  padding: 12px 16px;
  left: 0% !important;
}
#ProyectoInput:focus {
  border-color: #009bd5;
  border-right: none !important;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 130, 187, 0.25);
}
#btnMostrarTodosProyectos {
  border: 2px solid #0082bb;
  background: linear-gradient(135deg, #0082bb 0%, #009bd5 100%);
  color: white;
  border-radius: 0 8px 8px 0 !important;
  border-left: none !important;
  padding: 0 12px;
  min-height: 50px;
  height: 50px;
  min-width: 50px;
  margin-left: 0 !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
#btnMostrarTodosProyectos:hover {
  background: linear-gradient(135deg, #006699 0%, #0082bb 100%);
  border-color: #006699;
}
#GabineteInput {
  border: 2px solid #0082bb;
  border-right: none !important;
  border-radius: 8px 0 0 8px !important;
  font-size: 1.1rem;
  width: auto !important;
  min-width: 320px !important;
  padding: 20px 40px;
  margin-right: 0 !important;
}
#GabineteInput:focus {
  border-color: #009bd5;
  border-right: none !important;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 130, 187, 0.25);
}
#btnMostrarTodosContenedores {
  border: 2px solid #0082bb;
  background: linear-gradient(135deg, #0082bb 0%, #009bd5 100%);
  color: white;
  border-radius: 0 8px 8px 0 !important;
  border-left: none !important;
  padding: 0 12px;
  min-height: 50px;
  height: 50px;
  min-width: 50px;
  margin-left: 0 !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
#btnMostrarTodosContenedores:hover {
  background: linear-gradient(135deg, #006699 0%, #0082bb 100%);
  border-color: #006699;
}

/* Barra de búsqueda responsive mejorada igual que Style.css */
#searchGabineteForm {
  display: flex;
  max-width: 350px;
  width: 100%;
  margin: 0;
  height: 100%;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  background: transparent;
  padding: 0;
  position: static;
  border: 1.5px solid rgba(176,176,176,0.45);
  border-radius: 10px;
}

#searchGabineteInput {
  border: none;
  border-right: 1.5px solid rgba(176,176,176,0.45);
  border-radius: 10px 0 0 10px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  min-width: 0;
  width: 100%;
  font-size: 1rem;
  box-shadow: none;
}

#searchGabineteBtn {
  border: none;
  border-radius: 0 10px 10px 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  background: linear-gradient(to right, #0082bb, #009bd5);
  font-size: 1rem;
  min-width: 44px;
  padding-left: 14px;
  padding-right: 14px;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

#searchGabineteBtn .bi-search {
  color: #fff !important;
}

#searchGabineteBtn:hover, #searchGabineteBtn:focus {
  background: rgba(0,0,0,0.08) !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.38);
}

/* Botón de usuario (dropdown) igual que Style.css */
#userDropdownBtn, #userDropdownBtn:focus, #userDropdownBtn:active, #userDropdownBtn:hover {
  background: transparent !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  color: inherit !important;
  outline: none;
  padding: 0 8px;
  font-weight: 600;
  cursor: pointer;
  min-height: 40px;
  height: 40px;
  line-height: 40px;
  font-size: 1.08rem;
}

#userDropdownBtn:focus-visible {
  outline: 2px solid #0082bb;
  outline-offset: 2px;
}

/* Botón de login igual que Style.css */
#loginBtn {
  background: transparent !important;
  border: 1.5px solid rgba(176,176,176,0.45) !important;
  border-radius: 10px !important;
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.32);
  padding: 0 18px;
  margin-top: 8;
  margin-bottom: 0;
  position: relative;
  z-index: 20;
  height: 38px;
  line-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

#loginBtn:hover, #loginBtn:focus, #loginBtn:active {
  background: rgba(0,0,0,0.08) !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.38);
}

/* Responsive para móvil */
@media (max-width: 767.98px) {
  #searchGabineteForm {
    max-width: 100%;
    flex-direction: row;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.13);
    border-radius: 8px;
  }

  #searchGabineteInput {
    min-width: 0;
    width: 100%;
    font-size: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    margin-left: 0;
    border-radius: 8px 0 0 8px;
  }

  #searchGabineteBtn {
    font-size: 1rem;
    min-width: 44px;
    background: linear-gradient(to right, #0082bb, #009bd5);
    padding-left: 14px;
    padding-right: 14px;
    border-radius: 0 8px 8px 0;
  }

  #userDropdownBtn, #userDropdownBtn:focus, #userDropdownBtn:active, #userDropdownBtn:hover {
    min-height: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 1.13rem;
  }

  #loginBtn {
    margin-top: 1px !important;
    font-size: 1.1rem;
    width: 90%;
    max-width: 220px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    height: 40px;
    line-height: 40px;
    padding: 0 12px;
    position: relative;
    top: -4px;
    border-radius: 8px !important;
  }
}

.navbar .form-control {
  min-width: 0;
  max-width: 100%;
}
/* ========================================
   ESTILOS PARA HEADER Y FOOTER
   ======================================== */

/* --- ESTILOS GENERALES DE LAYOUT --- */
html, body {
  height: 100%;
  margin: 0;
}

.page-container {
  min-height: 100vh; /* Altura mínima del alto de la ventana */
  display: flex;
  flex-direction: column;
}

.content-wrap {
  flex: 1; /* Ocupa el espacio disponible para empujar el footer hacia abajo */
}

/* --- ESTILOS DEL HEADER/NAVBAR --- */

/* Elimina el subrayado azul en el logo y texto de la cabecera */
.logo-title-link,
.logo-title-link * {
  text-decoration: none !important;
  box-shadow: none !important;
}

.navbar-expand-lg,
header.p-3.bg-dark.text-white {
    background: linear-gradient(to left, #0082bb, #009bd5); 
    color: #ffffff; /* Texto blanco */
    font-family: Arial, Helvetica, sans-serif;
    height: 200px;
}

.logo {
    height: 100px;
    width: auto;
    max-width: 150px;
    margin-right: 10px;
    margin-top: 10%; /* Agregado para bajar el logo */
    display: inline-block;
    vertical-align: middle;
    padding: 0;
    border-radius: 8px;
    z-index: 10;
    /* Elimina cualquier espacio extra: */
    object-fit: contain;
}

/* Navbar sticky por defecto */
.custom-navbar {
    background: linear-gradient(to right, #0082bb, #009bd5); 
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    height: 60px;
    min-height: 60px;
    border: none;
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 1050;
    transition: height 0.3s;
}

/* Opcional: para que el texto del título esté alineado verticalmente con el logo */
.custom-navbar .fw-semibold {
    display: flex;
    align-items: center;
    vertical-align: middle;
    margin-left: 0;
    white-space: nowrap; /* Mantiene el texto en una sola línea */
    gap: 2px;
}

/* Ajuste para el input de búsqueda */
.custom-navbar .input-group {
    width: 140px;
    max-width: 100%;
}

.form-control {
    left: -0%;
    min-width: 50px;
    max-width: 70%;
    padding-left: 10px;
    padding-right: 100px;
    font-size: 0.95rem;
    margin: 0% ;
    /* Sombra para la barra de búsqueda */
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

.custom-navbar,
.custom-navbar * {
    font-family: 'Segoe UI', 'Noto Sans', 'Arial', sans-serif !important;
    letter-spacing: 0.5px;
}

/* Flex para el contenedor del logo y texto */
.custom-navbar .col-md-auto.d-flex {
    display: flex !important;
    align-items: center !important;
}

/* Aplica Arial solo a "I&T" y Kozuka Gothic Pr6N (o similar) solo a "Solutions" en el header */
.custom-navbar .brand-it {
    font-family: Arial, !important;
    letter-spacing: 0.5px;
}

.custom-navbar .brand-solutions {
    font-family: 'Noto Sans', 'Segoe UI', 'Kozuka Gothic Pr6N', Arial, sans-serif !important;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.logo-title-link {
  display: flex !important;
  align-items: center !important;
}

/* Estilos para información del usuario en el header */
#userName {
  display: none;
}

#logoutBtn {
  display: none;
}

/* --- RESPONSIVE PARA HEADER/NAVBAR --- */

@media (max-width: 767.98px) {
    .logo {
        height: 100px;
        width: 100px;
        max-width: 100px;
        margin-top: 0;
        display: block;
        margin-left: 30%;
    }
    
    .custom-navbar {
        height: 180px;
        min-height: 120px;
        flex-direction: column;
        align-items: stretch;
    }
    
    .custom-navbar .row.w-100.align-items-center {
        flex-direction: column !important;
        align-items: flex-start !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        height: auto !important;
    }
    
    .custom-navbar .col-12,
    .custom-navbar .col-md-auto,
    .custom-navbar .col-md,
    .custom-navbar .col-md-auto.d-flex {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: flex-start !important;
        text-align: center !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    
    #searchGabineteForm {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 auto 8px auto !important;
        justify-content: center !important;
        align-items: center !important;
        display: flex !important;
    }
    
    #userInfoBar {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-bottom: 8px;
        gap: 2px;
    }
    
    #userName, #userEmail, #logoutBtn {
        display: block;
        text-align: center;
        margin: 0 auto 2px auto;
        float: none;
    }
    
    #logoutBtn {
        width: 90%;
        max-width: 220px;
        margin-bottom: 4px;
    }
    
    .custom-navbar .fw-semibold {
        font-size: 1.2rem !important;
        text-align: center !important;
        width: 100%;
        margin-top: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap; /* Mantiene el texto en una sola línea también en móvil */
    }
    
    .custom-navbar .input-group {
        width: 100% !important;
        max-width: 100% !important;
        justify-content: center;
        display: flex;
        margin-top: 0;
    }
    
    .custom-navbar .form-control {
        margin-left: -143%;
        min-width: 250px;
        max-width: 100%;
        font-size: 1.1rem;
        /* Sombra para la barra de búsqueda en móvil */
        box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    }
}

/* En pantallas pequeñas, la barra superior es más alta */
@media (max-width: 767.98px) {
    .custom-navbar {
        height: 180px;
        min-height: 120px;
    }
}

/* Efecto: al hacer scroll hacia abajo, oculta el header */
@media (max-width: 767.98px) {
    .custom-navbar.hide-on-scroll {
        transform: translateY(-120%);
        transition: transform 0.3s;
    }
    .custom-navbar.show-on-scroll {
        transform: translateY(0);
        transition: transform 0.3s;
    }
}

/* --- ESTILOS DEL FOOTER --- */

.logo-footer {
    height: 40px;
    width: auto;
}

/* Footer responsivo */
footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    padding: 1rem 0;
    margin-top: auto;
}

footer .nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1rem;
}

footer .nav li {
    margin: 0;
}

footer .nav a {
    color: #6c757d;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.2s ease;
}

footer .nav a:hover {
    color: #0082bb;
    transform: scale(1.1);
}

footer .text-body-secondary {
    color: #6c757d !important;
    font-size: 0.9rem;
}

/* Responsive para footer */
@media (max-width: 768px) {
    footer .d-flex {
        flex-direction: column !important;
        text-align: center !important;
    }
    
    footer .col-md-4 {
        margin-bottom: 1rem;
    }
    
    footer .nav {
        justify-content: center;
    }
    
    .logo-footer {
        height: 35px;
    }
}
  /* Barra de búsqueda responsive mejorada */
      #searchGabineteForm {
          display: flex;
    max-width: 350px;
    width: 100%;
    margin: 0;
    height: 100%;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    background: transparent;
    padding: 0;
    position: static;
      }
      #searchGabineteInput {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
        min-width: 0;
        width: 100%;
        font-size: 1rem;
        box-shadow: none;
      }
      #searchGabineteBtn {
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
        background: linear-gradient(to right, #0082bb, #009bd5);
        font-size: 1rem;
        min-width: 44px;
        padding-left: 14px;
        padding-right: 14px;
        box-shadow: none;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
      }
      #searchGabineteBtn .bi-search {
    color: #fff !important;
}
   @media (max-width: 767.98px) {
  #searchGabineteForm {
    max-width: 100%;
    flex-direction: row;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.13);
  }

  #searchGabineteInput {
    min-width: 0;
    width: 100%;
    font-size: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    margin-left: 0; /* Elimina el desplazamiento negativo */
  }

  #searchGabineteBtn {
    font-size: 1rem;
    min-width: 44px;
            background: linear-gradient(to right, #0082bb, #009bd5);

    padding-left: 14px;
    padding-right: 14px;
  }
}

      .navbar .form-control {
        min-width: 0;
        max-width: 100%;
      }

