.historia__presentacion {
  display: flex;
  flex-direction: row;
  gap: clamp(1rem, 3dvw, 2rem);
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  height: clamp(480px, 65dvh, 720px);
}

.presentacion__video {
  flex: 2 1 480px;
  max-height: 100%;
}

.presentacion__video iframe {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/*ASIDE*/
/* Aside contenedor principal */
/* ASIDE */
.aside__presidentes {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border-radius: 0.75rem;
  background-color: #f9f9f9;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  /* Altura proporcional al video */
  flex: 1 1 480px;
  max-height: 100%;
  overflow: hidden;
}

/* Contenedor de scroll */
.contenedor__aside__presidentes {
  overflow-y: scroll;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding-right: 0.5rem; /* para scroll visible */
  border-top: 2px solid #1b2a4f;
}

/* Título del aside */
.aside__titulo {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  text-align: center;
  margin-bottom: 0.5rem;
  color: #1b2a4f;
  width: 100%;
}

/*Contenedor imagen*/
.contenedor__imagen-presidentes {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;

  border: 2px solid #1b2a4f;
  border-radius: 0.75rem;
  background: linear-gradient(180deg, #ffffff 0%, #e1ecff 40%, #113b8a 100%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #d0d0d0;
  /**/
  width: clamp(10rem, 15dvw, 25rem); /*width carta presidente*/
  height: auto;
  gap: 1rem;
}

.contenedor__imagen-presidentes:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

/* Contenedor fijo para la imagen */
.imagen__wrapper {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-bottom: 1px solid #ccc;
}

/* Imagen más grande visualmente */
.imagen__wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Información del presidente */
.contenedor__info__presidente {
  color: #ffffff;
  text-align: center;
  padding: 1rem;
  background-color: #113b8a;
  width: 100%;

  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
}

.contenedor__info__presidente h3 {
  margin: 0;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 600;
  line-height: 1.2;
}

/**/
/* Opcional: esconder scrollbar en WebKit */
.contenedor__aside__presidentes::-webkit-scrollbar {
  width: 0.5rem;
}
.contenedor__aside__presidentes::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 0.5rem;
}

/*child imagenes con cover */
.contenedor__imagen-presidentes:nth-child(2) img {
  object-fit: cover;
  object-position: center top;
  transform: scale(1.7) translateY(-15%);
  transform-origin: top center;
}

.contenedor__imagen-presidentes:nth-child(3) img {
  object-fit: cover;
  object-position: center;
  scale: 1.3;
}

.contenedor__imagen-presidentes:nth-child(6) img {
  object-fit: cover;
  object-position: center;
  scale: 1.3;
}

/*RESPONSIVE*/
/*agregar texto en article HTML*/

/*Agregar animacion al desplazarse*/

@media screen and (max-width: 1070px) {
  .historia__presentacion {
    height: auto;
  }
  .aside__presidentes {
    flex-wrap: wrap;
    max-height: none;
    width: 100%;
    overflow-x: scroll;
    gap: 0.3rem;
    align-items: flex-start;
  }
  .contenedor__aside__presidentes {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
    height: auto;
    padding-bottom: 1rem;
    width: max-content;
  }
  .contenedor__imagen-presidentes {
    width: clamp(12rem, 40vw, 20rem); /* más grandes en móviles */
    flex: 1 1 auto;
  }

  .imagen__wrapper {
    aspect-ratio: 3 / 4;
  }
  .contenedor__info__presidente h3 {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
  }
}
