/* ============================================================
   Chat FAB + misc widgets
   ============================================================ */
.pc-chat-fab {
  position: fixed; bottom: 24px; right: 24px;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--coral); color: white;
  border: none;
  box-shadow: var(--shadow-coral);
  cursor: pointer;
  display: grid; place-items: center;
  z-index: 40;
  transition: transform .2s;
}
.pc-chat-fab:hover { transform: scale(1.08) rotate(-6deg); }
.pc-chat-dot {
  position: absolute; top: 10px; right: 12px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--ok);
  border: 2px solid var(--coral);
}

/* Chat window */
#pc-chat-win {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 560px;
  max-height: calc(100vh - 140px);
  background: var(--paper);
  border-radius: 20px;
  box-shadow: 0 24px 60px -16px rgba(31, 22, 18, 0.35), 0 8px 20px -8px rgba(31, 22, 18, 0.15);
  display: flex;
  flex-direction: column;
  z-index: 50;
  overflow: hidden;
  transform: translateY(20px) scale(.95);
  opacity: 0;
  transform-origin: bottom right;
  transition: all .22s cubic-bezier(.2,.8,.2,1);
  border: 1px solid var(--line-soft);
}
#pc-chat-win.open { transform: translateY(0) scale(1); opacity: 1; }
@media (max-width: 500px) {
  #pc-chat-win { bottom: 90px; right: 12px; left: 12px; width: auto; height: calc(100vh - 110px); }
}

.pc-chat-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--coral) 0%, var(--coral-deep) 100%);
  color: white;
  flex: none;
}
.pc-chat-who { display: flex; align-items: center; gap: 12px; }
.pc-chat-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--mango), #D97706);
  display: grid; place-items: center;
  color: white; font-weight: 700; font-size: 16px;
  border: 2px solid rgba(255,255,255,.5);
}
.pc-chat-name { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 10px; }
.pc-chat-badge { font-size: 11px; font-weight: 500; color: rgba(255,255,255,.85); }
.pc-chat-badge::first-letter { color: #6EE7B7; }
.pc-chat-role { font-size: 12px; opacity: .85; margin-top: 1px; }
.pc-chat-close {
  background: rgba(255,255,255,.15);
  border: none;
  color: white;
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: grid; place-items: center;
  transition: background .15s;
}
.pc-chat-close:hover { background: rgba(255,255,255,.25); }

.pc-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px;
  background:
    radial-gradient(circle at 20% 10%, rgba(245,184,65,.08), transparent 40%),
    radial-gradient(circle at 80% 90%, rgba(229,83,61,.06), transparent 40%),
    var(--cream);
  scroll-behavior: smooth;
}
.pc-chat-body::-webkit-scrollbar { width: 6px; }
.pc-chat-body::-webkit-scrollbar-thumb { background: rgba(31,22,18,.15); border-radius: 3px; }

.pc-msg { display: flex; margin-bottom: 10px; }
.pc-msg.me { justify-content: flex-end; }
.pc-msg.them { justify-content: flex-start; }
.pc-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.45;
  word-wrap: break-word;
}
.pc-msg.them .pc-bubble {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line-soft);
  border-bottom-left-radius: 6px;
  box-shadow: 0 2px 6px -2px rgba(31,22,18,.08);
}
.pc-msg.me .pc-bubble {
  background: var(--coral);
  color: white;
  border-bottom-right-radius: 6px;
}
.pc-msg.me .pc-bubble strong { color: #FFE5B4; }

.pc-typing { padding: 14px 16px !important; display: flex; gap: 4px; align-items: center; }
.pc-typing span {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ink-4);
  animation: pc-bounce 1.3s infinite;
}
.pc-typing span:nth-child(2) { animation-delay: .15s; }
.pc-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes pc-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .5; }
  30% { transform: translateY(-6px); opacity: 1; }
}

.pc-chat-quick {
  padding: 10px 14px;
  display: flex; gap: 8px; flex-wrap: wrap;
  border-top: 1px solid var(--line-soft);
  background: var(--paper);
  flex: none;
}
.pc-chat-quick button {
  background: var(--cream);
  border: 1px solid var(--line-soft);
  color: var(--ink-2);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-size: 12.5px;
  cursor: pointer;
  transition: all .15s;
  font-weight: 500;
}
.pc-chat-quick button:hover {
  background: var(--coral-wash);
  color: var(--coral-deep);
  border-color: var(--coral-wash);
}

.pc-chat-input {
  padding: 12px 14px;
  display: flex; gap: 8px;
  background: var(--paper);
  border-top: 1px solid var(--line-soft);
  flex: none;
}
.pc-chat-input input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font: inherit;
  font-size: 14px;
  outline: none;
  background: var(--cream);
  transition: all .15s;
}
.pc-chat-input input:focus {
  border-color: var(--coral);
  background: var(--paper);
  box-shadow: 0 0 0 3px var(--coral-wash);
}
.pc-chat-input button {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--coral);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  display: grid; place-items: center;
  transition: transform .15s, background .15s;
}
.pc-chat-input button:hover { background: var(--coral-deep); transform: scale(1.05); }

