/* ============================= */
/* ESTILOS GENERALES */
/* ============================= */
body {
  margin: 0;
  font-family: Arial, sans-serif;
}

a {
  text-decoration: none;
}

/* ============================= */
/* CABECERA: ICONOS HORIZONTALES */
/* ============================= */
.mi-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 4px;
  background-color: #f5f5f5;
}

.mi-header .boton {
  display: inline-flex;
  align-items: center;
}

.mi-header .boton img {
  display: block;
  width: 32px;
  height: 32px;
}

.mi-header a.boton img {
  transition: transform 0.2s;
}

.mi-header a.boton:hover img {
  transform: scale(1.1);
}

/* ============================= */
/* CUERPO: IMAGEN IZQUIERDA, TEXTO DERECHA */
/* ============================= */
.cuerpo {
  display: flex;
  flex-direction: row; /* imagen izquierda, texto derecha */
  gap: 20px;
  align-items: flex-start;
  width: 100%;
  box-sizing: border-box;
}

.cuerpo .imagen-Container {
  flex: 0 0 300px; /* ancho fijo para la imagen */
}

.cuerpo .imagen-item {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.cuerpo .contenido {
  flex: 1;          /* ocupa todo el espacio restante */
  min-width: 0;     /* permite que el texto se ajuste */
  margin: 0;
  /* desactivar cualquier multicolumna heredada */
  column-count: unset !important;
  column-gap: 0 !important;
  columns: unset !important;
  column-width: unset !important;
}

/* ============================= */
/* PIE ACCESIBLE Y BOTON ESCUCHAR */
#pie-accesible {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
}

#boton-escuchar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  cursor: pointer;
  padding: 4px;
  margin: 0;
}

#boton-escuchar img {
  width: 32px;
  height: 32px;
  display: block;
}

/* ============================= */
/* DESPLEGABLES DE PAGINAS E IDIOMAS */
.paginas-lista, .idiomas-lista {
  display: none;
  position: absolute;
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 4px;
  z-index: 1000;
}

/* ============================= */
/* RESPONSIVE: MÓVIL */
/* ============================= */
@media (max-width: 640px) {
  .cuerpo {
    flex-direction: column;  /* apilar imagen y texto */
    align-items: center;
    gap: 1em;
  }

  .cuerpo .imagen-Container,
  .cuerpo .contenido {
    width: 100%;
    text-align: left;
  }

  .cuerpo .imagen-Container { flex: 0 0 auto; }

  .cuerpo .imagen-item {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  .mi-header {
    justify-content: center;
  }
}