/* Fondo de Ahorro: ajustes de lectura y operación en pantallas pequeñas.
   Se limita a sus clases para no alterar Dashboard ni sus gráficas. */
.fa-head .eyebrow {
  margin: 0 0 6px !important;
  line-height: 1.2;
  position: static;
  transform: none;
}
.fa-head { height: auto !important; min-height: 128px; }
.hero .hero-contact { margin: 13px 0 0; font-size: 13px; line-height: 1.45; color: #d7f3f0; }
.hero .hero-contact a { color: #94f8eb; font-weight: 800; }
.fondo-google-notice { margin: 15px 0; padding: 13px 15px; border-left: 4px solid #00b99f; border-radius: 9px; background: #effcf9; color: #22555d; font-size: 13px; line-height: 1.6; }
@media (max-width: 760px) {
  /* Portal del colaborador */
  .topin { min-height: 68px; height: auto; padding: 10px 0; align-items: flex-start; gap: 10px; }
  .topin .brand { min-width: 0; gap: 10px; }
  .topin .brand strong { font-size: 14px; }
  .topin .brand .eyebrow { font-size: 9px; letter-spacing: .09em; }
  .topin .brand img { max-width: 76px; }
  #logout { flex: 0 0 auto; white-space: nowrap; padding: 10px 12px; font-size: 13px; }
  .wrap { width: min(100% - 20px, 1160px); padding: 16px 0 34px; }
  .hero { margin-bottom: 14px; padding: 23px 18px; border-radius: 16px; }
  .hero h1 { font-size: 28px; line-height: 1.08; }
  .hero p { font-size: 14px; line-height: 1.45; }
  .card { padding: 17px; border-radius: 14px; }
  .profile { align-items: flex-start; }
  .profile h2 { font-size: 20px; line-height: 1.14; }
  .facts { gap: 8px; }
  .fact { padding: 10px; font-size: 13px; overflow-wrap: anywhere; }
  .session, .notice { font-size: 13px; line-height: 1.45; }
  .fondo-google-notice { font-size: 13px; }
  .form input, .form textarea { font-size: 16px; }
  .sign canvas { height: 145px; }
  .actions { display: grid; grid-template-columns: 1fr; }
  .actions .button { width: 100%; }
  .history { margin-inline: -17px; padding-inline: 17px; }
  .history table { min-width: 600px; font-size: 12px; }
  .signin { padding: 16px; }
  .signin-card { padding: 27px 19px 22px; border-radius: 20px; }
  .signin-card h1 { font-size: 29px; }
  .gbtn { font-size: 15px; }

  /* Panel administrativo de Fondo dentro de Capital Humano */
  #fa-root { min-width: 0; }
  .fa-head { display: block !important; padding: 19px !important; border-radius: 14px !important; }
  .fa-head h2 { font-size: 25px; line-height: 1.08; }
  .fa-head .fa-actions { display: grid; grid-template-columns: 1fr 1fr; margin-top: 14px; }
  .fa-head .fa-actions > * { width: 100%; }
  .fa-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; scroll-snap-type: x mandatory; }
  .fa-tabs button { flex: 0 0 auto; scroll-snap-align: start; }
  .fa-filters, .fa-filters.inline { grid-template-columns: 1fr !important; gap: 9px; }
  .fa-filters button { min-height: 44px; }
  .fa-kpis, .fa-kpis.four, .fa-kpis.three { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .fa-kpi { padding: 12px; }
  .fa-rank-row { grid-template-columns: minmax(0, 1fr) auto !important; gap: 6px 10px; padding: 11px; }
  .fa-rank-row span, .fa-rank-row em, .fa-rank-row i { display: none; }
  .fa-rank-row strong { white-space: nowrap; }
  .fa-table-wrap { margin-inline: -14px; padding-inline: 14px; }
  .fa-table { min-width: 720px; }
  .fa-modal { padding: 10px; }
  .fa-dialog { max-height: 95dvh; padding: 16px; border-radius: 14px; }
  .fa-dialog > header { align-items: flex-start; }
  .fa-m-body, .fa-m-form, .fa-dl { grid-template-columns: 1fr !important; }
  .fa-m-body iframe { min-height: 430px; }
}

@media (max-width: 390px) {
  .topin { align-items: center; }
  .topin .brand strong { font-size: 13px; }
  #logout { padding-inline: 9px; font-size: 12px; }
  .fa-head .fa-actions, .fa-kpis, .fa-kpis.four, .fa-kpis.three { grid-template-columns: 1fr !important; }
}
