/* ASISTENTE DE COTIZACIÓN — estilo cyberpunk neón, aislado del CSS de tu web */
.quote-assistant, .quote-assistant-backdrop {
  box-sizing: border-box;
}
.quote-assistant *, .quote-assistant *::before, .quote-assistant *::after { box-sizing: border-box; }
.quote-assistant [hidden], .quote-assistant-backdrop[hidden] { display: none !important; }
body.quote-assistant-open { overflow: hidden; }

.quote-assistant-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(3, 6, 17, .72);
  backdrop-filter: blur(6px);
}
.quote-assistant {
  font-family: 'Rajdhani', sans-serif;
  color: #f7f5ff;
}

.quote-assistant-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: min(92vw, 620px);
    max-height: min(820px, calc(100dvh - 32px));

    display: flex;
    flex-direction: column;

    overflow: hidden;
    border-radius: 24px;
    z-index: 1001;
}
@keyframes quote-show {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.quote-assistant-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 17px 21px 14px;
  background: linear-gradient(110deg, rgba(104, 59, 195, .24), rgba(0, 222, 255, .07));
  border-bottom: 1px solid #9589d333;
}
.quote-assistant-eyebrow {
  color: #bbabff;
  font: 600 12px 'Rajdhani', sans-serif;
  letter-spacing: .18em;
}
.quote-assistant-header h2 {
  margin: 7px 0;
  color: white;
  font: 600 clamp(17px, 3.5vw, 21px) 'Orbitron', sans-serif;
  line-height: 1.35;
}
.quote-assistant-header p {
  margin: 0;
  color: #c0c8e1;
  font: 500 17px/1.3 'Rajdhani', sans-serif;
}
.quote-assistant-close {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border: 1px solid #a7b5d44d;
  border-radius: 10px;
  background: #ffffff0e;
  color: white;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.quote-assistant-close:hover { background: #ffffff24; }
.quote-assistant-content { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 21px 18px; }
.quote-assistant-progress {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 10px;
  color: #dddcf5;
  font: 600 16px 'Rajdhani', sans-serif;
}
.quote-assistant-progress span:last-child { color: #9caaca; font-weight: 500; }
.quote-assistant-progress-track {
  height: 5px;
  overflow: hidden;
  margin: 8px 0 15px;
  border-radius: 10px;
  background: #ffffff24;
}
.quote-assistant-progress-track > span {
  display: block;
  width: 33.333%;
  height: 100%;
  background: linear-gradient(90deg, #8d64ed, #31dcff);
  border-radius: inherit;
  transition: width .3s ease;
}
.quote-assistant-form, .quote-assistant-form fieldset { margin: 0; }
.quote-assistant-form fieldset { min-width: 0; padding: 0; border: 0; }
.quote-assistant-form legend,
.quote-assistant-review h3 {
  padding: 0;
  margin: 0;
  color: white;
  font: 600 22px/1.3 'Rajdhani', sans-serif;
}
.quote-assistant-hint {
  margin: 5px 0 12px;
  color: #b2bbd2;
  font: 500 16px/1.4 'Rajdhani', sans-serif;
}
.quote-assistant-options {
  display: grid;
  grid-auto-rows: 1fr;
  gap: 8px;
}
.quote-assistant-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 48px;
  padding: 9px 13px;
  border: 1px solid #62678c90;
  border-radius: 12px;
  color: #f4f6ff;
  background: #ffffff08;
  font: 600 17px 'Rajdhani', sans-serif;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.quote-assistant-option span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.quote-assistant-option:hover { background: #7558b72a; border-color: #a88bff; }
.quote-assistant-option:has(input:checked) { background: #8552e32c; border-color: #42daff; }
.quote-assistant-option input { accent-color: #8d70ed; width: 17px; height: 17px; flex-shrink: 0; }
.quote-assistant-option:focus-within { outline: 2px solid #66ddff; outline-offset: 2px; }
.quote-assistant-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.quote-assistant-actions button, .quote-assistant-secondary-actions button {
  padding: 11px 17px;
  border-radius: 10px;
  font: 700 17px 'Rajdhani', sans-serif;
  cursor: pointer;
}
.quote-assistant-back { color: #e5dcff; background: #ffffff12; border: 1px solid #ffffff35; }
.quote-assistant-next {
  color: white;
  background: linear-gradient(110deg, #8651d8, #6946c9);
  border: 1px solid #9b7dff;
}
.quote-assistant-next:disabled { opacity: .45; cursor: not-allowed; }
.quote-assistant-review h3 { margin-bottom: 15px; }
.quote-assistant-summary { margin: 0 0 19px; }
.quote-assistant-summary > div { padding: 10px 0; border-bottom: 1px solid #ffffff1c; }
.quote-assistant-summary dt { color: #aeb4d8; font: 500 14px 'Rajdhani', sans-serif; }
.quote-assistant-summary dd { margin: 3px 0 0; color: white; font: 700 18px 'Rajdhani', sans-serif; }
.quote-assistant-detail-heading { display: flex; justify-content: space-between; gap: 6px; color: #d2d8e8; font: 600 15px 'Rajdhani', sans-serif; }
.quote-assistant-detail textarea {
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid #696e9c;
  border-radius: 10px;
  background: #070d1d;
  color: white;
  font: 500 16px 'Rajdhani', sans-serif;
  resize: vertical;
}
.quote-assistant-detail textarea:focus { outline: 2px solid #42daff; }
.quote-assistant-review-actions { margin-top: 18px; }
.quote-assistant-whatsapp {
  display: block;
  padding: 13px 14px;
  border-radius: 10px;
  background: linear-gradient(110deg, #4c2f9b, #136a7e);
  border: 1px solid #33d5d388;
  color: white;
  text-align: center;
  text-decoration: none;
  font: 700 18px 'Rajdhani', sans-serif;
}
.quote-assistant-whatsapp:hover { filter: brightness(1.14); }
.quote-assistant-review-actions > p { margin: 10px 0 16px; color: #a9b7d4; font: 500 14px 'Rajdhani', sans-serif; }
.quote-assistant-secondary-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.quote-assistant-secondary-actions button { flex: 1; min-width: 130px; border: 1px solid #ffffff30; color: #d8d4ee; background: #ffffff0d; }
.quote-assistant button:focus-visible, .quote-assistant a:focus-visible { outline: 2px solid #53e6ff; outline-offset: 3px; }

@media (min-width: 768px) {
  .quote-assistant-panel {
    width: min(92vw, 860px);
  }

  .quote-assistant-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quote-assistant-form:has(.quote-assistant-review:not([hidden])) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 20px;
  }

  .quote-assistant-review h3 { margin-bottom: 8px; }
  .quote-assistant-summary { margin-bottom: 12px; }
  .quote-assistant-summary > div { padding: 5px 0; }
  .quote-assistant-detail textarea { min-height: 72px; }
  .quote-assistant-review-actions { margin-top: 0; }
  .quote-assistant-review-actions > p { margin: 8px 0 12px; }
}

@media (max-width: 767px) {
  .quote-assistant-panel {
    inset: 0;
    transform: none;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
  }
  .quote-assistant-header { padding: calc(12px + env(safe-area-inset-top)) 16px 11px; }
  .quote-assistant-content {
    flex: 1;
    padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
  }
}
@media (prefers-reduced-motion: reduce) {
  .quote-assistant-panel { animation: none; }
  .quote-assistant * { transition: none !important; }
}
@media (max-width: 767px) {
    .quote-assistant-header,
    .quote-assistant-content {
        padding-left: 16px;
        padding-right: 16px;
    }

    .quote-assistant-whatsapp,
    .quote-assistant-next,
    .quote-assistant-back,
    .quote-assistant-reset {
        width: 100%;
    }
}
