/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Sora:wght@600;700;800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&display=swap");

:root {
  --bg: #f7f5f0;
  --panel: #fffdf9;
  --ink: #0c1422;
  --muted: #6b7a90;
  --accent: #1a3a5c;
  --brand: #2a5a8c;
  --assistant: #edf4fb;
  --user: #0c1422;
  --app-nav-height: 78px;
  --irx-ink: #0c1422;
  --irx-muted: #6b7a90;
  --irx-line: rgba(12, 20, 34, 0.09);
  --irx-line-strong: rgba(12, 20, 34, 0.16);
  --irx-bg: #f7f5f0;
  --irx-card: #fffdf9;
  --irx-green: #1a3a5c;
  --irx-green-deep: #2a5a8c;
  --irx-blue: #7bb8e0;
  --irx-stone: #8a8173;
  --irx-stone-deep: #645c50;
  --irx-stone-soft: #f4efe8;
  --irx-stone-soft-strong: #e5ddd1;
  --irx-stone-line: rgba(100, 92, 80, 0.16);
  --irx-stone-glow: rgba(100, 92, 80, 0.12);
  --irx-dark: #0c1422;
  --irx-dark-soft: #152235;
  --irx-heading: "Fraunces";
  --irx-body: "Manrope";
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: calc(var(--app-nav-height) + 12px);
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(123, 184, 224, 0.22), transparent 28%),
    radial-gradient(circle at top left, rgba(42, 90, 140, 0.08), transparent 26%),
    var(--bg);
  color: var(--ink);
  font-family: var(--irx-body), "Segoe UI", Tahoma, sans-serif;
}

.chat-shell {
  max-width: 980px;
  margin: 2rem auto;
  padding: 1rem;
  display: grid;
  gap: 1rem;
}

.chat-header {
  background: var(--panel);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  border: 1px solid #d4dfd6;
}

.chat-header h1 {
  margin: 0;
  font-size: 1.4rem;
}

