/* ============================================================
   Página /cotizar — chat del asistente + resumen de la solicitud
   Usa los tokens --brand-* de brand.css (tema claro / oscuro).
   ============================================================ */

.ct-hero { background: var(--brand-hero); color: #fff; padding: clamp(32px, 5vw, 56px) 0; }
.ct-hero h1 { margin: 0 0 12px; font-size: clamp(28px, 5vw, 44px); line-height: 1.1; font-weight: 700; }
.ct-hero p.hm-sub { margin: 0; max-width: 560px; font-size: clamp(16px, 2vw, 19px); line-height: 1.5; color: #EDE3F6; }

.ct-main { background: var(--brand-bg); padding: clamp(24px, 4vw, 48px) 0; }
.ct-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }

/* Chat */
.ct-chat { display: flex; flex-direction: column; border: 1px solid var(--brand-line); border-radius: 20px; background: var(--brand-surface); overflow: hidden; min-height: 480px; }
.ct-chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: var(--brand-band); border-bottom: 1px solid var(--brand-line); color: var(--brand-title); }
.ct-avatar { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand-cta); color: #fff; font-size: 14px; font-weight: 700; }

.ct-msgs { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 20px; max-height: 460px; overflow-y: auto; }
.ct-msg { max-width: 80%; padding: 12px 16px; border-radius: 16px; font-size: 16px; line-height: 1.45; overflow-wrap: anywhere; }
.ct-msg.bot { align-self: flex-start; background: var(--brand-band); color: var(--brand-fg); border-bottom-left-radius: 4px; }
.ct-msg.user { align-self: flex-end; background: var(--brand-cta); color: #fff; border-bottom-right-radius: 4px; }

.ct-opciones { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 12px; }
.ct-opciones .hm-chip { cursor: pointer; font-family: inherit; }

.ct-input { display: flex; gap: 12px; padding: 16px 20px; border-top: 1px solid var(--brand-line); }
.ct-input input { flex: 1; min-width: 0; min-height: 48px; padding: 0 16px; border: 1.5px solid var(--brand-border); border-radius: 999px; background: var(--brand-bg); color: var(--brand-fg); font: inherit; font-size: 16px; }
.ct-input input:focus { outline: 3px solid var(--brand-link); outline-offset: 1px; }
.ct-input button { cursor: pointer; font-family: inherit; }
.ct-input button:disabled { opacity: .5; cursor: not-allowed; }

/* Resumen */
.ct-resumen { border: 1px solid var(--brand-line); border-radius: 20px; background: var(--brand-surface); padding: 20px; position: sticky; top: 96px; }
.ct-resumen h2 { margin: 0 0 12px; font-size: 20px; font-weight: 700; color: var(--brand-title); }
.ct-resumen dl { margin: 0; }
.ct-fila { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--brand-line); font-size: 15px; }
.ct-fila:last-child { border-bottom: 0; }
.ct-fila dt { font-weight: 600; color: var(--brand-muted); }
.ct-fila dd { margin: 0; text-align: right; color: var(--brand-fg); font-weight: 600; overflow-wrap: anywhere; }
.ct-fila dd.pendiente { font-weight: 400; font-style: italic; color: var(--brand-muted); }

@media (max-width: 860px) {
    .ct-grid { grid-template-columns: minmax(0, 1fr); }
    .ct-resumen { position: static; }
    .ct-msg { max-width: 90%; }
}
