@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500&family=Luxurious+Roman&family=M+PLUS+Code+Latin&family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&family=Saira+Condensed:wght@200&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Merriweather', serif;
    text-decoration: none;
}

body{
    background-color: #fff;
}

header {
    width: 100%;
    background-image: url('../img/fondo-header.webp');
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 194px;
    background-color: rgba(0, 0, 0, 0.5); /* Color negro con opacidad (ajusta el último valor) */
}

/*HEADER SUPERIOR*/

.header_superior{
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
}

.logo img{
    position: relative;
    width: 200px;
    height: 150px;
    z-index: 1;
}

.titulo {
    font-weight: bold;
    position: relative;
    color: black;
    font-size: 18px;
    padding: 10px;
    z-index: 1;
    margin-left: 20px;
}

/*BARRA MENU*/

.container_menu{
  width: 100%;
  height: 70px;
  background: #000428;  /* fallback for old browsers */
  background: -webkit-linear-gradient(to right, #004e92, #000428);  /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(to right, #004e92, #000428); 
  padding: 0px 20px;
}

.menu{
  max-width: 1200px;
  margin: auto;
  height: 100%;
  display: flex; /* Agrega esta línea */
  justify-content: center; /* Agrega esta línea */
}


nav{
  height: 100%;
}

nav > ul{
  height: 100%;
  display: flex;
  align-items: center; /* Agrega esta línea */
}


nav ul li{
  height: 100%;
  list-style: none;
  position: relative;
}

nav > ul > li:first-child > a{
  background-image: url('../img/home.webp');
  background-size: 40px;
  background-repeat: no-repeat;
  background-position: center center;
  padding: 20px 40px;
}

nav > ul > li:first-child:hover > a{
  background-image: url('../img/home.webp');
  background-size: 24px;
  background-repeat: no-repeat;
  background-position: center center;
}

nav > ul > li > a{
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 30px;
  color: white;
  text-transform: uppercase;
  font-size: 16px;
  transition: all 300ms ease;
}

nav > ul > li > a:hover{
  border-radius: 20px;
  transform: scale(1.1);
  background: #0074c7;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
}

#selected{
  border-radius: 20px;
  transform: scale(1.1);
  background-color: #0074c7;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
}

/*SUBMENU*/

nav ul li ul{
  width: 200px;
  display: flex;
  flex-direction: column;
  background: white;
  position: absolute;
  top: 90px;
  left: -5px;
  padding: 14px 0px;
  visibility: hidden;
  opacity: 0;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
  z-index: 10;
  transition: all 300ms ease;
}

nav ul li:hover ul{
  visibility: visible;
  opacity: 1;
  top: 70px;
}

nav ul li ul::before{
  content: '';
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 12px solid white;
  position: absolute;
  top: -12px ;
  left: 20px;
}

nav ul li ul li a{
  display: block;
  color: #000428;
  padding: 6px;
  padding-left: 14px;
  margin-top: 10px;
  font-size: 20px;
  transition: all 300ms ease;
}

nav ul li ul li a:hover{
  background: #0074c7;
  color: white;
  transform: scale(1.2);
  padding-left: 30px;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
}

footer {
    width: 100%;
    background: #000428;  /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, #004e92, #000428);  /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to right, #004e92, #000428); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    color: #fff;
    text-align: center;
    padding: 10px;
    border-top-left-radius: 50px; /* Esquina inferior izquierda redondeada */
    border-top-right-radius: 50px;
} 

.cuadrado {
    width: 1400px; /* Ancho del cuadro */  
    background: #C6C6C6;
    margin: 20px auto;
    border-radius: 30px;
    margin-top: 20px;
    margin-bottom: 20px;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.5); /* Relieve */
    border: 1px solid rgba(0, 0, 0, 0.2); /* Sombreado */
    display: flex;
    flex-direction: column; /* Cambia la dirección del flujo a columna */
    justify-content: center; /* Alinea el contenido verticalmente al centro */
    padding-left: 20px;
    box-sizing: border-box; /* Añadir esta propiedad para incluir padding y bordes en las dimensiones */
    padding: 20px; /* Agregar espacio interno al cuadro para que el contenido no se desborde */
    position: relative;
}

