html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: #f8f7ed;
    font-family: Arial, sans-serif;
}

/* Contenedor principal */
.mensaje {
    position: relative;
    width: 90%;
    max-width: 100vh;
    pointer-events: none;
    aspect-ratio: 1/1; /* mantiene proporciones cuadradas */
}

/* Capa de iconos */
.iconos {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
    top: 0;
    left: 0;
}

/* Iconos animados */
.iconos > img {
    position: absolute;
    width: 10%;
    min-width: 35px;
    max-width: 80px;
    animation: girito 0.8s ease-in-out infinite alternate;
    transition: transform 0.3s;
}

/* Animación de oscilación */
@keyframes girito {
    from { transform: rotate(-10deg); }
    to   { transform: rotate(10deg); }
}

/* Patrón alternado para más vida */
.iconos > img:nth-child(2n) { animation-delay: 0.2s; }
.iconos > img:nth-child(3n) { animation-delay: 0.4s; }

/* Ubicación relativa en porcentaje */
.estrella   {top: 5%;   left: calc(50% - 40px);}
.cuerno     {top: 25%;  right: 5%;  }
.caliz      {top: 75%;  right: 5%;  }
.laureles   {top: 75%;  left: 5%;   }
.pergamino  {top: 25%;  left: 5%;   }

/* Responsividad */
@media (max-width: 768px) {
    .iconos > img {
        width: 12%;
    }
}

@media (max-width: 480px) {
    .iconos > img {
        width: 15%;
    }
}
