:root {
  --white: white;
  --black: black;
}

table {
  width: 100%; /* Ocupar el 100% del contenedor en desktop */
  border-collapse: collapse!important;
  margin: 20px auto!important;
  table-layout: fixed; /* Asegura que las columnas se distribuyan equitativamente en desktop */
  overflow-x: auto; /* Habilita el scroll horizontal */
}


.mission-vision-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 20px;
  align-items: center; /* Centrado vertical */
  transition: background-color 0.3s, color 0.3s;
}

/* Invertir orden para visión (imagen a la derecha y texto a la izquierda) */
.reverse {
  grid-template-columns: 1fr 1fr;
  grid-auto-flow: dense; /* Asegura que siga el orden correcto */
}

/* Imagen */
.sticky-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Contenido de texto con padding y centrado */
.text-content {
  padding: 40px;
  text-align: center;
  line-height: 1.8; /* Espaciado mayor para elegancia */
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Hover - Cambiar color de fondo a azul y texto a blanco */
.mission-vision-container:hover .text-content {
  background-color: #0069B2;
  color: white;
}

/* Estilos de título */
.titleContent {
  font-size: 1.5em;
  font-weight: bold;
  color: #0069B2;
  margin-bottom: 10px;
  transition: color 0.3s;
}

/* Cuando hay hover, cambiar color del título */
.mission-vision-container:hover .titleContent {
  color: white;
}




th, td {
  padding: 8px 12px!important;
  text-align: left!important;
  font-size: 14px!important;
  border: 1px solid #e0e0e0!important;
  white-space: nowrap; /* Evita que el contenido se rompa en varias líneas */
}

.titleContent{
  font-size: 25px!important;
  font-weight: 700;
  color: #0069B2;
  text-transform: uppercase;
}

.button-link {
  display: inline-block;
  background-color: #005396;
  color: white;
  padding: 10px 20px;
  font-size: 16px;
  text-decoration: none;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s ease;
}

.titlesubContent{
  font-size: 20px!important;
  font-weight: 500;
  color: #0069B2;
  text-transform: uppercase;
}

th {
  background-color: #f2f2f2!important;
}

td a {
  color: rgb(88, 88, 132)!important;
  text-decoration: none!important;
}

.tab-buttons button {
  border: none!important;
}

td a:hover {
  text-decoration: underline!important;
}

h1 {
  margin-top: 20px;
  margin-bottom: 10px;
  font-family: Lato, sans-serif;
  font-size: 50px;
  font-weight: 700;
  line-height: 44px;
}

h2 {
  margin-top: 20px;
  margin-bottom: 10px;
  font-family: Lato, sans-serif;
  font-size: 45px;
  font-weight: 400;
  line-height: 36px;
}

p {
  margin-bottom: 10px;
  font-family: Lato, sans-serif;
  font-size: 18px;
  line-height: 22px;
}

.topLine{
 border-top: 1px solid #e0e0e0!important;

}



.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr)); /* Responsivo, ajusta el ancho */
  gap: 20px;
  padding: 20px;
}

.principle-item {
  background-color: #f9f9f9; /* Fondo inicial */
  color: black; /* Texto inicial */
  padding: 20px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  height: 300px; /* Altura inicial */
  transition: background-color 0.3s ease, color 0.3s ease; /* Cambia fondo y texto al hacer hover */
}

.principle-item strong {
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s ease; /* Animación suave del título */
}

.principle-item p {
  font-size: 0.9rem;
  margin: 0;
  position: absolute;
  bottom: 15%; /* El texto está oculto debajo */
  left: 0;
  right: 0;
  padding: 0 20px;
  transition: all 0.1s ease; /* Animación rápida */
}

.principle-item:hover {
  background-color: #ff6600; /* Cambia el fondo a naranja */
  color: white; /* Texto blanco */
  height: 300px; /* Incrementa la altura para revelar el texto */
}





.lateralTag{
  display: flex!important;
  font-size: 17px!important;
  transform: rotate(-90deg)!important;
}

.tittleEvent{
font-size: 20px!important;
margin-bottom: 10px;
}

.lineSmall{
  width: 2px;
  height: 18px;
  background-color: orange;
  margin-right: 10px;

}

.lateralTag{
  font-size: 15px;
}

.h1 {
  font-family: Lato, sans-serif;
  font-size: 50px;
  line-height: 50px;
}

.h1.white {
  color: #fff;
  background-color: rgba(255, 255, 255, 0);
}

.h1.negativomarginright {
  margin-left: -7px;
}

.heading {
  font-family: Lato, sans-serif;
  font-size: 40px;
  font-weight: 400;
}

.paragraph {
  font-family: Lato, sans-serif;
  font-size: 16px;
  line-height: 27px;
}

.h01-contenedorheader {
  width: 100%;
  height: 80vh;
}

