/* --- 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;
}

html,
body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

.wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.content-wrapper {
  flex: 1;
}

/* ----- Navbar ----- */
/* LOGO */
.logo-navbar {
  height: 50px;
  width: 150px;
  /*object-fit: contain;*/
}

/* TEXTO EMPRESA */
.empresa-text {
  font-size: 1.2rem;
  line-height: 1.2;
  white-space: normal;
  max-width: 450px;
}

/* USUARIO */
.user-text {
  font-size: 1.1rem;
}

/* TABLETS */
@media (max-width: 992px) {
  .empresa-text {
    font-size: 1rem;
    max-width: 300px;
  }
}

/* CELULARES */
@media (max-width: 576px) {
  .empresa-text {
    font-size: 0.85rem;
    max-width: 150px;
  }

  .logo-navbar {
    width: 120px;
    height: 45px;
  }

  .user-text {
    font-size: 1rem;
  }
}

.nav-link i {
  transition: transform 0.2s ease;
}

.nav-link:hover i {
  transform: rotate(15deg);
}

.dropdown-menu {
  position: absolute !important;
}

/* BANDERA */
.flag-icon {
  width: 26px;
  height: 26px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
}

/* BOTÓN IDIOMA AJUSTE */
.btn-lang {
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #374151;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  text-decoration: none;
  transition: all 0.25s ease;
}

/* HOVER */
.btn-lang:hover {
  background: #f33e3e;
  color: #fff;
  border-color: #f33e3e;
  transform: translateY(-1px);
}

/* OPCIONAL: efecto a la bandera */
.btn-lang:hover .flag-icon {
  transform: scale(1.1);
}
/* -------------- */

/* ----- Footer -----*/
.footer-capim {
  width: 100%;
  background: #ffffff;
}

/* CONTENEDOR */
.footer-container {
  width: 100%;
  overflow: hidden;
}

/* IMAGEN RESPONSIVE */
.footer-img {
  width: 100%;
  height: auto;
}

/* TABLET */
@media (max-width: 992px) {
  .footer-img {
    height: 80px;
    object-fit: cover;
  }
}

/* MOBILE */
@media (max-width: 576px) {
  .footer-img {
    height: 50px;
  }
}