/*
  ORQUESTIA — estilos compartidos ES/CA
  EDITAR AQUÍ: variables globales de marca y layout.
*/
:root {
  --color-ink: #0a0a0a;
  --color-white: #ffffff;
  --color-bg: #f7f7f4;
  --color-surface: #ffffff;
  --color-muted: #62666d;
  --color-border: #dfe1e5;
  --color-border-strong: #c8cbd1;
  --color-accent: #3157d5;
  --color-accent-dark: #2442a8;
  --color-accent-soft: #eef2ff;
  --color-success: #176b45;
  --color-success-bg: #edf8f2;
  --color-error: #a62424;
  --color-error-bg: #fff1f1;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: 1220px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --shadow-sm: 0 8px 30px rgba(10, 10, 10, 0.06);
  --shadow-md: 0 18px 55px rgba(10, 10, 10, 0.09);
  --transition: 180ms ease;
  --section-space: clamp(4.5rem, 8vw, 8rem);
  --header-height: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--color-ink);
  background: var(--color-bg);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

p,
h1,
h2,
h3,
h4 {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  line-height: 1.12;
  letter-spacing: -0.025em;
}

h1 {
  margin-bottom: 1.35rem;
  max-width: 12ch;
  font-size: clamp(2.65rem, 6vw, 5.35rem);
  font-weight: 650;
}

h2 {
  margin-bottom: 1.1rem;
  font-size: clamp(2rem, 4.1vw, 3.65rem);
  font-weight: 640;
}

h3 {
  margin-bottom: 0.7rem;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 640;
}

::selection {
  color: var(--color-white);
  background: var(--color-accent);
}

:focus-visible {
  outline: 3px solid rgba(49, 87, 213, 0.42);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-160%);
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--color-white);
  background: var(--color-ink);
  font-weight: 700;
  text-decoration: none;
  transition: transform var(--transition);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-space);
}

.section--white {
  background: var(--color-white);
}

.section--dark {
  color: var(--color-white);
  background: var(--color-ink);
}

.section--compact {
  padding-block: clamp(3rem, 5vw, 4.75rem);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head p {
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
}

.section--dark .section-head p,
.section--dark .muted {
  color: #b9bcc3;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  color: var(--color-accent-dark);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--color-accent);
  content: "";
}

.section--dark .eyebrow {
  color: #aebeff;
}

.lead {
  color: var(--color-muted);
  font-size: clamp(1.05rem, 1.6vw, 1.27rem);
}

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

.kicker {
  max-width: 58ch;
  color: var(--color-muted);
  font-size: 1.1rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.72rem 1.05rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 720;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform var(--transition), background-color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.button:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.button--primary {
  color: var(--color-white);
  background: var(--color-accent);
  box-shadow: 0 8px 20px rgba(49, 87, 213, 0.2);
}

.button--primary:hover {
  background: var(--color-accent-dark);
  box-shadow: 0 10px 25px rgba(36, 66, 168, 0.26);
}

.button--secondary {
  border-color: var(--color-border-strong);
  color: var(--color-ink);
  background: transparent;
}

.button--secondary:hover {
  border-color: var(--color-ink);
  background: var(--color-white);
}

.button--light {
  color: var(--color-ink);
  background: var(--color-white);
}

.button svg {
  width: 1.05rem;
  height: 1.05rem;
}

.button[disabled] {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--color-accent-dark);
  font-weight: 720;
  text-decoration: none;
}

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

/* Header */
.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  min-height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: rgba(247, 247, 244, 0.96);
  transition: border-color var(--transition), box-shadow var(--transition), background-color var(--transition);
}

