/* ============================
   ESTILOS GLOBALES NODOLOG
   ============================ */

body {
  background: #f5f6f8; /* fondo neutro para TODO el sistema */
  font-family: system-ui, sans-serif;
}

.navbar-brand img {
  height: 32px;
}

.container-main {
  padding-top: 30px;
}

/* Forzar que los botones del menú queden en una sola línea */
.navbar-nav {
  flex-wrap: nowrap;
}
.navbar-nav .btn {
  white-space: nowrap;
}

/* Hero overlay (para secciones con imagen de fondo) */
.hero-overlay {
  background: rgba(0,0,0,0.5);
  padding: 2rem;
  border-radius: 8px;
}

/* Responsividad adicional */
@media (max-width: 576px) {
  .container-main {
    padding-top: 15px;
  }
  .navbar-nav .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
}

/* ============================
   LOGIN PAGE – DETECTADA POR #login-hero
   ============================ */

/* MOBILE FIRST: imagen en el body SOLO si existe #login-hero */
body:has(#login-hero) {
  background: url('/assets/img/layout/hero-logistica-7.png') center/cover no-repeat fixed;
}

/* HERO sin imagen (la imagen está en el body) */
#login-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.2rem;
  background: transparent;
  position: relative;
}

/* Overlay premium */
#login-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(2px);
}

.login-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  padding: 3rem 2.2rem;
  background: white;
  border-radius: 1.4rem;
  box-shadow: 0 14px 45px rgba(0,0,0,0.12);

  opacity: 0;
  transform: translateY(22px);
  animation: fadeInUp 0.6s ease forwards;
}

/* Animación */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Logo animado */
.login-card img {
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.login-card img:hover {
  opacity: 1;
  transform: scale(1.03);
}

/* Tipografías móviles */
.login-card h2 {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.6px;
  margin-bottom: 2.2rem;
}

.login-card label {
  font-size: 1.45rem;
  font-weight: 600;
}

/* Inputs y botones */
.login-card .form-control,
.login-card .btn {
  padding: 1.45rem;
  font-size: 1.45rem;
  border-radius: 0.8rem;
  transition: all 0.25s ease;
}

/* Inputs modernos */
.login-card .form-control {
  border: 1px solid #dcdcdc;
}
.login-card .form-control:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13,110,253,0.15);
  transform: scale(1.01);
}

/* Botón premium */
.login-card .btn-primary {
  font-weight: 700;
  letter-spacing: 0.6px;
  transition: all 0.25s ease;
}
.login-card .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* ============================
   TABLETS (≥1024px)
   ============================ */
@media (min-width: 1024px) {

  /* En tablet/desktop la imagen vuelve al hero */
  #login-hero {
    background: url('/assets/img/layout/hero-logistica-7.png') center/cover no-repeat;
    padding: 3rem 1rem;
  }

  .login-card {
    max-width: 480px;
    padding: 2.5rem;
  }

  .login-card h2 {
    font-size: 2rem;
  }

  .login-card label {
    font-size: 1.15rem;
  }

  .login-card .form-control,
  .login-card .btn {
    font-size: 1.15rem;
    padding: 1.1rem;
  }
}

/* ============================
   DESKTOP (≥1200px)
   ============================ */
@media (min-width: 1200px) {

  .login-card {
    max-width: 420px;
    padding: 2rem;
  }

  .login-card h2 {
    font-size: 1.8rem;
  }

  .login-card label {
    font-size: 1rem;
  }

  .login-card .form-control,
  .login-card .btn {
    font-size: 1rem;
    padding: 0.9rem;
  }
}

/* ============================
   TABLES / CARDS / UTILIDADES
   ============================ */

.table thead th {
  font-weight: 600;
}

.card {
  border-radius: 0.75rem;
}

.shadow-soft {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* ============================
   CARD DE FILTROS
============================ */
.filter-card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 18px rgba(0,0,0,0.06);
  margin-bottom: 1.5rem;
}

/* ============================
   TABLA PREMIUM
============================ */
.table-premium thead {
  background: #f0f2f5;
  border-bottom: 2px solid #dee2e6;
}

.table-premium th {
  font-weight: 700;
  color: #333;
}

.table-premium td {
  vertical-align: middle;
}

/* Badges de localidades */
.badge-localidad {
  background: #e7f1ff;
  color: #0d6efd;
  padding: 0.45rem 0.7rem;
  border-radius: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.3rem;
}

