/* NANOIA de Luis · línea visual luminosa de Midnight, botones grandes
   estilo iPhone, contraste alto (Nano es corto de vista). */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #faf7f2; color: #1c1a17; font-size: 18px; line-height: 1.45;
}
button { font: inherit; cursor: pointer; }
input {
  font: inherit; width: 100%; padding: 14px 16px; margin: 6px 0 12px;
  border: 2px solid #c9bfa8; border-radius: 14px; background: #fff; color: #1c1a17;
}
input:focus { outline: 3px solid #b08d3c; outline-offset: 1px; }
label { font-weight: 600; }

.btn-grande {
  width: 100%; padding: 16px; border: 0; border-radius: 16px;
  background: #1c1a17; color: #f5d67b; font-weight: 700; font-size: 19px;
}
.btn-grande:active { transform: scale(.99); }
.btn-suave {
  padding: 10px 14px; border: 2px solid #c9bfa8; border-radius: 12px;
  background: #fff; color: #1c1a17; font-weight: 600;
}
.msg { min-height: 1.4em; color: #8a2f23; font-weight: 600; }

/* ---------- ingreso ---------- */
.login { max-width: 430px; margin: 0 auto; padding: 28px 20px 40px; text-align: center; }
.login-foto {
  width: 150px; height: 150px; object-fit: cover; object-position: top;
  border-radius: 50%; border: 4px solid #b08d3c; background: #fff;
}
.login h1 { margin: 14px 0 2px; font-size: 34px; letter-spacing: 2px; }
.login .sub { margin: 0 0 22px; color: #6b6252; font-weight: 600; }
.login label { display: block; text-align: left; }
.login .pie { margin-top: 28px; font-size: 13px; color: #8d8474; }

/* ---------- app ---------- */
.app { display: flex; flex-direction: column; height: 100dvh; max-width: 760px; margin: 0 auto; }
.franja {
  flex: 0 0 auto; display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; background: #fff; border-bottom: 2px solid #e7ddc8;
}
.circulo {
  position: relative; width: 104px; height: 104px; flex: 0 0 auto;
  border-radius: 50%; overflow: hidden; border: 3px solid #b08d3c; background: #fff;
}
.circulo img, .circulo video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top;
}
.circulo video { opacity: 0; transition: opacity .4s; }
.app.viva .circulo video { opacity: 1; }
.franja-txt { flex: 1 1 auto; min-width: 0; }
.franja-txt .nombre { font-size: 24px; font-weight: 800; letter-spacing: 1px; }
.franja-txt .estado { color: #6b6252; font-weight: 600; font-size: 15px; }
.franja-btns { display: flex; flex-direction: column; gap: 8px; }
.btn-redondo {
  padding: 14px 18px; border: 0; border-radius: 999px;
  background: #b08d3c; color: #fff; font-weight: 800; font-size: 17px;
}
.btn-redondo.cortando { background: #8a2f23; }

.chat { flex: 1 1 auto; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.burbuja { max-width: 86%; padding: 12px 14px; border-radius: 18px; white-space: pre-wrap; word-wrap: break-word; }
.burbuja.luis { align-self: flex-end; background: #1c1a17; color: #fff; border-bottom-right-radius: 6px; }
.burbuja.nanoia { align-self: flex-start; background: #fff; border: 2px solid #e7ddc8; border-bottom-left-radius: 6px; }

.barra { flex: 0 0 auto; display: flex; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 2px solid #e7ddc8; }
.barra input { margin: 0; flex: 1 1 auto; }
.barra .btn-enviar { width: auto; padding: 14px 22px; }
