/* --- Fonts --- */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 300;
  font-display: fallback;
  /*src: url(https://fonts.gstatic.com/s/sourcesanspro/v22/6xKydSBYKcSV-LCoeQqfX1RYOo3ik4zwlxdu.woff2) format('woff2');*/
  /*src: url("/fonts/6xKydSBYKcSV-LCoeQqfX1RYOo3ik4zwlxdu.woff2");*/
  /*unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;*/
}

@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 400;
  font-display: fallback;
  /*src: url(https://fonts.gstatic.com/s/sourcesanspro/v22/6xK3dSBYKcSV-LCoeQqfX1RYOo3qOK7l.woff2) format('woff2');*/
  /*src: url("/fonts/6xK3dSBYKcSV-LCoeQqfX1RYOo3qOK7l.woff2");*/
  /*unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;*/
}

@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 700;
  font-display: fallback;
  /*src: url(https://fonts.gstatic.com/s/sourcesanspro/v22/6xKydSBYKcSV-LCoeQqfX1RYOo3ig4vwlxdu.woff2) format('woff2');*/
  /*src: url("/fonts/6xKydSBYKcSV-LCoeQqfX1RYOo3ig4vwlxdu.woff2");*/
  /*unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;*/
}

/* --- Loading general --- */
.loadable {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* --- México Loader --- */
.mexico-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.mexico-loader .bar {
  width: 18px;
  height: 60px;
  border-radius: 6px;
  animation: wave 1s ease-in-out infinite;
  transform-origin: bottom;
}

/* Colores bandera */
.verde {
  background: #006847;
  animation-delay: 0s;
}

.blanco {
  background: #ffffff;
  animation-delay: 0.15s;
  border: 1px solid #ccc;
}

.rojo {
  background: #ce1126;
  animation-delay: 0.30s;
}

/* Animación ondulante */
@keyframes wave {

  0%,
  100% {
    transform: scaleY(0.4);
  }

  50% {
    transform: scaleY(1);
  }
}

.loading-text {
  font-size: 1.2rem;
  color: #1e40af;
  text-align: center;
}

/* CSS DE LOGIN */
.card {
  animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

input.form-control:focus {
  box-shadow: none;
}

/* Estado normal: oculto por defecto */
.icono-dinamico {
  display: none;
}

/* Sidebar expandido -> mostrar icono */
body:not(.sidebar-collapse) .icono-dinamico {
  display: inline-block;
}

/* Sidebar colapsado + hover -> mostrar icono */
.sidebar-collapse .main-sidebar:hover .icono-dinamico {
  display: inline-block;
}