.cuadrado2 {
  width: 1300px; /* Ancho del cuadro */  
  background: #fff;
  margin: 20px auto;
  border-radius: 30px;
  margin-top: 20px;
  margin-bottom: 20px;
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.5); /* Relieve */
  border: 1px solid rgba(0, 0, 0, 0.2); /* Sombreado */
  display: flex;
  flex-direction: column; /* Cambia la dirección del flujo a columna */
  justify-content: center; /* Alinea el contenido verticalmente al centro */
  padding-left: 20px;
  box-sizing: border-box; /* Añadir esta propiedad para incluir padding y bordes en las dimensiones */
  padding: 20px; /* Agregar espacio interno al cuadro para que el contenido no se desborde */
}

.imagen{
  max-width: 100%;  /* La anchura máxima del contenedor se ajustará al tamaño de su contenedor principal */
  height: 400px;
  margin: 0 auto;   /* Centra el contenedor en su elemento principal (por ejemplo, el cuerpo de la página) */
  text-align: center;
  margin-left: 50px;
}

.imagen img {
  width: 400px;  /* La imagen no superará el ancho del contenedor */
  height: 100%;     /* Mantiene la proporción original de la imagen */
}
#introPage {
    text-align: center; /* Centra el texto horizontalmente */
    margin-top: 50px; /* Añade un espacio en la parte superior del título */
    margin-bottom: 40px;
    font-size: 40px;
}

#titleDocuments{
  text-align: left;
  margin-left: 30px;
  margin-top: 30px;
  font-family: 'Cinzel', serif;
}

.documentos{
  margin: 100px;
}

.documentos h4{
  margin-bottom: 50px;
  font-size: 30px;
  font-family: 'M PLUS Code Latin', sans-serif;
  font-weight: bold;
  margin-right: 60px;
}

.documento {
  display: flex;
  align-items: center;
  margin-bottom: 50px;
}

.documento img{
  width: 50px;
}

.contactos{
  margin: 100px;
}

.contactos h4{
  margin-bottom: 50px;
  font-size: 30px;
  font-family: 'M PLUS Code Latin', sans-serif;
  font-weight: bold;
  margin-right: 60px;
}

.contacto {
  display: flex;
  align-items: center;
  margin-bottom: 50px;
}

.contacto img{
  width: 50px;
  margin-left: 20px;
}

.descripcion{
    text-align: justify; /* Justifica el texto */
    line-height: 2.5;
    margin: 120px;
    font-family: 'Saira Condensed', sans-serif;
    font-size: 20px;
    margin-top: 60px;
    margin-left: 60px;
}

.myv p{
  margin: 30px;
  font-family: 'Luxurious Roman', cursive;;
  font-size: 20px;
  text-align: justify;
  line-height: 1.5;
}

.myv h2{
  font-family: 'Luxurious Roman', cursive;
  margin: 30px;
  font-size: 40px;
}

.content-animation {
  opacity: 0; /* Comienza con una opacidad de 0 */
  transform: translateY(20px); /* Inicia ligeramente desplazado hacia abajo */
  animation: fadeInUp 1s ease-out forwards; /* Aplica la animación en la carga */
}
.contenidoPrincipal {
  display: flex;
  justify-content: center; /* Centra horizontalmente */
  align-items: center; /* Centra verticalmente */
}

/*Diseño Login*/