.site-header.is-scrolled {
  border-color: rgba(223, 225, 229, 0.88);
  background: rgba(247, 247, 244, 0.88);
  box-shadow: 0 10px 35px rgba(10, 10, 10, 0.06);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  min-height: var(--header-height);
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand img {
  width: 152px;
  height: auto;
}

.site-nav {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0 0 1rem;
}

.site-nav a {
  padding: 0.6rem 0;
  color: #34363a;
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--color-accent-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.25rem;
  border: 1px solid var(--color-border);
  border-radius: 9px;
  background: var(--color-white);
}

.language-switcher a,
.language-switcher span {
  display: inline-grid;
  min-width: 34px;
  min-height: 32px;
  place-items: center;
  border-radius: 7px;
  font-size: 0.75rem;
  font-weight: 780;
  text-decoration: none;
}

.language-switcher [aria-current="page"] {
  color: var(--color-white);
  background: var(--color-ink);
}

.header-cta {
  display: none;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  color: var(--color-ink);
  background: var(--color-white);
  cursor: pointer;
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle-lines {
  position: relative;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
  position: absolute;
  left: 0;
  content: "";
}

.nav-toggle-lines::before {
  top: -6px;
}

.nav-toggle-lines::after {
  top: 6px;
}

body.menu-open .nav-toggle-lines {
  background: transparent;
}

body.menu-open .nav-toggle-lines::before {
  top: 0;
  transform: rotate(45deg);
}

body.menu-open .nav-toggle-lines::after {
  top: 0;
  transform: rotate(-45deg);
}

.js .nav-toggle {
  display: grid;
}

.js .site-nav {
  display: none;
}

.js body.menu-open .site-nav {
  position: absolute;
  top: calc(100% + 1px);
  right: 0;
  left: 0;
  display: flex;
  max-height: calc(100vh - var(--header-height));
  overflow-y: auto;
  padding: 1rem max(1rem, calc((100% - var(--container)) / 2));
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
  box-shadow: var(--shadow-md);
}

.js body.menu-open .site-nav a {
  padding: 0.85rem 0;
}

/* Hero */
.hero {
  position: relative;
  overflow: clip;
  padding-block: clamp(4.25rem, 8vw, 7rem) clamp(4.5rem, 9vw, 8.5rem);
}

.hero::before {
  position: absolute;
  top: -26rem;
  right: -22rem;
  width: 46rem;
  height: 46rem;
  border: 1px solid rgba(49, 87, 213, 0.1);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-copy .lead {
  max-width: 62ch;
  margin-bottom: 1.8rem;
}

.hero-trust {
  margin: 1rem 0 0;
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 620;
}

.hero-visual-wrap {
  position: relative;
  min-height: 360px;
}

.orchestration-visual {
  position: absolute;
  inset: 0;
  display: grid;
  min-height: 360px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 28px;
  background:
    radial-gradient(circle at center, rgba(49, 87, 213, 0.07), transparent 48%),
    linear-gradient(rgba(49, 87, 213, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(49, 87, 213, 0.04) 1px, transparent 1px),
    var(--color-white);
  background-size: auto, 38px 38px, 38px 38px, auto;
  box-shadow: var(--shadow-sm);
}

.orchestration-visual::before {
  position: absolute;
  width: min(70%, 320px);
  aspect-ratio: 1;
  border: 1px dashed rgba(49, 87, 213, 0.18);
  border-radius: 50%;
  content: "";
}

.hero-connector-map {
  position: absolute;
  inset: 10% 12%;
  z-index: 1;
}

.hero-ring {
  fill: rgba(49, 87, 213, 0.04);
  stroke: rgba(49, 87, 213, 0.22);
  stroke-width: 1;
  stroke-dasharray: 2.2 2.2;
}

.connector-path {
  fill: none;
  stroke: rgba(49, 87, 213, 0.7);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 2 5;
  animation: data-flow-path 4.4s linear infinite;
}

.connector-path--2 { animation-delay: -0.8s; }
.connector-path--3 { animation-delay: -1.6s; }
.connector-path--4 { animation-delay: -2.4s; }

.hero-symbol {
  position: relative;
  z-index: 3;
  width: clamp(150px, 34vw, 200px);
  height: auto;
  filter: drop-shadow(0 18px 36px rgba(10, 10, 10, 0.12));
}

.visual-node {
  position: absolute;
  z-index: 2;
  display: grid;
  width: var(--size, 60px);
  height: var(--size, 60px);
  place-items: center;
  border: 1px solid rgba(49, 87, 213, 0.22);
  border-radius: 18px;
  color: var(--color-accent-dark);
  background: rgba(255,255,255,0.97);
  box-shadow: 0 10px 24px rgba(10, 10, 10, 0.08);
  animation: node-float 5.5s ease-in-out infinite;
}

.visual-node svg {
  width: 52%;
  height: 52%;
}

.visual-node--1 { top: 16%; left: 14%; --size: 62px; animation-delay: -0.7s; }
.visual-node--2 { top: 16%; right: 14%; --size: 62px; animation-delay: -1.5s; }
.visual-node--3 { right: 14%; bottom: 16%; --size: 62px; animation-delay: -2.3s; }
.visual-node--4 { bottom: 16%; left: 14%; --size: 62px; animation-delay: -3.1s; }

@keyframes node-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -6px, 0); }
}

@keyframes data-flow-path {
  0% { stroke-dashoffset: 18; }
  100% { stroke-dashoffset: 0; }
}

@keyframes data-flow {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

/* Cards and problem grid */
.problem-grid,
.benefit-grid,
.security-grid,
.process-examples {
  display: grid;
  gap: 1rem;
}

.card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: 0 1px 0 rgba(10, 10, 10, 0.02);
}

.problem-card {
  padding: 1.35rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.problem-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-sm);
}

.icon-box {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 1.15rem;
  place-items: center;
  border-radius: 11px;
  color: var(--color-accent-dark);
  background: var(--color-accent-soft);
}

.icon-box svg {
  width: 22px;
  height: 22px;
}

.problem-card p,
.benefit-item p,
.service-card p,
.security-item p,
.example-card p {
  margin-bottom: 0;
  color: var(--color-muted);
}

/* Value section */
.value-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.value-copy > p {
  max-width: 62ch;
}

.benefit-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 2rem;
}

.benefit-item {
  padding: 1rem;
}

.benefit-item strong {
  display: block;
  margin-bottom: 0.25rem;
}

.benefit-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: var(--color-accent);
}

.before-after {
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.flow-label {
  display: inline-flex;
  margin-bottom: 0.9rem;
  padding: 0.25rem 0.55rem;
  border-radius: 7px;
  color: var(--color-muted);
  background: #f0f1f2;
  font-size: 0.75rem;
  font-weight: 780;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.flow-label--after {
  color: var(--color-accent-dark);
  background: var(--color-accent-soft);
}

.flow-row {
  display: grid;
  gap: 0.55rem;
}

.flow-row--compact {
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
}

.flow-step {
  position: relative;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-bg);
  font-size: 0.9rem;
  font-weight: 650;
}

.flow-arrow {
  display: grid;
  place-items: center;
  color: var(--color-muted);
}

.flow-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.8rem;
  align-items: center;
  margin-block: 1.25rem;
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 720;
  text-transform: uppercase;
}

.flow-divider::before,
.flow-divider::after {
  height: 1px;
  background: var(--color-border);
  content: "";
}


.value-grid--compact {
  gap: 1.6rem;
}

.before-after--compact {
  display: grid;
  gap: 1rem;
}

.mini-flow-block {
  display: grid;
  gap: 0.7rem;
}

.mini-flow-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.flow-inline-arrow,
.compact-arrow {
  color: var(--color-muted);
  font-weight: 700;
}

.insurance-intro--compact {
  align-items: start;
}

.process-examples--compact {
  margin-top: 2rem;
}

.example-flow--compact {
  margin-top: 2.2rem;
}

.compact-insurance-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.compact-step {
  padding: 0.78rem 0.9rem;
  border: 1px solid rgba(223, 225, 229, 0.92);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
  font-weight: 650;
}

.insurance-other-sectors {
  margin-top: 1.5rem;
}

/* Services */
.services-grid {
  display: grid;
  gap: 1rem;
}

.service-card {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  overflow: hidden;
}

.service-card--primary {
  border-color: rgba(49, 87, 213, 0.35);
}

