html {
  color: var(--colorTextoGeneral);
  height:100%;
}


/* franja-migas */

.contenedor-miga { /* Igual que en arbol_astrea.css */
  display: flex;
  height: 60px;
  width: auto;
  align-items: center;
  text-align: left;
}

/* -> franja-migas */


/* franja-navegacion-visor */

  .franja-navegacion-visor {
    background-color: var(--colorBackgroundFranjaNavegacionVisor);
  }

/* navegacion-visor */

  .navegacion-visor {
    height: 60px;
    box-shadow: 0 1px 1px 0 var(--colorBordeSombraFranjaNavegacionVisor);
  }

  @media screen and (min-width: 992px) {
    .navegacion-visor {
      box-shadow: none;
    }
  }

  .contenedor-navegacion-visor {
    height: 100%;
  }

  .grid-contenedor-navegacion-visor {
    height: 100%;
  }

  /* panel-titulo-documento */

    .panel-titulo-documento {
      display: none;
      height: 100%;
      color: var(--colorTextoTituloVisor);
      align-items: center;
    }

    @media screen and (min-width: 576px) {
      .panel-titulo-documento {
        display: flex;
      }
    }

    .panel-titulo-documento h1 {
      font-size: var(--letra12);
      font-weight: 600;
      line-height: 14px;
      margin: 0 20px 0 20px;
      text-align: center;
    }

    @media screen and (min-width: 768px) {
      .panel-titulo-documento h1 {
        font-size: var(--letra14);
        line-height: 18px;
        /* margin-left: 30px; */
        /* margin: 0; */
        text-align: left;
      }
    }

    @media screen and (min-width: 992px) {
      .panel-titulo-documento h1 {
        font-size: var(--letra15);
        line-height: 19px;
      }
    }

    @media screen and (min-width: 1170px) {
      .panel-titulo-documento h1 {
        margin: 0;
      }
    }

    @media screen and (min-width: 1200px) {
      .Not_used_panel-titulo-documento h1 {
        font-size: var(--letra16);
        line-height: 20px;
      }
    }

    @media screen and (min-width: 1580px) {
      .Not_used_panel-titulo-documento h1 {
        font-size: var(--letra18);
        font-weight: 600;
        line-height: 22px;
      }
    }

  /* -> panel-titulo-documento */


  /* panel-boton-anotaciones */

  .panel-boton-anotaciones {
    display: flex;
  }

  .contenedor-panel-boton-anotaciones {
    border-left: 1px solid var(--colorBordePanelBotonAnotaciones);
    align-self: center;
  }

  .boton-anotaciones {
    height: 36px;
    width: 36px;
    border: 1px solid var(--colorBordeBotonCompuesto);
    border-radius: 4px;
    background-color: var(--colorBackgroundBotonCompuesto);
    margin-left: 20px;
    margin-right: 20px;
    cursor: pointer;
  }

  @media screen and (min-width: 768px) {
    .boton-anotaciones {
      width: 150px;
    }
  }

  .boton-anotaciones:hover {
    background-color: var(--colorBackgroundBotonCompuestoHover);
  }

  .boton-anotaciones img {
    width: 18px;
    height: 18px;
  }

  .contenedor-boton-anotaciones {
    display: flex;
    height: 100%;
    justify-content: center;
    align-items: center;
  }

  @media screen and (min-width: 768px) {
    .contenedor-boton-anotaciones {
      line-height: 36px;
      text-align: center;
    }
  }

  .texto-boton-anotaciones {
    display: none;
    color: var(--colorTextoBotonCompuesto);
    font-size: var(--letra14);
    font-weight: bolder;
    letter-spacing: 0.4px;
  }

  @media screen and (min-width: 768px) {
    .texto-boton-anotaciones {
      display: inline-block;
      vertical-align: middle;
      margin-left: 10px;
    }
  }

  #texto-boton-anotaciones {
    margin: 9px 0 0 0; /* Para que la imagen salga centrada en el eje y; (36 - 18) / 2 */
    margin: 0;
    padding: 0;
  }

  /* -> panel-boton-anotaciones */


  /* panel-botones-acciones */

    .panel-botones-acciones {
      display: flex;
    }

    .contenedor-panel-botones-acciones {
      border-left: 1px solid var(--colorBordePanelBotonesAcciones);
      align-self: center;
    }

    .grid-contenedor-panel-botones-acciones {
    }


    .boton-suin-sencillo {
      height: 36px;
      width: 36px;
      border: 1px solid var(--colorBordeBotonSencillo);
      border-radius: 4px;
      background-color: var(--colorBackgroundBotonSUINJuriscol);
      cursor: pointer;
      margin-left: 20px;
      margin-right: 10px; /* Necesario pues para ancho menor a 576px grid-gap se deja en 0 */
    }

    @media screen and (min-width: 576px) {
      .boton-suin-sencillo {
        margin-right: 0;
      }
    }

    .boton-suin-sencillo:hover {
      background-color: var(--colorBackgroundBotonSUINJuriscolHover);
    }

    .boton-suin-sencillo img {
      width: 28px;
      height: 28px;
    }

    .contenedor-boton-suin-sencillo {
      display: flex;
      height: 100%;
      justify-content: center;
      align-items: center;
    }


    .boton-ayuda-sencillo {
      height: 36px;
      width: 36px;
      border: 1px solid var(--colorBordeBotonSencillo);
      border-radius: 4px;
      background-color: var(--colorBackgroundBotonSencillo);
      cursor: pointer;
      margin-right: 10px; /* Necesario pues para ancho menor a 576px grid-gap se deja en 0 */
    }

    @media screen and (min-width: 576px) {
      .boton-ayuda-sencillo {
        margin-right: 0;
      }
    }

    .boton-ayuda-sencillo:hover {
      background-color: var(--colorBackgroundBotonSencilloHover);
    }

    .boton-ayuda-sencillo img {
      width: 18px;
      height: 18px;
    }

    .contenedor-boton-ayuda-sencillo {
      display: flex;
      height: 100%;
      justify-content: center;
      align-items: center;
    }


    .boton-imprimir-sencillo {
      /* display: none; /* Aparece oculto */
      height: 36px;
      width: 36px;
      border: 1px solid var(--colorBordeBotonSencillo);
      border-radius: 4px;
      background-color: var(--colorBackgroundBotonSencillo);
      cursor: pointer;
      margin-right: 10px; /* Necesario pues para ancho menor a 576px grid-gap se deja en 0 */
    }

    @media screen and (min-width: 576px) {
      .boton-imprimir-sencillo {
        display: block;
        margin-right: 0;
      }
    }

    .boton-imprimir-sencillo img {
      width: 28px;
      height: 28px;
    }

    .contenedor-boton-imprimir-sencillo {
      display: flex;
      height: 100%;
      justify-content: center;
      align-items: center;
    }


    .boton-download-sencillo {
      height: 36px;
      width: 36px;
      border: 1px solid var(--colorBordeBotonSencillo);
      border-radius: 4px;
      background-color: var(--colorBackgroundBotonSencillo);
      cursor: pointer;
      margin-right: 20px;
    }

    @media screen and (min-width: 1170px) {
      .boton-download-sencillo {
        margin-right: 0;
      }
    }

    .boton-download-sencillo img {
      width: 18px;
      height: 18px;
    }

    .contenedor-boton-download-sencillo {
      display: flex;
      height: 100%;
      justify-content: center;
      align-items: center;
    }

  /* -> panel-botones-acciones */

