:root {
  --bg: #f3f7fb;
  --panel: #ffffff;
  --panel-2: #f8fbff;
  --text: #17324d;
  --muted: #6d7f92;
  --line: #dbe7f3;
  --brand: #0097ac;
  --brand-2: #006f80;
  --accent: #ee8600;
  --success: #1f8f4e;
  --warning: #ad7a00;
  --danger: #b42318;
  --shadow: 0 10px 30px rgba(17, 62, 95, 0.08);
  --radius: 18px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(239,192,134,0.18), transparent 24%),
    radial-gradient(circle at bottom right, rgba(0,151,172,0.08), transparent 28%),
    var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===== NUEVO HEADER DEVHUB ===== */
.dh-topbar{
  background: rgba(255,255,255,0.95);
  color:#17324d;
  box-shadow:0 10px 24px rgba(11,45,69,.06);
  border-bottom:1px solid rgba(23,50,77,.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 5000;
}

.dh-topbar-inner{
  max-width:1280px;
  margin:0 auto;
  padding:18px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
  position: relative;
  z-index: 5001;
}

.dh-brand{
  display:flex;
  align-items:center;
  gap:16px;
  min-width:320px;
}

.dh-brand img{
  height:76px;
  width:auto;
  object-fit:contain;
  display:block;
  flex:0 0 auto;
}

.dh-brand-copy{
  display:none;
}

.dh-brand-copy h1,
.dh-brand-copy p{
  margin:0;
  color:#17324d;
}

.dh-brand-copy h1{
  font-size:18px;
  line-height:1.15;
  font-weight:700;
}

.dh-brand-copy p{
  margin-top:4px;
  font-size:12px;
  line-height:1.4;
  color:rgba(23,50,77,.72);
}

.dh-nav{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.dh-nav-link,
.dh-dropbtn{
  appearance:none;
  -webkit-appearance:none;
  border:none;
  outline:none;
  box-shadow:none;
  background:transparent;
  color:#1f2328;
  font-family:inherit;
  font-size:14px;
  font-weight:700;
  line-height:1;
  padding:12px 16px;
  border-radius:999px;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  white-space:nowrap;
  text-decoration:none;
  transition: background .2s ease, color .2s ease;
}

.dh-nav-link:hover,
.dh-nav-link.active,
.dh-dropbtn:hover,
.dh-dropdown.open .dh-dropbtn{
  background:rgba(0,151,172,.08);
  color:#006f80;
}

.dh-dropdown{
  position:relative;
}

.dh-dropdown-menu{
  display:none;
  position:absolute;
  top:calc(100% + 10px);
  left:0;
  min-width:240px;
  background:#fff;
  border:1px solid #dbe7f3;
  border-radius:16px;
  box-shadow:0 18px 36px rgba(11,45,69,.14);
  overflow:hidden;
  z-index:9999;
  padding:8px;
}

.dh-dropdown.open .dh-dropdown-menu{
  display:block;
}

.dh-dropdown-menu a{
  display:block;
  padding:13px 15px;
  color:#17324d;
  font-size:14px;
  font-weight:600;
  background:#fff;
  text-decoration:none;
  border-radius:12px;
}

.dh-dropdown-menu a:hover{
  background:#f4fbfc;
  color:#006f80;
}

/* ===== CONTENIDO GENERAL ===== */
.shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 30px 24px 40px;
}

.hero{
  background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(237,244,247,.96));
  border:1px solid rgba(0,151,172,.10);
  border-radius:34px;
  box-shadow:0 18px 40px rgba(11,45,69,.06);
  padding:42px;
  display:grid;
  grid-template-columns: 1.08fr .92fr;
  gap:34px;
  align-items:center;
  overflow:visible;
  position:relative;
  z-index:1;
}

.hero::before{
  content:"";
  position:absolute;
  right:-60px;
  top:28px;
  width:420px;
  height:420px;
  background: radial-gradient(circle, rgba(239,192,134,.58) 0%, rgba(239,192,134,.20) 48%, transparent 70%);
  border-radius:50%;
  pointer-events:none;
  z-index:0;
}

.hero-content{
  position:relative;
  z-index:2;
}

