/* ============================================================
   Cloura · Onboarding (mockup navegable)
   Estética: blanca, monocromática, calmada. Brutalista-minimal.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --ink: #141414;
  --gray: #6B6A66;            /* gris cálido, menos azulado */
  --line: #ECE9E4;            /* bordes tibios */
  --bg: #FEFEFD;              /* blanco casi puro, cálido */
  /* acento de marca: TEAL profundo (solo en acción, estado, dato y marca — nunca en el logo) */
  --blue: #0F766E;
  --blue-dark: #0C6258;       /* hover del primario */

  /* color con intención: solo en dato/estado/marca */
  --green: #0F766E;           /* ahorro */
  --amber: #C98A16;           /* madurez */
  --aws: #FF9900;             /* guiño de marca AWS */

  /* surfaces — neutros cálidos */
  --soft: #FBFAF8;            /* papel cálido */
  --soft-2: #F3F1ED;          /* bloques de código */
  --ink-08: rgba(20, 20, 20, 0.06);
  --blue-08: rgba(15, 118, 110, 0.08);
  --blue-12: rgba(15, 118, 110, 0.12);

  --font-display: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "SFMono-Regular", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;

  --r-lg: 16px;
  --r: 12px;
  --r-sm: 8px;

  --shadow-sm: 0 1px 2px rgba(20, 20, 20, 0.04);
  --shadow: 0 1px 2px rgba(20, 20, 20, 0.04), 0 10px 28px rgba(20, 20, 20, 0.05);
  --shadow-lift: 0 1px 2px rgba(20, 20, 20, 0.05), 0 18px 44px rgba(20, 20, 20, 0.09);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t: 320ms;

  --maxw: 1080px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }
button { font-family: inherit; }
a:not(.logo):not(.btn) { color: var(--blue); }
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- App shell ---------- */
.app {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Top bar (hidden on login) */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 18px clamp(20px, 5vw, 56px);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar[hidden] { display: none; }

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  user-select: none;
  flex-shrink: 0;
}
.logo svg { display: block; }
.logo-img { display: block; width: auto; }
.logo .wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.logo .wordmark .dot-ai { color: var(--gray); }

