/* ========================== */
/* Estilos página de perfil   */
/* ========================== */

.contenido {
  padding: clamp(1rem, 3vw, 3rem);
  margin-right: var(--ancho-barra);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Encabezado general */
.encabezado-seccion {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 85%;
}

.encabezado-seccion h1 {
  /*font-size: clamp(1.8rem, 4vw, 3rem);*/
  margin-bottom: 0.5rem;
}

/* ========================== */
/* SECCIONES BIOGRÁFICAS     */
/* ========================== */

.seccion-biografia {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 90%;
  margin-bottom: clamp(3rem, 5vw, 5rem);
  gap: 2rem;
  flex-wrap: wrap;
}

/* Columna izquierda: título + imagen centrada */
.columna-izquierda {
  flex: 1 1 250px;
  max-width: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center; /* centra verticalmente el bloque */
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.titulo-seccion {
  /*font-size: clamp(1.4rem, 3vw, 2.2rem);*/
  border-bottom: 2px solid var(--color-nav-hover);
  padding-bottom: 0.3rem;
}

.imagen-seccion img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 0.8rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Columna derecha: tarjetas */
.columna-derecha {
  flex: 3 1 700px;
  display: flex;
  justify-content: center;
}

.contenedor-tarjetas {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: flex-start;
  width: 100%;
  max-width: 85%;
}

/* Tarjeta */
.tarjeta {
  display: flex;
  align-items: center;
  background-color: var(--color-nav);
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  flex: 1 1 calc(33% - 1rem); /* máximo 3 por línea */
  min-width: 280px;
  max-width: 380px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tarjeta:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.tarjeta img {
  width: 40%;
  height: 100%;
  object-fit: cover;
}

.texto-tarjeta {
  padding: 1rem;
  flex: 1;
}

.texto-tarjeta h3 {
  /*font-size: clamp(1rem, 2vw, 1.4rem);*/
  margin-bottom: 0.4rem;
}

.texto-tarjeta p {
  /*font-size: clamp(0.9rem, 1.5vw, 1.1rem);*/
  color: var(--color-texto);
  line-height: 1.4;
}


/* ======= BARRA DE NAVEGACIÓN =======*/


/* ========================== */
/* Adaptación responsiva      */
/* ========================== */

/*
@media (max-width: 900px) {
  .seccion-biografia {
    flex-direction: column;
    align-items: center;
  }

  .columna-izquierda {
    max-width: 100%;
  }

  .columna-derecha {
    width: 100%;
  }

  .tarjeta {
    flex-direction: column;
    width: 100%;
    max-width: 450px;
  }

  .tarjeta img {
    width: 100%;
    height: 180px;
  }
}
*/