/* ============================================================
   Calculadora Muro Una Cara Durock - ConstruyamosH
   Tema: Amber/Copper (#d97706) — Durock / Panel Cemento
   ============================================================ */

.ucalc-container {
  max-width: 960px;
  margin: 0 auto;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #1e293b;
  line-height: 1.6;
}
.ucalc-hidden { display: none !important; }

.ucalc-business-header {
  background: #fff;
  padding: 16px 0 14px;
  border-bottom: 3px solid #d97706;
  margin-bottom: 20px;
}
.ucalc-biz-columns {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.ucalc-biz-logo img { max-width: 200px; height: auto; display: block; }
.ucalc-biz-info { font-size: 0.8rem; line-height: 1.4; color: #334155; }
.ucalc-quotation-meta { text-align: right; white-space: nowrap; }
.ucalc-quotation-title { font-size: 1.4rem; font-weight: 800; color: #d97706; margin-bottom: 4px; }
.ucalc-date, .ucalc-currency { font-size: 0.85rem; color: #64748b; }

@media (max-width: 600px) {
  .ucalc-biz-columns { flex-direction: column; align-items: center; text-align: center; }
  .ucalc-quotation-meta { text-align: center; margin-top: 8px; }
}

/* ─── Header ─── */
.ucalc-header { text-align: center; margin-bottom: 28px; }
.ucalc-header-brand { display: none; }
@media print { .ucalc-header-brand { display: block; } }
.ucalc-header h2 { font-size: 1.8rem; font-weight: 800; color: #d97706; margin: 0 0 8px; }
.ucalc-header p { font-size: 1rem; color: #475569; margin: 0; }

/* ─── Input Section ─── */
.ucalc-input-section {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 24px;
}

/* ─── Tabs ─── */
.ucalc-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.ucalc-tab {
  flex: 1; padding: 10px 16px; border: 2px solid #e2e8f0;
  border-radius: 8px; background: #fff; font-size: 0.95rem;
  font-weight: 600; color: #64748b; cursor: pointer; transition: all 0.2s;
}
.ucalc-tab.active { border-color: #d97706; background: #fffbeb; color: #d97706; }
.ucalc-tab:hover { border-color: #94a3b8; }

/* ─── Input Groups ─── */
.ucalc-input-group { display: none; }
.ucalc-input-group.active { display: block; }
.ucalc-input-group label { display: block; font-weight: 600; font-size: 0.9rem; color: #334155; margin-bottom: 4px; }
.ucalc-input-group input[type="number"] {
  width: 100%; max-width: 200px; padding: 10px 14px; border: 2px solid #e2e8f0;
  border-radius: 8px; font-size: 1.1rem; font-weight: 600; color: #d97706; transition: border-color 0.2s;
}
.ucalc-input-group input[type="number"]:focus {
  outline: none; border-color: #d97706; box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

/* ─── Dimension Row ─── */
.ucalc-dim-row { display: flex; gap: 16px; flex-wrap: wrap; }
.ucalc-dim-row > div { flex: 1; min-width: 140px; }
.ucalc-dim-result { font-size: 1.1rem; font-weight: 700; color: #d97706; margin: 12px 0 0; }

/* ─── Options Row ─── */
.ucalc-options-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 18px; align-items: flex-end; }
.ucalc-options-row > div { flex: 1; min-width: 140px; }
.ucalc-options-row label { display: block; font-weight: 600; font-size: 0.85rem; color: #475569; margin-bottom: 4px; }
.ucalc-options-row select {
  width: 100%; padding: 9px 12px; border: 2px solid #e2e8f0;
  border-radius: 8px; font-size: 0.95rem; color: #1e293b; background: #fff; cursor: pointer;
}
.ucalc-options-row select:focus { outline: none; border-color: #d97706; }
.ucalc-acoustic-label { display: flex !important; align-items: center; gap: 8px; font-weight: 600; font-size: 0.9rem; color: #1e293b; cursor: pointer; }
.ucalc-acoustic-label input[type="checkbox"] { width: 18px; height: 18px; accent-color: #d97706; cursor: pointer; }
.ucalc-acoustic-hint { display: block; font-size: 0.78rem; color: #64748b; margin-top: 2px; font-style: italic; }

/* ─── Visualization ─── */
.ucalc-visualization-wrapper { margin-top: 20px; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px; text-align: center; min-height: 180px; }
.ucalc-visualization svg { max-width: 100%; height: auto; display: inline-block; }
.ucalc-viz-placeholder { color: #94a3b8; font-size: 0.9rem; padding: 40px 0; }

/* ─── Results ─── */
.ucalc-results { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 24px; margin-bottom: 24px; }
.ucalc-report-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 8px; }
.ucalc-report-header h3 { margin: 0; font-size: 1.3rem; color: #d97706; }
.ucalc-area-badge { background: #d97706; color: #fff; padding: 4px 14px; border-radius: 20px; font-size: 0.85rem; font-weight: 700; }

/* ─── Table ─── */
.ucalc-table-responsive { overflow-x: auto; }
.ucalc-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.ucalc-table thead th { background: #f1f5f9; padding: 10px 8px; text-align: left; font-weight: 700; color: #334155; border-bottom: 2px solid #cbd5e1; }
.ucalc-table tbody td { padding: 8px; border-bottom: 1px solid #e2e8f0; vertical-align: middle; }
.ucalc-table tbody tr:last-child td { border-bottom: none; }
.ucalc-table tbody tr:hover { background: #f8fafc; }

/* ─── Footer Info ─── */
.ucalc-footer-info { margin-top: 20px; font-size: 0.85rem; color: #64748b; font-style: italic; padding-top: 16px; border-top: 1px solid #e2e8f0; }
.ucalc-footer-info a { color: #d97706; font-style: normal; font-weight: 600; }
.ucalc-tutorial-box { margin-top: 12px; padding: 12px 16px; background: #fffbeb; border-radius: 8px; font-style: normal; }

/* ─── Actions ─── */
.ucalc-actions { text-align: center; margin-bottom: 24px; }
.ucalc-btn { display: inline-block; padding: 14px 36px; border: none; border-radius: 30px; font-size: 1.05rem; font-weight: 700; cursor: pointer; transition: all 0.25s; }
.ucalc-btn-primary { background: #d97706; color: #fff; }
.ucalc-btn-primary:hover { background: #b45309; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(217, 119, 6, 0.35); }
.ucalc-btn-primary:active { transform: translateY(0); }

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .ucalc-container { padding: 0 10px; }
  .ucalc-header h2 { font-size: 1.4rem; }
  .ucalc-input-section { padding: 16px; }
  .ucalc-results { padding: 16px; }
  .ucalc-table { font-size: 0.82rem; }
  .ucalc-table thead th, .ucalc-table tbody td { padding: 6px 4px; }
}
@media (max-width: 480px) {
  .ucalc-header h2 { font-size: 1.2rem; }
  .ucalc-tabs { flex-direction: column; }
  .ucalc-options-row { flex-direction: column; gap: 10px; }
  .ucalc-options-row > div { min-width: unset; }
  .ucalc-dim-row { flex-direction: column; gap: 10px; }
  .ucalc-input-group input[type="number"] { max-width: 100%; }
}

/* ─── Print / PDF ─── */
@media print {
  .ucalc-header-brand { display: block !important; }
  .ucalc-input-section, .ucalc-actions, .ucalc-tabs { display: none !important; }
  .ucalc-container { max-width: 100%; padding: 0; }
  .ucalc-results { border: none; padding: 0; box-shadow: none; }
  .ucalc-business-header { border-bottom-color: #d97706; }
  .ucalc-quotation-title { color: #d97706; }
  .ucalc-report-header h3 { color: #d97706; }
}