/* ---------- Stepper (global) ---------- */
.stepper {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.stepper::-webkit-scrollbar { display: none; }
.stepper[hidden] { display: none; }
.step {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--gray);
  white-space: nowrap;
  transition: color var(--t) var(--ease);
}
.step .num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray);
  background: var(--bg);
  transition: all var(--t) var(--ease);
}
.step.is-active { color: var(--ink); font-weight: 600; }
.step.is-active .num { border-color: var(--blue); background: var(--blue); color: #fff; }
.step.is-done { color: var(--ink); }
.step.is-done .num { border-color: var(--ink); background: var(--ink); color: #fff; }
.step-sep {
  width: 26px;
  height: 1px;
  background: var(--line);
  margin: 0 12px;
  flex-shrink: 0;
}

/* ---------- Main / views ---------- */
.main {
  flex: 1;
  display: flex;
  position: relative;
}
.view {
  display: none;
  flex: 1;
  width: 100%;
  flex-direction: column;
  align-items: center;
  padding: clamp(28px, 5vw, 64px) clamp(20px, 5vw, 56px) 72px;
}
.view.is-active { display: flex; }
@media (prefers-reduced-motion: no-preference) {
  .view.is-active { animation: viewIn var(--t) var(--ease); }
}
/* transform-only so content is NEVER invisible when the animation is
   paused at frame 0 (hidden tab / capture / export contexts) */
@keyframes viewIn {
  from { transform: translateY(10px); }
  to   { transform: translateY(0); }
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
}
.lead { color: var(--gray); font-size: 16px; }
.view-head { text-align: center; max-width: 560px; margin-bottom: 40px; }
.view-head h1 { font-size: clamp(26px, 3.4vw, 34px); }
.view-head .lead { margin-top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  --bh: 48px;
  appearance: none;
  border: 1px solid transparent;
  height: var(--bh);
  padding: 0 22px;
  border-radius: var(--r-sm);
  font-size: 15px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  transition: transform 120ms var(--ease), background 180ms var(--ease),
              border-color 180ms var(--ease), box-shadow 180ms var(--ease), color 180ms var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); box-shadow: 0 1px 2px rgba(15,118,110,0.18), 0 10px 28px rgba(15,118,110,0.18); }
.btn-secondary { background: var(--bg); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: #d3d4d8; background: var(--soft); }
.btn-ghost { background: transparent; color: var(--gray); padding: 0 12px; }
.btn-ghost:hover { color: var(--ink); }
.btn-lg { --bh: 56px; font-size: 16px; padding: 0 32px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn .ico { width: 17px; height: 17px; }

/* ---------- Cards ---------- */
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   VIEW 1 — Login
   ============================================================ */
#view-login { justify-content: center; }
.login-wrap {
  width: 100%;
  max-width: 392px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.login-logo { margin-bottom: 34px; }
.login-card {
  width: 100%;
  padding: 36px 32px 30px;
}
.login-card h1 { font-size: 23px; text-align: center; }
.login-card .sub {
  text-align: center;
  color: var(--gray);
  font-size: 14.5px;
  margin: 8px 0 26px;
}
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 7px;
}
.input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: var(--bg);
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.input::placeholder { color: #b6b7bc; }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--ink-08); }
.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--gray);
  font-size: 12.5px;
  margin: 18px 0;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.google-mark { width: 17px; height: 17px; }
.reassure {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 24px;
  font-size: 12.5px;
  color: var(--gray);
}
.reassure .ico { width: 14px; height: 14px; color: var(--gray); }

/* ============================================================
   VIEW 2 — Cloud selector
   ============================================================ */
/* momento de color: lavado radial verde muy tenue */
#view-cloud {
  background: radial-gradient(78% 56% at 50% 6%, var(--blue-08), transparent 68%);
}
.cloud-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 260px));
  gap: 20px;
  justify-content: center;
  width: 100%;
}
.cloud-card {
  position: relative;
  padding: 30px 26px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg);
  text-align: left;
  cursor: pointer;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 184px;
}
.cloud-card .cloud-ico { height: 34px; display: flex; align-items: center; color: var(--ink); }
.cloud-card[data-active] .cloud-ico { color: var(--ink); }
/* guiño de marca: el subrayado del logotipo aws en naranja */
.cloud-card[data-active] .cloud-ico .aws-swoosh { stroke: var(--aws); }
.cloud-card .cloud-ico svg { height: 34px; width: auto; }
.cloud-card h3 { font-size: 19px; }
.cloud-card .cloud-desc { font-size: 13.5px; color: var(--gray); margin-top: -8px; }
.cloud-card .cloud-go {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
}
.cloud-card .cloud-go .ico { width: 15px; height: 15px; transition: transform 220ms var(--ease); }
.cloud-card[data-active]:hover {
  transform: translateY(-4px);
  box-shadow: 0 1px 2px rgba(15,118,110,0.10), 0 18px 44px rgba(15,118,110,0.16);
  border-color: var(--blue);
}
.cloud-card[data-active]:hover .cloud-go .ico { transform: translateX(4px); }
.cloud-card.is-disabled {
  cursor: not-allowed;
  background: var(--soft);
  border-style: dashed;
}
.cloud-card.is-disabled .cloud-ico,
.cloud-card.is-disabled h3,
.cloud-card.is-disabled .cloud-desc { color: #b6b7bc; opacity: 0.85; }
.badge-soon {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gray);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 4px 9px;
  border-radius: 999px;
}

/* ============================================================
   VIEW 3 — Wizard
   ============================================================ */
.wizard {
  width: 100%;
  max-width: var(--maxw);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
  gap: 32px;
  align-items: start;
}
.wizard-main { min-width: 0; }
.wstep { display: none; }
.wstep.is-active { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .wstep.is-active { animation: viewIn 280ms var(--ease) both; }
}
.wstep > h1 { font-size: clamp(23px, 2.8vw, 28px); }
.wstep > .lead { margin-top: 10px; margin-bottom: 26px; max-width: 56ch; }

/* ExternalId chip */
.kv-copy {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px 12px 12px 16px;
  margin-bottom: 26px;
}
.kv-copy .kv-label { font-size: 12px; font-weight: 600; color: var(--gray); letter-spacing: 0.04em; }
.kv-copy .kv-val {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
  overflow-x: auto;
  white-space: nowrap;
  flex: 1;
  scrollbar-width: none;
}
.kv-copy .kv-val::-webkit-scrollbar { display: none; }

