/* Tipografía sobria y elegante */
body {
  font-family: 'Georgia', serif;
  margin: 0;
  padding: 0;
  background-color: #dcdcdc; /* color base */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='52' viewBox='0 0 52 52'%3E%3Cpath fill='%23ffffff' fill-opacity='0.26' d='M0 17.83V0h17.83a3 3 0 0 1-5.66 2H5.9A5 5 0 0 1 2 5.9v6.27a3 3 0 0 1-2 5.66zm0 18.34a3 3 0 0 1 2 5.66v6.27A5 5 0 0 1 5.9 52h6.27a3 3 0 0 1 5.66 0H0V36.17zM36.17 52a3 3 0 0 1 5.66 0h6.27a5 5 0 0 1 3.9-3.9v-6.27a3 3 0 0 1 0-5.66V52H36.17zM0 31.93v-9.78a5 5 0 0 1 3.8.72l4.43-4.43a3 3 0 1 1 1.42 1.41L5.2 24.28a5 5 0 0 1 0 5.52l4.44 4.43a3 3 0 1 1-1.42 1.42L3.8 31.2a5 5 0 0 1-3.8.72zm52-14.1a3 3 0 0 1 0-5.66V5.9A5 5 0 0 1 48.1 2h-6.27a3 3 0 0 1-5.66-2H52v17.83zm0 14.1a4.97 4.97 0 0 1-1.72-.72l-4.43 4.44a3 3 0 1 1-1.41-1.42l4.43-4.43a5 5 0 0 1 0-5.52l-4.43-4.43a3 3 0 1 1 1.41-1.41l4.43 4.43c.53-.35 1.12-.6 1.72-.72v9.78zM22.15 0h9.78a5 5 0 0 1-.72 3.8l4.44 4.43a3 3 0 1 1-1.42 1.42L29.8 5.2a5 5 0 0 1-5.52 0l-4.43 4.44a3 3 0 1 1-1.41-1.42l4.43-4.43a5 5 0 0 1-.72-3.8zm0 52c.13-.6.37-1.19.72-1.72l-4.43-4.43a3 3 0 1 1 1.41-1.41l4.43 4.43a5 5 0 0 1 5.52 0l4.43-4.43a3 3 0 1 1 1.42 1.41l-4.44 4.43c.36.53.6 1.12.72 1.72h-9.78zm9.75-24a5 5 0 0 1-3.9 3.9v6.27a3 3 0 1 1-2 0V31.9a5 5 0 0 1-3.9-3.9h-6.27a3 3 0 1 1 0-2h6.27a5 5 0 0 1 3.9-3.9v-6.27a3 3 0 1 1 2 0v6.27a5 5 0 0 1 3.9 3.9h6.27a3 3 0 1 1 0 2H31.9z'%3E%3C/path%3E%3C/svg%3E");
  background-size: 52px 52px; /* tamaño del patrón */
  background-repeat: repeat; /* asegura que se repita */
  color: #333;
  font-size: 20px;
}

/* Encabezado con degradado cálido */
header {
  background: linear-gradient(to right, 
    #0e3a69,   /* Azul oscuro */
    #1d446e,   /* azul suave */
    #285f9a,   /* azul tipo cielo */
    #1d446e,   /* azul suave */
    #0e3a69    /* Azul oscuro */
  );
  color: white;
  padding: 20px;
  text-align: center;
}

/* Título centrado */
header h1 {
  margin: 0;
  font-size: 2em;
}

/* Navegación */
nav ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

nav a:hover {
  text-decoration: underline;
}

/* Sección de bienvenida */
.intro {
  padding: 40px;
  max-width: 800px;
  margin: auto;
  text-align: center;
}

/* Sección de video de presentación */
.video-container {
  max-width: 800px;
  margin: 30px auto;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0);
  border-radius: 8px;
  overflow: hidden;
}

.video-container iframe {
  width: 100%;
  height: 400px;
  border: none;
}


/*PARTICIPACIONES*/
.participaciones {
  max-width: 1000px;
  margin: 50px auto;
  padding: 0 20px;
}

.participaciones h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.8em;
  color: #2f3e4e;
}

.card {
  display: flex;
  flex-wrap: wrap;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin-bottom: 30px;
  overflow: hidden;
}

.card img {
  width: 100%;
  max-width: 300px;
  object-fit: cover;
}

.card-content {
  flex: 1;
  padding: 20px;
}

