/* Ututui Calculadora V2 — estilos autocontenidos */
.uc-wrap {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #333;
  max-width: 720px;
  margin: 0 auto;
}

/* ── Utilidades ─────────────────────────────────────────────────────────── */
.uc-hidden { display: none !important; }

/* ── Header del widget ──────────────────────────────────────────────────── */
.uc-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.uc-logo-img { width: 52px; height: auto; flex-shrink: 0; }
.uc-title    { margin: 0 0 2px; font-size: 1.6rem; color: #3c1a7a; }
.uc-subtitle { margin: 0; font-size: .8rem; letter-spacing: .08em; color: #666; }

/* ── Campos del formulario ──────────────────────────────────────────────── */
.uc-field { margin-bottom: 22px; }
.uc-label { display: block; font-weight: 700; margin-bottom: 8px; font-size: .95rem; }
.uc-unit  { font-weight: 400; color: #888; }

.uc-input,
.uc-select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color .2s;
}
.uc-input:focus,
.uc-select:focus {
  outline: none;
  border-color: #6a2af7;
}
.uc-input--narrow { max-width: 140px; }

/* ── Grupos de botones de opción ────────────────────────────────────────── */
.uc-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.uc-btn-group--activity .uc-opt-btn { flex: 1 1 140px; text-align: left; padding: 12px 14px; }

.uc-opt-btn {
  padding: 10px 16px;
  border: 2px solid #ddd;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: .9rem;
  line-height: 1.35;
  text-align: center;
  transition: border-color .15s, background .15s;
}
.uc-opt-btn:hover   { border-color: #6a2af7; }
.uc-opt-btn--active {
  border-color: #6a2af7;
  background: #f3eeff;
  color: #3c1a7a;
  font-weight: 700;
}

/* ── Mensajes de error ──────────────────────────────────────────────────── */
.uc-error {
  display: block;
  margin-top: 6px;
  color: #c0392b;
  font-size: .85rem;
}
.uc-hint {
  margin-top: 6px;
  color: #7a5500;
  background: #fff8e1;
  border-left: 3px solid #f0a500;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: .88rem;
}

/* ── Botones de acción ──────────────────────────────────────────────────── */
.uc-actions { margin-top: 28px; }
.uc-actions--row { display: flex; gap: 12px; flex-wrap: wrap; }

.uc-btn {
  padding: 13px 24px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .04em;
  transition: opacity .15s, transform .1s;
}
.uc-btn:disabled { opacity: .6; cursor: default; }
.uc-btn:not(:disabled):hover { opacity: .88; transform: translateY(-1px); }

.uc-btn--primary   { background: #6a2af7; color: #fff; }
.uc-btn--secondary { background: #333;    color: #fff; }

/* ── Resumen del gato ───────────────────────────────────────────────────── */
.uc-summary {
  background: #f7f4ff;
  border-left: 4px solid #6a2af7;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 20px;
}
.uc-summary p { margin: 4px 0; font-size: .95rem; }
.uc-mer { font-size: 1rem; }
.uc-rer { font-size: .85rem; color: #888; }

/* ── Títulos de sección ─────────────────────────────────────────────────── */
.uc-section-title {
  margin: 28px 0 10px;
  font-size: 1rem;
  font-weight: 700;
  color: #3c1a7a;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ── Tablas ─────────────────────────────────────────────────────────────── */
.uc-table-wrap { overflow-x: auto; margin-bottom: 8px; }
.uc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.uc-table th {
  padding: 8px 10px;
  text-align: left;
  color: #fff;
  font-weight: 700;
}
.uc-table td { padding: 7px 10px; }
.uc-tr-alt td { background: #f5f5f5; }
.uc-tfoot { font-weight: 700; color: #333; background: #eee; padding: 7px 10px; }
.uc-time  { font-weight: 700; color: #3c1a7a; }

/* Cabecera por color de tabla */
.uc-table--purple thead tr { background: #6a2af7; }
.uc-table--blue   thead tr { background: #2196f3; }
.uc-table--orange thead tr { background: #f8a355; }

/* ── Mensajes de estado ─────────────────────────────────────────────────── */
.uc-msg {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: .95rem;
}
.uc-msg--success { background: #e7faf0; border: 1px solid #13ce66; color: #085229; }
.uc-msg--error   { background: #fff0f0; border: 1px solid #f00;    color: #800; }
.uc-msg--info    { background: #e8f4fd; border: 1px solid #2196f3; color: #0d47a1; }

/* ── Nota de pie ────────────────────────────────────────────────────────── */
.uc-note {
  font-size: .85rem;
  color: #555;
  margin: 8px 0 20px;
  padding: 8px 12px;
  background: #f9f9f9;
  border-radius: 4px;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 540px) {
  .uc-btn-group--activity .uc-opt-btn { flex: 1 1 100%; }
  .uc-actions--row { flex-direction: column; }
  .uc-btn { width: 100%; text-align: center; }
  .uc-table { font-size: .8rem; }
  .uc-table th, .uc-table td { padding: 5px 7px; }
}
