* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f4f5f7;
    color: #252832;
}

.aplicacion {
    width: 950px;
    max-width: 96%;
    height: 90vh;
    margin: 5vh auto;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.09);
}

.encabezado {
    min-height: 92px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 3px solid #c3651e;
}

.marca {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-ai {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: #c3651e;
    color: #ffffff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marca h1 {
    margin: 0;
    font-size: 24px;
}

.marca p {
    margin: 4px 0 0;
    font-size: 13px;
    color: #6f6f70;
}

.estado {
    padding: 8px 13px;
    border-radius: 20px;
    background: #f6f7f8;
    color: #555;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.punto {
    width: 8px;
    height: 8px;
    background: #35a853;
    border-radius: 50%;
}

.chat {
    flex: 1;
    overflow-y: auto;
    padding: 25px 30px;
}

.mensaje {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.mensaje.usuario {
    flex-direction: row-reverse;
}

.avatar {
    min-width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f6e7dd;
    color: #c3651e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

.usuario .avatar {
    background: #252832;
    color: white;
}

.burbuja {
    max-width: 72%;
}

.autor {
    font-size: 11px;
    color: #6f6f70;
    margin-bottom: 4px;
    font-weight: 600;
}

.usuario .autor {
    text-align: right;
}

.contenido {
    background: #f5f6f7;
    border-radius: 12px;
    padding: 13px 15px;
    line-height: 1.5;
    font-size: 14px;
    white-space: pre-wrap;
}

.usuario .contenido {
    background: #fff0e6;
}

.sugerencias {
    display: flex;
    gap: 8px;
    padding: 8px 20px;
    overflow-x: auto;
}

.sugerencias button {
    border: 1px solid #e3e4e6;
    background: #ffffff;
    border-radius: 20px;
    padding: 8px 13px;
    cursor: pointer;
    color: #555;
    white-space: nowrap;
}

.sugerencias button:hover {
    border-color: #c3651e;
    color: #c3651e;
}

.entrada {
    min-height: 82px;
    padding: 14px 18px;
    display: flex;
    gap: 10px;
    border-top: 1px solid #e5e7eb;
    align-items: center;
}

.entrada textarea {
    flex: 1;
    resize: none;
    border: 1px solid #d7d9dd;
    border-radius: 10px;
    padding: 13px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

.entrada textarea:focus {
    border-color: #c3651e;
}

.entrada button {
    height: 46px;
    padding: 0 22px;
    border: none;
    border-radius: 9px;
    background: #c3651e;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
}

.entrada button:hover {
    background: #aa5519;
}

.entrada button:disabled {
    opacity: 0.6;
    cursor: default;
}

.estado-error .punto {
    background: #c9362b;
}

.solo-lector {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