.badge-localidad button {
  border: none;
  background: transparent;
  color: inherit;
  font-weight: bold;
  cursor: pointer;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Estado normal */
.navbar {
    transition: all 0.3s ease;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

/* Logo normal */
.logo-nav {
    height: 32px;
    transition: height 0.3s ease;
}

/* Estado shrink al hacer scroll */
.navbar.shrink {
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Logo más chico cuando se achica */
.navbar.shrink .logo-nav {
    height: 26px !important;
}

/* Logo más grande en móviles/tablets hasta 1024px */
@media (max-width: 1024px) {
    .logo-nav {
        height: 55px !important;
    }

    .navbar.shrink .logo-nav {
        height: 40px !important;
    }
}

/* NAVBAR MOBILE (hasta 1024px) */
@media (max-width: 1024px) {

    /* Logo más grande */
    .logo-nav {
        height: 55px !important;
    }

    /* Navbar más alto y con mejor respiración */
    .navbar {
        padding-top: 0.6rem !important;
        padding-bottom: 0.6rem !important;
    }

    /* Panel colapsado más prolijo */
    .navbar-collapse {
        background: white;
        padding: 1.5rem 1rem;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }

    /* Ítems del menú más grandes y con espacio */
    .navbar-nav .nav-link {
        font-size: 1.2rem;
        padding: 0.8rem 0;
        text-align: center;
    }

    /* Separación visual entre ítems */
    .navbar-nav .nav-item + .nav-item {
        border-top: 1px solid #eee;
    }

    /* Botón hamburguesa más grande */
    .navbar-toggler {
        border: none;
        padding: 0.4rem 0.6rem;
    }

  
}

/* PANEL DESLIZABLE */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    height: 100vh;
    background: #ffffff;
    box-shadow: -4px 0 12px rgba(0,0,0,0.15);
    transition: right 0.35s ease;
    z-index: 9999;
}

.mobile-menu.open {
    right: 0;
}

.mobile-menu-content {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Links */
.mobile-link {
    font-size: 1.4rem;
    font-weight: 600;
    color: #222;
    text-decoration: none;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.mobile-link:last-child {
    border-bottom: none;
}

/* Botón cerrar */
.close-menu {
    background: none;
    border: none;
    font-size: 2rem;
    align-self: flex-end;
    margin-bottom: 1rem;
    cursor: pointer;
}

/* Logo más grande en mobile */
@media (max-width: 1024px) {
    .logo-nav {
        height: 55px !important;
    }
}





/* FORZAR QUE EL NAVBAR COLAPSE EN MOBILE */
@media (max-width: 1024px) {
    .navbar-expand-lg .navbar-collapse {
        display: none !important;
    }
}



/* Estado abierto → convertir en X */
.navbar-toggler.open .toggler-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.navbar-toggler.open .toggler-line:nth-child(2) {
    opacity: 0;
}

.navbar-toggler.open .toggler-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}
/* Botón hamburguesa personalizado */
.navbar-toggler {
    width: 40px;
    height: 32px;
    border: none !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 6px 4px;
    background: transparent !important;
    z-index: 99999;
}

/* Las tres líneas */
.toggler-line {
    width: 100%;
    height: 3px;
    background: #000;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Estado abierto → convertir en X */
.navbar-toggler.open .toggler-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.navbar-toggler.open .toggler-line:nth-child(2) {
    opacity: 0;
}

.navbar-toggler.open .toggler-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* PANEL DESLIZABLE */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    height: 100vh;
    background: #ffffff;
    box-shadow: -4px 0 12px rgba(0,0,0,0.15);
    transition: right 0.35s ease;
    z-index: 9999;
}

.mobile-menu.open {
    right: 0;
}

.mobile-menu-content {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-link {
    font-size: 1.4rem;
    font-weight: 600;
    color: #222;
    text-decoration: none;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.mobile-link:last-child {
    border-bottom: none;
}

.close-menu {
    background: none;
    border: none;
    font-size: 2rem;
    align-self: flex-end;
    margin-bottom: 1rem;
    cursor: pointer;
}
.btn-top {
    position: fixed;
    bottom: 22px;
    right: 22px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #15365C; /* azul institucional */
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
}

.btn-top.show {
    opacity: 1;
    visibility: visible;
}

.btn-top:hover {
    background: #0d6efd;
    transform: translateY(-3px);
}
@media (max-width: 1024px) {
    .btn-top {
        width: 70px;
        height: 70px;
        font-size: 1.9rem;
        bottom: 18px;
        right: 18px;
    }
}
@media (max-width: 576px) {
    .btn-top {
        width: 70px;
        height: 70px;
        font-size: 2.2rem;
        bottom: 16px;
        right: 16px;
    }
}