/* -> franja-navegacion-visor */


/* contenedor-contenido */

  .contenedor-contenido {
    height: 100%;
  }

  .grid-contenedor-contenido {
    height: 100%;
  }

  .left-panel-contenido {
    display: none;
  }

  .contenido-visor {
    height: 100%;
  }

  .right-panel-contenido {
    display: none;
  }


  .grid-contenedor-contenido-visor {
    justify-content: initial;
    justify-items: initial;
    height: 100%
  }


  .dummy-line {
    display: none;
    width: 1px;
    height: auto;
  }

  @media screen and (min-width: 768px) {

    .dummy-line {
      display: block;
    }
  }


  /* panel-auxiliar */

  .panel-auxiliar {
    display: none;
    width: 280px;
    height: auto;
    border-left: 1px solid var(--colorBordePanelesVisor);
    border-right: 1px solid var(--colorBordePanelesVisor);
    background-color: var(--colorBackgroundPanelAuxiliar);
  }

  @media screen and (min-width: 992px) {
    .panel-auxiliar {
      min-width: 280px;
      max-width: 300px;
      width: 100%;
    }
  }

  @media screen and (min-width: 1200px) {
    .Not_used_panel-auxiliar {
      /* display: block; */ /* Se activa si limitToViewPanelLateralModal = "(min-width: 1200px)"; en docFunction.js */
      /* max-width: 350px; */
    }
  }

  @media screen and (min-width: 1580px) {
    .panel-auxiliar {
      /* display: block; */ /* Se activa si limitToViewPanelLateralModal = "(min-width: 1580px)"; en docFunction.js */
      /* max-width: 400px; */
    }
  }

  @media screen and (min-width: 2560px) {
    .Not_used_panel-auxiliar {
      display: block; /* Se activa si limitToViewPanelLateralModal = "(min-width: 2560px)"; en docFunction.js */
      /* max-width: 500px; */
    }
  }

  /* -> panel-auxiliar */


  /* panel-fondo-documento */

  .panel-fondo-documento {
    display: block; /* Estaba en none, con el funcionamiento de botones modales para ancho menor a 768px */
    width: auto;
    /* height: auto; */
    height: calc(100vh);
    /* border-left: 1px solid var(--colorBordePanelesVisor); */
    background-color: var(--colorBackgroundPanelFondoDocumento);
  }

  @media screen and (min-width: 768px) {
    .panel-fondo-documento {
      height: calc(var(--altoPanelDocumento) + 10px * 2 + 1px * 2);
      /* margin: 0 0 50px 0; */
    }
  }

  @media screen and (min-width: 992px) {
    .panel-fondo-documento {
      height: calc(var(--altoPanelDocumento) + 15px * 2 + 1px * 2);
    }
  }

  @media screen and (min-width: 1200px) {
    .Not_used_panel-fondo-documento {
      /* height: calc(var(--altoPanelDocumento) + 20px * 2 + 1px * 2); */
      /* border-radius: 4px; /* Se redondean las esquinas cuando se muestra panel-auxiliar */
      /* margin: 0 20px 50px 0; */
    }
  }

  @media screen and (min-width: 1580px) {
    .Not_used_panel-fondo-documento {
      /* height: calc(var(--altoPanelDocumento) + 30px * 2 + 1px * 2); */
      /* border-radius: 4px; /* Se redondean las esquinas cuando se muestra panel-auxiliar */
      /* margin: 20px 20px 50px 20px; */
    }
  }

  @media screen and (min-width: 2560px) {
    .Not_used_panel-fondo-documento {
      /* border-radius: 4px; /* Se redondean las esquinas cuando se muestra panel-auxiliar */
      margin: 30px 30px 50px 30px;
    }
  }

  /* -> panel-fondo-documento */


  /* panel-documento */

  .panel-documento { /* width se rige por la grid */
    height: calc(100vh - 10px * 2 - 1px * 2);
    /* 10px * 2 es el margen superior e inferior de panel-documento */
    /* 1px * 2 es el borde superior e inferior de panel-documento */
    background-color: var(--colorBackgroundPanelDocumento);
    border: 1px solid var(--colorBordePanelDocumento);
    margin: 10px;
    /* padding: 30px 30px 200px 30px; */ /* Obsoleto, ahora se usa margen en % */
    padding: 30px var(--margenHorizontalDocumentosSmall);
    text-align: left;
    overflow: auto; /* scroll muestra la barra horizontal también */
  }

  @media screen and (min-width: 768px) {
    .panel-documento {
      height: var(--altoPanelDocumento);
      padding-top,
      padding-bottom: 40px;
    }
  }

  @media screen and (min-width: 992px) {
    .panel-documento {
      text-align: justify;
      margin: 15px;
      /* padding: 100px 140px 200px 140px; */ /* Como no está visible panel-auxiliar, padding es el mismo que para ancho mayor a 2560px */ /* Obsoleto, ahora se usa margen en % */
      padding: 60px var(--margenHorizontalDocumentosNormal);
    }
  }

  @media screen and (min-width: 1200px) {
    .Not_used_panel-documento {
      margin: 20px;
      /* padding: 80px 70px 200px 70px; */ /* Obsoleto, ahora se usa margen en % */
      padding-top: 100px;
      padding-bottom: 100px;
    }
  }

  @media screen and (min-width: 1580px) {
    .Not_used_panel-documento {
      margin: 30px;
      /* padding: 100px 140px 200px 140px; */ /* Obsoleto, ahora se usa margen en % */
    }
  }

  .panel-documento p {
    color: var(--colorTextoDocumento);
    /* font-family: Merriweather; */ /* Typeface especial para textos en el visor */
    /* font-family: 'Work Sans', sans-serif; */
    font-size: var(--letra16);
    font-weight: 400;
    letter-spacing: 0.1px;
    line-height: 1.5; /* Antes 32px */
  }

  @media screen and (min-width: 992px) {
    .panel-documento p {
      font-size: var(--letra18);
    }
  }

  .panel-documento table {
    color: var(--colorTextoDocumento);
    /* font-family: Merriweather; */ /* Typeface especial para textos en el visor */
    font-family: 'Work Sans', sans-serif;
    font-size: var(--letra12);
    letter-spacing: 0.1px;
    line-height: 18px;
  }

  @media screen and (min-width: 992px) {
    .panel-documento table {
      font-size: var(--letra14);
    }
  }

  /* -> panel-documento */

