/*
 * estilos.css — Estilos globales Banco de Proyectos
 * Paleta: #0E171E (dark) · #124E91 (primary) · #9CA1A8 (neutral)
 */

/* ─── Body ───────────────────────────────────────────────────────────── */
body {
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
}

/* ─── Loader ─────────────────────────────────────────────────────────── */
.loader {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background: url('../loading2.gif') 50% 50% no-repeat rgb(249,249,249);
  opacity: .8;
}
.loader > img { width: 100px; }

/* ─── Botones Bootstrap — override con paleta propia ────────────────── */
.btn-primary {
  background: #124E91 !important;
  border: 2px solid #124E91 !important;
  color: #fff !important;
}
.btn-primary:hover {
  background: #0E171E !important;
  border-color: #0E171E !important;
  color: #fff !important;
}
.btn-primary:focus { box-shadow: none !important; }

.btn-success {
  background-color: #1a7a4a !important;
  border-color: #1a7a4a !important;
  color: #fff !important;
}
.btn-success:hover {
  background-color: #145f39 !important;
  border-color: #145f39 !important;
  color: #fff !important;
  font-weight: bold;
}
.btn-success:focus { box-shadow: none !important; }

/* btn-success-guardar alias explícito */
.btn-success-guardar {
  background-color: #124E91;
  color: #fff;
  border: 2px solid #124E91;
  transition: all 0.3s ease;
}
.btn-success-guardar:hover {
  background-color: #0E171E;
  border-color: #0E171E;
  color: #fff;
  font-weight: bold;
}
.btn-success-guardar:focus { box-shadow: none; }

.btn-secondary {
  background: #9CA1A8 !important;
  border: 2px solid #9CA1A8 !important;
  color: #fff !important;
}
.btn-secondary:hover {
  background: #7a7f86 !important;
  border-color: #7a7f86 !important;
  color: #fff !important;
}
.btn-secondary:focus { box-shadow: none !important; }

.btn-warning {
  background: #9a6800 !important;
  border: 2px solid #9a6800 !important;
  color: #fff !important;
}
.btn-warning:hover {
  background: #7a5200 !important;
  border-color: #7a5200 !important;
  color: #fff !important;
  font-weight: bold;
}
.btn-warning:focus { box-shadow: none !important; }

/* ─── Botones institucionales heredados ──────────────────────────────── */
.btnCancel {
  color: #fff;
  background-color: #9CA1A8;
  border-color: #9CA1A8;
  width: 220px;
  height: 40px;
  font-size: 16px;
}
.btnCancel:hover {
  background-color: #0E171E;
  border-color: #0E171E;
  color: #fff;
  font-weight: bold;
}

.btnConfirm {
  color: #fff;
  background-color: #124E91;
  border-color: #124E91;
  width: 220px;
  height: 40px;
  font-size: 16px;
}
.btnConfirm:hover {
  background-color: #0E171E;
  border-color: #0E171E;
  color: #fff;
  font-weight: bold;
}

/* ─── Cards ──────────────────────────────────────────────────────────── */
.card-header {
  background-color: #124E91;
  color: white;
}
.card-body {
  background-color: #f2f2f2;
}

/* ─── Navbar bg ──────────────────────────────────────────────────────── */
.bg-nav {
  background: transparent !important;
}

/* Eliminado .nav-legacy ya que rompe sidebar.css */

/* Nav links de sección (breadcrumb-style) */
.nav a {
  background-color: #fff;
  color: #124E91;
  border: 1px solid #124E91 !important;
  padding: 8px 16px;
  margin-right: 5px;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
}
.nav a:hover {
  background-color: #124E91;
  color: #fff;
  font-weight: bold;
}
.nav a.active {
  background-color: #124E91 !important;
  color: #fff !important;
  font-weight: bold !important;
}
.nav a.active:hover {
  background-color: #0E171E !important;
  color: #fff;
}

/* ─── Logout hover ───────────────────────────────────────────────────── */
#btnLogout:hover {
  font-weight: bold;
  color: #124E91 !important;
}
#btn-admin { text-decoration: none; color: #fff; }
#btn-admin:hover { font-weight: bold; color: #9CA1A8; }

/* ─── Logo layout ────────────────────────────────────────────────────── */
.logoContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 45vw;
}
.logo img  { width: 200px; height: 50px; }
.logo2 img { width: 100px; height: 100px; }

/* ─── Etiqueta de estado (reemplaza gov-style-label) ────────────────── */
.gov-style-label {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #124E91;
  color: #fff;
  font-weight: 600;
  border-radius: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  user-select: none;
}

/* ─── Utilidades de ancho ────────────────────────────────────────────── */
.w-5  { width: 5%; }
.w-10 { width: 10%; }
.w-15 { width: 15%; }
.w-20 { width: 20%; }
.w-25 { width: 25%; }
.w-30 { width: 30%; }
.w-40 { width: 40%; }
.w-60 { width: 60%; }
.w-70 { width: 70%; }
.w-80 { width: 80%; }
.w-90 { width: 90%; }

/* ─── Selección de texto ─────────────────────────────────────────────── */
::selection      { background: #124E91; color: #fff; }
::-moz-selection { background: #124E91; color: #fff; }

/* ─── Snackbar ───────────────────────────────────────────────────────── */
#snackbar {
  visibility: hidden !important;
  min-width: 250px;
  margin-left: -125px;
  background-color: #0E171E;
  color: #fff;
  text-align: center;
  border-radius: 4px;
  padding: 16px;
  position: fixed;
  z-index: 1;
  left: 50%;
  bottom: 30px;
}
#snackbar.show {
  visibility: visible !important;
  -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
          animation: fadein 0.5s, fadeout 0.5s 2.5s;
}
@-webkit-keyframes fadein { from { bottom: 0; opacity: 0; } to { bottom: 30px; opacity: 1; } }
@keyframes          fadein { from { bottom: 0; opacity: 0; } to { bottom: 30px; opacity: 1; } }
@-webkit-keyframes fadeout { from { bottom: 30px; opacity: 1; } to { bottom: 0; opacity: 0; } }
@keyframes          fadeout { from { bottom: 30px; opacity: 1; } to { bottom: 0; opacity: 0; } }

/* ─── Evaluación (legacy CC selector) ───────────────────────────────── */
.cc-selector input { margin: 0; padding: 0; -webkit-appearance: none; -moz-appearance: none; appearance: none; }
.drinkcard-cc {
  cursor: pointer;
  background-size: contain;
  background-repeat: no-repeat;
  display: inline-block;
  width: 100px; height: 70px;
  transition: all 100ms ease-in;
  filter: brightness(1.8) grayscale(1) opacity(.7);
}
.drinkcard-cc:hover { filter: brightness(1.2) grayscale(.5) opacity(.9); }
