body {
    font-family: sans-serif;
    background-color: #e6f2ff; /* Era rosa, ahora es azul claro */
    margin: 20px;
    background-image: url('https://files.cloudkuimages.guru/images/4ff6c0c41227.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

h1 {
    color: #fff; /* Era negro, ahora es blanco */
}

/* Estilos para la pantalla de carga */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://files.cloudkuimages.guru/images/4ff6c0c41227.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 1s ease-out;
}

.loader {
    border: 6px solid rgba(255, 255, 255, 0.3); /* Era negro, ahora es blanco */
    border-top: 6px solid #fff; /* Era negro, ahora es blanco */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-text {
    display: flex;
    font-size: 2em;
    color: #fff; /* Era negro, ahora es blanco */
    letter-spacing: 2px;
}

.loader-text span {
    display: inline-block;
    animation: snake 1.5s ease-in-out infinite;
    animation-delay: calc(0.1s * var(--i));
}

@keyframes snake {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Estilos para el panel superior */
.top-panel {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    max-width: 400px;
    background-color: rgba(0, 0, 0, 0.5); /* Era blanco, ahora es negro */
    padding: 20px;
    text-align: center;
    cursor: grab;
    z-index: 1000;
    box-shadow: 0 0 15px 5px blue; /* Era rosa, ahora es azul */
    color: white; /* Era negro, ahora es blanco */
    border-radius: 20px;
    transition: max-height 0.5s ease;
}

.top-panel.dragging {
    cursor: grabbing;
}

/* Estilos para la imagen circular */
.circular-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 10px;
    position: relative;
    box-shadow: 0 0 10px blue; /* Era rosa, ahora es azul */
    animation: rotate 20s linear infinite;
}

.circular-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Animación de rotación */
@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Estilos para el texto */
.panel-text {
    font-size: 1.5em;
    color: white; /* Era negro, ahora es blanco */
}

/* Estilos para la descripción en texto rosa */
.button-description {
    color: blue; /* Era rosa, ahora es azul */
    font-size: 0.9em;
    margin-top: 5px;
}

/* Estilos para el botón de acción genérico */
.action-button {
    display: block;
    padding: 10px 20px;
    margin-top: 10px;
    background-color: rgba(0, 0, 0, 0.5); /* Era blanco, ahora es negro */
    color: white; /* Era negro, ahora es blanco */
    text-decoration: none;
    border-radius: 20px;
    font-weight: bold;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.action-button:hover {
    transform: scale(1.05);
    background-color: rgba(0, 0, 0, 0.7); /* Era blanco, ahora es negro */
}

/* Estilos para los nuevos botones desplegables */
.dropdown-container {
    display: flex;
    flex-direction: column;
    margin-top: 15px;
}

.dropdown-button {
    padding: 10px 20px;
    margin-bottom: 5px;
    border-radius: 20px;
    border: none;
    background-color: blue; /* Era rosa, ahora es azul */
    color: white; /* Era blanco, ahora es negro */
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.dropdown-button.active {
    background-color: #99c8ff; /* Era un rosa más oscuro, ahora es un azul más oscuro */
}

.child-buttons {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
    
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 5px;
    padding-left: 15px;
}

.child-buttons.open {
    max-height: 500px;
}

/* Estilos para el botón de audio */
.audio-button {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid white; /* Era negro, ahora es blanco */
    background-color: rgba(255, 255, 255, 0.2); /* Era negro, ahora es blanco */
    color: white; /* Era negro, ahora es blanco */
    font-size: 16px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.audio-button:hover {
    background-color: rgba(255, 255, 255, 0.4); /* Era negro, ahora es blanco */
    transform: scale(1.1);
}
