/*!************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[5].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[5].use[3]!./src/app/home/Home.module.css ***!
  \************************************************************************************************************************************************************************************************************************************************************************/
/* src/app/home/Home.module.css */
/* Layout optimizado para 1366x768 @ 100% zoom */

/* ===== CONTAINER PRINCIPAL ===== */
.Home_container__nNIYv {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
  height: 100%;
  overflow-y: auto;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ===== HEADER - COMPACTO ===== */
.Home_header__OMVBZ {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .Home_header__OMVBZ {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.Home_headerText__5bENs {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.Home_title__k56VR {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.025em;
  margin: 0;
}

.Home_subtitle__47G88 {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
  margin: 0;
}

.Home_headerActions__uZc4O {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.Home_btnPrimary__2NoQf {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #f48c25 0%, #ff9419 100%);
  color: white;
  font-weight: 600;
  font-size: 0.8125rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(244, 140, 37, 0.25);
  transition: all 0.2s ease;
}

.Home_btnPrimary__2NoQf:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(244, 140, 37, 0.35);
}

.Home_btnPrimary__2NoQf span {
  font-size: 1.125rem;
}

.Home_btnSecondary__fB4Yr {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  background: white;
  color: #0f172a;
  font-weight: 600;
  font-size: 0.8125rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.Home_btnSecondary__fB4Yr:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

/* ===== GRID 2x2 ALINEADO (Módulos + Right Rail) ===== */
.Home_alignedGrid__Xzb89 {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  margin-top: 2.5rem;
}

@media (min-width: 1024px) {
  .Home_alignedGrid__Xzb89 {
    display: grid;
    grid-template-columns: minmax(320px, 420px) minmax(280px, 360px);
    gap: 2.5rem;
    align-items: start;
    justify-content: center;
  }
}

/* Fila de módulos */
.Home_moduleRowTop__BSgPM,
.Home_moduleRowBottom___NYaM {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.Home_leftColumn__YJu_e {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.Home_rightRail__w8fS8 {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* ===== BÚSQUEDA GLOBAL - COMPACTA ===== */
.Home_searchSection__yGZvT {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.Home_searchWrapper__NhWsD {
  position: relative;
}

.Home_searchIcon__I8cek {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: #f48c25;
  font-size: 1.25rem;
}

.Home_searchInput__FP2bh {
  width: 100%;
  padding: 0.625rem 0.875rem 0.625rem 2.75rem;
  font-size: 0.875rem;
  color: #0f172a;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 0.625rem;
  outline: none;
  transition: all 0.2s ease;
}

.Home_searchInput__FP2bh::placeholder {
  color: #94a3b8;
  font-size: 0.8125rem;
}

.Home_searchInput__FP2bh:focus {
  border-color: #f48c25;
  box-shadow: 0 0 0 2px rgba(244, 140, 37, 0.1);
}

.Home_chips__jgAVG {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.Home_chip__oh8RP {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  background: white;
  color: #0f172a;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.Home_chip__oh8RP:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.Home_chipDot__FYfNG {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
}

.Home_dotGreen__zE4cD { background: #10b981; }
.Home_dotAmber__CQVYa { background: #f59e0b; }
.Home_dotPurple__ap2QL { background: #9333ea; }
.Home_dotBlue__ESxRd { background: #3b82f6; }
.Home_dotGray__E9_oy { background: #94a3b8; }
.Home_dotRed__gDbln { background: #ef4444; }

/* ===== TARJETAS DE MÓDULOS ===== */
.Home_moduleCard__OIyRe {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.125rem;
  min-height: 160px;
  background: white;
  border-radius: 0.75rem;
  border: 1px solid #f1f5f9;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

@media (min-width: 768px) {
  .Home_moduleCard__OIyRe {
    padding: 1.25rem;
    min-height: 175px;
    gap: 0.875rem;
  }
}

@media (min-width: 1024px) {
  .Home_moduleCard__OIyRe {
    padding: 1.375rem;
    min-height: 185px;
  }
}

.Home_moduleCard__OIyRe:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: rgba(244, 140, 37, 0.25);
  transform: translateY(-1px);
}

/* Card tintada púrpura - Programar reportes */
.Home_moduleCardPurple__473aR {
  background: #fcfaff;
  border-color: #f3e8ff;
}

.Home_moduleCardPurple__473aR:hover {
  border-color: #e9d5ff;
  box-shadow: 0 4px 12px rgba(147, 51, 234, 0.08);
}

/* Card tintada verde - Dashboard */
.Home_moduleCardEmerald__TmLQo {
  background: #f2fdf8;
  border-color: #d1fae5;
}

.Home_moduleCardEmerald__TmLQo:hover {
  border-color: #a7f3d0;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.08);
}

.Home_moduleHeader__gj_GR {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}

.Home_moduleIcon__j1sEO {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.625rem;
  flex-shrink: 0;
}

.Home_moduleIcon__j1sEO span {
  font-size: 1.375rem;
}

.Home_iconOrange__jpvTQ {
  background: rgba(244, 140, 37, 0.12);
  color: #f48c25;
}

.Home_iconBlue__8BSJj {
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
}

.Home_iconPurple__9hzlS {
  background: rgba(147, 51, 234, 0.12);
  color: #9333ea;
}

.Home_iconGreen__J3A32 {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
}

.Home_moduleInfo__YuSKb {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  flex: 1;
}

.Home_moduleTitle__Yuaqw {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

@media (min-width: 768px) {
  .Home_moduleTitle__Yuaqw {
    font-size: 1.0625rem;
  }
}

.Home_moduleDesc__JOVv_ {
  font-size: 0.8125rem;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

.Home_moduleFooter__jFG9M {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-top: auto; /* Empuja al fondo */
}

.Home_btnModulePrimary__ps2Uj {
  flex: 1;
  padding: 0.5625rem 0.875rem;
  background: #0f172a;
  color: white;
  font-weight: 600;
  font-size: 0.8125rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.Home_btnModulePrimary__ps2Uj:hover {
  background: #1e293b;
}

.Home_btnModuleSecondary__hvgwM {
  flex: 1;
  padding: 0.5625rem 0.875rem;
  background: white;
  color: #0f172a;
  font-weight: 600;
  font-size: 0.8125rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.Home_btnModuleSecondary__hvgwM:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.Home_linkSecondary__yw4Jr {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #f48c25;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.Home_linkSecondary__yw4Jr:hover {
  color: #d67615;
  text-decoration: underline;
}

.Home_moduleMeta__f__lC {
  font-size: 0.75rem;
  color: #94a3b8;
  margin: 0;
  padding-top: 0.625rem;
  border-top: 1px solid #f1f5f9;
}

/* ===== SECCIÓN TÍTULOS ===== */
.Home_sectionTitle__N9W5F {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.Home_linkPrimary__rj39t {
  font-size: 0.6875rem;
  font-weight: 500;
  color: #f48c25;
  text-decoration: none;
  transition: color 0.2s ease;
}

.Home_linkPrimary__rj39t:hover {
  color: #d67615;
}

/* ===== ACTIVIDAD RECIENTE - SE ESTIRA A LA FILA ===== */
.Home_activityCard__h4_oI {
  padding: 0.875rem;
  background: white;
  border-radius: 0.75rem;
  border: 1px solid #f1f5f9;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  min-height: 0; /* Permite que flex children controlen overflow */
}

/* Card de Favoritos - misma altura que moduleCard */
.Home_favoritesCard__yoa_E {
  padding: 0.875rem;
  background: white;
  border-radius: 0.75rem;
  border: 1px solid #f1f5f9;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  min-height: 160px;
}

@media (min-width: 768px) {
  .Home_favoritesCard__yoa_E {
    min-height: 175px;
  }
}

@media (min-width: 1024px) {
  .Home_favoritesCard__yoa_E {
    min-height: 185px;
  }
}



.Home_activityHeader__wwPsT {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.625rem;
  flex-shrink: 0;
}

/* Wrapper para scroll interno */
.Home_activityListWrapper__Zf8At {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* Listado con scroll interno */
.Home_activityList__JMMLQ {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  height: 100%;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.Home_activityList__JMMLQ::-webkit-scrollbar {
  width: 4px;
}

.Home_activityList__JMMLQ::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 2px;
}

.Home_activityList__JMMLQ::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 2px;
}

.Home_activityItem__X1c5m {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4375rem 0.5rem;
  background: #f8fafc;
  border-radius: 0.375rem;
  transition: background 0.2s ease;
}

.Home_activityItem__X1c5m:hover {
  background: #f1f5f9;
}

.Home_activityDot__2YQKE {
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.Home_activityContent__KkdBl {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.Home_activityTitle__1RhIE {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.Home_activityTime__D_Qd8 {
  font-size: 0.5625rem;
  color: #94a3b8;
  line-height: 1.2;
}

.Home_activityActions__yBw3B {
  display: flex;
  gap: 0.125rem;
  flex-shrink: 0;
}

.Home_activityAction__lcIXI {
  padding: 0.125rem 0.25rem;
  font-size: 0.5625rem;
  font-weight: 500;
  color: #f48c25;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.Home_activityAction__lcIXI:hover {
  color: #d67615;
  text-decoration: underline;
}

/* Empty State */
.Home_emptyState__zG9I4 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.5rem;
  text-align: center;
  color: #94a3b8;
}

.Home_emptyState__zG9I4 span {
  font-size: 1.5rem;
  margin-bottom: 0.375rem;
  opacity: 0.5;
}

.Home_emptyState__zG9I4 p {
  margin: 0;
  font-size: 0.6875rem;
}

.Home_emptyStateHint__ViUTN {
  color: #cbd5e1;
  font-size: 0.625rem !important;
  margin-top: 0.125rem !important;
}

.Home_emptyStateSmall__9yx35 {
  padding: 1rem;
  text-align: center;
  color: #94a3b8;
  font-size: 0.8125rem;
}

.Home_loadingSmall__yLMK_ {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.Home_spinnerSmall__WQUgL {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #f1f5f9;
  border-top-color: #f48c25;
  border-radius: 50%;
  animation: Home_spin__sw1QM 0.8s linear infinite;
}

@keyframes Home_spin__sw1QM {
  to {
    transform: rotate(360deg);
  }
}

/* ===== ADMINISTRACIÓN - SE ESTIRA A LA FILA ===== */
.Home_adminCard__2OpFw {
  padding: 0.875rem;
  background: white;
  border-radius: 0.75rem;
  border: 1px solid #f1f5f9;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .Home_adminCard__2OpFw {
    grid-column: 2;
    grid-row: 2;
    /* Se estira automáticamente a la altura de la fila por align-items: stretch */
  }
}

.Home_adminGrid__9EAGf {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-top: 0.5rem;
  flex: 1;
  justify-content: center; /* Centra verticalmente si hay espacio extra */
}

.Home_adminItem__xsAlK {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4375rem 0.5rem;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  width: 100%;
}

.Home_adminItem__xsAlK:hover {
  background: white;
  border-color: rgba(244, 140, 37, 0.3);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.Home_adminItem__xsAlK:hover .Home_adminIcon__D_n7_ {
  color: #f48c25;
}

.Home_adminItem__xsAlK:hover > span:last-child {
  color: #f48c25;
}

.Home_adminIcon__D_n7_ {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  background: white;
  border-radius: 0.375rem;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: color 0.2s ease;
}

.Home_adminIcon__D_n7_ span {
  font-size: 1rem;
}

.Home_adminInfo__WiMT6 {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.Home_adminTitle__UBNhU {
  font-size: 0.75rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
  line-height: 1.3;
}

.Home_adminCta__OQZPr {
  font-size: 0.625rem;
  color: #64748b;
  line-height: 1.2;
}

.Home_adminItem__xsAlK > span:last-child {
  color: #cbd5e1;
  font-size: 1rem;
  transition: color 0.2s ease;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1023px) {
  .Home_container__nNIYv {
    padding: 1rem;
  }
}

@media (max-width: 639px) {
  .Home_container__nNIYv {
    padding: 0.75rem;
    gap: 0.75rem;
  }

  .Home_title__k56VR {
    font-size: 1.25rem;
  }
  
  .Home_subtitle__47G88 {
    font-size: 0.8125rem;
  }

  .Home_headerActions__uZc4O {
    flex-direction: column;
    width: 100%;
  }

  .Home_btnPrimary__2NoQf,
  .Home_btnSecondary__fB4Yr {
    width: 100%;
    justify-content: center;
  }

  .Home_moduleFooter__jFG9M {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .Home_btnModulePrimary__ps2Uj,
  .Home_btnModuleSecondary__hvgwM {
    width: 100%;
    text-align: center;
  }

  .Home_linkSecondary__yw4Jr {
    text-align: center;
  }
}

