/* ══════════════════════════════════════════
   ASISTENTE DE CORREO — Design System
   ══════════════════════════════════════════ */

/* ─── Custom Properties ─── */
:root {
  /* Brand (overridden by JS on load) */
  --c-brand:       #0057b8;
  --c-brand-hover: #004a9f;
  --c-brand-light: #e8f0fb;
  --c-brand-ultra: #f0f6ff;

  /* Semaphore */
  --c-green:      #16a34a;
  --c-green-bg:   #f0fdf4;
  --c-green-ring: #bbf7d0;
  --c-amber:      #d97706;
  --c-amber-bg:   #fffbeb;
  --c-amber-ring: #fde68a;
  --c-red:        #dc2626;
  --c-red-bg:     #fef2f2;
  --c-red-ring:   #fecaca;

  /* Neutral */
  --c-text:       #111827;
  --c-text-soft:  #6b7280;
  --c-text-xs:    #9ca3af;
  --c-bg:         #f8fafc;
  --c-white:      #ffffff;
  --c-border:     #e5e7eb;
  --c-border-soft:#f1f3f5;

  /* Geometry */
  --r-sm:  6px;
  --r:     10px;
  --r-lg:  14px;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 14px rgba(0,0,0,.06);

  /* Type */
  --font: 'DM Sans', system-ui, sans-serif;
  --max:  600px;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  min-height: 100svh;
}

/* ─── Layout ─── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ─── Header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-border);
}
.hdr-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hdr-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: .9375rem;
  color: var(--c-text);
}
.hdr-logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  flex-shrink: 0;
}
.btn-back {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font);
  font-size: .875rem;
  font-weight: 600;
  color: var(--c-text-soft);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  transition: color .15s, background .15s;
}
.btn-back:hover { color: var(--c-brand); background: var(--c-brand-light); }

.hdr-actions { display: flex; align-items: center; gap: 4px; }
.btn-theme {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  color: var(--c-text-soft);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--r-sm);
  transition: color .15s, background .15s;
}
.btn-theme:hover { color: var(--c-brand); background: var(--c-brand-light); }
.btn-theme svg { width: 18px; height: 18px; }

/* ─── Main ─── */
main { padding: 28px 0 72px; }
#app { position: relative; min-height: 160px; }

/* ─── Animations ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: .45; }
}

.anim      { animation: fadeUp .22s ease both; }
.anim-d1   { animation-delay: .05s; }
.anim-d2   { animation-delay: .1s; }
.anim-d3   { animation-delay: .15s; }

/* ─── Home ─── */
.home-hero {
  margin-bottom: 20px;
  padding-top: 2px;
}
.home-hero h1 {
  font-size: clamp(1.35rem, 5.5vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.22;
  margin-bottom: 8px;
}
.home-hero p {
  font-size: .9375rem;
  color: var(--c-text-soft);
}

.card-stack { display: flex; flex-direction: column; gap: 10px; }

.flow-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  background: var(--c-white);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-lg);
  cursor: pointer;
  text-align: left;
  box-shadow: var(--shadow);
  transition: border-color .15s, box-shadow .15s, transform .12s;
}
.flow-card:hover {
  border-color: var(--c-brand);
  box-shadow: 0 0 0 3px var(--c-brand-light), var(--shadow);
  transform: translateY(-1px);
}
.flow-card:active { transform: translateY(0); box-shadow: var(--shadow); }
.flow-card.secondary {
  background: var(--c-bg);
  box-shadow: none;
  border-style: dashed;
}
.flow-card.secondary:hover { background: var(--c-white); }

.card-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--c-brand-light);
  color: var(--c-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.card-icon-wrap svg { width: 22px; height: 22px; }
.flow-card.secondary .card-icon-wrap {
  background: var(--c-border-soft);
  color: var(--c-text-soft);
}
.card-body { flex: 1; min-width: 0; }
.card-body h2 {
  font-size: .9375rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.card-body p {
  font-size: .8rem;
  color: var(--c-text-soft);
  line-height: 1.4;
}
.card-arrow {
  color: var(--c-text-xs);
  flex-shrink: 0;
  transition: transform .15s, color .15s;
}
.flow-card:hover .card-arrow { color: var(--c-brand); transform: translateX(3px); }

/* ─── Input screen ─── */
.input-screen h2 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -.015em;
  margin-bottom: 18px;
  line-height: 1.3;
}
.field-group { margin-bottom: 2px; }
.field-group input {
  width: 100%;
  padding: 13px 15px;
  font-size: 1rem;
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-white);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
  -webkit-appearance: none;
}
.field-group input:focus {
  border-color: var(--c-brand);
  box-shadow: 0 0 0 3px var(--c-brand-light);
}
.field-group input::placeholder { color: var(--c-text-xs); }

