/* ================= BOTÓN ÁUREA — PRESENCIA REAL ================= */

#aurea-button{
  position: fixed;
  right: 36px;
  bottom: 36px;

  width: 44px;
  height: 44px;
  border-radius: 50%;

  background: radial-gradient(
    circle at 30% 30%,
    rgba(255,255,255,.25),
    rgba(0,0,0,.85) 70%
  );

  border: 1px solid rgba(201,179,126,.6);

  color: #f7d774;
  font-size: 20px;
  font-family: "Cinzel", serif;
  font-weight: 700;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  box-shadow:
    0 14px 36px rgba(0,0,0,.8),
    inset 0 2px 4px rgba(255,255,255,.35),
    inset 0 -6px 12px rgba(0,0,0,.9);

  transition:
    transform .18s ease,
    box-shadow .18s ease,
    filter .18s ease;

  z-index: 99999;
}

/* HOVER REAL */
#aurea-button:hover{
  transform: translateY(-2px);
  box-shadow:
    0 22px 48px rgba(0,0,0,.95),
    0 0 18px rgba(201,179,126,.45),
    inset 0 2px 6px rgba(255,255,255,.45);
}

/* CLICK */
#aurea-button:active{
  transform: scale(.94);
}




/* ================= CHAT ================= */

#aurea-chat{
  position:fixed;
  right:24px;
  bottom:96px;
  width:400px;
  height:560px;
  background:#0b0b0c;
  border-radius:22px;
  box-shadow:0 40px 90px rgba(0,0,0,.85);
  display:flex;
  flex-direction:column;
  opacity:0;
  transform:translateY(20px);
  pointer-events:none;
  transition:.25s ease;
  z-index:99998;
}

#aurea-chat.open{
  opacity:1;
  transform:translateY(0);
  pointer-events:auto;
}

/* ================= HEADER ================= */

.aurea-header{
  display:flex;
  align-items:center;
  gap:16px;
  padding:18px;
  border-bottom:1px solid rgba(255,255,255,.06);
}

.aurea-avatar{
  width:64px;
  height:64px;
  border-radius:50%;
  overflow:hidden;
  flex-shrink:0;
  box-shadow:0 0 0 2px rgba(201,179,126,.8),0 10px 30px rgba(0,0,0,.8);
}

.aurea-avatar{
  background-image: url("/assets/images/aurea-avatar@2x.webp");
  background-size: cover;
  image-rendering: auto;
}


.aurea-name{
  color:#f7d774;
  font-size:18px;
  font-weight:600;
  font-family:"Cinzel",serif;
}

.aurea-subtitle{
  color:#ffffff;
  font-size:11px;
  opacity:.75;
  margin-top:2px;
  font-family:system-ui;
}

#aurea-close{
  margin-left:auto;
  font-size:20px;
  cursor:pointer;
  color:#888;
}

#aurea-close:hover{color:#f7d774}

/* ================= MENSAJES ================= */

.aurea-messages{
  flex:1;
  overflow-y:auto;
  padding:18px;
  display:flex;
  flex-direction:column;
  gap:16px;
}

.aurea-message{
  max-width:85%;
  padding:14px 16px;
  border-radius:16px;
  font-size:14px;
  line-height:1.55;
}

.aurea-message.aurea{
  background:rgba(255,255,255,.05);
  color:#eee;
}

/* ESPACIO VISUAL (clave) */
.aurea-spacer{
  height:24px;
}

/* ================= INPUT ================= */

#aurea-form{
  padding:16px 18px 20px;
  border-top:1px solid rgba(255,255,255,.06);
}

#aurea-input{
  width:100%;
  padding:12px 16px;
  border-radius:999px;
  background:#000;
  border:1px solid rgba(201,179,126,.35);
  color:#fff;
  font-size:14px;
}

#aurea-input:focus{
  outline:none;
  border-color:#f7d774;
}

/* ================= AVATAR ÁUREA (CUADRADO, MÁS BAJO) ================= */

.aurea-avatar{
  width: 112px;
  height: 112px;
  flex-shrink: 0;

  background-image: url("/assets/images/aurea-avatar.webp");
  background-size: cover;
  background-position: center 18%; /* ↓ BAJA LA CARA, NO CORTA CABEZA */

  border-radius: 14px; /* CUADRADO SUAVE */

  box-shadow:
    0 0 0 1px rgba(201,179,126,.55),
    0 10px 26px rgba(0,0,0,.85);
}


/* ================= MENSAJE INICIAL MÁS COMPACTO ================= */

.aurea-message.aurea{
  font-size: 12.2px;          /* ↓ MÁS PEQUEÑO */
  line-height: 1.35;          /* ↓ MENOS AIRE */
  padding: 12px 14px;
  margin-top: 6px;

  background: linear-gradient(
    to bottom,
    rgba(255,255,255,.07),
    rgba(255,255,255,.03)
  );

  border-radius: 16px;

  box-shadow:
    0 6px 18px rgba(0,0,0,.55),
    inset 0 0 0 1px rgba(255,255,255,.06);
}

.aurea-message.aurea strong{
  font-size: 12.6px;
  font-weight: 600;
}

#aurea-button.hidden{
  opacity: 0;
  pointer-events: none;
  transform: scale(.85);
}

.aurea-avatar{
  filter: contrast(1.05) saturate(1.05);
}

#aurea-button{
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  cursor: pointer;
  z-index: 9999;
}
