/*botones */

.hover_rojo{
    transition: ease-in 0.3s;
    color: white;
}
.hover_rojo:hover{
    background-color: #dc3545;
    transition: ease-in 0.2s;
    color: white;
}

.hover_verde{
    transition: ease-in 0.3s;
    color: black;
}
.hover_verde:hover{
    background-color: #198754;
    transition: ease-in 0.2s;
    color: white;
}

/*botones */

body{
  text-align: justify;
}

input[type="radio"] {
  border-color: rgb(43, 43, 43);
}

.fondo{
    z-index: -10000;
    position: fixed;
    width: 100%;
    opacity: 0.1;
  }
  .fondo2{
    position: fixed;
    opacity: 0.3;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 70%;
    height: auto;
    filter: grayscale(100%);
    z-index: -10000;
  }
  #botonglosario{
    z-index: 110000; 
    position: fixed;
    top: 0.8%;
  }
  #glosario{
    height: 100%; 
    position: fixed; 
    top: 0; 
    overflow: hidden; 
    overflow-y: scroll;
    z-index: 100000;
    background-color: rgba(0, 0, 0, 0.685);
    color: white;
  }
  #contenedormodulos{
    height: 65vh;
    overflow: hidden;
    overflow-y: scroll;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.685);
    opacity: 0;
    color: white;
  }
  .convocatorialogo{
    width: 50%;
    height: auto;
  }
  .piramide {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50%;
    position: relative;
    top: 40%;
    transform: translate(0%, -50%);
  }

  .nivel {
    padding: 10px 0px;
    margin: 5px 0;
    background-color: #4CAF50;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    text-align: justify;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
    transition: opacity 1s ease, transform 1s ease;
  }

  .nivel.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .contpiram{
    /*background-color: rgb(250, 241, 241);
    width: 50%;
    height: 70%;
    position: relative;
    left: 49%;
    top: -30%;
    color: black;
    opacity: 0;
    animation: opacidaddd 1s ease-out forwards;*/
    width: 50%;
    left: 49%;
    position: relative;
    top: -63%;
    overflow-y: scroll;
    height: 70%;
  }

  .contpiram2{
    background-color: rgb(250, 241, 241);
    width: 50%;
    height: 70%;
    position: relative;
    left: 49%;
    top: -20%;
    color: black;
    opacity: 0;
    animation: opacidaddd 1s ease-out forwards;
  }

  .sombra{
    position: relative;
      display: inline-block;
      padding: 15px 30px;
      font-size: 14px;
      color: black;
      border: none;
      border-radius: 10px;
      overflow: hidden;
      cursor: pointer;
      box-shadow: 5px 5px 5px black;
  }
  .sombra::before {
      content: "";
      position: absolute;
      top: 0;
      right: 0;
      width: 0%;
      height: 100%;
      background-color: #233D91; /* Azul que barre */
      z-index: 0;
      transition: width 0.5s ease;
      border: none;
      color: white;
    }
  .sombra:hover::before {
      width: 100%;
      left: 0;
      right: auto;
      color: white;
    }
    .sombra span {
      position: relative;
      z-index: 1;
    }
    .sombra:hover span{
      color: white;
    }

  .azul{
    background-color: rgb(35, 61, 145);
    position: relative;
      display: inline-block;
      padding: 15px 30px;
      font-size: 18px;
      color: white;
      border: none;
      border-radius: 10px;
      overflow: hidden;
      cursor: pointer;
      box-shadow: 5px 5px 5px black;
  }
  .azul::before {
      content: "";
      position: absolute;
      top: 0;
      right: 0;
      width: 0%;
      height: 100%;
      background-color: rgb(229, 7, 7); /* Azul que barre */
      z-index: 0;
      transition: width 0.5s ease;
      border: none;
      color: white;
    }
  .azul:hover::before {
      width: 100%;
      left: 0;
      right: auto;
      color: white;
    }
    .azul span {
      position: relative;
      z-index: 1;
    }
    .azul:hover span{
      color: white;
    }
    .botonpiramide{
      box-shadow: 5px 5px 5px black;
    }
  .alerta {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.644);
    z-index: 100000;
    display: none;
    top: 0;
    overflow-y: scroll;
    padding-bottom: 5%;
  }
  .apcaidad{
      opacity: 0;
      transform: translateX(100px); /* Empieza fuera a la derecha */
      animation: entrarDesdeDerecha 1s ease-out forwards;
    }

  .hidden {
    display: none;
  }

  .fade-slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .fade-slide-down {
    opacity: 0;
    transform: translateY(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .show.fade-slide-right,
  .show.fade-slide-down {
    opacity: 1;
    transform: translate(0, 0);
  }

  .titulosalertas{
      color: white;
      font-size: 200%;
  }
  .centrar3{
    position: relative;
    left: 50%;
    top: 30%;
    height: 60%;
    width: 80%;
    transform: translate(-50%, -40%);
  }

  .sangria {
    text-align: justify;
    text-indent: 2em; /* Sangría en la primera línea */
    margin-left: 2em; /* Desplaza todo el párrafo */
    margin-right: 2em;
  }

  .cita-bloque {
    border-left: 4px solid #ccc;
    padding-left: 1em;
    margin: 1em 2em;
    font-style: italic;
    background-color: #f9f9f9;
  }

  .centrar2{
    position: relative;
    left: 50%;
    top: 40%;
    height: 50%;
    width: 50%;
    transform: translate(-50%, -40%);
  }

  @keyframes entrarDesdeDerecha {
      from {
        opacity: 0;
        transform: translateX(100px);
      }
      to {
        opacity: 1;
        transform: translateX(0);
      }
     }

  @media (max-width: 1000px) {
    .fondo{
        height: 100%;
        width: 200%;
        top: 0;
    }
    .piramide {
        top: 43%;
        transform: translate(0%, -50%);
    }
    .contpiram{
      top: -70%;
      height: 73%;
    }
    .contpiram2{
      top: -70%;
      height: 73%;
    }
    .container{
        margin-top: 11%;
    }
    #bajar{
      overflow-y: scroll;
    }
    #contenedormodulos {
        height: 70vh;
        overflow-y: scroll;
    }
    .centrar2{
        width: 100%;
        transform: translate(-50%, -50%);
      }
  }