.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 10px 0 18px;
  padding: 11px 13px;
  background: var(--c-bg);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--r);
}
.privacy-note svg { flex-shrink: 0; color: var(--c-text-xs); margin-top: 2px; }
.privacy-note span { font-size: .8125rem; color: var(--c-text-soft); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: .9375rem;
  padding: 13px 22px;
  border-radius: var(--r);
  border: none;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  transition: background .15s, box-shadow .15s, transform .1s, opacity .15s;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn-full { width: 100%; }

.btn-primary {
  background: var(--c-brand);
  color: #fff;
}
.btn-primary:hover {
  background: var(--c-brand-hover);
  box-shadow: 0 4px 14px rgba(0,87,184,.22);
}
.btn-outline {
  background: var(--c-white);
  color: var(--c-text);
  border: 1.5px solid var(--c-border);
}
.btn-outline:hover {
  border-color: var(--c-brand);
  color: var(--c-brand);
  background: var(--c-brand-ultra);
}
.btn-green {
  background: var(--c-green);
  color: #fff;
}
.btn-green:hover {
  background: #15803d;
  box-shadow: 0 4px 14px rgba(22,163,74,.22);
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font);
  font-size: .75rem;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: var(--r-sm);
  border: 1px solid var(--c-border);
  background: var(--c-bg);
  color: var(--c-text-soft);
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
}
.btn-copy:hover { background: var(--c-brand-light); color: var(--c-brand); border-color: var(--c-brand); }
.btn-copy.copied { background: var(--c-green-bg); color: var(--c-green); border-color: var(--c-green-ring); }

/* ─── Loading ─── */
.loading-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 20px;
  gap: 14px;
}
.spinner {
  width: 38px;
  height: 38px;
  border: 3px solid var(--c-border);
  border-top-color: var(--c-brand);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.loading-screen p { font-size: .9375rem; color: var(--c-text-soft); }

/* ─── Cards ─── */
.card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-padded { padding: 18px; }

.section-label {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--c-text-xs);
  margin: 18px 0 7px;
}

/* ─── Copy rows (Flow A settings) ─── */
.copy-row {
  display: flex;
  align-items: center;
  padding: 11px 18px;
  gap: 10px;
  border-bottom: 1px solid var(--c-border-soft);
}
.copy-row:last-child { border-bottom: none; }
.copy-row-label {
  font-size: .6875rem;
  font-weight: 700;
  color: var(--c-text-xs);
  text-transform: uppercase;
  letter-spacing: .04em;
  width: 116px;
  flex-shrink: 0;
}
.copy-row-value {
  flex: 1;
  font-size: .875rem;
  font-weight: 600;
  color: var(--c-text);
  word-break: break-all;
}
.copy-row-btn { flex-shrink: 0; }

/* ─── TLS row ─── */
.tls-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
}
.tls-dot { flex-shrink: 0; margin-top: 3px; }
.tls-text strong { display: block; font-size: .875rem; font-weight: 700; margin-bottom: 2px; }
.tls-text p { font-size: .8125rem; color: var(--c-text-soft); line-height: 1.5; }
.tls-guide { font-style: italic; margin-top: 5px; }

/* ─── Dots ─── */
.dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dot-green  { background: var(--c-green);  box-shadow: 0 0 0 3px var(--c-green-ring); }
.dot-amber  { background: var(--c-amber);  box-shadow: 0 0 0 3px var(--c-amber-ring); }
.dot-red    {
  background: var(--c-red);
  box-shadow: 0 0 0 3px var(--c-red-ring);
  animation: pulse-dot 2s ease-in-out infinite;
}

