/* Mismo lenguaje visual que cuenta.felipevergara.co. */
:root {
  --blue: #3b9df8;
  --blue-dark: #2b7fd4;
  --navy: #1A2540;
  --green: #16a34a;
  --amber: #b45309;
  --amber-bg: #fffbeb;
  --gray: #6b7a8c;
  --border: #dde5ee;
  --bg-soft: #eef6ff;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Lato', 'Segoe UI', sans-serif;
  background: #fff; color: var(--navy);
  display: flex; flex-direction: column; align-items: center;
  min-height: 100vh; padding: 24px 16px 64px;
}
header { padding: 8px 0 28px; text-align: center; }
header img { height: 38px; display: block; margin: 0 auto; }
header .curso {
  display: inline-block; margin-top: 12px; font-size: 11px; font-weight: 900;
  letter-spacing: .6px; text-transform: uppercase; color: var(--blue-dark);
  background: var(--bg-soft); border-radius: 999px; padding: 5px 12px;
}
.card {
  width: 100%; max-width: 480px; background: #fff;
  border: 1px solid var(--border); border-radius: 20px;
  overflow: hidden; box-shadow: 0 12px 40px rgba(30, 42, 58, .09);
}
.card.ancha { max-width: 860px; }
.card-head {
  background: linear-gradient(160deg, #f2f8ff 0%, #e6f2ff 100%);
  border-bottom: 1px solid var(--border); padding: 24px 28px 22px;
}
.card-body { padding: 24px 28px 28px; }
h1 { font-size: 22px; font-weight: 900; margin-bottom: 8px; }
h2 { font-size: 18px; font-weight: 900; margin-bottom: 10px; }
.sub { color: var(--gray); font-size: 15px; line-height: 1.55; margin-bottom: 20px; }
label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 7px; }
input, textarea {
  width: 100%; padding: 15px 16px; font-size: 16px; font-family: inherit;
  border: 1.5px solid var(--border); border-radius: 12px; color: var(--navy);
  outline: none; margin-bottom: 14px; background: #fbfdff;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 110px; font-size: 14px; line-height: 1.5; }
input:focus, textarea:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(59,157,248,.12); }
button {
  width: 100%; padding: 15px; font-size: 15.5px; font-weight: 800;
  color: #fff; background: var(--blue); border: none; border-radius: 12px;
  cursor: pointer; font-family: inherit;
  box-shadow: 0 4px 14px rgba(59,157,248,.3);
  transition: background .15s, transform .1s, box-shadow .15s;
}
button:hover { background: var(--blue-dark); }
button:active { transform: translateY(1px); }
button:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.btn-ghost { background: #fff; color: var(--gray); border: 1.5px solid var(--border); box-shadow: none; font-weight: 700; }
.btn-ghost:hover { background: #f7fafd; color: var(--navy); }
.btn-green { background: var(--green); box-shadow: 0 4px 14px rgba(22,163,74,.3); }
.btn-green:hover { background: #12833c; }
.btn-danger { background: #fff; color: #b91c1c; border: 1.5px solid #f3d3d3; box-shadow: none; }
.btn-danger:hover { background: #fef4f4; color: #991b1b; }
.btn-chico { width: auto; padding: 8px 14px; font-size: 13px; border-radius: 9px; }
.link { background: none; color: var(--blue); box-shadow: none; font-size: 14px; font-weight: 700; padding: 10px 0; width: auto; }
.link:hover { background: none; text-decoration: underline; }
.stack > * + * { margin-top: 10px; }
.pill {
  display: inline-block; font-size: 11px; font-weight: 900; text-transform: uppercase;
  letter-spacing: .5px; padding: 5px 12px; border-radius: 999px; margin-bottom: 12px;
}
.pill-ok { background: var(--green); color: #fff; }
.nota { background: var(--bg-soft); border-radius: 12px; padding: 14px 16px; font-size: 13px; color: var(--gray); line-height: 1.6; margin: 16px 0; }
.error { color: #dc2626; font-size: 14px; margin-top: 12px; display: none; }
.ok { color: var(--green); font-size: 14px; margin-top: 12px; display: none; font-weight: 700; }
.hidden { display: none !important; }
.center { text-align: center; }
.icono { font-size: 52px; margin-bottom: 14px; }
.secure { text-align: center; font-size: 12px; color: #9aa7b5; margin-top: 14px; }

/* Token del MCP */
.token { border: 1px solid var(--border); border-radius: 14px; padding: 18px; background: #fbfdff; }
.token-titulo { font-size: 15px; font-weight: 900; margin: 0 0 4px; }
.token-texto { font-size: 13.5px; color: var(--gray); line-height: 1.55; margin: 0 0 14px; }
.token-valor {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: 13px; font-weight: 700; color: var(--navy);
  background: #fff; border: 1.5px dashed var(--border); border-radius: 10px;
  padding: 13px 14px; word-break: break-all; line-height: 1.5; user-select: all;
}
.token-aviso { font-size: 12.5px; color: var(--amber); background: var(--amber-bg); border-radius: 9px; padding: 10px 12px; margin-top: 12px; line-height: 1.5; }

/* Pasos de instalación */
.pasos { margin-top: 22px; }
.paso { border-top: 1px solid var(--border); padding: 16px 0 4px; }
.paso-num { font-size: 11px; font-weight: 900; letter-spacing: .5px; text-transform: uppercase; color: var(--blue-dark); margin-bottom: 4px; }
.paso-titulo { font-size: 15px; font-weight: 900; margin-bottom: 6px; }
.paso p { font-size: 13.5px; color: var(--gray); line-height: 1.6; margin-bottom: 10px; }
.comando {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
  background: #0f1a2e; border-radius: 10px; padding: 10px 10px 10px 14px;
}
.comando code {
  flex: 1; min-width: 0; color: #e6f0ff; font-size: 12.5px; word-break: break-all;
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
}
.comando button {
  width: auto; flex-shrink: 0; padding: 7px 12px; font-size: 12px; border-radius: 8px;
  background: rgba(255,255,255,.14); box-shadow: none;
}
.comando button:hover { background: rgba(255,255,255,.24); }

/* Panel */
.barra { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.barra input { margin-bottom: 0; flex: 1; min-width: 180px; padding: 11px 14px; font-size: 14px; }
.tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.tab { width: auto; padding: 9px 16px; font-size: 13.5px; background: #fff; color: var(--gray); border: 1.5px solid var(--border); box-shadow: none; }
.tab:hover { background: #f7fafd; color: var(--navy); }
.tab.sel { background: var(--bg-soft); border-color: var(--blue); color: var(--blue-dark); }
.tabla { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tabla th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--gray); padding: 8px 8px; border-bottom: 1.5px solid var(--border); }
.tabla td { padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; word-break: break-word; }
.tabla td.acciones { text-align: right; white-space: nowrap; }
.tabla-scroll { overflow-x: auto; }
.vacio { text-align: center; color: var(--gray); font-size: 14px; padding: 22px 0; }
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seccion { border-top: 1px solid var(--border); margin-top: 22px; padding-top: 20px; }
@media (max-width: 560px) {
  .card-head { padding: 20px 20px 18px; }
  .card-body { padding: 20px 20px 24px; }
  .dos { grid-template-columns: 1fr; }
}
