/* =========================================================================
   ZOE GRAPHIC — Estilos del cotizador + chat (consistente con el tema Neón)
   ========================================================================= */

/* ---- Cotizador --------------------------------------------------------- */
.quote-layout { display: grid; grid-template-columns: 1.55fr 0.95fr; gap: 24px; align-items: start; }
.quote-products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.qcard {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  backdrop-filter: blur(8px); transition: border-color .3s, transform .3s var(--ease);
}
.qcard:hover { border-color: rgba(174, 245, 17, 0.22); transform: translateY(-3px); }
.qcard-media { height: 150px; background: var(--bg-2); overflow: hidden; position: relative; }
.qcard-media img { width: 100%; height: 100%; object-fit: cover; }
.qcard-ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--lime); opacity: .35; }
.qcard-ph svg { width: 48px; height: 48px; }
.qcard-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.qcard-cat { font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
.qcard-body h3 { font-size: 1.12rem; }
.qcard-body p { color: var(--muted); font-size: .88rem; line-height: 1.5; }
.qprice { font-weight: 800; font-size: 1.02rem; color: var(--text); margin-top: 2px; }
.qprice span { color: var(--muted); font-weight: 600; font-size: .82rem; }
.qfields { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.qf { flex: 1; min-width: 80px; display: grid; gap: 4px; }
.qf label { font-size: .72rem; font-weight: 700; color: var(--muted); }
.qf input {
  width: 100%; padding: 9px 11px; border-radius: var(--radius-sm); background: var(--surface-2);
  border: 1px solid var(--line); color: var(--text); font-family: var(--font-body); font-size: .92rem;
}
.qf input:focus { outline: none; border-color: var(--lime); }
.qopts { display: grid; gap: 6px; margin-top: 4px; }
.qopt { display: flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--muted); cursor: pointer; }
.qopt span { margin-left: auto; color: var(--lime); font-weight: 700; }
.qopt input { accent-color: var(--green); width: 16px; height: 16px; }
.qcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; }
.qsub { font-size: .9rem; font-weight: 700; color: var(--text); }
.btn-add { padding: 10px 18px; font-size: .88rem; }

/* Cart (sticky) */
.quote-cart {
  position: sticky; top: 96px; padding: 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid rgba(174, 245, 17, 0.14); backdrop-filter: blur(10px);
}
.quote-cart h3 { font-size: 1.3rem; margin-bottom: 16px; }
.cart-items { display: grid; gap: 10px; max-height: 46vh; overflow-y: auto; margin-bottom: 16px; }
.cart-empty { color: var(--muted); font-size: .92rem; line-height: 1.6; }
.ci { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); }
.ci-main { flex: 1; min-width: 0; }
.ci-name { font-weight: 700; font-size: .94rem; }
.ci-meta { color: var(--muted); font-size: .78rem; margin-top: 2px; }
.ci-price { font-weight: 800; font-size: .92rem; white-space: nowrap; }
.ci-del { background: none; border: 0; color: var(--muted); font-size: 1.3rem; cursor: pointer; line-height: 1; padding: 0 2px; }
.ci-del:hover { color: #ff6a6a; }
.cart-total { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--line); }
.cart-total span { color: var(--muted); font-weight: 600; }
.cart-total strong { font-family: var(--font-display); font-weight: 900; font-size: 1.7rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cart-note { color: var(--muted); font-size: .78rem; line-height: 1.5; margin-bottom: 16px; }
.quote-cart .btn-primary { width: 100%; justify-content: center; }
.quote-cart .btn-primary:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* Quote request modal */
.qmodal-back { position: fixed; inset: 0; z-index: 220; background: rgba(4,6,3,.78); backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; padding: 24px; }
.qmodal-back.open { display: flex; }
.qmodal { width: 100%; max-width: 460px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.qmodal h3 { font-size: 1.4rem; }
.qm-total { color: var(--muted); }
.qm-total strong { color: var(--lime); font-size: 1.15rem; }
.qmodal .field input, .qmodal .field textarea { width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); color: var(--text); font-family: var(--font-body); }
.qmodal .field textarea { min-height: 80px; resize: vertical; }
.qm-foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 4px; }
.qm-ok { display: none; padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(120, 210, 30, .12); border: 1px solid var(--green); color: var(--lime); font-weight: 700; }
.qm-ok.show { display: block; }

/* ---- Chat widget ------------------------------------------------------- */
.chat-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 150; width: 60px; height: 60px; border-radius: 50%;
  border: 0; cursor: pointer; background: var(--grad); color: #0a1206; display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(120, 210, 30, .45), 0 0 26px rgba(170, 245, 17, .4); transition: transform .25s var(--ease);
}
.chat-fab:hover { transform: translateY(-3px) scale(1.05); }
.chat-fab svg { width: 28px; height: 28px; }

