/* 1.- Tipografia */
@import url("https://fonts.googleapis.com/css2?family=Hepta+Slab:wght@1..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&family=Roboto+Slab:wght@100..900&display=swap");

h1,
h2,
h3 {
  font-family: "Roboto Slab", serif;
}
p,
span,
a {
  font-family: "Hepta Slab";
}

/*2. Estilos básicos */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  background: linear-gradient(to right, rgb(255, 228, 230), rgb(204, 251, 241));
}

/*Estilos para hacer un slpash screen con palabras*/
/* Estilos del splash screen */
#splash {
  position: fixed;
  width: 100%;
  height: 100vh;
  background-color: #ffffff;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: opacity 1s ease;

  /*Codigo agregado para que se desvanezca*/
  opacity: 1;
  visibility: visible;
  transition: opacity 1s ease, visibility 0s 1s; /* El tiempo de transición puede ajustarse */
}

.splash-content h1 {
  font-size: 3rem;
}

/*Codigo agregado para que se desvanezca*/
#splash.hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 0s 1s;
}
/*00000*/

.splash-content p {
  font-size: 1.2rem;
}

/* Ocultar el contenido principal mientras el splash está activo */
#main-content {
  display: none;
}

/* Mostrar el contenido principal una vez que el splash desaparece */
.show-content #main-content {
  display: block;
}

/* 1.Estilos de Encabezado o NavBar */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #154360;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
  padding: 0 50px;
  transition: all 0.3s ease-in-out;
  box-shadow: 0px 3px 8px #000;
}

.header .logo {
  display: flex;
  align-items: center;
}

.header .logo span {
  color: #eceff1;
  font-size: 1.2rem;
  padding-bottom: 5px;
  text-shadow: 2px 2px 3px #0d0d0d;
}

.header .logo img {
  height: 50px;
  width: 50px;
  transition: all 0.3s;
  cursor: pointer;
}

.header .logo img:hover {
  transition: all 1s ease;
  transform: scale(1.3);
}

.header .nav-links {
  list-style: none;
}

.header .nav-links li {
  display: inline-block;
  padding: 0 15px;
}

.header .nav-links li:hover {
  transition: all 1s ease;
  transform: scale(1.1);
}

.header .nav-links a {
  color: #eceff1;
  text-decoration: none;
}

.header .nav-links li a:hover {
  color: #ffbc0e;
}

/* 2. Estilos del cuerpo de la página*/
main {
  margin-top: 70px;
}

/*3. Estilo para la primera sección : Novedades*/
.news {
  padding: 20px;
  background-color: #ffffff;
  text-align: center;
  margin: 10px;
  border: 1px, solid, #a3a2a2;
  border-radius: 10px;
  box-shadow: 0 4px 8px #000;
}

.news h2 {
  margin-bottom: 20px;
}

/* Estilo para el titulo de la sección novedades */
.title-news {
  margin: 0 40px 20px 40px;
  border-bottom: 5px solid #000;
  padding-left: 10px;
  padding-bottom: 5px;
  width: 300px;
  transition: 2s ease;
  text-align: start;
  font-size: 1.4rem;
}

.title-news:hover {
  transition: 1s ease;
  width: 90%;
  font-size: 1.1rem;
}

/* Caja de noticias de novedades */
.container-news {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

.novelty {
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 15px;
  width: 25%;
  height: auto;
  box-shadow: 0 4px 8px #000;
  transition: all 400ms ease-out; /*Esto es lo que cambia*/
  text-align: justify;
}
/*cambio de efecto */

.novelty:hover {
  box-shadow: 5px 4px 15px #000;
  transform: translateY(-3%);
}

.title-novelty {
  margin: 10px 0;
}
.novelty img {
  width: 100%;
  object-fit: cover;
  height: auto;
  border-radius: 4px;
  margin-bottom: 10px;
}

.novelty p {
  font-size: 1em;
  color: #333;
}

/* Estilo para la sección de próximas noticias */
.more_news {
  padding: 15px;
  background-color: #fff;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 4px 8px #000;
  border: 2px solid #fff;
  margin: 10px;
}

.more_news h2 {
  font-size: 2rem;
}

.title-more_news h2 {
  margin-bottom: 10px;
  margin: 0 40px 20px 40px;
  border-bottom: 5px solid #000;
  padding-left: 10px;
  padding-bottom: 5px;
  width: 300px;
  text-align: start;
  transition: 2s ease;
}

.title-more_news h2:hover {
  transition: all 1s ease;
  width: 90%;
  font-size: 1.1rem;
}

.container-more_news {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  margin: 0 auto;
  max-width: 1200px;
}

.news-items {
  display: flex;
  align-items: center;
  gap: 20px;
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 11px;
  padding: 15px;
  width: 100%;
  box-shadow: 0 4px 8px #000000;
}
.div-img-news {
  flex: 2;
  max-width: 600px;
}

.div-img-news iframe {
  width: 100%;
  height: 200px;
  border-radius: 8px;
}
.img-events {
  width: 100%;
  height: 300px;
  border-radius: 5px;
}

.desc-news {
  flex: 1;
  max-width: 300px;
}

.desc-news h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
  color: #000000;
}

.desc-news p {
  font-size: 0.9em;
  color: #666;
}

/* Estilo para el pie de página */
footer {
  background-color: #f5f5dc;
  padding: 20px;
  border-top: 1px solid #000;
  position: relative;
  bottom: 0;
  left: 0;
  width: 100%;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  color: #333;
  max-width: 1200px;
}

.logo-section {
  text-align: center;
  padding-right: 40px;
}
.search-section button {
  padding: 5px 10px;
  border: none;
  background-color: #154360;
  color: #ffffff;
  border-radius: 5px;
  cursor: pointer;
}

.search-section button:hover {
  transform: translateY(-3%);
  transition: all 0.2s ease;
}

.search-section {
  border-left: 1px solid #000;
  border-right: 1px solid #000;
  padding: 0 40px;
  height: 150px;
}

.logo-section h1 {
  font-size: 2em;
  margin-bottom: 10px;
}

.logo-section p {
  max-width: 250px;
  font-size: 0.9em;
  line-height: 1.5;
}

.search-section h2 {
  margin-bottom: 10px;
}

.search-section input[type="text"] {
  padding: 5px;
  border: 1px solid #000;
  border-radius: 5px;
  width: 150px;
}

.social-section {
  text-align: center;
  padding-left: 60px;
}

.social-section h3 {
  margin-bottom: 10px;
}

.social-icons {
  display: flex;
  gap: 10px;
  margin: 20px 0;
}

.social-icons img {
  width: 24px;
  height: 24px;
}

.social-section p {
  margin: 5px 0;
  font-size: 0.9em;
}

.social-section a {
  text-decoration: none;
  color: #333;
}

.social-section a:hover {
  text-decoration: underline;
}

.data-icons {
  display: flex;
  gap: 20px;
  margin: 25px 0;
}