.hero h2{
  margin:0 0 18px;
  font-size: clamp(44px, 6.2vw, 74px);
  line-height:.98;
  color:#494949;
  letter-spacing:-0.04em;
  font-weight:800;
  max-width:760px;
}

.hero p{
  margin:0 0 10px;
  color:#4c5663;
  font-size:20px;
  line-height:1.45;
  max-width:700px;
}

.hero-main-line{
  font-size:20px;
  color:#42464f;
  margin-top:4px;
  margin-bottom:22px;
}

.hero-actions{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-top:18px;
}

.hero-btn-primary,
.hero-btn-secondary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:52px;
  padding:0 22px;
  border-radius:999px;
  text-decoration:none;
  font-weight:700;
  font-size:16px;
  transition: transform .2s ease, filter .2s ease;
}

.hero-btn-primary{
  background: linear-gradient(135deg, #f5a22c, #ee8600);
  color:#fff;
  box-shadow:0 14px 24px rgba(238,134,0,.18);
}

.hero-btn-secondary{
  background:#696969;
  color:#fff;
  box-shadow:0 14px 24px rgba(0,0,0,.10);
}

.hero-btn-primary:hover,
.hero-btn-secondary:hover{
  transform:translateY(-1px);
  filter:brightness(1.02);
}

.hero-points{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:18px;
}

.pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:0 14px;
  border-radius:999px;
  background:#fff;
  border:1px solid rgba(23,50,77,.08);
  color:#5a6772;
  font-size:13px;
  font-weight:700;
  box-shadow:0 6px 12px rgba(12,33,53,.04);
}

.hero-side{
  position:relative;
  z-index:2;
  background:rgba(255,255,255,.74);
  border:1px solid rgba(23,50,77,.08);
  border-radius:26px;
  padding:26px 28px;
  box-shadow:0 10px 24px rgba(12,33,53,.05);
}

.hero-side h3{
  margin:0 0 12px;
  font-size:16px;
  color:#17324d;
}

.hero-side ul{
  margin:0;
  padding-left:18px;
  color:#637280;
  line-height:1.7;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin: 26px 0 16px;
}

.section-title h2 {
  margin: 0;
  font-size: 24px;
}

.section-title p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.cards {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  position:relative;
  background:#fff;
  border-radius:18px;
  border:1px solid rgba(23,50,77,.06);
  box-shadow:0 12px 24px rgba(12,33,53,.08);
  padding:24px 24px 82px;
  min-height:220px;
  transition:transform .2s ease, box-shadow .2s ease;
  overflow:hidden;
}

.card::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:100%;
  height:6px;
  background:linear-gradient(135deg, #f5a22c, #ee8600);
}

.card h3{
  margin:0 0 10px;
  font-size:20px;
  color:#4a4a4a;
  letter-spacing:-0.02em;
}

.card p{
  margin:0;
  color:#5b6470;
  line-height:1.52;
  font-size:15px;
}

.card .meta {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

.actions{
  position:absolute;
  left:24px;
  right:24px;
  bottom:22px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.btn,
.btn-secondary,
.btn-ghost {
  appearance: none;
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
}

.btn:hover {
  filter: brightness(1.05);
}

.btn-secondary {
  background: #fff;
  color: var(--brand-2);
  border: 1px solid var(--line);
}

.btn-ghost {
  background: transparent;
  color: var(--brand-2);
  border: 1px dashed var(--line);
}

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

.panel h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(320px,430px) 1fr;
  gap: 22px;
  align-items: start;
}

.form-card,
.result-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 24px;
}

