:root {
  --color1: rgb(219, 144, 0.5);
  --color2: rgba(23, 180, 83, 0.877);
  --color3: rgba(11, 194, 211, 0.623);
  --fondo: #f2f2f2;
  --titulos: 33px;
  --margenes: 60px;
  --espacios: 10px;
  --espacios-contenido: 45px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img {
  vertical-align: top;
}

.body_PONENTES {
  font-family: Arial, sans-serif;
  text-align: center;
  padding: 20px;
  margin-top: 80px;
}

.ponentes {
  background-color: #ffd700;
}

h1 {
  color: #f2f2f2;
  font-size: 2em;
  margin-bottom: 20px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 20px;
}

.image-item {
  border-radius: 500px;
  position: relative;
}

.gallery img {
  width: 70%;
  height: auto;
  aspect-ratio: 1 / 1; /* mantiene forma cuadrada */
  object-fit: cover;
  cursor: pointer;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.1);
}

.caption {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
}

.body_title {
  font-size: 40px;
  font-weight: 300;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  overflow: auto;
  padding-top: 60px;
}

.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 700px;
  border-radius: 10px;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.bio {
  font-size: 16px;
}

.subtitle__info {
  font-size: 2.5em;
  margin-bottom: 0.5em;
  color: #57178b;
}

.subtitle__intro {
  font-size: 1.5em;
  margin-bottom: 1em;
  color: #333;
}

.subtitle__info_poenentes,
.subtitle__intro_ponentes {
  font-size: 1.8rem;
  color: #000;
  margin: 10px auto;
  padding: 0 10px;
  max-width: 100%;
  word-wrap: break-word;
  text-align: center;
}

.subtitle__info_poenentes {
  font-size: 2.5em;
  margin-bottom: 0.5em;
  color: #57178b;
}
.subtitle__info_CARDS {
  font-size: 2.5em;
  margin-bottom: 0.5em;
  color: #57178b;
}
.subtitle__intro_ponentes {
  font-size: 1.5em;
  margin-bottom: 1em;
  color: #302f2f;
}

.description,
.experience {
  font-size: 1em;
  line-height: 1.6;
  margin: 0 auto 2em;
  max-width: 800px;
  color: #444;
}

@media (max-width: 900px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 700px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .subtitle__info {
    font-size: 2em;
  }
  .subtitle__intro {
    font-size: 1.2em;
  }
  .description,
  .experience {
    font-size: 0.95em;
  }
}
