.formulario.active {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  /* Ocupa todo el ancho */
  height: 100vh;
  /* Ocupa toda la altura del viewport */
  z-index: 100;
  background-color: white;
  /* Fondo blanco */
  padding: 0;
  /* Elimina padding para evitar desplazamiento inicial */
  box-sizing: border-box;
  /* Asegura que el padding no afecte el tamaño */
  display: flex;
  justify-content: center;
}

.formulario .formulario--container {
  position: relative;
  height: auto;
  min-height: 100vh;
  overflow-y: auto;
  scale: 1;
  border-radius: 0;
  -webkit-border-radius: 0;
  -moz-border-radius: 0;
  -ms-border-radius: 0;
  -o-border-radius: 0;
  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3);
}

@media only screen and (min-width: 2560px) {
  /* Estilos para pantallas 4K */

  :root {
    --font-size-xsm: 2.5rem;
    --font-size-sm: 4rem;
    --font-size-md: 5rem;
    --font-size-bg: 10rem;
    --global--padding: 100px;
    --global-border-radius: 40px;
  }

  header img,
  footer img {
    width: 400px;
  }

  .formulario img {
    width: 100%;
    min-height: 400px;
    max-height: 500px;
    object-fit: cover;
    object-position: unset;
  }

  .certificaciones--card picture {
    width: 300px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .formulario--container {
    position: relative;
    height: auto;
    scale: 1;
    border-radius: 0;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    -ms-border-radius: 0;
    -o-border-radius: 0;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0);
  }
}

@media only screen and (min-width: 1920px) and (max-width: 2559px) {

  /* Estilos para pantallas Full HD */
  :root {
    --font-size-xsm: 1rem;
    --font-size-sm: 1.5rem;
    --font-size-md: 2rem;
    --font-size-bg: 5rem;
    --global--padding: 40px;
    --global-border-radius: 40px;
  }

  header img,
  footer img {
    width: 200px;
  }

  .formulario img {
    width: 100%;

    min-height: 300px;
    max-height: 400px;
    object-fit: cover;
    object-position: unset;
  }

  .certificaciones--card picture {
    width: 200px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

/* ====================================== Responsive mobile 960px ====================================== */

@media (max-width: 960px) {

  /* ============================================= Principal ============================================= */
  .principal {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  /* ============================================== Proximas ============================================== */
  .proximas {
    position: relative;
    height: auto;
    width: 100%;
    padding: var(--global--padding);
    flex-grow: 1;
  }

  .box--card section {
    display: flex;
    flex-wrap: wrap;
  }

  .box--card section p {
    width: calc(50% - 10px);
  }

  .box--card .horarios p {
    width: calc(50% - 10px);
  }

  /* ============================================= Hoja Ruta ============================================= */
  .hoja--ruta {
    position: relative;
    width: 100%;
    height: auto;
    padding: var(--global--padding);
  }

  /* ========================================= Especializaciones ========================================= */
  .especializaciones {
    height: auto;
    width: 100%;
    padding: var(--global--padding);
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  /* ========================================== Certificaciones ========================================== */
  .certificaciones {
    position: relative;
    width: 100%;
    height: auto;
    padding: 0;
    gap: 20px;
    padding: var(--global--padding);
  }

  .porcentajes {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
  }

  /* ============================================= Formulario ============================================= */
  .formulario {
    position: relative;
    background-color: white;
    width: 100%;
    height: auto;
    min-height: 100vh;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0px 0px 40px;
  }

  .formulario.active {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* Ocupa todo el ancho */
    height: 100vh;
    /* Ocupa toda la altura del viewport */
    z-index: 100;
    background-color: white;
    /* Fondo blanco */
    padding: 0;
    /* Elimina padding para evitar desplazamiento inicial */
    box-sizing: border-box;
    /* Asegura que el padding no afecte el tamaño */
  }

  .formulario.active .formulario--container {
    position: relative;
    height: auto;
    overflow: scroll;
    scale: 0.95;
    border-radius: 20px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    -ms-border-radius: 20px;
    -o-border-radius: 20px;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3);
  }

  .formulario.active .close {
    display: block;
  }

  .formulario img {
    width: 100%;
    min-height: 100px;
    max-height: 150px;
    object-fit: cover;
    object-position: unset;
  }

  .form--btn {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  /* =============================================== Footer =============================================== */
  footer {
    position: relative;
    background-color: var(--global-black);
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    height: 300px;
    min-height: 100px;
    gap: 40px;
  }

  footer div {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
  }

  /* =============================================== PopUp =============================================== */
  .pop-up {
    display: flex;
  }

}

@media only screen and (min-width: 768px) and (max-width: 1024px) {
  /* Estilos para tablets */
}

@media only screen and (max-width: 767px) {
  /* Estilos para móviles */
}

@media only screen and (max-width: 960px) and (orientation: landscape) {

  /* Estilos para móviles en orientación horizontal */
  .formulario.active {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* Ocupa todo el ancho */
    height: 100vh;
    /* Ocupa toda la altura del viewport */
    z-index: 100;
    background-color: white;
    /* Fondo blanco */
    padding: 0;
    /* Elimina padding para evitar desplazamiento inicial */
    box-sizing: border-box;
    /* Asegura que el padding no afecte el tamaño */
  }

  .formulario.active img {
    display: none;
  }

  .formulario.active .formulario--container {
    position: relative;
    height: auto;
    overflow: scroll;
    scale: 0.95;
    border-radius: 20px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    -ms-border-radius: 20px;
    -o-border-radius: 20px;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3);
  }
}


.menu button {
  border: none;
  background-color: transparent;
}

.menu svg {
  color: var(--global-red);
  width: var(--font-size-md);
}

.menu nav {
  position: absolute;
  width: 100%;
  background-color: var(--global-white);
  left: 0;
  padding: var(--global--padding);
  display: none;
}

.menu.active nav {
  display: block;
}

.menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.menu a {
  color: var(--global-black);
}

.menu a:hover {
  color: var(--global-gray-2);
}




.down {
  position: fixed;
  width: 50%;
  bottom: 0;
  height: 100px;
  z-index: 9999;
  background-color: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
}



@keyframes zoom {
  from {
    scale: 1;
  }

  to {
    scale: .8;
  }
}

.scroll-section {
  height: 100vh;
  background: #f0f0f0;
}

.scroll-btn {
  background: transparent;
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 24px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}

.down svg {
  width: 100%;
  color: var(--global-gray-1);
  animation: zoom 1s infinite alternate linear;
}



@media (max-width: 960px) {
  .down {
    position: fixed;
    width: 100%;
    bottom: 60px;
    height: 50px;
    z-index: 1;
  }

  .down.formulario.active {
    display: none;
  }
}