@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&family=Lato:wght@400;700&display=swap');

:root {
    --primary-color: #B8860B; /* Dorado */
    --secondary-color: #DAA520; /* Dorado más claro */
    --background-color: #121212; /* Negro muy oscuro */
    --card-background: rgba(255, 255, 255, 0.05); /* Fondo semitransparente oscuro */
    --border-color: #333; /* Gris oscuro para bordes */
    --text-color: #E0E0E0; /* Gris claro para texto */
    --highlight-color: #B8860B; /* Dorado para destacar */
    --shadow-color: rgba(0, 0, 0, 0.4);
    --record-button-color: #e74c3c; /* Rojo para el botón de grabar */
    --main-text-color: #000000; /* Color negro para el texto principal */
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    margin: 0;
    padding: 0; /* Aseguramos que el body no tenga padding */
    box-sizing: border-box;
    background-image: url('background.jpg'); 
    background-size: cover; 
    background-position: center center; 
    background-repeat: no-repeat; 
    background-attachment: fixed;
}

#introBanner {
    position: relative;
    width: 100vw;
    height: 100vh;
    background-image: url('1a.jpg'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 500px;
    margin-top: 0; /* Eliminamos el margen superior */
    padding-top: 25px; /* Agregamos un relleno superior en su lugar */
    margin-bottom: 25px;
}

.container {
    width: 100%;
    padding: 30px;
    background-color: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 8px 16px var(--shadow-color);
    text-align: center;
    border: none;
    backdrop-filter: blur(3px);
    margin-bottom: 25px;
}

h1, h2 {
    font-family: 'Dancing Script', cursive;
    color: var(--main-text-color);
    text-shadow: none;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 0;
}

#mainImage {
    width: 80%;
    max-width: 300px;
    height: 300px;
    background-image: url('tu_imagen.png'); 
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 25px;
    margin-bottom: 20px;
}

#recordButton {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--record-button-color);
    color: white;
    border: none;
    font-size: 2.5em;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
    box-shadow: 0 4px 8px var(--shadow-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#recordButton:hover {
    background-color: #c0392b;
}

#recordButton:active {
    transform: scale(0.95);
    background-color: #a92f23;
    box-shadow: 0 2px 4px var(--shadow-color);
}

#status {
    margin-top: 20px;
    font-weight: 600;
    color: var(--main-text-color);
    text-align: center;
}

.audio-list-container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    background-color: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 8px 16px var(--shadow-color);
    border: none;
    backdrop-filter: blur(3px);
}

.audio-list-container h2 {
    font-size: 1.8em;
    border-bottom: none;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: var(--main-text-color);
}

#audio-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.audio-message {
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--text-color);
}

audio {
    width: 100%;
    height: 35px;
    filter: invert(1);
}

@media (max-width: 600px) {
    #introBanner {
        height: 100vh;
    }
    .main-content {
        padding: 0;
    }
    .container, .audio-list-container {
        padding: 20px;
    }
    h1 {
        font-size: 2em;
    }
    #recordButton {
        width: 60px;
        height: 60px;
    }
}

/* ... (el resto de tu CSS) ... */

#recordButton.recording {
    background-color: green; /* Color verde al grabar */
}