:root {
  --ink: #10263f;
  --ink-soft: #1d3350;
  --paper: #f2f5f7;
  --surface: #ffffff;
  --line: #d8e0e8;
  --muted: #5b6b7d;
  --accent: #0b6e7c;
  --accent-hover: #09545f;
  --accent-soft: #e2f0f2;
  --copper: #a86a2b;
  --copper-soft: #f5e9da;
  --heat-high: #9b2c2c;
  --heat-high-bg: #fde8e8;
  --heat-mid: #9a6700;
  --heat-mid-bg: #fef3c7;
  --heat-low: #276749;
  --heat-low-bg: #def7e9;
  --cid-c: #8a5a00;
  --cid-c-bg: #f8efd8;
  --cid-i: #1e4d8c;
  --cid-i-bg: #e4eefc;
  --cid-d: #1f5c3a;
  --cid-d-bg: #e3f5eb;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(16, 38, 63, 0.06), 0 8px 24px rgba(16, 38, 63, 0.06);
  --font: "IBM Plex Sans", system-ui, sans-serif;
  --display: "Archivo", "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  min-height: 100%;
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
}

.app-main,
main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.section {
  padding: 3.5rem 0;
  position: relative;
}

@media (max-width: 767.98px) {
  .section {
    padding: 2.25rem 0;
  }
}

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

a:hover {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
  height: auto;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 21, 36, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.site-nav .navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff !important;
  font-size: 0.95rem;
}

.site-nav .navbar-brand img,
.brand-logo {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-logo-lg {
  height: 88px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.25));
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.hero-brand .brand-text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.hero-brand strong {
  display: block;
  color: #fff;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.footer-brand img {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.footer-una {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-una img {
  height: 48px;
  width: auto;
  object-fit: contain;
  /* logo UNA es rojo sobre negro: se ve limpio en footer oscuro */
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.footer-una span {
  font-size: 0.82rem;
  color: #9aa6b5;
  max-width: 14rem;
  line-height: 1.35;
}

.site-nav .brand-mark {
  color: #8ec8d8;
  font-weight: 500;
}

.site-nav .nav-link {
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem !important;
}

.site-nav .nav-link:hover,
.site-nav .nav-link.active {
  color: #fff !important;
}

.btn-primary-app {
  --bs-btn-bg: var(--accent);
  --bs-btn-border-color: var(--accent);
  --bs-btn-hover-bg: var(--accent-hover);
  --bs-btn-hover-border-color: var(--accent-hover);
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--accent-hover);
  --bs-btn-active-border-color: var(--accent-hover);
  --bs-btn-active-color: #fff;
  font-weight: 600;
  border-radius: var(--radius);
  padding: 0.65rem 1.15rem;
  letter-spacing: 0.01em;
}

/* Mantiene texto e iconos en la misma línea visual en botones y enlaces CTA. */
.btn-primary-app,
.btn-secondary-app,
.btn-ghost,
.btn-ghost-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  line-height: 1.2;
}

.btn-primary-app .bi,
.btn-secondary-app .bi,
.btn-ghost .bi,
.btn-ghost-nav .bi {
  flex: 0 0 auto;
  line-height: 1;
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius);
  padding: 0.65rem 1.15rem;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-secondary-app {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  border-radius: var(--radius);
}

.btn-secondary-app:hover {
  background: var(--paper);
  border-color: #b8c2d0;
  color: var(--ink);
}