.chat-header p {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.chat-messages {
  min-height: 320px;
  max-height: 420px;
  overflow-y: auto;
  border: 1px solid #d4dfd6;
  border-radius: 12px;
  background: var(--panel);
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
}

.chat-message {
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  line-height: 1.4;
  white-space: pre-wrap;
}

.chat-message--assistant {
  background: var(--assistant);
  color: #153325;
}

.chat-message--user {
  background: var(--user);
  color: #f8fafc;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
}

.chat-form input {
  border: 1px solid #bccdc2;
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  font-size: 1rem;
}

.chat-form button {
  border: 0;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.chat-form button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.chat-status {
  background: var(--panel);
  border: 1px solid #d4dfd6;
  border-radius: 12px;
  padding: 1rem 1.25rem;
}

.chat-status h2 {
  margin: 0.7rem 0 0.5rem;
  font-size: 0.95rem;
}

.chat-status pre {
  margin: 0;
  background: #0f172a;
  color: #dbeafe;
  border-radius: 10px;
  padding: 0.8rem;
  overflow-x: auto;
  font-size: 0.85rem;
}

@media (max-width: 700px) {
  .chat-shell {
    margin: 1rem auto;
  }

  .chat-form {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   INSPECTION CHAT – New risk inspection UI
   ═══════════════════════════════════════════════════════════════════════════ */

.inspection-shell {
  display: grid;
  grid-template-columns: 272px 1fr;
  height: calc(100dvh - var(--app-nav-height));
  overflow: hidden;
  font-family: var(--irx-body), -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

/* ── Sidebar ──────────────────────────────────────────────────────────────── */

.inspection-sidebar {
  background: #f7f5f0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #d6d1c8 transparent;
  border-right: 1px solid rgba(12, 20, 34, 0.08);
}
.inspection-sidebar::-webkit-scrollbar { width: 4px; }
.inspection-sidebar::-webkit-scrollbar-thumb { background: #d6d1c8; border-radius: 2px; }

.inspection-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1rem 1.1rem;
  border-bottom: 1px solid rgba(12, 20, 34, 0.08);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f7f5f0;
}

.inspection-brand__wordmark {
  width: 124px;
  max-width: 100%;
  height: auto;
  display: block;
}

.inspection-brand__info {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

.inspection-brand__name {
  font-weight: 700;
  font-size: 0.88rem;
  color: #1a1a1a;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.inspection-brand__sub {
  font-size: 0.62rem;
  color: var(--irx-muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.2;
}

.inspection-sidebar__title {
  font-size: 0.69rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #a09c96;
  padding: 0.85rem 1rem 0.35rem;
  font-weight: 600;
  flex-shrink: 0;
}

/* ── Progress list ────────────────────────────────────────────────────────── */

.inspection-progress-list {
  display: flex;
  flex-direction: column;
  padding: 0 0.4rem;
  gap: 1px;
}


.inspection-section-item {
  font-size: 0.82rem;
  padding: 0.5rem 0.65rem;
  border-radius: 7px;
  cursor: default;
  transition: background 0.15s;
}

.inspection-section-item:hover { background: #e8e5df; }

.inspection-section-item__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.inspection-section-item__num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  flex-shrink: 0;
  background: #dedad4;
  color: #a09c96;
  transition: all 0.2s;
}

.inspection-section-item--done .inspection-section-item__num {
  background: #c8e6d4;
  color: #2d6a47;
}

.inspection-section-item--current .inspection-section-item__num {
  background: var(--accent);
  color: #fff;
}

.inspection-section-item__name {
  color: #8a8680;
  line-height: 1.3;
  transition: color 0.15s;
  font-size: 0.82rem;
}

.inspection-section-item--done .inspection-section-item__name { color: #4a8263; }
.inspection-section-item--current .inspection-section-item__name { color: #1a1a1a; font-weight: 500; }

.inspection-section-item__bar {
  height: 2px;
  background: #dedad4;
  border-radius: 1px;
  overflow: hidden;
  margin: 0.3rem 0 0 1.7rem;
}

.inspection-section-item__fill {
  height: 100%;
  background: var(--accent);
  border-radius: 1px;
  transition: width 0.5s ease;
}

.inspection-section-item__pct {
  font-size: 0.69rem;
  color: #b0aca6;
  margin-left: 1.75rem;
  margin-top: 0.15rem;
  display: block;
}

.inspection-section-item--done .inspection-section-item__pct { color: #3d8f5a; }
.inspection-section-item--current .inspection-section-item__pct { color: #4a8263; }

/* ── Total progress ───────────────────────────────────────────────────────── */

.inspection-total {
  margin: 0.5rem 0.5rem 0.75rem;
  padding: 0.7rem 0.9rem;
  background: #e8e5df;
  border: 1px solid #dedad4;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.inspection-total__label {
  font-size: 0.78rem;
  color: #8a8680;
  font-weight: 500;
}

.inspection-total__value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
}

/* ── Document upload panel ───────────────────────────────────────────────── */

.doc-upload-panel {
  padding: 0.8rem 0.7rem;
  border-bottom: 1px solid #dedad4;
  flex-shrink: 0;
}

.doc-upload-panel__title {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #a09c96;
  margin: 0 0 4px;
}
.doc-upload-beta {
  display: inline-block;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #b45309;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 3px;
  padding: 1px 5px;
  vertical-align: middle;
  margin-left: 4px;
}

.doc-upload-panel__hint {
  font-size: 0.72rem;
  color: #b0aca6;
  margin: 0 0 10px;
  line-height: 1.4;
}

.doc-upload-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 7px 10px;
  background: rgba(0,0,0,0.04);
  border: 1px dashed #c8c4be;
  border-radius: 6px;
  color: #5a5652;
  font-size: 0.76rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.doc-upload-btn:hover {
  background: rgba(0,0,0,0.07);
  border-color: #a09c96;
  color: #1a1a1a;
}

.doc-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.doc-list__item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 0.68rem;
  background: rgba(0,0,0,0.04);
}

.doc-list__item--done    { background: rgba(34,197,94,0.1); }
.doc-list__item--error   { background: rgba(239,68,68,0.1); }
.doc-list__item--processing { opacity: 0.7; }

.doc-list__name {
  color: #3a3734;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.doc-list__badge {
  color: #a09c96;
  font-size: 0.62rem;
  white-space: nowrap;
}

.doc-list__status { font-size: 0.8rem; }

/* ── Evidence panel ──────────────────────────────────────────────────────── */

.evidence-panel {
  padding: 0.75rem 0.7rem;
  border-bottom: 1px solid #dedad4;
  flex-shrink: 0;
}

.evidence-panel__title {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #7c6f5e;
  margin: 0 0 0.55rem 0;
}

.evidence-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.evidence-item {
  background: #fff;
  border: 1px solid #e3ddd5;
  border-radius: 6px;
  padding: 0.5rem 0.55rem;
  font-size: 0.75rem;
  transition: border-color 0.15s, background 0.15s;
}

.evidence-item--provided {
  background: #f0faf3;
  border-color: #a3d9b4;
}

.evidence-item--uploading {
  opacity: 0.65;
}

.evidence-item__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.2rem;
}

.evidence-item__label {
  font-weight: 600;
  color: #3d3228;
  font-size: 0.73rem;
}

.evidence-item__priority--alta  { color: #d97706; }
.evidence-item__priority--media { color: #9ca3af; }

.evidence-item__desc {
  margin: 0 0 0.4rem 0;
  color: #6b6258;
  font-size: 0.69rem;
  line-height: 1.35;
}

.evidence-item__upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 600;
  color: #5a7a55;
  border: 1px solid #a3d9b4;
  border-radius: 4px;
  padding: 0.2rem 0.45rem;
  background: #f6fef8;
  transition: background 0.12s, border-color 0.12s;
}

.evidence-item__upload-btn:hover {
  background: #e6f7eb;
  border-color: #6ab87a;
}

.evidence-item__done {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: #2d7d46;
}

/* ── Evidence grid in resumen ────────────────────────────────────────────── */

.resumen-evidence .resumen-docs__title { margin-bottom: 0.75rem; }

.resumen-evidence__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.resumen-evidence__item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border: 1px solid #e3ddd5;
  border-radius: 8px;
  padding: 0.65rem 0.7rem;
  background: #faf9f7;
}

.resumen-evidence__thumb {
  height: 60px;
  background: #f0ede8;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.resumen-evidence__info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

/* ── Sector notes in resumen ─────────────────────────────────────────────── */

.resumen-sector-notas {
  background: #fff;
  border: 1px solid #e3ddd5;
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.resumen-sector-notas__header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.resumen-sector-notas__icon { font-size: 1.1rem; }

.resumen-sector-notas__title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #3d3228;
  margin: 0;
  flex: 1;
}

.resumen-sector-notas__badges {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.resumen-sector-badge {
  font-size: 0.68rem;
  font-weight: 600;
  color: #5a4a3a;
  background: #f0ede8;
  border: 1px solid #dedad4;
  border-radius: 20px;
  padding: 0.15rem 0.6rem;
}

.resumen-sector-notas__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
}

.resumen-sector-nota {
  border-left: 3px solid #c5b99a;
  padding-left: 0.75rem;
}

.resumen-sector-nota__q {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b6258;
  margin-bottom: 0.2rem;
}

.resumen-sector-nota__a {
  font-size: 0.82rem;
  color: #3d3228;
  margin: 0;
  line-height: 1.45;
}

.resumen-sector-notas__empty {
  font-size: 0.78rem;
  color: #9ca3af;
  margin: 0;
}

/* ── Main chat ────────────────────────────────────────────────────────────── */

.inspection-main {
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  background: #ffffff;
}

.inspection-header {
  padding: 1rem 2rem;
  background: #ffffff;
  border-bottom: 1px solid #f0f0ec;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.inspection-header__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #111;
}

.inspection-header__sub {
  margin: 0.1rem 0 0;
  font-size: 0.75rem;
  color: #b0b0aa;
}

.inspection-status-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.28rem 0.7rem;
  border-radius: 20px;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  white-space: nowrap;
  transition: all 0.25s;
}

.inspection-status-badge--done {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ── Messages ─────────────────────────────────────────────────────────────── */

.inspection-messages {
  overflow-y: auto;
  padding: 2rem 2.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  scrollbar-width: thin;
  scrollbar-color: #e0e0dc transparent;
  background: #ffffff;
}
.inspection-messages::-webkit-scrollbar { width: 4px; }
.inspection-messages::-webkit-scrollbar-track { background: transparent; }
.inspection-messages::-webkit-scrollbar-thumb { background: #e0e0dc; border-radius: 10px; }

.insp-msg {
  max-width: 740px;
  width: 100%;
  word-break: break-word;
  line-height: 1.7;
  animation: msgIn 0.18s ease forwards;
}

@keyframes msgIn {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Assistant: avatar + content wrapper */
.insp-msg--assistant {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  align-self: center;
  max-width: 777px;
  width: min(100%, 777px);
}

.insp-msg--assistant::before {
  content: "H";
  width: 30px;
  height: 30px;
  min-width: 30px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
  margin-top: 2px;
}

.insp-msg__content {
  flex: 1;
  min-width: 0;
  color: #1a1a1a;
  font-size: 0.95rem;
}

.insp-msg__content p { margin: 0 0 0.55em; }
.insp-msg__content p:last-child { margin-bottom: 0; }
.insp-msg__content ul { margin: 0.4em 0 0.4em 1.2em; padding: 0; }
.insp-msg__content li { margin-bottom: 0.3em; }
.insp-msg__content strong { color: #111; }
.insp-msg__content code {
  background: #efefed;
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.86em;
  font-family: "SF Mono", "Fira Code", ui-monospace, monospace;
}

/* User bubble */
.insp-msg--user {
  align-self: flex-end;
  background: #e2f0e7;
  color: #0d1f12;
  padding: 0.7rem 1.1rem;
  border-radius: 18px;
  border-bottom-right-radius: 4px;
  font-size: 0.95rem;
  max-width: 580px;
  width: auto;
  box-shadow: 0 1px 3px rgba(21,95,58,0.08);
}

/* Document upload notice */
.insp-doc-notice {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  align-self: center;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  padding: 0.5rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  margin: 0.5rem auto;
}
.insp-doc-notice__icon { font-size: 1rem; }

/* Error */
.insp-msg--error {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  align-self: flex-start;
  background: #fff5f5;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.88rem;
  width: auto;
}

/* ── Typing indicator ─────────────────────────────────────────────────────── */

.inspection-typing {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  align-self: flex-start;
  max-width: 680px;
  width: 100%;
}

.inspection-typing::before {
  content: "H";
  width: 30px;
  height: 30px;
  min-width: 30px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
}

.inspection-typing-dots {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0.35rem 0;
}

.inspection-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a3a3a3;
  animation: typingBounce 1.1s infinite ease-in-out;
}
.inspection-typing span:nth-child(2) { animation-delay: 0.18s; }
.inspection-typing span:nth-child(3) { animation-delay: 0.36s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.35; }
  40% { transform: translateY(-5px); opacity: 1; }
}

/* ── Input form ───────────────────────────────────────────────────────────── */

.inspection-form {
  padding: 0.9rem 2.25rem 0.75rem;
  background: #ffffff;
  border-top: 1px solid #f0f0ec;
}

.inspection-form-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 0.5rem;
  width: min(100%, 760px);
  margin: 0 auto;
  background: #fff;
  border: 1.5px solid #e4e4e0;
  border-radius: 16px;
  padding: 0.6rem 0.6rem 0.6rem 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.inspection-form-inner:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(21, 95, 58, 0.1), 0 2px 8px rgba(0,0,0,0.06);
}

.inspection-form textarea {
  border: none;
  outline: none;
  background: transparent;
  padding: 0.4rem 0;
  font-size: 0.95rem;
  font-family: inherit;
  resize: none;
  line-height: 1.55;
  color: #1a1a1a;
  width: 100%;
}

.inspection-form textarea::placeholder { color: #c8c8c4; }
.inspection-form textarea:disabled { color: #c8c8c4; }

.inspection-form button {
  border: 0;
  border-radius: 11px;
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, opacity 0.2s, transform 0.1s;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.inspection-form button:hover:not(:disabled) { background: #0e4a2c; transform: scale(1.05); }
.inspection-form button:active:not(:disabled) { transform: scale(0.96); }
.inspection-form button:disabled { opacity: 0.3; cursor: not-allowed; }

.inspection-form-hint {
  text-align: center;
  font-size: 0.7rem;
  color: #c8c8c4;
  margin: 0.32rem 0 0;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 860px) {
  .inspection-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    height: calc(100dvh - var(--app-nav-height));
  }

  .inspection-sidebar {
    max-height: 195px;
    overflow-y: hidden;
    border-right: none;
    border-bottom: 1px solid #dedad4;
  }

  .doc-upload-panel,
  .evidence-panel,
  .public-insp-company { display: none; }

  .inspection-progress-list {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 0.5rem 0.4rem;
    gap: 2px;
    scrollbar-width: none;
  }
  .inspection-progress-list::-webkit-scrollbar { display: none; }

  .inspection-section-item { min-width: 105px; flex-shrink: 0; }
  .inspection-section-item__bar { margin-left: 0; }
  .inspection-section-item__pct { margin-left: 0; }

  .inspection-total { margin: 0 0.5rem 0.6rem; }

  .inspection-main {
    height: calc(100dvh - var(--app-nav-height) - 195px);
    overflow: hidden;
  }

  .insp-msg--user { max-width: 88%; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   FLASH MESSAGES
   ═══════════════════════════════════════════════════════════════════════════ */

.flash {
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}

.flash--notice {
  background: #e8f4ec;
  color: var(--accent);
  border-bottom: 1px solid #c3deca;
}

.flash--alert {
  background: #fff3f3;
  color: #c0392b;
  border-bottom: 1px solid #f9c0c0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   AUTH — Login / Invitación / Activación
   ═══════════════════════════════════════════════════════════════════════════ */

.auth-shell {
  min-height: calc(100dvh - var(--app-nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-card {
  background: var(--panel);
  border: 1px solid #d4dfd6;
  border-radius: 16px;
  padding: 2rem 2.25rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.auth-brand__logo {
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.auth-brand__name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}

.auth-title {
  margin: 0 0 0.25rem;
  font-size: 1.4rem;
  color: var(--ink);
}

.auth-subtitle {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.auth-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

.auth-field input {
  border: 1px solid #bccdc2;
  border-radius: 9px;
  padding: 0.65rem 0.85rem;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(21, 95, 58, 0.12);
}

.auth-btn {
  margin-top: 0.5rem;
  border: 0;
  border-radius: 9px;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: block;
  transition: background 0.2s;
}

.auth-btn:hover {
  background: #0e4a2c;
}

.auth-footer {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.auth-footer a {
  color: var(--accent);
  text-decoration: none;
}

.auth-alert {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.auth-error {
  background: #fff3f3;
  border: 1px solid #f9c0c0;
  color: #c0392b;
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  font-size: 0.88rem;
  margin: 0 0 1rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   DASHBOARD — Lista de inspecciones
   ═══════════════════════════════════════════════════════════════════════════ */

.dashboard-shell {
  min-height: calc(100dvh - var(--app-nav-height));
  background: radial-gradient(circle at top right, #dceadf, var(--bg) 38%);
}

.dashboard-header {
  background: var(--panel);
  border-bottom: 1px solid #d4dfd6;
  padding: 0.85rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.dashboard-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.dashboard-brand__logo {
  width: 34px;
  height: 34px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

.dashboard-brand__name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
}

.dashboard-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.dashboard-user {
  font-size: 0.82rem;
  color: var(--muted);
  margin-right: 0.4rem;
}

.dashboard-btn {
  border: 0;
  border-radius: 8px;
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s;
}

.dashboard-btn--primary {
  background: var(--accent);
  color: #fff;
}

.dashboard-btn--primary:hover { background: #0e4a2c; }

.dashboard-btn--secondary {
  background: #e8f4ec;
  color: var(--accent);
}

.dashboard-btn--secondary:hover { background: #d2ebd9; }

.dashboard-btn--ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid #d4dfd6;
}

.dashboard-btn--ghost:hover { background: #f4f4f4; }

.dashboard-main {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.dashboard-section-title {
  font-size: 1.15rem;
  margin: 0 0 1.25rem;
  color: var(--ink);
}

.dashboard-empty {
  text-align: center;
  padding: 3rem 1rem;
  background: var(--panel);
  border: 1px solid #d4dfd6;
  border-radius: 12px;
  color: var(--muted);
}

.dashboard-empty p { margin: 0 0 1rem; font-size: 1rem; }

.dashboard-table-wrap {
  background: var(--panel);
  border: 1px solid #d4dfd6;
  border-radius: 12px;
  overflow: hidden;
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.dashboard-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  background: #f6f9f6;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #d4dfd6;
}

.dashboard-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #edf2ee;
  color: var(--ink);
  vertical-align: middle;
}

.dashboard-table tr:last-child td { border-bottom: 0; }

.dashboard-table__id {
  color: var(--muted);
  font-size: 0.82rem;
  width: 3rem;
}

.dashboard-table__progress {
  width: 140px;
}

.dashboard-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  display: inline-block;
}

.dashboard-badge--in_progress {
  background: #fef9e7;
  color: #b7770d;
}

.dashboard-badge--completed {
  background: #e8f4ec;
  color: var(--accent);
}

.dashboard-badge--risk-bajo    { background: #e8f4ec; color: #155f3a; }
.dashboard-badge--risk-medio   { background: #fef9e7; color: #b7770d; }
.dashboard-badge--risk-alto    { background: #fdf0e6; color: #c0641f; }
.dashboard-badge--risk-muy_alto { background: #fff3f3; color: #c0392b; }

.dashboard-progress-bar {
  height: 6px;
  background: #e8f0ea;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 2px;
}

.dashboard-progress-bar__fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.3s;
}

.dashboard-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.85rem;
}

.dashboard-link:hover { text-decoration: underline; }

.dashboard-muted {
  color: var(--muted);
  font-size: 0.85rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HOMEPAGE — Landing page pública
   ═══════════════════════════════════════════════════════════════════════════ */

.hp-root {
  background: #0a1410;
  color: #e8f0ec;
  font-family: "Segoe UI", Tahoma, sans-serif;
  min-height: 100vh;
}

/* ── Shared button ────────────────────────────────────────────────────────── */

.hp-btn {
  display: inline-block;
  text-decoration: none;
  border: 0;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  padding: 0.65rem 1.3rem;
  font-size: 0.95rem;
}

.hp-btn--primary {
  background: var(--accent);
  color: #fff;
}

.hp-btn--primary:hover { background: #1a7a4a; }

.hp-btn--ghost {
  background: transparent;
  color: #a8c9b8;
  border: 1px solid #2a4a38;
}

.hp-btn--ghost:hover { background: #1a2f24; border-color: var(--accent); color: #fff; }

.hp-btn--lg  { padding: 0.85rem 1.7rem; font-size: 1.05rem; border-radius: 11px; }
.hp-btn--xl  { padding: 1rem 2.2rem;    font-size: 1.1rem;  border-radius: 12px; }

/* ── Nav ──────────────────────────────────────────────────────────────────── */

.hp-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 20, 16, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #1e3a2a;
}

.hp-nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 1rem;
}

.hp-nav__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.hp-nav__logo {
  width: 34px;
  height: 34px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.hp-nav__name {
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
}

.hp-nav__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.hp-nav__link {
  color: #8ab89e;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}

.hp-nav__link:hover { color: #fff; }

.hp-nav__cta {
  display: inline-block;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  padding: 0.45rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.15s;
}

.hp-nav__cta:hover { background: #1a7a4a; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.hp-hero {
  padding: 5rem 2rem 0;
  background: radial-gradient(ellipse at 60% 0%, #0d2e1e 0%, #0a1410 55%);
}

.hp-hero__inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hp-hero__badge {
  display: inline-block;
  background: #0d2e1e;
  border: 1px solid #1e5c35;
  color: #7abf9a;
  border-radius: 20px;
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 1.75rem;
}

.hp-hero__title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  color: #fff;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
}

.hp-hero__title-accent {
  background: linear-gradient(135deg, #3dcb7a, #7abf9a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hp-hero__sub {
  color: #8ab89e;
  font-size: 1.15rem;
  line-height: 1.65;
  max-width: 640px;
  margin: 0 auto 2.25rem;
}

.hp-hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

/* ── Terminal mockup ──────────────────────────────────────────────────────── */

.hp-terminal {
  background: #0d1f18;
  border: 1px solid #1e3a2a;
  border-radius: 14px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 0 1px #0a1410;
  margin-bottom: -2px;
}

.hp-terminal__bar {
  background: #111f18;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid #1a3024;
}

.hp-terminal__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.hp-terminal__dot--red    { background: #ff5f57; }
.hp-terminal__dot--yellow { background: #febc2e; }
.hp-terminal__dot--green  { background: #28c840; }

.hp-terminal__title {
  margin-left: 0.4rem;
  font-size: 0.8rem;
  color: #4a7a5c;
  font-weight: 500;
}

.hp-terminal__body {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.hp-terminal__msg {
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  line-height: 1.5;
  max-width: 85%;
}

.hp-terminal__msg--ai {
  background: #152b1e;
  border: 1px solid #1e3a2a;
  color: #b8d9c4;
  align-self: flex-start;
  border-bottom-left-radius: 3px;
}

.hp-terminal__msg--user {
  background: #0f172a;
  color: #e2e8f0;
  align-self: flex-end;
  border-bottom-right-radius: 3px;
}

.hp-terminal__cursor {
  font-size: 1.1rem;
  color: var(--accent);
  animation: blink 1s step-end infinite;
  padding: 0 0.5rem;
}

@keyframes blink { 50% { opacity: 0; } }

.hp-terminal__status {
  padding: 0.75rem 1.5rem;
  background: #0d1f18;
  border-top: 1px solid #1a3024;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.hp-terminal__chip {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  background: #1a2f24;
  color: #7abf9a;
}

.hp-terminal__chip--accent {
  background: rgba(21, 95, 58, 0.4);
  color: #3dcb7a;
}

/* ── Stats bar ────────────────────────────────────────────────────────────── */

.hp-stats {
  background: #0d1f18;
  border-top: 1px solid #1e3a2a;
  border-bottom: 1px solid #1e3a2a;
}

.hp-stats__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.hp-stats__item {
  text-align: center;
  padding: 0.5rem 3rem;
}

.hp-stats__num {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: #3dcb7a;
  line-height: 1;
  letter-spacing: -0.03em;
}

.hp-stats__label {
  display: block;
  font-size: 0.8rem;
  color: #5a8a72;
  margin-top: 0.3rem;
  font-weight: 500;
}

.hp-stats__sep {
  width: 1px;
  height: 40px;
  background: #1e3a2a;
}

/* ── Sections ─────────────────────────────────────────────────────────────── */

.hp-section {
  padding: 5rem 2rem;
}

.hp-section--alt {
  background: #0d1f18;
}

.hp-section__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.hp-section__header {
  text-align: center;
  margin-bottom: 3.5rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.hp-section__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #3dcb7a;
  margin-bottom: 0.75rem;
}

.hp-section__title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.85rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.hp-section__sub {
  color: #6a9a80;
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
}

/* ── Features grid ────────────────────────────────────────────────────────── */

.hp-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.hp-feature {
  background: #0d1f18;
  border: 1px solid #1a3024;
  border-radius: 14px;
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s;
}

.hp-feature:hover {
  border-color: #2a6040;
  transform: translateY(-2px);
}

.hp-feature__icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.hp-feature__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.65rem;
}

.hp-feature__text {
  color: #6a9a80;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* ── Pipeline ─────────────────────────────────────────────────────────────── */

.hp-pipeline {
  display: flex;
  align-items: flex-start;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.hp-pipeline__step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #0a1410;
  border: 1px solid #1a3024;
  border-radius: 14px;
  padding: 1.5rem;
  flex: 1;
  min-width: 200px;
  max-width: 240px;
  position: relative;
}

.hp-pipeline__step--async {
  border-color: #2a4a38;
  background: #0d1f18;
}

.hp-pipeline__arrow {
  color: #2a4a38;
  font-size: 1.5rem;
  align-self: center;
  padding: 0 0.5rem;
  flex-shrink: 0;
}

.hp-pipeline__num {
  width: 38px;
  height: 38px;
  background: var(--accent);
  color: #fff;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.hp-pipeline__step--async .hp-pipeline__num {
  background: #2a5a40;
}

.hp-pipeline__info {
  flex: 1;
  min-width: 0;
}

.hp-pipeline__label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #e8f0ec;
  margin: 0 0 0.4rem;
}

.hp-pipeline__desc {
  font-size: 0.8rem;
  color: #5a8a72;
  line-height: 1.5;
  margin: 0 0 0.6rem;
}

.hp-pipeline__model {
  font-size: 0.72rem;
  font-weight: 600;
  color: #3dcb7a;
  background: #0d2e1e;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  display: inline-block;
}

/* ── Standards ────────────────────────────────────────────────────────────── */

.hp-standards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.hp-standard {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #0d1f18;
  border: 1px solid #1a3024;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  transition: border-color 0.2s;
}

.hp-standard:hover { border-color: #2a6040; }

.hp-standard__logo {
  font-size: 0.75rem;
  font-weight: 800;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  flex-shrink: 0;
  letter-spacing: 0.03em;
  min-width: 52px;
  text-align: center;
}

.hp-standard__info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hp-standard__info strong {
  color: #c8e0d4;
  font-size: 0.9rem;
}

.hp-standard__info span {
  color: #5a8a72;
  font-size: 0.8rem;
  line-height: 1.4;
}

/* ── CTA section ──────────────────────────────────────────────────────────── */

.hp-cta {
  padding: 6rem 2rem;
  text-align: center;
  background: radial-gradient(ellipse at center, #0d2e1e 0%, #0a1410 65%);
  border-top: 1px solid #1e3a2a;
}

.hp-cta__inner {
  max-width: 580px;
  margin: 0 auto;
}

.hp-cta__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.hp-cta__sub {
  color: #6a9a80;
  font-size: 1.05rem;
  margin: 0 0 2rem;
  line-height: 1.6;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */

.hp-footer {
  background: #060e0a;
  border-top: 1px solid #1a3024;
  padding: 1.75rem 2rem;
}

.hp-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.hp-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  color: #4a7a5c;
  font-size: 0.9rem;
}

.hp-footer__copy {
  color: #2a4a38;
  font-size: 0.8rem;
  margin: 0;
}

/* ── Workflow pain/solution comparison ────────────────────────────────────── */

.hp-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: start;
}

.hp-flow__col {
  border-radius: 14px;
  padding: 1.75rem;
}

.hp-flow__col--bad {
  background: #120c0c;
  border: 1px solid #3d1a1a;
}

.hp-flow__col--good {
  background: #0d1f18;
  border: 1px solid #1a4a2e;
}

.hp-flow__col-tag {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #e07070;
  margin-bottom: 1.25rem;
}

.hp-flow__col-tag--good { color: #3dcb7a; }

.hp-flow__chain {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}

.hp-flow__node {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.hp-flow__node > div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hp-flow__node strong {
  font-size: 0.9rem;
  color: #e8f0ec;
  font-weight: 600;
}

.hp-flow__node span {
  font-size: 0.8rem;
  color: #6a9a80;
  line-height: 1.4;
}

.hp-flow__node-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  line-height: 1.3;
  margin-top: 0.05rem;
}

.hp-flow__node--end-bad  strong { color: #e07070; }
.hp-flow__node--end-good strong { color: #3dcb7a; }

.hp-flow__connector {
  width: 2px;
  height: 1.5rem;
  margin: 0.4rem 0 0.4rem 0.55rem;
  border-radius: 1px;
}

.hp-flow__connector--bad  { background: #3d1a1a; }
.hp-flow__connector--good { background: #1a4a2e; }

.hp-flow__result {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  text-align: center;
}

.hp-flow__result--bad {
  background: #1e0c0c;
  color: #e07070;
  border: 1px solid #3d1a1a;
}

.hp-flow__result--good {
  background: #0d2e1e;
  color: #3dcb7a;
  border: 1px solid #1a4a2e;
}

.hp-flow__divider {
  font-size: 2rem;
  color: #2a4a38;
  align-self: center;
  text-align: center;
  padding: 0 0.25rem;
}

/* ── ROI Comparison ───────────────────────────────────────────────────────── */

.hp-roi {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 2.5rem;
}

.hp-roi__col {
  background: #0a1410;
  border: 1px solid #1a3024;
  border-radius: 14px;
  padding: 1.75rem;
}

.hp-roi__col--before {
  border-color: #3d1a1a;
  background: #120c0c;
}

.hp-roi__col--after {
  border-color: #1a3024;
  background: #0d1f18;
}

.hp-roi__col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.hp-roi__col-label {
  font-weight: 700;
  font-size: 1rem;
  color: #e8f0ec;
}

.hp-roi__col-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
}

.hp-roi__col-badge--red   { background: #3d1a1a; color: #e07070; }
.hp-roi__col-badge--green { background: #0d2e1e; color: #3dcb7a; }

.hp-roi__list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hp-roi__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #8ab89e;
  line-height: 1.4;
}

.hp-roi__list li strong { color: #e8f0ec; }

.hp-roi__icon {
  flex-shrink: 0;
  font-style: normal;
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 0.05rem;
}

.hp-roi__icon--bad  { color: #e07070; }
.hp-roi__icon--good { color: #3dcb7a; }

.hp-roi__cost {
  padding: 1rem 1.25rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hp-roi__col--before .hp-roi__cost {
  background: #1e0c0c;
  border: 1px solid #3d1a1a;
}

.hp-roi__col--after .hp-roi__cost {
  background: #0d2e1e;
  border: 1px solid #1a4a2e;
}

.hp-roi__cost-label {
  font-size: 0.78rem;
  color: #5a8a72;
  font-weight: 500;
}

.hp-roi__cost-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #e07070;
  letter-spacing: -0.02em;
}

.hp-roi__cost-value--green { color: #3dcb7a; }

.hp-roi__arrow {
  font-size: 2rem;
  color: #2a4a38;
  align-self: center;
  text-align: center;
  padding: 0 0.5rem;
}

.hp-roi__callout {
  background: #0d2e1e;
  border: 1px solid #1e5c35;
  border-radius: 12px;
  padding: 1.5rem 2rem;
  text-align: center;
}

.hp-roi__callout p {
  color: #7abf9a;
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
}

.hp-roi__callout strong { color: #3dcb7a; }

/* ── Pricing grid ─────────────────────────────────────────────────────────── */

.hp-pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: start;
}

.hp-pricing__footnote {
  text-align: center;
  color: #5a8a72;
  font-size: 0.85rem;
  margin: 0;
}

/* ── Plan cards ───────────────────────────────────────────────────────────── */

.hp-plan {
  background: #0a1410;
  border: 1px solid #1a3024;
  border-radius: 16px;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}

.hp-plan:hover {
  border-color: #2a6040;
  transform: translateY(-2px);
}

.hp-plan--featured {
  border-color: var(--accent);
  background: #0d1f18;
  transform: scale(1.03);
}

.hp-plan--featured:hover {
  border-color: #1a7a4a;
  transform: scale(1.03) translateY(-2px);
}

.hp-plan__badge-popular {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 1rem;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.hp-plan__header { margin-bottom: 1.5rem; }

.hp-plan__name {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #7abf9a;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.hp-plan__price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.hp-plan__amount {
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
}

.hp-plan__period {
  font-size: 1rem;
  color: #5a8a72;
  font-weight: 500;
}

.hp-plan__tagline {
  font-size: 0.82rem;
  color: #5a8a72;
  margin: 0;
  line-height: 1.4;
}

.hp-plan__features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.hp-plan__features li {
  font-size: 0.875rem;
  color: #8ab89e;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.4;
}

.hp-plan__check {
  color: #3dcb7a;
  font-weight: 700;
  flex-shrink: 0;
}

.hp-plan__roi {
  background: #0d2e1e;
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  margin-bottom: 1.25rem;
}

.hp-plan__roi span {
  font-size: 0.78rem;
  color: #3dcb7a;
  font-weight: 600;
}

.hp-plan__cta {
  display: block;
  text-align: center;
  text-decoration: none;
  background: #0d2e1e;
  color: #3dcb7a;
  border: 1px solid #1e5c35;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.hp-plan__cta:hover {
  background: #1a4a2e;
  border-color: var(--accent);
  color: #fff;
}

.hp-plan__cta--featured {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.hp-plan__cta--featured:hover {
  background: #1a7a4a;
  border-color: #1a7a4a;
}

/* ── FAQs ─────────────────────────────────────────────────────────────────── */

.hp-faqs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 1.25rem;
}

.hp-faq {
  background: #0d1f18;
  border: 1px solid #1a3024;
  border-radius: 14px;
  padding: 1.75rem;
  transition: border-color 0.2s;
}

.hp-faq:hover { border-color: #2a6040; }

.hp-faq__q {
  font-size: 0.975rem;
  font-weight: 700;
  color: #e8f0ec;
  margin: 0 0 0.75rem;
  line-height: 1.4;
}

.hp-faq__a {
  font-size: 0.875rem;
  color: #6a9a80;
  margin: 0;
  line-height: 1.65;
}

/* ── Footer nav links ─────────────────────────────────────────────────────── */

.hp-footer__links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.hp-footer__links a {
  color: #4a7a5c;
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.15s;
}

.hp-footer__links a:hover { color: #7abf9a; }

/* ── CTA fine print ───────────────────────────────────────────────────────── */

.hp-cta__fine {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: #4a7a5c;
}

.hp-cta__fine a {
  color: #7abf9a;
  text-decoration: none;
}

.hp-cta__fine a:hover { text-decoration: underline; }

/* ── Flow dual (2 bad columns, no divider) ────────────────────────────────── */

.hp-flow--dual {
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* ── How it works — 3-step flow ──────────────────────────────────────────── */

.hp-howit {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.hp-howit__step {
  flex: 1;
  max-width: 300px;
  min-width: 200px;
  text-align: center;
  padding: 2rem 1.5rem;
  background: #0a1410;
  border: 1px solid #1a3024;
  border-radius: 14px;
  transition: border-color 0.2s;
}

.hp-howit__step:hover { border-color: #2a6040; }

.hp-howit__num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.3rem;
  margin: 0 auto 1rem;
}

.hp-howit__actor {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #3dcb7a;
  margin-bottom: 0.6rem;
}

.hp-howit__label {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.6rem;
  line-height: 1.3;
}

.hp-howit__desc {
  color: #6a9a80;
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
}

.hp-howit__arrow {
  color: #2a4a38;
  font-size: 2rem;
  align-self: center;
  flex-shrink: 0;
  padding: 0 1.25rem;
}

.hp-howit__callout {
  background: #0d2e1e;
  border: 1px solid #1e5c35;
  border-radius: 12px;
  padding: 1.5rem 2rem;
  text-align: center;
  color: #7abf9a;
  font-size: 0.95rem;
  line-height: 1.65;
}

.hp-howit__callout strong {
  display: block;
  color: #3dcb7a;
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

/* ── Three audiences ──────────────────────────────────────────────────────── */

.hp-audiences {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.hp-audience {
  background: #0d1f18;
  border: 1px solid #1a3024;
  border-radius: 14px;
  padding: 2rem;
  transition: border-color 0.2s, transform 0.2s;
}

.hp-audience:hover {
  border-color: #2a6040;
  transform: translateY(-2px);
}

.hp-audience--featured {
  border-color: var(--accent);
  background: #0d2818;
}

.hp-audience__icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.hp-audience__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.35rem;
  line-height: 1.3;
}

.hp-audience__sub {
  font-size: 0.82rem;
  font-weight: 600;
  color: #3dcb7a;
  margin: 0 0 1.25rem;
}

.hp-audience__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.hp-audience__list li {
  font-size: 0.875rem;
  color: #8ab89e;
  padding-left: 1.3rem;
  position: relative;
  line-height: 1.4;
}

.hp-audience__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #3dcb7a;
  font-weight: 700;
}

/* ── Sectors grid ─────────────────────────────────────────────────────────── */

.hp-sectors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}

.hp-sector {
  background: #0a1410;
  border: 1px solid #1a3024;
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}

.hp-sector:hover {
  border-color: #2a6040;
  transform: translateY(-2px);
}

.hp-sector__icon {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.hp-sector__name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #e8f0ec;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.hp-sector__alerts {
  font-size: 0.78rem;
  color: #5a8a72;
  margin: 0;
  line-height: 1.55;
}

/* ── Coming soon badge + plan check variant ───────────────────────────────── */

.hp-coming-soon {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  background: #1a3024;
  color: #4a8a6a;
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  vertical-align: middle;
}

.hp-plan__check--soon { color: #3a6a50; }

/* ── Responsive homepage ──────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .hp-pricing {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .hp-plan--featured { transform: none; }
  .hp-plan--featured:hover { transform: translateY(-2px); }

  .hp-audiences {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .hp-howit {
    flex-direction: column;
    align-items: center;
  }

  .hp-howit__step {
    max-width: 100%;
    width: 100%;
  }

  .hp-howit__arrow {
    transform: rotate(90deg);
    padding: 0.25rem 1rem;
  }
}

@media (max-width: 768px) {
  .hp-nav__links { gap: 1rem; }
  .hp-nav__link  { display: none; }
  .hp-hero       { padding: 3.5rem 1.25rem 0; }
  .hp-hero__actions { flex-direction: column; align-items: stretch; text-align: center; }
  .hp-stats__inner  { gap: 0; }
  .hp-stats__item   { padding: 0.75rem 1.5rem; }
  .hp-stats__sep    { height: 1px; width: 40px; }
  .hp-pipeline      { flex-direction: column; align-items: stretch; }
  .hp-pipeline__step { max-width: 100%; }
  .hp-pipeline__arrow { transform: rotate(90deg); align-self: flex-start; padding: 0.25rem 1rem; }
  .hp-section { padding: 3.5rem 1.25rem; }
  .hp-cta     { padding: 4rem 1.25rem; }

  .hp-flow {
    grid-template-columns: 1fr;
  }

  .hp-flow--dual {
    grid-template-columns: 1fr;
  }

  .hp-flow__divider {
    transform: rotate(90deg);
    align-self: center;
    margin: 0 auto;
  }

  .hp-roi {
    grid-template-columns: 1fr;
  }

  .hp-roi__arrow {
    transform: rotate(90deg);
    font-size: 1.5rem;
    text-align: center;
  }

  .hp-faqs {
    grid-template-columns: 1fr;
  }

  .hp-footer__links {
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ──────────────────────────────────────────────────────────────────────────
   HOMEPAGE UI Refresh (override layer)
   ────────────────────────────────────────────────────────────────────────── */

.hp-root {
  --hp-bg: #071511;
  --hp-bg-soft: #0d211a;
  --hp-surface: #102a23;
  --hp-line: rgba(135, 214, 180, 0.23);
  --hp-line-strong: rgba(135, 214, 180, 0.42);
  --hp-text: #effaf4;
  --hp-muted: #a7c6b7;
  --hp-subtle: #7fa392;
  --hp-accent: #3ccf8f;
  --hp-accent-2: #8af4c8;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(880px 520px at 10% -8%, rgba(60, 207, 143, 0.2), transparent 70%),
    radial-gradient(720px 480px at 90% 3%, rgba(138, 244, 200, 0.12), transparent 72%),
    linear-gradient(180deg, #081813 0%, #06110d 62%, #050c0a 100%);
  color: var(--hp-text);
  font-family: "Aptos", "Trebuchet MS", "Segoe UI", sans-serif;
}

.hp-root::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, black 26%, transparent 100%);
}

@keyframes hpFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.hp-hero__badge,
.hp-hero__title,
.hp-hero__sub,
.hp-hero__actions,
.hp-terminal {
  animation: hpFadeUp 0.62s ease both;
}

.hp-hero__title { animation-delay: 0.08s; }
.hp-hero__sub { animation-delay: 0.16s; }
.hp-hero__actions { animation-delay: 0.24s; }
.hp-terminal { animation-delay: 0.32s; }

.hp-nav {
  background: linear-gradient(180deg, rgba(6, 15, 12, 0.9), rgba(7, 18, 14, 0.82));
  border-bottom: 1px solid var(--hp-line);
  backdrop-filter: blur(14px);
}

.hp-nav__inner {
  max-width: 1160px;
  height: 68px;
}

.hp-nav__logo {
  border-radius: 10px;
  color: #072114;
  background: linear-gradient(145deg, var(--hp-accent), var(--hp-accent-2));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 8px 18px rgba(39, 178, 120, 0.28);
}

.hp-nav__name { letter-spacing: 0.01em; }

.hp-nav__link {
  color: var(--hp-muted);
  font-weight: 600;
  transition: color 0.2s ease;
}

.hp-nav__link:hover { color: var(--hp-text); }

.hp-nav__cta {
  color: #072114;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--hp-accent), var(--hp-accent-2));
  box-shadow: 0 8px 22px rgba(38, 190, 126, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hp-nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(38, 190, 126, 0.34);
}

.hp-btn {
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.hp-btn:hover { transform: translateY(-1px); }

.hp-btn--primary {
  color: #072114;
  background: linear-gradient(135deg, var(--hp-accent), var(--hp-accent-2));
  box-shadow: 0 12px 28px rgba(38, 190, 126, 0.26);
}

.hp-btn--ghost {
  color: var(--hp-muted);
  border-color: var(--hp-line);
  background: rgba(9, 25, 20, 0.6);
}

.hp-btn--ghost:hover {
  color: var(--hp-text);
  border-color: var(--hp-line-strong);
  background: rgba(14, 35, 28, 0.8);
}

.hp-hero {
  padding-top: 5.8rem;
  background: none;
}

.hp-hero__inner { max-width: 1060px; }

.hp-hero__badge {
  border-radius: 999px;
  border-color: var(--hp-line-strong);
  background: rgba(14, 44, 33, 0.72);
  color: #bce8d2;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.78rem;
  font-weight: 700;
}

.hp-hero__title {
  font-size: clamp(2.45rem, 4.8vw, 4.35rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hp-hero__title-accent {
  background: linear-gradient(135deg, #61e3ac, #97f8d1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hp-hero__sub {
  max-width: 760px;
  color: var(--hp-muted);
  font-size: 1.08rem;
}

.hp-terminal {
  border-radius: 18px;
  border-color: var(--hp-line);
  background: linear-gradient(180deg, #0f2822, #0a1c17);
  box-shadow:
    0 30px 70px rgba(0,0,0,0.46),
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 0 0 1px rgba(14, 31, 24, 0.6);
}

.hp-terminal__bar {
  background: linear-gradient(180deg, rgba(6, 17, 14, 0.82), rgba(8, 20, 16, 0.62));
  border-bottom-color: rgba(145, 212, 185, 0.14);
}

.hp-terminal__title {
  color: #8fb8a8;
  font-weight: 700;
}

.hp-terminal__msg--ai {
  color: #d7f4e6;
  border-color: rgba(153, 224, 197, 0.2);
  background: rgba(18, 60, 47, 0.48);
}

.hp-terminal__msg--user {
  border-color: rgba(116, 150, 255, 0.23);
  background: linear-gradient(180deg, rgba(21, 35, 77, 0.9), rgba(15, 24, 52, 0.92));
}

.hp-terminal__status {
  background: rgba(8, 20, 16, 0.84);
  border-top-color: rgba(145, 212, 185, 0.14);
}

.hp-terminal__chip {
  color: #a8dec3;
  border: 1px solid rgba(118, 195, 163, 0.2);
  background: rgba(38, 103, 79, 0.34);
}

.hp-terminal__chip--accent {
  color: #d8ffe9;
  border-color: rgba(87, 220, 161, 0.4);
  background: linear-gradient(130deg, rgba(57, 191, 127, 0.35), rgba(75, 214, 157, 0.2));
}

.hp-stats {
  padding: 1.35rem 1.5rem 0;
  background: transparent;
  border: 0;
}

.hp-stats__inner {
  max-width: 1060px;
  border-radius: 16px;
  border: 1px solid var(--hp-line);
  background: linear-gradient(180deg, rgba(10, 32, 25, 0.7), rgba(8, 22, 18, 0.9));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}

.hp-stats__sep { display: none; }

.hp-stats__num {
  color: var(--hp-accent-2);
  font-size: clamp(1.6rem, 2vw, 2.2rem);
}

.hp-stats__label {
  color: var(--hp-subtle);
  font-weight: 600;
  font-size: 0.79rem;
}

.hp-section--alt {
  background: linear-gradient(180deg, rgba(11, 31, 25, 0.75), rgba(7, 18, 14, 0.88));
  border-top: 1px solid rgba(125, 198, 168, 0.14);
  border-bottom: 1px solid rgba(125, 198, 168, 0.14);
}

.hp-section__inner { max-width: 1160px; }
.hp-section__header { max-width: 760px; }

.hp-section__eyebrow {
  border-radius: 999px;
  color: #8bf7ca;
  border: 1px solid rgba(135, 238, 194, 0.35);
  background: rgba(22, 69, 54, 0.45);
  padding: 0.24rem 0.74rem;
}

.hp-section__title {
  font-size: clamp(1.8rem, 3.3vw, 2.65rem);
  letter-spacing: -0.025em;
}

.hp-section__sub { color: var(--hp-muted); }

.hp-audience,
.hp-feature,
.hp-sector,
.hp-standard,
.hp-faq,
.hp-plan,
.hp-howit__step,
.hp-pipeline__step {
  border-color: var(--hp-line);
  background: linear-gradient(180deg, rgba(16, 41, 33, 0.76), rgba(10, 25, 20, 0.86));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 15px 34px rgba(0,0,0,0.2);
}

.hp-audience:hover,
.hp-feature:hover,
.hp-sector:hover,
.hp-standard:hover,
.hp-faq:hover,
.hp-plan:hover,
.hp-howit__step:hover,
.hp-pipeline__step:hover {
  border-color: var(--hp-line-strong);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 20px 40px rgba(0,0,0,0.27);
}

.hp-flow__col--bad {
  border-color: rgba(234, 118, 118, 0.26);
  background: linear-gradient(180deg, rgba(60, 23, 23, 0.48), rgba(28, 15, 15, 0.82));
}

.hp-flow__col-tag {
  color: #ff9d9d;
  border-color: rgba(236, 134, 134, 0.35);
  background: rgba(109, 35, 35, 0.24);
  border-radius: 999px;
  padding: 0.28rem 0.72rem;
}

.hp-flow__connector { background: rgba(255, 161, 161, 0.38); }
.hp-flow__node span { color: #cae0d6; }
.hp-flow__result {
  color: #ffd3d3;
  border-color: rgba(243, 145, 145, 0.3);
  background: rgba(168, 39, 39, 0.18);
}

.hp-howit__num,
.hp-pipeline__num,
.hp-standard__logo {
  color: #072114;
  background: linear-gradient(135deg, var(--hp-accent), var(--hp-accent-2));
}

.hp-howit__actor,
.hp-audience__sub,
.hp-plan__name {
  color: #98e9c2;
}

.hp-feature__text,
.hp-audience__list li,
.hp-faq__a,
.hp-pipeline__desc,
.hp-sector__alerts,
.hp-plan__features li,
.hp-plan__tagline {
  color: var(--hp-muted);
}

.hp-pipeline__arrow,
.hp-howit__arrow { color: #5da88a; }

.hp-plan--featured {
  border-color: rgba(145, 229, 189, 0.45);
  background: linear-gradient(180deg, rgba(21, 56, 44, 0.82), rgba(13, 31, 25, 0.9));
}

.hp-plan__badge-popular {
  color: #072114;
  border-radius: 999px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--hp-accent), var(--hp-accent-2));
}

.hp-plan__roi {
  border: 1px solid rgba(132, 243, 197, 0.28);
  background: rgba(19, 57, 45, 0.55);
}

.hp-plan__roi span { color: #9deec8; }

.hp-plan__cta {
  border-color: rgba(132, 243, 197, 0.32);
  color: #a7e9ca;
  background: rgba(13, 45, 34, 0.52);
}

.hp-plan__cta:hover,
.hp-plan__cta--featured {
  color: #062015;
  border-color: transparent;
  background: linear-gradient(135deg, var(--hp-accent), var(--hp-accent-2));
}

.hp-cta {
  border-top: 1px solid rgba(125, 198, 168, 0.14);
  background:
    radial-gradient(600px 300px at 50% 10%, rgba(77, 216, 158, 0.14), transparent 74%),
    linear-gradient(180deg, rgba(9, 27, 21, 0.78), rgba(5, 12, 10, 0.95));
}

.hp-cta__sub,
.hp-pricing__footnote { color: var(--hp-muted); }

.hp-cta__fine { color: var(--hp-subtle); }
.hp-cta__fine a { color: #97f5cb; }

.hp-footer {
  border-top-color: var(--hp-line);
  background: rgba(4, 11, 9, 0.9);
}

.hp-footer__brand,
.hp-footer__links a { color: #8bbba6; }

.hp-footer__links a:hover { color: var(--hp-text); }
.hp-footer__copy { color: #729987; }

@media (max-width: 1080px) {
  .hp-pricing {
    grid-template-columns: 1fr;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
  }

  .hp-plan--featured { order: -1; }

  .hp-audiences { grid-template-columns: 1fr 1fr; }

  .hp-pipeline { gap: 0.8rem; }
  .hp-pipeline__arrow { display: none; }
  .hp-pipeline__step { max-width: none; }
}

@media (max-width: 860px) {
  .hp-audiences,
  .hp-flow,
  .hp-flow--dual { grid-template-columns: 1fr; }

  .hp-howit {
    flex-direction: column;
    align-items: stretch;
    gap: 0.82rem;
  }

  .hp-howit__step {
    max-width: 100%;
    width: 100%;
  }

  .hp-howit__arrow { display: none; }

  .hp-stats__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .hp-nav__inner {
    height: 62px;
    padding: 0 1rem;
  }

  .hp-hero {
    padding: 4.15rem 1rem 0;
  }

  .hp-hero__actions .hp-btn {
    width: 100%;
  }

  .hp-hero__sub { font-size: 1rem; }

  .hp-terminal__body { padding: 1rem; }
  .hp-terminal__msg {
    max-width: 100%;
    font-size: 0.86rem;
  }

  .hp-stats { padding: 1rem 1rem 0; }
  .hp-stats__inner {
    padding: 0.85rem 0.7rem;
    gap: 0.4rem;
  }
}

@media (max-width: 520px) {
  .hp-stats__inner { grid-template-columns: 1fr; }
}

/* ──────────────────────────────────────────────────────────────────────────
   HOMEPAGE Light Tone (brand-preserving override)
   ────────────────────────────────────────────────────────────────────────── */

.hp-root {
  --hp-bg: #edf5f0;
  --hp-bg-soft: #e4efe8;
  --hp-surface: #f4faf7;
  --hp-line: rgba(23, 93, 58, 0.2);
  --hp-line-strong: rgba(23, 93, 58, 0.34);
  --hp-text: #112d21;
  --hp-muted: #415c52;
  --hp-subtle: #5d786e;
  --hp-accent: #1f8f5d;
  --hp-accent-2: #43b57f;
  background:
    radial-gradient(900px 540px at 10% -8%, rgba(67, 181, 127, 0.14), transparent 70%),
    radial-gradient(760px 520px at 90% 5%, rgba(67, 181, 127, 0.09), transparent 72%),
    linear-gradient(180deg, #eef5f0 0%, #e7f0ea 58%, #dfeae3 100%);
  color: var(--hp-text);
}

.hp-root::before {
  background-image:
    linear-gradient(rgba(20, 78, 50, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 78, 50, 0.035) 1px, transparent 1px);
}

.hp-nav {
  background: linear-gradient(180deg, rgba(236, 246, 240, 0.92), rgba(228, 239, 232, 0.88));
  border-bottom: 1px solid var(--hp-line);
}

.hp-nav__name { color: var(--hp-text); }

.hp-nav__link {
  color: var(--hp-muted);
}

.hp-nav__link:hover { color: var(--hp-text); }

.hp-nav__logo {
  color: #fff;
  background: linear-gradient(145deg, var(--hp-accent), var(--hp-accent-2));
}

.hp-nav__cta {
  color: #fff;
  background: linear-gradient(135deg, var(--hp-accent), var(--hp-accent-2));
}

.hp-btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--hp-accent), var(--hp-accent-2));
  box-shadow: 0 10px 22px rgba(31, 143, 93, 0.22);
}

.hp-btn--ghost {
  color: #2f6e4f;
  border-color: var(--hp-line);
  background: rgba(243, 250, 246, 0.92);
}

.hp-btn--ghost:hover {
  color: #184f35;
  border-color: var(--hp-line-strong);
  background: #f8fcfa;
}

.hp-hero__badge {
  color: #2a6e4e;
  border-color: rgba(31, 143, 93, 0.28);
  background: #e2f1e8;
}

.hp-hero__title { color: var(--hp-text); }
.hp-hero__sub { color: var(--hp-muted); }

.hp-terminal {
  border-color: var(--hp-line);
  background: linear-gradient(180deg, #f3f9f6, #eaf3ee);
  box-shadow:
    0 22px 46px rgba(18, 71, 47, 0.14),
    inset 0 1px 0 rgba(255,255,255,0.85);
}

.hp-terminal__bar {
  background: linear-gradient(180deg, #eaf4ee, #e1eee6);
  border-bottom-color: rgba(31, 143, 93, 0.14);
}

.hp-terminal__title { color: #68897a; }

.hp-terminal__msg--ai {
  color: #1e4c37;
  border-color: rgba(31, 143, 93, 0.2);
  background: #e3f2e9;
}

.hp-terminal__status {
  background: #eaf3ee;
  border-top-color: rgba(31, 143, 93, 0.14);
}

.hp-terminal__chip {
  color: #2f6e4f;
  border-color: rgba(31, 143, 93, 0.2);
  background: #dfefe6;
}

.hp-terminal__chip--accent {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(130deg, var(--hp-accent), var(--hp-accent-2));
}

.hp-stats__inner {
  background: #f3f8f5;
  border-color: var(--hp-line);
  box-shadow: 0 14px 34px rgba(20, 78, 50, 0.1);
}

.hp-stats__num { color: #22895a; }
.hp-stats__label { color: #668174; }

.hp-section--alt {
  background: linear-gradient(180deg, #e9f2ec, #e1ebe4);
  border-top-color: rgba(31, 143, 93, 0.14);
  border-bottom-color: rgba(31, 143, 93, 0.14);
}

.hp-section__eyebrow {
  color: #2a7a55;
  border-color: rgba(31, 143, 93, 0.25);
  background: #ebf8f1;
}

.hp-section__title { color: var(--hp-text); }
.hp-section__sub { color: var(--hp-muted); }

.hp-audience,
.hp-feature,
.hp-sector,
.hp-standard,
.hp-faq,
.hp-plan,
.hp-howit__step,
.hp-pipeline__step {
  border-color: var(--hp-line);
  background: linear-gradient(180deg, #f5faf7, #edf4f0);
  box-shadow: 0 12px 30px rgba(18, 71, 47, 0.1);
}

.hp-audience:hover,
.hp-feature:hover,
.hp-sector:hover,
.hp-standard:hover,
.hp-faq:hover,
.hp-plan:hover,
.hp-howit__step:hover,
.hp-pipeline__step:hover {
  border-color: var(--hp-line-strong);
  box-shadow: 0 18px 38px rgba(18, 71, 47, 0.15);
}

.hp-audience--featured,
.hp-plan--featured {
  border-color: rgba(31, 143, 93, 0.3);
  background: linear-gradient(180deg, #eaf4ee, #e1eee7);
}

.hp-feature__title,
.hp-audience__title,
.hp-faq__q,
.hp-pipeline__label,
.hp-sector__name { color: var(--hp-text); }

.hp-feature__text,
.hp-audience__list li,
.hp-faq__a,
.hp-pipeline__desc,
.hp-sector__alerts,
.hp-plan__features li,
.hp-plan__tagline,
.hp-plan__period { color: var(--hp-muted); }

.hp-howit__actor,
.hp-audience__sub,
.hp-plan__name,
.hp-pipeline__model,
.hp-plan__roi span { color: #2a7a55; }

.hp-howit__num,
.hp-pipeline__num,
.hp-standard__logo {
  color: #fff;
  background: linear-gradient(135deg, var(--hp-accent), var(--hp-accent-2));
}

.hp-pipeline__arrow,
.hp-howit__arrow { color: #6ea58b; }

.hp-pipeline__model {
  border-color: rgba(31, 143, 93, 0.28);
  background: #ecf8f2;
}

.hp-flow__col {
  border-color: var(--hp-line);
  background: linear-gradient(180deg, #f3f8f5, #eaf2ee);
}

.hp-flow__col--bad {
  border-color: rgba(198, 94, 94, 0.28);
  background: linear-gradient(180deg, #fff5f5, #fff1f1);
}

.hp-flow__col-tag {
  color: #b55555;
  border-color: rgba(198, 94, 94, 0.32);
  background: #fdeaea;
}

.hp-flow__node strong { color: var(--hp-text); }
.hp-flow__node span { color: var(--hp-muted); }
.hp-flow__connector { background: rgba(198, 94, 94, 0.36); }

.hp-flow__result {
  color: #9f4b4b;
  border-color: rgba(198, 94, 94, 0.34);
  background: #fdeeee;
}

.hp-plan__badge-popular {
  color: #fff;
  background: linear-gradient(135deg, var(--hp-accent), var(--hp-accent-2));
}

.hp-plan__amount,
.hp-cta__title { color: var(--hp-text); }

.hp-plan__roi {
  border-color: rgba(31, 143, 93, 0.25);
  background: #e3f0e9;
}

.hp-plan__cta {
  color: #2d6f4f;
  border-color: rgba(31, 143, 93, 0.28);
  background: #e7f2ec;
}

.hp-plan__cta:hover,
.hp-plan__cta--featured {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--hp-accent), var(--hp-accent-2));
}

.hp-cta {
  border-top-color: rgba(31, 143, 93, 0.14);
  background:
    radial-gradient(600px 300px at 50% 10%, rgba(67, 181, 127, 0.1), transparent 74%),
    linear-gradient(180deg, #e8f1eb, #dce8e0);
}

.hp-cta__sub,
.hp-pricing__footnote { color: var(--hp-muted); }

.hp-cta__fine,
.hp-footer__copy { color: #6f8d80; }

.hp-cta__fine a { color: #2a7a55; }

.hp-footer {
  border-top-color: var(--hp-line);
  background: #e1ebe4;
}

.hp-footer__brand,
.hp-footer__links a { color: #3f5f52; }

.hp-footer__links a:hover { color: #1f4f36; }

/* ──────────────────────────────────────────────────────────────────────────
   HOMEPAGE Vantel-inspired refinement (minimal B2B layer)
   ────────────────────────────────────────────────────────────────────────── */

.hp-root {
  background:
    radial-gradient(620px 340px at 12% -6%, rgba(67, 181, 127, 0.1), transparent 72%),
    radial-gradient(540px 300px at 86% 0%, rgba(67, 181, 127, 0.07), transparent 72%),
    linear-gradient(180deg, #e7f0ea 0%, #e2ece6 40%, #dde8e1 100%);
}

.hp-root::before {
  background-image: none;
}

.hp-nav {
  background: rgba(236, 246, 240, 0.9);
  border-bottom: 1px solid rgba(23, 93, 58, 0.16);
  backdrop-filter: blur(8px);
}

.hp-nav__inner {
  max-width: 1080px;
  height: 66px;
}

.hp-nav__link {
  font-size: 0.86rem;
  letter-spacing: 0.01em;
}

.hp-nav__cta {
  border-radius: 10px;
  padding: 0.46rem 0.95rem;
}

.hp-hero {
  padding-top: 5.2rem;
}

.hp-hero__inner {
  max-width: 980px;
}

.hp-hero__badge {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 0.34rem 0.82rem;
  border-radius: 8px;
  text-transform: uppercase;
}

.hp-hero__title {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(2.3rem, 4.3vw, 3.8rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
}

.hp-hero__sub {
  max-width: 720px;
  margin-bottom: 1.7rem;
  font-size: 1.03rem;
  line-height: 1.66;
}

.hp-btn {
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 700;
}

.hp-btn--lg {
  padding: 0.83rem 1.45rem;
}

.hp-terminal {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 12px;
  border: 1px solid rgba(23, 93, 58, 0.15);
  box-shadow: 0 14px 28px rgba(20, 78, 50, 0.1);
}

.hp-terminal__body {
  padding: 1.05rem 1.2rem;
  gap: 0.7rem;
}

.hp-terminal__msg {
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.5;
}

.hp-terminal__status {
  padding: 0.65rem 1.2rem;
}

.hp-stats {
  padding-top: 1rem;
}

.hp-stats__inner {
  max-width: 980px;
  border-radius: 10px;
  box-shadow: none;
}

.hp-stats__item {
  padding: 0.5rem 0.4rem;
}

.hp-stats__num {
  font-size: clamp(1.55rem, 1.9vw, 2rem);
}

.hp-stats__label {
  font-size: 0.75rem;
  line-height: 1.28;
}

.hp-section {
  padding-top: 4.2rem;
  padding-bottom: 4.2rem;
}

.hp-section__inner {
  max-width: 1080px;
}

.hp-section__header {
  max-width: 700px;
  margin-bottom: 2.4rem;
}

.hp-section__eyebrow {
  font-size: 0.66rem;
  border-radius: 7px;
  letter-spacing: 0.09em;
}

.hp-section__title {
  font-size: clamp(1.68rem, 2.7vw, 2.35rem);
  line-height: 1.1;
}

.hp-section__sub {
  font-size: 0.96rem;
  line-height: 1.62;
}

.hp-flow,
.hp-flow--dual {
  gap: 1rem;
}

.hp-flow__col {
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: none;
}

.hp-flow__col-tag {
  font-size: 0.64rem;
  border-radius: 6px;
  padding: 0.24rem 0.58rem;
}

.hp-flow__node strong {
  font-size: 0.88rem;
}

.hp-flow__node span {
  font-size: 0.8rem;
}

.hp-flow__result {
  border-radius: 8px;
  font-size: 0.74rem;
}

.hp-howit {
  margin-bottom: 1.6rem;
}

.hp-howit__step {
  border-radius: 12px;
  padding: 1.35rem 1rem;
  box-shadow: none;
}

.hp-howit__num {
  width: 44px;
  height: 44px;
  font-size: 1rem;
  border-radius: 9px;
  box-shadow: none;
}

.hp-howit__label {
  font-size: 0.98rem;
}

.hp-howit__desc {
  font-size: 0.84rem;
}

.hp-howit__callout {
  border-radius: 10px;
  padding: 1rem 1.15rem;
  font-size: 0.89rem;
}

.hp-audiences,
.hp-features,
.hp-sectors,
.hp-standards,
.hp-pricing,
.hp-faqs {
  gap: 0.95rem;
}

.hp-audience,
.hp-feature,
.hp-sector,
.hp-standard,
.hp-faq,
.hp-plan,
.hp-pipeline__step {
  border-radius: 12px;
  padding: 1.2rem;
  box-shadow: none;
}

.hp-audience:hover,
.hp-feature:hover,
.hp-sector:hover,
.hp-standard:hover,
.hp-faq:hover,
.hp-plan:hover,
.hp-pipeline__step:hover {
  transform: none;
  box-shadow: none;
}

.hp-audience__title,
.hp-feature__title,
.hp-faq__q,
.hp-sector__name,
.hp-pipeline__label {
  font-size: 0.94rem;
}

.hp-audience__list li,
.hp-feature__text,
.hp-faq__a,
.hp-pipeline__desc,
.hp-sector__alerts,
.hp-plan__features li {
  font-size: 0.82rem;
}

.hp-pipeline {
  gap: 0.75rem;
}

.hp-pipeline__step {
  min-width: 220px;
  max-width: 245px;
}

.hp-pipeline__num {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  font-size: 0.75rem;
}

.hp-pipeline__model {
  border-radius: 6px;
  font-size: 0.65rem;
  padding: 0.16rem 0.42rem;
}

.hp-plan {
  padding: 1.3rem 1.1rem;
}

.hp-plan__badge-popular {
  font-size: 0.62rem;
  border-radius: 6px;
  padding: 0.18rem 0.55rem;
  top: -9px;
}

.hp-plan__amount {
  font-size: clamp(1.65rem, 2.2vw, 2.1rem);
}

.hp-plan__tagline {
  font-size: 0.76rem;
}

.hp-plan__roi {
  border-radius: 7px;
  padding: 0.45rem 0.58rem;
}

.hp-plan__roi span {
  font-size: 0.71rem;
}

.hp-plan__cta {
  border-radius: 8px;
  padding: 0.64rem 0.82rem;
  font-size: 0.82rem;
}

.hp-pricing__footnote {
  font-size: 0.78rem;
}

.hp-cta {
  padding: 4.3rem 1.5rem;
}

.hp-cta__inner {
  max-width: 700px;
}

.hp-cta__title {
  font-size: clamp(1.85rem, 3.5vw, 2.7rem);
}

.hp-cta__sub {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.96rem;
}

.hp-cta__fine {
  font-size: 0.78rem;
}

.hp-footer {
  padding: 1.35rem 1.5rem;
}

.hp-footer__inner {
  max-width: 1080px;
}

.hp-footer__links a {
  font-size: 0.76rem;
}

.hp-footer__copy {
  font-size: 0.72rem;
}

@media (max-width: 760px) {
  .hp-hero {
    padding-top: 4rem;
  }

  .hp-hero__title {
    font-size: clamp(2rem, 8.1vw, 2.7rem);
  }

  .hp-stats__inner {
    max-width: 640px;
  }

  .hp-section {
    padding-top: 3.4rem;
    padding-bottom: 3.4rem;
  }
}

/* ──────────────────────────────────────────────────────────────────────────
   HOMEPAGE Vantel philosophy v2 (clean enterprise minimalism)
   ────────────────────────────────────────────────────────────────────────── */

.hp-root {
  --hp-bg: #e9efeb;
  --hp-surface: #f4f7f5;
  --hp-card: #fbfdfc;
  --hp-line: rgba(18, 77, 50, 0.14);
  --hp-line-strong: rgba(18, 77, 50, 0.24);
  --hp-text: #102a1f;
  --hp-muted: #4a6157;
  --hp-subtle: #6a7f75;
  --hp-accent: #1f8f5d;
  --hp-accent-2: #2fa56f;
  background: linear-gradient(180deg, #e8efeb 0%, #e2eae5 52%, #dce5df 100%);
}

.hp-root::before,
.hp-root::after {
  display: none;
}

.hp-nav {
  background: rgba(239, 245, 241, 0.92);
  border-bottom: 1px solid var(--hp-line);
  backdrop-filter: blur(6px);
}

.hp-nav__inner {
  max-width: 1040px;
  height: 62px;
}

.hp-nav__name {
  font-size: 0.95rem;
  letter-spacing: 0;
}

.hp-nav__link {
  font-size: 0.82rem;
  font-weight: 600;
  color: #4f675c;
}

.hp-nav__cta {
  border-radius: 8px;
  padding: 0.42rem 0.82rem;
  font-size: 0.8rem;
}

.hp-hero {
  padding-top: 4.8rem;
}

.hp-hero__inner {
  max-width: 920px;
}

.hp-hero__badge {
  border-radius: 6px;
  padding: 0.28rem 0.62rem;
  font-size: 0.67rem;
  letter-spacing: 0.09em;
  background: #ebf3ee;
  border-color: rgba(31, 143, 93, 0.22);
}

.hp-hero__title {
  max-width: 820px;
  font-size: clamp(2.2rem, 4vw, 3.35rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin-bottom: 0.95rem;
}

.hp-hero__sub {
  max-width: 690px;
  font-size: 0.98rem;
  line-height: 1.62;
  margin-bottom: 1.35rem;
}

.hp-hero__actions {
  margin-bottom: 2.1rem;
  gap: 0.62rem;
}

.hp-btn {
  border-radius: 8px;
  font-size: 0.86rem;
  padding: 0.72rem 1.05rem;
  box-shadow: none;
}

.hp-btn--lg {
  padding: 0.74rem 1.1rem;
}

.hp-btn--primary {
  background: linear-gradient(180deg, var(--hp-accent), var(--hp-accent-2));
}

.hp-btn--ghost {
  background: #f6faf8;
  color: #2f5745;
}

.hp-terminal {
  max-width: 860px;
  border-radius: 10px;
  border: 1px solid var(--hp-line);
  background: #f7fbf9;
  box-shadow: none;
}

.hp-terminal__bar {
  padding: 0.62rem 0.78rem;
  background: #eff5f1;
  border-bottom: 1px solid var(--hp-line);
}

.hp-terminal__title {
  font-size: 0.73rem;
  color: #6b8378;
}

.hp-terminal__body {
  padding: 0.86rem 0.92rem;
}

.hp-terminal__msg {
  border-radius: 7px;
  font-size: 0.82rem;
  max-width: 100%;
}

.hp-terminal__msg--ai {
  background: #ebf4ef;
  border-color: rgba(31, 143, 93, 0.15);
}

.hp-terminal__status {
  padding: 0.5rem 0.8rem;
  background: #eef4f1;
}

.hp-terminal__chip {
  font-size: 0.68rem;
  border-radius: 999px;
  padding: 0.2rem 0.52rem;
}

.hp-stats {
  padding-top: 0.8rem;
}

.hp-stats__inner {
  max-width: 900px;
  border-radius: 8px;
  background: #f4f8f6;
  box-shadow: none;
}

.hp-stats__num {
  font-size: clamp(1.45rem, 1.6vw, 1.85rem);
}

.hp-stats__label {
  font-size: 0.72rem;
}

.hp-section {
  padding-top: 3.6rem;
  padding-bottom: 3.6rem;
}

.hp-section--alt {
  background: #eaf0ec;
  border-top: 1px solid var(--hp-line);
  border-bottom: 1px solid var(--hp-line);
}

.hp-section__inner {
  max-width: 1040px;
}

.hp-section__header {
  max-width: 650px;
  margin-bottom: 1.95rem;
}

.hp-section__eyebrow {
  font-size: 0.62rem;
  border-radius: 6px;
  padding: 0.2rem 0.56rem;
}

.hp-section__title {
  font-size: clamp(1.52rem, 2.35vw, 2.05rem);
  line-height: 1.12;
  margin-bottom: 0.55rem;
}

.hp-section__sub {
  font-size: 0.9rem;
  line-height: 1.58;
}

.hp-flow,
.hp-flow--dual,
.hp-audiences,
.hp-features,
.hp-sectors,
.hp-standards,
.hp-pricing,
.hp-faqs {
  gap: 0.78rem;
}

.hp-flow__col,
.hp-howit__step,
.hp-audience,
.hp-feature,
.hp-sector,
.hp-standard,
.hp-pipeline__step,
.hp-plan,
.hp-faq {
  border-radius: 10px;
  border: 1px solid var(--hp-line);
  background: #f8fbf9;
  box-shadow: none;
}

.hp-flow__col {
  padding: 1.02rem;
}

.hp-flow__col--bad {
  background: #f8f1f1;
  border-color: rgba(173, 90, 90, 0.28);
}

.hp-flow__col-tag {
  border-radius: 5px;
  padding: 0.19rem 0.48rem;
  font-size: 0.6rem;
}

.hp-flow__node strong {
  font-size: 0.83rem;
}

.hp-flow__node span {
  font-size: 0.76rem;
}

.hp-flow__result {
  border-radius: 6px;
  font-size: 0.7rem;
}

.hp-howit__step {
  padding: 1.08rem 0.86rem;
}

.hp-howit__num {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.hp-howit__actor {
  font-size: 0.6rem;
}

.hp-howit__label,
.hp-audience__title,
.hp-feature__title,
.hp-sector__name,
.hp-pipeline__label,
.hp-faq__q {
  font-size: 0.88rem;
}

.hp-howit__desc,
.hp-audience__list li,
.hp-feature__text,
.hp-sector__alerts,
.hp-pipeline__desc,
.hp-plan__features li,
.hp-faq__a {
  font-size: 0.78rem;
}

.hp-howit__callout {
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-size: 0.82rem;
}

.hp-audience,
.hp-feature,
.hp-sector,
.hp-faq,
.hp-plan {
  padding: 0.98rem;
}

.hp-audience__icon,
.hp-feature__icon,
.hp-sector__icon {
  font-size: 1.32rem;
  margin-bottom: 0.56rem;
  line-height: 1;
  opacity: 0.82;
}

.hp-pipeline {
  gap: 0.62rem;
}

.hp-pipeline__step {
  min-width: 206px;
  max-width: 232px;
  padding: 0.96rem 0.88rem;
}

.hp-pipeline__num {
  width: 27px;
  height: 27px;
  border-radius: 6px;
  font-size: 0.68rem;
}

.hp-pipeline__model {
  border-radius: 4px;
  font-size: 0.6rem;
  padding: 0.12rem 0.34rem;
}

.hp-plan__badge-popular {
  border-radius: 5px;
  padding: 0.14rem 0.42rem;
  font-size: 0.56rem;
  top: -8px;
}

.hp-plan__price {
  margin-bottom: 0.34rem;
}

.hp-plan__amount {
  font-size: clamp(1.48rem, 1.85vw, 1.88rem);
}

.hp-plan__period {
  font-size: 0.78rem;
}

.hp-plan__tagline {
  font-size: 0.7rem;
}

.hp-plan__features {
  gap: 0.42rem;
  margin-bottom: 0.8rem;
}

.hp-plan__roi {
  border-radius: 6px;
  padding: 0.36rem 0.46rem;
}

.hp-plan__roi span {
  font-size: 0.64rem;
}

.hp-plan__cta {
  border-radius: 7px;
  padding: 0.56rem 0.74rem;
  font-size: 0.74rem;
}

.hp-pricing__footnote {
  font-size: 0.72rem;
}

.hp-cta {
  padding: 3.6rem 1.5rem;
  background: linear-gradient(180deg, #e7efea 0%, #dde7e0 100%);
}

.hp-cta__inner {
  max-width: 640px;
}

.hp-cta__title {
  font-size: clamp(1.68rem, 3.05vw, 2.25rem);
  margin-bottom: 0.62rem;
}

.hp-cta__sub {
  font-size: 0.88rem;
  max-width: 560px;
}

.hp-cta__fine {
  font-size: 0.72rem;
}

.hp-footer {
  padding: 1rem 1.3rem;
  background: #dfe7e2;
}

.hp-footer__inner {
  max-width: 1040px;
}

.hp-footer__brand {
  font-size: 0.8rem;
}

.hp-footer__links {
  gap: 0.78rem;
}

.hp-footer__links a {
  font-size: 0.7rem;
}

.hp-footer__copy {
  font-size: 0.66rem;
}

@media (max-width: 860px) {
  .hp-nav__inner {
    max-width: 100%;
  }

  .hp-section {
    padding-top: 3.15rem;
    padding-bottom: 3.15rem;
  }

  .hp-audiences { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .hp-hero {
    padding-top: 3.7rem;
  }

  .hp-hero__title {
    font-size: clamp(1.85rem, 7.8vw, 2.45rem);
  }

  .hp-stats__inner {
    max-width: 620px;
  }

  .hp-cta {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

/* ── Admin panel ───────────────────────────────────────────────── */
.admin-shell {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.75rem;
  gap: 1rem;
}

.admin-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.25rem;
}

.admin-meta {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.88rem;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════════════════
   INSPECTION HEADER — actions wrapper + resumen button
   ═══════════════════════════════════════════════════════════════════════════ */

.inspection-header__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.inspection-resumen-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: 20px;
  padding: 0.26rem 0.75rem 0.26rem 0.65rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s, color 0.18s;
}
.inspection-resumen-btn:hover {
  background: var(--accent);
  color: #fff;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESUMEN — datos capturados
   ═══════════════════════════════════════════════════════════════════════════ */

.resumen-shell {
  max-width: 860px;
  margin: 2rem auto;
  padding: 0 1.5rem 4rem;
}

/* Header */
.resumen-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.resumen-header__title {
  margin: 0 0 0.25rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
}

.resumen-header__meta {
  margin: 0;
  font-size: 0.83rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.resumen-header__actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Stats bar */
.resumen-stats {
  display: flex;
  gap: 0;
  background: #f8f7f5;
  border: 1px solid #e8e4de;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.resumen-stat {
  flex: 1;
  text-align: center;
  padding: 0.85rem 1rem;
  border-right: 1px solid #e8e4de;
}
.resumen-stat:last-child { border-right: none; }

.resumen-stat__value {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
}

.resumen-stat__label {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* Section */
.resumen-section {
  margin-bottom: 2.5rem;
  border: 1px solid #e8e4de;
  border-radius: 12px;
  overflow: hidden;
}

.resumen-section__title {
  margin: 0;
  padding: 0.75rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b6b6b;
  background: #f4f2ef;
  border-bottom: 1px solid #e8e4de;
}

/* Scalar fields — definition list */
.resumen-fields {
  margin: 0;
  padding: 0;
}

.resumen-field {
  display: grid;
  grid-template-columns: 38% 1fr;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.65rem 1.25rem;
  border-bottom: 1px solid #f0ede8;
}
.resumen-field:last-child { border-bottom: none; }
.resumen-field:nth-child(even) { background: #faf9f7; }

.resumen-field__label {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.4;
}

.resumen-field__value {
  font-size: 0.88rem;
  color: var(--ink);
  line-height: 1.4;
  word-break: break-word;
}

.resumen-empty {
  color: #c0bbb4;
  font-style: italic;
  font-size: 0.82rem;
}

.resumen-bool {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 20px;
}
.resumen-bool--yes {
  background: #e8f5ee;
  color: #2d6a47;
}
.resumen-bool--no {
  background: #fef2f2;
  color: #991b1b;
}

/* Table block (array fields) */
.resumen-table-block {
  padding: 1rem 1.25rem;
  border-top: 1px solid #f0ede8;
}
.resumen-table-block:first-child { border-top: none; }

.resumen-table-block__title {
  margin: 0 0 0.75rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.resumen-table-block__count {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  background: #f0ede8;
  border-radius: 20px;
  padding: 0.1rem 0.5rem;
}

/* Empty state */
.resumen-empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   INSPECTION SHOW — read-only conversation viewer
   ═══════════════════════════════════════════════════════════════════════════ */

/* Sidebar metadata list */
.insp-meta-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.5rem 0;
  flex: 1;
  overflow-y: auto;
}

.insp-meta-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #dedad4;
  font-size: 0.78rem;
}
.insp-meta-item:last-child { border-bottom: none; }

.insp-meta-item__label {
  color: #a09c96;
  font-weight: 500;
  flex-shrink: 0;
}

.insp-meta-item__value {
  color: #1a1a1a;
  text-align: right;
  word-break: break-all;
}

.insp-meta-item__value--score {
  font-weight: 700;
  color: var(--accent);
}

.insp-meta-item__value--email {
  font-size: 0.71rem;
  color: #6b6b6b;
}

/* Sidebar action buttons */
.insp-sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.75rem 0.6rem;
  border-top: 1px solid #dedad4;
  flex-shrink: 0;
}

.insp-sidebar-btn {
  display: block;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  color: #6b6b6b;
  background: transparent;
}
.insp-sidebar-btn:hover { background: #e8e5df; color: #1a1a1a; }

.insp-sidebar-btn--primary {
  background: var(--accent);
  color: #fff;
}
.insp-sidebar-btn--primary:hover { background: #0e4a2c; color: #fff; }

/* Read-only messages area — no form, just scrollable */
.inspection-messages--readonly {
  padding-bottom: 0;
}

/* Empty conversation placeholder */
.insp-empty-conv {
  margin: 3rem auto;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Bottom action bar */
.insp-readonly-footer {
  padding: 0.85rem 2.25rem;
  background: #ffffff;
  border-top: 1px solid #f0f0ec;
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PIPELINE — status badges & analytics bar
   ═══════════════════════════════════════════════════════════════════════════ */

.pipeline-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.pipeline-badge--completada  { background: #d1fae5; color: #065f46; }
.pipeline-badge--en_progreso { background: #dbeafe; color: #1e40af; }
.pipeline-badge--accedido    { background: #ede9fe; color: #5b21b6; }
.pipeline-badge--enviado     { background: #fef9c3; color: #854d0e; }
.pipeline-badge--sin_enviar  { background: #f3f4f6; color: #6b7280; }

/* Analytics bar */
.pipeline-stats {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  background: var(--panel);
  border-bottom: 1px solid #e5e7eb;
  padding: 0.85rem 2rem;
}
.pipeline-stat {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}
.pipeline-stat__value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}
.pipeline-stat__value--completadas { color: #065f46; }
.pipeline-stat__value--progreso    { color: #1e40af; }
.pipeline-stat__value--pendientes  { color: #854d0e; }
.pipeline-stat__label {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}
.pipeline-stat--scores { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
.pipeline-score-dist { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.pipeline-score-pill {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 12px;
}
.pipeline-score-pill--bajo    { background: #d1fae5; color: #065f46; }
.pipeline-score-pill--medio   { background: #fef9c3; color: #854d0e; }
.pipeline-score-pill--alto    { background: #ffedd5; color: #9a3412; }
.pipeline-score-pill--muy_alto { background: #fee2e2; color: #991b1b; }

/* Client name/email in table */
.dashboard-client-name {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink);
}
.dashboard-client-email {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 1px;
}

/* Reminder button as inline link */
.dashboard-link--muted {
  background: none;
  border: none;
  padding: 0;
  margin-left: 8px;
  cursor: pointer;
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: underline;
}
.dashboard-link--muted:hover { color: var(--ink); }

.dashboard-link--danger {
  background: none;
  border: none;
  padding: 0;
  margin-left: 8px;
  cursor: pointer;
  font-size: 0.78rem;
  color: #dc2626;
  text-decoration: underline;
}
.dashboard-link--danger:hover { color: #991b1b; }

.mode-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}
.mode-badge--full {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}
.mode-badge--lite {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.dashboard-link--delete {
  background: none;
  border: none;
  padding: 0;
  margin-left: 8px;
  cursor: pointer;
  font-size: 0.78rem;
  color: #9f1239;
  text-decoration: underline;
}
.dashboard-link--delete:hover { color: #500724; }

/* Extra column for actions */
.dashboard-table__actions { white-space: nowrap; }

/* ═══════════════════════════════════════════════════════════════════════════
   PUBLIC INSPECTION — status screens (complete / expired)
   ═══════════════════════════════════════════════════════════════════════════ */

.public-status-shell {
  min-height: calc(100dvh - var(--app-nav-height));
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 3rem 1rem;
  background: radial-gradient(circle at top right, #dceadf, var(--bg) 38%);
}
.public-status-card {
  background: var(--panel);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}
.public-status-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1.25rem;
}
.public-status-card__icon--success { background: #d1fae5; color: #065f46; }
.public-status-card__icon--warning { background: #fef9c3; color: #854d0e; }
.public-status-card__title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 0.4rem;
}
.public-status-card__sub {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 1.25rem;
}
.public-status-card__body {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 0.85rem;
}
.public-status-card__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}
.public-status-card__brand-logo {
  width: 28px;
  height: 28px;
  background: var(--ink);
  color: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PUBLIC INSPECTION — client sidebar company card
   ═══════════════════════════════════════════════════════════════════════════ */

.public-insp-company {
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 1.25rem;
}
.public-insp-company__label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 3px;
}
.public-insp-company__name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.public-insp-company__contact {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 2px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CREATED VIEW — generated link display
   ═══════════════════════════════════════════════════════════════════════════ */

.created-company-meta {
  background: #f7f8ff;
  border: 1px solid #e0e3ff;
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 16px;
}
.created-meta-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 6px;
  font-size: 0.85rem;
}
.created-meta-row:last-child { margin-bottom: 0; }
.created-meta-label { color: var(--muted); min-width: 64px; flex-shrink: 0; }
.created-meta-value { color: var(--ink); font-weight: 500; }

.created-sent-notice {
  background: #d1fae5;
  border: 1px solid #6ee7b7;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.83rem;
  color: #065f46;
  margin-bottom: 20px;
}

.created-link-block {
  background: #fafaf9;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 24px;
}
.created-link-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 10px;
}
.created-link-input-wrap {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}
.created-link-input {
  flex: 1;
  font-size: 0.82rem;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-family: monospace;
  overflow: hidden;
  text-overflow: ellipsis;
}
.created-link-copy {
  padding: 8px 14px;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.created-link-copy:hover { background: #2d3748; }
.created-link-hint {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 8px;
}

.created-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

/* ═══════════════════════════════════════════════════════════════════════════
   REVIEW PANEL
   ═══════════════════════════════════════════════════════════════════════════ */

.review-panel {
  background: var(--panel);
  border: 1px solid #d4dfd6;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}

.review-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.review-panel__status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.review-panel__label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.review-panel__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  background: #f0f4f1;
  color: var(--muted);
}
.review-panel__badge--en_revision  { background: #fff8e1; color: #b45309; }
.review-panel__badge--aprobada     { background: #e8f4ec; color: #155f3a; }
.review-panel__badge--entregada    { background: #e8f0fb; color: #1a56b0; }
.review-panel__badge--completada   { background: #f0f4f1; color: var(--muted); }

.review-panel__actions {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.review-panel__form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 260px;
}

.review-panel__textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d4dfd6;
  border-radius: 8px;
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--ink);
  resize: vertical;
  background: #fafcfb;
}
.review-panel__textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(21,95,58,.1);
}

.review-panel__form-actions {
  display: flex;
  gap: 0.5rem;
}

.review-panel__approved {
  font-size: 0.83rem;
  color: #166534;
  padding: 0.35rem 0;
}
.review-panel__approved-notes {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.review-panel__pending-note {
  font-size: 0.83rem;
  color: #92400e;
  background: #fef3c7;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
}

.review-panel__notes {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e8ede9;
  font-size: 0.85rem;
  color: var(--ink);
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.review-panel__notes-label {
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════════════════
   VISIT PANEL
   ═══════════════════════════════════════════════════════════════════════════ */

.visit-panel {
  background: var(--panel);
  border: 1px solid #d4dfd6;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}

.visit-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.visit-panel__label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-right: 0.75rem;
}

.visit-panel__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  background: #f0f4f1;
  color: var(--muted);
}
.visit-panel__badge--scheduled {
  background: #e8f0fb;
  color: #1a56b0;
}

.visit-panel__details {
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.visit-panel__row {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
}
.visit-panel__row dt {
  font-weight: 600;
  color: var(--muted);
  min-width: 130px;
}
.visit-panel__row dd {
  margin: 0;
  color: var(--ink);
}

.visit-panel__form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.visit-panel__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.visit-panel__field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.visit-panel__field--full {
  grid-column: 1 / -1;
}

.visit-panel__field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.visit-panel__input {
  padding: 0.45rem 0.75rem;
  border: 1px solid #d4dfd6;
  border-radius: 8px;
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--ink);
  background: #fafcfb;
  width: 100%;
}
.visit-panel__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(21,95,58,.1);
}

/* ═══════════════════════════════════════════════════════════════════════════
   PRINT STYLES — resumen view
   ═══════════════════════════════════════════════════════════════════════════ */

@media print {
  body { background: #fff; }

  .dashboard-header,
  .dashboard-actions,
  .resumen-header__actions,
  .inspection-header__actions,
  .inspection-sidebar,
  .inspection-form,
  button,
  .dashboard-btn { display: none !important; }

  .resumen-shell {
    max-width: 100%;
    padding: 0;
  }
  .resumen-header {
    display: block;
    border-bottom: 2px solid #ccc;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
  }
  .resumen-section { break-inside: avoid; }
  .resumen-field { break-inside: avoid; }
  .dashboard-table { font-size: 0.8rem; }
  .dashboard-badge { border: 1px solid #ccc; background: none !important; color: #000 !important; }
}

/* ══════════════════════════════════════════════════════════════
   TRACE VIEWER
══════════════════════════════════════════════════════════════ */

/* Filter bar */
.trace-filter-form { margin-bottom: 1.5rem; }
.trace-filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.trace-filter-select,
.trace-filter-input {
  padding: 0.45rem 0.75rem;
  border: 1px solid #d4dfd6;
  border-radius: 6px;
  font-size: 0.88rem;
  color: var(--ink);
  background: var(--panel);
}
.trace-filter-input { width: 130px; }

/* Agent badge */
.trace-agent-badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: monospace;
  white-space: nowrap;
}
.trace-agent-badge--lg {
  padding: 0.3rem 0.9rem;
  font-size: 0.92rem;
}

/* Rating badges */
.trace-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}
.trace-rating--ok               { background: #dcfce7; color: #15803d; }
.trace-rating--bad              { background: #fee2e2; color: #b91c1c; }
.trace-rating--needs_correction { background: #fef9c3; color: #854d0e; }

/* Summary bar */
.trace-summary {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: var(--panel);
  border: 1px solid #d4dfd6;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Show layout: two columns */
.trace-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .trace-layout { grid-template-columns: 1fr; }
}

/* Trace blocks */
.trace-block {
  background: var(--panel);
  border: 1px solid #d4dfd6;
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
}
.trace-block--system { border-left: 3px solid #64748b; }
.trace-block--response { border-left: 3px solid #16a34a; }

.trace-block__title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: #f8faf8;
  border-bottom: 1px solid #e8ede9;
  cursor: pointer;
  user-select: none;
}
details.trace-block > .trace-block__title { list-style: none; }
details.trace-block[open] > .trace-block__title { border-bottom: 1px solid #e8ede9; }

.trace-block__meta {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 400;
  color: #94a3b8;
}

/* Pre / code blocks */
.trace-pre {
  margin: 0;
  padding: 0.75rem 1rem;
  font-size: 0.78rem;
  font-family: "Consolas", "Menlo", monospace;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--ink);
  overflow-x: auto;
  max-height: 600px;
  overflow-y: auto;
  line-height: 1.5;
}
.trace-pre--sm { font-size: 0.72rem; max-height: 300px; }

/* Messages */
.trace-message {
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.84rem;
  line-height: 1.55;
}
.trace-message--user      { background: #f1f5f9; border-left: 3px solid #0891b2; }
.trace-message--assistant { background: #f0fdf4; border-left: 3px solid #16a34a; }
.trace-message__role {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
  color: var(--muted);
}
.trace-message__text { white-space: pre-wrap; word-break: break-word; }

/* Tool blocks */
.trace-tool-block {
  border: 1px solid #fde68a;
  border-radius: 6px;
  background: #fffbeb;
  margin-top: 0.5rem;
  overflow: hidden;
}
.trace-tool-block--response {
  border-color: #bbf7d0;
  background: #f0fdf4;
  margin: 0.75rem;
}
.trace-tool-block__name {
  padding: 0.3rem 0.75rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: #92400e;
  background: #fef9c3;
  border-bottom: 1px solid #fde68a;
}
.trace-tool-block--response .trace-tool-block__name {
  color: #166534;
  background: #dcfce7;
  border-bottom-color: #bbf7d0;
}

/* Response text */
.trace-response-text {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--ink);
}

/* Annotation panel */
.trace-ann-form { padding: 0.25rem 0; }

.trace-ann-section { margin-bottom: 1rem; padding: 0 1rem; }
.trace-ann-section:first-child { padding-top: 0.75rem; }

.trace-ann-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.trace-rating-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.trace-rating-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  border: 1px solid #e2e8e4;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.12s;
}
.trace-rating-option:hover { background: #f1f4f0; }
.trace-rating-option input[type=radio] { margin: 0; }
.trace-rating-option--ok:has(input:checked)               { background: #dcfce7; border-color: #86efac; }
.trace-rating-option--bad:has(input:checked)              { background: #fee2e2; border-color: #fca5a5; }
.trace-rating-option--needs_correction:has(input:checked) { background: #fef9c3; border-color: #fde047; }

.trace-ann-textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #d4dfd6;
  border-radius: 6px;
  font-size: 0.84rem;
  font-family: inherit;
  color: var(--ink);
  resize: vertical;
  line-height: 1.55;
  background: var(--bg);
  transition: border-color 0.15s;
}
.trace-ann-textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--panel);
}

.trace-ann-form .dashboard-btn { margin: 0 1rem 1rem; width: calc(100% - 2rem); }

/* Section labels REQUEST / RESPONSE */
.trace-section-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
  margin: 0.25rem 0 0.5rem;
  padding-left: 0.25rem;
}

/* Tool definition block (in request tools section) */
.trace-block--tools { border-left: 3px solid #d97706; }
.trace-block--tools .trace-block__title { background: #fffbeb; }
.trace-tool-def {
  border-bottom: 1px solid #f0f4f1;
  padding: 0.75rem 1rem;
}
.trace-tool-def:last-child { border-bottom: none; }
.trace-tool-def__name {
  font-size: 0.85rem;
  font-weight: 700;
  font-family: monospace;
  color: #1e3a5f;
  margin-bottom: 0.2rem;
}
.trace-tool-def__desc {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
  line-height: 1.45;
}

/* ==========================================================================
   HOMEPAGE — Risque inspired by Panta
   ========================================================================== */

.ir-home {
  --ir-bg: #efe8db;
  --ir-paper: #f7f2e9;
  --ir-paper-2: #fbf7f0;
  --ir-ink: #181611;
  --ir-ink-soft: #5c574d;
  --ir-line: rgba(24, 22, 17, 0.14);
  --ir-line-strong: rgba(24, 22, 17, 0.22);
  --ir-dark: #191b18;
  --ir-dark-soft: #242722;
  --ir-green: #1f8f5d;
  --ir-green-deep: #166a45;
  background:
    radial-gradient(circle at top left, rgba(31, 143, 93, 0.08), transparent 30%),
    linear-gradient(180deg, #f2ebe0 0%, #ebe4d8 100%);
  color: var(--ir-ink);
  font-family: "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif;
}

.ir-home * {
  box-sizing: border-box;
}

.ir-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.ir-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(242, 235, 224, 0.84);
  border-bottom: 1px solid rgba(24, 22, 17, 0.08);
}

.ir-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 74px;
}

.ir-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.ir-brand__mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(180deg, #1f8f5d, #166a45);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 14px 26px rgba(31, 143, 93, 0.2);
}

.ir-brand__copy {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.ir-brand__name {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.ir-brand__meta {
  font-size: 0.72rem;
  color: var(--ir-ink-soft);
}

.ir-nav__links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.ir-nav__links a {
  color: var(--ir-ink);
  text-decoration: none;
  font-size: 0.9rem;
}

.ir-nav__cta {
  padding: 0.72rem 1rem;
  border-radius: 999px;
  background: var(--ir-ink);
  color: #fff !important;
}

.ir-hero {
  padding: 3.7rem 0 3.2rem;
}

.ir-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(350px, 0.95fr);
  gap: 2rem;
  align-items: center;
}

.ir-hero__copy,
.ir-doc,
.ir-card,
.ir-pillar,
.ir-market,
.ir-panel,
.ir-stat,
.ir-cta__inner {
  animation: ir-fade-up 0.6s ease both;
}

.ir-doc { animation-delay: 0.08s; }

.ir-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.ir-badge {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(31, 143, 93, 0.1);
  border: 1px solid rgba(31, 143, 93, 0.18);
  color: var(--ir-green-deep);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ir-badge--soft {
  background: rgba(24, 22, 17, 0.04);
  border-color: rgba(24, 22, 17, 0.1);
  color: var(--ir-ink-soft);
}

.ir-kicker,
.ir-section__kicker,
.ir-panel__kicker,
.ir-card__kicker {
  margin: 0 0 0.7rem;
  color: var(--ir-green-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.ir-section__kicker--light {
  color: #8dd4ae;
}

.ir-hero__title,
.ir-section__head h2,
.ir-cta__inner h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.99;
  text-wrap: balance;
}

.ir-hero__title {
  max-width: 720px;
  font-size: clamp(3.1rem, 6.2vw, 5.15rem);
}

.ir-hero__sub {
  max-width: 560px;
  margin: 1.15rem 0 0;
  color: var(--ir-ink-soft);
  font-size: 1.02rem;
  line-height: 1.72;
}

.ir-hero__actions,
.ir-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.ir-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 50px;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 700;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.ir-btn:hover {
  transform: translateY(-1px);
}

.ir-btn--primary {
  background: var(--ir-ink);
  color: #fff;
  box-shadow: 0 18px 36px rgba(24, 22, 17, 0.16);
}

.ir-btn--primary:hover {
  background: #0f0e0b;
}

.ir-btn--secondary {
  background: rgba(255, 255, 255, 0.42);
  color: var(--ir-ink);
  border-color: rgba(24, 22, 17, 0.14);
}

.ir-btn--block {
  width: 100%;
}

.ir-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 2rem;
}

.ir-proof__item {
  padding: 0.95rem 1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid rgba(24, 22, 17, 0.08);
}

.ir-proof__item strong,
.ir-stat strong,
.ir-doc__footer strong {
  display: block;
  font-size: 1.18rem;
  line-height: 1.1;
}

.ir-proof__item span,
.ir-stat span,
.ir-doc__footer span {
  display: block;
  margin-top: 0.28rem;
  color: var(--ir-ink-soft);
  font-size: 0.82rem;
  line-height: 1.45;
}

.ir-doc {
  position: relative;
  padding: 1.2rem;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(248, 242, 232, 0.94));
  border: 1px solid rgba(24, 22, 17, 0.1);
  box-shadow: 0 30px 70px rgba(24, 22, 17, 0.14);
}

.ir-doc::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 20px;
  border: 1px solid rgba(24, 22, 17, 0.06);
  pointer-events: none;
}

.ir-doc__top,
.ir-doc__title,
.ir-doc__grid,
.ir-doc__table,
.ir-doc__footer {
  position: relative;
  z-index: 1;
}

.ir-doc__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.ir-doc__eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ir-green-deep);
}

.ir-doc__status {
  padding: 0.36rem 0.7rem;
  border-radius: 999px;
  background: rgba(31, 143, 93, 0.1);
  color: var(--ir-green-deep);
  font-size: 0.72rem;
  font-weight: 700;
}

.ir-doc__title {
  margin-bottom: 1rem;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid var(--ir-line);
}

.ir-doc__title h2 {
  margin: 0;
  font-size: 1.45rem;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  letter-spacing: -0.03em;
}

.ir-doc__title p {
  margin: 0.28rem 0 0;
  color: var(--ir-ink-soft);
  font-size: 0.9rem;
}

.ir-doc__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.ir-doc__item {
  padding: 0.8rem 0.85rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(24, 22, 17, 0.08);
}

.ir-doc__item span {
  display: block;
  margin-bottom: 0.28rem;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ir-ink-soft);
}

.ir-doc__item strong {
  font-size: 0.9rem;
  line-height: 1.4;
}

.ir-doc__table {
  border-radius: 18px;
  border: 1px solid rgba(24, 22, 17, 0.08);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
}

.ir-doc__row {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 0.85fr;
  gap: 0.75rem;
  padding: 0.78rem 0.92rem;
  font-size: 0.84rem;
  border-bottom: 1px solid rgba(24, 22, 17, 0.07);
}

.ir-doc__row:last-child {
  border-bottom: 0;
}

.ir-doc__row--head {
  background: rgba(24, 22, 17, 0.04);
  color: var(--ir-ink-soft);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ir-doc__footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.ir-doc__footer > div {
  padding: 0.86rem 0.9rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(24, 22, 17, 0.08);
}

.ir-section {
  padding: 5.4rem 0;
}

.ir-section--paper {
  background: rgba(255, 255, 255, 0.28);
  border-top: 1px solid rgba(24, 22, 17, 0.06);
  border-bottom: 1px solid rgba(24, 22, 17, 0.06);
}

.ir-section--dark {
  background:
    radial-gradient(circle at top right, rgba(31, 143, 93, 0.2), transparent 28%),
    linear-gradient(180deg, #181a17 0%, #1d201c 100%);
  color: #f3efe7;
}

.ir-section__head {
  max-width: 760px;
  margin-bottom: 2rem;
}

.ir-section__head p,
.ir-cta__inner p,
.ir-pillar p,
.ir-card p,
.ir-market p,
.ir-panel li {
  color: var(--ir-ink-soft);
  font-size: 1rem;
  line-height: 1.65;
}

.ir-section__head--light p,
.ir-section__head--light h2,
.ir-section--dark .ir-pillar p {
  color: #d8d3ca;
}

.ir-section__head h2,
.ir-cta__inner h2 {
  font-size: clamp(2.15rem, 3.9vw, 3.45rem);
}

.ir-card-grid,
.ir-pillars,
.ir-market-grid {
  display: grid;
  gap: 1rem;
}

.ir-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ir-card,
.ir-market,
.ir-panel,
.ir-stat {
  border: 1px solid var(--ir-line);
  background: rgba(255, 255, 255, 0.52);
}

.ir-card,
.ir-pillar,
.ir-market,
.ir-panel,
.ir-stat {
  border-radius: 26px;
  padding: 1.4rem;
}

.ir-card h3,
.ir-pillar h3,
.ir-market h3 {
  margin: 0 0 0.55rem;
  font-size: 1.2rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.ir-card p {
  margin: 0;
  font-size: 0.95rem;
}

.ir-card__kicker {
  margin-bottom: 0.85rem;
}

.ir-pillars {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ir-pillar {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ir-pillar h3 {
  color: #fff;
  margin-bottom: 0.65rem;
}

.ir-pillar p {
  margin: 0;
  font-size: 0.95rem;
}

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

.ir-market {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.72)),
    linear-gradient(135deg, rgba(31, 143, 93, 0.08), rgba(24, 22, 17, 0.02));
}

.ir-market span {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: auto;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  background: rgba(24, 22, 17, 0.06);
  color: var(--ir-ink-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ir-market h3 {
  max-width: 360px;
}

.ir-market p {
  margin: 0;
  font-size: 0.95rem;
}

.ir-outcomes {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 1.2rem;
  align-items: start;
}

.ir-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.ir-stat {
  background: rgba(255, 255, 255, 0.44);
}

.ir-panel {
  background: rgba(255, 255, 255, 0.56);
}

.ir-panel__kicker {
  margin-bottom: 0.9rem;
}

.ir-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: grid;
  gap: 0.7rem;
}

.ir-checklist li {
  position: relative;
  padding-left: 1.2rem;
  margin: 0;
  font-size: 0.95rem;
}

.ir-checklist li::before {
  content: "";
  position: absolute;
  top: 0.6rem;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--ir-green);
}

.ir-cta {
  padding: 0 0 5rem;
}

.ir-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: 32px;
  border: 1px solid var(--ir-line-strong);
  background:
    radial-gradient(circle at top right, rgba(31, 143, 93, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(249, 244, 236, 0.92));
  box-shadow: 0 22px 48px rgba(24, 22, 17, 0.1);
}

.ir-cta__inner p {
  max-width: 620px;
  margin: 0.9rem 0 0;
}

.ir-footer {
  padding: 1.2rem 0 2.4rem;
}

.ir-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(24, 22, 17, 0.08);
}

.ir-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
}

.ir-footer__links a {
  color: var(--ir-ink-soft);
  text-decoration: none;
  font-size: 0.88rem;
}

@keyframes ir-fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .ir-nav__links {
    gap: 0.8rem;
  }

  .ir-hero__grid,
  .ir-outcomes,
  .ir-cta__inner {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .ir-card-grid,
  .ir-pillars,
  .ir-market-grid,
  .ir-stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .ir-shell {
    width: min(100% - 28px, 1120px);
  }

  .ir-nav__inner,
  .ir-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .ir-nav__links {
    width: 100%;
    flex-wrap: wrap;
  }

  .ir-nav__links a:not(.ir-nav__cta) {
    display: none;
  }

  .ir-hero {
    padding-top: 2.6rem;
  }

  .ir-hero__title {
    font-size: clamp(2.4rem, 11.6vw, 3.55rem);
  }

  .ir-proof,
  .ir-doc__grid,
  .ir-doc__footer,
  .ir-doc__row,
  .ir-card-grid,
  .ir-pillars,
  .ir-market-grid,
  .ir-stats {
    grid-template-columns: 1fr;
  }

  .ir-doc {
    padding: 1rem;
  }

  .ir-doc__row {
    gap: 0.35rem;
  }

  .ir-section {
    padding: 4.2rem 0;
  }

  .ir-cta {
    padding-bottom: 3.6rem;
  }

  .ir-cta__inner {
    padding: 1.4rem;
  }
}

/* --------------------------------------------------------------------------
   HOMEPAGE — Risque polish v2
   -------------------------------------------------------------------------- */

.ir-home {
  background:
    radial-gradient(circle at top left, rgba(31, 143, 93, 0.08), transparent 26%),
    radial-gradient(circle at 85% 8%, rgba(24, 22, 17, 0.04), transparent 24%),
    linear-gradient(180deg, #f4ede2 0%, #ece4d7 100%);
}

.ir-hero {
  position: relative;
  padding: 4.4rem 0 3.8rem;
  overflow: hidden;
}

.ir-hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -140px;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(31, 143, 93, 0.12), transparent 62%);
}

.ir-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(24, 22, 17, 0.12), transparent);
}

.ir-hero__grid {
  gap: 2.6rem;
  align-items: start;
}

.ir-hero__copy {
  position: relative;
  z-index: 1;
  padding-top: 0.4rem;
}

.ir-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.ir-hero__meta span {
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(24, 22, 17, 0.1);
  background: rgba(255, 255, 255, 0.38);
  color: var(--ir-ink-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ir-hero__title {
  max-width: 820px;
  font-size: clamp(3.15rem, 5.8vw, 5.05rem);
  line-height: 0.98;
}

.ir-hero__sub {
  max-width: 610px;
  margin-top: 1rem;
}

.ir-hero__points {
  list-style: none;
  padding: 0;
  margin: 1.15rem 0 0;
  display: grid;
  gap: 0.7rem;
  max-width: 620px;
}

.ir-hero__points li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--ir-ink);
  font-size: 0.95rem;
  line-height: 1.58;
}

.ir-hero__points li::before {
  content: "";
  position: absolute;
  top: 0.66rem;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--ir-green);
}

.ir-hero__title > span {
  display: block;
}

.ir-hero__title-subline {
  margin-top: 0.18em;
  font-size: 0.72em;
  line-height: 1.04;
  color: #345543;
}

.ir-buyer-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.25rem;
  max-width: 780px;
}

.ir-buyer-card {
  position: relative;
  padding: 1.15rem 1.2rem;
  border-radius: 24px;
  border: 1px solid rgba(24, 22, 17, 0.1);
  background:
    radial-gradient(circle at top right, rgba(31, 143, 93, 0.1), transparent 34%),
    rgba(255, 255, 255, 0.52);
  box-shadow: 0 18px 42px rgba(24, 22, 17, 0.08);
}

.ir-buyer-card--accent {
  background:
    radial-gradient(circle at top right, rgba(31, 143, 93, 0.18), transparent 34%),
    linear-gradient(180deg, #1a1c18 0%, #232620 100%);
  border-color: transparent;
}

.ir-buyer-card__kicker {
  margin: 0 0 0.55rem;
  color: var(--ir-green-deep);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ir-buyer-card h3 {
  margin: 0 0 0.55rem;
  color: var(--ir-ink);
  font-size: 1.15rem;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.ir-buyer-card p:not(.ir-buyer-card__kicker) {
  margin: 0;
  color: var(--ir-ink-soft);
  font-size: 0.92rem;
  line-height: 1.6;
}

.ir-buyer-card .ir-mini-list {
  margin-top: 0.85rem;
}

.ir-buyer-card--accent .ir-buyer-card__kicker {
  color: #9ad7b6;
}

.ir-buyer-card--accent h3,
.ir-buyer-card--accent p:not(.ir-buyer-card__kicker),
.ir-buyer-card--accent .ir-mini-list li {
  color: #f3efe7;
}

.ir-buyer-card--accent .ir-mini-list li::before {
  background: #9ad7b6;
}

.ir-proof {
  gap: 0;
  margin-top: 1.6rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(24, 22, 17, 0.12);
}

.ir-proof__item {
  padding: 0.35rem 1rem 0.1rem 0;
  border-radius: 0;
  border: 0;
  border-right: 1px solid rgba(24, 22, 17, 0.12);
  background: transparent;
}

.ir-proof__item:last-child {
  border-right: 0;
  padding-right: 0;
}

.ir-doc {
  transform: translateY(14px);
  padding: 1.25rem;
}

.ir-doc::before {
  content: "";
  position: absolute;
  inset: 18px -4px -18px 28px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(24, 22, 17, 0.08);
  transform: rotate(4deg);
  z-index: 0;
}

.ir-doc__eyebrow {
  max-width: 240px;
  line-height: 1.45;
  font-size: 0.67rem;
}

.ir-doc__title {
  margin-bottom: 1.1rem;
}

.ir-doc__title h2 {
  font-size: 1.58rem;
}

.ir-doc__table {
  background: rgba(255, 255, 255, 0.82);
}

.ir-doc__row {
  font-size: 0.82rem;
}

.ir-doc__row--head {
  background: #ece5da;
}

.ir-section__head {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.8fr);
  gap: 2rem;
  align-items: end;
}

.ir-section__head h2 {
  max-width: 650px;
  line-height: 1.01;
}

.ir-section__head p {
  margin: 0;
}

.ir-card,
.ir-market,
.ir-stat,
.ir-panel {
  box-shadow: 0 18px 42px rgba(24, 22, 17, 0.06);
}

.ir-card,
.ir-market {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ir-card::before,
.ir-market::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(31, 143, 93, 0.1), transparent 34%);
  pointer-events: none;
}

.ir-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 1.35rem;
  width: 96px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ir-green), rgba(31, 143, 93, 0));
}

.ir-card > *,
.ir-market > * {
  position: relative;
  z-index: 1;
}

.ir-card:hover,
.ir-market:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 54px rgba(24, 22, 17, 0.1);
  border-color: rgba(24, 22, 17, 0.2);
}

.ir-pillars {
  counter-reset: ir-pillar;
}

.ir-pillar {
  position: relative;
  overflow: hidden;
  padding-top: 3.4rem;
  background:
    radial-gradient(circle at top right, rgba(31, 143, 93, 0.16), transparent 30%),
    rgba(255, 255, 255, 0.05);
}

.ir-pillar::before {
  counter-increment: ir-pillar;
  content: "0" counter(ir-pillar);
  position: absolute;
  top: 1rem;
  left: 1.35rem;
  color: #9ad7b6;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.ir-market {
  min-height: 250px;
}

.ir-market::after {
  content: attr(data-word);
  position: absolute;
  right: 0.9rem;
  bottom: 0.55rem;
  color: rgba(24, 22, 17, 0.06);
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: clamp(2.7rem, 5vw, 4rem);
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.ir-outcomes {
  gap: 1.4rem;
}

.ir-stat strong {
  font-size: 1.95rem;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  letter-spacing: -0.04em;
}

.ir-panel {
  background:
    radial-gradient(circle at top right, rgba(31, 143, 93, 0.18), transparent 34%),
    linear-gradient(180deg, #1a1c18 0%, #232620 100%);
  border: 0;
}

.ir-panel__kicker {
  color: #9ad7b6;
}

.ir-panel__sub {
  margin: 0 0 1rem;
  color: #d9d3ca;
  font-size: 0.98rem;
  line-height: 1.6;
}

.ir-panel li {
  color: #efe8de;
}

.ir-cta__inner {
  align-items: center;
}

.ir-cta__actions {
  min-width: 260px;
  justify-content: flex-end;
}

@media (max-width: 980px) {
  .ir-section__head {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .ir-doc {
    transform: none;
  }
}

@media (max-width: 760px) {
  .ir-hero__meta {
    margin-bottom: 0.85rem;
  }

  .ir-proof {
    gap: 0.8rem;
    padding-top: 0;
    border-top: 0;
  }

  .ir-proof__item {
    padding: 0.8rem 0 0;
    border-right: 0;
    border-top: 1px solid rgba(24, 22, 17, 0.1);
  }

  .ir-market::after {
    font-size: 2.5rem;
  }

  .ir-cta__actions {
    min-width: 0;
    justify-content: flex-start;
  }
}

/* --------------------------------------------------------------------------
   HOMEPAGE — Risque positioning refresh
   -------------------------------------------------------------------------- */

.ir-value-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.ir-value-item {
  padding: 0.82rem 0.95rem;
  border-radius: 20px;
  border: 1px solid rgba(24, 22, 17, 0.08);
  background: rgba(255, 255, 255, 0.44);
  color: var(--ir-ink);
  line-height: 1.5;
}

.ir-value-item strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.ir-value-item span {
  display: block;
  color: var(--ir-ink-soft);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.6;
}

.ir-value-item small {
  display: inline-flex;
  margin-top: 0.75rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(11, 16, 32, 0.06);
  color: var(--ir-ink-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ir-value-item--dark {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
}

.ir-value-item--dark strong {
  color: #fff;
}

.ir-value-item--dark span {
  color: #d7deea;
}

.ir-value-item--dark small {
  background: rgba(255, 255, 255, 0.08);
  color: #b9c5db;
}

.ir-impact-note {
  max-width: 760px;
  margin: 1rem 0 0;
  color: #c5cfdf;
  font-size: 0.9rem;
  line-height: 1.65;
}

.ir-value-band--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ir-persona-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.ir-persona {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.45rem;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at top right, rgba(31, 143, 93, 0.14), transparent 30%),
    rgba(255, 255, 255, 0.05);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.16);
}

.ir-persona::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.45rem;
  width: 96px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #9ad7b6, rgba(154, 215, 182, 0));
}

.ir-persona__eyebrow {
  margin: 0;
  color: #9ad7b6;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ir-persona h3 {
  margin: 0;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.ir-persona__block {
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.ir-persona__label {
  display: block;
  margin-bottom: 0.35rem;
  color: #9ad7b6;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ir-persona__block p {
  margin: 0;
  color: #ece6db;
  font-size: 0.95rem;
  line-height: 1.65;
}

.ir-persona__result {
  margin: auto 0 0;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.92rem;
  line-height: 1.6;
}

.ir-persona__result strong {
  color: #9ad7b6;
}

.ir-card--flow {
  min-height: 100%;
}

.ir-mini-list {
  list-style: none;
  padding: 0;
  margin: 0.95rem 0 0;
  display: grid;
  gap: 0.55rem;
}

.ir-mini-list li {
  position: relative;
  padding-left: 1.05rem;
  color: var(--ir-ink);
  font-size: 0.88rem;
  line-height: 1.55;
}

.ir-mini-list li::before {
  content: "";
  position: absolute;
  top: 0.58rem;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--ir-green);
}

.ir-pillars {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ir-pillars--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ir-card-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ir-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.ir-compare-card {
  padding: 1.45rem;
  border-radius: 28px;
  border: 1px solid var(--ir-line);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 18px 42px rgba(24, 22, 17, 0.06);
}

.ir-compare-card h3 {
  margin: 0 0 1rem;
  font-size: 1.45rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.ir-compare-card--accent {
  background:
    radial-gradient(circle at top right, rgba(31, 143, 93, 0.18), transparent 34%),
    linear-gradient(180deg, #1a1c18 0%, #232620 100%);
  border: 0;
  color: #f3efe7;
}

.ir-compare-card--accent h3,
.ir-compare-card--accent .ir-card__kicker {
  color: #fff;
}

.ir-compare-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.8rem;
}

.ir-compare-list li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--ir-ink-soft);
  font-size: 0.98rem;
  line-height: 1.6;
}

.ir-compare-list li::before {
  content: "";
  position: absolute;
  top: 0.68rem;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--ir-green);
}

.ir-compare-card--accent .ir-compare-list li {
  color: #efe8de;
}

.ir-compare-note {
  max-width: 760px;
  margin: 1.2rem 0 0;
  color: var(--ir-ink-soft);
  font-size: 1rem;
  line-height: 1.65;
}

.ir-roi-strip,
.ir-pricing-grid {
  display: grid;
  gap: 1rem;
}

.ir-roi-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1.2rem;
}

.ir-roi-item,
.ir-plan {
  border-radius: 28px;
  overflow: hidden;
}

.ir-roi-item {
  padding: 1.3rem 1.35rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ir-roi-item strong,
.ir-plan h3 {
  display: block;
  margin: 0 0 0.55rem;
  color: #fff;
  font-size: 1.02rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.ir-roi-item span {
  display: block;
  color: #d8d3ca;
  font-size: 0.9rem;
  line-height: 1.65;
}

.ir-pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.ir-plan {
  position: relative;
  padding: 1.45rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.14);
}

.ir-plan::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(31, 143, 93, 0.12), transparent 34%);
  pointer-events: none;
}

.ir-plan > * {
  position: relative;
  z-index: 1;
}

.ir-plan .ir-card__kicker {
  margin-bottom: 0.85rem;
}

.ir-plan h3 {
  color: var(--ir-ink);
  font-size: 1.22rem;
}

.ir-plan__price {
  margin: 0;
  color: var(--ir-ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 2.6rem;
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.ir-plan__price span {
  color: var(--ir-ink-soft);
  font-family: "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
}

.ir-plan__meta {
  margin: 0.8rem 0 1rem;
  color: var(--ir-ink-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}

.ir-plan__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.72rem;
}

.ir-plan__list li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--ir-ink);
  font-size: 0.9rem;
  line-height: 1.55;
}

.ir-plan__list li::before {
  content: "";
  position: absolute;
  top: 0.62rem;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--ir-green);
}

.ir-plan--featured {
  background:
    radial-gradient(circle at top right, rgba(31, 143, 93, 0.2), transparent 28%),
    linear-gradient(180deg, #f4f7f0 0%, #eef5ef 100%);
  border-color: rgba(31, 143, 93, 0.22);
  transform: translateY(-8px);
}

.ir-pricing-note {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.ir-pricing-note p {
  margin: 0;
  padding: 1rem 1.1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d8d3ca;
  font-size: 0.9rem;
  line-height: 1.65;
}

@media (max-width: 980px) {
  .ir-hero__title {
    max-width: 100%;
    font-size: clamp(2.8rem, 6vw, 4.25rem);
  }

  .ir-hero__sub {
    max-width: 100%;
  }

  .ir-card-grid--four,
  .ir-pillars--three,
  .ir-persona-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ir-value-band,
  .ir-value-band--four,
  .ir-buyer-split,
  .ir-compare-grid,
  .ir-roi-strip,
  .ir-pricing-grid,
  .ir-pricing-note {
    grid-template-columns: 1fr;
  }

  .ir-plan--featured {
    transform: none;
  }
}

@media (max-width: 760px) {
  .ir-hero__title {
    font-size: clamp(2.2rem, 9.6vw, 3.2rem);
    line-height: 1;
  }

  .ir-hero__title-subline {
    margin-top: 0.22em;
    font-size: 0.78em;
    line-height: 1.08;
  }

  .ir-hero__sub {
    font-size: 0.98rem;
    line-height: 1.68;
  }

  .ir-hero__points {
    gap: 0.65rem;
  }

  .ir-hero__points li {
    font-size: 0.92rem;
  }

  .ir-card-grid--four,
  .ir-pillars--three,
  .ir-persona-grid {
    grid-template-columns: 1fr;
  }

  .ir-buyer-card {
    padding: 1rem;
  }

  .ir-value-band {
    gap: 0.7rem;
  }
}

/* --------------------------------------------------------------------------
   HOMEPAGE — SaaS refresh inspired by Vanta structure
   -------------------------------------------------------------------------- */

.ir-home {
  --ir-bg: #f6f8fc;
  --ir-paper: #ffffff;
  --ir-paper-2: #f2f6fb;
  --ir-ink: #0b1020;
  --ir-ink-soft: #4d5870;
  --ir-line: rgba(11, 16, 32, 0.1);
  --ir-line-strong: rgba(11, 16, 32, 0.18);
  --ir-dark: #09111f;
  --ir-dark-soft: #10192d;
  --ir-green: #0f9f8c;
  --ir-green-deep: #0a7c74;
  background:
    radial-gradient(circle at top left, rgba(15, 159, 140, 0.14), transparent 26%),
    radial-gradient(circle at 82% 6%, rgba(35, 87, 255, 0.1), transparent 18%),
    linear-gradient(180deg, #f8fbff 0%, #f1f6fb 100%);
}

.ir-nav {
  background: rgba(248, 251, 255, 0.9);
  border-bottom-color: rgba(11, 16, 32, 0.08);
}

.ir-brand__mark {
  background: linear-gradient(180deg, #102d5e, #0f9f8c);
  box-shadow: 0 14px 28px rgba(15, 159, 140, 0.22);
}

.ir-kicker,
.ir-section__kicker,
.ir-panel__kicker,
.ir-card__kicker {
  color: var(--ir-green-deep);
}

.ir-hero__title,
.ir-section__head h2,
.ir-cta__inner h2 {
  font-family: "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif;
  font-weight: 750;
  letter-spacing: -0.05em;
  line-height: 0.94;
}

.ir-hero {
  padding: 4.9rem 0 3.5rem;
}

.ir-section--paper {
  background: rgba(255, 255, 255, 0.54);
  border-top-color: rgba(11, 16, 32, 0.05);
  border-bottom-color: rgba(11, 16, 32, 0.05);
}

.ir-section--dark,
.ir-compare-card--accent,
.ir-panel,
.ir-buyer-card--accent {
  background:
    radial-gradient(circle at top right, rgba(15, 159, 140, 0.22), transparent 30%),
    linear-gradient(180deg, #08111f 0%, #101a30 100%);
}

.ir-doc {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(245, 249, 255, 0.98));
  border-color: rgba(11, 16, 32, 0.08);
  box-shadow: 0 30px 70px rgba(11, 16, 32, 0.14);
}

.ir-doc__status {
  background: rgba(15, 159, 140, 0.12);
  color: var(--ir-green-deep);
}

.ir-doc__row--head {
  background: #eef4fb;
}

.ir-card,
.ir-market,
.ir-stat,
.ir-plan,
.ir-value-item,
.ir-buyer-card,
.ir-compare-card {
  border-color: rgba(11, 16, 32, 0.08);
  box-shadow: 0 18px 42px rgba(11, 16, 32, 0.06);
}

.ir-card--highlight {
  background:
    radial-gradient(circle at top right, rgba(15, 159, 140, 0.14), transparent 34%),
    linear-gradient(180deg, #f6fbfb 0%, #edf8f7 100%);
  border-color: rgba(15, 159, 140, 0.2);
}

.ir-trust {
  padding: 0 0 1.2rem;
}

.ir-trust__inner {
  display: grid;
  gap: 0.95rem;
  padding: 1.1rem 1.25rem;
  border-radius: 24px;
  border: 1px solid rgba(11, 16, 32, 0.08);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 36px rgba(11, 16, 32, 0.05);
}

.ir-trust__label {
  margin: 0;
  color: var(--ir-ink-soft);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ir-trust__items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.ir-trust__item {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(11, 16, 32, 0.08);
  background: rgba(242, 246, 251, 0.92);
  color: var(--ir-ink);
  font-size: 0.88rem;
  font-weight: 700;
}

@media (max-width: 980px) {
  .ir-trust__inner {
    padding: 1rem;
  }
}

@media (max-width: 760px) {
  .ir-hero {
    padding-top: 3.4rem;
  }

  .ir-trust {
    padding-bottom: 0.8rem;
  }

  .ir-trust__item {
    font-size: 0.82rem;
  }
}

.ir-story {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 1rem;
  align-items: start;
}

.ir-story__body,
.ir-story__aside {
  padding: 1.45rem;
  border-radius: 28px;
  border: 1px solid rgba(11, 16, 32, 0.08);
  box-shadow: 0 18px 42px rgba(24, 22, 17, 0.06);
}

.ir-story__body {
  background: rgba(255, 255, 255, 0.72);
}

.ir-story__body p {
  margin: 0;
  color: var(--ir-ink-soft);
  font-size: 1.02rem;
  line-height: 1.72;
}

.ir-story__body p + p {
  margin-top: 1rem;
}

.ir-story__aside {
  background:
    linear-gradient(180deg, rgba(10, 17, 27, 0.96), rgba(16, 31, 47, 0.92)),
    radial-gradient(circle at top right, rgba(49, 180, 124, 0.16), transparent 28%);
  color: #f5efe7;
}

.ir-story__eyebrow {
  margin: 0 0 0.8rem;
  color: rgba(245, 239, 231, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ir-story__aside h3 {
  margin: 0;
  color: #f7f3ee;
  font-family: "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.ir-story__aside > p:not(.ir-story__eyebrow) {
  margin: 0.95rem 0 0;
  color: rgba(245, 239, 231, 0.82);
  line-height: 1.68;
}

.ir-story__list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.8rem;
}

.ir-story__list li {
  position: relative;
  padding-left: 1rem;
  color: #f5efe7;
  line-height: 1.55;
}

.ir-story__list li::before {
  content: "";
  position: absolute;
  top: 0.68rem;
  left: 0;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: #31b47c;
}

@media (max-width: 980px) {
  .ir-story {
    grid-template-columns: 1fr;
  }
}

/* ── Mode selector (nueva.html.erb) ─────────────────────────────────────── */

.mode-selector {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.mode-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1.5px solid #e0ddd8;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.mode-option:has(input:checked) {
  border-color: var(--accent);
  background: #faf8f5;
}
.mode-option input[type="radio"] { accent-color: var(--accent); }
.mode-option__body { display: flex; flex-direction: column; gap: 2px; }
.mode-option__name { font-size: 0.9rem; font-weight: 600; color: #1a1a1a; }
.mode-option__desc { font-size: 0.75rem; color: #8a8680; }
.mode-option__badge {
  display: inline-block;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 4px;
}

/* ── Mode picker overlay (chat.html.erb) ────────────────────────────────── */

.mode-picker {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 2rem;
  gap: 1.5rem;
}
.mode-picker__title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}
.mode-picker__options {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.mode-picker__btn {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 220px;
  padding: 1.2rem 1.4rem;
  border: 2px solid #e0ddd8;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.mode-picker__btn:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.mode-picker__btn-name {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
}
.mode-picker__btn-desc {
  font-size: 0.73rem;
  color: #8a8680;
  line-height: 1.4;
}
.mode-picker__badge {
  display: inline-block;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 4px;
}
.mode-picker__btn--full:hover { border-color: #6366f1; }
.mode-picker__btn--lite:hover { border-color: #16a34a; }

/* ══════════════════════════════════════════════════════════════════════════
   NUEVA INSPECCIÓN — dedicated form design
   ══════════════════════════════════════════════════════════════════════════ */

.nueva-shell {
  min-height: calc(100dvh - var(--app-nav-height));
  background: #f5f2ee;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2.5rem 1rem 4rem;
}

.nueva-card {
  width: 100%;
  max-width: 680px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  overflow: hidden;
}

/* ── Header ──────────────────────────────────────────────────────────────── */

.nueva-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.75rem 2rem 1.5rem;
  border-bottom: 1px solid #f0ede8;
}
.nueva-header__logo {
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.nueva-header__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 2px;
}
.nueva-header__sub {
  font-size: 0.8rem;
  color: #8a8680;
  margin: 0;
}

/* ── Alert ───────────────────────────────────────────────────────────────── */

.nueva-alert {
  margin: 1rem 2rem 0;
  padding: 0.75rem 1rem;
  background: #fff5f5;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #dc2626;
  font-size: 0.85rem;
}

/* ── Form ────────────────────────────────────────────────────────────────── */

.nueva-form { padding: 0 2rem 2rem; }

/* ── Section ─────────────────────────────────────────────────────────────── */

.nueva-section {
  padding-top: 1.75rem;
  padding-bottom: 0.25rem;
}
.nueva-section + .nueva-section {
  border-top: 1px solid #f0ede8;
  margin-top: 0.5rem;
}
.nueva-section__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a09c96;
  margin: 0 0 1.1rem;
}
.nueva-section__num {
  width: 18px;
  height: 18px;
  background: #f0ede8;
  color: #6b6762;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Grid ────────────────────────────────────────────────────────────────── */

.nueva-grid {
  display: grid;
  gap: 1rem;
}
.nueva-grid--2 { grid-template-columns: 1fr 1fr; }
.nueva-grid--3 { grid-template-columns: repeat(3, 1fr); }
.nueva-field--span2 { grid-column: span 2; }

/* ── Field ───────────────────────────────────────────────────────────────── */

.nueva-field { display: flex; flex-direction: column; gap: 4px; }
.nueva-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #3a3734;
}
.nueva-required { color: var(--accent); }
.nueva-input {
  padding: 0.55rem 0.75rem;
  border: 1.5px solid #e0ddd8;
  border-radius: 7px;
  font-size: 0.88rem;
  color: #1a1a1a;
  background: #fff;
  transition: border-color 0.15s;
  outline: none;
}
.nueva-input:focus { border-color: var(--accent); }
.nueva-hint {
  font-size: 0.71rem;
  color: #b0aca6;
  margin: 0;
  line-height: 1.4;
}

/* ── Mode cards ──────────────────────────────────────────────────────────── */

.nueva-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.nueva-mode {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding: 1rem 1.1rem;
  border: 2px solid #e0ddd8;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.nueva-mode input[type="radio"] { display: none; }
.nueva-mode:has(input:checked) {
  border-color: var(--accent);
  background: #fdf8f5;
}
.nueva-mode__inner { flex: 1; }
.nueva-mode__top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.nueva-mode__name { font-size: 0.95rem; font-weight: 700; color: #1a1a1a; }
.nueva-mode__count { font-size: 0.7rem; color: #a09c96; margin-left: auto; }
.nueva-mode__badge {
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}
.nueva-mode__desc {
  font-size: 0.76rem;
  color: #6b6762;
  line-height: 1.5;
  margin: 0 0 8px;
}
.nueva-mode__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nueva-mode__tags li {
  font-size: 0.65rem;
  color: #8a8680;
  background: #f5f2ee;
  padding: 2px 7px;
  border-radius: 20px;
}
.nueva-mode__check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s;
}
.nueva-mode:has(input:checked) .nueva-mode__check { opacity: 1; }

/* ── Locale picker ───────────────────────────────────────────────────────── */

.nueva-locale {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.45rem 0.7rem;
  border: 1.5px solid #e0ddd8;
  border-radius: 7px;
  cursor: pointer;
  font-size: 0.8rem;
  color: #3a3734;
  transition: border-color 0.15s;
}
.nueva-locale input[type="radio"] { display: none; }
.nueva-locale:has(input:checked) {
  border-color: var(--accent);
  background: #fdf8f5;
  font-weight: 600;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

.nueva-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f0ede8;
  margin-top: 1rem;
}
.nueva-submit {
  width: 100%;
  padding: 0.8rem 1.5rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}
.nueva-submit:hover { opacity: 0.88; }
.nueva-footer__links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
}
.nueva-footer__sep { color: #d0ccc8; }
.nueva-link { color: #8a8680; text-decoration: none; }
.nueva-link:hover { color: #1a1a1a; text-decoration: underline; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .nueva-grid--2,
  .nueva-modes { grid-template-columns: 1fr; }
  .nueva-field--span2 { grid-column: span 1; }
  .nueva-grid--3 { grid-template-columns: 1fr 1fr; }
  .nueva-card { border-radius: 0; box-shadow: none; }
  .nueva-shell { padding: 0; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   GDPR NOTICE — /c/:token pre-conversation consent screen
   ═══════════════════════════════════════════════════════════════════════════ */

.gdpr-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  padding: 2rem 2.5rem;
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
}
.gdpr-card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e8e4df;
}
.gdpr-card__logo {
  width: 40px;
  height: 40px;
  background: var(--brand);
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.gdpr-card__brand { font-weight: 700; font-size: 0.95rem; color: var(--ink); }
.gdpr-card__company { font-size: 0.82rem; color: var(--muted); margin-top: 1px; }
.gdpr-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 1rem;
}
.gdpr-card__body p {
  font-size: 0.9rem;
  color: #4a4642;
  line-height: 1.65;
  margin: 0 0 1rem;
}
.gdpr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  margin: 1rem 0 1.25rem;
}
.gdpr-table th,
.gdpr-table td {
  padding: 0.5rem 0.65rem;
  border: 1px solid #e8e4df;
  vertical-align: top;
  line-height: 1.5;
}
.gdpr-table th {
  background: #f6f3ef;
  font-weight: 600;
  color: var(--ink);
  width: 32%;
  white-space: nowrap;
}
.gdpr-table td { color: #4a4642; }
.gdpr-card__consent-note {
  font-size: 0.85rem;
  color: #374151;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  padding: 0.7rem 1rem;
  margin: 0;
}
.gdpr-card__actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-end;
}
.gdpr-accept-btn {
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.7rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}
.gdpr-accept-btn:hover { opacity: 0.88; }
.gdpr-decline-btn {
  background: none;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0.7rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.gdpr-decline-btn:hover { border-color: #9ca3af; color: var(--ink); }
.gdpr-card__footer-note {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  margin-top: 1.25rem;
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .gdpr-card { padding: 1.25rem; border-radius: 0; box-shadow: none; }
  .gdpr-table th { white-space: normal; width: auto; }
}

/* ── Facility Summary Card ──────────────────────────────────────────────── */
.facility-summary-card {
  background: var(--panel);
  border: 1px solid #c8dace;
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
}
.facility-summary-card--pending {
  border-left-color: #9ca3af;
  opacity: 0.75;
}
.facility-summary-card__header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.facility-summary-card__icon { font-size: 1.25rem; line-height: 1; }
.facility-summary-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}
.facility-summary-card__badge {
  font-size: 0.72rem;
  background: #dcfce7;
  color: var(--accent);
  border: 1px solid #86efac;
  border-radius: 99px;
  padding: 0.15rem 0.6rem;
  font-weight: 600;
  margin-left: auto;
}
.facility-summary-card__body {
  font-size: 0.93rem;
  line-height: 1.7;
  color: #2d3a30;
}
.facility-summary-card__body p { margin: 0 0 0.75rem; }
.facility-summary-card__body p:last-child { margin-bottom: 0; }
.facility-summary-card__loading {
  font-size: 0.88rem;
  color: var(--muted);
  font-style: italic;
  margin: 0;
}

@media print {
  .facility-summary-card {
    border: 1px solid #ccc;
    border-left: 3px solid #155f3a;
    page-break-inside: avoid;
  }
  .facility-summary-card__badge { display: none; }
}

/* ── Homepage: Hero credencial y pasos ─────────────────────────────────── */
.ir-hero__backed {
  margin-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.ir-hero__backed strong { color: var(--ink); }

/* Flujo comparativo en el aside del hero */
.ir-doc__flow-compare {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1rem 0;
}
.ir-doc__flow-divider {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  padding: 0.25rem 0;
}
.ir-flow-step {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  border-radius: 7px;
  font-size: 0.8rem;
  line-height: 1.4;
}
.ir-flow-step__n {
  flex-shrink: 0;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}
.ir-flow-step--bad {
  background: #fef2f2;
  color: #7f1d1d;
}
.ir-flow-step--bad .ir-flow-step__n {
  background: #fecaca;
  color: #991b1b;
}
.ir-flow-step--good {
  background: #f0fdf4;
  color: #14532d;
}
.ir-flow-step--good .ir-flow-step__n {
  background: #bbf7d0;
  color: #15803d;
}
.ir-doc__eyebrow--bad {
  color: #b91c1c;
  font-weight: 600;
}

/* Plan recommended badge */
.ir-plan__recommended {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  margin-bottom: 0.4rem;
}

/* Pricing note */
.ir-pricing-note {
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  margin-top: 2rem;
}

/* Steps section */
.ir-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}
.ir-step {
  position: relative;
  padding-top: 0.5rem;
}
.ir-step__num {
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(255,255,255,0.12);
  line-height: 1;
  margin-bottom: 0.75rem;
  font-variant-numeric: tabular-nums;
}
.ir-step__title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.6rem;
}
.ir-step__body {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 768px) {
  .ir-steps { grid-template-columns: 1fr; gap: 1.5rem; }
  .ir-doc__flow-compare { flex-direction: column; }
}

/* Steps CTA */
.ir-steps-cta {
  margin-top: 2.5rem;
  text-align: center;
}

/* Objections section */
.ir-objections {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.ir-objection {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 1.5rem;
}
.ir-objection__q {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.75rem;
  line-height: 1.4;
}
.ir-objection__a {
  font-size: 0.86rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 768px) {
  .ir-objections { grid-template-columns: 1fr; }
}

/* ── Resumen: documentos adjuntos ──────────────────────────────────────── */
.resumen-docs {
  background: var(--panel);
  border: 1px solid #d4dfd6;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}
.resumen-docs__title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.9rem;
}
.resumen-docs__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.resumen-doc {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 7px;
  background: #f8faf8;
  border: 1px solid #e4ece5;
}
.resumen-doc--error { background: #fff5f5; border-color: #fecaca; }
.resumen-doc__icon {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
  padding: 3px 5px;
  line-height: 1;
}
.resumen-doc--error .resumen-doc__icon { background: #dc2626; }
.resumen-doc__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.resumen-doc__name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.resumen-doc__meta {
  font-size: 0.75rem;
  color: var(--muted);
}
.resumen-doc__extracted { color: var(--accent); font-weight: 600; }
.resumen-doc__error     { color: #dc2626; }
.resumen-doc__download {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 0.3rem 0.65rem;
  border: 1px solid #c8dace;
  border-radius: 6px;
  transition: background 0.15s;
}
.resumen-doc__download:hover { background: #f0fdf4; }

/* --------------------------------------------------------------------------
   HOMEPAGE — executive refresh v3
   -------------------------------------------------------------------------- */

.ir-home {
  background:
    radial-gradient(circle at 0% 0%, rgba(15, 159, 140, 0.12), transparent 24%),
    radial-gradient(circle at 82% 6%, rgba(35, 87, 255, 0.12), transparent 18%),
    linear-gradient(180deg, #f7fbff 0%, #eef4fb 52%, #f4f7fb 100%);
}

.ir-nav {
  backdrop-filter: blur(18px);
  background: rgba(247, 251, 255, 0.78);
  border-bottom-color: rgba(11, 16, 32, 0.08);
}

.ir-hero {
  padding: 5.35rem 0 4.2rem;
}

.ir-hero::before {
  top: -210px;
  right: -110px;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(15, 159, 140, 0.22), transparent 58%);
}

.ir-hero__grid {
  align-items: stretch;
  gap: 2rem;
}

.ir-hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ir-hero__meta {
  margin-bottom: 0.9rem;
}

.ir-hero__meta span {
  border-color: rgba(15, 159, 140, 0.16);
  background: rgba(255, 255, 255, 0.72);
  color: #0f3357;
}

.ir-kicker {
  max-width: 720px;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
}

.ir-hero__title {
  max-width: 900px;
  font-size: clamp(3.4rem, 6vw, 5.5rem);
  letter-spacing: -0.065em;
}

.ir-hero__title-subline {
  color: #123a63;
}

.ir-hero__sub {
  max-width: 690px;
  margin-top: 1.1rem;
  color: #41556d;
  font-size: 1.05rem;
  line-height: 1.72;
}

.ir-hero__points {
  margin-top: 1.25rem;
  max-width: 650px;
}

.ir-hero__actions {
  margin-top: 1.55rem;
}

.ir-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.8rem;
  padding-top: 0;
  border-top: 0;
}

.ir-proof__item {
  min-height: 124px;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(11, 16, 32, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 36px rgba(11, 16, 32, 0.05);
}

.ir-proof__item:last-child {
  padding-right: 1.05rem;
}

.ir-proof__item strong {
  display: block;
  margin-bottom: 0.48rem;
  color: #0b1020;
  font-size: 1rem;
}

.ir-proof__item span {
  color: #5a6b80;
  font-size: 0.91rem;
  line-height: 1.58;
}

.ir-doc--executive {
  position: relative;
  padding: 1.35rem;
  border-radius: 32px;
  border: 1px solid rgba(15, 159, 140, 0.2);
  background:
    radial-gradient(circle at top right, rgba(15, 159, 140, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(7, 16, 30, 0.98), rgba(13, 27, 47, 0.96));
  box-shadow: 0 34px 80px rgba(7, 15, 28, 0.22);
  color: #eef4ff;
  overflow: hidden;
  transform: translateY(0);
}

.ir-doc--executive::before {
  display: none;
}

.ir-doc--executive::after {
  content: "";
  position: absolute;
  inset: auto;
  right: -72px;
  bottom: -96px;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(15, 159, 140, 0.18), transparent 62%);
  border: 0;
  pointer-events: none;
  z-index: 0;
}

.ir-doc--executive > * {
  position: relative;
  z-index: 1;
}

.ir-doc__hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
  margin-bottom: 1.15rem;
}

.ir-doc__hero-copy {
  max-width: 460px;
}

.ir-doc--executive .ir-doc__eyebrow {
  max-width: none;
  color: #9ad7b6;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ir-doc__hero h2 {
  margin: 0.45rem 0 0;
  color: #f7fbff;
  font-family: "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  font-weight: 750;
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.ir-doc__status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.48rem 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(154, 215, 182, 0.2);
  background: rgba(15, 159, 140, 0.12);
  color: #ddf7ea;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ir-doc__snapshot {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.ir-snapshot-card {
  padding: 1rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}

.ir-snapshot-card--accent {
  border-color: rgba(154, 215, 182, 0.22);
  background: linear-gradient(180deg, rgba(15, 159, 140, 0.18), rgba(255, 255, 255, 0.08));
}

.ir-snapshot-card__label {
  margin: 0 0 0.55rem;
  color: #9ad7b6;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ir-snapshot-card strong {
  display: block;
  color: #fff;
  font-size: 1.02rem;
  line-height: 1.3;
}

.ir-snapshot-card span {
  display: block;
  margin-top: 0.55rem;
  color: #c7d6e8;
  font-size: 0.9rem;
  line-height: 1.58;
}

.ir-doc__stack {
  padding-top: 0.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ir-doc__stack-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  margin-bottom: 0.45rem;
  color: #90a2b9;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ir-doc__stack-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  padding: 0.82rem 0;
}

.ir-doc__stack-row + .ir-doc__stack-row {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ir-doc__stack-copy strong {
  display: block;
  color: #fff;
  font-size: 0.98rem;
  line-height: 1.25;
}

.ir-doc__stack-copy p {
  margin: 0.3rem 0 0;
  color: #c7d6e8;
  font-size: 0.86rem;
  line-height: 1.58;
}

.ir-doc__pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.35rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: #e7edf7;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ir-doc__pill--good {
  border-color: rgba(154, 215, 182, 0.22);
  background: rgba(15, 159, 140, 0.12);
  color: #dff8ee;
}

.ir-doc__pill--warn {
  border-color: rgba(255, 214, 102, 0.22);
  background: rgba(255, 214, 102, 0.1);
  color: #ffe3a0;
}

.ir-doc__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.ir-doc__metric {
  padding: 0.9rem 0.95rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
}

.ir-doc__metric strong {
  display: block;
  color: #fff;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 1.55rem;
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.ir-doc__metric span {
  display: block;
  margin-top: 0.35rem;
  color: #c7d6e8;
  font-size: 0.8rem;
  line-height: 1.5;
}

.ir-trust {
  padding: 0 0 1.65rem;
}

.ir-trust__inner {
  gap: 1.1rem;
  padding: 1.35rem;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(248, 251, 255, 0.92)),
    radial-gradient(circle at top right, rgba(15, 159, 140, 0.1), transparent 24%);
  box-shadow: 0 20px 44px rgba(11, 16, 32, 0.06);
}

.ir-trust__label {
  font-size: 0.86rem;
  line-height: 1.55;
}

.ir-trust__item {
  background: rgba(243, 247, 252, 0.96);
  color: #102846;
}

.ir-value-band {
  gap: 0.9rem;
}

.ir-value-item {
  padding: 0.95rem 1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 30px rgba(11, 16, 32, 0.04);
}

.ir-section--paper {
  background: rgba(255, 255, 255, 0.58);
}

.ir-card,
.ir-plan,
.ir-story__body,
.ir-story__aside {
  box-shadow: 0 22px 48px rgba(11, 16, 32, 0.06);
}

.ir-objection {
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(15, 159, 140, 0.14), transparent 28%),
    rgba(255, 255, 255, 0.06);
}

.ir-cta__inner {
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(15, 159, 140, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(244, 248, 252, 0.94));
}

@media (max-width: 980px) {
  .ir-proof,
  .ir-doc__snapshot,
  .ir-doc__metrics {
    grid-template-columns: 1fr;
  }

  .ir-doc__hero {
    flex-direction: column;
  }

  .ir-doc__status {
    white-space: normal;
  }
}

@media (max-width: 760px) {
  .ir-hero {
    padding: 4rem 0 3.2rem;
  }

  .ir-hero__title {
    font-size: clamp(2.4rem, 10vw, 3.65rem);
  }

  .ir-proof {
    gap: 0.75rem;
  }

  .ir-proof__item {
    min-height: 0;
  }

  .ir-doc--executive {
    padding: 1rem;
    border-radius: 26px;
  }

  .ir-doc__hero h2 {
    font-size: 1.45rem;
  }

  .ir-doc__stack-head,
  .ir-doc__stack-row {
    grid-template-columns: 1fr;
  }

.ir-doc__pill {
    justify-self: start;
  }
}

/* --------------------------------------------------------------------------
   HOMEPAGE — hero simplification v4
   -------------------------------------------------------------------------- */

.ir-hero {
  padding: 5.1rem 0 4rem;
}

.ir-hero__grid {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.96fr);
  align-items: center;
  gap: 2.2rem;
}

.ir-hero__copy {
  max-width: 640px;
}

.ir-hero__meta {
  margin-bottom: 1rem;
}

.ir-hero__meta span {
  padding: 0.38rem 0.72rem;
  border-color: rgba(15, 159, 140, 0.14);
  background: rgba(255, 255, 255, 0.84);
  color: #14345a;
  font-size: 0.71rem;
}

.ir-kicker {
  max-width: 560px;
  font-size: 0.8rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.ir-hero__title {
  max-width: 640px;
  font-size: clamp(3.6rem, 6.2vw, 5.75rem);
  line-height: 0.92;
}

.ir-hero__title-subline {
  margin-top: 0.12em;
  color: #123962;
}

.ir-hero__sub {
  max-width: 540px;
  margin-top: 1rem;
  color: #41556d;
  font-size: 1rem;
  line-height: 1.68;
}

.ir-hero__actions {
  margin-top: 1.45rem;
}

.ir-hero__signals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.1rem;
}

.ir-hero__signals span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(11, 16, 32, 0.08);
  background: rgba(255, 255, 255, 0.78);
  color: #173456;
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(11, 16, 32, 0.04);
}

.ir-hero-diagram {
  position: relative;
}

.ir-hero-diagram__surface {
  position: relative;
  padding: 1.35rem;
  border-radius: 32px;
  border: 1px solid rgba(15, 159, 140, 0.2);
  background:
    radial-gradient(circle at top right, rgba(15, 159, 140, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(7, 16, 30, 0.98), rgba(13, 27, 47, 0.96));
  box-shadow: 0 34px 80px rgba(7, 15, 28, 0.22);
  overflow: hidden;
}

.ir-hero-diagram__surface::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.ir-hero-diagram__surface::after {
  content: "";
  position: absolute;
  right: -68px;
  bottom: -92px;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(15, 159, 140, 0.18), transparent 62%);
  pointer-events: none;
}

.ir-hero-diagram__surface > * {
  position: relative;
  z-index: 1;
}

.ir-hero-diagram__eyebrow {
  margin: 0;
  color: #9ad7b6;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ir-hero-diagram__flow {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(240px, 1fr) minmax(0, 0.96fr);
  gap: 0.95rem;
  align-items: center;
  margin-top: 1rem;
}

.ir-hero-diagram__group {
  display: grid;
  gap: 0.75rem;
}

.ir-hero-diagram__group--input {
  text-align: right;
}

.ir-hero-diagram__node {
  position: relative;
  padding: 0.82rem 0.95rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
}

.ir-hero-diagram__node--input {
  background: rgba(255, 255, 255, 0.06);
  color: #d2dcec;
}

.ir-hero-diagram__node--output {
  background: rgba(15, 159, 140, 0.12);
  border-color: rgba(154, 215, 182, 0.18);
  color: #eef8f4;
}

.ir-hero-diagram__hub {
  position: relative;
  padding: 1.3rem 1rem;
  border-radius: 28px;
  border: 1px solid rgba(154, 215, 182, 0.22);
  background:
    radial-gradient(circle at top, rgba(15, 159, 140, 0.2), transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  text-align: center;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.16);
}

.ir-hero-diagram__hub::before,
.ir-hero-diagram__hub::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 74px;
  height: 1px;
  transform: translateY(-50%);
}

.ir-hero-diagram__hub::before {
  right: calc(100% + 10px);
  background: linear-gradient(90deg, rgba(154, 215, 182, 0), rgba(154, 215, 182, 0.65));
}

.ir-hero-diagram__hub::after {
  left: calc(100% + 10px);
  background: linear-gradient(90deg, rgba(154, 215, 182, 0.65), rgba(154, 215, 182, 0));
}

.ir-hero-diagram__hub-kicker {
  display: block;
  margin-bottom: 0.55rem;
  color: #9ad7b6;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ir-hero-diagram__hub strong {
  display: block;
  color: #fff;
  font-size: 1.18rem;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.ir-hero-diagram__hub span:last-child {
  display: block;
  margin-top: 0.5rem;
  color: #c8d6e9;
  font-size: 0.88rem;
  line-height: 1.5;
}

.ir-hero-diagram__rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ir-hero-diagram__rail-item {
  padding: 0.9rem 0.95rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
}

.ir-hero-diagram__rail-item strong {
  display: block;
  color: #fff;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 1.45rem;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.ir-hero-diagram__rail-item span {
  display: block;
  margin-top: 0.35rem;
  color: #c8d6e9;
  font-size: 0.8rem;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .ir-hero__grid {
    grid-template-columns: 1fr;
  }

  .ir-hero__copy {
    max-width: none;
  }

  .ir-hero-diagram__flow {
    grid-template-columns: 1fr;
  }

  .ir-hero-diagram__group--input {
    text-align: left;
  }

  .ir-hero-diagram__hub::before,
  .ir-hero-diagram__hub::after {
    display: none;
  }
}

@media (max-width: 760px) {
  .ir-hero {
    padding: 4rem 0 3.2rem;
  }

  .ir-hero__title {
    font-size: clamp(2.6rem, 10.8vw, 4rem);
  }

  .ir-hero__signals,
  .ir-hero-diagram__rail {
    grid-template-columns: 1fr;
  }

  .ir-hero__signals {
    display: grid;
  }

  .ir-hero-diagram__surface {
    padding: 1rem;
    border-radius: 26px;
  }

.ir-hero-diagram__surface::before {
    inset: 12px;
    border-radius: 20px;
  }
}

/* --------------------------------------------------------------------------
   HOMEPAGE — Panta-inspired structure for Risque
   -------------------------------------------------------------------------- */

.irx-home {
  --irx-ink: #0b1020;
  --irx-muted: #5a6474;
  --irx-line: rgba(11, 16, 32, 0.08);
  --irx-line-strong: rgba(11, 16, 32, 0.12);
  --irx-bg: #f4f6f9;
  --irx-card: #ffffff;
  --irx-green: #1ba874;
  --irx-green-deep: #12865d;
  --irx-blue: #123f73;
  --irx-dark: #0a1220;
  --irx-dark-soft: #111c30;
  color: var(--irx-ink);
  background:
    radial-gradient(circle at top left, rgba(27, 168, 116, 0.08), transparent 24%),
    linear-gradient(180deg, #f7f9fc 0%, #f2f5f9 100%);
  font-family: "DM Sans", "Segoe UI", sans-serif;
}


.irx-shell {
  width: min(100% - 48px, 1180px);
  margin: 0 auto;
}

.irx-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(255, 253, 249, 0.88);
  border-bottom: 1px solid var(--irx-line);
  font-family: var(--irx-body), "Avenir Next", "Segoe UI", sans-serif;
}

.irx-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 78px;
}

.irx-brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  color: inherit;
  text-decoration: none;
}

.irx-brand__logo {
  width: clamp(184px, 21vw, 264px);
  height: auto;
  display: block;
}

.irx-brand__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
}

.irx-brand__meta {
  color: var(--irx-muted);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.irx-nav__links {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.irx-nav__links a,
.irx-nav__links button {
  color: var(--irx-ink);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.irx-nav__links .button_to {
  margin: 0;
}

.irx-nav__links button {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.irx-nav__cta {
  padding: 0.78rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff !important;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 24px rgba(12, 20, 34, 0.12);
}

.irx-nav__cta--ghost {
  background: rgba(26, 58, 92, 0.08);
  color: var(--irx-ink) !important;
}

.irx-nav__user {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 0.85rem;
  border-radius: 999px;
  background: rgba(42, 90, 140, 0.08);
  color: var(--irx-muted);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.irx-hero {
  padding: 4.5rem 0 3.8rem;
  position: relative;
  overflow: hidden;
  background: #1a2a4a;
  font-family: "DM Sans", "DM Sans", "Avenir Next", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.irx-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.irx-hero__bg svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.irx-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: 2.1rem;
  align-items: center;
}

.irx-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.irx-badge {
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(27, 168, 116, 0.35);
  background: rgba(27, 168, 116, 0.14);
  color: #6edba8;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.irx-badge--soft {
  border-color: rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.08);
  color: #a8c4e0;
}

.irx-hero__title {
  max-width: 560px;
  margin: 1rem 0 0;
  font-size: clamp(3.5rem, 5vw, 4.2rem);
  font-family: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.04;
  color: #ffffff;
}

.irx-hero__sub {
  max-width: 560px;
  margin: 1rem 0 0;
  color: #8aabcc;
  font-size: 1rem;
  line-height: 1.7;
}

.irx-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.irx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.9rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.irx-btn:hover {
  transform: translateY(-1px);
}

.irx-btn--primary {
  background: linear-gradient(180deg, #1ba874, #12865d);
  color: #fff;
  box-shadow: 0 16px 28px rgba(18, 134, 93, 0.28);
}

.irx-btn--secondary {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #e8f4fb;
}

.irx-btn--secondary:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.3);
}

.irx-btn--block {
  width: 100%;
}

.irx-link {
  color: #8aabcc;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}

.irx-link--accent {
  color: #4de8a8;
}

.irx-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.7rem;
}

.irx-strip__item {
  padding: 1rem 1.05rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
}

.irx-strip__item strong {
  display: block;
  font-size: 0.96rem;
  line-height: 1.15;
  color: #fff;
}

.irx-strip__item span {
  display: block;
  margin-top: 0.42rem;
  color: #7a9bbf;
  font-size: 0.83rem;
  line-height: 1.5;
}

/* ── Bento grid hero ──────────────────────────────────────────────────────── */

.irx-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px;
  border-radius: 24px;
  background: transparent;
}

.irx-bento__card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.038);
  border: 1px solid rgba(255,255,255,0.06);
  color: #d8e6f5;
  transition: background 0.15s, border-color 0.15s;
  min-height: 64px;
}

.irx-bento__card:hover {
  background: rgba(255,255,255,0.058);
  border-color: rgba(255,255,255,0.1);
}

.irx-bento__card--c2 { grid-column: span 2; }
.irx-bento__card--c3 { grid-column: span 3; }

.irx-bento__card--green {
  background: rgba(27,168,116,0.12);
  border-color: rgba(27,168,116,0.2);
}

.irx-bento__card--green:hover {
  background: rgba(27,168,116,0.17);
  border-color: rgba(27,168,116,0.28);
}

.irx-bento__card--blue {
  background: rgba(18,63,115,0.18);
  border-color: rgba(18,63,115,0.28);
}

.irx-bento__card--blue:hover {
  background: rgba(18,63,115,0.24);
}

.irx-bento__icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
  display: grid;
  place-items: center;
  color: #7ab8a0;
  flex-shrink: 0;
}

.irx-bento__card--green .irx-bento__icon {
  background: rgba(27,168,116,0.18);
  border-color: rgba(27,168,116,0.25);
  color: #4de8a8;
}

.irx-bento__card--blue .irx-bento__icon {
  background: rgba(18,63,115,0.28);
  border-color: rgba(18,63,115,0.35);
  color: #7aaee8;
}

.irx-bento__text {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
}

.irx-bento__val {
  font-size: 1rem;
  font-weight: 760;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.irx-bento__desc {
  font-size: 0.73rem;
  color: #6a87a8;
  line-height: 1.35;
}

.irx-section {
  padding: 4.8rem 0;
}

.irx-section__head,
.irx-section__bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: 1.6rem;
  align-items: end;
  margin-bottom: 1.6rem;
}

.irx-section__kicker {
  margin: 0 0 0.45rem;
  color: var(--irx-green-deep);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.irx-section__kicker--light {
  color: #9fd9bb;
}

.irx-section__head h2,
.irx-section__bar h2,
.irx-impact__copy h2,
.irx-quote__copy h2 {
  margin: 0;
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 760;
  letter-spacing: -0.05em;
  line-height: 0.96;
}

.irx-section__head p,
.irx-section__bar p,
.irx-impact__copy p,
.irx-quote__copy p {
  margin: 0;
  color: var(--irx-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.irx-capabilities {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.irx-card,
.irx-industry,
.irx-pillar,
.irx-stat,
.irx-panel,
.irx-intake {
  border-radius: 28px;
  border: 1px solid var(--irx-line);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 22px 48px rgba(11, 16, 32, 0.05);
}

.irx-card {
  padding: 1.35rem;
}

.irx-card__art {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 30% 30%, rgba(27, 168, 116, 0.3), transparent 42%),
    linear-gradient(180deg, #f2f6fb 0%, #e7eef7 100%);
  border: 1px solid rgba(17, 46, 87, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.irx-card h3 {
  margin: 1rem 0 0.55rem;
  font-size: 1.2rem;
  font-weight: 760;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.irx-card p {
  margin: 0;
  color: var(--irx-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.irx-section--dark {
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(27, 168, 116, 0.16), transparent 24%),
    linear-gradient(180deg, #0a1220 0%, #10192b 100%);
}

.irx-section__head--dark p {
  color: #c2cfdf;
}

.irx-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.irx-pillar {
  padding: 1.45rem;
  border-color: rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at top right, rgba(27, 168, 116, 0.16), transparent 28%),
    rgba(255, 255, 255, 0.04);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.16);
}

.irx-pillar__icon {
  width: 36px;
  height: 36px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.irx-pillar__kicker {
  margin: 0 0 0.7rem;
  color: #9fd9bb;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.irx-pillar h3 {
  margin: 0;
  color: #fff;
  font-size: 1.28rem;
  font-weight: 740;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.irx-pillar p:not(.irx-pillar__kicker) {
  margin: 0.8rem 0 0;
  color: #c2cfdf;
  font-size: 0.93rem;
  line-height: 1.65;
}

.irx-industries {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.irx-industry {
  overflow: hidden;
}

.irx-industry__art {
  height: 160px;
  border-bottom: 1px solid var(--irx-line);
  background:
    radial-gradient(circle at top right, rgba(27, 168, 116, 0.18), transparent 28%),
    linear-gradient(135deg, #dbe7f4 0%, #f5f8fc 100%);
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

.irx-industry__art--two {
  background:
    radial-gradient(circle at 70% 30%, rgba(18, 63, 115, 0.18), transparent 24%),
    linear-gradient(135deg, #d9e7ee 0%, #f4f8fb 100%);
}

.irx-industry__art--three {
  background:
    radial-gradient(circle at 70% 30%, rgba(27, 168, 116, 0.22), transparent 24%),
    linear-gradient(135deg, #ddeee8 0%, #f6faf8 100%);
}

.irx-industry__art--four {
  background:
    radial-gradient(circle at 70% 30%, rgba(11, 16, 32, 0.12), transparent 24%),
    linear-gradient(135deg, #e5eaf1 0%, #f7f9fc 100%);
}

.irx-industry h3,
.irx-industry p {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.irx-industry h3 {
  margin: 1rem 0 0.55rem;
  font-size: 1.22rem;
  font-weight: 760;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.irx-industry p {
  margin: 0 0 1.25rem;
  color: var(--irx-muted);
  font-size: 0.92rem;
  line-height: 1.64;
}

.irx-section--impact {
  background: rgba(255, 255, 255, 0.52);
  border-top: 1px solid var(--irx-line);
  border-bottom: 1px solid var(--irx-line);
}

.irx-impact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.85fr);
  gap: 1.2rem;
  align-items: start;
}

.irx-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.3rem;
}

.irx-stat {
  padding: 1.15rem;
}

.irx-stat strong {
  display: block;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 2rem;
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.irx-stat span {
  display: block;
  margin-top: 0.5rem;
  color: var(--irx-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.irx-panel {
  padding: 1.45rem;
  background:
    radial-gradient(circle at top right, rgba(27, 168, 116, 0.18), transparent 28%),
    linear-gradient(180deg, #0a1220 0%, #111c30 100%);
  border-color: rgba(255, 255, 255, 0.08);
  color: #f4f7fb;
  box-shadow: 0 22px 48px rgba(10, 18, 32, 0.18);
}

.irx-panel__kicker {
  margin: 0 0 0.7rem;
  color: #9fd9bb;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.irx-panel h3 {
  margin: 0;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 760;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.irx-panel__sub {
  margin-top: 0.8rem !important;
  color: #c2cfdf !important;
}

.irx-checklist {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.7rem;
}

.irx-checklist li {
  position: relative;
  padding-left: 1.1rem;
  color: #edf3fa;
  font-size: 0.9rem;
  line-height: 1.6;
}

.irx-checklist li::before {
  content: "";
  position: absolute;
  top: 0.58rem;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #9fd9bb;
}

.irx-section--cta {
  padding-top: 0;
  padding-bottom: 5rem;
}

.irx-quote {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.75fr);
  gap: 1.2rem;
  align-items: stretch;
  padding: 2rem;
  border-radius: 34px;
  border: 1px solid var(--irx-line);
  background:
    radial-gradient(circle at top right, rgba(27, 168, 116, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(248, 250, 253, 0.96));
  box-shadow: 0 24px 54px rgba(11, 16, 32, 0.06);
}

.irx-intake {
  padding: 1.35rem;
}

.irx-intake__title {
  margin: 0 0 0.95rem;
  color: var(--irx-ink);
  font-size: 1.05rem;
  font-weight: 760;
}

.irx-intake__field + .irx-intake__field {
  margin-top: 0.75rem;
}

.irx-intake__field {
  padding: 0.9rem 0.95rem;
  border-radius: 18px;
  border: 1px solid var(--irx-line);
  background: rgba(245, 248, 252, 0.88);
}

.irx-intake__field span {
  display: block;
  color: var(--irx-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.irx-intake__field strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.92rem;
  line-height: 1.45;
}

.irx-intake .irx-btn {
  margin-top: 1rem;
}

.irx-footer {
  padding: 0 0 2.2rem;
}

.irx-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--irx-line);
}

.irx-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.irx-footer__brand strong {
  display: block;
  font-size: 0.94rem;
}

.irx-footer__brand span {
  display: block;
  color: var(--irx-muted);
  font-size: 0.82rem;
}

.irx-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
}

.irx-footer__links a {
  color: var(--irx-muted);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════════════
   GARANTÍA — 2 capas de seguridad
   ═══════════════════════════════════════════════════════════════════════════ */

.irx-section--garantia {
  background:
    radial-gradient(ellipse at top right, rgba(18, 63, 115, 0.04), transparent 60%),
    linear-gradient(180deg, #f7f9fc 0%, #eef2f8 100%);
  border-top: 1px solid rgba(11, 16, 32, 0.06);
  border-bottom: 1px solid rgba(11, 16, 32, 0.06);
}

.irx-layers {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 3rem;
}

.irx-layer {
  display: grid;
  grid-template-columns: 160px 1fr 280px;
  gap: 2rem;
  align-items: start;
  padding: 2rem 2rem 2rem 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(11, 16, 32, 0.09);
  background: #fff;
  position: relative;
}

.irx-layer--one {
  border-left: 4px solid var(--irx-green);
}

.irx-layer--two {
  border-left: 4px solid var(--irx-blue);
}

.irx-layer__badge {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  padding-top: 0.15rem;
}

.irx-layer__num {
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--irx-line-strong);
}

.irx-layer--one .irx-layer__num { color: rgba(27, 168, 116, 0.25); }
.irx-layer--two .irx-layer__num { color: rgba(18, 63, 115, 0.2); }

.irx-layer__tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
}

.irx-layer--one .irx-layer__tag {
  background: rgba(27, 168, 116, 0.1);
  color: var(--irx-green-deep);
}

.irx-layer--two .irx-layer__tag {
  background: rgba(18, 63, 115, 0.08);
  color: var(--irx-blue);
}

.irx-layer__body h3 {
  margin: 0 0 0.6rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--irx-ink);
  letter-spacing: -0.02em;
}

.irx-layer__body p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--irx-muted);
  line-height: 1.65;
}

.irx-layer__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.irx-layer__list li {
  font-size: 0.84rem;
  color: var(--irx-ink);
  padding-left: 1.1rem;
  position: relative;
}

.irx-layer__list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--irx-green);
  font-size: 0.75rem;
}

.irx-layer--two .irx-layer__list li::before {
  color: var(--irx-blue);
}

/* Visual column — Capa 1 (chips) */
.irx-layer__visual {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.irx-layer__chip {
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(27, 168, 116, 0.2);
  background: rgba(27, 168, 116, 0.05);
  color: var(--irx-green-deep);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.irx-layer__chip--done::before {
  content: "✓";
  font-size: 0.75rem;
  opacity: 0.7;
}

/* Visual column — Capa 2 (reviewer) */
.irx-layer__reviewer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(18, 63, 115, 0.12);
  background: rgba(18, 63, 115, 0.04);
  margin-bottom: 0.5rem;
}

.irx-layer__reviewer-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--irx-blue), #1a6eb0);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.irx-layer__reviewer-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex: 1;
  min-width: 0;
}

.irx-layer__reviewer-info strong {
  font-size: 0.82rem;
  color: var(--irx-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.irx-layer__reviewer-info span {
  font-size: 0.73rem;
  color: var(--irx-muted);
}

.irx-layer__reviewer-action {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--irx-green-deep);
  background: rgba(27, 168, 116, 0.1);
  padding: 0.2rem 0.55rem;
  border-radius: 99px;
  white-space: nowrap;
}

.irx-layer__outcome {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  background: rgba(27, 168, 116, 0.07);
  border: 1px solid rgba(27, 168, 116, 0.18);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--irx-green-deep);
}

.irx-layer__outcome-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--irx-green);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  flex-shrink: 0;
}

/* Connector between layers */
.irx-layers__connector {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  color: var(--irx-muted);
}

.irx-layers__connector-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(11, 16, 32, 0.12), transparent);
}

.irx-layers__connector-label {
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--irx-muted);
  white-space: nowrap;
}

/* Bottom note */
.irx-layers__note {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  background: rgba(11, 16, 32, 0.03);
  border: 1px solid rgba(11, 16, 32, 0.07);
  font-size: 0.86rem;
  color: var(--irx-muted);
  font-style: italic;
}

.irx-layers__note-icon {
  font-size: 1.1rem;
  color: var(--irx-green);
  flex-shrink: 0;
  font-style: normal;
}

@media (max-width: 1080px) {
  .irx-capabilities,
  .irx-industries {
    grid-template-columns: 1fr 1fr;
  }

  .irx-impact,
  .irx-quote,
  .irx-section__head,
  .irx-section__bar {
    grid-template-columns: 1fr;
  }

  .irx-layer {
    grid-template-columns: 120px 1fr;
  }

  .irx-layer__visual {
    grid-column: 2;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .irx-layer__reviewer {
    width: 100%;
  }
}

@media (max-width: 920px) {
  .irx-nav__inner,
  .irx-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .irx-hero__grid,
  .irx-pillars {
    grid-template-columns: 1fr;
  }

  .irx-bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .irx-bento__card--c3 {
    grid-column: span 2;
  }

  .irx-strip,
  .irx-stats {
    grid-template-columns: 1fr;
  }

  .irx-layer {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .irx-layer__badge {
    flex-direction: row;
    align-items: center;
  }

  .irx-layer__num {
    font-size: 1.8rem;
  }

  .irx-layer__visual {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .irx-layer__chip {
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
  }

}

@media (max-width: 760px) {
  .irx-shell {
    width: min(100% - 28px, 1180px);
  }

  .irx-nav__links {
    width: 100%;
    flex-wrap: wrap;
    gap: 0.8rem;
  }

  .irx-nav--marketing .irx-nav__links a:not(.irx-nav__cta) {
    display: none;
  }

  .irx-nav--app .irx-nav__user {
    display: none;
  }

  .irx-hero {
    padding-top: 3.6rem;
  }

  .irx-hero__title {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .irx-dossier,
  .irx-quote {
    padding: 1.2rem;
  }

  .irx-dossier__head,
  .irx-dossier__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .irx-dossier__row {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .irx-capabilities,
  .irx-industries {
    grid-template-columns: 1fr;
  }

  .irx-section {
    padding: 4rem 0;
  }

  .irx-section--cta {
    padding-bottom: 3.8rem;
  }

  .irx-bento {
    grid-template-columns: 1fr;
  }

  .irx-bento__card--c2,
  .irx-bento__card--c3 {
    grid-column: span 1;
  }
}

/* --------------------------------------------------------------------------
   HOMEPAGE — Minimal Risque landing
   -------------------------------------------------------------------------- */

.irx-home {
  background:
    radial-gradient(circle at top center, rgba(123, 184, 224, 0.18), transparent 28%),
    radial-gradient(circle at 100% 10%, rgba(42, 90, 140, 0.08), transparent 24%),
    linear-gradient(180deg, #fffdf9 0%, #f7f5f0 46%, #f2f5f8 100%);
  color: var(--irx-ink);
  font-family: var(--irx-body), "Segoe UI", sans-serif;
}

.irx-home [id] {
  scroll-margin-top: calc(var(--app-nav-height) + 24px);
}

.irx-nav--marketing {
  background: rgba(250, 248, 243, 0.88);
  border-bottom: 1px solid rgba(11, 16, 32, 0.07);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

.irx-nav--marketing .irx-brand__meta {
  color: var(--accent);
}

.irx-nav--marketing .irx-nav__links {
  gap: 0.9rem;
}

.irx-nav--marketing .irx-nav__links a,
.irx-nav--marketing .irx-nav__links button {
  font-size: 0.82rem;
  font-weight: 700;
}

.irx-nav__cta--soft {
  background: rgba(26, 58, 92, 0.08);
  color: var(--accent) !important;
  border: 1px solid rgba(26, 58, 92, 0.12);
}

.irx-btn--ghost {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(11, 16, 32, 0.1);
  color: var(--irx-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.irx-btn--ghost:hover {
  border-color: rgba(11, 16, 32, 0.16);
  box-shadow: 0 10px 22px rgba(11, 16, 32, 0.06);
}

.irx-homepage {
  position: relative;
  z-index: 0;
}

.irx-home-hero {
  padding: 7rem 0 2.5rem;
}

.irx-home-hero__inner {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.irx-home-overline,
.irx-home-kicker {
  margin: 0;
  color: var(--irx-green-deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.irx-home-title {
  margin: 1.15rem 0 0;
  max-width: 760px;
  font-family: var(--irx-heading), Georgia, serif;
  font-size: clamp(3rem, 6vw, 4.75rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.02;
  text-wrap: balance;
}

.irx-home-title__accent {
  display: block;
  margin-top: 0.2em;
  color: var(--irx-green-deep);
  font-size: 0.58em;
  font-style: italic;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.irx-home-lead {
  max-width: 620px;
  margin: 1.35rem 0 0;
  color: var(--irx-muted);
  font-size: 1.02rem;
  line-height: 1.8;
}

.irx-home-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  justify-content: center;
  margin-top: 1.8rem;
}

.irx-home-actions--center {
  justify-content: center;
}

.irx-home-note {
  margin: 1.15rem 0 0;
  color: #6d746f;
  font-size: 0.86rem;
  line-height: 1.7;
}

.irx-home-note__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.6rem;
  padding: 0.22rem 0.58rem;
  border-radius: 999px;
  border: 1px solid rgba(21, 95, 58, 0.12);
  background: rgba(21, 95, 58, 0.08);
  color: var(--irx-green-deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
}

.irx-home-proof {
  padding: 0 0 5rem;
}

.irx-home-proof__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.irx-home-proof__item,
.irx-home-card,
.irx-home-step,
.irx-home-industry,
.irx-home-cta {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(11, 16, 32, 0.08);
  box-shadow: 0 22px 50px rgba(11, 16, 32, 0.04);
  backdrop-filter: blur(10px);
}

.irx-home-proof__item {
  min-height: 100%;
  padding: 1.35rem 1.25rem;
  border-radius: 18px;
}

.irx-home-proof__label,
.irx-home-step__eyebrow,
.irx-home-industry__tag,
.irx-home-cta__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--irx-green-deep);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.irx-home-proof__item strong {
  display: block;
  margin-top: 0.65rem;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.irx-home-proof__item p {
  margin: 0.65rem 0 0;
  color: var(--irx-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ── Stats bar (NeuraRisk style) ─────────────────── */

.irx-home-proof__grid--stats {
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: none;
}

.irx-home-stat {
  text-align: center;
  padding: 2.4rem 1.4rem;
  border-right: 1px solid rgba(11, 16, 32, 0.07);
}

.irx-home-stat:last-child {
  border-right: none;
}

.irx-home-stat__value {
  display: block;
  font-family: var(--irx-heading, "Instrument Serif"), serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--irx-accent, #155f3a);
  line-height: 1;
  margin-bottom: 0.6rem;
}

.irx-home-stat__desc {
  font-size: 0.82rem;
  color: var(--irx-muted);
  line-height: 1.55;
  margin: 0;
  max-width: 160px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Market context (WTW) ────────────────────────── */

.irx-home-market {
  max-width: 740px;
  margin: 0 auto;
}

.irx-home-market__quote {
  position: relative;
  margin: 0 0 2rem;
  padding: 1.8rem 2rem 1.8rem 2.4rem;
  border-left: 3px solid var(--irx-accent, #155f3a);
  background: rgba(21, 95, 58, 0.04);
  border-radius: 0 8px 8px 0;
}

.irx-home-market__quote p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--irx-ink);
  font-style: italic;
}

.irx-home-market__quote cite {
  display: block;
  margin-top: 0.8rem;
  font-size: 0.8rem;
  font-style: normal;
  color: var(--irx-muted);
  letter-spacing: 0.01em;
}

.irx-home-market__body {
  padding: 0 0.4rem;
}

.irx-home-market__body p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--irx-muted);
  margin: 0 0 1.2rem;
}

.irx-home-market__cta {
  color: var(--irx-ink) !important;
  font-size: 1.05rem !important;
}

/* ── Steps (NeuraRisk style) ─────────────────────── */

.irx-home-steps {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.irx-home-step-row {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(11, 16, 32, 0.07);
  margin-bottom: 2rem;
}

.irx-home-step-row--last {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.irx-home-step-row__num {
  font-family: var(--irx-heading, "Instrument Serif"), serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--irx-accent, #155f3a);
  opacity: 0.35;
  line-height: 1;
  flex-shrink: 0;
  width: 52px;
  padding-top: 0.1rem;
}

.irx-home-step-row__body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--irx-ink);
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.irx-home-step-row__body p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--irx-muted);
  margin: 0;
}

/* ── Comparison chart ────────────────────────────── */

.irx-home-compare-wrap {
  max-width: 680px;
  margin: 0 auto 3rem;
}

.irx-home-compare {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 0.75rem;
}

.irx-home-compare__row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.irx-home-compare__label {
  flex-shrink: 0;
  width: 140px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--irx-muted);
  text-align: right;
}

.irx-home-compare__track {
  flex: 1;
  height: 36px;
  background: rgba(11, 16, 32, 0.04);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.irx-home-compare__bar {
  height: 100%;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 0 0.8rem;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.irx-home-compare__bar--old {
  width: 100%;
  background: rgba(11, 16, 32, 0.1);
  color: var(--irx-muted);
}

.irx-home-compare__bar--new {
  width: 6%;
  min-width: 90px;
  background: var(--irx-accent, #155f3a);
  color: #fff;
}

.irx-home-compare-note {
  font-size: 0.78rem;
  color: var(--irx-muted);
  text-align: center;
  font-style: italic;
  padding: 0 1rem;
}

/* ── Dossier visual ──────────────────────────────── */

.irx-home-dossier {
  max-width: 820px;
  margin: 0 auto;
}

.irx-home-dossier__card {
  background: #fff;
  border: 1px solid rgba(11, 16, 32, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(11, 16, 32, 0.04);
}

.irx-home-dossier__header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.2rem 1.6rem;
  border-bottom: 1px solid rgba(11, 16, 32, 0.06);
  background: rgba(11, 16, 32, 0.015);
}

.irx-home-dossier__icon {
  color: var(--irx-accent, #155f3a);
}

.irx-home-dossier__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--irx-ink);
  letter-spacing: 0.01em;
}

.irx-home-dossier__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.irx-home-dossier__block {
  padding: 1.4rem 1.6rem;
  border-bottom: 1px solid rgba(11, 16, 32, 0.05);
}

.irx-home-dossier__block:nth-child(odd) {
  border-right: 1px solid rgba(11, 16, 32, 0.05);
}

.irx-home-dossier__block h4 {
  margin: 0 0 0.6rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--irx-ink);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.irx-home-dossier__block ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.irx-home-dossier__block li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--irx-muted);
}

.irx-home-dossier__block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--irx-accent, #155f3a);
  opacity: 0.5;
}

.irx-home-dossier__footer {
  display: flex;
  gap: 1.4rem;
  padding: 1rem 1.6rem;
  background: rgba(21, 95, 58, 0.04);
  border-top: 1px solid rgba(11, 16, 32, 0.06);
}

.irx-home-dossier__footer span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--irx-accent, #155f3a);
  letter-spacing: 0.01em;
}

/* ── Versus / comparison table ───────────────────── */

.irx-home-versus {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  max-width: 880px;
  margin: 0 auto;
  align-items: start;
}

.irx-home-versus__col {
  padding: 1.8rem;
  border-radius: 12px;
}

.irx-home-versus__col--old {
  background: rgba(11, 16, 32, 0.03);
  border: 1px solid rgba(11, 16, 32, 0.07);
}

.irx-home-versus__col--new {
  background: rgba(21, 95, 58, 0.04);
  border: 2px solid rgba(21, 95, 58, 0.2);
}

.irx-home-versus__head {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(11, 16, 32, 0.07);
}

.irx-home-versus__col--old .irx-home-versus__head {
  color: var(--irx-muted);
}

.irx-home-versus__col--new .irx-home-versus__head {
  color: var(--irx-accent, #155f3a);
}

.irx-home-versus__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.irx-home-versus__list li {
  position: relative;
  padding-left: 1.3rem;
  font-size: 0.88rem;
  line-height: 1.55;
}

.irx-home-versus__col--old .irx-home-versus__list li {
  color: var(--irx-muted);
}

.irx-home-versus__col--old .irx-home-versus__list li::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: #c0392b;
  font-size: 0.7rem;
  top: 0.15em;
  opacity: 0.6;
}

.irx-home-versus__col--new .irx-home-versus__list li {
  color: var(--irx-ink);
}

.irx-home-versus__col--new .irx-home-versus__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--irx-accent, #155f3a);
  font-weight: 700;
  font-size: 0.8rem;
}

.irx-home-versus__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.2rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--irx-muted);
  opacity: 0.5;
  padding-top: 3rem;
}

/* ── Value cards (client value) ──────────────────── */

.irx-home-value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
  max-width: 840px;
  margin: 0 auto;
}

.irx-home-value-card {
  background: #fff;
  border: 1px solid rgba(11, 16, 32, 0.07);
  border-radius: 12px;
  padding: 1.8rem 1.6rem;
  transition: box-shadow 0.2s;
}

.irx-home-value-card:hover {
  box-shadow: 0 4px 20px rgba(11, 16, 32, 0.07);
}

.irx-home-value-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(21, 95, 58, 0.06);
  color: var(--irx-accent, #155f3a);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.irx-home-value-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--irx-ink);
  margin: 0 0 0.6rem;
  line-height: 1.3;
}

.irx-home-value-card p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--irx-muted);
  margin: 0;
}

/* ── Use cases ───────────────────────────────────── */

.irx-home-usecases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  max-width: 1000px;
  margin: 0 auto;
}

.irx-home-usecase {
  background: #fff;
  border: 1px solid rgba(11, 16, 32, 0.07);
  border-radius: 10px;
  padding: 2rem 1.6rem 1.8rem;
  transition: box-shadow 0.2s;
}

.irx-home-usecase:hover {
  box-shadow: 0 4px 20px rgba(11, 16, 32, 0.06);
}

.irx-home-usecase__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(21, 95, 58, 0.06);
  color: var(--irx-accent, #155f3a);
  margin-bottom: 1rem;
}

.irx-home-usecase__role {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--irx-accent, #155f3a);
  margin-bottom: 0.5rem;
}

.irx-home-usecase h3 {
  font-family: var(--irx-heading, "Instrument Serif"), serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--irx-ink);
  margin: 0 0 0.8rem;
}

.irx-home-usecase > p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--irx-muted);
  margin: 0 0 1.2rem;
}

.irx-home-usecase__list {
  list-style: none;
  margin: 0;
  padding: 0.8rem 0 0;
  border-top: 1px solid rgba(11, 16, 32, 0.06);
}

.irx-home-usecase__list li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.4rem;
  font-size: 0.82rem;
  color: var(--irx-ink);
  line-height: 1.5;
}

.irx-home-usecase__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--irx-accent, #155f3a);
  font-weight: 700;
  font-size: 0.75rem;
}

/* ── Impact metrics ──────────────────────────────── */

.irx-home-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 680px;
  margin: 0 auto;
  border: 1px solid rgba(11, 16, 32, 0.07);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.irx-home-metric {
  text-align: center;
  padding: 1.4rem 0.8rem;
  border-right: 1px solid rgba(11, 16, 32, 0.07);
}

.irx-home-metric:last-child {
  border-right: none;
}

.irx-home-metric__value {
  display: block;
  font-family: var(--irx-heading, "Instrument Serif"), serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--irx-accent, #155f3a);
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.irx-home-metric__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--irx-ink);
  margin-bottom: 0.6rem;
}

.irx-home-metric p {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--irx-muted);
  margin: 0;
}

/* ── Security ────────────────────────────────────── */

.irx-home-security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  max-width: 820px;
  margin: 0 auto;
}

.irx-home-security {
  background: #fff;
  border: 1px solid rgba(11, 16, 32, 0.07);
  border-radius: 10px;
  padding: 1.6rem;
}

.irx-home-security h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--irx-ink);
  margin: 0 0 0.6rem;
}

.irx-home-security h4 svg {
  flex-shrink: 0;
  color: var(--irx-accent, #155f3a);
}

.irx-home-security p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--irx-muted);
  margin: 0;
}

/* ── Team / credentials ──────────────────────────── */

.irx-home-credentials {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 2rem;
}

.irx-home-credential {
  text-align: center;
}

.irx-home-credential__num {
  display: block;
  font-family: var(--irx-heading, "Instrument Serif"), serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--irx-accent, #155f3a);
  line-height: 1.2;
  margin-bottom: 0.3rem;
}

.irx-home-credential__label {
  font-size: 0.82rem;
  color: var(--irx-muted);
  line-height: 1.4;
}

.irx-home-team-note {
  max-width: 660px;
  margin: 0 auto;
  text-align: center;
}

.irx-home-team-note p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--irx-muted);
  margin: 0;
}

/* ── ROI ─────────────────────────────────────────── */

.irx-home-roi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  max-width: 860px;
  margin: 0 auto 1.6rem;
}

.irx-home-roi-card {
  text-align: center;
  padding: 2rem 1.6rem;
  background: #fff;
  border: 1px solid rgba(11, 16, 32, 0.07);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(11, 16, 32, 0.04);
}

.irx-home-roi-value {
  font-family: var(--irx-heading, "Instrument Serif"), serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--irx-accent, #155f3a);
  line-height: 1.1;
  margin-bottom: 0.3rem;
}

.irx-home-roi-sub {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--irx-accent, #155f3a);
  margin-bottom: 0.8rem;
}

.irx-home-roi-card p {
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--irx-muted);
  margin: 0;
}

.irx-home-roi-note {
  max-width: 860px;
  margin: 0 auto;
  font-size: 0.75rem;
  color: var(--irx-muted);
  text-align: center;
  font-style: italic;
  opacity: 0.75;
}

/* ── Pricing ─────────────────────────────────────── */

.irx-home-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  max-width: 900px;
  margin: 0 auto;
  align-items: start;
}

.irx-home-plan {
  padding: 2rem 1.6rem;
  border: 1px solid rgba(11, 16, 32, 0.08);
  border-radius: 12px;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.irx-home-plan--featured {
  border: 2px solid var(--irx-accent, #155f3a);
  position: relative;
  padding-top: 2.6rem;
}

.irx-home-plan__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 4px 14px;
  border-radius: 20px;
  background: var(--irx-accent, #155f3a);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.irx-home-plan__name {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--irx-ink);
  margin-bottom: 1rem;
}

.irx-home-plan__price-row {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  margin-bottom: 1.4rem;
}

.irx-home-plan__price {
  font-family: var(--irx-heading, "Instrument Serif"), serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--irx-ink);
  line-height: 1;
}

.irx-home-plan--featured .irx-home-plan__price {
  color: var(--irx-accent, #155f3a);
}

.irx-home-plan__period {
  font-size: 0.85rem;
  color: var(--irx-muted);
}

.irx-home-plan__features {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  flex: 1;
  border-top: 1px solid rgba(11, 16, 32, 0.06);
  padding-top: 1rem;
}

.irx-home-plan__features li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.5rem;
  font-size: 0.87rem;
  color: var(--irx-muted);
  line-height: 1.5;
}

.irx-home-plan__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--irx-accent, #155f3a);
  font-weight: 700;
  font-size: 0.75rem;
}

.irx-home-plan__btn {
  display: block;
  text-align: center;
  padding: 0.7rem 1rem;
  border-radius: 7px;
  border: 1px solid rgba(11, 16, 32, 0.15);
  background: transparent;
  color: var(--irx-ink);
  font-size: 0.87rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.irx-home-plan__btn:hover {
  background: rgba(11, 16, 32, 0.05);
}

.irx-home-plan__btn--primary {
  background: var(--irx-accent, #155f3a);
  border-color: var(--irx-accent, #155f3a);
  color: #fff;
}

.irx-home-plan__btn--primary:hover {
  background: var(--irx-green-deep, #12865d);
  border-color: var(--irx-green-deep, #12865d);
}

/* ── FAQ ─────────────────────────────────────────── */

.irx-home-faq {
  max-width: 680px;
  margin: 0 auto;
}

details.irx-faq-item {
  border-bottom: 1px solid rgba(11, 16, 32, 0.07);
}

details.irx-faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--irx-ink);
  gap: 1rem;
  user-select: none;
}

details.irx-faq-item summary::-webkit-details-marker {
  display: none;
}

details.irx-faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--irx-accent, #155f3a);
  transition: transform 0.2s ease;
  line-height: 1;
}

details[open].irx-faq-item summary::after {
  transform: rotate(45deg);
}

.irx-faq-item__body {
  padding: 0 1rem 1.2rem 0;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--irx-muted);
}

/* ── CTA note ────────────────────────────────────── */

.irx-home-cta--final {
  text-align: center;
}

.irx-home-cta--final h2 {
  font-family: var(--irx-heading, "Instrument Serif"), serif;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  color: var(--irx-ink);
  line-height: 1.2;
  margin: 0 0 1rem;
}

.irx-home-cta--final h2 em {
  font-style: italic;
  color: var(--irx-accent, #155f3a);
}

.irx-home-cta--final > p {
  font-size: 1rem;
  color: var(--irx-muted);
  margin: 0 0 2rem;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.irx-home-cta__note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--irx-muted);
  text-align: center;
}

/* ── Footer copyright ────────────────────────────── */

.irx-home-footer__copy {
  font-size: 0.75rem;
  color: var(--irx-muted);
  opacity: 0.6;
  margin-top: 1rem;
  text-align: center;
  grid-column: 1 / -1;
}

.irx-home-section {
  padding: 5rem 0;
}

.irx-home-section--muted {
  border-top: 1px solid rgba(11, 16, 32, 0.06);
  border-bottom: 1px solid rgba(11, 16, 32, 0.06);
  background: rgba(255, 255, 255, 0.28);
}

.irx-home-section--cta {
  padding-top: 5.5rem;
  padding-bottom: 4.5rem;
}

.irx-home-heading {
  max-width: 700px;
  margin: 0 auto 2rem;
  text-align: center;
}

.irx-home-heading h2,
.irx-home-guarantee__intro h3,
.irx-home-cta h2 {
  margin: 0.9rem 0 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  text-wrap: balance;
}

.irx-home-heading p,
.irx-home-guarantee__intro p,
.irx-home-card p,
.irx-home-step p,
.irx-home-industry p,
.irx-home-cta > p {
  color: var(--irx-muted);
  font-size: 0.96rem;
  line-height: 1.75;
}

.irx-home-card-grid,
.irx-home-industry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.irx-home-card {
  border-radius: 22px;
  padding: 1.5rem;
}

.irx-home-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: rgba(27, 168, 116, 0.12);
  color: var(--irx-green-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.irx-home-card h3,
.irx-home-step h4,
.irx-home-industry__tag {
  margin: 1rem 0 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--irx-ink);
  text-transform: none;
}

.irx-home-card p,
.irx-home-step p,
.irx-home-industry p {
  margin: 0.8rem 0 0;
}

.irx-home-guarantee {
  margin-top: 1rem;
  padding-top: 2.2rem;
}

.irx-home-guarantee__intro {
  max-width: 620px;
  margin-bottom: 1.6rem;
}

.irx-home-guarantee__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.irx-home-step {
  border-radius: 22px;
  padding: 1.45rem;
}

.irx-home-step__eyebrow {
  letter-spacing: 0.14em;
}

.irx-home-step h4 {
  font-size: 1.2rem;
}

.irx-home-industry-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.irx-home-industry {
  border-radius: 22px;
  padding: 1.4rem 1.3rem;
}

.irx-home-industry__tag {
  margin: 0;
  display: inline-flex;
}

.irx-home-cta {
  max-width: 840px;
  margin: 0 auto;
  padding: 2.5rem;
  border-radius: 28px;
  text-align: center;
}

.irx-home-cta__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.8rem;
  text-align: left;
}

.irx-home-cta__meta div {
  padding: 1rem 1.05rem;
  border-radius: 16px;
  background: rgba(21, 95, 58, 0.05);
  border: 1px solid rgba(21, 95, 58, 0.08);
}

.irx-home-cta__meta strong {
  display: block;
  margin-top: 0.45rem;
  color: var(--irx-ink);
  font-size: 0.92rem;
  line-height: 1.55;
}

.irx-home-footer {
  padding: 0 0 2.5rem;
}

.irx-home-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(11, 16, 32, 0.08);
}

.irx-home-footer__brand {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.irx-home-footer__logo {
  width: 118px;
  height: auto;
  display: block;
}

.irx-home-footer__brand span {
  display: block;
  color: var(--irx-muted);
  font-size: 0.82rem;
}

.irx-home-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
}

.irx-home-footer__links a {
  color: var(--irx-muted);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 700;
}

@media (max-width: 980px) {
  .irx-home-proof__grid--stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .irx-home-stat:nth-child(2) {
    border-right: none;
  }

  .irx-home-stat:nth-child(3) {
    border-top: 1px solid rgba(11, 16, 32, 0.07);
  }

  .irx-home-stat:nth-child(4) {
    border-top: 1px solid rgba(11, 16, 32, 0.07);
  }

  .irx-home-proof__grid,
  .irx-home-card-grid,
  .irx-home-industry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .irx-home-guarantee__grid,
  .irx-home-cta__meta {
    grid-template-columns: 1fr;
  }

  .irx-home-usecases {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .irx-home-value-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }


  .irx-home-compare__label {
    width: 110px;
    font-size: 0.75rem;
  }

  .irx-home-metrics {
    grid-template-columns: repeat(2, 1fr);
    max-width: 480px;
  }

  .irx-home-metric:nth-child(2) {
    border-right: none;
  }

  .irx-home-metric:nth-child(3) {
    border-top: 1px solid rgba(11, 16, 32, 0.07);
  }

  .irx-home-metric:nth-child(4) {
    border-top: 1px solid rgba(11, 16, 32, 0.07);
  }

  .irx-home-dossier__grid {
    grid-template-columns: 1fr;
  }

  .irx-home-dossier__block:nth-child(odd) {
    border-right: none;
  }

  .irx-home-credentials {
    flex-wrap: wrap;
    gap: 2rem;
  }

  .irx-home-roi-grid,
  .irx-home-pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 760px) {
  .irx-nav--marketing .irx-nav__links {
    width: 100%;
    gap: 0.7rem;
  }

  .irx-nav--marketing .irx-nav__cta--soft {
    order: 2;
  }

  .irx-home-hero {
    padding: 4.8rem 0 2rem;
  }

  .irx-home-title {
    font-size: clamp(2.4rem, 12vw, 3.4rem);
  }

  .irx-home-proof {
    padding-bottom: 4rem;
  }

  .irx-home-proof__grid,
  .irx-home-card-grid,
  .irx-home-industry-grid {
    grid-template-columns: 1fr;
  }

  .irx-home-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .irx-home-security-grid {
    grid-template-columns: 1fr;
  }

  .irx-home-dossier__footer {
    flex-wrap: wrap;
    gap: 0.8rem;
  }

  .irx-home-section {
    padding: 4rem 0;
  }

  .irx-home-cta {
    padding: 1.5rem;
  }

  .irx-home-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .irx-home-footer__links {
    justify-content: flex-start;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   APP SURFACES – shared system for auth, dashboard, forms and public states
   ═══════════════════════════════════════════════════════════════════════════ */

.irx-nav,
.irx-app-screen {
  font-family: "DM Sans", "Segoe UI", sans-serif;
}

.irx-nav--app {
  background: rgba(244, 246, 249, 0.88);
  backdrop-filter: blur(14px);
}

.irx-nav--app .irx-brand__meta {
  color: var(--irx-green-deep);
}

.irx-nav--app .irx-nav__links {
  gap: 0.8rem;
}

.irx-nav--app .irx-nav__links a,
.irx-nav--app .irx-nav__links button {
  font-size: 0.82rem;
  font-weight: 700;
}

.irx-nav--app .irx-nav__cta {
  box-shadow: 0 16px 32px rgba(11, 16, 32, 0.07);
}

.irx-nav--app .irx-nav__user {
  padding: 0.6rem 0.9rem;
  border: 1px solid rgba(11, 16, 32, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
}

/* Navbar minimal para cliente accediendo vía token público.
   Mismo fondo que app-nav, solo muestra la marca y el selector de idioma. */
.irx-nav--inspection {
  background: rgba(244, 246, 249, 0.92);
  backdrop-filter: blur(14px);
}

.irx-nav--inspection .irx-nav__links {
  justify-content: flex-end;
}

.irx-app-screen {
  position: relative;
  min-height: calc(100dvh - var(--app-nav-height));
  padding: clamp(2.2rem, 5vw, 4.75rem) 0 4rem;
  color: var(--irx-ink);
  background:
    radial-gradient(circle at top left, rgba(18, 63, 115, 0.08), transparent 30%),
    linear-gradient(180deg, #eef3f8 0%, #f4f7fa 46%, #f3f5f8 100%);
}

.irx-app-screen--auth,
.irx-app-screen--public,
.irx-app-screen--status {
  display: flex;
  align-items: center;
}

.irx-app-shell--narrow {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}

.irx-app-shell--form {
  width: 100%;
  max-width: 980px;
}

.irx-app-dashboard {
  display: grid;
  gap: 1.25rem;
}

.irx-app-panel {
  background: linear-gradient(180deg, #ffffff 0%, #fafbfd 100%);
  border: 1px solid rgba(18, 63, 115, 0.12);
  border-radius: 22px;
  padding: clamp(1.35rem, 2.5vw, 2.3rem);
  box-shadow: 0 16px 36px rgba(11, 16, 32, 0.04);
  backdrop-filter: none;
}

.irx-app-panel--narrow {
  max-width: 620px;
  margin: 0 auto;
}

.irx-app-panel--hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.irx-app-panel--hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--irx-blue), var(--irx-green));
  opacity: 0.88;
  pointer-events: none;
}

.irx-app-brandline {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.irx-app-brandmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #0c1422, #2a5a8c);
  box-shadow: 0 16px 32px rgba(12, 20, 34, 0.14);
  color: #f7f5f0;
  font-family: var(--irx-heading), Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.irx-app-brandline strong,
.irx-app-brandline span {
  display: block;
}

.irx-app-brandline strong {
  color: var(--irx-ink);
  font-size: 0.95rem;
}

.irx-app-brandline span {
  color: var(--irx-muted);
  font-size: 0.8rem;
}

.irx-app-heading {
  max-width: 720px;
}

.irx-app-eyebrow {
  margin: 0;
  color: var(--irx-blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.irx-app-title {
  margin: 0.95rem 0 0;
  font-family: var(--irx-heading), Georgia, serif;
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.04;
  text-wrap: balance;
}

.irx-app-lead {
  margin: 1rem 0 0;
  color: var(--irx-muted);
  font-size: 0.98rem;
  line-height: 1.8;
}

.irx-app-form {
  display: grid;
  gap: 1rem;
}

.irx-app-form--stacked {
  gap: 1.2rem;
}

.irx-app-grid {
  display: grid;
  gap: 1rem;
}

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

.irx-app-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.irx-app-field {
  display: grid;
  gap: 0.45rem;
}

.irx-app-field--span-2 {
  grid-column: span 2;
}

.irx-app-field label {
  color: var(--irx-ink);
  font-size: 0.82rem;
  font-weight: 700;
}

.irx-app-input {
  width: 100%;
  padding: 0.92rem 1rem;
  border: 1px solid rgba(18, 63, 115, 0.12);
  border-radius: 14px;
  background: #ffffff;
  color: var(--irx-ink);
  font: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.irx-app-input:focus {
  outline: none;
  border-color: rgba(18, 63, 115, 0.28);
  box-shadow: 0 0 0 4px rgba(18, 63, 115, 0.08);
}

.irx-app-required {
  color: var(--irx-blue);
}

.irx-app-hint,
.irx-app-footnote {
  margin: 0;
  color: var(--irx-muted);
  font-size: 0.84rem;
  line-height: 1.7;
}

.irx-app-footnote a {
  color: var(--irx-blue);
  font-weight: 700;
  text-decoration: none;
}

.irx-app-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-top: 0.4rem;
}

.irx-app-actions--spread {
  justify-content: space-between;
}

.irx-app-button,
.irx-app-actions input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.9rem 1.25rem;
  border: 1px solid rgba(18, 63, 115, 0.14);
  border-radius: 14px;
  background: linear-gradient(135deg, #10284b, #17385f);
  color: #fff;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.irx-app-button:hover,
.irx-app-actions input[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(11, 16, 32, 0.08);
}

.irx-app-button--primary,
.irx-app-actions input[type="submit"].irx-app-button--primary {
  background: linear-gradient(135deg, #10284b, #17385f);
  color: #fff;
}

.irx-app-button--secondary {
  background: #f7f9fc;
  color: var(--irx-blue);
  border-color: rgba(18, 63, 115, 0.12);
}

.irx-app-button--block {
  width: 100%;
}

.irx-app-section__heading {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1.4rem;
}

.irx-app-section__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 14px;
  background: #eef4fb;
  color: var(--irx-blue);
  font-size: 0.78rem;
  font-weight: 800;
}

.irx-app-section__title {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.irx-app-section__lead {
  margin: 0.45rem 0 0;
  color: var(--irx-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.irx-app-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.irx-app-choice,
.irx-app-locale {
  position: relative;
  display: block;
}

.irx-app-choice__input,
.irx-app-locale__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.irx-app-choice__card,
.irx-app-locale__card {
  display: block;
  height: 100%;
  border: 1px solid rgba(18, 63, 115, 0.12);
  border-radius: 18px;
  background: #fbfcfe;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.irx-app-choice__card {
  padding: 1.35rem;
}

.irx-app-locale__card {
  padding: 0.92rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
}

.irx-app-choice__input:checked + .irx-app-choice__card,
.irx-app-locale__input:checked + .irx-app-locale__card {
  border-color: rgba(18, 63, 115, 0.24);
  background: #f3f8fd;
  box-shadow: 0 12px 24px rgba(11, 16, 32, 0.04);
  transform: translateY(-1px);
}

.irx-app-choice__eyebrow {
  display: inline-flex;
  margin-bottom: 0.8rem;
  color: var(--irx-blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.irx-app-choice__card strong {
  display: block;
  color: var(--irx-ink);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.irx-app-choice__card p {
  margin: 0.7rem 0 0;
  color: var(--irx-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.irx-app-choice__meta {
  display: block;
  margin-top: 1rem;
  color: var(--irx-blue);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.7;
}

.irx-app-proof-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.8rem;
}

.irx-app-stat {
  min-height: 100%;
  padding: 1.2rem;
  border: 1px solid rgba(18, 63, 115, 0.12);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: none;
  position: relative;
}

.irx-app-stat::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(90deg, rgba(18, 63, 115, 0.95), rgba(27, 168, 116, 0.65));
}

.irx-app-stat--wide {
  grid-column: span 2;
}

.irx-app-stat__label {
  display: inline-flex;
  color: var(--irx-blue);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.irx-app-stat strong {
  display: block;
  margin-top: 0.7rem;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.irx-app-stat p {
  margin: 0.55rem 0 0;
  color: var(--irx-muted);
  font-size: 0.85rem;
  line-height: 1.65;
}

.irx-app-proof-strip .pipeline-score-dist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.irx-app-proof-strip .pipeline-score-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
}

.irx-app-table-wrap {
  overflow-x: auto;
}

.irx-app-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 880px;
}

.irx-app-table th {
  padding: 0.8rem 0.8rem 0.9rem;
  color: var(--irx-blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: left;
  text-transform: uppercase;
  background: #f2f6fb;
  border-bottom: 1px solid rgba(18, 63, 115, 0.1);
}

.irx-app-table td {
  padding: 1rem 0.8rem;
  border-top: 1px solid rgba(18, 63, 115, 0.08);
  vertical-align: middle;
  font-size: 0.88rem;
}

.irx-app-table tbody tr:first-child td {
  border-top: 0;
}

.irx-app-table tbody tr:nth-child(even) td {
  background: rgba(242, 246, 251, 0.72);
}

.irx-app-table__id {
  width: 3.2rem;
  color: var(--irx-muted);
  font-weight: 700;
}

.irx-app-table__client,
.irx-app-table__email {
  display: block;
}

.irx-app-table__client {
  color: var(--irx-ink);
  font-weight: 700;
}

.irx-app-table__email,
.irx-app-table__muted,
.irx-app-table__progress-label {
  color: var(--irx-muted);
  font-size: 0.8rem;
}

.irx-app-table__progress {
  min-width: 7rem;
}

.irx-app-table__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

.irx-app-table__actions .button_to {
  margin: 0;
}

.irx-app-table__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 0.7rem;
  border: 1px solid rgba(18, 63, 115, 0.12);
  border-radius: 14px;
  background: #f7f9fc;
  color: var(--irx-blue);
  font: inherit;
  font-size: 0.77rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.irx-app-table__action--muted {
  color: var(--irx-muted);
}

.irx-app-table__action--danger,
.irx-app-table__action--delete {
  color: #991b1b;
}

.irx-app-dashboard .mode-badge,
.irx-app-dashboard .pipeline-badge,
.irx-app-dashboard .dashboard-badge {
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
}

.irx-app-dashboard .dashboard-progress-bar {
  height: 7px;
  border-radius: 999px;
  background: rgba(11, 16, 32, 0.08);
}

.irx-app-dashboard .dashboard-progress-bar__fill {
  border-radius: inherit;
  background: linear-gradient(90deg, var(--irx-green), var(--irx-blue));
}

.irx-app-empty {
  display: grid;
  gap: 0.8rem;
  justify-items: start;
}

.irx-app-empty h2 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.7rem;
  font-weight: 600;
}

.irx-app-empty p {
  margin: 0;
  max-width: 42rem;
  color: var(--irx-muted);
  line-height: 1.8;
}

.irx-app-status-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.4rem;
  height: 3.4rem;
  margin-bottom: 1rem;
  border-radius: 18px;
  font-size: 1.3rem;
  font-weight: 800;
  border: 1px solid rgba(18, 63, 115, 0.12);
}

.irx-app-status-mark--success {
  background: #eef6f2;
  color: var(--irx-green-deep);
}

.irx-app-status-mark--warning {
  background: #fff7e7;
  color: #9a6700;
}

.irx-app-notice {
  margin-top: 1.2rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(27, 168, 116, 0.16);
  background: #eff7f2;
  color: var(--irx-green-deep);
  font-size: 0.88rem;
  line-height: 1.7;
}

.irx-app-surface {
  margin-top: 1.4rem;
  padding: 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(18, 63, 115, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #fafbfd 100%);
}

.irx-app-surface__label {
  margin: 0 0 0.75rem;
  color: var(--irx-blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.irx-app-copy {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
}

.irx-app-copy__input {
  min-width: 0;
}

.irx-app-copy-block {
  margin-top: 1.35rem;
  color: var(--irx-muted);
  line-height: 1.8;
}

.irx-app-copy-block p {
  margin: 0;
}

.irx-app-copy-block p + p {
  margin-top: 0.9rem;
}

.irx-app-legal-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid rgba(18, 63, 115, 0.12);
  border-radius: 18px;
  overflow: hidden;
}

.irx-app-legal-table th,
.irx-app-legal-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(18, 63, 115, 0.08);
  text-align: left;
  vertical-align: top;
  font-size: 0.9rem;
  line-height: 1.7;
}

.irx-app-legal-table tr:last-child th,
.irx-app-legal-table tr:last-child td {
  border-bottom: 0;
}

.irx-app-legal-table th {
  width: 28%;
  background: #f2f6fb;
  color: var(--irx-blue);
  font-weight: 800;
}

.irx-app-legal-table td {
  color: var(--irx-muted);
}

@media (max-width: 980px) {
  .irx-app-proof-strip,
  .irx-app-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .irx-app-stat--wide {
    grid-column: span 2;
  }
}

@media (max-width: 760px) {
  .irx-app-screen {
    padding: 1.8rem 0 3rem;
  }

  .irx-app-title {
    font-size: clamp(1.9rem, 10vw, 2.8rem);
  }

  .irx-app-grid--2,
  .irx-app-grid--3,
  .irx-app-choice-grid,
  .irx-app-proof-strip {
    grid-template-columns: 1fr;
  }

  .irx-app-field--span-2,
  .irx-app-stat--wide {
    grid-column: auto;
  }

  .irx-app-actions,
  .irx-app-actions--spread {
    justify-content: flex-start;
  }

  .irx-app-button,
  .irx-app-actions input[type="submit"] {
    width: 100%;
  }

  .irx-app-copy {
    grid-template-columns: 1fr;
  }

  .irx-app-section__heading {
    grid-template-columns: 1fr;
  }

  .irx-app-legal-table,
  .irx-app-legal-table tbody,
  .irx-app-legal-table tr,
  .irx-app-legal-table th,
  .irx-app-legal-table td {
    display: block;
    width: 100%;
  }

  .irx-app-legal-table th {
    border-bottom: 0;
    padding-bottom: 0.25rem;
  }

  .irx-app-table {
    min-width: 760px;
  }
}

.irx-home-note__link {
  margin-left: 0.55rem;
  color: var(--irx-green-deep);
  font-weight: 800;
  text-decoration: none;
}

.irx-home-note__link:hover {
  text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════════════════════
   METHODOLOGY – public methodology page inspired by Klaimee structure
   ═══════════════════════════════════════════════════════════════════════════ */

.irx-methodology {
  position: relative;
  z-index: 0;
}

.irx-method-page {
  padding: 0 0 4rem;
  background:
    radial-gradient(circle at top left, rgba(18, 63, 115, 0.06), transparent 26%),
    linear-gradient(180deg, #eef3f8 0%, #f4f7fa 46%, #f3f5f8 100%);
}

.irx-method-page__inner {
  max-width: 900px;
}

.irx-method-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid rgba(18, 63, 115, 0.1);
}

.irx-method-nav a {
  color: var(--irx-blue);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.irx-method-nav a:hover {
  color: var(--irx-ink);
}

.irx-method-hero {
  padding: 5rem 0 3.75rem;
  border-bottom: 1px solid rgba(18, 63, 115, 0.1);
}

.irx-method-hero__overline {
  margin: 0 0 1rem;
  color: var(--irx-blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.irx-method-hero h1 {
  margin: 0;
  max-width: 780px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.05;
  text-wrap: balance;
}

.irx-method-hero p {
  max-width: 650px;
  margin: 1.15rem 0 0;
  color: var(--irx-muted);
  font-size: 1rem;
  line-height: 1.8;
}

.irx-method-section {
  padding: 3.8rem 0;
  border-bottom: 1px solid rgba(18, 63, 115, 0.1);
}

.irx-method-section:last-child {
  border-bottom: 0;
}

.irx-method-section h2 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.irx-method-section__sub {
  max-width: 660px;
  margin: 0.8rem 0 0;
  color: var(--irx-muted);
  font-size: 0.96rem;
  line-height: 1.75;
}

.irx-method-prose {
  max-width: 700px;
  margin-top: 1.35rem;
}

.irx-method-prose p {
  margin: 0 0 1rem;
  color: var(--irx-muted);
  font-size: 0.95rem;
  line-height: 1.85;
}

.irx-method-prose p:last-child {
  margin-bottom: 0;
}

.irx-method-dimension {
  margin-top: 1.35rem;
  padding: 1.6rem;
  border: 1px solid rgba(18, 63, 115, 0.12);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fafbfd 100%);
  box-shadow: 0 14px 32px rgba(11, 16, 32, 0.04);
}

.irx-method-dimension__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.irx-method-dimension__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 12px;
  background: #eef4fb;
  color: var(--irx-blue);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.irx-method-dimension__header h3,
.irx-method-note h3,
.irx-method-card h3 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.irx-method-dimension__body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.irx-method-dimension__col p,
.irx-method-note p,
.irx-method-card p,
.irx-method-score-copy,
.irx-method-data-note p {
  color: var(--irx-muted);
  font-size: 0.9rem;
  line-height: 1.75;
}

.irx-method-dimension__label {
  margin-bottom: 0.55rem;
  color: var(--irx-blue);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.irx-method-dimension__criteria {
  padding-top: 1rem;
  border-top: 1px solid rgba(18, 63, 115, 0.08);
}

.irx-method-dimension__criteria ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.irx-method-dimension__criteria li {
  position: relative;
  padding-left: 1rem;
  color: var(--irx-muted);
  font-size: 0.84rem;
  line-height: 1.65;
}

.irx-method-dimension__criteria li::before {
  content: "";
  position: absolute;
  top: 0.56rem;
  left: 0;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 999px;
  background: rgba(18, 63, 115, 0.72);
}

.irx-method-score-table {
  margin-top: 1.5rem;
  border: 1px solid rgba(18, 63, 115, 0.12);
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
}

.irx-method-score-table__head,
.irx-method-score-row {
  display: grid;
  grid-template-columns: 130px 1fr 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.2rem;
}

.irx-method-score-table__head {
  color: var(--irx-blue);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(18, 63, 115, 0.08);
  background: #f2f6fb;
}

.irx-method-score-row + .irx-method-score-row {
  border-top: 1px solid rgba(18, 63, 115, 0.08);
}

.irx-method-score-badge {
  display: inline-flex;
  justify-content: center;
  width: fit-content;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.irx-method-score-badge--low {
  background: #e8f4ec;
  color: #155f3a;
}

.irx-method-score-badge--medium {
  background: #fef9e7;
  color: #b7770d;
}

.irx-method-score-badge--high {
  background: #fdf0e6;
  color: #c0641f;
}

.irx-method-score-badge--critical {
  background: #fff3f3;
  color: #c0392b;
}

.irx-method-note {
  margin-top: 1.25rem;
  padding: 1.3rem;
  border-radius: 18px;
  border: 1px solid rgba(18, 63, 115, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #fafbfd 100%);
}

.irx-method-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.45rem;
}

.irx-method-card-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.irx-method-card {
  min-height: 100%;
  padding: 1.4rem;
  border: 1px solid rgba(18, 63, 115, 0.12);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fafbfd 100%);
  box-shadow: 0 14px 30px rgba(11, 16, 32, 0.04);
}

.irx-method-card p {
  margin: 0.8rem 0 0;
}

.irx-method-data-note {
  margin-top: 1.1rem;
}

.irx-method-data-note p {
  margin: 0;
  color: var(--irx-muted);
  font-size: 0.88rem;
  line-height: 1.75;
}

.irx-method-section--contact {
  text-align: center;
}

.irx-method-section--contact .irx-method-section__sub {
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 900px) {
  .irx-method-score-table__head,
  .irx-method-score-row {
    grid-template-columns: 120px 1fr;
  }

  .irx-method-score-table__head span:last-child,
  .irx-method-score-row span:last-child {
    grid-column: 2;
  }

  .irx-method-card-grid--three {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .irx-home-note__link {
    display: inline-block;
    margin-left: 0;
    margin-top: 0.45rem;
  }

  .irx-method-page {
    padding-bottom: 3rem;
  }

  .irx-method-page__inner {
    padding-left: 0;
    padding-right: 0;
  }

  .irx-method-hero {
    padding: 3.8rem 0 2.6rem;
  }

  .irx-method-section {
    padding: 3rem 0;
  }

  .irx-method-dimension__body,
  .irx-method-dimension__criteria ul,
  .irx-method-card-grid,
  .irx-method-score-table__head,
  .irx-method-score-row {
    grid-template-columns: 1fr;
  }

  .irx-method-score-table__head {
    display: none;
  }

  .irx-method-score-row {
    gap: 0.7rem;
  }

  .irx-method-nav {
    gap: 0.85rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESUMEN – flagship technical dossier
   ═══════════════════════════════════════════════════════════════════════════ */

.irx-resumen-screen {
  align-items: flex-start;
  background:
    radial-gradient(circle at top left, rgba(18, 63, 115, 0.08), transparent 28%),
    linear-gradient(180deg, #eef3f8 0%, #f4f7fa 46%, #f3f5f8 100%);
}

.irx-resumen-page {
  display: grid;
  gap: 1.25rem;
}

.irx-resumen-hero {
  display: grid;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
  border-color: rgba(18, 63, 115, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96));
  box-shadow: 0 18px 42px rgba(11, 16, 32, 0.045);
  backdrop-filter: none;
}

.irx-resumen-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--irx-blue), var(--irx-green));
  opacity: 0.9;
  pointer-events: none;
}

.irx-resumen-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: start;
}

.irx-resumen-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
}

.irx-resumen-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.15rem;
}

.irx-resumen-chip,
.irx-resumen-meta .mode-badge,
.irx-resumen-meta .pipeline-badge,
.irx-resumen-meta .dashboard-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
}

.irx-resumen-chip {
  border: 1px solid rgba(18, 63, 115, 0.12);
  border-radius: 14px;
  background: #f7f9fc;
  color: var(--irx-blue);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.irx-resumen-proof {
  margin-top: 0;
}

.irx-resumen-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(11, 16, 32, 0.08);
}

.irx-resumen-jump a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.8rem;
  border-radius: 14px;
  border: 1px solid rgba(18, 63, 115, 0.12);
  background: #f7f9fc;
  color: var(--irx-blue);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.irx-resumen-jump a:hover {
  color: var(--irx-ink);
  border-color: rgba(18, 63, 115, 0.2);
  background: #ffffff;
}

.irx-resumen-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.85fr);
  gap: 1.25rem;
  align-items: start;
}

.irx-resumen-main,
.irx-resumen-rail {
  display: grid;
  gap: 1.25rem;
}

.irx-resumen-sidepanel--sticky {
  position: static;
  top: auto;
}

.irx-resumen-panel__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.irx-resumen-panel__eyebrow {
  margin: 0;
  color: var(--irx-blue);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.irx-resumen-panel__title {
  margin: 0.35rem 0 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.irx-resumen-panel__lead {
  max-width: 50rem;
  margin: 0.55rem 0 0;
  color: var(--irx-muted);
  font-size: 0.92rem;
  line-height: 1.75;
}

.irx-resumen-panel__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
}

.irx-resumen-panel__actions .button_to,
.irx-resumen-review-actions .button_to {
  margin: 0;
}

.irx-resumen-panel__stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.48rem 0.82rem;
  border-radius: 14px;
  background: #f7f9fc;
  color: var(--irx-blue);
  border: 1px solid rgba(18, 63, 115, 0.12);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.irx-resumen-note {
  padding: 1rem 1.05rem;
  border: 1px solid rgba(18, 63, 115, 0.12);
  border-radius: 16px;
  background: #f7f9fc;
  color: var(--irx-muted);
  font-size: 0.9rem;
  line-height: 1.75;
}

.irx-resumen-note--warning {
  border-color: rgba(177, 119, 13, 0.18);
  background: rgba(255, 248, 225, 0.8);
  color: #8b6508;
}

.irx-resumen-note--success {
  border-color: rgba(27, 168, 116, 0.18);
  background: rgba(232, 244, 236, 0.82);
  color: var(--irx-green-deep);
}

.irx-resumen-report-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.irx-resumen-report-card {
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
  border-radius: 18px;
  border: 1px solid rgba(18, 63, 115, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
  box-shadow: 0 10px 28px rgba(11, 16, 32, 0.03);
}

.irx-resumen-report-card--full {
  grid-column: 1 / -1;
}

.irx-resumen-report-card__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid rgba(18, 63, 115, 0.1);
}

.irx-resumen-report-card__header h3 {
  margin: 0.32rem 0 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.irx-resumen-report-card__meta {
  max-width: 32rem;
  margin: 0.5rem 0 0;
  color: var(--irx-muted);
  font-size: 0.84rem;
  line-height: 1.75;
}

.irx-resumen-kpi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.65rem 1rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #10284b, #17385f);
  color: #fff;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.irx-resumen-table-wrap {
  overflow-x: auto;
}

.irx-resumen-table {
  width: 100%;
  min-width: 580px;
  border-collapse: collapse;
}

.irx-resumen-table th {
  padding: 0.8rem 0.8rem 0.9rem;
  color: var(--irx-blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: left;
  text-transform: uppercase;
  background: #f2f6fb;
  border-bottom: 1px solid rgba(18, 63, 115, 0.1);
}

.irx-resumen-table td {
  padding: 0.95rem 0.8rem;
  border-top: 1px solid rgba(18, 63, 115, 0.08);
  color: var(--irx-ink);
  font-size: 0.88rem;
  line-height: 1.65;
  vertical-align: top;
}

.irx-resumen-table tbody tr:first-child td {
  border-top: 0;
}

.irx-resumen-table tbody tr:nth-child(even) td {
  background: rgba(242, 246, 251, 0.75);
}

.irx-resumen-table__strong {
  color: var(--irx-ink);
  font-weight: 800;
}

.irx-resumen-table__num {
  color: var(--irx-ink);
  font-weight: 800;
  white-space: nowrap;
}

.irx-resumen-table__muted {
  color: var(--irx-muted);
}

.irx-resumen-table-wrap--capture {
  border: 1px solid rgba(18, 63, 115, 0.1);
  border-radius: 16px;
  background: #fff;
}

.irx-resumen-table--capture {
  min-width: 720px;
}

.irx-resumen-table--capture th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #eaf0f8;
}

.irx-resumen-table--capture td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #f7f9fc;
}

.irx-resumen-table--capture tbody tr:nth-child(even) td:first-child {
  background: #edf3fb;
}

.irx-resumen-recommendations {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: recommendation;
}

.irx-resumen-recommendation {
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid rgba(18, 63, 115, 0.12);
  background: #fbfcfe;
}

.irx-resumen-recommendation__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.irx-resumen-recommendation__priority,
.irx-resumen-recommendation__norm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

.irx-resumen-recommendation__priority {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.irx-resumen-recommendation__priority--priority {
  background: rgba(220, 38, 38, 0.12);
  color: #991b1b;
}

.irx-resumen-recommendation__priority--important {
  background: rgba(217, 119, 6, 0.12);
  color: #b45309;
}

.irx-resumen-recommendation__priority--advisory {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}

.irx-resumen-recommendation__norm {
  background: rgba(244, 246, 249, 0.92);
  color: var(--irx-muted);
}

.irx-resumen-recommendation p {
  margin: 0;
  color: var(--irx-ink);
  line-height: 1.75;
}

.irx-resumen-narratives {
  display: grid;
  gap: 1rem;
}

.irx-resumen-narrative {
  padding: 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(18, 63, 115, 0.12);
  background: #fbfcfe;
}

.irx-resumen-narrative h3 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.irx-resumen-narrative__item + .irx-resumen-narrative__item {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(11, 16, 32, 0.08);
}

.irx-resumen-narrative__item h4 {
  margin: 0;
  color: var(--irx-ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.irx-resumen-narrative__item p {
  margin: 0.45rem 0 0;
  color: var(--irx-muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

.irx-resumen-panel .evidence-list--resumen {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.irx-resumen-panel .evidence-item {
  height: 100%;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(18, 63, 115, 0.12);
  background: #fbfcfe;
}

.irx-resumen-panel .evidence-item--provided {
  border-color: rgba(27, 168, 116, 0.18);
  background: rgba(235, 249, 242, 0.84);
}

.irx-resumen-panel .evidence-item__header {
  gap: 0.8rem;
}

.irx-resumen-panel .evidence-item__label {
  color: var(--irx-ink);
  font-size: 0.95rem;
  font-weight: 800;
}

.irx-resumen-panel .evidence-item__priority {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.34rem 0.64rem;
  border-radius: 999px;
  background: rgba(244, 246, 249, 0.9);
  font-size: 0.7rem;
  font-weight: 800;
}

.irx-resumen-panel .evidence-item__priority--alta {
  color: #b45309;
}

.irx-resumen-panel .evidence-item__priority--media {
  color: var(--irx-muted);
}

.irx-resumen-panel .evidence-item__desc {
  color: var(--irx-muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.irx-resumen-panel .evidence-item__photo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: auto;
}

.irx-resumen-panel .evidence-item__done {
  margin: 0;
  color: var(--irx-green-deep);
  font-size: 0.76rem;
  font-weight: 800;
}

.irx-resumen-panel .evidence-item__upload-btn,
.irx-resumen-panel .evidence-item__download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(11, 16, 32, 0.08);
  background: rgba(255, 255, 255, 0.92);
  color: var(--irx-ink);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.irx-resumen-assets-grid {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.irx-resumen-asset {
  display: flex;
  align-items: start;
  gap: 0.85rem;
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid rgba(18, 63, 115, 0.12);
  background: #fbfcfe;
}

.irx-resumen-asset--error {
  border-color: rgba(220, 38, 38, 0.18);
  background: rgba(254, 242, 242, 0.88);
}

.irx-resumen-asset__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.45rem;
  height: 2.45rem;
  padding: 0 0.7rem;
  border-radius: 16px;
  background: rgba(27, 168, 116, 0.14);
  color: var(--irx-green-deep);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.irx-resumen-asset--error .irx-resumen-asset__icon {
  background: rgba(220, 38, 38, 0.12);
  color: #991b1b;
}

.irx-resumen-asset__info {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 0.18rem;
}

.irx-resumen-asset__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.irx-resumen-asset__name {
  color: var(--irx-ink);
  font-size: 0.9rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.irx-resumen-asset__meta {
  color: var(--irx-muted);
  font-size: 0.8rem;
  line-height: 1.7;
}

.irx-resumen-asset__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(244, 246, 249, 0.92);
  color: var(--irx-muted);
  font-size: 0.7rem;
  font-weight: 800;
}

.irx-resumen-asset__status--done {
  background: rgba(235, 249, 242, 0.92);
  color: var(--irx-green-deep);
}

.irx-resumen-asset__status--error {
  background: rgba(254, 242, 242, 0.92);
  color: #991b1b;
}

.irx-resumen-asset__status--processing,
.irx-resumen-asset__status--pending {
  background: rgba(255, 248, 225, 0.92);
  color: #9a6700;
}

.irx-resumen-asset__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(11, 16, 32, 0.08);
  background: rgba(255, 255, 255, 0.92);
  color: var(--irx-ink);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.irx-resumen-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.irx-resumen-tag,
.irx-resumen-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 0.72rem;
  border-radius: 14px;
  background: #f7f9fc;
  color: var(--irx-blue);
  border: 1px solid rgba(18, 63, 115, 0.12);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.irx-resumen-note-list {
  display: grid;
  gap: 0.85rem;
  margin: 1rem 0 0;
}

.irx-resumen-note-card {
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid rgba(18, 63, 115, 0.12);
  background: #fbfcfe;
}

.irx-resumen-note-card dt {
  margin: 0;
  color: var(--irx-ink);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.55;
}

.irx-resumen-note-card dd {
  margin: 0.5rem 0 0;
  color: var(--irx-muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

.irx-badge--danger  { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.irx-badge--warning { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.irx-badge--info    { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.irx-badge--muted   { background: #f8fafc; color: #64748b; border-color: #e2e8f0; }

.irx-resumen-riesgos-list {
  display: grid;
  gap: 1rem;
  margin: 1rem 0 0;
}

.irx-resumen-riesgo-card {
  padding: 1.1rem 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(18, 63, 115, 0.12);
  background: #fbfcfe;
  display: grid;
  gap: 0.55rem;
}

.irx-resumen-riesgo-card__header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.irx-resumen-riesgo-card__title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--irx-ink);
  letter-spacing: 0.03em;
}

.irx-resumen-riesgo-card__justificacion {
  margin: 0;
  font-size: 0.9rem;
  color: var(--irx-muted);
  line-height: 1.7;
}

.irx-resumen-riesgo-card__meta {
  margin: 0;
  font-size: 0.82rem;
  color: var(--irx-muted);
}

.irx-resumen-riesgo-card__controles {
  margin: 0.25rem 0 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.25rem;
}

.irx-resumen-riesgo-card__controles li {
  font-size: 0.82rem;
  color: var(--irx-muted);
  line-height: 1.55;
}

.irx-resumen-capture {
  display: grid;
  gap: 1.1rem;
}

.irx-resumen-capture__header {
  max-width: 48rem;
}

.irx-resumen-capture__header h2 {
  margin: 0.35rem 0 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.irx-resumen-capture__header p:last-child {
  margin: 0.6rem 0 0;
  color: var(--irx-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

.irx-resumen-section-card {
  display: grid;
  gap: 1.15rem;
  border-color: rgba(18, 63, 115, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #fafbfd 100%);
  box-shadow: 0 14px 30px rgba(11, 16, 32, 0.03);
  backdrop-filter: none;
}

.irx-resumen-section-card__header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(18, 63, 115, 0.1);
}

.irx-resumen-section-card__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 999px;
  background: #eef4fb;
  color: var(--irx-blue);
  font-size: 0.8rem;
  font-weight: 800;
}

.irx-resumen-section-card__header h3 {
  margin: 0.35rem 0 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.irx-resumen-section-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.irx-resumen-section-card__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.68rem;
  border-radius: 999px;
  border: 1px solid rgba(18, 63, 115, 0.1);
  background: #f8fbfe;
  color: var(--irx-muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.irx-resumen-section-card__count,
.irx-resumen-array-block__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 0.72rem;
  border-radius: 14px;
  background: #f3f6fa;
  color: var(--irx-blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.irx-resumen-capture-group {
  display: grid;
  gap: 0.95rem;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(18, 63, 115, 0.1);
  background: linear-gradient(180deg, #f8fbfe 0%, #fdfefe 100%);
}

.irx-resumen-capture-group__header {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(18, 63, 115, 0.08);
}

.irx-resumen-capture-group__eyebrow {
  margin: 0;
  color: var(--irx-blue);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.irx-resumen-capture-group__header h4 {
  margin: 0.35rem 0 0;
  color: var(--irx-ink);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.irx-resumen-capture-group__meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 0.72rem;
  border-radius: 14px;
  background: #eef4fb;
  color: var(--irx-blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.irx-resumen-field-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.irx-resumen-field-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 0.8rem 1rem;
  align-items: start;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(18, 63, 115, 0.12);
  background: #ffffff;
}

.irx-resumen-field-row--full {
  grid-template-columns: 1fr;
}

.irx-resumen-field-row dt,
.irx-resumen-field-row dd {
  margin: 0;
}

.irx-resumen-field-row__label {
  display: block;
  margin: 0;
  color: var(--irx-blue);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.irx-resumen-field-row dd {
  min-width: 0;
  padding: 0.1rem 0 0;
  color: var(--irx-ink);
  font-size: 0.94rem;
  line-height: 1.75;
}

.irx-resumen-field-row dd .irx-resumen-value {
  display: block;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.irx-resumen-field-row dd .irx-resumen-value--boolean {
  display: inline-flex;
}

.irx-resumen-value--empty {
  color: var(--irx-muted);
  font-style: italic;
}

.irx-resumen-value--boolean {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
}

.irx-resumen-value--yes {
  background: rgba(232, 244, 236, 0.92);
  color: var(--irx-green-deep);
}

.irx-resumen-value--no {
  background: rgba(254, 242, 242, 0.92);
  color: #991b1b;
}

.irx-resumen-array-stack {
  display: grid;
  gap: 0.9rem;
}

.irx-resumen-array-block {
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(18, 63, 115, 0.12);
  background: #ffffff;
}

.irx-resumen-array-block__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.irx-resumen-array-block__heading {
  display: grid;
  gap: 0.35rem;
}

.irx-resumen-array-block__header h4 {
  margin: 0;
  color: var(--irx-ink);
  font-size: 1rem;
  font-weight: 800;
}

.irx-resumen-array-block__heading p {
  margin: 0;
  color: var(--irx-muted);
  font-size: 0.84rem;
  line-height: 1.7;
}

.irx-resumen-array-block__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.irx-resumen-sidepanel {
  display: grid;
  gap: 0.95rem;
  border-color: rgba(18, 63, 115, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #fafbfd 100%);
  box-shadow: 0 12px 28px rgba(11, 16, 32, 0.03);
  backdrop-filter: none;
}

.irx-resumen-sidepanel__title {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.irx-resumen-sidepanel__summary {
  margin: 0;
  color: var(--irx-muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

.irx-resumen-sidepanel__block {
  padding-top: 0.95rem;
  border-top: 1px solid rgba(11, 16, 32, 0.08);
}

.irx-resumen-sidepanel__block p {
  margin: 0.45rem 0 0;
  color: var(--irx-muted);
  line-height: 1.75;
}

.irx-resumen-sidepanel__label {
  color: var(--irx-blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.irx-resumen-fact-list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
}

.irx-resumen-fact-list div {
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(11, 16, 32, 0.08);
}

.irx-resumen-fact-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.irx-resumen-fact-list dt {
  margin: 0;
  color: var(--irx-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.irx-resumen-fact-list dd {
  margin: 0.35rem 0 0;
  color: var(--irx-ink);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.65;
}

.irx-resumen-review-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.48rem 0.82rem;
  border-radius: 14px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.irx-resumen-review-badge--en_revision {
  background: rgba(255, 248, 225, 0.92);
  color: #9a6700;
}

.irx-resumen-review-badge--aprobada,
.irx-resumen-review-badge--entregada {
  background: rgba(232, 244, 236, 0.92);
  color: var(--irx-green-deep);
}

.irx-resumen-review-badge--completada,
.irx-resumen-review-badge--en_progreso,
.irx-resumen-review-badge--accedido,
.irx-resumen-review-badge--enviado,
.irx-resumen-review-badge--sin_enviar {
  background: rgba(244, 246, 249, 0.92);
  color: var(--irx-muted);
}

.irx-resumen-review-form {
  display: grid;
  gap: 0.85rem;
}

.irx-resumen-textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.irx-resumen-review-actions {
  display: grid;
  gap: 0.75rem;
}

.irx-resumen-flag-list,
.irx-resumen-mini-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.irx-resumen-flag {
  display: grid;
  gap: 0.35rem;
  padding: 0.95rem;
  border-radius: 16px;
  border: 1px solid rgba(18, 63, 115, 0.12);
  background: #fbfcfe;
}

.irx-resumen-flag__level {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.irx-resumen-flag strong {
  color: var(--irx-ink);
  font-size: 0.88rem;
}

.irx-resumen-flag p {
  margin: 0;
  color: var(--irx-muted);
  font-size: 0.85rem;
  line-height: 1.7;
}

.irx-resumen-flag--error {
  border-color: rgba(220, 38, 38, 0.16);
  background: rgba(254, 242, 242, 0.86);
}

.irx-resumen-flag--error .irx-resumen-flag__level {
  background: rgba(220, 38, 38, 0.12);
  color: #991b1b;
}

.irx-resumen-flag--warning {
  border-color: rgba(217, 119, 6, 0.16);
  background: rgba(255, 248, 225, 0.86);
}

.irx-resumen-flag--warning .irx-resumen-flag__level {
  background: rgba(217, 119, 6, 0.12);
  color: #b45309;
}

.irx-resumen-flag--info .irx-resumen-flag__level {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}

.irx-resumen-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.irx-resumen-mini-list li {
  display: grid;
  gap: 0.3rem;
  padding: 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(18, 63, 115, 0.12);
  background: #fbfcfe;
}

.irx-resumen-proof .irx-app-stat {
  border-color: rgba(18, 63, 115, 0.12);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: none;
  position: relative;
}

.irx-resumen-proof .irx-app-stat::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(90deg, rgba(18, 63, 115, 0.95), rgba(27, 168, 116, 0.65));
}

.irx-resumen-proof .irx-app-stat__label {
  color: var(--irx-blue);
}

.irx-resumen-proof .irx-app-stat strong {
  color: var(--irx-ink);
}

.irx-resumen-mini-list strong {
  color: var(--irx-ink);
  font-size: 0.86rem;
}

.irx-resumen-mini-list span {
  color: var(--irx-muted);
  font-size: 0.84rem;
  line-height: 1.7;
}

.irx-resumen-empty h2 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 600;
}

.irx-resumen-empty p {
  margin: 0.6rem 0 0;
  color: var(--irx-muted);
  line-height: 1.8;
}

@media (max-width: 1100px) {
  .irx-resumen-layout,
  .irx-resumen-report-grid {
    grid-template-columns: 1fr;
  }

  .irx-resumen-sidepanel--sticky {
    position: static;
  }
}

@media (max-width: 760px) {
  .irx-resumen-hero__grid,
  .irx-resumen-section-card__header,
  .irx-resumen-panel__header {
    grid-template-columns: 1fr;
  }

  .irx-resumen-hero__actions,
  .irx-resumen-panel__actions {
    justify-content: flex-start;
  }

  .irx-resumen-panel .evidence-list--resumen,
  .irx-resumen-field-row {
    grid-template-columns: 1fr;
  }

  .irx-resumen-hero__actions .irx-app-button,
  .irx-resumen-panel__actions .irx-app-button,
  .irx-resumen-panel__actions .button_to .irx-app-button,
  .irx-resumen-panel__actions .button_to,
  .irx-resumen-review-actions .irx-app-button,
  .irx-resumen-review-actions .button_to .irx-app-button,
  .irx-resumen-review-actions .button_to {
    width: 100%;
  }

  .irx-resumen-table {
    min-width: 640px;
  }

  .irx-resumen-capture-group__header,
  .irx-resumen-array-block__header {
    flex-direction: column;
  }

  .irx-resumen-array-block__meta {
    justify-content: flex-start;
  }

  .irx-resumen-table--capture {
    min-width: 0;
  }

  .irx-resumen-table--capture thead {
    display: none;
  }

  .irx-resumen-table--capture,
  .irx-resumen-table--capture tbody,
  .irx-resumen-table--capture tr,
  .irx-resumen-table--capture td {
    display: block;
    width: 100%;
  }

  .irx-resumen-table--capture tbody {
    display: grid;
    gap: 0.75rem;
    padding: 0.75rem;
  }

  .irx-resumen-table--capture tbody tr {
    overflow: hidden;
    border: 1px solid rgba(18, 63, 115, 0.1);
    border-radius: 16px;
    background: #ffffff;
  }

  .irx-resumen-table--capture tbody tr:nth-child(even) td {
    background: transparent;
  }

  .irx-resumen-table--capture td,
  .irx-resumen-table--capture td:first-child,
  .irx-resumen-table--capture tbody tr:nth-child(even) td:first-child {
    position: static;
    background: transparent;
  }

  .irx-resumen-table--capture td {
    display: grid;
    grid-template-columns: minmax(112px, 0.72fr) minmax(0, 1fr);
    gap: 0.8rem;
    padding: 0.8rem 0.9rem;
    border-top: 1px solid rgba(18, 63, 115, 0.08);
  }

  .irx-resumen-table--capture td:first-child {
    border-top: 0;
    background: #f2f6fb;
  }

  .irx-resumen-table--capture td::before {
    content: attr(data-label);
    color: var(--irx-blue);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
}

@media print {
  .irx-resumen-screen {
    padding: 0;
    background: #fff;
  }

  .irx-resumen-layout {
    grid-template-columns: 1fr;
  }

  .irx-resumen-hero__actions,
  .irx-resumen-jump,
  .irx-resumen-panel__actions,
  .irx-resumen-review-actions,
  .irx-resumen-panel .evidence-item__upload-btn {
    display: none !important;
  }

  .irx-app-panel,
  .irx-resumen-section-card,
  .irx-resumen-report-card,
  .irx-resumen-array-block {
    box-shadow: none;
    backdrop-filter: none;
    background: #fff;
    break-inside: avoid;
  }

  .irx-resumen-sidepanel--sticky {
    position: static;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   APP PALETTE + TYPOGRAPHY TUNING
   Acento neutro tipo piedra + tipografía más contenida, sin tocar la home.
   ═══════════════════════════════════════════════════════════════════════════ */

.irx-nav--app {
  background:
    linear-gradient(180deg, rgba(248, 246, 242, 0.94), rgba(243, 242, 239, 0.9));
  border-bottom: 1px solid var(--irx-stone-line);
}

.irx-nav--app .irx-brand__meta {
  color: var(--irx-stone-deep);
}

.irx-nav--app .irx-nav__cta {
  border-color: rgba(100, 92, 80, 0.2);
  background: linear-gradient(135deg, #10284b, #4c5563);
}

.irx-nav--app .irx-nav__cta--ghost {
  background: linear-gradient(180deg, #faf7f2 0%, #f2ece4 100%);
  color: var(--irx-stone-deep) !important;
  border-color: var(--irx-stone-line);
}

.irx-nav--app .irx-nav__user {
  border-color: var(--irx-stone-line);
  background: rgba(249, 247, 243, 0.92);
  color: var(--irx-stone-deep);
}

.irx-app-screen,
.irx-resumen-screen {
  background:
    radial-gradient(circle at top left, rgba(138, 129, 115, 0.12), transparent 26%),
    radial-gradient(circle at top right, rgba(18, 63, 115, 0.05), transparent 28%),
    linear-gradient(180deg, #f3f1ed 0%, #f3f4f2 42%, #f3f5f8 100%);
}

.irx-app-screen {
  padding: clamp(1.8rem, 4vw, 3.6rem) 0 3.2rem;
}

.irx-app-panel,
.irx-resumen-panel,
.irx-resumen-sidepanel,
.irx-resumen-section-card {
  border-color: rgba(100, 92, 80, 0.12);
  box-shadow: 0 14px 30px rgba(39, 37, 32, 0.04);
}

.irx-app-panel {
  padding: clamp(1.15rem, 2vw, 1.9rem);
}

.irx-app-panel--hero::before,
.irx-resumen-hero::before,
.irx-resumen-proof .irx-app-stat::before {
  background: linear-gradient(90deg, var(--irx-stone), var(--irx-blue));
}

.irx-app-brandline {
  gap: 0.8rem;
  margin-bottom: 1.1rem;
}

.irx-app-brandmark {
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(138, 129, 115, 0.16), rgba(138, 129, 115, 0.28));
  color: var(--irx-stone-deep);
}

.irx-app-eyebrow,
.irx-app-required,
.irx-app-footnote a,
.irx-app-section__num,
.irx-app-choice__eyebrow,
.irx-app-choice__meta,
.irx-app-stat__label,
.irx-app-surface__label,
.irx-app-table th,
.irx-app-legal-table th,
.irx-resumen-panel__eyebrow,
.irx-resumen-jump a,
.irx-resumen-chip,
.irx-resumen-panel__stamp,
.irx-resumen-section-card__index,
.irx-resumen-section-card__pill,
.irx-resumen-section-card__count,
.irx-resumen-capture-group__eyebrow,
.irx-resumen-capture-group__meta,
.irx-resumen-field-row__label,
.irx-resumen-array-block__count,
.irx-resumen-table th {
  color: var(--irx-stone-deep);
}

.irx-app-section__num,
.irx-resumen-section-card__index {
  background: linear-gradient(180deg, #f6f2eb 0%, #e8e0d4 100%);
}

.irx-resumen-section-card__pill,
.irx-resumen-section-card__count,
.irx-resumen-capture-group__meta,
.irx-resumen-array-block__count,
.irx-resumen-chip,
.irx-resumen-jump a,
.irx-resumen-panel__stamp {
  border-color: var(--irx-stone-line);
  background: linear-gradient(180deg, #faf7f2 0%, #f1ebe3 100%);
}

.irx-app-title {
  margin-top: 0.72rem;
  font-size: clamp(1.8rem, 3.6vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.irx-app-lead {
  max-width: 44rem;
  margin-top: 0.8rem;
  font-size: 0.92rem;
  line-height: 1.72;
}

.irx-app-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
}

.irx-app-input:focus {
  border-color: rgba(100, 92, 80, 0.32);
  box-shadow: 0 0 0 4px var(--irx-stone-glow);
}

.irx-app-button,
.irx-app-actions input[type="submit"] {
  padding: 0.82rem 1.15rem;
  font-size: 0.84rem;
}

.irx-app-button--secondary {
  background: linear-gradient(180deg, #faf7f2 0%, #f1ebe3 100%);
  color: var(--irx-stone-deep);
  border-color: var(--irx-stone-line);
}

.irx-app-section__heading {
  gap: 0.85rem;
  margin-bottom: 1.1rem;
}

.irx-app-section__title {
  font-size: 1.28rem;
  letter-spacing: -0.025em;
}

.irx-app-section__lead {
  margin-top: 0.38rem;
  font-size: 0.86rem;
  line-height: 1.65;
}

.irx-app-choice__card {
  padding: 1.15rem;
}

.irx-app-choice__input:checked + .irx-app-choice__card,
.irx-app-locale__input:checked + .irx-app-locale__card {
  border-color: var(--irx-stone-line);
  background: linear-gradient(180deg, #fbf8f4 0%, #f2ece4 100%);
}

.irx-app-choice__card strong {
  font-size: 1.08rem;
}

.irx-app-proof-strip {
  gap: 0.85rem;
  margin-top: 1.35rem;
}

.irx-app-stat {
  padding: 1rem;
  border-color: rgba(100, 92, 80, 0.12);
}

.irx-app-stat strong {
  margin-top: 0.55rem;
  font-size: 1.16rem;
}

.irx-app-stat p {
  margin-top: 0.45rem;
  font-size: 0.8rem;
  line-height: 1.58;
}

.irx-app-table th,
.irx-app-legal-table th {
  background: #f3eee7;
}

.irx-app-table td,
.irx-app-legal-table td {
  font-size: 0.84rem;
}

.irx-app-table__action {
  border-color: var(--irx-stone-line);
  background: linear-gradient(180deg, #faf7f2 0%, #f1ebe3 100%);
  color: var(--irx-stone-deep);
}

.irx-app-table__action--muted {
  color: var(--irx-muted);
}

.irx-app-dashboard .dashboard-progress-bar__fill {
  background: linear-gradient(90deg, var(--irx-stone), var(--irx-blue));
}

.irx-app-empty h2 {
  font-size: 1.48rem;
}

.irx-app-empty p,
.irx-app-copy-block {
  font-size: 0.9rem;
  line-height: 1.72;
}

.irx-resumen-hero {
  gap: 1.15rem;
}

.irx-resumen-hero__grid,
.irx-resumen-layout,
.irx-resumen-main,
.irx-resumen-rail {
  gap: 1rem;
}

.irx-resumen-panel__header {
  gap: 0.85rem;
  margin-bottom: 0.95rem;
}

.irx-resumen-panel__title {
  margin-top: 0.28rem;
  font-size: 1.48rem;
  line-height: 1.08;
}

.irx-resumen-panel__lead,
.irx-resumen-sidepanel__summary,
.irx-resumen-fact-list dd,
.irx-resumen-note,
.irx-resumen-narrative__item p {
  font-size: 0.88rem;
  line-height: 1.72;
}

.irx-resumen-kpi {
  min-height: 2.7rem;
  padding: 0.55rem 0.9rem;
  background: linear-gradient(135deg, #645c50, #10284b);
  font-size: 1rem;
}

.irx-resumen-table th {
  background: #f3eee7;
}

.irx-resumen-report-card {
  gap: 0.85rem;
  padding: 1rem;
}

.irx-resumen-report-card__header {
  gap: 0.85rem;
  padding-bottom: 0.78rem;
}

.irx-resumen-report-card__header h3 {
  margin-top: 0.24rem;
  font-size: 1.14rem;
}

.irx-resumen-report-card__meta {
  margin-top: 0.38rem;
  font-size: 0.8rem;
}

.irx-resumen-narrative {
  padding: 1rem;
}

.irx-resumen-narrative h3,
.irx-resumen-sidepanel__title {
  font-size: 1.16rem;
}

.irx-resumen-capture__header h2 {
  margin-top: 0.24rem;
  font-size: 1.72rem;
}

.irx-resumen-capture__header p:last-child {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.72;
}

.irx-resumen-section-card {
  gap: 1rem;
}

.irx-resumen-section-card__header {
  gap: 0.85rem;
  padding-bottom: 0.8rem;
}

.irx-resumen-section-card__header h3 {
  margin-top: 0.24rem;
  font-size: 1.22rem;
}

.irx-resumen-section-card__meta {
  margin-top: 0.55rem;
}

.irx-resumen-capture-group,
.irx-resumen-array-block {
  padding: 0.9rem;
}

.irx-resumen-capture-group__header h4,
.irx-resumen-array-block__header h4 {
  margin-top: 0.24rem;
  font-size: 0.98rem;
}

.irx-resumen-field-row {
  gap: 0.72rem 0.9rem;
  padding: 0.82rem 0.9rem;
}

.irx-resumen-field-row dd {
  font-size: 0.9rem;
  line-height: 1.7;
}

.irx-resumen-table td {
  font-size: 0.84rem;
  line-height: 1.58;
}

.irx-resumen-review-badge,
.irx-resumen-flag__level,
.irx-resumen-pill {
  border-color: var(--irx-stone-line);
}

@media (max-width: 760px) {
  .irx-app-screen {
    padding: 1.5rem 0 2.6rem;
  }

  .irx-app-title {
    font-size: clamp(1.62rem, 8vw, 2.28rem);
  }

  .irx-resumen-panel__title,
  .irx-resumen-capture__header h2 {
    font-size: 1.42rem;
  }

  .irx-resumen-section-card__header h3,
  .irx-resumen-sidepanel__title,
  .irx-resumen-narrative h3 {
    font-size: 1.08rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESUMEN – engineering report polish
   ═══════════════════════════════════════════════════════════════════════════ */

.irx-resumen-screen {
  background:
    linear-gradient(180deg, #eef2f6 0%, #f4f6f8 46%, #f6f7f8 100%);
}

.irx-resumen-page {
  gap: 0.95rem;
}

.irx-resumen-hero,
.irx-resumen-panel,
.irx-resumen-sidepanel,
.irx-resumen-section-card,
.irx-resumen-report-card,
.irx-resumen-capture-group,
.irx-resumen-array-block,
.irx-resumen-proof .irx-app-stat,
.irx-resumen-field-row,
.irx-resumen-note-card,
.irx-resumen-flag,
.irx-resumen-mini-list li {
  border-radius: 14px;
  border-color: rgba(16, 40, 75, 0.14);
  box-shadow: 0 8px 20px rgba(11, 16, 32, 0.03);
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
}

.irx-resumen-hero::before,
.irx-resumen-proof .irx-app-stat::before {
  height: 3px;
  background: linear-gradient(90deg, rgba(16, 40, 75, 0.92), rgba(100, 92, 80, 0.7));
}

.irx-resumen-panel__eyebrow,
.irx-resumen-chip,
.irx-resumen-jump a,
.irx-resumen-panel__stamp,
.irx-resumen-section-card__index,
.irx-resumen-section-card__pill,
.irx-resumen-section-card__count,
.irx-resumen-capture-group__eyebrow,
.irx-resumen-capture-group__meta,
.irx-resumen-field-row__label,
.irx-resumen-array-block__count,
.irx-resumen-table th,
.irx-resumen-fact-list dt {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  letter-spacing: 0.12em;
}

.irx-resumen-panel__title,
.irx-resumen-report-card__header h3,
.irx-resumen-sidepanel__title,
.irx-resumen-capture__header h2,
.irx-resumen-section-card__header h3,
.irx-resumen-capture-group__header h4,
.irx-resumen-array-block__header h4,
.irx-resumen-narrative h3 {
  letter-spacing: -0.025em;
}

.irx-resumen-panel__title {
  font-size: 1.4rem;
}

.irx-resumen-panel__lead,
.irx-resumen-sidepanel__summary,
.irx-resumen-note,
.irx-resumen-fact-list dd,
.irx-resumen-narrative__item p,
.irx-resumen-note-card dd,
.irx-resumen-flag p,
.irx-resumen-mini-list span {
  max-width: 46rem;
  color: #5a6474;
  font-size: 0.85rem;
  line-height: 1.7;
}

.irx-resumen-kpi {
  min-height: 2.55rem;
  padding: 0.52rem 0.84rem;
  border: 1px solid rgba(16, 40, 75, 0.14);
  border-radius: 12px;
  background: linear-gradient(180deg, #f4f7fa 0%, #eef2f6 100%);
  color: #10284b;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.irx-resumen-proof .irx-app-stat {
  border-radius: 12px;
}

.irx-resumen-proof .irx-app-stat strong,
.irx-resumen-table__num,
.irx-resumen-chip {
  font-variant-numeric: tabular-nums;
}

.irx-resumen-proof .irx-app-stat strong {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.irx-resumen-jump {
  gap: 0.55rem;
  padding-top: 1rem;
}

.irx-resumen-jump a,
.irx-resumen-chip,
.irx-resumen-panel__stamp,
.irx-resumen-section-card__pill,
.irx-resumen-section-card__count,
.irx-resumen-capture-group__meta,
.irx-resumen-array-block__count,
.irx-resumen-pill,
.irx-resumen-tag {
  border-radius: 10px;
}

.irx-resumen-table-wrap,
.irx-resumen-table-wrap--capture {
  border: 1px solid rgba(16, 40, 75, 0.12);
  border-radius: 12px;
  background: #fff;
}

.irx-resumen-table {
  min-width: 620px;
}

.irx-resumen-table th {
  background: #edf2f7;
  border-bottom-color: rgba(16, 40, 75, 0.12);
  font-size: 0.66rem;
}

.irx-resumen-table td {
  border-top-color: rgba(16, 40, 75, 0.08);
  font-size: 0.82rem;
  line-height: 1.58;
}

.irx-resumen-table tbody tr:nth-child(even) td {
  background: rgba(237, 242, 247, 0.55);
}

.irx-resumen-table__strong {
  color: #10284b;
}

.irx-resumen-table__muted {
  color: #64707f;
}

.irx-resumen-section-card__header {
  padding-bottom: 0.72rem;
  border-bottom-color: rgba(16, 40, 75, 0.1);
}

.irx-resumen-section-card__index {
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 12px;
}

.irx-resumen-field-row {
  border-left: 3px solid rgba(16, 40, 75, 0.18);
}

.irx-resumen-field-row dd {
  color: #1b2432;
}

.irx-resumen-capture-group,
.irx-resumen-array-block {
  padding: 0.88rem;
}

.irx-resumen-array-block__heading p {
  color: #64707f;
  font-size: 0.8rem;
}

.irx-resumen-sidepanel__block,
.irx-resumen-fact-list div,
.irx-resumen-report-card__header,
.irx-resumen-narrative__item + .irx-resumen-narrative__item {
  border-color: rgba(16, 40, 75, 0.08);
}

.irx-resumen-review-badge,
.irx-resumen-flag__level {
  border-radius: 10px;
}

@media (max-width: 760px) {
  .irx-resumen-panel__title,
  .irx-resumen-capture__header h2 {
    font-size: 1.32rem;
  }

  .irx-resumen-section-card__header h3,
  .irx-resumen-sidepanel__title,
  .irx-resumen-narrative h3 {
    font-size: 1.02rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   APP – engineering report polish
   Extiende el lenguaje de resumen al resto de la aplicación, sin tocar home.
   ═══════════════════════════════════════════════════════════════════════════ */

.irx-app-screen {
  background:
    linear-gradient(180deg, #eef2f6 0%, #f4f6f8 48%, #f6f7f8 100%);
}

.irx-app-panel,
.irx-app-surface,
.irx-app-stat,
.irx-app-choice__card,
.irx-app-locale__card,
.irx-app-legal-table,
.irx-app-status-mark,
.irx-app-notice {
  border-radius: 14px;
  border-color: rgba(16, 40, 75, 0.14);
  box-shadow: 0 8px 20px rgba(11, 16, 32, 0.03);
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
}

.irx-app-panel--hero::before,
.irx-app-stat::before {
  height: 3px;
  background: linear-gradient(90deg, rgba(16, 40, 75, 0.92), rgba(100, 92, 80, 0.68));
}

.irx-app-brandmark,
.irx-app-section__num,
.irx-app-status-mark {
  border-radius: 12px;
}

.irx-app-brandmark {
  border: 1px solid rgba(16, 40, 75, 0.12);
  background: linear-gradient(180deg, #f4f7fa 0%, #eef2f6 100%);
  color: #10284b;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.irx-app-eyebrow,
.irx-app-section__num,
.irx-app-choice__eyebrow,
.irx-app-choice__meta,
.irx-app-stat__label,
.irx-app-surface__label,
.irx-app-table th,
.irx-app-legal-table th,
.irx-app-field label,
.irx-app-brandline span {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  letter-spacing: 0.12em;
}

.irx-app-field label {
  color: #4f5a68;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.irx-app-title,
.irx-app-section__title,
.irx-app-empty h2 {
  letter-spacing: -0.028em;
}

.irx-app-lead,
.irx-app-hint,
.irx-app-footnote,
.irx-app-copy-block,
.irx-app-empty p,
.irx-app-choice__card p,
.irx-app-stat p,
.irx-app-legal-table td {
  color: #5a6474;
}

.irx-app-section__heading {
  gap: 0.78rem;
  margin-bottom: 1rem;
  padding-bottom: 0.72rem;
  border-bottom: 1px solid rgba(16, 40, 75, 0.08);
}

.irx-app-section__num {
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid rgba(16, 40, 75, 0.12);
  background: linear-gradient(180deg, #f4f7fa 0%, #eef2f6 100%);
  color: #10284b;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.irx-app-input {
  border-radius: 12px;
  border-color: rgba(16, 40, 75, 0.14);
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.irx-app-input:focus {
  border-color: rgba(16, 40, 75, 0.24);
  box-shadow:
    0 0 0 4px rgba(16, 40, 75, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.irx-app-button,
.irx-app-actions input[type="submit"] {
  border-radius: 12px;
  border-color: rgba(16, 40, 75, 0.18);
  background: linear-gradient(180deg, #17385f 0%, #10284b 100%);
  box-shadow: none;
}

.irx-app-button--secondary,
.irx-app-table__action {
  border-color: rgba(16, 40, 75, 0.14);
  background: linear-gradient(180deg, #f7f9fb 0%, #eef2f6 100%);
  color: #10284b;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.irx-app-button:hover,
.irx-app-actions input[type="submit"]:hover,
.irx-app-choice__input:checked + .irx-app-choice__card,
.irx-app-locale__input:checked + .irx-app-locale__card {
  transform: translateY(-1px);
}

.irx-app-choice__input:checked + .irx-app-choice__card,
.irx-app-locale__input:checked + .irx-app-locale__card {
  border-color: rgba(16, 40, 75, 0.18);
  background: linear-gradient(180deg, #f5f8fb 0%, #eef2f6 100%);
  box-shadow: 0 8px 18px rgba(11, 16, 32, 0.03);
}

.irx-app-choice__card strong,
.irx-app-stat strong {
  color: #10284b;
}

.irx-app-stat strong {
  font-variant-numeric: tabular-nums;
}

.irx-app-proof-strip .pipeline-score-pill,
.irx-app-dashboard .mode-badge,
.irx-app-dashboard .pipeline-badge,
.irx-app-dashboard .dashboard-badge {
  border: 1px solid rgba(16, 40, 75, 0.12);
  border-radius: 10px;
  box-shadow: none;
}

.irx-app-proof-strip .pipeline-score-pill {
  background: linear-gradient(180deg, #f7f9fb 0%, #eef2f6 100%);
}

.irx-app-dashboard .dashboard-progress-bar {
  height: 6px;
  background: rgba(16, 40, 75, 0.08);
}

.irx-app-dashboard .dashboard-progress-bar__fill {
  background: linear-gradient(90deg, rgba(16, 40, 75, 0.92), rgba(100, 92, 80, 0.68));
}

.irx-app-table-wrap {
  border: 1px solid rgba(16, 40, 75, 0.12);
  border-radius: 14px;
  background: #ffffff;
}

.irx-app-table th {
  background: #edf2f7;
  border-bottom-color: rgba(16, 40, 75, 0.12);
  font-size: 0.66rem;
}

.irx-app-table td {
  border-top-color: rgba(16, 40, 75, 0.08);
  color: #1b2432;
  font-size: 0.82rem;
  line-height: 1.58;
}

.irx-app-table tbody tr:nth-child(even) td {
  background: rgba(237, 242, 247, 0.55);
}

.irx-app-table__client {
  color: #10284b;
}

.irx-app-table__email,
.irx-app-table__muted,
.irx-app-table__progress-label {
  color: #64707f;
}

.irx-app-table__action {
  border-radius: 10px;
  font-size: 0.74rem;
}

.irx-app-table__action--danger,
.irx-app-table__action--delete {
  color: #7f1d1d;
}

.irx-app-status-mark {
  width: 3.2rem;
  height: 3.2rem;
  border-color: rgba(16, 40, 75, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.irx-app-status-mark--success {
  background: linear-gradient(180deg, #f2f7f4 0%, #e8f0eb 100%);
  color: #235944;
}

.irx-app-status-mark--warning {
  background: linear-gradient(180deg, #f8f4ed 0%, #eee6da 100%);
  color: #7a5b2c;
}

.irx-app-notice {
  border-radius: 12px;
  border-color: rgba(35, 89, 68, 0.14);
  background: linear-gradient(180deg, #f4f8f5 0%, #edf4ef 100%);
  color: #235944;
}

.irx-app-surface {
  border-color: rgba(16, 40, 75, 0.12);
}

.irx-app-copy-block p + p {
  margin-top: 0.82rem;
}

.irx-app-legal-table th {
  background: #edf2f7;
  border-bottom-color: rgba(16, 40, 75, 0.08);
  font-size: 0.66rem;
}

.irx-app-legal-table td {
  border-bottom-color: rgba(16, 40, 75, 0.08);
  font-size: 0.84rem;
}

@media (max-width: 760px) {
  .irx-app-section__heading {
    padding-bottom: 0;
    border-bottom: 0;
  }
}

/* ── Language switcher ────────────────────────────────────────────────────── */
.irx-lang-switcher {
  display: flex;
  gap: 2px;
  align-items: center;
  margin-left: 0.75rem;
  padding-left: 0.75rem;
  border-left: 1px solid rgba(16, 40, 75, 0.12);
}

.irx-lang-btn {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--irx-text-muted, #6b7280);
  padding: 0.2rem 0.35rem;
  border-radius: 4px;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}

.irx-lang-btn:hover {
  color: var(--irx-accent, #0a6640);
  background: rgba(10, 102, 64, 0.06);
}

.irx-lang-btn--active {
  color: var(--irx-accent, #0a6640);
  background: rgba(10, 102, 64, 0.08);
}

@media (max-width: 760px) {
  .irx-lang-switcher {
    margin-left: 0.5rem;
    padding-left: 0.5rem;
  }
}

/* --------------------------------------------------------------------------
   Typography Rollback + Risque Wordmark
   -------------------------------------------------------------------------- */

body {
  font-family: "Segoe UI", Tahoma, sans-serif;
}

.inspection-shell {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

.irx-nav,
.irx-home,
.irx-app-screen,
.irx-app-panel,
.irx-nav__links a,
.irx-nav__links button,
.irx-nav__user,
.irx-app-brandline span,
.irx-app-lead,
.irx-home-lead,
.irx-home-note,
.irx-home-footer,
.irx-home-footer__links a {
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
}

.irx-hero {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.irx-hero__title,
.irx-home-title,
.irx-app-title,
.irx-home h2,
.irx-home h3,
.irx-home h4,
.irx-home-proof__item strong,
.irx-home-market__quote p,
.irx-home-cta h2 {
  font-family: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}

.irx-brand__wordmark,
.irx-home-footer__wordmark,
.inspection-brand__wordmark,
.irx-app-brandmark {
  font-family: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}

.irx-brand__wordmark,
.irx-home-footer__wordmark,
.inspection-brand__wordmark {
  display: inline-block;
  color: var(--irx-ink);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.9;
  text-decoration: none;
}

.irx-brand__wordmark span,
.irx-home-footer__wordmark span,
.inspection-brand__wordmark span {
  color: var(--brand);
}

.irx-brand__wordmark {
  font-size: clamp(2.2rem, 3vw, 2.95rem);
}

.irx-nav__inner {
  min-height: 84px;
}

.irx-brand__copy {
  padding-top: 0.32rem;
}

.irx-home-footer__wordmark {
  font-size: 2.2rem;
}

.inspection-brand__wordmark {
  width: auto;
  max-width: none;
  font-size: 2rem;
}

.irx-app-brandmark {
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.05em;
}

@media (max-width: 760px) {
  .irx-nav__inner {
    min-height: 76px;
  }

  .irx-brand__wordmark {
    font-size: 2.05rem;
  }
}