/* ─── Device tabs ─── */
.device-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}
.device-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 9px 4px 7px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r);
  background: var(--c-white);
  cursor: pointer;
  font-family: var(--font);
  font-size: .6875rem;
  font-weight: 600;
  color: var(--c-text-soft);
  transition: all .15s;
}
.device-tab svg { width: 18px; height: 18px; }
.device-tab.active {
  border-color: var(--c-brand);
  background: var(--c-brand-light);
  color: var(--c-brand);
}
.device-tab:hover:not(.active) { border-color: var(--c-brand); color: var(--c-brand); }

/* ─── Client chips ─── */
.client-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.client-chip {
  padding: 6px 13px;
  border: 1.5px solid var(--c-border);
  border-radius: 20px;
  font-family: var(--font);
  font-size: .8125rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--c-white);
  color: var(--c-text-soft);
  transition: all .15s;
}
.client-chip.active { border-color: var(--c-brand); background: var(--c-brand-light); color: var(--c-brand); }
.client-chip:hover:not(.active) { border-color: var(--c-brand); color: var(--c-brand); }

/* ─── Download button ─── */
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font);
  font-size: .875rem;
  font-weight: 600;
  padding: 9px 15px;
  border-radius: var(--r);
  border: 1.5px solid var(--c-brand);
  color: var(--c-brand);
  background: var(--c-brand-light);
  text-decoration: none;
  transition: all .15s;
  margin-bottom: 14px;
}
.download-btn:hover { background: var(--c-brand); color: #fff; }

/* ─── Guide steps ─── */
.guide-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 2px;
}
.guide-step { display: flex; gap: 12px; }
.step-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--c-brand);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-body h4 { font-size: .875rem; font-weight: 700; margin-bottom: 2px; }
.step-body p { font-size: .8125rem; color: var(--c-text-soft); line-height: 1.5; white-space: pre-line; }

/* ─── Password notice ─── */
.pwd-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  background: var(--c-amber-bg);
  border: 1px solid var(--c-amber-ring);
  border-radius: var(--r);
}
.pwd-notice svg { flex-shrink: 0; color: var(--c-amber); margin-top: 1px; }
.pwd-notice span { font-size: .8125rem; color: #78350f; line-height: 1.5; }

/* ─── Triage ─── */
.triage-progress {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 22px;
}
.t-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c-border);
  flex-shrink: 0;
  transition: background .3s, transform .25s;
}
.t-dot.active  { background: var(--c-brand); transform: scale(1.44); }
.t-dot.done    { background: var(--c-green); }
.t-line {
  flex: 1;
  height: 2px;
  background: var(--c-border);
  border-radius: 1px;
  overflow: hidden;
  margin: 0 4px;
}
.t-line-fill {
  height: 100%;
  background: var(--c-green);
  border-radius: 1px;
  transition: width .4s ease;
}

.triage-head h2 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.3;
  margin-bottom: 12px;
}
.triage-context {
  padding: 12px 15px;
  background: var(--c-brand-ultra);
  border-left: 3px solid var(--c-brand);
  border-radius: 0 var(--r) var(--r) 0;
  font-size: .875rem;
  color: var(--c-text-soft);
  line-height: 1.6;
  margin-bottom: 4px;
}
.triage-context a { color: var(--c-brand); font-weight: 600; word-break: break-all; }
.triage-q {
  font-size: 1rem;
  font-weight: 700;
  margin: 14px 0 12px;
}
.triage-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ─── DNS semaphore ─── */
.dns-header { margin-bottom: 14px; }
.dns-header h2 { font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; }
.dns-header p { font-size: .875rem; color: var(--c-text-soft); margin-top: 3px; }

.sema-list { display: flex; flex-direction: column; gap: 4px; }
.sema-item {}
.sema-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  cursor: pointer;
  transition: background .12s;
}
.sema-row:hover { background: #fafafa; }
.sema-row.open {
  border-radius: var(--r) var(--r) 0 0;
  border-bottom-color: transparent;
}
.sema-dot-wrap {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sema-dot-wrap .dot { width: 12px; height: 12px; }
.sema-name {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--c-text-soft);
  width: 40px;
  flex-shrink: 0;
}
.sema-status { flex: 1; font-size: .875rem; color: var(--c-text); line-height: 1.4; }
.sema-mx-value { display: block; font-size: .75rem; color: var(--c-text-soft); margin-top: 2px; }
.sema-toggle-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 3px;
  font-family: var(--font);
  font-size: .7rem;
  font-weight: 600;
  color: var(--c-text-xs);
  background: none;
  border: none;
  cursor: pointer;
  padding: 3px;
  border-radius: var(--r-sm);
  transition: color .12s;
  white-space: nowrap;
}
.sema-toggle-btn:hover { color: var(--c-brand); }
.sema-toggle-btn svg { transition: transform .2s; }
.sema-row.open .sema-toggle-btn svg { transform: rotate(180deg); }

