:root {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --accent-blue: #3b82f6;
    --accent-green: #10b981;
    --accent-red: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 480px;
}

.card {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    text-align: center;
    border: 1px solid #334155;
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 8px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

select {
    width: 100%;
    padding: 12px 16px;
    background-color: #0f172a;
    border: 1px solid #475569;
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1rem;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
}

select:focus {
    border-color: var(--accent-blue);
}

.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.1s, opacity 0.2s;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--accent-blue);
    color: white;
}

.btn-success {
    background-color: var(--accent-green);
    color: white;
}

.btn-danger {
    background-color: var(--accent-red);
    color: white;
}

.hidden {
    display: none !important;
}

/* Interfaz de conversación */
.status-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}

.pulse-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #f59e0b; /* Naranja buscando */
    animation: pulse 1.5s infinite;
}

.pulse-indicator.connected {
    background-color: var(--accent-green);
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.audio-visualizer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    height: 60px;
    margin-bottom: 25px;
}

.wave-bar {
    width: 6px;
    height: 15px;
    background-color: var(--accent-blue);
    border-radius: 3px;
    animation: quiet 1.2s ease-in-out infinite alternate;
}

/* Animación simulada de voz activa */
.audio-visualizer.active .wave-bar {
    animation: bounce 0.5s ease-in-out infinite alternate;
}

.audio-visualizer.active .wave-bar:nth-child(2) { animation-delay: 0.1s; }
.audio-visualizer.active .wave-bar:nth-child(3) { animation-delay: 0.2s; }
.audio-visualizer.active .wave-bar:nth-child(4) { animation-delay: 0.15s; }
.audio-visualizer.active .wave-bar:nth-child(5) { animation-delay: 0.3s; }

@keyframes quiet {
    0% { height: 5px; }
    100% { height: 15px; }
}

@keyframes bounce {
    0% { height: 8px; }
    100% { height: 50px; }
}

.chat-tip {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}