/* -> contenedor-contenido */


/* Estilos classes documentos */

  .ir-arriba {
    display: block;
    width: 100%;
    height: 16px;
    margin-bottom: 20px;
  }

  .ir-arriba img {
    width: 16px;
    height: 16px;
  }

  .centrado {
    text-align: center;
  }

  .Letra14pt {
    font-size: var(--letra20); /* Se deja en 20 aunque parezca extraño */ /* Antes 18px */
    font-weight: bold;
  }

  @media screen and (min-width: 992px) {
    .Letra14pt {
      font-size: var(--letra24); /* Se deja en 24 aunque parezca extraño */ /* Antes 18px */
    }
  }

  .b_aj {
    font-weight: 600;
    color: var(--colorTextoBoldAJ); /* Ensayar: var(--colorTextoDocumento); */
  }

  .i_aj {
    font-style: italic;
  }

  .bookmarkaj {
    color: var(--colorTextoBookmarksAJ);
    font-weight: 600;
  }

  .panel-documento a {
    color: var(--colorTextoLinks);
    font-weight: 400;
    text-decoration: none; /* Hasta 20210314 estaba en: none */
  }

  .panel-documento a:hover {
    color: var(--colorTextoLinksHover);
    text-decoration: none; /* Hasta 20210314 no estaba asignado este estilo */
  }

  .panel-documento p s {
    color: var(--colorTextosTachados);
  }

  .b_aj a {
    color: var(--colorTextoBoldAJ); /* Ensayar: var(--colorTextoDocumento); */
    text-decoration: none;
  }

  s .b_aj {
    color: var(--colorTextosTachados);
  }

  a.bookmarkaj {
    text-decoration: none;
  }

  a.bookmarkaj:hover {
    color: var(--colorTextoBookmarksAJHover);
  }

  .caja_vja_encabezado {
    display: block;
    /* width: auto; */
    width: 240px;
    height: 28px;
    border-radius: 14px;
    background-color: var(--colorBackgroundEncabezadoCajasValorJuridicoAgregado);
    margin-bottom: 20px;
  }

  @media screen and (min-width: 992px) {
    .caja_vja_encabezado {
      width: 300px;
      height: 36px;
      border-radius: 18px;
    }
  }

  a.caja_vja_encabezado {
    color: var(--colorTextoEncabezadoCajasValorJuridicoAgregado);
    /* font-family: 'Libre Franklin', sans-serif; */
    font-family: 'Work Sans', sans-serif;
    font-size: var(--letra12);
    font-weight: 500;
    line-height: 28px;
    text-align: center;
  }

  @media screen and (min-width: 992px) {
    a.caja_vja_encabezado {
      font-size: var(--letra15);
      line-height: 36px;
    }
  }

  a.caja_vja_encabezado:hover {
    color: var(--colorTextoEncabezadoCajasValorJuridicoAgregadoHover);
    background-color: var(--colorBackgroundEncabezadoCajasValorJuridicoAgregadoHover);
  }

  .caja_vja_encabezado_c {
    display: block;
    width: 240px;
    height: 28px;
    border-radius: 14px;
    background-color: var(--colorBackgroundEncabezadoCajasValorJuridicoAgregado);
    margin-bottom: 20px;
  }

  @media screen and (min-width: 992px) {
    .caja_vja_encabezado_c {
      width: 300px;
      height: 36px;
      border-radius: 18px;
    }
  }

  a.caja_vja_encabezado_c {
    color: var(--colorTextoEncabezadoCajasValorJuridicoAgregado);
    /* font-family: 'Libre Franklin', sans-serif; */
    font-family: 'Work Sans', sans-serif;
    font-size: var(--letra12);
    font-weight: 500;
    line-height: 28px;
    text-align: center;
  }

  @media screen and (min-width: 992px) {
    a.caja_vja_encabezado_c {
      font-size: var(--letra15);
      line-height: 36px;
    }
  }

  a.caja_vja_encabezado_c:hover {
    color: var(--colorTextoEncabezadoCajasValorJuridicoAgregadoHover);
    background-color: var(--colorBackgroundEncabezadoCajasValorJuridicoAgregadoHover);
    text-decoration: none; /* Hasta 20210314 no estaba asignado este estilo */
  }

  .caja_vja_v {
    background-color: var(--colorBackgroundNotasVigencia);
    border: 1px solid var(--colorBordeCajasValorJuridicoAgregado);
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
  }

  .caja_vja_c {
    background-color: var(--colorBackgroundNotasConcordancias);
    border: 1px solid var(--colorBordeCajasValorJuridicoAgregado);
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
  }

  .caja_vja_la {
    background-color: var(--colorBackgroundNotasLegislacionAnterior);
    border: 1px solid var(--colorBordeCajasValorJuridicoAgregado);
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
  }