.login{
  width: 400px;
  height: 310px;
  background: #000428;  /* fallback for old browsers */
  background: -webkit-linear-gradient(to right, #004e92, #000428);  /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(to right, #004e92, #000428);
  margin: auto;
  box-shadow: 7px 13px 37px #000;
  padding: 20px 30px;
  border-top: 4px solid #017bab;
  color: white;
}

.login h5{
  margin: 0;
  text-align: center;
  height: 40px;
  margin-bottom: 30px;
  border-bottom: 1px solid;
  margin-bottom: 30px;
  font-size: 20px;
}

.controls{
  width: 100%;
  border: 1px solid #017bab;
  margin-bottom: 15px;
  padding: 11px 10px;
  background: #ffffffc8;
  font-size: 14px;
  font-weight: bold;
}

.buttons{
  width: 100%;
  height: 40px;
  background: #017bab;
  border: none;
  color: white;
  margin-bottom: 16px;
}

/*CONSULTA DE CERTIFICADOS*/

.contenedorPrincipal .descripcion{
  margin-top: 0;
}

.consulta {
  background: #000428;  /* fallback for old browsers */
  background: -webkit-linear-gradient(to right, #004e92, #000428);  /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(to right, #004e92, #000428);
  border: 2px solid #000;
  padding: 20px;
  text-align: center;
  border-radius: 10px;
  box-shadow: 7px 13px 37px #000;
  max-width: 300px;
  margin: 30px;
}

.consulta h4 {
  color: white;
  font-size: 20px;
  margin-bottom: 10px;
}

.consulta input[type="text"] {
  width: 100%;
  padding: 10px;
  margin: 5px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.consulta input[type="submit"] {
  background-color: #007bff;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.consulta input[type="submit"]:hover {
  background-color: #0056b3;
}

.info table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.info th, .info td {
  padding: 10px;
  text-align: center; /* Alineación horizontal al centro */
  border: 1px solid #ddd;
}

.info thead {
  background-color: #333;
  color: white;
}

.info tbody tr:nth-child(even) {
  background-color: #f2f2f2;
}

.info tbody tr:hover {
  background-color: #ddd;
}

.contenidoPrincipal h4{
  text-align: center;
  margin-bottom: 40px;
}

.contenidoPrincipal h4 a{
  text-decoration: none;
  color: #000;
}

#formGoogle{
  width: 640px;
  height: 1175px;
}

/* Reglas de medios para pantallas medianas */
@media (max-width: 1199px) and (min-width: 768px) {
  .header_superior {
    padding: 10px;
  }
  header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 105px;
    background-color: rgba(0, 0, 0, 0.5); /* Color negro con opacidad (ajusta el último valor) */
  }
  .titulo {
    font-size: 16px;
  }
  .logo img {
    width: 120px;
    height: 80px;
  }
  .menu {
    padding: 0 10px;
  }
  nav ul li a {
    padding: 20px;
  }
  nav ul li ul {
    width: 150px;
    left: -5px;
  }
  .cuadrado {
    width: 100%;
    padding-left: 10px;
  }
  .cuadrado2 {
    width: 70%; /* Ancho del cuadro2 para pantallas medianas */
    background: #fff; /* Cambia el fondo del cuadro2 si es necesario */
  }
  footer {
    font-size: 16px; /* Cambia el tamaño de fuente para pantallas medianas */
  }
  .documentos h4 {
    font-size: 26px; /* Tamaño de fuente para pantallas medianas */
  }

  .contactos {
    margin: 3%;
  }

  .contactos h4 {
    font-size: 1.5rem;
    margin-right: 5%;
  }

  .descripcion {
    margin: 20px; /* Ajuste de margen para pantallas medianas */
  }
  .myv p {
    font-size: 18px; /* Ajuste de tamaño de fuente para pantallas medianas */
    margin: 20px; /* Ajuste de margen para pantallas medianas */
  }
  .myv h2 {
    font-size: 32px; /* Ajuste de tamaño de fuente para pantallas medianas */
    margin: 20px; /* Ajuste de margen para pantallas medianas */
  }

  .login {
    width: 80%;
    height: auto;
    padding: 15px 20px;
  }
  
  .login h5 {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .consulta {
    max-width: 80%;
  }

  .info th,
  .info td {
    padding: 8px;
  }
}

/* Reglas de medios para pantallas pequeñas */
@media screen and (max-width: 767px) {
  .header_superior {
    padding: 5px;
  }
  header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 95px;
    background-color: rgba(0, 0, 0, 0.5);
  }
  .titulo {
    font-size: 8px;
    text-align: center;
  }
  .logo img {
    width: 120px;
    height: 80px;
    margin-left: 10px;
  }
  .menu {
    padding: 0 5px;
  }

  nav ul li a {
    padding: 5px;
    font-size: 8px;
  }

  nav ul li a#selected { /* Estilo específico para el enlace con ID "selected" */
    /* Aplica estilos específicos para este enlace, como reducir su tamaño */
    font-size: 4px; /* Reducido el tamaño de fuente */
    padding: 25px; /* Reducido el padding */
  }

  nav ul li ul {
    width: 100px; /* Reducido el ancho de los elementos desplegables */
    display: flex;
    flex-direction: column;
    background: white;
    position: absolute;
    top: 30px; /* Alineado con la parte inferior del menú principal */
    left: 0; /* Alineado con el borde izquierdo del menú principal */
    padding: 5px 0px; /* Reducido el padding del menú desplegable */
    visibility: hidden;
    opacity: 0;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
    z-index: 10;
    transition: all 300ms ease;
  }

  nav ul li:hover ul {
    visibility: visible;
    opacity: 1;
    top: 60px; /* Alineado con la parte inferior del menú principal */
  }

  nav ul li ul::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 8px solid transparent; /* Reducido el tamaño de la flecha */
    border-right: 8px solid transparent; /* Reducido el tamaño de la flecha */
    border-bottom: 8px solid white;
    position: absolute;
    top: -8px; /* Alineado con la parte superior del menú desplegable */
    left: 15px; /* Ajustado el posicionamiento de la flecha */
  }

  nav ul li ul li a {
    display: block;
    color: #000428;
    padding: 4px; /* Reducido el padding de los elementos del menú desplegable */
    padding-left: 8px; /* Reducido el padding izquierdo de los elementos del menú desplegable */
    margin-top: 4px; /* Reducido el margen superior entre elementos */
    font-size: 8px; /* Reducido el tamaño de fuente del menú desplegable */
    text-transform: uppercase;
    transition: all 300ms ease;
  }

  nav ul li ul li a:hover {
    background: #0074c7;
    color: white;
    transform: scale(1.0);
    padding-left: 12px; /* Aumentado el padding izquierdo en el hover */
    font-size: 8px; /* Reducido el tamaño de fuente en el hover */
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
  }
  .cuadrado {
    width: 100%;
    padding-left: 5px;
  }

  .cuadrado2 {
    width: 100%; /* Ocupa todo el ancho de la pantalla */
    background: #fff;
  }

  footer {
    font-size: 14px; /* Cambia el tamaño de fuente para pantallas pequeñas */
  }

  #image {
    max-width: 70%; /* Cambia el valor al porcentaje deseado */
    height: 300px;
  }

  /* Estilos para #introPage en pantallas pequeñas */
  #introPage {
    font-size: 16px; /* Reducir el tamaño de fuente en pantallas pequeñas */
  }