.service-number {
  display: inline-grid;
  width: 36px;
  height: 36px;
  margin-bottom: 1.4rem;
  place-items: center;
  border-radius: 10px;
  color: var(--color-white);
  background: var(--color-accent);
  font-size: 0.86rem;
  font-weight: 800;
}

.service-card--secondary .service-number {
  color: var(--color-ink);
  background: #e9eaec;
}

.service-list,
.check-list {
  display: grid;
  gap: 0.7rem;
  margin: 1.25rem 0 1.5rem;
  padding: 0;
  list-style: none;
}

.service-list li,
.check-list li {
  position: relative;
  padding-left: 1.55rem;
  color: #33363a;
}

.service-list li::before,
.check-list li::before {
  position: absolute;
  top: 0.5em;
  left: 0;
  width: 0.75rem;
  height: 0.75rem;
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  content: "";
}

.service-result {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.service-result strong {
  display: block;
  margin-bottom: 0.3rem;
}

.service-card .text-link {
  margin-top: 1.15rem;
}

/* Insurance */
.insurance-intro {
  display: grid;
  gap: 2rem;
  align-items: center;
}

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

.signal-item {
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-white);
}

.signal-item strong {
  display: block;
  font-size: 0.96rem;
}

.process-examples {
  margin-top: 2.5rem;
}

.example-card {
  padding: 1.1rem;
}

.example-card h3 {
  font-size: 1.08rem;
}

.example-flow {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: clamp(1.2rem, 4vw, 2.4rem);
  border: 1px solid rgba(49, 87, 213, 0.28);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(49, 87, 213, 0.055), rgba(255, 255, 255, 0.92));
}

.example-flow-head {
  max-width: 760px;
  margin-bottom: 1.5rem;
}

.example-flow-head p {
  color: var(--color-muted);
}

.numbered-flow {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  counter-reset: flow;
  list-style: none;
}

.numbered-flow li {
  position: relative;
  min-height: 50px;
  padding: 0.75rem 0.8rem 0.75rem 3.35rem;
  border: 1px solid rgba(223, 225, 229, 0.92);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.9);
  counter-increment: flow;
}

.numbered-flow li::before {
  position: absolute;
  top: 0.65rem;
  left: 0.7rem;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 9px;
  color: var(--color-white);
  background: var(--color-accent);
  content: counter(flow, decimal-leading-zero);
  font-size: 0.7rem;
  font-weight: 800;
}

.human-note {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin-top: 1.25rem;
  padding: 1rem;
  border-left: 3px solid var(--color-accent);
  background: var(--color-white);
  color: #34363a;
}

.human-note svg {
  flex: 0 0 22px;
  margin-top: 0.15rem;
  color: var(--color-accent-dark);
}

/* Method */
.method-section {
  position: relative;
  overflow: hidden;
}

.method-section::after {
  position: absolute;
  z-index: 0;
  right: -14rem;
  bottom: -18rem;
  width: 38rem;
  height: 38rem;
  border: 1px dashed rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.method-map {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.85rem;
}

.method-step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  padding: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.055);
}

.method-step-letter {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(174, 190, 255, 0.6);
  border-radius: 50%;
  color: #c5d0ff;
  background: rgba(49, 87, 213, 0.2);
  font-weight: 820;
}

