:root {
  --ink: #06122d;
  --ink-soft: #1d2e55;
  --surface: #ffffff;
  --surface-soft: #f4f8ff;
  --line: rgba(10, 48, 111, 0.14);
  --blue: #0d4fd7;
  --blue-deep: #06246a;
  --cyan: #17b7ff;
  --teal: #0aa79d;
  --amber: #e6a817;
  --green: #1fb66a;
  --shadow: 0 24px 70px rgba(4, 22, 61, 0.16);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 16%, rgba(23, 183, 255, 0.13), transparent 24rem),
    radial-gradient(circle at 86% 8%, rgba(230, 168, 23, 0.12), transparent 22rem),
    linear-gradient(180deg, #f9fbff 0%, #eef5ff 38%, #ffffff 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  color: #fff;
  background: var(--blue);
}

#networkCanvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 32px), var(--max));
  min-height: 66px;
  padding: 10px 12px 10px 14px;
  border: 1px solid rgba(8, 50, 124, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 60px rgba(5, 30, 78, 0.12);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
  transition: background 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(8, 50, 124, 0.2);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 44px rgba(5, 30, 78, 0.16);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 900;
  color: var(--blue-deep);
  letter-spacing: 0;
}

.brand-mark img {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(13, 79, 215, 0.18);
  border-radius: 50%;
  object-fit: cover;
}

.brand-mark span {
  overflow: hidden;
  max-width: 220px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  position: relative;
  padding: 10px 13px;
  border-radius: 8px;
  color: rgba(6, 18, 45, 0.72);
  font-size: 0.9rem;
  font-weight: 800;
  transition: color 180ms ease, background 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--blue);
  background: rgba(13, 79, 215, 0.08);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--blue-deep);
}

.hero-section {
  position: relative;
  display: grid;
  min-height: 88svh;
  padding: 128px 20px 56px;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(249, 251, 255, 0.98) 0%, rgba(249, 251, 255, 0.85) 43%, rgba(249, 251, 255, 0.72) 100%),
    url("assets/zafiro-tarjeta-frontal.png") center / cover no-repeat;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(0deg, rgba(255, 255, 255, 1), transparent);
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.72fr);
  align-items: center;
  gap: clamp(28px, 6vw, 80px);
  width: min(100%, var(--max));
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
}

.hero-copy {
  max-width: 780px;
  padding-top: 18px;
}

