﻿/* Reset básico y tipografía */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    user-select: none; /* Evitar que seleccione texto accidentalmente al tocar */
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #FFF9F0; /* Color claro cálido (crema) */
    color: #4A4A4A; /* Gris oscuro para máximo contraste, sin ser negro puro */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    height: 100dvh; /* Para navegadores móviles */
    overflow: hidden;
}

.app-container {
    width: 100%;
    max-width: 600px;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #FFFFFF;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Header */
.header { flex-shrink: 0;
    background-color: #FFB74D; /* Naranja cálido y suave */
    color: white;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(255, 183, 77, 0.3);
    z-index: 10;
}

.avatar {
    background: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    object-fit: cover;
}

.header h1 {
    font-size: 28px;
    font-weight: 700;
    flex-grow: 1;
}

.status {
    font-size: 14px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    background: #FFFFFF;
    color: #000000;
}

/* Chat Area */
.chat-area {
    flex-grow: 1;
    padding: 30px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: #FFF9F0;
}

.message {
    background: #FFFFFF;
    padding: 25px;
    border-radius: 20px;
    font-size: 20px; /* Tipografía gigante y sencilla */
    line-height: 1.3;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-left: 6px solid #FFB74D;
    animation: fadeIn 0.4s ease-out;
}

.abel-msg {
    border-left: none;
    border-right: 6px solid #4DB6AC;
    background-color: #E0F2F1; /* Celeste/Verde claro cálido */
    align-self: flex-end;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Interactive Area (Para botones gigantes de juegos/gym) */


.action-btn:active {
    transform: scale(0.96);
    box-shadow: 0 4px 10px rgba(255, 138, 101, 0.4);
}

.action-btn.secondary {
    background-color: #9E9E9E;
    box-shadow: 0 8px 20px rgba(158, 158, 158, 0.4);
}

/* Footer / Botón Microfono */
.footer-controls { flex-shrink: 0;
    padding: 15px;
    background-color: #FFFFFF;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
    z-index: 10;
}

.record-button {
    width: 100%;
    padding: 25px 20px;
    border-radius: 30px;
    border: none;
    background: linear-gradient(135deg, #FFB74D, #FF8A65);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(255, 138, 101, 0.4);
    cursor: pointer;
    transition: all 0.2s ease;
}

.record-button:active, .record-button.recording {
    transform: scale(0.95);
    background: linear-gradient(135deg, #FF8A65, #E64A19);
    box-shadow: 0 5px 15px rgba(230, 74, 25, 0.5);
}

.record-button .icon {
    font-size: 40px;
}

.record-button .text {
    font-size: 18px;
    font-weight: 700;
}

.recording-animation {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}


/* Quick Actions Plan B */
.quick-actions { flex-shrink: 0;
    display: flex;
    flex-direction: row;
    width: 100%;
    padding: 10px;
    gap: 10px;
    background-color: #FFF9F0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    z-index: 9;
}

.qa-btn {
    flex: 1;
    border: none;
    font-size: 16px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    border-radius: 20px;
    padding: 15px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}
.qa-gym { background-color: #4CAF50; } /* Verde */
.qa-jugar { background-color: #2196F3; } /* Azul */
.qa-rezar { background-color: #9C27B0; } /* Purpura */

.qa-btn:active {
    opacity: 0.8;
}

.interactive-area {
    padding: 10px 15px; /* Reduced padding */
    display: flex;
    flex-wrap: wrap; /* Allow wrapping */
    flex-direction: row; /* Row for wrapping */
    justify-content: center;
    gap: 10px;
    background-color: #FFF9F0;
    flex-shrink: 0;
}

.action-btn {
    flex: 1 1 45%; /* Flex grow/shrink, max 2 per row */
    padding: 15px 10px; /* Reduced padding */
    font-size: 18px; /* Reduced font size */
    font-weight: 700;
    border: none;
    border-radius: 15px;
    background-color: #FF8A65;
    color: white;
    box-shadow: 0 4px 10px rgba(255, 138, 101, 0.4);
    transition: transform 0.1s, box-shadow 0.1s;
    cursor: pointer;
    text-align: center;
    flex-shrink: 0;
}
