/* Burbuja de chat flotante (mobile-first: hoja a pantalla completa en celular) */
.chat-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 20;
  min-height: 52px; padding: 0 22px;
  background: var(--navy); color: var(--white);
  border: 2px solid var(--gold); border-radius: 999px;
  font: 700 .95rem "Inter", sans-serif; cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}

.chat {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column;
  background: var(--white);
  height: 100dvh;
}
body.chat-abierto { overflow: hidden; }

.chat__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: var(--navy); color: var(--white);
}
.chat__head strong { display: block; font-family: "Playfair Display", serif; font-size: 1.05rem; }
.chat__head span { font-size: .8rem; color: #b8c7d0; }
.chat__close {
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: transparent; color: var(--white); font-size: 1.8rem; line-height: 1; cursor: pointer;
}

.chat__msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--sand); }
.chat__msg { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: .95rem; line-height: 1.45; white-space: pre-wrap; }
.chat__msg--bot { align-self: flex-start; background: var(--white); border-bottom-left-radius: 4px; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.chat__msg--user { align-self: flex-end; background: var(--navy); color: var(--white); border-bottom-right-radius: 4px; }
.chat__typing { color: var(--muted); letter-spacing: .2em; }
.chat__cta { align-self: flex-start; min-height: 46px; }

.chat__opts { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px; background: var(--sand); }
.chat__opts:not(:empty) { padding-top: 4px; padding-bottom: 10px; }
.chat__chip {
  min-height: 44px; padding: 0 16px; border: 1.5px solid var(--navy); border-radius: 999px;
  background: var(--white); color: var(--navy); font: 500 .9rem "Inter", sans-serif; cursor: pointer;
}
.chat__chip:hover { background: var(--navy); color: var(--white); }

.chat__form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid #e6e0d6; background: var(--white); }
.chat__form input { flex: 1; min-height: 48px; padding: 0 14px; border: 1.5px solid #c9d2d8; border-radius: 999px; font: 1rem "Inter", sans-serif; }
.chat__form input:focus { outline: 3px solid rgba(193, 154, 91, .45); border-color: var(--gold); }
.chat__send { min-height: 48px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--gold); color: var(--navy); font: 700 .95rem "Inter", sans-serif; cursor: pointer; }
.chat__note { margin: 0; padding: 0 16px 10px; font-size: .75rem; color: var(--muted); text-align: center; background: var(--white); }

.chat__note a { color: var(--navy); }
.btn--chat { background: var(--navy); color: var(--white); margin-top: .6rem; }
.btn--chat:hover { background: var(--navy-soft); }
.section--dark .btn--chat { background: var(--gold); color: var(--navy); }

@media (min-width: 720px) {
  .chat { inset: auto 16px 16px auto; width: 380px; height: min(600px, calc(100dvh - 32px)); border-radius: 16px; box-shadow: 0 12px 40px rgba(0, 0, 0, .3); overflow: hidden; }
  body.chat-abierto { overflow: auto; }
}
