:root {
  --bg: #f3f0eb;
  --surface: #ffffff;
  --surface-2: #f8f6f2;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --brand: #7a5a3a;
  --brand-dark: #5e4228;
  --brand-soft: #efe5da;
  --ok: #ecf8ef;
  --ok-line: #cfe6d5;
  --warn-bg: #fff7e6;
  --warn-line: #eed9a0;
  --wa: #25D366;
  --mail: #2563eb;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  --radius: 20px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.wrap {
  max-width: 1320px;
  margin: 0 auto;
}

.hero {
  background: linear-gradient(135deg, #3f2f21, #7a5a3a 58%, #9a724f);
  color: white;
  padding: 28px 20px 26px;
}

.hero-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.16);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: 36px;
  line-height: 1.1;
}

.hero-text {
  margin: 0;
  max-width: 760px;
  line-height: 1.6;
  opacity: .94;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 12px 16px;
  border-radius: 14px;
  text-decoration: none;
  color: white;
  font-weight: bold;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
}

.hero-chip.whatsapp {
  background: rgba(37,211,102,.18);
  border-color: rgba(37,211,102,.4);
}

.progress {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-top: 22px;
}

.progress div {
  text-align: center;
  font-size: 13px;
  padding: 11px 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.11);
  border: 1px solid rgba(255,255,255,.15);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 380px;
  gap: 24px;
  padding: 24px 20px 40px;
}

.panel {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.sidebar {
  display: grid;
  gap: 18px;
  align-self: start;
  position: sticky;
  top: 18px;
}

.panel-main { min-width: 0; }

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 18px;
}

.section-title {
  margin: 0 0 8px;
  font-size: 26px;
}

.section-subtitle {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

.chooser, .toggle, .actions, .stack-actions, .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chooser { margin-bottom: 16px; }

.chooser button,
.toggle button,
.actions button,
.stack-actions button,
.product-select,
.small-button,
.contact-pill {
  border: 1px solid var(--line);
  background: white;
  color: var(--text);
  padding: 12px 14px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: bold;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, color .12s ease;
}

.chooser button:hover,
.toggle button:hover,
.actions button:hover,
.stack-actions button:hover,
.product-select:hover,
.small-button:hover,
.contact-pill:hover {
  transform: translateY(-1px);
}

.chooser button.active,
.toggle button.active,
.product-select.active,
.small-button.active,
button.primary {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}

button.secondary {
  background: white;
}

button.whatsapp-action,
.contact-pill.whatsapp,
.floating-wa {
  background: var(--wa);
  color: white;
  border-color: var(--wa);
}

.contact-pill.mail { background: var(--mail); color: white; border-color: var(--mail); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  transition: transform .15s ease, box-shadow .15s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(0,0,0,.08);
}

.card-hero {
  height: 220px;
  background: #ddd center/cover no-repeat;
  position: relative;
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(31,41,55,.82);
  color: white;
  font-size: 12px;
}

.thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 12px 0;
}

.thumb {
  height: 80px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #ececec center/cover no-repeat;
}

.card-content {
  padding: 14px 14px 16px;
}

.card-content h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.meta, .muted, .price-row {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.price-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 14px;
}

.product-list {
  display: none;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.product-row {
  display: grid;
  grid-template-columns: 1.6fr .8fr .8fr .7fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: white;
}

.product-row:last-child { border-bottom: 0; }
.product-row.selected { background: #fbf5ef; }

.calculator-box {
  margin-top: 20px;
  padding: 18px;
  border-radius: 18px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.calculator-box h3 {
  margin: 0 0 14px;
  font-size: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field.full { grid-column: 1 / -1; }

label {
  font-weight: bold;
  font-size: 14px;
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 15px;
}

textarea {
  min-height: 108px;
  resize: vertical;
}

.notice {
  display: none;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  color: #7a4e00;
  line-height: 1.5;
  font-size: 14px;
}

.summary-block {
  margin-top: 16px;
  padding: 16px;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.summary-block h4, .contact-panel h3, .request-panel h3 {
  margin: 0 0 12px;
}

.kv {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  font-size: 14px;
  line-height: 1.5;
}

.kv div:nth-child(odd) { color: var(--muted); }

.contact-lead {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.55;
}

.contact-quick {
  display: grid;
  gap: 10px;
}

.contact-pill {
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  min-height: 48px;
}

.result {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  background: var(--ok);
  border: 1px solid var(--ok-line);
  line-height: 1.75;
  font-size: 15px;
}

.offer-box {
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  background: white;
  border: 1px dashed #c9d6cd;
}

.checkline {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.checkline input { width: auto; margin-top: 3px; }

.legal {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.footer-links a {
  color: var(--brand-dark);
  text-decoration: none;
  font-size: 14px;
}

.floating-wa {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  text-decoration: none;
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(37,211,102,.22);
  font-weight: bold;
}

@media print {
  body { background: white; }
  .hero, .sidebar, .toggle, .chooser, .actions, .footer-links, .floating-wa { display: none !important; }
  .layout { display: block; padding: 0; }
  .panel, .calculator-box { box-shadow: none; border: 0; padding: 0; background: white; }
  .product-grid, .product-list { display: none !important; }
  .result { border: 1px solid #ddd; background: white; }
}

@media (max-width: 1050px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
  }
}

@media (max-width: 820px) {
  .hero-inner, .panel-head {
    flex-direction: column;
    align-items: start;
  }
  .progress {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-grid, .form-grid {
    grid-template-columns: 1fr;
  }
  .product-row {
    grid-template-columns: 1fr;
  }
}
