/* Modal principal */
#modal-indicadores-peru.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0,0,0,0.5);
  z-index: 9999;
}

/* Contenido del modal */
#modal-indicadores-peru .modal-content {
  background-color: white;
  padding: 0;
  border-radius: 10px;
  width: 80%;
  max-width: 950px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 0 10px #333;
}

/* Fuente general del popup */
#modal-indicadores-peru,
#tabla-indicadores-peru,
#tabla-indicadores-peru th,
#tabla-indicadores-peru td {
    font-family: Arial, sans-serif;
}

/* Alineación de columnas */
#tabla-indicadores-peru th:nth-child(1),
#tabla-indicadores-peru td:nth-child(1) {
    text-align: left; /* Indicador */
}

#tabla-indicadores-peru th:nth-child(2),
#tabla-indicadores-peru td:nth-child(2),
#tabla-indicadores-peru th:nth-child(3),
#tabla-indicadores-peru td:nth-child(3) {
    text-align: center; /* Unidad de medida y Periodo disponible */
}

#tabla-indicadores-peru th:nth-child(4),
#tabla-indicadores-peru td:nth-child(4) {
    text-align: right; /* Datos */
}

/* Contenido inyectado */
#modal-indicadores-peru .contenido-modal {
  padding: 20px 30px;
}

/* Título */
.titulo-modal {
  background-color: #2d52a0;
  color: white;
  padding: 10px;
  border-radius: 6px 6px 0 0;
  font-size: 18px;
  text-align: center;
  margin-bottom: 15px;
}

/* Contenedor del encabezado (logos + título) */
.encabezado-indicadores {
    display: flex;
    justify-content: center;   /* todo centrado horizontalmente */
    align-items: center;       /* todo alineado verticalmente */
    margin-bottom: 15px;
    gap: 60px;                 /* espacio entre los tres elementos */
}

/* Estilo del título */
.encabezado-indicadores h2 {
    margin: 0;
    font-size: 28px;           /* tamaño un poco más grande */
    font-weight: bold;
    color: #1F4E78;            /* azul igual al popup */
    text-align: center;
    white-space: nowrap;       /* evita que el título se divida en dos líneas */
}

/* Logos base */
.encabezado-indicadores .logo {
    height: 60px;
    width: 120px;
    object-fit: contain;
}

/* Ajuste fino del logo INEI */
.encabezado-indicadores .logo-inei {
    margin-top: 5px;      /* lo baja si aumentas */
    margin-right: 30px;   /* separa del título */
    transform: translateY(2px); /* ajusta posición vertical */
}

/* Ajuste fino del logo SIRTOD */
.encabezado-indicadores .logo-sirtod {
    margin-top: 0px;
    margin-left: 0px;    /* separa del título */
    transform: translateY(-2px); /* sube o baja ligeramente */
}

/* Estilo para las tablas del popup */
.tabla-estilo {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom: 20px;
}

.tabla-estilo th,
.tabla-estilo td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: left;
}

.tabla-estilo thead {
  background-color: #3366cc;
  color: white;
  font-weight: bold;
  text-align: center;
}

.tabla-estilo tbody tr:nth-child(even) {
  background-color: #e6f0fa;
}

.tabla-estilo tbody tr:nth-child(odd) {
  background-color: #ffffff;
}


/* Estilos fuente */
.fuente-indicadores {
  background-color: #e5ecf6;
  padding: 10px 15px;
  margin-top: 20px;
  border-radius: 5px;
  font-size: 14px;
  color: #1c3f74;
  border-left: 4px solid #3366cc;
  line-height: 1.6;
}

/* Botones */
.botones-modal {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
  gap: 10px;
}

.botones-modal button {
  padding: 8px 14px;
  background-color: #2d52a0;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.botones-modal button:hover {
  background-color: #1c3b75;
}