.form-card h2,
.result-card h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.form-subtitle,
.muted {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.form-grid {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.field small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd9e6;
  border-radius: 12px;
  font: inherit;
  background: #fff;
  color: var(--text);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(0,151,172,0.10);
}

.form-footer {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.result-stack {
  display: grid;
  gap: 16px;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.kpi {
  background: linear-gradient(180deg,#fff,#f8fbff);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}

.kpi .label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.kpi .value {
  font-size: 28px;
  font-weight: 800;
  margin-top: 6px;
}

.kpi .hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.status {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.status.SUCCESS { background: rgba(31,143,78,0.12); color: var(--success); }
.status.CLOSED  { background: rgba(109,127,146,0.12); color: #516273; }
.status.PENDING { background: rgba(173,122,0,0.12); color: var(--warning); }
.status.ERROR   { background: rgba(180,35,24,0.12); color: var(--danger); }
.status.OK      { background: rgba(31,143,78,0.12); color: var(--success); }
.status.INFO    { background: rgba(0,151,172,0.12); color: var(--brand-2); }

.qr-wrap {
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 20px;
  padding: 18px;
  min-height: 280px;
}

.qr-wrap img {
  display: block;
  max-width: min(100%, 420px);
  max-height: 420px;
  object-fit: contain;
  height: auto;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
  gap: 12px;
}

.summary-item {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}

.summary-item .label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 5px;
}

.summary-item .value {
  font-weight: 700;
  word-break: break-word;
}

pre {
  margin: 0;
  background: #0f1720;
  color: #d9f2ff;
  border-radius: 18px;
  padding: 18px;
  overflow: auto;
  border: 1px solid #203041;
  font-size: 12px;
  line-height: 1.55;
}

.monitor-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
}

.monitor-block {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 20px;
}

.monitor-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.monitor-head h2 {
  margin: 0;
  font-size: 20px;
}

.monitor-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.transaction-list,
.log-list {
  display: grid;
  gap: 12px;
}

.tx-card {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}

.tx-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.tx-title {
  font-size: 16px;
  font-weight: 800;
}

.tx-meta {
  font-size: 13px;
  color: var(--muted);
}

.tx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
  gap: 10px;
}

.tx-field {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
}

.tx-field .name {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: .04em;
  margin-bottom: 4px;
}

.tx-field .val {
  font-size: 14px;
  font-weight: 700;
  word-break: break-word;
}

.log-item {
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  font-family: Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
}

.log-item.error {
  background: rgba(180,35,24,0.06);
  border-color: rgba(180,35,24,0.25);
}

.log-item.success {
  background: rgba(31,143,78,0.06);
  border-color: rgba(31,143,78,0.25);
}

.empty-state {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
  background: var(--panel-2);
}

.footer-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.scan-box {
  min-height: 260px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 18px;
  background: var(--panel-2);
}

.result-text {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  word-break: break-word;
  font-weight: 600;
}

.code-block {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

.hero.hero-compact {
  grid-template-columns: 1.3fr .9fr;
}

.tab-switcher {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 18px;
}

.tab-link {
  padding: 12px 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 700;
  color: var(--brand-2);
}

.tab-link.active {
  background: linear-gradient(135deg,var(--brand),var(--brand-2));
  color: #fff;
  border-color: transparent;
}

.payout-grid {
  display: grid;
  grid-template-columns: minmax(420px,1.2fr) minmax(320px,.8fr);
  gap: 22px;
  align-items: start;
}

.payout-grid.two-up {
  grid-template-columns: repeat(2,minmax(320px,1fr));
}

.inline-grid {
  display: grid;
  gap: 14px;
}

.inline-grid.two {
  grid-template-columns: repeat(2,minmax(0,1fr));
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.data-table th,
.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: var(--panel-2);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
}

.data-table.compact input,
.data-table.compact select {
  min-width: 110px;
  padding: 9px 10px;
  border-radius: 10px;
}

.small {
  padding: 8px 10px;
  font-size: 12px;
}

.soft-panel {
  box-shadow: none;
  background: var(--panel-2);
}

.tip-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

@media (max-width: 1100px) {
  .payout-grid,
  .payout-grid.two-up,
  .hero.hero-compact,
  .inline-grid.two {
    grid-template-columns: 1fr;
  }

  .dh-topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .dh-nav {
    justify-content: flex-start;
    width: 100%;
  }
}

@media (max-width: 980px) {
  .hero,
  .form-layout,
  .monitor-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .dh-topbar-inner {
    padding: 14px 16px;
  }

  .dh-brand {
    min-width: auto;
    flex-direction: column;
    align-items: flex-start;
  }

  .shell {
    padding: 22px 16px 32px;
  }

  .hero {
    padding: 22px;
  }

  .hero h2 {
    font-size: clamp(40px, 13vw, 58px);
  }

  .dh-nav {
    width: 100%;
    gap: 8px;
  }

  .dh-dropdown-menu {
    min-width: 200px;
  }
}