body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f0f3f8;
}

/* Contenedor responsive */
.contenedor {
  position: relative;
  width: min(90vw, 600px);
  aspect-ratio: 1 / 1;
}

/* Solo el hijo directo del contenedor ocupa todo el área */
.contenedor > div {
  position: absolute;
  inset: 0;
}

/* Cuadrado grande */
.grande{
  background-color: aqua;
  z-index: 1;
  overflow: hidden;
  height: auto;
}

.grande > a,
.pequeno > a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.grande img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pequeno img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Cuadrados pequeños */
.pequeno {
  position: absolute;
  width: 22%;
  aspect-ratio: 1 / 1;
  background-color: coral;
  z-index: 2;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  overflow: hidden;
}

/* Posiciones proporcionales */
.uno { top: 46%; left: 5%; }
.dos { top: 36%; right: 45%; }
.tres { bottom: 24%; left: 50%; }
.cuatro { bottom: 36%; right: 5%; }