.chat-panel {
  position: fixed; bottom: 96px; right: 24px; z-index: 150; width: 370px; max-width: calc(100vw - 32px); height: 520px; max-height: calc(100vh - 130px);
  display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid rgba(174, 245, 17, .16); border-radius: 20px; overflow: hidden;
  box-shadow: 0 24px 70px rgba(0,0,0,.6); opacity: 0; transform: translateY(16px) scale(.98); pointer-events: none; transition: opacity .25s, transform .25s var(--ease);
}
.chat-panel.open { opacity: 1; transform: none; pointer-events: auto; }
.chat-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.chat-id { display: flex; align-items: center; gap: 10px; }
.chat-id .mark { width: 36px; height: 36px; border-radius: 9px; background: var(--grad); display: grid; place-items: center; color: #0a1206; font-weight: 900; font-family: var(--font-display); box-shadow: 0 0 18px rgba(170,245,17,.4); }
.chat-id .cn { font-weight: 800; font-size: .95rem; }
.chat-id .cs { font-size: .74rem; color: var(--muted); }
.chat-x { background: none; border: 0; color: var(--muted); font-size: 1.5rem; cursor: pointer; line-height: 1; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 84%; padding: 11px 14px; border-radius: 14px; font-size: .9rem; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.msg.bot { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.user { align-self: flex-end; background: var(--grad); color: #0a1206; font-weight: 600; border-bottom-right-radius: 4px; }
.msg.typing { color: var(--muted); letter-spacing: .15em; }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--surface); }
.chat-input input { flex: 1; padding: 11px 14px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); font-family: var(--font-body); font-size: .9rem; }
.chat-input input:focus { outline: none; border-color: var(--lime); }
.chat-input button { width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer; background: var(--grad); color: #0a1206; display: grid; place-items: center; flex: none; }
.chat-input button svg { width: 18px; height: 18px; }

/* ---- SmartFlow (créditos del desarrollador) ---------------------------- */
.sf-section { padding-top: 40px; }
.sf-card {
  position: relative; overflow: hidden; border-radius: 28px;
  border: 1px solid rgba(174, 245, 17, 0.18); background: var(--surface); backdrop-filter: blur(10px);
  padding: 48px; box-shadow: 0 24px 70px rgba(0,0,0,.35);
}
.sf-card::before {
  content: ""; position: absolute; top: -40%; right: -10%; width: 60%; height: 140%;
  background: radial-gradient(circle, rgba(120,220,40,0.16), transparent 65%); filter: blur(30px); pointer-events: none;
}
.sf-grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 44px; align-items: center; }
.sf-copy .eyebrow { margin-bottom: 14px; }
.sf-copy h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); margin-bottom: 16px; }
.sf-copy > p { color: var(--muted); font-size: 1.04rem; line-height: 1.65; margin-bottom: 22px; }
.sf-copy strong { color: var(--text); }
.sf-list { list-style: none; display: grid; gap: 11px; margin: 0 0 28px; padding: 0; }
.sf-list li { position: relative; padding-left: 30px; color: var(--text); font-weight: 600; font-size: 0.98rem; }
.sf-list li::before {
  content: "✓"; position: absolute; left: 0; top: -1px; width: 21px; height: 21px; border-radius: 50%;
  background: var(--grad); color: #0a1206; font-size: 0.72rem; font-weight: 900; display: grid; place-items: center;
}
.sf-note { color: var(--muted); font-size: 0.9rem; margin-top: 18px; }
.sf-note a { color: var(--lime); font-weight: 700; }

.sf-shots { position: relative; min-height: 340px; }
.sf-shot { position: relative; margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); box-shadow: 0 22px 50px rgba(0,0,0,.5); }
.sf-shot img { width: 100%; display: block; }
.sf-shot figcaption { padding: 10px 14px; font-size: 0.8rem; color: var(--muted); border-top: 1px solid var(--line); background: rgba(10,12,8,0.5); }
.sf-shot-1 { transform: rotate(-1.5deg); }
.sf-shot-2 { position: absolute; right: -10px; bottom: -28px; width: 58%; transform: rotate(2deg); z-index: 2; }
.sf-shot-2 figcaption { font-size: 0.72rem; }

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 1024px) {
  .quote-layout { grid-template-columns: 1fr; }
  .quote-cart { position: static; }
  .sf-grid { grid-template-columns: 1fr; gap: 56px; }
  .sf-card { padding: 32px; }
  .sf-shots { min-height: 0; padding-bottom: 30px; }
  .sf-shot-1 { transform: none; }
  .sf-shot-2 { position: relative; right: 0; bottom: 0; width: 78%; margin: -24px 0 0 auto; transform: none; }
}
@media (max-width: 680px) {
  .quote-products { grid-template-columns: 1fr; }
  .chat-panel { right: 12px; bottom: 88px; }
  .chat-fab { bottom: 16px; right: 16px; }
}