.hero {
  background:
    linear-gradient(180deg, rgba(12, 21, 36, 0.04) 0%, transparent 40%),
    var(--ink);
  color: #fff;
  padding: 4.5rem 0 3.75rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(142, 200, 216, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(142, 200, 216, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
  pointer-events: none;
}

.hero::before {
  content: "KADE / AUDIT-SYS";
  position: absolute;
  top: 1.4rem;
  right: 1.5rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.16);
  transform: rotate(90deg);
  transform-origin: top right;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8ec8d8;
  border: 1px solid rgba(142, 200, 216, 0.35);
  background: rgba(142, 200, 216, 0.08);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  max-width: 20ch;
  margin-bottom: 1.1rem;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
  max-width: 46ch;
  margin-bottom: 1.75rem;
}

.cid-panel {
  background:
    linear-gradient(135deg, rgba(168, 106, 43, 0.07) 0%, transparent 45%),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 1.4rem 1.4rem 1.15rem;
  position: relative;
}

.cid-panel::after {
  content: "";
  position: absolute;
  right: 0.9rem;
  top: 0.9rem;
  width: 0.9rem;
  height: 0.9rem;
  border-top: 1px solid var(--copper);
  border-right: 1px solid var(--copper);
  opacity: 0.55;
}

.cid-panel::before {
  content: "";
  position: absolute;
  left: 0.9rem;
  bottom: 0.9rem;
  width: 0.9rem;
  height: 0.9rem;
  border-left: 1px solid var(--copper);
  border-bottom: 1px solid var(--copper);
  opacity: 0.55;
}

.cid-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cid-fig {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--copper);
  border: 1px solid rgba(168, 106, 43, 0.5);
  padding: 0.2rem 0.45rem;
  border-radius: 3px;
  text-transform: uppercase;
}

.cid-title {
  font-size: 0.78rem;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}

.cid-track {
  display: grid;
  grid-template-columns: 2.2rem 1fr auto;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 0.95rem;
}

.cid-track:last-child {
  margin-bottom: 0;
}

.cid-label {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.85rem;
}

.cid-scale {
  position: relative;
  height: 14px;
  display: flex;
  align-items: center;
}

.cid-tick {
  position: absolute;
  top: 0;
  width: 1px;
  height: 4px;
  background: rgba(255, 255, 255, 0.28);
}

.cid-tick.t0 { left: 0; }
.cid-tick.t25 { left: 25%; }
.cid-tick.t50 { left: 50%; }
.cid-tick.t75 { left: 75%; }
.cid-tick.t100 { left: calc(100% - 1px); }

.cid-bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 5px;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0;
  overflow: hidden;
}

.cid-bar > span {
  display: block;
  height: 100%;
}