.card-content h3 {
  margin-top: 0;
  color: #4a5a6a;
}

.card-content p {
  margin: 10px 0;
  line-height: 1.5;
}

.card-content a {
  display: inline-block;
  margin-top: 10px;
  color: #2f3e4e;
  font-weight: bold;
  text-decoration: none;
}

.card-content a:hover {
  text-decoration: underline;
}

/* Adaptación móvil */
@media (max-width: 600px) {
  .card {
    flex-direction: column;
    align-items: center;
  }

  .card img {
    max-width: 100%;
  }

  .card-content {
    text-align: center;
  }
}

/*CONTACTO*/
.formulario-contacto {
  max-width: 600px;
  margin: 40px auto;
  padding: 0 20px;
}

form {
  display: flex;
  flex-direction: column;
}

label {
  margin-top: 15px;
  font-weight: bold;
  color: #2f3e4e;
}

input, textarea {
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: 'Georgia', serif;
  font-size: 1em;
}

button {
  margin-top: 20px;
  padding: 10px;
  background-color: #4a5a6a;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

button:hover {
  background-color: #2f3e4e;
}

/*BLOG*/
.blog-entrada {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  background-color: #fff;
  border-left: 6px solid #4a5a6a;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border-radius: 6px;
}

.blog-entrada h3 {
  margin-top: 0;
  color: #2f3e4e;
}

.blog-entrada blockquote {
  font-style: italic;
  color: #555;
  border-left: 4px solid #a3a9ae;
  padding-left: 15px;
  margin: 10px 0;
}

/*VIDEOS*/
.galeria-videos {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

.video-card {
  margin-bottom: 40px;
  background-color: #fff;
  border-left: 6px solid #4a5a6a;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 20px;
}

.video-card h3 {
  margin-top: 0;
  color: #2f3e4e;
}

.video-container iframe {
  width: 100%;
  height: 400px;
  border: none;
}

@media (max-width: 600px) {
  .video-container iframe {
    height: 250px;
  }
}

/*Imagen del blog*/
.imagen-blog {
  text-align: center;
  margin-bottom: 20px;
}

.imagen-blog img {
  width: 200px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Pie de página */
footer {
  background-color: #ecf0f1;
  text-align: center;
  padding: 15px;
  font-size: 0.9em;
  color: #555;
}

/* Adaptación para pantallas pequeñas */
@media (max-width: 600px) {
  nav ul {
    flex-direction: column;
    align-items: center;
  }

  .video-container iframe {
    height: 250px;
  }
}

/* PUBLICACIONES */
.carousel {
  position: relative;
  width: 100%;
  max-width: 300px;
  height: 200px;
  overflow: hidden;
  border-radius: 8px;
}

.carousel img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.carousel img.active {
  opacity: 1;
}

/* Redes sociales */
.redes-contacto {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  background-color: #fff;
  border-left: 6px solid #4a5a6a;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.redes-contacto h3 {
  margin-top: 0;
  color: #2f3e4e;
  font-size: 1.4em;
  text-align: center;
}

.redes-contacto ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.redes-contacto li a {
  display: inline-block;
  padding: 10px 16px;
  background-color: #4a5a6a;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.redes-contacto li a:hover {
  background-color: #2f3e4e;
}

/* Foro privado */
.foro-contacto {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  background-color: #f4f6f8;
  border-left: 6px solid #a3a9ae;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  text-align: center;
}

.foro-contacto h3 {
  margin-top: 0;
  color: #2f3e4e;
  font-size: 1.4em;
}

.foro-contacto p {
  margin: 15px 0;
  line-height: 1.6;
  color: #4a5a6a;
}

.foro-contacto a {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 18px;
  background-color: #4a5a6a;
  color: white;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.foro-contacto a:hover {
  background-color: #2f3e4e;
}

/* Perfil Académico */
.perfil-academico {
  max-width: 900px;
  margin: 50px auto;
  padding: 20px;
  background-color: #fff;
  border-left: 6px solid #4a5a6a;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.perfil-academico h2 {
  text-align: center;
  color: #2f3e4e;
  font-size: 1.8em;
  margin-bottom: 30px;
}

/* Acordeón */
.acordeon button.acordeon-titulo {
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  font-size: 1.1em;
  background-color: #4a5a6a;
  color: white;
  border: none;
  border-radius: 6px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.acordeon button.acordeon-titulo:hover {
  background-color: #2f3e4e;
}

.acordeon-contenido {
  display: none;
  padding: 15px 20px;
  background-color: #f4f6f8;
  border-radius: 6px;
  margin-bottom: 20px;
  color: #4a5a6a;
}

.acordeon-contenido ul,
.acordeon-contenido ol {
  padding-left: 20px;
  line-height: 1.6;
  margin: 0;
}

.acordeon-contenido li {
  margin-bottom: 8px;
}
/*Imagen de perfil*/

.imagen-perfil {
  text-align: center;
  margin-bottom: 30px;
}

.imagen-perfil img {
  width: 350px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.perfil-intro {
  text-align: center;
  margin: 30px auto;
  max-width: 700px;
  padding: 10px 20px;
  color: #4a5a6a;
  font-size: 1.1em;
}

.boton-perfil {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #4a5a6a;
  color: white;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.boton-perfil:hover {
  background-color: #2f3e4e;
}

/* MEMORIA GRÁFICA EN PERFIL */
.grid-fotos {
  column-count: 4;
  column-gap: 15px;
  max-width: 1000px;
  margin: auto;
}

.grid-fotos img {
  width: 100%;
  margin-bottom: 15px;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.grid-fotos img:hover {
  transform: scale(1.03);
}

/* Adaptación móvil */
@media (max-width: 800px) {
  .grid-fotos {
    column-count: 2;
  }
}

@media (max-width: 500px) {
  .grid-fotos {
    column-count: 1;
  }
}
.galeria-grid {
  max-width: 1000px;
  margin: 50px auto;
  padding: 20px;
  background-color: #fff;
  border-left: 6px solid #4a5a6a;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  text-align: center;
}

.galeria-grid h3 {
  font-size: 1.6em;
  color: #2f3e4e;
  margin-bottom: 30px;
  text-align: center;
}

/*CONSTANCIAS*/
.carrusel-constancias {
  max-width: 1000px;
  margin: 60px auto;
  padding: 20px;
  background-color: #fff;
  border-left: 6px solid #4a5a6a;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  text-align: center;
}

.carrusel-constancias h3 {
  font-size: 1.6em;
  color: #2f3e4e;
  margin-bottom: 30px;
}

.carrusel-wrapper {
  position: relative;
  overflow: hidden;
}

.carrusel-track {
  display: flex;
  transition: transform 0.5s ease;
  gap: 20px;
}

.constancia-card {
  min-width: 300px;
  background-color: #f4f6f8;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  padding: 10px;
  text-align: center;
}

.constancia-card img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 10px;
}

.constancia-card p {
  font-size: 0.95em;
  color: #4a5a6a;
}

.carrusel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #4a5a6a;
  color: white;
  border: none;
  font-size: 1.5em;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 1;
}

.carrusel-btn.prev {
  left: 10px;
}

.carrusel-btn.next {
  right: 10px;
}

@media (max-width: 600px) {
  .constancia-card {
    min-width: 250px;
  }
}

/* Lightbox para constancias */
.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 20px;
}

.lightbox-img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(255,255,255,0.2);
}

.lightbox-caption {
  color: #fff;
  margin-top: 15px;
  font-size: 1em;
  text-align: center;
  max-width: 800px;
}

.cerrar {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2em;
  color: #fff;
  cursor: pointer;
}

/*SECCION DE LIBROS*/

.galeria-libros {
  max-width: 1000px;
  margin: 60px auto;
  padding: 20px;
  background-color: #fff;
  border-left: 6px solid #4a5a6a;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  text-align: center;
}

.galeria-libros h3 {
  font-size: 1.6em;
  color: #2f3e4e;
  margin-bottom: 30px;
}

.grid-libros {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.grid-libros img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.grid-libros img:hover {
  transform: scale(1.03);
}

@media (max-width: 800px) {
  .grid-libros {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .grid-libros {
    grid-template-columns: 1fr;
  }
}

/* Lightbox para libros */
.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 20px;
}

.lightbox-img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(255,255,255,0.2);
}

.cerrar {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2em;
  color: #fff;
  cursor: pointer;
}

/*BOTONES DE FILTRAR EN PARTICIPACIONES*/
.categorias {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px auto 40px;
  width: 100%;
  text-align: center;
}

.categorias button {
  padding: 10px 20px;
  border: none;
  background-color: #2c3e50;
  color: white;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.categorias button:hover {
  background-color: #34495e;
}