* { box-sizing: border-box; margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
body { background-color: #08080a; color: #f1f1f3; height: 100vh; overflow: hidden; display: flex; justify-content: center; align-items: center; }

/* Fondo borroso cuando sale el modal */
.app-container { width: 100%; height: 100%; display: flex; flex-direction: column; filter: blur(15px); pointer-events: none; transition: filter 0.4s ease; }
.app-container.active { filter: blur(0); pointer-events: all; }

/* Chat UI */
header { padding: 20px; background: rgba(18, 18, 22, 0.8); border-bottom: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; align-items: center; }
.chat-box { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 15px; max-width: 800px; margin: 0 auto; width: 100%; }
.message { padding: 12px 18px; border-radius: 12px; max-width: 70%; line-height: 1.5; font-size: 14px; }
.message.user { background: #26262e; align-self: flex-end; border: 1px solid rgba(255,255,255,0.1); }
.message.assistant { background: #121216; align-self: flex-start; border: 1px solid rgba(255,255,255,0.08); }
.input-area { padding: 20px; display: flex; justify-content: center; background: #08080a; }
.input-wrapper { display: flex; width: 100%; max-width: 800px; background: #16161c; border: 1px solid rgba(255,255,255,0.15); border-radius: 12px; padding: 8px 12px; gap: 10px; }
input[type="text"] { flex: 1; background: transparent; border: none; color: white; outline: none; font-size: 15px; }
button { background: white; color: black; border: none; padding: 8px 16px; border-radius: 8px; font-weight: 600; cursor: pointer; }

/* Estilo Tarjeta Glass NeoCorp */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(20px); display: flex; justify-content: center; align-items: center; z-index: 1000; transition: opacity 0.3s; }
.modal-overlay.hidden { opacity: 0; pointer-events: none; }
.glass-card { background: #121216; border: 1px solid rgba(255, 255, 255, 0.12); width: 420px; border-radius: 24px; padding: 32px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7); display: flex; flex-direction: column; gap: 20px; position: relative; }
.brand { font-weight: 700; font-size: 16px; letter-spacing: -0.5px; color: white; }
.modal-title { font-size: 28px; font-weight: 700; letter-spacing: -1px; color: white; }
.modal-sub { font-size: 14px; color: #9898a6; margin-top: -10px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 12px; color: #9898a6; font-weight: 500; }
.form-input { background: #1a1a22; border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; padding: 12px 14px; color: white; font-size: 14px; outline: none; width: 100%; }
.form-input:focus { border-color: rgba(255,255,255,0.4); }
.btn-primary { background: white; color: black; width: 100%; padding: 12px; border-radius: 10px; font-weight: 600; font-size: 14px; cursor: pointer; margin-top: 10px; border: none; }
.modal-footer { text-align: center; font-size: 13px; color: #9898a6; }
.modal-footer a { color: white; text-decoration: none; font-weight: 500; cursor: pointer; }