/* 
 * Configuración global de fuente Poppins para toda la plataforma
 * Este archivo asegura que todos los elementos usen Poppins como fuente principal
 */

/* Configuración base para elementos de texto (excluyendo iconos) */
*:not(.fas):not(.far):not(.fab):not(.fal):not(.fad):not(.fa):not(i[class*="fa-"]):not([class*="icon"]) {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

/* Elementos específicos de texto */
body, html {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

/* Títulos y encabezados */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  font-weight: 600;
}

/* Párrafos y texto general */
p, span, div, a, label {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

/* Elementos de formulario */
input, textarea, select, button {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

/* Clases de Bootstrap */
.btn, .form-control, .form-select, .form-check-label, .form-label {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

/* Elementos de navegación */
.nav, .navbar, .navbar-brand, .nav-link, .dropdown-item {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

/* Cards y modales */
.card, .card-title, .card-text, .card-header, .card-footer {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.modal, .modal-title, .modal-body, .modal-header, .modal-footer {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

/* Tablas */
.table, .table th, .table td {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

/* Alertas y badges */
.alert, .badge {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

/* Listas */
ul, ol, li {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

/* Elementos específicos de la plataforma */
.aviso-card, .encuesta-card {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.cartelera-header, .cartelera-header h1, .cartelera-header h2, .cartelera-header p {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

/* Summernote editor - contenido editable */
.note-editor .note-editable,
.note-editor .note-editable * {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

/* Excepciones para elementos que deben mantener fuentes específicas */
code, pre, .code, .monospace {
  font-family: 'Courier New', Consolas, Monaco, 'Lucida Console', monospace !important;
}

/* Iconos - mantener su fuente original Font Awesome */
.fas, .far, .fab, .fal, .fad, .fa,
i[class*="fa-"], 
[class*="icon"],
.fa-solid, .fa-regular, .fa-light, .fa-thin, .fa-duotone, .fa-brands {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands", "Font Awesome 5 Free", "Font Awesome 5 Pro" !important;
}

/* Asegurar que los pseudo-elementos de iconos también mantengan su fuente */
.fas::before, .far::before, .fab::before, .fal::before, .fad::before, .fa::before,
i[class*="fa-"]::before {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands", "Font Awesome 5 Free", "Font Awesome 5 Pro" !important;
}

/* Stickers motivacionales con estilo especial */
.sticker-motivacional {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  font-weight: 600 !important;
  font-style: italic !important;
}

/* Fotos de usuario en círculo con ancho y alto fijos: sin esto el navegador usa object-fit: fill y la imagen se ve estirada/achatada. */
img.rounded-circle[width][height],
img.avatar-circle[width][height] {
  object-fit: cover;
  object-position: center;
}