@import url("https://fonts.googleapis.com/css2?family=Encode+Sans:wght@100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap");

:root {
  --celeste: #4095e5;
  --azul: #132b6b;
  --gris: #808080;
}

body {
  margin: 0;
  padding: 0;
  background-color: #f6f5f2;
  min-height: 100vh;
  font-family: "Open Sans", sans-serif;
}

/* Cubre toda la pantalla */
#preload {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(240, 240, 240, 0.9);
  display: none; /* Oculto por defecto */
  z-index: 9999;

  /* Centrado absoluto del contenido */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Contenido (SVG + texto) centrado en columna */
.preload-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Cuadrados base */
.sq {
  fill: #132b6b;
  opacity: 0.5;
  animation: lightUp 1.2s infinite;
}

/* Secuencia del “recorrido” del cuadrado celeste */
.sq:nth-child(1) {
  animation-delay: 0s;
}
.sq:nth-child(2) {
  animation-delay: 0.1s;
}
.sq:nth-child(3) {
  animation-delay: 0.2s;
}
.sq:nth-child(4) {
  animation-delay: 0.3s;
}
.sq:nth-child(5) {
  animation-delay: 0.4s;
}
.sq:nth-child(6) {
  animation-delay: 0.5s;
}
.sq:nth-child(7) {
  animation-delay: 0.6s;
}
.sq:nth-child(8) {
  animation-delay: 0.7s;
}
.sq:nth-child(9) {
  animation-delay: 0.8s;
}
.sq:nth-child(10) {
  animation-delay: 0.9s;
}
.sq:nth-child(11) {
  animation-delay: 1s;
}
.sq:nth-child(12) {
  animation-delay: 1.1s;
}

/* Efecto de "encendido" */
@keyframes lightUp {
  0% {
    fill: #132b6b;
    opacity: 1;
  }
  20% {
    fill: #4095e5;
    opacity: 1;
  }
  100% {
    fill: #132b6b;
    opacity: 1;
  }
}

.card-title {
  font-family: "Encode Sans";
  font-weight: 800;
  color: var(--celeste);
}

.btn-primary {
  font-weight: bold;
  background-color: var(--celeste);
}

label {
  font-family: "Open Sans";
  font-size: 14px;
}

header {
  background: #fafafa;
  border-bottom: 1px solid #fff;
  box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.35);
}

.header-content {
  max-width: 1500px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-center img, .header-right img {
  height: 40px;
}

.header-right {
  color: var(--gris);
  font-weight: bold;
}

.header-right a:hover {
  color: black;
  text-decoration: underline;
}



.header-left {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gris);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Encode Sans", sans-serif;
  text-transform: uppercase;
  font-weight: 600;
}

.dashboard-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 2rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  width: 100%;
}

.grid a {
  font-family: "Encode Sans", sans-serif;
}

.dashboard-container .card {
  background-color: #fff;
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 1rem;
  text-decoration: none;
  color: var(--azul);
  transition: box-shadow 0.75s ease, transform 0.2s ease,
    background-color 0.5s ease;
  font-weight: 700;
  font-size: 1.25rem;
  border: 1px solid #eee;
  box-shadow: 0px 2px 2px rgba(105, 105, 105, 0.3);
}

.dashboard-container .card:hover {
  transform: scale(1.02);
  background-color: var(--celeste);
  color: #fff;
  border-color: var(--celeste);
  box-shadow: inset 0px 0px 6px rgba(0, 0, 0, 0.5);
}

.icon-placeholder {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px;
  width: 60px;
  background-color: #fff;
  border-radius: 50%;
  color: #132b6b;
  font-size: 1.25em;
  border: 6px solid #4095e5;
}

footer {
  margin-top: 4rem;
  font-size: 1rem;
  color: #777;
  text-align: center;
}


.ttexto {
	text-transform: uppercase;
	max-width: 175px;
}

/** graphs **/
.marca {
  display: none;
  position: fixed;
  bottom: 40px;
  right: 80px;
  z-index: -1000;
  opacity: 0.5;
}

.marca img {
  max-width: 280px;
}

.contenido {
  margin-top: 50px !important;
  width: 90%;
  max-width: 1500px;
  margin: auto;
  padding-bottom: 10rem;
}

.tituloGrafico {
  height: 32px;
  background-color: #fff;
  line-height: 32px;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
  color: var(--gris);
  width: 100%;
  border-radius: 5px;
  font-family: "Encode Sans";
}

a {
  text-decoration: none;
}

.dc-chart .pie-slice {
  fill: #000 !important;
  font-size: 11px !important;
}

a.nrm {
  font-weight: 600;
  color: var(--celeste);
  font-size: 1rem;
  text-transform: uppercase;
  text-decoration: none;
}

a.nrm i {
  font-size: 18px;
  vertical-align: bottom;
  margin-right: 0.25rem;
}

#filtros-aplicados {
  font-size: 14px;
}

#rangoSeleccionado {
  margin-top: 10px;
  font-size: 13px;
  text-align: right;
  padding: 0px 53px 0px 0px;
  color: var(--gris);
  font-weight: bold;
}

#qty, #qtytotal,#pct, #medianaCategoria {
  width: 100%;
  height: 120px;
  text-align: center;
  font-weight: bold;
  color: #828282;
  font-size: 90px;
  line-height: 90px;
  font-family: "Encode Sans";
}

#area,
#tabl {
  margin-top: 20px;
}

#tabla {
  width: 100%;
}
#tabla .dc-table-head {
  border-bottom: 2px solid #9cb1b4;
  color: var(--gris);
  padding-left: 8px;
  font-size: 14px;
}

#tabla .dc-table-row {
  border-bottom: 1px solid #b4d2d6;
}

#tabla .dc-table-column {
  padding: 3px 0px 3px 8px;
  font-size: 12px;
}

#tabla_length,
#tabla_filter,
#tabla_info,
#tabla_paginate {
  font-size: 14px;
  font-weight: bold;
  font-family: "Encode Sans";
  color: #2547af;
}

#tipo {
  height: 480px;
}

#fechas,
#origen,
#estado,
#proveedor {
  height: 400px;
}

.heat-box {
  stroke: #fff;
  stroke-width: 2px;
}

#heatmap {
  margin-bottom: 120px;
}

#mapa,
#mapMarkers {
  height: 600px;
  width: 100%;
}

td.nodiv {
  white-space: nowrap;
}

#estado .row > *,
#anio .row > *,
#categoria .row > *,
#anioi .row > *,
#mes .row > *,
#tema .row > *,
#jurisdiccion .row > *,
#mesi .row > *,
#especialidad .row > *,
#aniof .row > *,
#mesf .row > *, 
#tiempo .row > *, #oficina .row > * {
  width: revert-layer !important;
}

#estado text,
#anio text,
#mes text,
#anioi text,
#categoria text,
#tema text,
#mesi text,
#especialidad text,
#jurisdiccion text,
#aniof text,
#mesf text,
#tiempo text,
#oficina text{
  fill: #000;
}

@media (max-width: 768px) {
  .header-right {
    display: none;
  }

  .header-content {
    justify-content: center;
  }

  .header-left {
    text-align: center;
    font-size: 1.5rem;
  }

  body {
    font-size: 14px; /* fuente base más chica en todo el documento */
  }

  .card {
    font-size: 1.2rem; /* opcional: menos espacio ocupado en tarjetas */
  }
  
 
  .icon-placeholder {
    height: 50px;
    width: 50px;
    font-size: 1em;
    border-width: 4px;
  }

  .login-box {
    width: 90%;
    padding: 1.5rem 1.5rem;
  }
}
