/* === Piso e revestimento === */
.piso-page .piso-app { padding: 20px; }

.piso-inputs { display: grid; grid-template-columns: 1fr 1fr 1.5fr 1fr; gap: 12px; margin-bottom: 22px; }
.piso-input { background: #f8fafc; border: 2px solid #e2e8f0; border-radius: 12px; padding: 14px; }
.piso-input label { display: block; font-size: 11px; color: #64748b; font-weight: 700; text-transform: uppercase; margin-bottom: 8px; letter-spacing: 0.3px; }
.piso-num { display: flex; align-items: center; background: #fff; border: 1px solid #cbd5e1; border-radius: 10px; padding: 4px 12px; }
.piso-num input { flex: 1; border: 0; outline: none; font-size: 20px; font-weight: 800; color: #92400e; text-align: right; padding: 6px 0; }
.piso-num input::-webkit-outer-spin-button, .piso-num input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.piso-num span { font-size: 13px; color: #94a3b8; font-weight: 600; padding-left: 4px; }
.piso-peca-row { display: flex; gap: 6px; }
.piso-peca-row .piso-num { flex: 1; }
.piso-pills { display: flex; gap: 4px; margin-top: 8px; flex-wrap: wrap; }
.piso-pills button { flex: 1; min-width: 0; background: #fff; border: 1px solid #cbd5e1; padding: 6px 8px; border-radius: 8px; font-size: 11.5px; font-weight: 600; color: #475569; cursor: pointer; }
.piso-pills button.active { background: #92400e; border-color: #92400e; color: #fff; }

.piso-stage { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; margin-bottom: 22px; background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); border-radius: 16px; padding: 22px; }
.piso-grid-wrap svg { width: 100%; max-width: 600px; height: auto; display: block; }
.piso-result { text-align: center; align-self: center; }
.piso-result-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.8px; color: #92400e; font-weight: 700; }
.piso-result-value { font-size: 42px; font-weight: 900; color: #78350f; line-height: 1; margin: 6px 0; font-family: 'Inter', system-ui, sans-serif; }
.piso-result-sub { font-size: 13px; color: #92400e; margin-bottom: 16px; }
.piso-result-extras { display: flex; flex-direction: column; gap: 8px; background: #fff; border-radius: 12px; padding: 12px 14px; text-align: left; }
.piso-extra { display: flex; justify-content: space-between; font-size: 13px; color: #475569; }
.piso-extra strong { color: #78350f; font-weight: 800; }

.piso-detail { background: #f8fafc; border-radius: 12px; padding: 18px; }
.piso-detail h3 { margin: 0 0 12px; font-size: 15px; font-weight: 700; color: #0f172a; }
.piso-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; }
.piso-table td { padding: 10px 14px; border-top: 1px solid #f1f5f9; font-size: 13.5px; }
.piso-table tr:first-child td { border-top: 0; }
.piso-table td:last-child { text-align: right; font-weight: 600; color: #0f172a; }
.piso-table tr.total { background: #fef3c7; }
.piso-table tr.total td { font-size: 15px; padding: 12px 14px; }
.piso-table tr.total td:last-child { color: #92400e; }

.piso-content { margin-top: 20px; }
.piso-content h2 { margin-top: 0; }
.piso-content p { color: #475569; line-height: 1.7; margin: 0 0 14px; }

@media (max-width: 820px) {
  .piso-inputs { grid-template-columns: 1fr 1fr; }
  .piso-input:nth-child(3) { grid-column: span 2; }
  .piso-stage { grid-template-columns: 1fr; }
  .piso-result-value { font-size: 32px; }
}