/* Copy button (small) */
.copy-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  height: 36px;
  padding: 0 13px;
  border-radius: var(--r-sm);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 160ms var(--ease), background 160ms var(--ease), color 160ms var(--ease);
}
.copy-btn:hover { border-color: #d3d4d8; background: var(--soft); }
.copy-btn .ico { width: 15px; height: 15px; }
.copy-btn.is-copied { color: var(--blue); border-color: rgba(15,118,110,0.35); background: var(--blue-08); }

/* Tabs */
.tabs { margin-bottom: 0; }
.tablist {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 18px;
}
.tab {
  appearance: none;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--gray);
  padding: 8px 16px;
  border-radius: 7px;
  cursor: pointer;
  transition: background 180ms var(--ease), color 180ms var(--ease), box-shadow 180ms var(--ease);
}
.tab[aria-selected="true"] {
  background: var(--bg);
  color: var(--blue);
  box-shadow: var(--shadow-sm);
}
.tabpanel { display: none; }
.tabpanel.is-active { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .tabpanel.is-active { animation: viewIn 240ms var(--ease) both; }
}

/* Numbered console steps */
.steps-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.steps-list li { display: flex; gap: 14px; align-items: flex-start; }
.steps-list .n {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  display: grid;
  place-items: center;
  margin-top: 1px;
}
.steps-list .txt { font-size: 14.5px; color: var(--ink); line-height: 1.55; }
.steps-list .txt code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: var(--soft-2);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 5px;
  white-space: nowrap;
}

/* Code block */
.code {
  position: relative;
  background: var(--soft-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 10px 16px;
  border-bottom: 1px solid var(--line);
}
.code-head .fname { font-family: var(--font-mono); font-size: 12px; color: var(--gray); }
.code pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink);
  tab-size: 2;
}
.code pre .c-key { color: var(--gray); }
.code-actions { display: flex; gap: 10px; margin-top: 14px; }

/* ARN input area */
.arn-block { margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--line); }

