body {
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  /*color: #333;*/
  background-color: rgba(242, 242, 242, 0.5);
  z-index: 999;

  top: 0;
  left: 0;
}

canvas {
  position: sticky top: 0;
  left: 0;

}

nav {
  background-color: #333;
  overflow: hidden;
}

nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

nav li {
  font-size: 1.5em;
  display: inline-block;
  white-space: nowrap;
  box-sizing: border-box;
  overflow-wrap: break-word;
}

nav a {
  display: inline-block;
  padding: 0.5em 1em;
  margin: 0 0.5em;
  color: #fff;
  background-color: #333;
  text-decoration: none;
  border-radius: 0.5em;
  transition: background-color 0.3s;
  white-space: nowrap;
  box-sizing: border-box;
  overflow-wrap: break-word;
}

nav a:hover {
  background-color: #ddd;
  color: black;
}



/* Estilos para los encabezados de la página */
h1 {
  font-family: "Montserrat", sans-serif;
  font-weight: bold;
  color: #333;
  display: flex;
  justify-content: up;
  align-items: Left;
  gap: 5px;
  font-size: 24px;
}


.title-container {
  font-family: "Montserrat", sans-serif;
  font-weight: bold;
  padding-left: 50px;
  /* Añade espacio interno a la izquierda */
  gap: 10px;
  color: #333;
  display: flex;
  align-items: flex-start;
  /* Alinea el texto fijo con la primera línea */
  justify-content: flex-start;
  width: 100%;
  /* Ocupa todo el ancho disponible */
  font-size: 24px;
}

.fixed-text {
  white-space: nowrap;
  /* Evita que se divida en varias líneas */
  flex-shrink: 0;
  /* Evita que se reduzca de tamaño */
}

#changing-text {
  min-width: 250px;
  /* Ajusta según el texto más largo */
  min-height: 3em;
  /* Espacio suficiente para 2 líneas */
  overflow: hidden;
  /* Evita que el texto sobrepase el espacio */

  text-align: left;
  display: inline-block;
}

h2,
h3 {
  font-family: "Montserrat", sans-serif;
  font-weight: bold;
  color: #333;
}

.lista-obras {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  /* Espacio entre los elementos */
}

.lista-obras li {
  font-size: 14px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-sizing: border-box;
  width: 350px;
  /* Ancho fijo para cada elemento */
  margin-bottom: 10px;
  /* Espacio inferior entre los elementos */
  padding: 10px;
}

.lista-obras li:hover {
  background-color: #ddd;
  color: black;
}

/* Estilos para el título */
h1 {
  font-size: 3em;
  text-align: center;
  font-weight: bold;
}

/* Estilos para los datos técnicos */
.datos-tecnicos {
  text-align: right;
  font-size: 0.8em;
  margin-left: 20px;
  margin-right: 20px;
}

/* Estilos para la descripción */

.texto-obra {
  font-size: 1.2em;
  text-align: justify;
  margin-left: 20px;
  margin-right: 20px;
}

.destacado {
  font-weight: bold;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  text-align: center;
}

.imag {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  text-align: center;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin-left: 20px;
  margin-right: 20px;
}

.video-container iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
}

.titulo-biografia {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
}

.bibliografia {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.5;
}

.bibliografia-item {
  margin-left: 20px;
}

.nota-pie {
  font-size: 16px;
  margin-top: 10px;
}

.nota-pie a {
  color: #555;
  text-decoration: none;
  border-bottom: 1px dotted #555;
}

.linea-degradado-r {
  height: 2px;
  background: linear-gradient(to right, #333, transparent);
  margin: 10px 0;
}

.linea-degradado-l {
  height: 2px;
  background: linear-gradient(to left, #333, transparent);
  margin: 10px 0;
}

.degradado {
  /* background: linear-gradient(to left, #f0f0f0, #ffffff);*/
}

.contact-icons {
  display: flex;
  justify-content: center;
}







.contacto {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  background-color: #f5f5f5;
}

.contacto h2 {
  font-size: 4rem;
  margin-bottom: 2rem;
}

.contact-icons {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-icons li {
  margin: 1rem;
}

.contact-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #333;
  text-decoration: none;
  font-size: 2rem;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background-color: #fff;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
}

.contact-icons a:hover {
  transform: scale(1.1);
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.2);
}

.instagram {
  background-color: #dd2a7b;
  color: #fff;
}

.youtube {
  background-color: #ff0000;
  color: #fff;
}

.email {
  background-color: #eee;
}

.phone {
  background-color: #0066cc;
  color: #fff;
}



.button-container a {
  position: relative;

  left: 50%;
  transform: translate(-50%, 0);

  text-align: center;

  display: inline-block;
  padding: 10px 20px;
  background-color: #BABABA;
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-size: 18px;
}

.videos-container2 {
  display: flex;
  flex-wrap: wrap;
  gap: 0px;
  /* Espacio entre los iframes */
}


@media (max-width: 600) {
  .videos-container2 {
    flex-direction: column;
    /* Apila los iframes verticalmente cuando el ancho de la pantalla es menor o igual a 600px */
  }
}