/* Chat web · Nueva Arquitectura */
.chat {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 95;
  font-family: "Instrument Sans", Arial, sans-serif;
}

.chat__toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 18px;
  border: 0;
  border-radius: 999px;
  background: #123B47;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(18, 59, 71, .25);
}

.chat__toggle:hover { background: #0e303a; }

.chat__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #C97F5C;
}

.chat__panel {
  position: absolute;
  right: 0;
  bottom: 64px;
  width: 360px;
  max-height: calc(100vh - 130px);
  overflow: hidden;
  background: #F7F5F1;
  border: 1px solid #D9D3C7;
  box-shadow: 0 24px 60px rgba(18, 59, 71, .25);
}

.chat__panel[hidden] { display: none; }

.chat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: #123B47;
  color: #fff;
}

.chat__brand {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.chat__sub {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: rgba(255, 255, 255, .68);
}

.chat__close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}

.chat__body {
  padding: 16px;
  max-height: calc(100vh - 210px);
  overflow: auto;
}

.chat__intro {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.45;
  color: #1F2A2E;
}

.chat__form label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  color: #5F6B6E;
}

.chat__form input[type="text"],
.chat__form input[type="email"],
.chat__form input[type="tel"],
.chat__form textarea {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 9px 10px;
  border: 1px solid #D9D3C7;
  border-radius: 0;
  background: #fff;
  font: inherit;
  font-size: 13px;
  color: #1F2A2E;
}

.chat__form textarea { resize: vertical; }

.chat__check {
  display: flex !important;
  align-items: flex-start;
  gap: 8px;
  margin: 4px 0 12px !important;
  font-size: 11px !important;
  line-height: 1.4;
}

.chat__check input { width: auto; margin-top: 2px; }
.chat__check a { color: #123B47; }

.chat__submit {
  width: 100%;
  padding: 11px 14px;
  border: 0;
  background: #123B47;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.chat__submit:hover { background: #0e303a; }
.chat__submit:disabled { opacity: .65; cursor: wait; }

.chat__status {
  min-height: 16px;
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: #5F6B6E;
}

.chat__status.is-error { color: #A33A2E; }
.chat__bot { display: none !important; }

@media (max-width: 560px) {
  .chat {
    right: 16px;
    bottom: 84px;
  }

  .chat__panel {
    right: 0;
    bottom: 60px;
    width: calc(100vw - 32px);
    max-height: calc(100vh - 180px);
  }

  .chat__body { max-height: calc(100vh - 260px); }
}