.method-step h3 {
  margin-bottom: 0.35rem;
  color: var(--color-white);
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.method-step p {
  margin: 0;
  color: #b9bcc3;
  font-size: 0.93rem;
}

.method-continuity {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 0.8rem;
  align-items: center;
  max-width: 780px;
  margin-top: 1.5rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  color: #d8dae0;
  background: rgba(255, 255, 255, 0.045);
}

.method-continuity svg {
  flex: 0 0 24px;
  color: #aebeff;
}

/* Security */
.security-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

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

.security-item {
  padding: 1rem;
}

.security-item svg {
  width: 22px;
  height: 22px;
  margin-bottom: 0.7rem;
  color: var(--color-accent-dark);
}

.security-item strong {
  display: block;
  margin-bottom: 0.25rem;
  line-height: 1.25;
}

.security-disclaimer {
  padding: 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
}

.security-disclaimer p:last-child {
  margin-bottom: 0;
}

/* Technology strip */
.tech-band {
  border-block: 1px solid var(--color-border);
  background: var(--color-white);
}

.tech-layout {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.tech-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tech-list li {
  display: grid;
  min-height: 108px;
  align-content: center;
  justify-items: center;
  gap: 0.65rem;
  padding: 1rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  color: var(--color-accent);
  background: var(--color-bg);
  text-align: center;
  transition: transform var(--transition-base), border-color var(--transition-base), background-color var(--transition-base), box-shadow var(--transition-base);
}

.tech-list li:hover,
.tech-list li:focus-within {
  transform: translateY(-2px);
  border-color: rgba(49, 87, 213, 0.35);
  background: rgba(49, 87, 213, 0.04);
  box-shadow: var(--shadow-sm);
}

.tech-list li svg {
  width: 28px;
  height: 28px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tech-label {
  display: block;
  max-width: 12ch;
  color: #3b3e43;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.25;
  text-wrap: balance;
}

.tech-note {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.94rem;
}


/* FAQ */
.faq-list {
  display: grid;
  max-width: 900px;
  margin-inline: auto;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: 13px;
  overflow: hidden;
  background: var(--color-white);
}

.faq-question {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 0;
  color: var(--color-ink);
  background: transparent;
  cursor: pointer;
  font-weight: 720;
  line-height: 1.35;
  text-align: left;
}

.faq-question:hover {
  background: #fafafa;
}

.faq-icon {
  position: relative;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}

.faq-icon::before,
.faq-icon::after {
  position: absolute;
  top: 8px;
  left: 2px;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-accent);
  content: "";
  transition: transform var(--transition);
}

.faq-icon::after {
  transform: rotate(90deg);
}

.faq-question[aria-expanded="true"] .faq-icon::after {
  transform: rotate(0);
}

.faq-panel {
  padding: 0 1.1rem 1rem;
  color: var(--color-muted);
}

.faq-panel p:last-child {
  margin-bottom: 0;
}

/* Contact */
.contact-section {
  position: relative;
}

.contact-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.contact-copy {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

.contact-points {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}

.contact-points li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}

.contact-points svg {
  flex: 0 0 20px;
  margin-top: 0.2rem;
  color: var(--color-accent);
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-accent-dark);
  font-weight: 720;
}

.contact-form-wrap {
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}

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

.form-field {
  display: grid;
  gap: 0.4rem;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label,
.field-label {
  color: #25272a;
  font-size: 0.9rem;
  font-weight: 700;
}

.optional {
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 550;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.72rem 0.8rem;
  border: 1px solid var(--color-border-strong);
  border-radius: 10px;
  color: var(--color-ink);
  background: var(--color-white);
  transition: border-color var(--transition), box-shadow var(--transition), background-color var(--transition);
}

.form-field textarea {
  min-height: 128px;
  resize: vertical;
}

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
  border-color: #aeb2ba;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--color-accent);
  outline: 0;
  box-shadow: 0 0 0 4px rgba(49, 87, 213, 0.12);
}

.form-field [aria-invalid="true"] {
  border-color: var(--color-error);
  background: var(--color-error-bg);
}

.field-error {
  min-height: 1.2em;
  margin: 0;
  color: var(--color-error);
  font-size: 0.8rem;
  line-height: 1.35;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.radio-choice {
  position: relative;
}

.radio-choice input {
  position: absolute;
  opacity: 0;
}

.radio-choice label {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--color-border-strong);
  border-radius: 9px;
  cursor: pointer;
  background: var(--color-white);
}

.radio-choice input:focus-visible + label {
  outline: 3px solid rgba(49, 87, 213, 0.42);
  outline-offset: 2px;
}

.radio-choice input:checked + label {
  border-color: var(--color-accent);
  color: var(--color-accent-dark);
  background: var(--color-accent-soft);
  box-shadow: inset 0 0 0 1px var(--color-accent);
}

.checkbox-field {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
}

.checkbox-field input {
  width: 20px;
  height: 20px;
  margin-top: 0.15rem;
  accent-color: var(--color-accent);
}

.checkbox-field label {
  color: #33363a;
  font-size: 0.88rem;
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
}

.form-note {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.8rem;
}

.form-status {
  display: none;
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 650;
}

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

.form-status.is-success {
  border: 1px solid rgba(23, 107, 69, 0.25);
  color: var(--color-success);
  background: var(--color-success-bg);
}

.form-status.is-error {
  border: 1px solid rgba(166, 36, 36, 0.25);
  color: var(--color-error);
  background: var(--color-error-bg);
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Footer */
.site-footer {
  padding-block: 3.5rem 1.5rem;
  color: var(--color-white);
  background: var(--color-ink);
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.footer-brand img {
  width: min(240px, 72vw);
  height: auto;
  margin-bottom: 1rem;
}

.footer-brand p {
  max-width: 36ch;
  color: #b9bcc3;
}

.footer-nav,
.footer-legal {
  display: grid;
  gap: 0.55rem;
}

.footer-nav a,
.footer-legal a,
.footer-email {
  color: #d8dae0;
  text-decoration: none;
}

.footer-nav a:hover,
.footer-legal a:hover,
.footer-email:hover {
  color: var(--color-white);
  text-decoration: underline;
}

.footer-heading {
  margin-bottom: 0.8rem;
  color: var(--color-white);
  font-size: 0.82rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  color: #969aa3;
  font-size: 0.82rem;
}

.footer-language {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.footer-language a,
.footer-language span {
  color: #d8dae0;
}

.footer-language [aria-current="page"] {
  color: var(--color-ink);
  background: var(--color-white);
}

/* Legal and 404 pages */
.simple-header {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}

.simple-header .header-inner {
  flex-wrap: nowrap;
}

.legal-main,
.error-main {
  min-height: 68vh;
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.legal-shell {
  display: grid;
  max-width: 900px;
  gap: 2rem;
}

.legal-notice {
  padding: 1rem 1.1rem;
  border: 1px solid #e9b7b7;
  border-radius: 12px;
  color: #7f1d1d;
  background: #fff4f4;
  font-weight: 700;
}

.legal-content {
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-white);
}

.legal-content h2 {
  margin-top: 2rem;
  font-size: 1.55rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  margin-top: 1.4rem;
  font-size: 1.15rem;
}

.legal-content p,
.legal-content li {
  color: #41444a;
}

.placeholder {
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  color: #7f1d1d;
  background: #ffe8e8;
  font-weight: 750;
}

.error-card {
  max-width: 720px;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.error-code {
  margin-bottom: 0.8rem;
  color: var(--color-accent);
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 680;
  line-height: 0.9;
}

/* Progressive reveal */
.js.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 520ms ease, transform 520ms ease;
}

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

/* Responsive */
@media (min-width: 560px) {
  .container {
    width: min(calc(100% - 3rem), var(--container));
  }

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

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

  .tech-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 760px) {
  .header-cta {
    display: inline-flex;
    min-height: 42px;
    padding: 0.6rem 0.8rem;
    font-size: 0.84rem;
  }

  .hero-grid,
  .value-grid,
  .insurance-intro,
  .security-layout,
  .contact-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  }

  .hero-visual-wrap,
  .orchestration-visual {
    min-height: 480px;
  }

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

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

  .tech-layout {
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  }

  .tech-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: minmax(260px, 1.4fr) repeat(2, minmax(140px, 0.6fr));
  }
}

@media (min-width: 960px) {
  .header-inner {
    flex-wrap: nowrap;
  }

  .js .nav-toggle,
  .nav-toggle {
    display: none;
  }

  .site-nav,
  .js .site-nav {
    display: flex;
    width: auto;
    flex: 1 1 auto;
    flex-direction: row;
    justify-content: center;
    gap: clamp(0.3rem, 1vw, 1rem);
    padding: 0;
  }

  .site-nav a {
    padding: 0.7rem 0.35rem;
  }

  .header-actions {
    flex: 0 0 auto;
  }

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

  .process-examples--compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .method-map {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .method-step:nth-child(n+5) {
    transform: translateX(5%);
  }

  .process-examples {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .numbered-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .numbered-flow li {
    min-height: 102px;
  }

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

@media (min-width: 1180px) {
  .brand img {
    width: 168px;
  }

  .header-cta {
    padding-inline: 1rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(450px, 0.92fr);
  }
}

@media (max-width: 759px) {
  .contact-copy {
    position: static;
  }

  .benefit-grid,
  .security-grid {
    grid-template-columns: 1fr;
  }

  .header-actions .language-switcher {
    display: none;
  }

  .js body.menu-open .site-nav::after {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--color-border);
  }
}

@media (max-width: 430px) {
  .brand img {
    width: 138px;
  }

  .button-row .button {
    width: 100%;
  }

  .hero {
    padding-top: 3.4rem;
  }

  .hero-visual-wrap,
  .orchestration-visual {
    min-height: 330px;
  }

  .insurance-signal {
    grid-template-columns: 1fr;
  }

  .form-footer .button {
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .visual-node,
  .data-line {
    animation: none !important;
  }

  .js.reveal-ready .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Acciones dentro del menú compacto (idioma + CTA). */
.nav-mobile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.7rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--color-border);
}

.nav-mobile-actions .button {
  min-height: 42px;
  font-size: 0.86rem;
}

@media (min-width: 760px) {
  .nav-mobile-actions {
    display: none;
  }
}


@media (max-width: 479px) {
  .visual-node {
    width: 54px;
    height: 54px;
    border-radius: 16px;
  }

  .visual-node--1 { top: 14%; left: 8%; }
  .visual-node--2 { top: 14%; right: 8%; }
  .visual-node--3 { bottom: 14%; right: 8%; }
  .visual-node--4 { bottom: 14%; left: 8%; }

  .hero-connector-map {
    inset: 12% 10%;
  }

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

  .flow-row--compact .flow-arrow {
    transform: rotate(90deg);
  }
}

/* =============================================================
   ORQUESTIA REFINEMENTS — compact sections, hero, tech grid, booking
   ============================================================= */

.hero-visual-wrap {
  min-height: clamp(360px, 48vw, 430px);
}

.orchestration-visual {
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(49, 87, 213, 0.08), transparent 42%),
    linear-gradient(rgba(49, 87, 213, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(49, 87, 213, 0.035) 1px, transparent 1px),
    var(--color-white);
  background-size: auto, 38px 38px, 38px 38px, auto;
}

.orchestration-visual::before {
  display: none;
}

.hero-orbit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-orbit circle,
.hero-orbit path {
  fill: none;
  stroke: rgba(49, 87, 213, 0.22);
  stroke-width: 1.5;
  stroke-linecap: round;
}

.hero-symbol {
  width: clamp(144px, 31vw, 210px);
  padding: 0;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 10px 24px rgba(10, 10, 10, 0.08));
}

.visual-node {
  width: var(--size, 72px);
  height: var(--size, 72px);
  border-radius: 20px;
  border-color: rgba(49, 87, 213, 0.22);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 20px rgba(10, 10, 10, 0.08);
  animation-duration: 6.2s;
}

.visual-node svg {
  width: 52%;
  height: 52%;
}

.visual-node--mail { top: 9%; left: 16%; }
.visual-node--docs { top: 9%; right: 16%; }
.visual-node--calendar { top: 40%; left: 7%; }
.visual-node--crm { top: 40%; right: 7%; }
.visual-node--database { bottom: 9%; left: 22%; }
.visual-node--automation { bottom: 9%; right: 22%; }

.value-grid--compact {
  align-items: start;
}

.before-after--compact {
  display: grid;
  gap: 1rem;
}

.mini-flow-block {
  display: grid;
  gap: 0.8rem;
}

.mini-flow-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.flow-inline-arrow {
  color: var(--color-muted);
  font-weight: 800;
}

.insurance-intro--compact {
  gap: 1.25rem;
}

.process-examples--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.8rem;
}

.example-flow--compact {
  margin-top: 2rem;
}

.compact-insurance-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.compact-step {
  flex: 1 1 180px;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  font-weight: 650;
  font-size: 0.92rem;
}

.compact-arrow {
  color: var(--color-accent);
  font-size: 1.1rem;
  font-weight: 800;
}

.insurance-other-sectors {
  margin-top: 1.25rem;
}

.tech-layout {
  gap: 2rem;
}

.tech-list {
  width: 100%;
  max-width: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tech-list li {
  min-height: 108px;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.95rem 0.6rem;
  border-radius: 18px;
  text-align: center;
}

.tech-list li svg {
  width: 30px;
  height: 30px;
}

.tech-list li span {
  color: #31343a;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.25;
}

.schedule-grid {
  display: grid;
  gap: 1rem;
}

.schedule-note {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
}

@media (min-width: 640px) {
  .process-examples--compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tech-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (min-width: 1040px) {
  .tech-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 959px) {
  .hero-visual-wrap {
    max-width: 640px;
    margin-inline: auto;
  }
}

@media (max-width: 639px) {
  .orchestration-visual {
    min-height: 330px;
  }

  .visual-node {
    --size: 60px;
    border-radius: 18px;
  }

  .visual-node--mail { top: 8%; left: 10%; }
  .visual-node--docs { top: 8%; right: 10%; }
  .visual-node--calendar { top: 40%; left: 2.5%; }
  .visual-node--crm { top: 40%; right: 2.5%; }
  .visual-node--database { bottom: 9%; left: 15%; }
  .visual-node--automation { bottom: 9%; right: 15%; }

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

  .process-examples--compact {
    grid-template-columns: 1fr;
  }

  .mini-flow-steps,
  .compact-insurance-flow {
    align-items: stretch;
  }

  .flow-inline-arrow,
  .compact-arrow {
    display: none;
  }

  .compact-step,
  .flow-step {
    width: 100%;
  }
}


@media (max-width: 759px) {
  .mini-flow-steps,
  .compact-insurance-flow {
    display: grid;
    grid-template-columns: 1fr;
  }

  .flow-inline-arrow,
  .compact-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }
}

/* =============================================================
   ORQUESTIA v4 refinements
   ============================================================= */

/* Favicon is handled in assets generation; visual section styles below */

.orchestration-visual--refined {
  min-height: clamp(400px, 46vw, 520px);
  background:
    radial-gradient(circle at center, rgba(49, 87, 213, 0.09), transparent 32%),
    linear-gradient(rgba(49, 87, 213, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(49, 87, 213, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  background-size: auto, 38px 38px, 38px 38px, auto;
}

.orchestration-visual--refined .hero-orbit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.orchestration-visual--refined .hero-orbit circle,
.orchestration-visual--refined .hero-orbit path {
  fill: none;
  stroke: rgba(49, 87, 213, 0.19);
  stroke-width: 1.6;
  stroke-linecap: round;
}

.hero-center {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: grid;
  width: clamp(170px, 24vw, 220px);
  height: clamp(170px, 24vw, 220px);
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(49, 87, 213, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 40px rgba(12, 22, 48, 0.08);
}

.hero-center::before {
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(49, 87, 213, 0.18);
  border-radius: 50%;
  content: "";
}

.hero-center .hero-symbol {
  position: relative;
  width: 58%;
  max-width: 128px;
  padding: 0;
  background: transparent;
  box-shadow: none;
  filter: none;
}

.orchestration-visual--refined .visual-node {
  position: absolute;
  z-index: 2;
  display: flex;
  width: 128px;
  min-height: 88px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 0.65rem;
  border: 1px solid rgba(49, 87, 213, 0.18);
  border-radius: 20px;
  color: var(--color-accent-dark);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 24px rgba(12, 22, 48, 0.08);
  animation: none;
}

.orchestration-visual--refined .visual-node svg {
  width: 28px;
  height: 28px;
}

.orchestration-visual--refined .visual-node span {
  color: #2f333a;
  font-size: 0.82rem;
  font-weight: 730;
  line-height: 1.18;
  text-align: center;
}

.orchestration-visual--refined .visual-node--mail {
  top: 6%;
  left: 50%;
  transform: translateX(-50%);
}

.orchestration-visual--refined .visual-node--docs {
  top: 18%;
  right: 5%;
}

.orchestration-visual--refined .visual-node--crm {
  top: 58%;
  right: 3%;
}

.orchestration-visual--refined .visual-node--automation {
  bottom: 6%;
  left: 50%;
  transform: translateX(-50%);
}

.orchestration-visual--refined .visual-node--database {
  top: 58%;
  left: 3%;
}

.orchestration-visual--refined .visual-node--calendar {
  top: 18%;
  left: 5%;
}

.value-grid--visual {
  align-items: start;
}

.before-after--diagram {
  display: grid;
  gap: 1rem;
}

.diagram-panel {
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(247,247,244,0.92) 100%);
}

.diagram-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.55rem;
  align-items: center;
}

.diagram-flow .flow-step {
  min-height: 72px;
  display: grid;
  place-items: center;
  padding: 0.8rem 0.65rem;
  text-align: center;
}

.diagram-flow .flow-arrow {
  display: grid;
  min-width: 16px;
  place-items: center;
  color: var(--color-accent);
  font-size: 1.05rem;
  font-weight: 800;
}

.insurance-intro--visual {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.insurance-copy {
  max-width: 68ch;
}

.insurance-signal--visual {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.insurance-signal--visual .signal-item {
  display: grid;
  gap: 0.55rem;
  padding: 1.05rem;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
}

.insurance-signal--visual .signal-item svg {
  width: 26px;
  height: 26px;
  color: var(--color-accent);
}

@media (min-width: 1040px) {
  .insurance-intro--visual {
    grid-template-columns: 1.05fr 1fr;
  }
}

@media (max-width: 1039px) {
  .orchestration-visual--refined .visual-node {
    width: 116px;
    min-height: 82px;
  }
}

@media (max-width: 767px) {
  .orchestration-visual--refined {
    min-height: 520px;
  }

  .hero-center {
    width: 150px;
    height: 150px;
  }

  .orchestration-visual--refined .visual-node {
    width: 112px;
    min-height: 78px;
    padding: 0.7rem 0.5rem;
    border-radius: 18px;
  }

  .orchestration-visual--refined .visual-node span {
    font-size: 0.74rem;
  }

  .orchestration-visual--refined .visual-node--mail {
    top: 5%;
  }

  .orchestration-visual--refined .visual-node--docs {
    top: 16%;
    right: 2%;
  }

  .orchestration-visual--refined .visual-node--calendar {
    top: 16%;
    left: 2%;
  }

  .orchestration-visual--refined .visual-node--crm {
    top: 61%;
    right: 1.5%;
  }

  .orchestration-visual--refined .visual-node--database {
    top: 61%;
    left: 1.5%;
  }

  .orchestration-visual--refined .visual-node--automation {
    bottom: 5%;
  }

  .diagram-flow {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .diagram-flow .flow-arrow {
    display: none;
  }

  .insurance-signal--visual {
    grid-template-columns: 1fr;
  }
}

/* =============================================================
   ORQUESTIA v5 refinements
   ============================================================= */

/* Hero: lines from logo to tool symbols, no text */
.orchestration-visual--refined .hero-orbit circle {
  display: none;
}

.orchestration-visual--refined .hero-orbit path {
  stroke: rgba(49, 87, 213, 0.32);
  stroke-width: 2.1;
}

.orchestration-visual--refined .hero-center {
  width: clamp(190px, 26vw, 250px);
  height: clamp(190px, 26vw, 250px);
}

.orchestration-visual--refined .hero-center .hero-symbol {
  width: 68%;
  max-width: 160px;
}

.orchestration-visual--refined .visual-node {
  width: 74px;
  min-height: 74px;
  padding: 0;
  border-radius: 50%;
  box-shadow: 0 14px 28px rgba(12, 22, 48, 0.08);
}

.orchestration-visual--refined .visual-node span {
  display: none;
}

.orchestration-visual--refined .visual-node svg {
  width: 30px;
  height: 30px;
}

.orchestration-visual--refined .visual-node--mail { top: 8%; left: 50%; transform: translateX(-50%); }
.orchestration-visual--refined .visual-node--docs { top: 22%; right: 12%; }
.orchestration-visual--refined .visual-node--crm { top: 62%; right: 10%; }
.orchestration-visual--refined .visual-node--automation { bottom: 8%; left: 50%; transform: translateX(-50%); }
.orchestration-visual--refined .visual-node--database { top: 62%; left: 10%; }
.orchestration-visual--refined .visual-node--calendar { top: 22%; left: 12%; }

/* Before/after section clearer and without overflowing text */
.before-after--diagram {
  gap: 1.15rem;
}

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

.diagram-flow--steps .flow-step {
  position: relative;
  min-height: 88px;
  padding: 0.95rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
  word-break: normal;
  overflow-wrap: anywhere;
}

.diagram-flow--steps .flow-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: -0.7rem;
  z-index: 1;
  color: var(--color-accent);
  font-size: 1.1rem;
  font-weight: 800;
  transform: translateY(-50%);
}

.diagram-flow .flow-arrow {
  display: none;
}

/* Insurance section more visual but different from icon repetition */
.insurance-signal--visual {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.signal-item--visual {
  position: relative;
  gap: 0.7rem;
  padding: 1.15rem 1.1rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  box-shadow: 0 10px 22px rgba(12, 22, 48, 0.04);
}

.signal-item--visual::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(90deg, rgba(49,87,213,0.92), rgba(49,87,213,0.32));
  content: "";
}

.signal-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 0.28rem 0.58rem;
  border-radius: 999px;
  background: rgba(49, 87, 213, 0.08);
  color: var(--color-accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signal-item--visual strong {
  font-size: 1.02rem;
  line-height: 1.3;
}

/* Insurance steps clearer */
.insurance-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 0;
  margin: 1.6rem 0 0;
  list-style: none;
}

.insurance-step-card {
  position: relative;
  display: grid;
  gap: 0.9rem;
  min-height: 132px;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 20px rgba(12, 22, 48, 0.05);
}

.step-number {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--color-accent);
  font-size: 0.92rem;
  font-weight: 800;
}

.insurance-step-card span:last-child {
  font-weight: 700;
  line-height: 1.35;
}

@media (max-width: 1040px) {
  .diagram-flow--steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .diagram-flow--steps .flow-step:nth-child(odd)::after {
    right: -0.75rem;
  }

  .diagram-flow--steps .flow-step:nth-child(even)::after {
    display: none;
  }

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

@media (max-width: 767px) {
  .orchestration-visual--refined {
    min-height: 470px;
  }

  .orchestration-visual--refined .hero-center {
    width: 160px;
    height: 160px;
  }

  .orchestration-visual--refined .visual-node {
    width: 64px;
    min-height: 64px;
  }

  .orchestration-visual--refined .visual-node svg {
    width: 26px;
    height: 26px;
  }

  .orchestration-visual--refined .visual-node--docs { right: 7%; }
  .orchestration-visual--refined .visual-node--calendar { left: 7%; }
  .orchestration-visual--refined .visual-node--crm { right: 6%; top: 66%; }
  .orchestration-visual--refined .visual-node--database { left: 6%; top: 66%; }

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

  .diagram-flow--steps .flow-step::after {
    display: none !important;
  }

  .insurance-signal--visual,
  .insurance-steps {
    grid-template-columns: 1fr;
  }
}


/* ORQUESTIA v6 small fixes */
.diagram-flow--steps {
  grid-template-columns: repeat(4, minmax(138px, 1fr));
}

.diagram-flow--steps .flow-step {
  font-size: 0.91rem;
  line-height: 1.22;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.orchestration-visual--refined .hero-orbit path {
  stroke: rgba(49, 87, 213, 0.4);
  stroke-width: 2.4;
}

@media (max-width: 767px) {
  .diagram-flow--steps .flow-step {
    font-size: 0.96rem;
  }
}


/* ORQUESTIA v7 corrections */
.before-after--diagram,
.diagram-panel,
.diagram-flow--steps {
  min-width: 0;
}

.before-after--diagram {
  overflow: hidden;
}

.diagram-panel {
  width: 100%;
  overflow: hidden;
}

.diagram-flow--steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.diagram-flow--steps .flow-step {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow-wrap: break-word;
  word-break: keep-all;
  padding-inline: 0.65rem;
}

.diagram-flow--steps .flow-step:not(:last-child)::after {
  right: -0.58rem;
}

.orchestration-visual--refined .hero-orbit path {
  stroke: rgba(49, 87, 213, 0.42);
  stroke-width: 2.5;
}


/* ORQUESTIA v8 — supplied hero artwork and wrench asset */
.hero-visual-wrap.hero-visual-image {
  position: relative;
  min-height: 0;
  width: 100%;
}

.hero-artwork {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(49, 87, 213, 0.10);
  border-radius: 28px;
  background: var(--color-white);
  box-shadow: 0 18px 44px rgba(12, 22, 48, 0.08);
}

.tech-list li .tool-icon-image {
  display: block;
  width: 31px;
  height: 31px;
  object-fit: contain;
}

@media (max-width: 639px) {
  .hero-artwork {
    border-radius: 20px;
  }
}


/* ORQUESTIA v9 — hero scale, arrows and wrench alignment */
.hero-visual-wrap.hero-visual-image {
  min-height: 0;
  aspect-ratio: 1.28 / 1;
  overflow: hidden;
  border-radius: 28px;
}

.hero-artwork {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.diagram-flow--steps .flow-step:not(:last-child)::after {
  right: auto;
  left: calc(100% + 0.45rem);
  transform: translate(-50%, -50%);
}

.tech-list li .tool-icon-image {
  width: 34px;
  height: 34px;
  object-fit: contain;
  object-position: center;
  transform: translateY(-1px);
}

@media (min-width: 1180px) {
  .hero-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(560px, 1.05fr);
    gap: clamp(2.5rem, 4.5vw, 4.5rem);
  }
}

@media (max-width: 759px) {
  .hero-visual-wrap.hero-visual-image {
    aspect-ratio: 1.3 / 1;
    border-radius: 20px;
  }
}


/* ORQUESTIA v10 — illustrative metrics and positive benefit checks */
.benefit-dot {
  position: relative;
  display: inline-grid;
  width: 20px;
  height: 20px;
  margin-right: 0.55rem;
  place-items: center;
  border-radius: 50%;
  color: var(--color-white);
  background: var(--color-accent);
  vertical-align: -0.2em;
}

.benefit-dot::before {
  content: "✓";
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
}

.diagram-panel-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.diagram-panel-head .flow-label {
  margin-bottom: 0;
}

.flow-metric {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.65rem;
  border-radius: 9px;
  font-size: 0.8rem;
  font-weight: 760;
  line-height: 1.2;
}

.flow-metric::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
}

.flow-metric--before {
  color: #555a63;
  background: #f0f1f2;
}

.flow-metric--before::before {
  background: #8a8f98;
}

.flow-metric--after {
  color: var(--color-accent-dark);
  background: var(--color-accent-soft);
}

.flow-metric--after::before {
  background: var(--color-accent);
}

@media (max-width: 639px) {
  .diagram-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .flow-metric {
    width: 100%;
  }
}


/* ORQUESTIA v11 tick alignment */
.benefit-item strong {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.25rem;
}
.benefit-dot {
  margin-right: 0;
  flex: 0 0 20px;
  vertical-align: middle;
}

/* ORQUESTIA v13 — larger desktop hero while preserving all key artwork */
@media (min-width: 1180px) {
  .hero-grid {
    grid-template-columns: minmax(0, 0.82fr) minmax(650px, 1.18fr);
    gap: clamp(1.75rem, 3vw, 3rem);
  }

  .hero-visual-wrap.hero-visual-image {
    width: 114%;
    max-width: 840px;
    justify-self: center;
    aspect-ratio: 1.33 / 1;
    transform: translateX(-2%);
  }

  .hero-visual-wrap.hero-visual-image .hero-artwork {
    object-fit: cover;
    object-position: center;
    transform: scale(1.035);
    transform-origin: center;
  }
}

@media (min-width: 960px) and (max-width: 1179px) {
  .hero-visual-wrap.hero-visual-image {
    width: 104%;
    max-width: 760px;
    justify-self: center;
  }
}


/* ORQUESTIA v14 — hero enlarged moderately without shifting left content */
@media (min-width: 1180px) {
  .hero-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(600px, 1.08fr);
    gap: clamp(2.2rem, 4vw, 3.8rem);
  }
  .hero-visual-wrap.hero-visual-image {
    width: 106%;
    max-width: 800px;
    justify-self: center;
    aspect-ratio: 1.24 / 1;
    transform: translateX(-0.5%);
  }
  .hero-visual-wrap.hero-visual-image .hero-artwork {
    object-fit: cover;
    object-position: center center;
    transform: scale(1.015);
    transform-origin: center center;
  }
}
@media (min-width: 960px) and (max-width: 1179px) {
  .hero-grid {
    gap: clamp(2rem, 3.4vw, 3rem);
  }
  .hero-visual-wrap.hero-visual-image {
    width: 101%;
    max-width: 730px;
    aspect-ratio: 1.25 / 1;
    justify-self: center;
  }
}

/* ORQUESTIA v15 — differentiated service palettes */
/* Diagnóstico: nueva paleta basada en #7baafd */
.service-card--primary {
  border-color: rgba(123, 170, 253, 0.72);
  background: linear-gradient(145deg, rgba(123, 170, 253, 0.13) 0%, rgba(255, 255, 255, 0.98) 48%);
}

.service-card--primary .service-number {
  color: #173763;
  background: #7baafd;
  box-shadow: 0 7px 18px rgba(123, 170, 253, 0.28);
}

.service-card--primary .service-list li::before {
  border-color: #6398f5;
  background: rgba(123, 170, 253, 0.14);
}

.service-card--primary .service-result {
  border-top-color: rgba(123, 170, 253, 0.38);
}

.service-card--primary .text-link {
  color: #356fcf;
}

/* Implementación: conserva la paleta azul que tenía Diagnóstico */
.service-card--secondary {
  border-color: rgba(49, 87, 213, 0.35);
}

.service-card--secondary .service-number {
  color: var(--color-white);
  background: var(--color-accent);
  box-shadow: 0 7px 18px rgba(49, 87, 213, 0.2);
}

.service-card--secondary .service-list li::before {
  border-color: var(--color-accent);
}


/* ORQUESTIA final — responsive hardening for Before/After */
@media (max-width: 767px) {
  .value-grid--visual,
  .before-after--diagram,
  .diagram-panel,
  .diagram-flow--steps {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }

  .diagram-flow--steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
  }

  .diagram-flow--steps .flow-step {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 68px;
    padding: 0.8rem 0.9rem;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
  }

  .diagram-flow--steps .flow-step::after {
    display: none !important;
  }

  .before-after--diagram {
    overflow: hidden;
    padding: 1rem;
  }

  .diagram-panel {
    overflow: hidden;
    padding: 0.85rem;
  }
}

@media (max-width: 430px) {
  .flow-metric {
    max-width: 100%;
    white-space: normal;
  }

  .benefit-item,
  .service-card,
  .faq-item,
  .contact-form-wrap {
    min-width: 0;
  }
}
