* {
	box-sizing: border-box;
  }
  
  body {
	height: 100vh;
	margin: 0;
	font-family: Arial, sans-serif;
  }
  
  .pregunta {
	margin: 10px;
	max-width: 500px;
	border: 1px solid gray;
	border-radius: 10px;
	padding: 1rem;
	transition: box-shadow 0.3s, transform 0.3s;
	margin-top: 2.5%;
  }
  
  .pregunta:hover {
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	transform: scale(1.02);
  }
  
  .pregunta_encabezado h3 {
	font-size: 1.5rem;
	margin: 0;
	cursor: pointer;
	transition: color 0.3s;
  }
  
  .pregunta_encabezado h3:hover {
	color: #007BFF;
  }
  
  .respuesta {
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	transition: max-height 0.5s ease, opacity 0.5s ease, padding 0.5s ease;
	padding: 0 1rem;
  }
  
  .respuesta.activo {
	max-height: 500px; /* Adjusted for a smoother transition */
	opacity: 1;
	padding: 1rem;
  }
  