@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;600&display=swap');

:root {
    --bg-color: #f4f1ea;
    --text-color: #4a4a4a;
    --accent-color: #d4a373;
}

body {
    font-family: 'Lora', serif;
    background-color: var(--bg-color);
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.interface {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 90vh;
    width: 90%;
    max-width: 800px;
}

/* --- EL AVATAR --- */
.avatar-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

#vera-avatar {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    /* Ruta relativa a la imagen en el contenedor Nginx */
    background-image: url('avatar.png'); 
    background-size: cover;
    background-position: center top;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 8px solid white;
    transition: all 0.3s ease;
}

/* ESTADO: RESPIRANDO (IDLE) */
.avatar.idle {
    animation: breathing 6s ease-in-out infinite;
}
@keyframes breathing {
    0% { transform: scale(1) translateY(0); }
    50% { transform: scale(1.02) translateY(-5px); }
    100% { transform: scale(1) translateY(0); }
}

/* ESTADO: HABLANDO (TALKING) */
.avatar.talking {
    animation: talking 0.25s ease-in-out infinite alternate;
    filter: brightness(1.05);
}
@keyframes talking {
    0% { transform: scale(1); }
    100% { transform: scale(1.02) translateY(3px); }
}

/* ESTADO: ESCUCHANDO (LISTENING) */
.avatar.listening {
    border-color: var(--accent-color);
    transform: scale(1.05);
    filter: grayscale(20%);
}

/* CONTROLES */
.controls { text-align: center; margin-bottom: 20px; width: 100%; }
#status { font-size: 1.5rem; color: var(--text-color); margin-bottom: 20px; font-weight: 600; min-height: 1.8em; }
#mic-btn {
    background-color: white; color: var(--text-color); border: 2px solid var(--accent-color);
    padding: 15px 40px; font-size: 1.2rem; border-radius: 30px; cursor: pointer;
    font-family: 'Lora', serif; transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
#mic-btn:active { background-color: var(--accent-color); color: white; transform: translateY(2px); }
/* VOICE TOGGLE */
/* Contenedor de ajustes */
.settings-container {
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify_content: center;
    gap: 15px;
    font-size: 24px; /* Tamaño de los emojis */
}

/* El Interruptor (The Switch) - Caja */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

/* Ocultar el checkbox real */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* El deslizador (The Slider) */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc; /* Gris cuando está apagado (Mujer) */
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

/* Cuando está activado (Hombre) - Usamos tu color naranja */
input:checked + .slider {
    background-color: #d68c45; 
}

input:focus + .slider {
    box-shadow: 0 0 1px #d68c45;
}

/* Mover la bolita */
input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Hacemos que sea redondo */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}
