:root {
    /* Paleta de colores para el tema claro */
    --bg: #f4f5f7;       /* Fondo general gris claro */
    --bg2: #ffffff;      /* Fondo secundario blanco */
    --text: #1d1d1f;     /* Texto principal casi negro */
    --muted: #6e6e73;    /* Texto secundario gris */
    --muted2: #86868b;   /* Texto más claro */
    --brand1: #00A3FF;   /* Azul NÓVUA */
    --brand2: #8A2BE2;   /* Púrpura NÓVUA */
    --card: #ffffff;     /* Color de la tarjeta del chat */
    --stroke: #d2d2d7;   /* Bordes y líneas gris claro */
    --grad: linear-gradient(90deg, var(--brand1), var(--brand2));
}

html, body {
    height: 100%;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: transparent;
    color: var(--text);
    margin: 0;
    padding: 0;
}

#chat-container {
    width: 100%;
    height: 100%;
    background-color: var(--card);
    border: 0;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#chat-header {
    background-color: var(--bg2);
    padding: 0.9rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--stroke);
}

#chat-header h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    flex: 1;
}

.header-avatar {
    color: var(--brand1);
}

.close-btn {
    border: 0;
    background: #f5f5f7;
    border-radius: 10px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    cursor: pointer;
    color: #6e6e73;
}
.close-btn:hover {
    background: #ececf0;
    color: #1d1d1f;
}

#chat-messages {
    flex-grow: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    max-width: 85%;
}

.message-text {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    line-height: 1.5;
    font-size: 0.95rem;
}

.user-message {
    align-self: flex-end;
}

.user-message .message-text {
    background: var(--grad);
    color: #ffffff;
    border-bottom-right-radius: 4px;
}

.bot-message {
    align-self: flex-start;
}

.bot-message .message-text {
    background-color: #e5e5ea;
    color: var(--text);
    border-bottom-left-radius: 4px;
}

.bot-avatar {
    color: var(--brand1);
    margin-top: 0.5rem;
}

#chat-input-container {
    display: flex;
    padding: 1rem;
    border-top: 1px solid var(--stroke);
    gap: 0.5rem;
}

#chat-input {
    flex-grow: 1;
    border: 1px solid var(--stroke);
    background-color: var(--bg2);
    color: var(--text);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 1rem;
}

#chat-input::placeholder {
    color: var(--muted2);
}

#send-button {
    border: none;
    background-color: var(--brand1);
    color: white;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.choice-button, .form-button {
    display: block;
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    margin: 0.5rem 0;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    transition: transform 0.2s ease;
}

.choice-button {
    background-color: var(--bg2);
    color: var(--text);
    border: 1px solid var(--stroke);
}

.form-button {
    background: var(--grad);
    color: #ffffff;
    font-weight: 600;
}

.choice-button:hover, .form-button:hover {
    transform: translateY(-2px);
}

.contact-buttons-container {
    margin-top: 0.5rem;
}
