body {
  background: #333;
  margin: 0;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
}

.escena {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --- ESTILOS DEL ÁRBOL --- */
.arbol {
  width: 65%;              /* El árbol se achica junto con la pantalla */
  max-width: 650px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;              /* Queda detrás de los regalos */
}

.estrella {
  color: #efb810;
  font-size: clamp(32px, 5vw, 65px);
  line-height: 1;
  margin-bottom: -10px;
  z-index: 4;
  text-shadow: 0 0 15px rgba(239, 184, 16, 0.7);
}

.copa {
  background: #1b6b34;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  box-shadow: inset 0 -15px 25px rgba(0, 0, 0, 0.25);
}

.copa-1 {
  width: 45%;
  aspect-ratio: 1 / 0.85;
  z-index: 3;
}

.copa-2 {
  width: 72%;
  aspect-ratio: 1 / 0.75;
  margin-top: -18%;        /* Superpone las ramas entre sí */
  z-index: 2;
}

.copa-3 {
  width: 100%;
  aspect-ratio: 1 / 0.65;
  margin-top: -22%;
  z-index: 1;
}

.tronco {
  width: 18%;
  aspect-ratio: 1 / 1.1;
  background: #5c3a21;
}

/* --- ESTILOS DE LOS REGALOS --- */
.regalos {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 2vw;
  margin-top: -8%;         /* Sube los regalos para que tapen el tronco y la base */
  position: relative;
  z-index: 10;             /* Asegura que queden frente al árbol */
}

.regalo {
  flex: 1;
  max-width: 360px;
  min-width: 0;
  cursor: pointer;
}

.caja, .tapa {
  background:
    -webkit-radial-gradient(white 10%, transparent 15.1%),
    -webkit-radial-gradient(white 7%, transparent 15.1%),
    #f8005f;
  background-position: 0 0, 25px 25px;
  background-size: 50px 50px;
  position: relative;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.caja {
  aspect-ratio: 400 / 250;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.tapa {
  aspect-ratio: 400 / 70;
  box-shadow: 1px 2px 3px rgba(0, 0, 0, 0.2);
  z-index: 1;
  background-color: #f8005f;
  top: 0;
  left: 0;
  transition: 
    top ease-out 0.5s,
    left ease-out 0.5s,
    transform ease-out 0.5s;
}

.caja span, .tapa span {
  position: absolute;
  display: block;
  background: rgba(245, 244, 243, 0.8);
  box-shadow: 1px 2px 3px rgba(0, 0, 0, 0.1);
}

.caja span:first-child {
  width: 100%;
  height: 24%;
  top: 32%;
}

.caja span:last-child, .tapa span {
  width: 15%;
  height: 100%;
  left: 42.5%;
}

.promo {
  color: white;
  font-family: Georgia, 'Times New Roman', Times, serif;
  text-align: center;
  position: relative;
  height: 0;
  top: 10px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
  transition: all ease-out 0.7s;
}

.promo p {
  font-size: clamp(10px, 1.8vw, 22px);
  margin: 0;
}

.promo h2 {
  font-size: clamp(14px, 2.6vw, 36px);
  margin: 0;
}

/* Efecto hover */
.regalo:hover .tapa {
  top: -100px;
  transform: rotateZ(10deg);
  left: 10px;
}

.regalo:hover .promo {
  top: -80px;
}