.background-video {
  background-image: linear-gradient(rgba(1, 1, 49, .84) 20%, rgba(26, 22, 104, .4) 47%, rgba(15, 0, 60, 0) 101%), url('../images/upn_u-h01.svg'), url('../images/upnvideo-h01.mp4');
  background-position: 0 0, 100%, 50%;
  background-size: auto, cover, cover;
  background-attachment: scroll, scroll, fixed;
  height: 100%;
}

.h01-container {
  background-image: url('https://d3e54v103j8qbb.cloudfront.net/img/background-image.svg');
  background-position: 0 0;
  background-size: auto;
}

.maxwidth {
  flex-flow: row;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  max-width: 1250px;
  height: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 28px 0 0;
  display: flex;
}

.maxwidth.h01-containerwm {
  flex-flow: column;
  justify-content: space-between;
  align-items: center;
}

.maxwidth.mtop0 {
  flex-flow: column;
  padding-top: 0;
  padding-left: 0;
}

.h01_videoaccess {
  width: 100%;
  padding: 36px 44px 0;
}

.image {
  margin-left: -28px;
}

.h01-line {
  background-color: #fff;
  width: 1px;
  height: 100px;
  margin-left: 0;
}

.heading-2 {
  margin-left: -6px;
  padding-left: 0;
}

.background-video-2 {
  display: none;
}

.h01_contenedormenu {
  width: 100%;
  min-height: 20px;
}

.b01-content01 {
  background-color: #f1f1f1;
  background-image: url('../images/02oferta.svg');
  background-position: 40% 0;
  background-repeat: no-repeat;
  background-size: contain;
  background-attachment: scroll;
  min-height: 250px;
  padding-bottom: 40px;
}

.b01-line {
  background-color: #ff8f39;
  width: 1px;
  height: 100px;
  margin-left: 0;
}

.b01-line.movil {
  height: 50px;
}

.b01-colorlines {
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  margin-left: 0;
  padding-left: 44px;
  display: flex;
}

.b01-colorline {
  background-color: #ffaf12;
  width: 100%;
  height: 6px;
}

.b01-colorline.orange {
  background-color: #ffaf12;
  height: 4px;
}

.b01-colorline.blue2 {
  background-color: #6892ff;
}

.b01-colorline.blue1 {
  background-color: #326cff;
}

.b01-colorline.orange1 {
  background-color: #ff8100;
}

.b01_contendoroferta {
  z-index: 200;
  flex-flow: column;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  min-height: 10px;
  margin-left: 0;
  margin-right: 40px;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 44px;
  display: flex;
  position: relative;
  overflow: visible;
}

.b01_movilsearch {
  flex-flow: column;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  display: none;
}

.b01_serchdesktop {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-top: 15px;
  padding-right: 0;
}

.body {
  overflow: visible;
}

.b01_search {
  background-color: #fff;
  border-radius: 10px;
  flex-flow: row;
  min-height: 400px;
  display: flex;
  overflow: hidden;
}

.column50 {
  width: 50%;
  min-height: 50px;
}

.column50.b01_bgsearch {
  background-image: url('../images/upnISO.png'), url('../images/student.png');
  background-position: 0 100%, 50%;
  background-repeat: no-repeat, no-repeat;
  background-size: contain, cover;
  background-attachment: scroll, scroll;
}

.column50.b01_rightsearch {
  padding: 70px 23px 23px;
  font-family: Lato, sans-serif;
  font-size: 20px;
}

.b01_linebcolor {
  width: 100%;
  height: 6px;
}

.b01_linebcolor.blue {
  background-color: #003ca6;
  margin-top: -4px;
}

.b01_linebcolor.orange {
  background-color: #ffaf12;
}

.b01_linebcolor.orange2 {
  background-color: #fb5000;
}

.b01_searchtittle {
  color: #1a2d50;
  margin-bottom: 18px;
  padding-bottom: 10px;
}

.b01_itemsearch {
  border-bottom: 1px solid #ebebeb;
  flex-flow: row;
  justify-content: space-between;
  align-items: center;
  padding: 21px 9px 17px;
  transition: all .2s;
  display: flex;
}

.b01_itemsearch:hover {
  color: #ff8000;
  background-color: #f5f5f5;
  border-bottom-width: 0;
  border-radius: 13px;
  padding-left: 22px;
}

.vermas {
  color: #005396;
  background-color: rgba(44, 90, 255, 0);
  font-size: 12px;
  font-weight: 700;
}

.b01_space {
  padding-top: 65px;
}

.b02-contenedor {
  grid-column-gap: 15px;
  grid-row-gap: 15px;
  flex-flow: row;
  justify-content: flex-start;
  align-items: stretch;
  width: 100%;
  padding: 23px;
  display: flex;
}

.b02-imagebaner {
  background-image: url('../images/imageBaner.png');
  background-position: 50% 0;
  background-size: cover;
  border-radius: 10px;
  width: 60%;
  min-height: 350px;
}