/* -> Estilos classes documentos */

/* -> panel-documento */


/* panel-lateral-modal (background) */

.panel-lateral-modal { /* este es el background, ocupa toda la pantalla */
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 3; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  transition: display 0.5s;
}

.boton-cerrar-panel-modal {
  display: inline-block;
  height: 60px;
  color: var(--colorTextoBotonCerrarPanelModal);
  background-color: var(--colorBackgroundBotonCerrarPanelModal);
  text-decoration: none;
  cursor: pointer;
}

.boton-cerrar-panel-modal:hover,
.boton-cerrar-panel-modal:focus {
  color: var(--colorTextoBotonCerrarPanelModalHover);
  background-color: var(--colorBackgroundBotonCerrarPanelModalHover);
  text-decoration: none;
  cursor: pointer;
}

.titulo-boton-cerrar {
  float: left;
  width: 90%;
  height: 60px;
  font-size: var(--letra18);
  font-weight: 600;
  line-height: 60px;
  vertical-align: middle;
  text-align: center;
  padding-left: 40px;
}

.icono-boton-cerrar {
  width: 10%;
  float: right;
  font-size: var(--letra36);
  line-height: 60px;
  padding-right: 20px;
  text-align: right;
  vertical-align: middle;
}


/* The side navigation menu */
.contenedor-panel-lateral-modal { /* este es el panel que muestra los contenidos */
  height: 100vh;
  width: 0; /* 0 width - change this with JavaScript */
  position: fixed; /* Stay in place */
  z-index: 1; /* Stay on top */
  top: 0; /* Stay at the top */
  left: 0;
  background-color: var(--colorBackgroundPanelLateralModal);
  border: 1px solid var(--colorBordePanelesVisor);
  overflow-x: hidden; /* Disable horizontal scroll */
  transition: width 0.5s; /* 0.5 second transition effect to slide in the sidenav */
  margin-top: 0; /* Antes 133px, para ver el logo, pero si el ascensor está desplazado, de nada sirve y se ve mal */
}
