/* Estilo general */
body {
  margin: 0;
  background-color: black;
  font-family: 'Georgia', serif;
  color: white;
  overflow-x: hidden; /* Evita scroll horizontal */
}

/* Botón volver */
.volver {
  position: absolute;
  top: 15px;
  left: 20px;
  color: white;
  text-decoration: underline;
  font-size: 14px;
  z-index: 2;
}

/* Contenedor principal */
.contenedor-avatar {
  display: flex;
  height: 100vh;
  background-color: black;
}

/* Columna izquierda */
.seccion-izquierda {
  flex: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px;
  box-sizing: border-box;
  gap: 30px;
}

/* Fila superior: hab 1 + hab 2 */
.fila-superior {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 40px;
}

/* Fila inferior: texto + hab 3 */
.fila-inferior {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 150px;
}

/* Imagen grande horizontal: Habitación 1 */
.img-grande {
  width: 650px;
  height: 330px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}

/* Imágenes verticales: Habitación 2 y 3 */
.card-img {
  width: 220px;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* Texto de descripción */
.descripcion-avatar {
  flex: 1;
  font-size: 14px;
  text-align: left;
  line-height: 1.6;
  color: white;
  margin: 0;
  max-width: 450px;
  padding-left: 90px;
  margin-top: 80px;
}

/* Columna derecha: imagen completa */
.imagen-avatar {
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 500px; /* evita que sea más ancha de lo deseado */
  max-height: 100vh;
  overflow: hidden;
  flex-shrink: 0; /* evita que colapse en flex */
}

.imagen-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Responsive: móviles y pantallas pequeñas */
@media (max-width: 1024px) {
  .contenedor-avatar {
    flex-direction: column;
    height: auto;
  }

  .imagen-avatar {
    width: 100%;
    max-width: none;
    aspect-ratio: auto;
    height: auto;
    margin-top: 30px;
  }

  .imagen-avatar img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .fila-superior,
  .fila-inferior {
    flex-direction: column;
    gap: 20px;
  }

  .descripcion-avatar {
    padding-left: 0;
    margin-top: 0;
    max-width: 100%;
  }

  .img-grande {
    width: 100%;
    height: auto;
  }

  .card-img {
    width: 100%;
    height: auto;
  }

  .seccion-izquierda {
    padding: 20px;
    gap: 20px;
  }
}