.b02-listcontent {
  grid-column-gap: 28px;
  grid-row-gap: 28px;
  background-color: #f8f8f8;
  border-radius: 10px;
  flex-flow: column;
  width: 40%;
  min-height: 200px;
  padding: 25px;
  display: flex;
}

.etiqueta{
  color: rgb(194, 194, 194);
  font-size: 13px;
  font-family: Lato, sans-serif;
  
}
.h3 {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 26px;
  font-weight: 700;
}

@media screen and (max-width: 991px) {

  table {
    width: auto; /* La tabla se ajusta al contenido en mobile */
    display: block; /* Permite scroll horizontal */
    table-layout: auto; /* Ajusta el ancho de las columnas al contenido en mobile */
  }

  th, td {
    min-width: max-content; /* Ajusta el ancho mínimo de las columnas al contenido */
    white-space: nowrap; /* Evita que el contenido se divida en líneas */
  }

  .b02-listcontent {
    grid-column-gap: 21px;
    grid-row-gap: 21px;
    flex-flow: column;
    display: flex;
  }

  .h3 {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 25px;
    line-height: 25px;
  }
}

@media screen and (max-width: 767px) {

  .mission-vision-container {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .reverse {
    direction: ltr; /* Volver a la disposición normal en móvil */
  }

  .sticky-img {
    margin-bottom: 20px;
  }

  .principle-item {
    height: auto!important; 
    min-height: 260px!important; /* Altura inicial */
  }


  .b01_contendoroferta {
    margin-right: 0;
    padding-right: 44px;
  }

  .b01_search {
    flex-flow: column;
  }

  .column50.b01_bgsearch {
    background-position: 0 100%, 50% 30%;
    width: 100%;
    min-height: 300px;
  }

  .column50.b01_rightsearch {
    width: 100%;
    padding-top: 23px;
  }

  .b02-imagebaner, .b02-listcontent {
    width: 50%;
  }
}

@media screen and (max-width: 479px) {
  .h1 {
    font-size: 24px;
    line-height: 32px;
  }

  .h01-contenedorheader {
    height: 55vh;
    overflow: visible;
  }

  
      
  .background-video {
    background-image: url('../images/ulinewhite.svg'), radial-gradient(circle farthest-side at 0 0, rgba(0, 61, 138, .6), rgba(0, 28, 75, .99) 63%), linear-gradient(#000, rgba(0, 0, 49, .84) 0%, rgba(15, 0, 60, 0) 101%), url('../images/upnvideo-h01.mp4');
    background-position: 200%, 0 0, 0 0, 50%;
    background-repeat: no-repeat, repeat, repeat, repeat;
    background-size: cover, auto, auto, cover;
    background-attachment: scroll, scroll, scroll, fixed;
  }

  .maxwidth.h01-containerwm {
    justify-content: flex-start;
    align-items: center;
    padding: 8px;
  }

  .h01_videoaccess {
    padding: 15px 15px 0;
  }

  .image, .h01-line {
    display: none;
  }

  .h01-videomovil {
    z-index: 1;
    width: 100%;
    height: 120px;
    min-height: 200px;
    margin-top: -147px;
    position: relative;
    top: 42px;
    overflow: visible;
  }

  .background-video-2 {
    background-color: rgba(0, 0, 0, .2);
    border-radius: 9px;
    justify-content: center;
    align-items: center;
    height: 200px;
    margin: 0 8px;
    display: flex;
  }

  .h01_contenedormenu {
    width: 100%;
    height: 100px;
    padding: 9px;
  }

  .image-2 {
    width: 80px;
  }

  .b01-line {
    display: none;
  }

  .b01-line.movil {
    display: block;
  }

  .b01-colorlines {
    display: none;
  }

  .b01_contendoroferta {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .b01_movilsearch {
    padding-top: 30px;
    display: flex;
  }

  .b01_serchdesktop {
    margin-left: 0;
    margin-right: 0;
    padding-left: 10px;
    padding-right: 10px;
    display: flex;
  }

  .b01_search {
    width: 100%;
    min-height: 250px;
  }

  .column50 {
    width: 100%;
  }

  .column50.b01_bgsearch {
    display: none;
  }

  .column50.b01_rightsearch {
    padding-left: 12px;
    padding-right: 8px;
  }

  .b01_itemsearch {
    padding: 10px;
    font-size: 16px;
  }

  .heading-3 {
    font-size: 35px;
  }

  .b02-contenedor {
    grid-column-gap: 6px;
    grid-row-gap: 6px;
    flex-flow: column;
    padding: 13px;
  }

  .b02-imagebaner {
    width: 100%;
    min-height: 150px;
  }

  .b02-listcontent {
    grid-column-gap: 22px;
    grid-row-gap: 22px;
    flex-flow: column;
    width: 100%;
    padding: 12px;
    display: flex;
  }

  .h3 {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 18px;
    line-height: 20px;
  }

  .b02-itembaner {
    flex-flow: column;
    justify-content: center;
    align-items: flex-start;
    display: flex;
  }
}