.cid-track.c .cid-label { color: #e6c36a; }
.cid-track.c .cid-bar > span { background: #c9a227; }
.cid-track.i .cid-label { color: #8eb6ef; }
.cid-track.i .cid-bar > span { background: #4d84d1; }
.cid-track.d .cid-label { color: #7dcea0; }
.cid-track.d .cid-bar > span { background: #3d9b6a; }

.cid-meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}

.cid-note {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.42);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 0.7rem;
  margin-top: 1rem;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
}

.stat-cell {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.stat-cell strong {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.stat-cell span {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.sec-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.sec-label::after {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: var(--copper);
  opacity: 0.5;
}

.section {
  padding: 4rem 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.section-head p {
  color: var(--muted);
  margin: 0;
}

.card-quiet {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.35rem 1.25rem;
  height: 100%;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card-quiet:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 4px rgba(16, 38, 63, 0.06), 0 14px 32px rgba(16, 38, 63, 0.1);
  border-color: #b9c6d4;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(168, 106, 43, 0.4);
  background: var(--copper-soft);
  color: var(--copper);
  border-radius: 7px;
  font-size: 1.15rem;
}

.card-quiet h3 {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}

.card-quiet p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

.card-code {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 0.2rem 0.45rem;
  border-radius: 3px;
}

.iso-block {
  background: var(--ink);
  color: #fff;
  border-radius: 12px;
  padding: 1.75rem 1.75rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.iso-block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem 1.5rem;
  margin-bottom: 1.35rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.iso-block-head > div {
  flex: 1 1 16rem;
  min-width: 0;
}

.iso-block h2 {
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  font-weight: 700;
  margin: 0 0 0.65rem;
  letter-spacing: -0.02em;
  max-width: 22ch;
}

.iso-block-head p {
  color: rgba(255, 255, 255, 0.68);
  max-width: 52ch;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
}

.iso-cta {
  flex: 0 0 auto;
  align-self: center;
  white-space: nowrap;
}

.iso-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.iso-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1rem 0.95rem;
  min-height: 7.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.iso-item strong {
  display: block;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: #8ec8d8;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.iso-item span {
  display: block;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.45;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
}

.team-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.15rem 1.1rem;
  height: 100%;
}

.cta-strip {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 768px) {
  .cta-strip {
    flex-direction: row;
    align-items: center;
  }
}

.team-card .role {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.team-card h3 {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.team-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.team-card.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--surface) 55%);
}

.site-footer {
  background: #080e18;
  color: #8b97a8;
  padding: 2.2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
  margin-top: auto;
  flex-shrink: 0;
  width: 100%;
}

.site-footer strong {
  color: #fff;
  font-weight: 600;
}

/* Audit module */
.page-head {
  background: var(--ink);
  color: #fff;
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-head h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.page-head p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  max-width: 52ch;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}

.panel-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 1rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.panel-title small {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.82rem;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}

.form-control,
.form-select {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.55rem 0.75rem;
  font-size: 0.92rem;
  color: var(--ink);
  background: #fff;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(10, 92, 117, 0.15);
}

.table-audit {
  margin: 0;
  font-size: 0.9rem;
}

.table-audit thead th {
  background: #f5f7fa;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  white-space: nowrap;
  padding: 0.75rem 0.85rem;
}

.table-audit td {
  padding: 0.8rem 0.85rem;
  vertical-align: middle;
  border-bottom: 1px solid #e8edf3;
}

.domain-row td,
.domain-row {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  font-weight: 600;
  color: var(--accent);
  font-size: 0.88rem;
}

.domain-row td {
  padding: 0.65rem 0.85rem !important;
}

.domain-row .dom-code {
  font-family: var(--mono);
  font-weight: 500;
  color: var(--muted);
  font-size: 0.78rem;
}

.ctrl-code {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--accent);
  font-size: 0.85rem;
}

.ctrl-name {
  font-weight: 600;
  color: var(--ink);
}

.ctrl-meta {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-family: var(--mono);
}

.question-row td {
  background: #fafbfc;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 0.45rem 0.85rem 0.45rem 2.25rem !important;
  border-bottom: 1px dashed #e4e9f0;
}

.question-row .q-ord {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--ink-soft);
  margin-right: 0.35rem;
}

.cia-badges {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cia-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--mono);
  width: fit-content;
}

.cia-badge.c-badge { background: var(--cid-c-bg); color: var(--cid-c); }
.cia-badge.i-badge { background: var(--cid-i-bg); color: var(--cid-i); }
.cia-badge.d-badge { background: var(--cid-d-bg); color: var(--cid-d); }
.cia-badge.zero { opacity: 0.35; }

.badge-risk {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.55rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.78rem;
  font-family: var(--mono);
}

.badge-risk.alto { background: var(--heat-high-bg); color: var(--heat-high); }
.badge-risk.medio { background: var(--heat-mid-bg); color: var(--heat-mid); }
.badge-risk.bajo { background: var(--heat-low-bg); color: var(--heat-low); }
.badge-risk.no-aplica { background: #eef1f5; color: #6b7280; }

.heat-legend {
  display: grid;
  gap: 0.75rem;
}

.heat-item {
  display: grid;
  grid-template-columns: 0.7rem 1fr auto;
  gap: 0.75rem;
  align-items: start;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fafbfc;
}

.heat-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 2px;
  margin-top: 0.3rem;
}

.heat-item.alto .heat-dot { background: var(--heat-high); }
.heat-item.medio .heat-dot { background: var(--heat-mid); }
.heat-item.bajo .heat-dot { background: var(--heat-low); }

.heat-item strong {
  display: block;
  font-size: 0.9rem;
}

.heat-item span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.heat-count {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.stat-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1rem;
  background: #fafbfc;
}

.stat-card .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.stat-card .value {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stat-card .hint {
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.stat-card .cid-stack {
  margin-top: 0.35rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.recommendation-box {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 0.85rem 1rem;
  border-radius: 0 6px 6px 0;
  margin-bottom: 0.65rem;
  font-size: 0.9rem;
}

.loading-overlay,
.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--muted);
}

.error-box {
  background: var(--heat-high-bg);
  border: 1px solid #f0b4b4;
  border-radius: 8px;
  padding: 1.25rem;
  color: var(--heat-high);
  text-align: center;
}

.actions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.15rem;
}

.btn-ghost-nav {
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff !important;
  background: transparent;
  font-weight: 600;
  border-radius: var(--radius);
}

.btn-ghost-nav:hover,
.btn-ghost-nav.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.4);
}

.nav-user {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.15;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  max-width: 11rem;
}

.nav-user em {
  font-style: normal;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.68rem;
  color: #8ec8d8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lock-note {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
}

.lock-banner {
  display: grid;
  gap: 0.25rem;
  background: #1a2740;
  color: #d7e6ee;
  border: 1px solid rgba(142, 200, 216, 0.35);
  border-left: 3px solid #8ec8d8;
  border-radius: 8px;
  padding: 0.9rem 1rem;
  font-size: 0.9rem;
}

.lock-banner strong {
  color: #fff;
  font-size: 0.92rem;
}

.lock-banner span {
  color: rgba(255, 255, 255, 0.72);
}

.login-panel {
  max-width: 28rem;
  margin: 0 auto;
}

.login-alert {
  background: var(--heat-high-bg);
  color: var(--heat-high);
  border: 1px solid #f0b4b4;
  border-radius: 6px;
  padding: 0.75rem 0.9rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.login-hint {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.login-hint .hint-title {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.login-hint ul {
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.login-hint code {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.toast-host {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: min(22rem, calc(100vw - 2rem));
}

.toast-msg {
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  padding: 0.8rem 1rem;
  font-size: 0.88rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: toast-in 0.2s ease;
}

.toast-msg.ok { border-left: 3px solid var(--heat-low); }
.toast-msg.err { border-left: 3px solid #e07070; }
.toast-msg.info { border-left: 3px solid #8ec8d8; }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.progress-strip {
  position: sticky;
  top: 56px;
  z-index: 90;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
  padding: 0.65rem 0;
}

.progress-strip .meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.progress-strip .meta strong {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.progress-track {
  height: 6px;
  background: #e5eaf1;
  border-radius: 999px;
  overflow: hidden;
}

.progress-track > span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), #1f7f9a);
  border-radius: inherit;
  transition: width 0.25s ease;
}

.domain-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.domain-tab {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.domain-tab:hover {
  border-color: #b7c4d4;
}

.domain-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.domain-tab .count {
  font-family: var(--mono);
  font-weight: 500;
  opacity: 0.75;
  margin-left: 0.25rem;
}

.control-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  margin-bottom: 0.85rem;
  overflow: hidden;
}

.control-card-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: start;
  padding: 0.95rem 1rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
}

.control-card-body {
  padding: 0.85rem 1rem 1rem;
}

.q-block {
  padding: 0.75rem 0;
  border-bottom: 1px dashed #e4e9f0;
}

.q-block:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.q-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
}

.q-meta {
  margin-top: 0.55rem;
}

.heat-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.heat-chip {
  min-width: 4.5rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  padding: 0.45rem 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-family: var(--mono);
  font-size: 0.75rem;
}

.heat-chip strong {
  font-size: 0.82rem;
}

.heat-chip.band-high { background: var(--heat-high-bg); border-color: #f0b4b4; color: var(--heat-high); }
.heat-chip.band-mid { background: var(--heat-mid-bg); border-color: #f0d48a; color: var(--heat-mid); }
.heat-chip.band-low { background: var(--heat-low-bg); border-color: #a8dfc0; color: var(--heat-low); }
.heat-chip.band-none { background: #f3f5f8; color: var(--muted); }

@media print {
  .no-print { display: none !important; }
  .page-head { background: #fff !important; color: #000 !important; }
}

.q-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.answer-group {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.answer-group label {
  margin: 0;
  cursor: pointer;
}

.answer-group input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.answer-group span {
  display: block;
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--mono);
  color: var(--muted);
  border-right: 1px solid var(--line);
  min-width: 2.4rem;
  text-align: center;
}

.answer-group label:last-child span {
  border-right: 0;
}

.answer-group input:checked + span {
  background: var(--accent);
  color: #fff;
}

.answer-group input:focus-visible + span {
  outline: 2px solid rgba(10, 92, 117, 0.35);
  outline-offset: -2px;
}

.maturity-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.28rem 0.55rem;
  border-radius: 4px;
  background: #eef2f6;
  color: var(--ink-soft);
  white-space: nowrap;
}

.heat-matrix {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
}

.heat-cell {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.9rem;
  background: #fafbfc;
  min-height: 7.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.heat-cell .proc {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.heat-cell .score {
  font-size: 1.45rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.heat-cell .cov {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.heat-cell.band-high {
  background: var(--heat-high-bg);
  border-color: #f0b4b4;
}

.heat-cell.band-mid {
  background: var(--heat-mid-bg);
  border-color: #f0d48a;
}

.heat-cell.band-low {
  background: var(--heat-low-bg);
  border-color: #a8dfc0;
}

.heat-cell.band-none {
  opacity: 0.7;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.flow-step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  position: relative;
}

.flow-step .n {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--copper);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.flow-step h3 {
  font-family: var(--display);
  font-size: 0.98rem;
  margin: 0.35rem 0 0.35rem;
  font-weight: 700;
}

.flow-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.error-box {
  text-align: left;
}

.error-box code {
  display: block;
  margin-top: 0.65rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 6px;
  font-size: 0.82rem;
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 1199.98px) {
  .iso-grid,
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .stat-grid,
  .heat-matrix,
  .flow-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .hero h1 {
    max-width: none;
  }

  .control-card-head {
    grid-template-columns: 1fr;
  }

  .q-item {
    grid-template-columns: 1fr;
  }

  .iso-block-head {
    flex-direction: column;
  }

  .iso-cta {
    align-self: flex-start;
  }
}

@media (max-width: 575.98px) {
  .stat-grid,
  .heat-matrix,
  .flow-steps,
  .iso-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 1.1rem;
  }

  .iso-block {
    padding: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .brands-marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .brands-track {
    width: auto;
    animation: none !important;
    transform: none !important;
  }

  .brands-group {
    display: flex;
    align-items: center;
    gap: 0.85rem;
  }

  .brands-group[aria-hidden="true"] {
    display: none !important;
  }
}

@media print {
  .site-nav,
  .actions-bar,
  .btn,
  .site-footer,
  .progress-strip,
  .toast-host,
  .domain-tabs {
    display: none !important;
  }

  .page-head {
    padding: 0.5rem 0;
    color: #000;
    background: #fff;
  }

  body {
    background: #fff;
  }

  .panel,
  .control-card {
    box-shadow: none;
    break-inside: avoid;
  }
}

/* Brands strip */
.brands-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 1.75rem 0;
  overflow: hidden;
}

.brands-strip .container {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.brands-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brands-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.brands-label::after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--line);
}

.brands-sublabel {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  opacity: 0.9;
}

.brands-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-brand-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 2px rgba(16, 38, 63, 0.04);
}

.btn-brand-nav:hover {
  background: #ffffff;
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(11, 110, 124, 0.12);
}

.btn-brand-nav:active {
  transform: scale(0.94);
}

.brands-marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 0.4rem 0;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
}

.brands-marquee.is-dragging {
  cursor: grabbing;
}

.brands-marquee.js-active .brands-track {
  animation: none !important;
}

.brands-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: brandsMarquee 32s linear infinite;
}

.brands-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-right: 1rem;
  flex-shrink: 0;
}

.brand-box {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  height: 74px;
  min-width: 215px;
  padding: 0 1.25rem;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(16, 38, 63, 0.04);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.22s ease;
  cursor: pointer;
}

.brand-box:hover {
  background: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(11, 110, 124, 0.16), 0 2px 6px rgba(16, 38, 63, 0.04);
  transform: translateY(-3px) scale(1.02);
}

.brand-box.is-active-click {
  background: var(--accent-soft);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(11, 110, 124, 0.2);
  transform: scale(0.98);
}

.brand-logo-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 48px;
  flex-shrink: 0;
}

.brand-box img {
  height: auto;
  width: auto;
  max-height: 38px;
  max-width: 58px;
  object-fit: contain;
  filter: grayscale(1) opacity(0.65);
  transition: filter 0.25s ease, transform 0.25s ease;
}

.brand-box:hover img {
  filter: grayscale(0) opacity(1) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.1));
  transform: scale(1.08);
}

.brand-box:hover .brand-name {
  color: var(--accent);
}

/* Individual optical balancing for logos */
.brand-box.b-oracle .brand-logo-frame {
  width: 78px;
}
.brand-box.b-oracle img {
  max-height: 18px;
  max-width: 78px;
}

.brand-box.b-mysql .brand-logo-frame {
  width: 68px;
}
.brand-box.b-mysql img {
  max-height: 34px;
  max-width: 68px;
}

.brand-box.b-mariadb .brand-logo-frame {
  width: 72px;
}
.brand-box.b-mariadb img {
  max-height: 28px;
  max-width: 72px;
}

.brand-box.b-azure .brand-logo-frame {
  width: 70px;
}
.brand-box.b-azure img {
  max-height: 32px;
  max-width: 70px;
}

.brand-box.b-postgres .brand-logo-frame {
  width: 48px;
}
.brand-box.b-postgres img {
  max-height: 42px;
  max-width: 46px;
}

.brand-box.b-sqlserver .brand-logo-frame {
  width: 48px;
}
.brand-box.b-sqlserver img {
  max-height: 40px;
  max-width: 44px;
}

.brand-caption {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-name {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.brand-desc {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  white-space: nowrap;
}

@keyframes brandsMarquee {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brands-track {
    animation: none;
  }
  .brands-marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

@media (max-width: 767.98px) {
  .brands-strip {
    padding: 1.3rem 0;
  }

  .brands-sublabel {
    display: none;
  }

  .brand-box {
    height: 64px;
    min-width: 180px;
    padding: 0 0.95rem;
    gap: 0.7rem;
  }

  .brand-name {
    font-size: 0.8rem;
  }

  .brand-desc {
    font-size: 0.64rem;
  }

  .brand-logo-frame {
    height: 38px;
    width: 48px;
  }
}

/* Contact */
.contact-line {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
}

.contact-line i {
  color: var(--copper);
}

/* Landing: experiencias de uso y contacto */
.testimonials-section {
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
  color: #f7fbff;
  background: #081827;
  border-top: 1px solid rgba(126, 204, 218, 0.2);
  border-bottom: 1px solid rgba(126, 204, 218, 0.16);
}

.testimonials-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(77, 187, 204, 0.08) 1px, transparent 1px) 0 0 / 9rem 100%,
    radial-gradient(circle at 88% 5%, rgba(15, 130, 150, 0.24), transparent 24rem);
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}

.testimonials-section .container {
  position: relative;
}

.testimonials-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  gap: 1.25rem 3rem;
  margin-bottom: 2rem;
}

.proof-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #70d7e7;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.testimonials-head h2 {
  max-width: 22ch;
  margin: 0.7rem 0 0;
  color: #fff;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.06;
}

.testimonials-head > p {
  max-width: 32ch;
  margin: 0;
  color: rgba(221, 234, 244, 0.68);
  font-size: 0.9rem;
  line-height: 1.55;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.testimonial-card {
  display: flex;
  min-height: 16.25rem;
  flex-direction: column;
  padding: 1.25rem;
  background: rgba(7, 23, 38, 0.78);
  border: 1px solid rgba(186, 218, 230, 0.13);
  border-radius: 10px;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.14);
  transition: border-color 0.22s ease, transform 0.22s ease, background-color 0.22s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  background: rgba(10, 34, 53, 0.92);
  border-color: rgba(101, 211, 227, 0.45);
}

.testimonial-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: #70d7e7;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.testimonial-meta .bi {
  color: rgba(112, 215, 231, 0.55);
  font-size: 1.45rem;
  line-height: 1;
}

.testimonial-card blockquote {
  flex: 1;
  margin: 1.15rem 0 1.4rem;
  color: rgba(248, 251, 255, 0.88);
  font-size: 0.98rem;
  line-height: 1.6;
}

.testimonial-person {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(186, 218, 230, 0.12);
}

.testimonial-avatar {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid rgba(112, 215, 231, 0.45);
  border-radius: 50%;
  color: #a9f0fa;
  background: linear-gradient(135deg, #15536b, #0e2d46);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
}

.testimonial-person strong,
.testimonial-person small {
  display: block;
}

.testimonial-person strong {
  color: #fff;
  font-size: 0.84rem;
  font-weight: 600;
}

.testimonial-person small {
  margin-top: 0.1rem;
  color: rgba(221, 234, 244, 0.6);
  font-size: 0.76rem;
}

.contact-section {
  padding-top: 4.25rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(15rem, 0.72fr) minmax(0, 1.28fr);
  gap: 1.25rem;
  align-items: stretch;
}

.contact-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 1.55rem 0.35rem 1.55rem 0;
}

.contact-copy h2 {
  max-width: 13ch;
  margin: 0.7rem 0 0.8rem;
  font-family: var(--display);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.contact-copy > p {
  max-width: 38ch;
  margin: 0;
  color: var(--muted);
}

.contact-points {
  display: grid;
  gap: 0.65rem;
  margin: 1.65rem 0 1.45rem;
}

.contact-points div {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 500;
}

.contact-points i {
  display: inline-flex;
  width: 1.75rem;
  height: 1.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid #b8d6db;
  border-radius: 50%;
  color: var(--accent);
  background: var(--accent-soft);
}

.contact-secondary-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: flex-start;
  margin-top: auto;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid currentColor;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 600;
}

.contact-secondary-link .bi {
  line-height: 1;
}

.contact-form-card {
  padding: 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(16, 38, 63, 0.08);
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.contact-form-heading > span {
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
}

.contact-form-heading small {
  color: var(--muted);
  font-size: 0.72rem;
}

.contact-fields {
  display: grid;
  gap: 0.85rem;
}

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

.contact-field {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.contact-field label {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  min-width: 0;
  padding: 0.65rem 0.72rem;
  border: 1px solid #cbd7e1;
  border-radius: 5px;
  outline: none;
  color: var(--ink);
  background: #fbfcfd;
  font: inherit;
  font-size: 0.88rem;
  line-height: 1.35;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.contact-field select {
  cursor: pointer;
}

.contact-field textarea {
  min-height: 7.2rem;
  resize: vertical;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: #8392a2;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(11, 110, 124, 0.13);
}

.contact-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding-top: 0.15rem;
}

.contact-form-footer > span {
  display: inline-flex;
  max-width: 25rem;
  align-items: flex-start;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.contact-form-footer > span .bi {
  margin-top: 0.05rem;
  color: var(--accent);
}

.contact-form-footer .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.contact-feedback {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: 1rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid;
  border-radius: 6px;
  font-size: 0.85rem;
  line-height: 1.4;
}

.contact-feedback .bi {
  margin-top: 0.08rem;
  flex: 0 0 auto;
}

.contact-feedback.is-success {
  border-color: #a8dfc0;
  color: var(--heat-low);
  background: var(--heat-low-bg);
}

.contact-feedback.is-error {
  border-color: #efb2b2;
  color: var(--heat-high);
  background: var(--heat-high-bg);
}

.contact-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

@media (max-width: 991.98px) {
  .testimonials-head,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .testimonials-head {
    gap: 0.85rem;
  }

  .testimonials-head > p {
    max-width: 46rem;
  }

  .contact-copy {
    padding: 0;
  }

  .contact-secondary-link {
    margin-top: 0;
  }
}

@media (max-width: 767.98px) {
  .testimonials-section {
    padding: 3.5rem 0;
  }

  .testimonial-grid {
    grid-auto-columns: minmax(17rem, 84vw);
    grid-auto-flow: column;
    grid-template-columns: none;
    overflow-x: auto;
    padding: 0.1rem 0.2rem 0.75rem;
    scroll-snap-type: x mandatory;
  }

  .testimonial-card {
    min-height: 15.5rem;
    scroll-snap-align: start;
  }

  .contact-section {
    padding-top: 3.2rem;
  }
}

@media (max-width: 575.98px) {
  .contact-form-card {
    padding: 1rem;
  }

  .contact-fields.two-up {
    grid-template-columns: 1fr;
  }

  .contact-form-heading,
  .contact-form-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-form-footer .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .testimonial-card {
    transition: none;
  }

  .testimonial-card:hover {
    transform: none;
  }
}