/* Estilos para #titleDocuments en pantallas pequeñas */
  #titleDocuments {
    margin-left: 20px; /* Reducir el margen izquierdo en pantallas pequeñas */
    margin-top: 20px; /* Reducir el margen superior en pantallas pequeñas */
  }

/* Estilos para .documentos en pantallas pequeñas */
  .documentos {
    margin: 10px; /* Reducir el margen en pantallas pequeñas */
  }

/* Estilos para .documentos h4 en pantallas pequeñas */
  .documentos h4 {
    margin-bottom: 10px; /* Reducir el margen inferior en pantallas pequeñas */
    font-size: 20px; /* Reducir el tamaño de fuente en pantallas pequeñas */
    margin-right: 20px; /* Reducir el margen derecho en pantallas pequeñas */
  }

/* Estilos para .documento en pantallas pequeñas */
  .documento {
    margin-bottom: 10px; /* Reducir el margen inferior en pantallas pequeñas */
  }

/* Estilos para .documento img en pantallas pequeñas */
  .documento img {
    width: 20px; /* Reducir el ancho de la imagen en pantallas pequeñas */
  }

  .contactos {
    margin: 2%;
  }

  .contactos h4 {
    font-size: 1.2rem;
    margin-right: 3%;
  }

  .contacto img {
    width: 30px;
    margin-left: 1%;
  }

  .descripcion {
    margin: 10px; /* Ajuste de margen para pantallas pequeñas */
  }
  .myv p {
    font-size: 16px; /* Ajuste de tamaño de fuente para pantallas pequeñas */
    margin: 10px; /* Ajuste de margen para pantallas pequeñas */
  }
  .myv h2 {
    font-size: 28px; /* Ajuste de tamaño de fuente para pantallas pequeñas */
    margin: 10px; /* Ajuste de margen para pantallas pequeñas */
  }

  .login {
    width: 90%;
    height: auto;
    padding: 10px 15px;
  }
  
  .login h5 {
    font-size: 16px;
    margin-bottom: 10px;
  }
  
  .controls {
    padding: 8px 6px;
  }
  
  .buttons {
    height: 36px;
    margin-bottom: 12px;
  }

  .info table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 10px;
  }
  
  .info th, .info td {
    padding: 10px;
    text-align: center; /* Alineación horizontal al centro */
    border: 1px solid #ddd;
    font-size: 10px;
  }

  .contenidoPrincipal {
    display: flex;
    flex-direction: column; /* Alinea los elementos en columna (uno debajo del otro) */
    justify-content: center; /* Centra horizontalmente */
    align-items: center; /* Centra verticalmente */
  }

  .contenidoPrincipal h4 {
    font-size: 18px;
    margin-bottom: 30px;
  }

  #formGoogle{
    width: 350px;
    height: 1175px;
  }
} 

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}