.article {
	width: 100%;
	max-width: 50em;
	margin: 0 auto; 
	padding: 1em;
	counter-reset: figures;
}

.article h2 {
	margin: 1em 0;
	font-size: 2em;
	border-bottom: 3px solid #2ca0f5;
	padding-bottom: .3em;
	color: #2ca0f5;
}

.article p {
	margin-bottom: 1em;
	font-size: 1.1em;
	line-height: 1.6;
	text-align: justify;
}

.article h2 + p,
.article h2 + figure + p {
	text-indent: 1em;
}

.article p:first-of-type:first-line {
	font-weight: 700;
}

.figure {
	padding: 0.9em;
	border: 3px solid #2ca0f5;
	background: #fff;
	margin: 0 auto 1em;
}

.figure img {
	margin: 0 auto;
	display: block;
	max-width: 100%;
}

.figure figcaption {
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 2px;
	font-size: 0.8em;
	padding: .5em;
	text-align: center;
	color: #fff;
	background: #2ca0f5;
	counter-increment: figures;
}

.figure figcaption:before {
	content: 'Fig. ' counter(figures) ' - ';
}

.figure-left {
	float: left;
	margin: 0 1.5em .5em 0;
	width: -webkit-min-content;
	width: -moz-min-content;
	width: min-content;
}

.figure-right {
	float: right;
	margin: 0 0 .5em 1.5em;
	width: -webkit-min-content;
	width: -moz-min-content;
	width: min-content;
}

.figure-right img,
.figure-left img {
	max-width: 300px;
}

@media (max-width: 767px) {
	.figure-left,
	.figure-right {
		float: none;
		margin: 0 0 1em 0;
		width: 100%;
	}

	.figure img {
		max-width: 100%;
	}
}

.icono-ampliado {
  width: 85px;
  height: 85px;
  border-radius: 20%;
  object-fit: cover;
  /* position: absolute; */
  top: 100px; /* Ajusta la posición vertical */
  left: 50%;
  transform: translateX(-50%); /* Centra el icono horizontalmente */
}

.contenedor {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 5px;
  /* Agrega un margen inferior negativo si es necesario */
  margin-bottom: -5px;
}

.icono {
  margin-left: 10px;
  border-radius: 30%;
}

/* Estilos para el footer */
footer {
  background-color: #333; /* Color de fondo del footer */
  color: #fff; /* Color de texto */
  padding: 20px 0; /* Espaciado vertical */
  font-size: 14px; /* Tamaño de fuente */
  text-align: center; /* Centrar el texto */
}

.footer-content {
  display: flex; /* Diseño flexible */
  justify-content: center; /* Centrar horizontalmente */
  align-items: center; /* Alinear verticalmente */
}

.footer-content a {
  color: #fff; /* Color de enlace */
  text-decoration: none; /* Eliminar subrayado */
  margin-right: 20px; /* Espacio entre enlace y copyright */
}

.iframe-container {
  position: relative;
  padding-bottom: 56.25%; /* Proporción 16:9 (ajusta según tu video) */
  height: 0;
}

.iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Estilos para el contenedor principal */
.header-main {
  display: flex;
  flex-direction: column; /* stacked on smaller screens */
  align-items: center;
  width: 100%; /* ensures full width on all screen sizes */
  margin-bottom: 20px;
}

/* Estilos para las imágenes */
.header-main img {
  max-width: 150px;
  height: auto;
  margin: 10px; /* space around images */
}

/* Estilos para el contenedor del título */
.contenedor {
  text-align: center;
}

/* Media query para pantallas más pequeñas (móviles) */
@media (max-width: 768px) {
  .header-main {
    flex-direction: column; /* stack elements vertically */
  }
}