/* ============================================================
   Hero / landing
   ============================================================ */
.hero {
  padding: 64px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(245, 184, 65, 0.25), transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -150px; left: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(229, 83, 61, 0.12), transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 980px) { .hero-inner { grid-template-columns: 1fr; gap: 48px; } }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--coral-wash);
  color: var(--coral-deep);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero-eyebrow .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--coral);
  box-shadow: 0 0 0 0 rgba(229, 83, 61, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(229, 83, 61, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(229, 83, 61, 0); }
  100% { box-shadow: 0 0 0 0 rgba(229, 83, 61, 0); }
}

.hero h1 { margin-bottom: 20px; }
.hero-sub {
  font-size: 19px;
  color: var(--ink-3);
  max-width: 520px;
  margin-bottom: 24px;
}
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 32px; }
.hero-trustline { display: flex; align-items: center; gap: 14px; font-size: 13.5px; color: var(--ink-3); }
.hero-avatars { display: flex; }
.hero-avatar {
  width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--cream);
  background: linear-gradient(135deg, var(--mango), var(--coral));
  display: grid; place-items: center;
  color: white; font-weight: 600; font-size: 12px;
  margin-left: -8px;
}
.hero-avatar:first-child { margin-left: 0; }
.hero-avatar:nth-child(2) { background: linear-gradient(135deg, var(--coral), var(--coral-deep)); }
.hero-avatar:nth-child(3) { background: linear-gradient(135deg, #8B6F47, #6B4423); }
.hero-avatar:nth-child(4) { background: linear-gradient(135deg, var(--ink-2), var(--ink)); }

/* ============================================================
   Calculator (landing + wizard)
   ============================================================ */
.calc {
  background: var(--paper);
  border-radius: var(--r-xl);
  padding: 32px;
  box-shadow: 0 28px 60px -20px rgba(31, 22, 18, 0.22), 0 10px 20px -10px rgba(31, 22, 18, 0.08);
  position: relative;
  border: 1px solid var(--line-soft);
}
.calc::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, var(--coral), var(--mango));
  border-radius: var(--r-xl);
  z-index: -1;
  opacity: 0.4;
  filter: blur(24px);
}
.calc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.calc-head h3 { font-size: 18px; }

.calc-block { margin-bottom: 24px; }
.calc-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.calc-row .label { color: var(--ink-3); font-size: 14px; }
.calc-row .value { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

.calc-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--cream-2);
  border-radius: var(--r-pill);
  outline: none;
  position: relative;
}
.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px; height: 28px;
  background: white;
  border: 3px solid var(--coral);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform .15s;
}
.calc-range::-webkit-slider-thumb:hover { transform: scale(1.1); }
.calc-range::-moz-range-thumb {
  width: 28px; height: 28px;
  background: white;
  border: 3px solid var(--coral);
  border-radius: 50%;
  cursor: pointer;
}
.calc-ticks { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-4); margin-top: 8px; font-variant-numeric: tabular-nums; }

.calc-summary {
  background: var(--cream);
  border-radius: var(--r-md);
  padding: 18px;
  margin-top: 20px;
  margin-bottom: 20px;
}
.calc-summary .sum-row { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; color: var(--ink-2); }
.calc-summary .sum-row.total { font-weight: 700; font-size: 17px; padding-top: 12px; margin-top: 8px; border-top: 1px dashed var(--line); color: var(--ink); }
.calc-summary .sum-row.total .amt { color: var(--coral); font-size: 22px; }
.calc-fecha {
  display: flex; gap: 10px; align-items: center;
  background: var(--mango-wash);
  border-radius: var(--r-md);
  padding: 12px 14px;
  font-size: 13.5px;
  color: var(--mango-deep);
  font-weight: 500;
}

/* ============================================================
   Steps (how it works)
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 38px; left: 10%; right: 10%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--coral) 0 8px, transparent 8px 14px);
  z-index: 0;
}
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
}
@media (max-width: 500px) { .steps { grid-template-columns: 1fr; } }

.step { text-align: center; position: relative; z-index: 1; }
.step-num {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--coral);
  margin: 0 auto 20px;
  display: grid; place-items: center;
  font-size: 30px;
  font-weight: 700;
  color: var(--coral);
  box-shadow: var(--shadow-sm);
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--ink-3); }

/* ============================================================
   Isometric placeholder (for imagery)
   ============================================================ */
.iso-card {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(160deg, var(--coral-wash), var(--mango-wash));
}
.iso-card .iso-label {
  position: absolute; left: 12px; bottom: 12px;
  font-family: var(--font-mono); font-size: 11px;
  background: rgba(255,255,255,.9); padding: 4px 8px; border-radius: 6px;
  color: var(--ink-3);
}