/* Verify */
.verify-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.verify-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 500;
  color: var(--blue);
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 260ms var(--ease), transform 260ms var(--ease);
}
.verify-status.is-shown { opacity: 1; transform: none; }
.verify-status .check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
}
.verify-status .check .ico { width: 13px; height: 13px; }
.spin {
  width: 17px; height: 17px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
}
@media (prefers-reduced-motion: no-preference) {
  .spin { animation: spin 700ms linear infinite; }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Region chips */
.section-label { font-size: 14px; font-weight: 600; margin: 30px 0 6px; }
.section-hint { font-size: 13px; color: var(--gray); margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  appearance: none;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 999px;
  padding: 9px 16px 9px 13px;
  font-size: 13.5px;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 160ms var(--ease), background 160ms var(--ease);
}
.chip .box {
  width: 16px; height: 16px;
  border-radius: 4px;
  border: 1.5px solid var(--line);
  display: grid;
  place-items: center;
  color: #fff;
  transition: all 160ms var(--ease);
}
.chip .box .ico { width: 11px; height: 11px; opacity: 0; }
.chip .reg-name { font-weight: 500; }
.chip .reg-loc { color: var(--gray); }
.chip:hover { border-color: #d3d4d8; }
.chip.is-on { border-color: var(--blue); background: var(--blue-08); }
.chip.is-on .box { background: var(--blue); border-color: var(--blue); }
.chip.is-on .box .ico { opacity: 1; }
.chip.chip-all { font-weight: 600; }

/* Summary card (step 3) */
.summary {
  padding: 0;
  overflow: hidden;
  margin-bottom: 26px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.summary-row:last-child { border-bottom: none; }
.summary-row .s-key { font-size: 13.5px; color: var(--gray); }
.summary-row .s-val { font-size: 14.5px; font-weight: 500; text-align: right; }
.summary-row .s-val .mono { font-family: var(--font-mono); font-size: 13.5px; }
.summary-foot {
  background: var(--soft);
  padding: 16px 22px;
  font-size: 13.5px;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 9px;
}
.summary-foot .dotsep { color: var(--line); }

/* Security side panel */
.security {
  position: sticky;
  top: 92px;
  padding: 24px 22px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.security h4 {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 18px;
}
.security ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.security li { display: flex; gap: 13px; align-items: flex-start; }
.security li .s-ico {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--ink);
}
.security li .s-ico .ico { width: 16px; height: 16px; }
.security li .s-title { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.security li .s-sub { font-size: 12.5px; color: var(--gray); line-height: 1.45; margin-top: 2px; }

/* Wizard footer nav */
.wizard-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

/* ============================================================
   VIEW 4 — Progress
   ============================================================ */
#view-progress {
  justify-content: center;
  background: radial-gradient(60% 44% at 50% 30%, var(--blue-08), transparent 66%);
}
.progress-wrap {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.pulse-logo {
  margin-bottom: 30px;
  color: var(--ink);
}
@media (prefers-reduced-motion: no-preference) {
  .pulse-logo { animation: breathe 2.6s var(--ease) infinite; }
}
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.92; }
  50% { transform: scale(1.06); opacity: 1; }
}
.progress-wrap h1 { font-size: 26px; }
.progress-wrap .lead { margin-top: 10px; }

.pbar {
  width: 100%;
  height: 6px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin: 30px 0 10px;
}
.pbar .fill {
  height: 100%;
  width: 0%;
  background: var(--blue);
  border-radius: 999px;
  transition: width 600ms var(--ease);
}
.pmeta { font-size: 12.5px; color: var(--gray); font-variant-numeric: tabular-nums; margin-bottom: 36px; }

.phases { width: 100%; display: flex; flex-direction: column; gap: 2px; text-align: left; }
.phase {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
  opacity: 0.5;
  transition: opacity 300ms var(--ease);
}
.phase:last-child { border-bottom: none; }
.phase .ph-ico {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--gray);
  background: var(--bg);
  transition: all 300ms var(--ease);
}
.phase .ph-ico .ico { width: 13px; height: 13px; opacity: 0; }
.phase .ph-ico .mini-spin {
  width: 13px; height: 13px;
  border: 2px solid var(--line);
  border-top-color: var(--ink);
  border-radius: 50%;
  display: none;
}
@media (prefers-reduced-motion: no-preference) {
  .phase .ph-ico .mini-spin { animation: spin 700ms linear infinite; }
}
.phase .ph-name { font-size: 14.5px; font-weight: 500; color: var(--ink); }
.phase.is-running { opacity: 1; }
.phase.is-running .ph-ico { border-color: var(--ink); }
.phase.is-running .ph-ico .mini-spin { display: block; }
.phase.is-done { opacity: 1; }
.phase.is-done .ph-ico { background: var(--ink); border-color: var(--ink); }
.phase.is-done .ph-ico .ico { opacity: 1; color: #fff; }

/* Agents grid (square motif) */
.agents { display: none; gap: 7px; margin: 6px 0 2px 38px; }
.agents.is-shown { display: flex; }
.agent-sq {
  width: 16px; height: 16px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--bg);
  transition: all 200ms var(--ease);
}
.agent-sq.on { background: var(--ink); border-color: var(--ink); }

/* ============================================================
   VIEW 5 — Report teaser
   ============================================================ */
#view-report { justify-content: center; }
.report-wrap {
  width: 100%;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.success-check {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  margin-bottom: 26px;
}
.success-check .ico { width: 30px; height: 30px; }
@media (prefers-reduced-motion: no-preference) {
  #view-report.is-active .success-check { animation: pop 460ms var(--ease) both; }
}
@keyframes pop {
  0% { transform: scale(0.5); }
  60% { transform: scale(1.08); }
  100% { transform: scale(1); }
}
.report-wrap h1 { font-size: clamp(28px, 4vw, 38px); }
.report-wrap .lead { margin-top: 12px; max-width: 44ch; }

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  margin: 40px 0 36px;
}
.metric {
  padding: 26px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg);
  text-align: left;
}
.metric .m-label { font-size: 12.5px; color: var(--gray); font-weight: 500; }
.metric .m-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 30px;
  letter-spacing: -0.02em;
  margin-top: 10px;
  font-variant-numeric: tabular-nums;
}
.metric .m-value .unit { font-size: 16px; color: var(--gray); font-weight: 500; }
/* dato con color: ahorro=verde, hallazgos=ink, madurez=\u00e1mbar */
.metric.m-green .m-value { color: var(--green); }
.metric.m-amber .m-value { color: var(--amber); }
.metric.m-green .m-value .unit,
.metric.m-amber .m-value .unit { color: inherit; opacity: 0.6; }

.report-foot { font-size: 12.5px; color: var(--gray); margin-top: 22px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .wizard { grid-template-columns: 1fr; }
  .security { position: static; order: 2; }
  .cloud-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
}
@media (max-width: 720px) {
  .topbar { gap: 16px; padding: 14px 20px; }
  .step .label { display: none; }
  .step-sep { width: 16px; margin: 0 7px; }
  .metrics { grid-template-columns: 1fr; }
  .view { padding: 28px 20px 60px; }
  .wizard-nav { flex-direction: column-reverse; align-items: stretch; }
  .wizard-nav .btn { width: 100%; }
}
@media (max-width: 420px) {
  .logo .wordmark { display: none; }
}