.hero-copy h1 {
  margin: 18px 0 16px;
  max-width: 780px;
  color: var(--ink);
  font-size: clamp(3rem, 8vw, 7.6rem);
  line-height: 0.9;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 680px;
  margin: 0;
  color: rgba(6, 18, 45, 0.77);
  font-size: clamp(1.02rem, 1.8vw, 1.3rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.button:hover,
.button:focus-visible {
  outline: none;
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #07318f);
  box-shadow: 0 14px 38px rgba(13, 79, 215, 0.24);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 0 18px 46px rgba(13, 79, 215, 0.32);
}

.button-ghost {
  color: var(--blue-deep);
  border-color: rgba(13, 79, 215, 0.18);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 14px 38px rgba(5, 30, 78, 0.08);
}

.signal-panel {
  position: relative;
  align-self: center;
  min-height: 430px;
  padding: 18px;
  border: 1px solid rgba(13, 79, 215, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(236, 246, 255, 0.88)),
    linear-gradient(45deg, transparent, rgba(23, 183, 255, 0.1));
  box-shadow: var(--shadow);
  overflow: hidden;
  transform-style: preserve-3d;
}

.signal-panel::before,
.signal-panel::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.signal-panel::before {
  inset: -70px auto auto -80px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(23, 183, 255, 0.28);
  border-radius: 50%;
  animation: rotateRing 14s linear infinite;
}

.signal-panel::after {
  right: -34px;
  bottom: -34px;
  width: 142px;
  height: 142px;
  border: 20px solid rgba(13, 79, 215, 0.09);
  border-radius: 50%;
}

.panel-toolbar {
  display: flex;
  gap: 7px;
  margin-bottom: 18px;
}

.panel-toolbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
}

.panel-toolbar span:nth-child(2) {
  background: var(--amber);
}

.panel-toolbar span:nth-child(3) {
  background: var(--green);
}

.signal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.metric-live {
  min-height: 148px;
  padding: 18px;
  border: 1px solid rgba(13, 79, 215, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.metric-live span,
.metric-live small {
  display: block;
  color: rgba(6, 18, 45, 0.6);
  font-weight: 800;
}

.metric-live strong {
  display: block;
  margin: 8px 0 2px;
  color: var(--blue-deep);
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1;
  letter-spacing: 0;
}

.metric-alt strong {
  color: var(--teal);
}

.code-stream {
  position: relative;
  margin-top: 12px;
  padding: 18px;
  border: 1px solid rgba(6, 18, 45, 0.14);
  border-radius: 8px;
  color: #dff5ff;
  background:
    linear-gradient(135deg, rgba(5, 18, 52, 0.96), rgba(8, 43, 93, 0.94)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 28px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.code-stream::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 0%, rgba(23, 183, 255, 0.16) 48%, transparent 100%);
  animation: scanLine 3.4s ease-in-out infinite;
}

.code-stream pre {
  position: relative;
  z-index: 1;
  min-height: 132px;
  margin: 0;
  overflow: hidden;
  white-space: pre-wrap;
}

.code-stream code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.88rem;
}

.system-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  color: rgba(6, 18, 45, 0.64);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.system-status i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(31, 182, 106, 0.12);
}

.trust-strip {
  overflow: hidden;
  border-block: 1px solid rgba(13, 79, 215, 0.12);
  background: rgba(255, 255, 255, 0.76);
}

.strip-track {
  display: flex;
  width: max-content;
  min-width: 100%;
  animation: marquee 28s linear infinite;
}

.strip-track span {
  display: inline-flex;
  align-items: center;
  min-height: 72px;
  padding: 0 36px;
  color: rgba(6, 18, 45, 0.7);
  font-size: 0.88rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.strip-track span::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 14px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 6px rgba(23, 183, 255, 0.11);
}

.section-wrap {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.services-section {
  padding: 96px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(280px, 0.62fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading h2,
.method-copy h2,
.lab-copy h2,
.scope-copy h2,
.appointment-copy h2 {
  margin: 12px 0 0;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.section-heading p,
.method-copy p,
.lab-copy p,
.scope-copy p,
.appointment-copy p {
  margin: 0;
  color: rgba(6, 18, 45, 0.68);
  font-size: 1rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.service-card {
  position: relative;
  min-height: 320px;
  padding: 22px;
  border: 1px solid rgba(13, 79, 215, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 44px rgba(5, 30, 78, 0.08);
  overflow: hidden;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.service-card::after {
  content: "";
  position: absolute;
  right: -44px;
  bottom: -44px;
  width: 126px;
  height: 126px;
  border: 1px solid rgba(23, 183, 255, 0.28);
  border-radius: 50%;
  transform: scale(0.88);
  transition: transform 220ms ease, opacity 220ms ease;
}

.service-card:hover,
.service-card.is-active {
  border-color: rgba(13, 79, 215, 0.38);
  box-shadow: 0 22px 60px rgba(5, 30, 78, 0.14);
  transform: translateY(-4px);
}

.service-card:hover::after,
.service-card.is-active::after {
  opacity: 0.85;
  transform: scale(1);
}

.service-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 13px 24px rgba(13, 79, 215, 0.22);
}

.service-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.service-card h3 {
  margin: 20px 0 10px;
  color: var(--ink);
  font-size: 1.18rem;
  line-height: 1.15;
}

.service-card p {
  margin: 0;
  color: rgba(6, 18, 45, 0.64);
}

.service-card button {
  position: absolute;
  left: 22px;
  bottom: 22px;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0;
  border: 0;
  color: var(--blue);
  background: transparent;
  font-size: 0.9rem;
  font-weight: 900;
}

.service-card button::after {
  content: "->";
  margin-left: 8px;
  transition: transform 180ms ease;
}

.service-card button:hover::after,
.service-card button:focus-visible::after {
  transform: translateX(4px);
}

.service-card button:focus-visible {
  outline: 2px solid rgba(13, 79, 215, 0.4);
  outline-offset: 4px;
}

.service-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(300px, 0.7fr);
  gap: 28px;
  margin-top: 16px;
  padding: 26px;
  border: 1px solid rgba(13, 79, 215, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(239, 247, 255, 0.78)),
    url("assets/zafiro-tarjeta-atras.png") right center / auto 100% no-repeat;
  box-shadow: 0 18px 50px rgba(5, 30, 78, 0.08);
}

.service-detail h3 {
  margin: 10px 0 8px;
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  line-height: 1;
}

.service-detail p,
.service-detail li {
  color: rgba(6, 18, 45, 0.68);
}

.service-detail ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-detail li {
  position: relative;
  padding-left: 28px;
  font-weight: 700;
}

.service-detail li::before {
  content: "";
  position: absolute;
  top: 0.5em;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 6px rgba(10, 167, 157, 0.12);
}

.method-section {
  padding: 96px 0;
  background:
    linear-gradient(135deg, rgba(6, 18, 45, 0.96), rgba(6, 36, 106, 0.94)),
    url("assets/zafiro-tarjeta-atras.png") center / cover no-repeat;
  color: #fff;
}

.method-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.66fr) minmax(420px, 1fr);
  gap: clamp(30px, 6vw, 78px);
  align-items: start;
}

.method-copy {
  position: sticky;
  top: 112px;
}

.method-copy h2,
.method-copy p {
  color: #fff;
}

.method-copy p {
  color: rgba(255, 255, 255, 0.74);
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-step {
  position: relative;
  min-height: 154px;
  padding: 24px 24px 24px 76px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.timeline-step span {
  position: absolute;
  top: 24px;
  left: 22px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(23, 183, 255, 0.42);
  border-radius: 50%;
  color: #dff5ff;
  font-size: 0.78rem;
  font-weight: 900;
}

.timeline-step h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.timeline-step p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.lab-section {
  display: grid;
  grid-template-columns: minmax(430px, 1fr) minmax(0, 0.8fr);
  gap: clamp(28px, 6vw, 70px);
  align-items: center;
  padding: 104px 0;
}

.lab-visual {
  position: relative;
  height: clamp(360px, 44vw, 500px);
  border: 1px solid rgba(13, 79, 215, 0.14);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 50%, rgba(23, 183, 255, 0.16), transparent 17rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(239, 247, 255, 0.9));
  box-shadow: 0 18px 56px rgba(5, 30, 78, 0.1);
  overflow: hidden;
}

.lab-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.lab-lines path {
  fill: none;
  stroke: rgba(13, 79, 215, 0.34);
  stroke-dasharray: 8 10;
  stroke-linecap: round;
  stroke-width: 2;
  animation: dashMove 9s linear infinite;
}

.lab-node {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.node-core {
  top: 50%;
  left: 50%;
  width: 148px;
  height: 148px;
  border: 1px solid rgba(13, 79, 215, 0.18);
  background: #fff;
  box-shadow: 0 24px 70px rgba(5, 30, 78, 0.16);
  transform: translate(-50%, -50%);
}

.node-core img {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  object-fit: cover;
}

.lab-node:not(.node-core) {
  min-width: 106px;
  min-height: 106px;
  padding: 12px;
  border: 1px solid rgba(13, 79, 215, 0.22);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 34px rgba(5, 30, 78, 0.1);
  font-size: 0.84rem;
  font-weight: 900;
  text-align: center;
  transition: transform 190ms ease, border-color 190ms ease, background 190ms ease, color 190ms ease;
}

.lab-node:not(.node-core):hover,
.lab-node:not(.node-core):focus-visible,
.lab-node:not(.node-core).is-active {
  border-color: rgba(13, 79, 215, 0.45);
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  outline: none;
  transform: translateY(-3px);
}

.node-1 {
  top: 16%;
  left: 10%;
}

.node-2 {
  top: 15%;
  right: 8%;
}

.node-3 {
  bottom: 15%;
  left: 9%;
}

.node-4 {
  right: 8%;
  bottom: 16%;
}

.lab-copy p {
  margin-top: 16px;
}

.lab-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.lab-stack span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(13, 79, 215, 0.16);
  border-radius: 999px;
  color: rgba(6, 18, 45, 0.7);
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
  font-weight: 900;
}

.scope-section {
  padding: 96px 0;
  background: #f5f9ff;
}

.scope-layout,
.appointment-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(390px, 1fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
}

.scope-copy p,
.appointment-copy p {
  margin-top: 16px;
}

.scope-note {
  margin-top: 24px;
  padding: 18px;
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  color: rgba(6, 18, 45, 0.72);
  background: #fff;
  box-shadow: 0 16px 40px rgba(5, 30, 78, 0.08);
}

.scope-builder,
.appointment-form {
  border: 1px solid rgba(13, 79, 215, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 60px rgba(5, 30, 78, 0.12);
}

.scope-builder {
  padding: 22px;
}

.builder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.builder-head span {
  color: rgba(6, 18, 45, 0.64);
  font-weight: 900;
}

.builder-head output {
  padding: 8px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue-deep);
  font-size: 0.78rem;
  font-weight: 900;
}

.scope-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.scope-options label {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(13, 79, 215, 0.12);
  border-radius: 8px;
  color: rgba(6, 18, 45, 0.72);
  background: #fff;
  font-weight: 850;
}

.scope-options input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.range-control {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.range-control label {
  color: rgba(6, 18, 45, 0.72);
  font-weight: 900;
}

.range-control input {
  width: 100%;
  accent-color: var(--blue);
}

.range-labels,
.scope-output {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.range-labels {
  color: rgba(6, 18, 45, 0.55);
  font-size: 0.78rem;
  font-weight: 800;
}

.scope-output {
  margin-top: 18px;
}

.scope-output div {
  flex: 1;
  min-height: 88px;
  padding: 16px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
}

.scope-output div:nth-child(2) {
  background: linear-gradient(135deg, #06372f, var(--teal));
}

.scope-output span,
.scope-output strong {
  display: block;
}

.scope-output span {
  opacity: 0.76;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.scope-output strong {
  margin-top: 6px;
  font-size: 1.05rem;
  line-height: 1.16;
}

.appointment-section {
  padding: 104px 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(239, 247, 255, 0.82)),
    url("assets/zafiro-tarjeta-frontal.png") center / cover no-repeat;
}

.contact-lines {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.contact-lines a,
.contact-lines span {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  color: rgba(6, 18, 45, 0.74);
  font-weight: 850;
}

.contact-lines svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--blue);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.appointment-form {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.appointment-form label {
  display: grid;
  gap: 7px;
  color: rgba(6, 18, 45, 0.7);
  font-size: 0.9rem;
  font-weight: 900;
}

.appointment-form input,
.appointment-form select,
.appointment-form textarea {
  width: 100%;
  border: 1px solid rgba(13, 79, 215, 0.14);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.appointment-form input,
.appointment-form select {
  min-height: 48px;
  padding: 0 13px;
}

.appointment-form textarea {
  min-height: 148px;
  padding: 13px;
  resize: vertical;
}

.appointment-form input:focus,
.appointment-form select:focus,
.appointment-form textarea:focus {
  border-color: rgba(13, 79, 215, 0.48);
  box-shadow: 0 0 0 4px rgba(13, 79, 215, 0.1);
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 2px;
}

.form-footer p {
  max-width: 340px;
  margin: 0;
  color: rgba(6, 18, 45, 0.58);
  font-size: 0.88rem;
  font-weight: 700;
}

.form-result {
  display: none;
  padding: 14px;
  border: 1px solid rgba(31, 182, 106, 0.24);
  border-radius: 8px;
  color: #075536;
  background: rgba(31, 182, 106, 0.1);
  font-weight: 800;
}

.form-result.is-visible {
  display: block;
}

.form-result a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px max(20px, calc((100vw - var(--max)) / 2));
  color: rgba(255, 255, 255, 0.74);
  background: #06122d;
}

.site-footer div {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 900;
}

.site-footer img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.site-footer p {
  margin: 0;
  text-align: right;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes scanLine {
  0% {
    transform: translateX(-120%);
  }
  55%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes rotateRing {
  to {
    transform: rotate(360deg);
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@keyframes dashMove {
  to {
    stroke-dashoffset: -120;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1020px) {
  .hero-shell,
  .section-heading,
  .method-layout,
  .lab-section,
  .scope-layout,
  .appointment-layout {
    grid-template-columns: 1fr;
  }

  .signal-panel,
  .method-copy {
    position: relative;
    top: auto;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lab-section {
    padding-top: 78px;
  }
}

@media (max-width: 760px) {
  .site-header {
    top: 10px;
    width: min(calc(100% - 20px), var(--max));
  }

  .brand-mark span {
    max-width: 156px;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
  }

  .main-nav {
    position: fixed;
    top: 86px;
    right: 10px;
    left: 10px;
    display: grid;
    gap: 6px;
    padding: 10px;
    border: 1px solid rgba(13, 79, 215, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 60px rgba(5, 30, 78, 0.16);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .main-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav a {
    min-height: 46px;
  }

  .hero-section {
    min-height: auto;
    padding: 108px 16px 44px;
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(249, 251, 255, 0.96) 0%, rgba(249, 251, 255, 0.82) 100%),
      url("assets/zafiro-tarjeta-frontal.png") center / cover no-repeat;
  }

  .hero-copy h1 {
    font-size: clamp(2.7rem, 17vw, 4.9rem);
  }

  .hero-actions,
  .form-footer,
  .scope-output,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .signal-panel {
    min-height: 0;
  }

  .signal-grid,
  .form-grid,
  .scope-options {
    grid-template-columns: 1fr;
  }

  .section-wrap {
    width: min(calc(100% - 28px), var(--max));
  }

  .services-section,
  .method-section,
  .scope-section,
  .appointment-section {
    padding: 72px 0;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 280px;
  }

  .service-detail {
    grid-template-columns: 1fr;
    padding: 22px;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(239, 247, 255, 0.9)),
      url("assets/zafiro-tarjeta-atras.png") center / cover no-repeat;
  }

  .timeline-step {
    padding: 68px 20px 22px;
  }

  .lab-visual {
    height: 420px;
  }

  .lab-node:not(.node-core) {
    min-width: 88px;
    min-height: 88px;
    font-size: 0.74rem;
  }

  .node-core {
    width: 122px;
    height: 122px;
  }

  .node-core img {
    width: 98px;
    height: 98px;
  }

  .site-footer p {
    text-align: left;
  }
}

@media (max-width: 430px) {
  .brand-mark span {
    max-width: 168px;
  }

  .hero-copy h1 {
    font-size: 2.85rem;
  }

  .signal-panel,
  .scope-builder,
  .appointment-form {
    padding: 16px;
  }

  .code-stream code {
    font-size: 0.78rem;
  }

  .lab-visual {
    height: 380px;
  }

  .node-1 {
    left: 4%;
  }

  .node-2 {
    right: 4%;
  }

  .node-3 {
    left: 4%;
  }

  .node-4 {
    right: 4%;
  }
}
