/* Header existente (asegúrate de que tenga una altura definida) */
.main-header {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 6px 7px;
    display: flex;
    align-items: center;
    position: relative;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ... (El resto de los estilos del header se mantienen) ... */


.hero-section {
    position: relative;
    width: 100%;
    max-width: 780px;  /* Ancho máximo fijo */
    height: 250px;   /* Altura fija */
    margin: 0 auto;  /* Centrado */
    overflow: hidden;
    display: flex; 
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: max-height 0.5s ease-in-out;
}

.hero-section.hidden {
    max-height: 0; /* Se esconde */
}


#musicalCanvas {
    width: 100%;
    height: 100%;
    display: block; 
    z-index: 1;
}

.toggle-button {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background-color: #ffc400;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 16px;
    line-height: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}
.toggle-button.rotate {
    transform: translateX(-50%) rotate(180deg); /* Gira flecha */
}