.sema-detail {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-top: none;
  border-radius: 0 0 var(--r) var(--r);
  padding: 13px 15px;
}
.sema-explainer {
  font-size: .875rem;
  color: var(--c-text-soft);
  line-height: 1.6;
  margin-bottom: 8px;
}
.sema-guide-box {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 11px;
  background: var(--c-amber-bg);
  border: 1px solid var(--c-amber-ring);
  border-radius: var(--r-sm);
  font-size: .8125rem;
  color: #78350f;
  line-height: 1.5;
}
.sema-guide-box.red-guide {
  background: var(--c-red-bg);
  border-color: var(--c-red-ring);
  color: #7f1d1d;
}
.sema-guide-box svg { flex-shrink: 0; margin-top: 1px; }

.dns-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  font-size: .75rem;
  color: var(--c-text-xs);
  flex-wrap: wrap;
}
.legend-item { display: flex; align-items: center; gap: 5px; }

/* ─── Verdict ─── */
.verdict-banner {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 16px 18px;
  border-radius: var(--r-lg);
  margin-bottom: 14px;
}
.verdict-banner.green-banner { background: var(--c-green-bg); border: 1px solid var(--c-green-ring); }
.verdict-banner.amber-banner { background: var(--c-amber-bg); border: 1px solid var(--c-amber-ring); }
.verdict-banner.red-banner   { background: var(--c-red-bg);   border: 1px solid var(--c-red-ring); }
.verdict-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.green-banner .verdict-icon-wrap { background: var(--c-green); }
.amber-banner .verdict-icon-wrap { background: var(--c-amber); }
.red-banner   .verdict-icon-wrap { background: var(--c-red); }
.verdict-icon-wrap svg { color: #fff; }
.verdict-banner-text h2 { font-size: .9375rem; font-weight: 700; margin-bottom: 3px; line-height: 1.3; }
.green-banner .verdict-banner-text h2 { color: #14532d; }
.amber-banner .verdict-banner-text h2 { color: #78350f; }
.red-banner   .verdict-banner-text h2 { color: #7f1d1d; }
.verdict-banner-text p { font-size: .8125rem; line-height: 1.5; }
.green-banner .verdict-banner-text p { color: #166534; }
.amber-banner .verdict-banner-text p { color: #92400e; }
.red-banner   .verdict-banner-text p  { color: #991b1b; }

.summary-pre {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  padding: 12px 14px;
  font-family: 'Courier New', Courier, monospace;
  font-size: .75rem;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 260px;
  overflow-y: auto;
  color: var(--c-text);
  margin-bottom: 10px;
  -webkit-overflow-scrolling: touch;
}
.summary-pre:focus-within { outline: 2px solid var(--c-brand); outline-offset: 1px; }

.action-stack { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }

/* ─── Comparación de nameservers (gate other_ns) ─── */
.ns-compare-label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--c-text-soft, #64748b);
  margin: 10px 0 4px;
}
.ns-compare-label:first-child { margin-top: 0; }
.ns-list {
  list-style: none;
  margin: 0;
  padding: 8px 12px;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  font-family: 'Courier New', Courier, monospace;
  font-size: .8rem;
  line-height: 1.7;
  color: var(--c-text);
  word-break: break-word;
}

/* ─── Gate Fase 2: cuerpo de texto y elementos compartidos ─── */
.gate-text {
  font-size: .875rem;
  line-height: 1.6;
  color: var(--c-text-soft);
}
.gate-text strong { color: var(--c-text); font-weight: 600; }
.gate-text + .gate-text { margin-top: 10px; }

/* Dominio destacado (para tenerlo a mano, p. ej. al pagar en Pago Fácil) */
.gate-domain-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.gate-domain-row .gate-text { margin: 0; }
.gate-domain {
  display: inline-block;
  font-family: 'Courier New', Courier, monospace;
  font-size: .8125rem;
  font-weight: 700;
  color: var(--c-text);
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: 3px 9px;
  word-break: break-all;
}

/* Teléfono como TEXTO (no botón), coherente en todas las pantallas comerciales */
.gate-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: .8125rem;
  line-height: 1.45;
  color: var(--c-text-soft);
}
.gate-phone svg { flex-shrink: 0; color: var(--c-text-xs); }
.gate-phone strong { color: var(--c-text); font-weight: 600; }

/* ─── Error ─── */
.error-card {
  background: var(--c-red-bg);
  border: 1px solid var(--c-red-ring);
  border-radius: var(--r-lg);
  padding: 20px;
}
.error-card h3 { font-size: .9375rem; font-weight: 700; color: var(--c-red); margin-bottom: 6px; }
.error-card p  { font-size: .875rem; color: #7f1d1d; }

/* ─── Fix DNS guide box ─── */
.fix-dns-box {
  padding: 14px 16px;
  background: var(--c-amber-bg);
  border: 1px solid var(--c-amber-ring);
  border-radius: var(--r-lg);
  margin-bottom: 4px;
}
.fix-dns-box p { font-size: .9rem; color: #78350f; line-height: 1.6; }

/* ══════════════════════════════════════════
   MODO OSCURO (negro neutro, sin tintes morados)
   Solo se reasigna la paleta neutra y los fondos del
   semáforo; el color de marca y los botones siguen a color.
   --c-brand-light / --c-brand-ultra los ajusta app.js inline
   por tema (tinte translúcido de marca sobre fondo oscuro).
   ══════════════════════════════════════════ */
[data-theme="dark"] {
  /* Neutral — grises puros, negro de fondo */
  --c-text:        #fafafa;
  --c-text-soft:   #a3a3a3;
  --c-text-xs:     #737373;
  --c-bg:          #0a0a0a;
  --c-white:       #171717;
  --c-border:      #2e2e2e;
  --c-border-soft: #232323;

  /* Semáforo — puntos vivos, fondos oscuros translúcidos */
  --c-green:      #22c55e;
  --c-green-bg:   #0e2a17;
  --c-green-ring: #14532d;
  --c-amber:      #fbbf24;
  --c-amber-bg:   #2a1d05;
  --c-amber-ring: #6b4e0a;
  --c-red:        #f87171;
  --c-red-bg:     #2a1010;
  --c-red-ring:   #7f1d1d;

  --shadow: 0 1px 3px rgba(0,0,0,.5), 0 4px 14px rgba(0,0,0,.45);
}

/* Header translúcido sobre negro */
[data-theme="dark"] .site-header { background: rgba(10,10,10,.85); }

/* Hover de filas que usaban un gris claro fijo */
[data-theme="dark"] .sema-row:hover { background: #1f1f1f; }
[data-theme="dark"] .flow-card.secondary:hover { background: var(--c-white); }

/* Textos antes fijados en tonos oscuros → variantes claras legibles */
[data-theme="dark"] .pwd-notice span,
[data-theme="dark"] .sema-guide-box,
[data-theme="dark"] .fix-dns-box p { color: #fcd34d; }
[data-theme="dark"] .sema-guide-box.red-guide { color: #fca5a5; }
[data-theme="dark"] .error-card p { color: #fca5a5; }

/* Banners de veredicto: iconos en blanco sobre el color del semáforo
   se ven mal con verde/ámbar claros → texto del icono en negro */
[data-theme="dark"] .verdict-icon-wrap svg { color: #0a0a0a; }
[data-theme="dark"] .green-banner .verdict-banner-text h2 { color: #4ade80; }
[data-theme="dark"] .amber-banner .verdict-banner-text h2 { color: #fcd34d; }
[data-theme="dark"] .red-banner   .verdict-banner-text h2 { color: #fca5a5; }
[data-theme="dark"] .green-banner .verdict-banner-text p { color: #86efac; }
[data-theme="dark"] .amber-banner .verdict-banner-text p { color: #fde68a; }
[data-theme="dark"] .red-banner   .verdict-banner-text p { color: #fecaca; }

/* ─── Responsive ─── */
@media (max-width: 360px) {
  .device-tabs { grid-template-columns: repeat(2, 1fr); }
  .copy-row-label { width: 88px; font-size: .6rem; }
}
@media (min-width: 480px) {
  main { padding: 36px 0 88px; }
  .home-hero h1 { font-size: 1.8rem; }
}
