/* ============================================================
   Calculadora Muro Dos Caras Durock - ConstruyamosH
   Tema: Teal (#0f766e) — Panel Cemento / Durock
   ============================================================ */

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

/* ─── Hidden utility ─── */
.dcalc-hidden { display: none !important; }

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

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

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

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

/* ─── Tabs ─── */
.dcalc-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.dcalc-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;
}
.dcalc-tab.active {
  border-color: #0f766e;
  background: #f0fdfa;
  color: #0f766e;
}
.dcalc-tab:hover { border-color: #94a3b8; }

/* ─── Input Groups ─── */
.dcalc-input-group { display: none; }
.dcalc-input-group.active { display: block; }

.dcalc-input-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: #334155;
  margin-bottom: 4px;
}
.dcalc-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: #0f766e;
  transition: border-color 0.2s;
}
.dcalc-input-group input[type="number"]:focus {
  outline: none;
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

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

/* ─── Options Row ─── */
.dcalc-options-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
  align-items: flex-end;
}
.dcalc-options-row > div { flex: 1; min-width: 140px; }
.dcalc-options-row label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: #475569;
  margin-bottom: 4px;
}
.dcalc-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;
}
.dcalc-options-row select:focus {
  outline: none;
  border-color: #0f766e;
}

.dcalc-acoustic-label {
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #1e293b;
  cursor: pointer;
}
.dcalc-acoustic-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #0f766e;
  cursor: pointer;
}
.dcalc-acoustic-hint {
  display: block;
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 2px;
  font-style: italic;
}

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

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

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

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

/* ─── Actions ─── */
.dcalc-actions { text-align: center; margin-bottom: 24px; }
.dcalc-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;
}
.dcalc-btn-primary {
  background: #0f766e;
  color: #fff;
}
.dcalc-btn-primary:hover {
  background: #115e59;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 118, 110, 0.35);
}
.dcalc-btn-primary:active {
  transform: translateY(0);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .dcalc-container { padding: 0 10px; }
  .dcalc-header h2 { font-size: 1.4rem; }
  .dcalc-input-section { padding: 16px; }
  .dcalc-results { padding: 16px; }
  .dcalc-table { font-size: 0.82rem; }
  .dcalc-table thead th, .dcalc-table tbody td { padding: 6px 4px; }
}

@media (max-width: 480px) {
  .dcalc-header h2 { font-size: 1.2rem; }
  .dcalc-tabs { flex-direction: column; }
  .dcalc-options-row { flex-direction: column; gap: 10px; }
  .dcalc-options-row > div { min-width: unset; }
  .dcalc-dim-row { flex-direction: column; gap: 10px; }
  .dcalc-input-group input[type="number"] { max-width: 100%; }
}

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