/* --- DATASOLARIS / V5: estética V3, contenido más completo, navegación inequívoca. --- */
:root {
  --ink: #283138;
  --muted: #5d6972;
  --dark: #252c31;
  --orange: #ee721d;
  --orange-text: #bc4b0b;
  --line: #e4eaec;
  --light: #f6f8f9;
  --max: 71rem;
  --header-height: 4.4rem;
  font-synthesis: none;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 0.95rem);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font:
    400 1rem/1.64 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid #2373b6;
  outline-offset: 3px;
}
.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon {
  width: 1.6rem;
  height: 1.6rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}
.wrapper {
  width: min(calc(100% - 3.2rem), var(--max));
  margin-inline: auto;
}
.anchor {
  position: relative;
  scroll-margin-top: calc(var(--header-height) + 0.95rem);
  transition: box-shadow 0.24s ease;
}
.anchor.is-targeted {
  /* --- The active marker is positioned beside the content, not the viewport. --- */
  box-shadow: none;
}
/* --- El apartado seleccionado se indica en el menú y en el borde de sección, sin subrayar los títulos. --- */
.anchor:focus {
  outline: 0;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Header y navegación. --- */
.skip-link {
  position: fixed;
  top: -6rem;
  left: 1rem;
  z-index: 101;
  background: white;
  padding: 0.5rem 1rem;
  border-radius: 0.35rem;
}
.skip-link:focus {
  top: 0.75rem;
}
.header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  height: var(--header-height);
  background: linear-gradient(115deg, #343f45, #1d252b 78%);
  box-shadow: 0 2px 12px #121b2240;
}
.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  gap: 1.5rem;
}
.logo {
  flex: 0 0 auto;
}
.logo img {
  width: 14.4rem;
  height: auto;
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.3rem, 1.2vw, 0.95rem);
  height: 100%;
}
.nav a {
  color: #e7ecef;
  font-size: 0.91rem;
  line-height: 1.3;
  border-radius: 0.4rem;
  padding: 0.65rem 0.82rem;
  border-bottom: 2px solid transparent;
  transition:
    color 0.15s,
    background 0.15s,
    border-color 0.15s;
  white-space: nowrap;
}
.nav a:hover {
  color: white;
  background: #ffffff12;
}
.nav a.active,
.nav a[aria-current="location"] {
  color: white;
  background: #ef721d32;
  border-bottom-color: #fd893a;
  font-weight: 720;
}
.mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  background: transparent;
  color: #fff;
  border: 1px solid #a5afb8;
  border-radius: 0.35rem;
}
.mobile-toggle .icon {
  width: 1.4rem;
  height: 1.4rem;
}
main {
  padding-top: var(--header-height);
}

/* --- Tipos y enlaces. --- */
.eyebrow {
  font-weight: 780;
  text-transform: uppercase;
  color: var(--orange-text);
  font-size: clamp(0.9rem, 0.81rem + 0.33vw, 1.04rem);
  line-height: 1.52;
  letter-spacing: 0.075em;
  margin: 0 0 1.05rem;
}
h1,
h2,
h3,
h4,
p {
  overflow-wrap: break-word;
}
h2 {
  font-size: clamp(1.65rem, 2.35vw, 2rem);
  line-height: 1.22;
  letter-spacing: -0.027em;
  font-weight: 760;
  margin: 0 0 1.1rem;
}
p {
  margin: 0 0 1rem;
}
p:last-child {
  margin-bottom: 0;
}
.orange-line {
  display: block;
  width: 2.8rem;
  height: 2px;
  background: var(--orange);
  margin-top: 1.4rem;
}
.btn {
  min-height: 2.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  font-size: 0.96rem;
  line-height: 1.25;
  font-weight: 680;
  padding: 0.7rem 1.3rem;
  border-radius: 0.4rem;
  border: 1px solid transparent;
  transition:
    background-color 0.15s ease,
    transform 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn .icon {
  height: 1.1rem;
  width: 1.1rem;
}
.btn-orange {
  color: white;
  background: #d7590a;
}
.btn-orange:hover {
  background: #b94905;
}
.btn-outline {
  border-color: #818a90;
  background: #ffffffdb;
  color: #303940;
}
.btn-outline:hover {
  background: #fff;
}

/* --- Portada con fotografía contenida. --- */
.hero {
  min-height: 28rem;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #f8fafb, #f3f6f8);
  overflow: hidden;
}
.hero-content {
  display: flex;
  align-items: center;
  min-height: 28rem;
  padding-block: 3.45rem;
}
.hero-text {
  width: min(32.5rem, 50%);
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-size: clamp(2.1rem, 3.4vw, 2.64rem);
  line-height: 1.16;
  font-weight: 770;
  letter-spacing: -0.034em;
  margin: 0 0 1.2rem;
}
.hero h1 span {
  color: var(--orange-text);
}
.hero-text > p:not(.eyebrow) {
  max-width: 30.5rem;
  color: #505e68;
  font-size: 1.04rem;
  line-height: 1.64;
  margin-bottom: 1.65rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.hero-picture {
  position: absolute;
  right: max(1.6rem, calc((100vw - var(--max)) / 2));
  top: 2rem;
  bottom: 2rem;
  width: min(45%, 34rem);
  background: url("assets/portada-visual-v10.webp") no-repeat center/cover;
  border-radius: 0.75rem;
}
.hero-picture::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 14%;
  left: 0;
  background: linear-gradient(90deg, #f7f9fae8, transparent);
}

/* --- Servicios y alcance. --- */
.services {
  padding: 4.3rem 0 4.7rem;
  background: linear-gradient(#fff, #fbfcfd);
}
.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.77fr) minmax(0, 1.23fr);
  gap: 3.5rem;
  align-items: start;
  margin-bottom: 2.45rem;
}
.intro-copy {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.73;
}
.services-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}
.service {
  padding: 2rem 2.1rem 2.05rem;
  border: 1px solid #e6eaed;
  border-radius: 0.7rem;
  background: white;
  box-shadow: 0 12px 28px #263c4b08;
  min-width: 0;
}
.service-icon {
  color: var(--orange);
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1.15rem;
}
.service h3 {
  font-size: 1.15rem;
  line-height: 1.3;
  font-weight: 760;
  margin: 0 0 0.85rem;
}
.service p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.99rem;
  margin-bottom: 0.75rem;
}
.service p:last-child {
  margin: 0;
}
.service-detail {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  background: #f2f6f8;
  border: 1px solid #e8eef1;
  border-radius: 0.85rem;
  padding: clamp(1.8rem, 3vw, 3rem);
}
.service-detail-text h3 {
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  line-height: 1.27;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
.service-detail-text p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.68;
}
.diagram {
  position: relative;
  isolation: isolate;
  height: 18.5rem;
  max-width: 26rem;
  width: 100%;
  margin: auto;
  background: radial-gradient(circle at center, #ffffffea 0 21%, transparent 52%);
}
.diagram::before,
.diagram::after {
  content: "";
  position: absolute;
  inset: 20% 19%;
  border: 1px dashed #de9a68;
  border-radius: 50%;
  z-index: 0;
}
.diagram::after {
  inset: 32% 31%;
  border-color: #9dabb5;
}
.diagram-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  width: 8rem;
  height: 8rem;
  border: 2px solid #f39d61;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.3;
  text-align: center;
  box-shadow: 0 9px 30px #2839461a;
}
.diagram-center .icon {
  width: 2.1rem;
  height: 2.1rem;
  color: var(--orange);
}
.diagram-node {
  position: absolute;
  background: #fff;
  border: 1px solid #e0e6e9;
  padding: 0.42rem 0.82rem;
  border-radius: 2rem;
  box-shadow: 0 5px 20px #253a4d13;
  font-size: 0.88rem;
  color: #4a5660;
  font-weight: 650;
}
.node-a {
  top: 5%;
  left: 27%;
}
.node-b {
  top: 19%;
  right: 1%;
}
.node-c {
  bottom: 11%;
  right: 4%;
}
.node-d {
  bottom: 12%;
  left: 1%;
}

/* --- Nuestro enfoque: fotografía en margen común + valores. --- */
.approach {
  background: #f8fafb;
  padding: 4.35rem 0 4.2rem;
}
.approach-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 4vw, 3.6rem);
  align-items: center;
}
.approach-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1.5;
  background: url("assets/ilustracion-enfoque-ideas.webp") no-repeat center/cover;
  border-radius: 0.8rem;
  overflow: hidden;
}
.approach-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(to right,
      rgba(248, 250, 251, 0.88) 0%,
      rgba(248, 250, 251, 0.36) 6%,
      rgba(248, 250, 251, 0) 14%,
      rgba(248, 250, 251, 0) 86%,
      rgba(248, 250, 251, 0.36) 94%,
      rgba(248, 250, 251, 0.88) 100%),
    linear-gradient(to bottom,
      rgba(248, 250, 251, 0.88) 0%,
      rgba(248, 250, 251, 0.32) 8%,
      rgba(248, 250, 251, 0) 18%,
      rgba(248, 250, 251, 0) 82%,
      rgba(248, 250, 251, 0.32) 92%,
      rgba(248, 250, 251, 0.88) 100%);
}
.approach-copy {
  color: var(--muted);
  line-height: 1.7;
}
.approach-copy h2 {
  color: var(--ink);
}
.values-wrap {
  margin-top: 3rem;
}
.values-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
  margin-bottom: 1.55rem;
}
.values-head h3 {
  font-size: 1.3rem;
  line-height: 1.3;
  margin: 0;
}
.values-head p {
  color: var(--muted);
  margin: 0;
}
.values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}
.value {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
}
.value .icon {
  color: var(--orange);
  width: 2.4rem;
  height: 2.4rem;
}
.value h4 {
  margin: 0 0 0.5rem;
  font-size: 1.08rem;
  line-height: 1.3;
}
.value p {
  font-size: 0.96rem;
  color: var(--muted);
  line-height: 1.64;
}
.approach-statement {
  margin-top: 2.5rem;
  display: flex;
  align-items: stretch;
  gap: 1.25rem;
  background: white;
  border-radius: 0.65rem;
  padding: 1.4rem 1.75rem;
  box-shadow: 0 5px 18px #253b4b09;
}
.statement-bar {
  display: none;
  width: 3px;
  flex: 0 0 3px;
  background: var(--orange);
  border-radius: 1rem;
}
.approach-statement p {
  color: #4a5862;
  font-size: 1.02rem;
  line-height: 1.72;
}
.approach-statement strong {
  color: var(--ink);
}

/* --- Cinco etapas y práctica de trabajo. --- */
.process {
  padding: 4.5rem 0;
  background: white;
}
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.1rem;
}
.step {
  min-width: 0;
  border-top: 2px solid #e3e7e9;
  padding-top: 1.2rem;
  position: relative;
}
.step::before {
  content: "";
  position: absolute;
  width: 1.9rem;
  height: 2px;
  background: var(--orange);
  top: -2px;
  left: 0;
}
.step-top {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--orange);
  margin-bottom: 1rem;
}
.step-top span {
  font-size: 1.52rem;
  font-weight: 400;
  line-height: 1.2;
}
.step-top .icon {
  width: 2.15rem;
  height: 2.15rem;
}
.step h3 {
  margin: 0 0 0.6rem;
  font-size: 1.04rem;
  line-height: 1.3;
}
.step p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}
.process-followup {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: 2rem;
  background: #f5f7f8;
  border-radius: 0.75rem;
  padding: 2rem;
  margin-top: 3rem;
}
.followup-heading h3 {
  font-size: 1.42rem;
  line-height: 1.3;
  margin: 0;
}
.followup-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.followup-items > div {
  border-left: 1px solid #d8e0e4;
  padding-left: 1.2rem;
}
.followup-items strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}
.followup-items p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

/* --- Contacto amplio, sin formulario de datos. --- */
.contact {
  background: linear-gradient(120deg, #f7f9fa, #fff);
  padding: 4.4rem 0 4.5rem;
  overflow: hidden;
}
.contact-photo {
  position: absolute;
  right: max(1.6rem, calc((100vw - var(--max)) / 2));
  top: 1.7rem;
  width: 6.4rem;
  height: 8.5rem;
  background: url("assets/contacto-detalle.webp") center/cover;
  border-radius: 0.5rem;
  opacity: 0.19;
  pointer-events: none;
}
.contact-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(21rem, 0.95fr);
  align-items: start;
  gap: 2.35rem;
}
.contact-top {
  max-width: none;
  padding-top: 0.35rem;
}
.contact-top h2 {
  font-size: clamp(1.65rem, 2.4vw, 2rem);
}
.contact-top p:not(.eyebrow) {
  color: var(--muted);
}
.contact-panel {
  background: rgb(255 255 255 / 88%);
  border: 1px solid #e3e8eb;
  border-radius: 1rem;
  padding: 1.3rem;
  box-shadow: 0 1rem 2.5rem rgb(27 39 47 / 0.06);
  backdrop-filter: blur(0.35rem);
}
.contact-panel-label {
  margin: 0 0 1rem;
  color: var(--orange-text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  font-weight: 780;
}
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 0.95rem;
  margin-top: 0;
}
.contact-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1.05rem 1rem;
  border: 1px solid #e3e8eb;
  border-radius: 0.85rem;
  background: white;
  min-height: 0;
  min-width: 0;
  transition:
    border-color 0.15s,
    transform 0.15s,
    box-shadow 0.15s;
}
.contact-item:hover {
  border-color: #edac82;
  box-shadow: 0 0.7rem 1.8rem rgb(40 49 56 / 0.07);
  transform: translateY(-2px);
}
.contact-item > .icon {
  color: var(--orange);
  width: 2.1rem;
  height: 2.1rem;
  flex: 0 0 2.1rem;
}
.contact-item span {
  min-width: 0;
}
.contact-item strong {
  display: block;
  font-size: 1rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.contact-email {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  font-size: clamp(0.9rem, 1.05vw, 1rem);
  letter-spacing: -0.01em;
}
.contact-item small {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
  margin-top: 0.38rem;
}
.contact-cta {
  grid-column: auto;
  justify-self: stretch;
  justify-content: space-between;
  margin-top: 0.15rem;
}

/* --- Footer and legal templates. --- */
.footer {
  background: linear-gradient(115deg, #303b41, #20282e);
  color: #e8edef;
}
.footer-row {
  padding-block: 1.6rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.2rem 2.4rem;
}
.footer-logo img {
  width: 13rem;
  height: auto;
}
.footer-menu,
.footer-legal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.footer-menu a,
.footer-legal a {
  color: #e8edef;
  font-size: 0.84rem;
}
.footer-menu a:hover,
.footer-legal a:hover {
  color: #ffaf73;
  text-decoration: underline;
}
.footer-menu a:not(:last-child) {
  border-right: 1px solid #73808a;
  padding-right: 0.7rem;
}
.footer-legal {
  width: 100%;
  color: #bec7cd;
  justify-content: flex-end;
}
.footer-legal a {
  color: #cbd4d9;
  font-size: 0.77rem;
  border-right: 1px solid #6b7780;
  padding-right: 0.8rem;
}
.footer-legal span {
  font-size: 0.77rem;
}
.legal-page {
  min-height: calc(100vh - 8rem);
  background: #f8fafb;
  padding: 3rem 0 5rem;
}
.legal-main {
  width: min(calc(100% - 2.5rem), 54rem);
  margin: auto;
  background: white;
  border: 1px solid #e3e9ec;
  border-radius: 0.7rem;
  padding: clamp(1.4rem, 4vw, 3rem);
}
.legal-main h1 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 1rem 0 1.5rem;
}
.legal-main h2 {
  font-size: 1.34rem;
  margin: 2rem 0 0.9rem;
}
.legal-main p,
.legal-main li {
  line-height: 1.75;
  color: #46535b;
}
.legal-main a:not(.legal-return) {
  color: #b64c0b;
  text-decoration: underline;
}
.legal-return {
  color: #b64c0b;
}
.legal-note {
  /* display: none; */
  background: #fff4ec;
  border-left: 3px solid var(--orange);
  padding: 1rem;
}

/* --- Breakpoints: no recortes ni desplazamiento horizontal. --- */
@media (max-width: 1100px) {
  .services-items {
    gap: 1rem;
  }
  .approach-grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 1.8rem;
  }
  .values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.8rem;
  }
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.3rem 1.6rem;
  }
  .process-followup {
    grid-template-columns: 1fr;
  }
  .footer-row {
    justify-content: center;
  }
}
@media (max-width: 880px) {
  .nav {
    gap: 0.1rem;
  }
  .nav a {
    font-size: 0.8rem;
    padding: 0.55rem 0.56rem;
  }
  .logo img {
    width: 11.7rem;
  }
  .hero-text {
    width: 54%;
  }
  .hero-picture {
    width: 42%;
    right: 1.6rem;
  }
  .section-intro {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }
  .approach-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .approach-image {
    aspect-ratio: 2.5;
    background-size: cover;
  }
  .followup-items {
    gap: 1rem;
  }
  .contact-shell {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
  .contact-top {
    max-width: 48rem;
  }
}
@media (max-width: 740px) {
  :root {
    --header-height: 4.3rem;
  }
  .wrapper {
    width: calc(100% - 2.2rem);
  }
  .mobile-toggle {
    display: flex;
  }
  .logo img {
    width: min(13.3rem, 67vw);
  }
  .nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    right: 0;
    left: 0;
    height: auto;
    background: #263038;
    padding: 1rem max(1rem, calc((100vw - 38rem) / 2));
    box-shadow: 0 12px 28px #1117;
  }
  .nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .nav a {
    font-size: 1rem;
    padding: 0.85rem 1rem;
    width: 100%;
  }
  .hero {
    display: flex;
    flex-direction: column;
  }
  .hero-content {
    order: 1;
    min-height: 0;
    padding-block: 3rem 1.75rem;
  }
  .hero-text {
    width: 100%;
    max-width: 36rem;
  }
  .hero h1 {
    font-size: clamp(2rem, 6vw, 2.55rem);
  }
  .hero-picture {
    position: relative;
    order: 2;
    right: auto;
    top: auto;
    bottom: auto;
    width: calc(100% - 2.2rem);
    height: 14rem;
    margin: 0 auto 1.6rem;
    background-size: cover;
  }
  .hero-picture::before {
    display: none;
  }
  .services,
  .approach,
  .process,
  .contact {
    padding-block: 3.5rem;
  }
  .services-items {
    grid-template-columns: 1fr;
  }
  .service-detail {
    grid-template-columns: 1fr;
  }
  .diagram {
    height: 16rem;
  }
  .values-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .followup-items {
    grid-template-columns: 1fr;
  }
  .contact-panel {
    padding: 1.05rem;
    border-radius: 0.9rem;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .contact-item {
    min-height: 0;
  }
  .contact-photo {
    display: none;
  }
  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-legal {
    justify-content: flex-start;
  }
}
@media (max-width: 430px) {
  .contact-item {
    padding-inline: 0.9rem;
  }
  .contact-email {
    font-size: 0.84rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.12rem;
  }
  .hero h1 br {
    display: none;
  }
  .service {
    padding: 1.55rem;
  }
  .approach-image {
    aspect-ratio: 1.9;
  }
  .values {
    grid-template-columns: 1fr;
    gap: 1.45rem;
  }
  .value {
    display: flex;
    flex-direction: row;
    gap: 1rem;
  }
  .value .icon {
    width: 2.15rem;
    height: 2.15rem;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .step {
    display: grid;
    grid-template-columns: 4.7rem 1fr;
    gap: 0 1rem;
  }
  .step-top {
    grid-row: 1/3;
    grid-column: 1;
    flex-direction: column;
    align-items: flex-start;
  }
  .step h3,
  .step p {
    grid-column: 2;
  }
  .step h3 {
    padding-top: 0.15rem;
  }
  .process-followup {
    padding: 1.45rem;
  }
  .contact-top h2 br {
    display: none;
  }
  .contact-email {
    font-size: 0.9rem;
  }
  .diagram-node {
    font-size: 0.78rem;
  }
}

/* --- Legal pages retain their return link on mobile. --- */
@media (max-width: 740px) {
  .nav.legal-nav {
    display: flex;
    position: static;
    width: auto;
    background: transparent;
    padding: 0;
    box-shadow: none;
  }
  .nav.legal-nav a {
    font-size: 0.86rem;
    padding: 0.45rem 0.55rem;
  }
}

/* --- V6 / extended editorial content. Base appearance remains V5/V3. --- */
:root {
  --max: 71rem;
  --dark: #252c31;
}
html {
  scroll-padding-top: calc(var(--header-height) + 1rem);
}
body {
  font-size: 1.03rem;
  line-height: 1.68;
}
.nav {
  gap: 0.1rem;
}
.nav a {
  font-size: 0.85rem;
  padding: 0.64rem 0.62rem;
}
.section-intro {
  margin-bottom: 2.6rem;
}
h2 {
  font-size: clamp(1.68rem, 2.5vw, 2.15rem);
}
.eyebrow {
  letter-spacing: 0.075em;
}
.intro-band {
  border-bottom: 1px solid #e5e9ec;
  background: white;
}
.intro-band-inner {
  min-height: 6rem;
  padding: 1.3rem 0;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.intro-band p {
  margin: 0;
  color: var(--orange-text);
  font-size: 0.71rem;
  font-weight: 760;
  letter-spacing: 0.13em;
  flex: 0 0 auto;
}
.intro-band strong {
  font-size: 0.96rem;
  font-weight: 620;
  flex: 1;
}
.intro-band a {
  color: var(--orange-text);
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 700;
}
.intro-band .icon,
.text-link .icon {
  width: 1.2rem;
  height: 1.2rem;
}
/* --- Diverse service catalog, airy cards. --- */
.services {
  padding-block: 5rem;
}
.services-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.service-rich {
  padding: 1.55rem 1.4rem;
  background: #fff;
}
.service-rich .service-icon {
  width: 2.5rem;
  height: 2.5rem;
}
.service-rich h3 {
  font-size: 1.08rem;
}
.service-rich p {
  font-size: 0.94rem;
  line-height: 1.66;
}
.service-rich .service-example {
  border-top: 1px solid #edf0f2;
  padding-top: 0.95rem;
  margin-top: 1rem;
}
.service-example strong {
  color: #35434b;
  font-size: 0.83rem;
  letter-spacing: 0.015em;
}
.service-note {
  margin-top: 1.45rem;
  background: #f5f8f9;
  padding: 1.45rem 1.8rem;
  border-radius: 0.55rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.service-note > div {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 19rem;
}
.service-note .icon {
  color: var(--orange-text);
  width: 1.6rem;
}
.service-note p {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
}
/* --- Prototype editorial spread and functional mini-demo. --- */
.prototype-section,
.solutions,
.quality,
.faq {
  background: #f6f8f9;
}
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
}
.faq-intro {
  position: static;
  top: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  align-items: center;
  min-width: 0;
}
.faq-intro-copy {
  min-width: 0;
  max-width: 34rem;
}
.faq-intro p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.75;
}
.faq-intro .text-link {
  margin-top: 0.7rem;
}
.faq-intro-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  justify-self: center;
  align-self: center;
  width: 100%;
  min-height: 100%;
}
.faq-intro-visual img {
  width: clamp(10rem, 16vw, 13rem);
  max-width: 100%;
  height: auto;
  display: block;
  margin-inline: auto;
  background: transparent;
}
.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2rem;
  align-items: start;
}
.faq-item {
  border-top: 1px solid #dce5e9;
  border-bottom: 1px solid #dce5e9;
  margin-top: -1px;
  background: transparent;
}
.faq-item summary {
  padding: 1.1rem 0.3rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 1rem;
  font-weight: 715;
  line-height: 1.42;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary:hover {
  color: var(--orange-text);
}
.faq-plus {
  font-weight: 300;
  font-size: 1.7rem;
  color: var(--orange-text);
  line-height: 1;
  flex: 0 0 1.4rem;
  text-align: center;
}
.faq-item[open] .faq-plus {
  transform: rotate(45deg);
}
.faq-answer {
  padding: 0 2rem 1.4rem 0.3rem;
}
.faq-answer p {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.7;
}
.contact {
  background: linear-gradient(120deg, #f7f9fa, #fff);
  padding: 4.4rem 0 4.5rem;
  overflow: hidden;
}
.contact-photo {
  position: absolute;
  right: max(1.6rem, calc((100vw - var(--max)) / 2));
  top: 1.7rem;
  width: 6.4rem;
  height: 8.5rem;
  background: url("assets/contacto-detalle.webp") center/cover;
  border-radius: 0.5rem;
  opacity: 0.19;
  pointer-events: none;
}
.contact-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(21rem, 0.95fr);
  align-items: start;
  gap: 2.35rem;
}
.contact-top {
  max-width: none;
  padding-top: 0.35rem;
}
.contact-top h2 {
  font-size: clamp(1.65rem, 2.4vw, 2rem);
}
.contact-top p:not(.eyebrow) {
  color: var(--muted);
}
.contact-panel {
  background: rgb(255 255 255 / 88%);
  border: 1px solid #e3e8eb;
  border-radius: 1rem;
  padding: 1.3rem;
  box-shadow: 0 1rem 2.5rem rgb(27 39 47 / 0.06);
  backdrop-filter: blur(0.35rem);
}
.contact-panel-label {
  margin: 0 0 1rem;
  color: var(--orange-text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  font-weight: 780;
}
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 0.95rem;
  margin-top: 0;
}
.contact-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1.05rem 1rem;
  border: 1px solid #e3e8eb;
  border-radius: 0.85rem;
  background: white;
  min-height: 0;
  min-width: 0;
  transition:
    border-color 0.15s,
    transform 0.15s,
    box-shadow 0.15s;
}
.contact-item:hover {
  border-color: #edac82;
  box-shadow: 0 0.7rem 1.8rem rgb(40 49 56 / 0.07);
  transform: translateY(-2px);
}
.contact-item > .icon {
  color: var(--orange);
  width: 2.1rem;
  height: 2.1rem;
  flex: 0 0 2.1rem;
}
.contact-item span {
  min-width: 0;
}
.contact-item strong {
  display: block;
  font-size: 1rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.contact-email {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  font-size: clamp(0.9rem, 1.05vw, 1rem);
  letter-spacing: -0.01em;
}
.contact-item small {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
  margin-top: 0.38rem;
}
.contact-cta {
  grid-column: auto;
  justify-self: stretch;
  justify-content: space-between;
  margin-top: 0.15rem;
}

/* --- Footer and legal templates. --- */
.footer {
  background: linear-gradient(115deg, #303b41, #20282e);
  color: #e8edef;
}
.footer-row {
  padding-block: 1.6rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.2rem 2.4rem;
}
.footer-logo img {
  width: 13rem;
  height: auto;
}
.footer-menu,
.footer-legal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.footer-menu a,
.footer-legal a {
  color: #e8edef;
  font-size: 0.84rem;
}
.footer-menu a:hover,
.footer-legal a:hover {
  color: #ffaf73;
  text-decoration: underline;
}
.footer-menu a:not(:last-child) {
  border-right: 1px solid #73808a;
  padding-right: 0.7rem;
}
.footer-legal {
  width: 100%;
  color: #bec7cd;
  justify-content: flex-end;
}
.footer-legal a {
  color: #cbd4d9;
  font-size: 0.77rem;
  border-right: 1px solid #6b7780;
  padding-right: 0.8rem;
}
.footer-legal span {
  font-size: 0.77rem;
}
.legal-page {
  min-height: calc(100vh - 8rem);
  background: #f8fafb;
  padding: 3rem 0 5rem;
}
.legal-main {
  width: min(calc(100% - 2.5rem), 54rem);
  margin: auto;
  background: white;
  border: 1px solid #e3e9ec;
  border-radius: 0.7rem;
  padding: clamp(1.4rem, 4vw, 3rem);
}
.legal-main h1 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 1rem 0 1.5rem;
}
.legal-main h2 {
  font-size: 1.34rem;
  margin: 2rem 0 0.9rem;
}
.legal-main p,
.legal-main li {
  line-height: 1.75;
  color: #46535b;
}
.legal-main a:not(.legal-return) {
  color: #b64c0b;
  text-decoration: underline;
}
.legal-return {
  color: #b64c0b;
}
.legal-note {
  /* display: none; */
  background: #fff4ec;
  border-left: 3px solid var(--orange);
  padding: 1rem;
}

/* --- Breakpoints: no recortes ni desplazamiento horizontal. --- */
@media (max-width: 1100px) {
  .services-items {
    gap: 1rem;
  }
  .approach-grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 1.8rem;
  }
  .values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.8rem;
  }
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.3rem 1.6rem;
  }
  .process-followup {
    grid-template-columns: 1fr;
  }
  .footer-row {
    justify-content: center;
  }
}
@media (max-width: 880px) {
  .nav {
    gap: 0.1rem;
  }
  .nav a {
    font-size: 0.8rem;
    padding: 0.55rem 0.56rem;
  }
  .logo img {
    width: 11.7rem;
  }
  .hero-text {
    width: 54%;
  }
  .hero-picture {
    width: 42%;
    right: 1.6rem;
  }
  .section-intro {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }
  .approach-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .approach-image {
    aspect-ratio: 2.5;
    background-size: cover;
  }
  .followup-items {
    gap: 1rem;
  }
  .contact-shell {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
  .contact-top {
    max-width: 48rem;
  }
}
@media (max-width: 740px) {
  :root {
    --header-height: 4.3rem;
  }
  .wrapper {
    width: calc(100% - 2.2rem);
  }
  .mobile-toggle {
    display: flex;
  }
  .logo img {
    width: min(13.3rem, 67vw);
  }
  .nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    right: 0;
    left: 0;
    height: auto;
    background: #263038;
    padding: 1rem max(1rem, calc((100vw - 38rem) / 2));
    box-shadow: 0 12px 28px #1117;
  }
  .nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .nav a {
    font-size: 1rem;
    padding: 0.85rem 1rem;
    width: 100%;
  }
  .hero {
    display: flex;
    flex-direction: column;
  }
  .hero-content {
    order: 1;
    min-height: 0;
    padding-block: 3rem 1.75rem;
  }
  .hero-text {
    width: 100%;
    max-width: 36rem;
  }
  .hero h1 {
    font-size: clamp(2rem, 6vw, 2.55rem);
  }
  .hero-picture {
    position: relative;
    order: 2;
    right: auto;
    top: auto;
    bottom: auto;
    width: calc(100% - 2.2rem);
    height: 14rem;
    margin: 0 auto 1.6rem;
    background-size: cover;
  }
  .hero-picture::before {
    display: none;
  }
  .services,
  .approach,
  .process,
  .contact {
    padding-block: 3.5rem;
  }
  .services-items {
    grid-template-columns: 1fr;
  }
  .service-detail {
    grid-template-columns: 1fr;
  }
  .diagram {
    height: 16rem;
  }
  .values-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .followup-items {
    grid-template-columns: 1fr;
  }
  .contact-panel {
    padding: 1.05rem;
    border-radius: 0.9rem;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .contact-item {
    min-height: 0;
  }
  .contact-photo {
    display: none;
  }
  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-legal {
    justify-content: flex-start;
  }
}
@media (max-width: 430px) {
  .contact-item {
    padding-inline: 0.9rem;
  }
  .contact-email {
    font-size: 0.84rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.12rem;
  }
  .hero h1 br {
    display: none;
  }
  .service {
    padding: 1.55rem;
  }
  .approach-image {
    aspect-ratio: 1.9;
  }
  .values {
    grid-template-columns: 1fr;
    gap: 1.45rem;
  }
  .value {
    display: flex;
    flex-direction: row;
    gap: 1rem;
  }
  .value .icon {
    width: 2.15rem;
    height: 2.15rem;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .step {
    display: grid;
    grid-template-columns: 4.7rem 1fr;
    gap: 0 1rem;
  }
  .step-top {
    grid-row: 1/3;
    grid-column: 1;
    flex-direction: column;
    align-items: flex-start;
  }
  .step h3,
  .step p {
    grid-column: 2;
  }
  .step h3 {
    padding-top: 0.15rem;
  }
  .process-followup {
    padding: 1.45rem;
  }
  .contact-top h2 br {
    display: none;
  }
  .contact-email {
    font-size: 0.9rem;
  }
  .diagram-node {
    font-size: 0.78rem;
  }
}

/* --- Legal pages retain their return link on mobile. --- */
@media (max-width: 740px) {
  .nav.legal-nav {
    display: flex;
    position: static;
    width: auto;
    background: transparent;
    padding: 0;
    box-shadow: none;
  }
  .nav.legal-nav a {
    font-size: 0.86rem;
    padding: 0.45rem 0.55rem;
  }
}

/* --- V6 / extended editorial content. Base appearance remains V5/V3. --- */
:root {
  --max: 71rem;
  --dark: #252c31;
}
html {
  scroll-padding-top: calc(var(--header-height) + 1rem);
}
body {
  font-size: 1.03rem;
  line-height: 1.68;
}
.nav {
  gap: 0.1rem;
}
.nav a {
  font-size: 0.85rem;
  padding: 0.64rem 0.62rem;
}
.section-intro {
  margin-bottom: 2.6rem;
}
h2 {
  font-size: clamp(1.68rem, 2.5vw, 2.15rem);
}
.eyebrow {
  letter-spacing: 0.075em;
}
.intro-band {
  border-bottom: 1px solid #e5e9ec;
  background: white;
}
.intro-band-inner {
  min-height: 6rem;
  padding: 1.3rem 0;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.intro-band p {
  margin: 0;
  color: var(--orange-text);
  font-size: 0.71rem;
  font-weight: 760;
  letter-spacing: 0.13em;
  flex: 0 0 auto;
}
.intro-band strong {
  font-size: 0.96rem;
  font-weight: 620;
  flex: 1;
}
.intro-band a {
  color: var(--orange-text);
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 700;
}
.intro-band .icon,
.text-link .icon {
  width: 1.2rem;
  height: 1.2rem;
}
/* --- Diverse service catalog, airy cards. --- */
.services {
  padding-block: 5rem;
}
.services-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.service-rich {
  padding: 1.55rem 1.4rem;
  background: #fff;
}
.service-rich .service-icon {
  width: 2.5rem;
  height: 2.5rem;
}
.service-rich h3 {
  font-size: 1.08rem;
}
.service-rich p {
  font-size: 0.94rem;
  line-height: 1.66;
}
.service-rich .service-example {
  border-top: 1px solid #edf0f2;
  padding-top: 0.95rem;
  margin-top: 1rem;
}
.service-example strong {
  color: #35434b;
  font-size: 0.83rem;
  letter-spacing: 0.015em;
}
.service-note {
  margin-top: 1.45rem;
  background: #f5f8f9;
  padding: 1.45rem 1.8rem;
  border-radius: 0.55rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.service-note > div {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 19rem;
}
.service-note .icon {
  color: var(--orange-text);
  width: 1.6rem;
}
.service-note p {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
}
/* --- Prototype editorial spread and functional mini-demo. --- */
.prototype-section,
.solutions,
.quality,
.faq {
  padding: 5rem 0;
}
.prototype-section {
  background: #f6f9fa;
}
.feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 4rem;
  align-items: center;
}
.feature-copy {
  min-width: 0;
}
.feature-copy h2 {
  max-width: 33rem;
  margin-bottom: 1.4rem;
}
.feature-copy p:not(.eyebrow) {
  color: var(--muted);
  margin-bottom: 1.2rem;
  line-height: 1.75;
}
.feature-copy p.feature-lead {
  color: #35444d;
  font-size: 1.1rem;
}
.feature-copy strong {
  color: #323c43;
}
.feature-actions {
  margin-top: 1.4rem;
}
.text-link {
  color: var(--orange-text);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 0.94rem;
  text-decoration: underline;
  text-decoration-color: #e6a77d;
  text-underline-offset: 0.3rem;
}
.text-link:hover {
  color: #923a05;
}
.prototype-demo {
  background: white;
  border: 1px solid #dde6eb;
  border-radius: 1.1rem;
  overflow: hidden;
  box-shadow: 0 20px 55px #28404b12;
  min-width: 0;
}
.demo-top {
  padding: 1.3rem 1.35rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #edf1f2;
}
.demo-top-label {
  font-size: 0.72rem;
  color: #66737b;
  font-weight: 760;
  letter-spacing: 0.14em;
}
.demo-dots {
  display: flex;
  gap: 0.3rem;
}
.demo-dots i {
  width: 0.44rem;
  height: 0.44rem;
  background: #dbe0e4;
  border-radius: 50%;
}
.demo-dots i:first-child {
  background: #ef924c;
}
.demo-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0.9rem 1.2rem;
  gap: 0.35rem;
}
.demo-tab {
  border: 1px solid transparent;
  color: #60707a;
  background: transparent;
  padding: 0.65rem 0.3rem;
  font-size: 0.85rem;
  border-radius: 0.35rem;
  font-weight: 720;
}
.demo-tab[aria-selected="true"] {
  background: #fff0e5;
  color: #a94405;
  border-color: #f4d0b8;
}
.demo-viewport {
  padding: 1rem 1.3rem;
}
.mock-window {
  background: #fbfcfd;
  border: 1px solid #dce4e8;
  border-radius: 0.55rem;
  overflow: hidden;
  min-height: 15rem;
}
.mock-toolbar {
  height: 2rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: #ebeff2;
  padding: 0 0.85rem;
}
.mock-toolbar span {
  width: 0.37rem;
  height: 0.37rem;
  border-radius: 50%;
  background: #b0bec6;
}
.mock-layout {
  display: grid;
  grid-template-columns: 5.2rem 1fr;
  min-height: 13rem;
}
.mock-side {
  background: #f2f5f7;
  padding: 1rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.mock-side i {
  display: block;
  height: 0.5rem;
  width: 90%;
  border-radius: 2rem;
  background: #d2dce1;
}
.mock-side i:nth-child(2) {
  width: 60%;
}
.mock-side i:nth-child(3) {
  width: 78%;
}
.mock-side i:nth-child(4) {
  width: 55%;
}
.mock-main {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.mock-line {
  height: 0.6rem;
  background: #dce4e8;
  border-radius: 0.2rem;
}
.w60 {
  width: 60%;
}
.w84 {
  width: 84%;
}
.w45 {
  width: 45%;
}
.w75 {
  width: 75%;
}
.mock-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin: 0.45rem 0;
}
.mock-cards div {
  height: 4.6rem;
  background: #e7edf0;
  border: 1px solid #d9e2e7;
  border-radius: 0.4rem;
}
.prototype-demo[data-stage="ui"] .mock-side {
  background: #2a363e;
}
.prototype-demo[data-stage="ui"] .mock-side i {
  background: #899ca7;
}
.prototype-demo[data-stage="ui"] .mock-toolbar {
  background: #303d45;
}
.prototype-demo[data-stage="ui"] .mock-main {
  background: #fff;
}
.prototype-demo[data-stage="ui"] .mock-cards div {
  background: linear-gradient(145deg, #fff4e8, #f1f5f8);
  border-color: #f1d0b7;
  box-shadow: 0 3px 9px #0000000a;
}
.prototype-demo[data-stage="ui"] .mock-cards div:first-child {
  border-top: 4px solid #dc6715;
}
.prototype-demo[data-stage="ui"] .mock-line {
  background: #a9bac3;
}
.prototype-demo[data-stage="flow"] .mock-cards div {
  position: relative;
  border-color: #ef9a5c;
  background: #fff6ef;
}
.prototype-demo[data-stage="flow"] .mock-cards div::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: -0.5rem;
  z-index: 2;
  color: #d96417;
  transform: translateY(-50%);
  font-weight: 800;
}
.prototype-demo[data-stage="flow"] .mock-cards div:last-child::after {
  content: "✓";
  right: 0.5rem;
}
.demo-caption {
  min-height: 6rem;
  padding: 1.15rem 1.4rem;
  border-top: 1px solid #edf1f2;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.demo-caption strong {
  font-size: 0.96rem;
}
.demo-caption span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}
.prototype-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 2.6rem;
}
.prototype-benefits article {
  border-top: 2px solid #d7e0e5;
  padding-top: 1.25rem;
}
.prototype-benefits article > span {
  display: inline-flex;
  color: var(--orange-text);
  font-weight: 750;
  margin-bottom: 0.7rem;
}
.prototype-benefits h3 {
  font-size: 1.07rem;
  line-height: 1.34;
  margin: 0.1rem 0 0.8rem;
}
.prototype-benefits p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.68;
}
.prototype-remark {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
  background: #fff;
  border: 1px solid #e5eaed;
  border-radius: 0.6rem;
  padding: 1.25rem 1.5rem;
}
.prototype-remark > div {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 15rem;
}
.prototype-remark .icon {
  color: var(--orange-text);
  width: 1.4rem;
}
.prototype-remark p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}
/* --- Examples, architecture illustration. --- */
.solutions {
  background: white;
}
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.case-card {
  background: #f8fafb;
  border: 1px solid #e7ecef;
  padding: 1.7rem;
  border-radius: 0.65rem;
}
.case-n {
  font-size: 0.82rem;
  color: var(--orange-text);
  font-weight: 740;
}
.case-card h3 {
  margin: 0.6rem 0 0.75rem;
  font-size: 1.12rem;
}
.case-card p {
  color: var(--muted);
  font-size: 0.96rem;
}
.architecture-feature {
  margin-top: 4rem;
  padding-top: 4rem;
  border-top: 1px solid #e6ebef;
}
.arch-visual {
  grid-column: 1;
  grid-row: 1;
  background: linear-gradient(140deg, #eef4f7, #fff);
  border: 1px solid #e2eaee;
  border-radius: 1rem;
  padding: 2rem;
  min-width: 0;
}
.feature-reverse > .feature-copy {
  grid-column: 2;
  grid-row: 1;
}
.arch-title {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: #687982;
  font-weight: 750;
  margin-bottom: 1.4rem;
  text-align: center;
}
.arch-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.arch-row span {
  background: white;
  padding: 1rem 0.55rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  justify-content: center;
  border-radius: 0.6rem;
  border: 1px solid #dde6eb;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 5px 20px #18303f06;
}
.arch-row .icon {
  width: 1.5rem;
  height: 1.5rem;
  color: #b75217;
}
.arch-row-highlight span {
  border-color: #eebf9c;
}
.arch-connect {
  text-align: center;
  font-size: 0.76rem;
  padding: 0.65rem 0;
  color: #6b7b83;
}
.arch-visual small {
  display: block;
  text-align: center;
  margin-top: 1.2rem;
  color: #71818a;
  font-size: 0.72rem;
}
/* --- Values and quality. --- */
.approach {
  padding: 5rem 0;
}
.quality {
  background: #f7f9fa;
}
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.cap-card {
  border: 1px solid #e1e8eb;
  padding: 1.8rem;
  background: #fff;
  border-radius: 0.65rem;
  min-width: 0;
}
.cap-card .icon {
  color: var(--orange);
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 1rem;
}
.cap-card h3 {
  font-size: 1.12rem;
  margin: 0 0 0.8rem;
}
.cap-card p {
  font-size: 0.95rem;
  color: var(--muted);
}
.quality-banner {
  margin-top: 2rem;
  background: linear-gradient(115deg, #303c44, #1f2b33);
  color: #fff;
  padding: 2rem 2.2rem;
  border-radius: 0.75rem;
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 2rem;
  align-items: center;
}
.quality-banner .eyebrow {
  color: #ffac78;
}
.quality-banner h3 {
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
}
.quality-banner p:not(.eyebrow) {
  color: #d8e1e6;
  font-size: 0.95rem;
}
.quality-path {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.quality-path span {
  border: 1px solid #73818b;
  padding: 0.9rem 0.7rem;
  border-radius: 0.5rem;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 670;
}
.quality-path span:nth-child(2),
.quality-path span:nth-child(4) {
  border-color: #c17a43;
}
/* --- Process six stages, FAQ, longer footer. --- */
.steps-six {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 1.6rem;
}
.step-rich {
  padding-right: 0.5rem;
}
.faq {
  background: #f6f8f9;
}
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}
.faq-intro {
  position: static;
  top: auto;
}
.faq-intro p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.75;
}
.faq-intro .text-link {
  margin-top: 0.7rem;
}
.faq-list {
  border-top: 1px solid #dce5e9;
}
.faq-item {
  border-bottom: 1px solid #dce5e9;
  background: transparent;
}
.faq-item summary {
  padding: 1.1rem 0.3rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 1rem;
  font-weight: 715;
  line-height: 1.42;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary:hover {
  color: var(--orange-text);
}
.faq-plus {
  font-weight: 300;
  font-size: 1.7rem;
  color: var(--orange-text);
  line-height: 1;
  flex: 0 0 1.4rem;
  text-align: center;
}
.faq-item[open] .faq-plus {
  transform: rotate(45deg);
}
.faq-answer {
  padding: 0 2rem 1.4rem 0.3rem;
}
.faq-answer p {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.7;
}
.contact {
  padding: 4.7rem 0;
}
.contact-top {
  max-width: 46rem;
}
.footer-menu {
  row-gap: 0.55rem;
}
/* --- Responsiveness: largest margin always common; no photography overflow. --- */
@media (max-width: 1080px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .prototype-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .faq-layout {
    gap: 2.4rem;
  }
  .faq-list {
    gap: 0 1.4rem;
  }
}
@media (max-width: 965px) {
  .mobile-toggle {
    display: flex;
  }
  .nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    right: 0;
    left: 0;
    height: auto;
    background: #263038;
    padding: 1rem max(1rem, calc((100vw - 38rem) / 2));
    box-shadow: 0 12px 28px #1117;
  }
  .nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .nav a {
    font-size: 1rem;
    padding: 0.85rem 1rem;
    width: 100%;
  }
  .feature-layout {
    gap: 2rem;
  }
  .feature-reverse > .feature-copy {
    grid-column: 2;
  }
  .faq-intro {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 1.8rem;
  }
  .faq-intro-visual {
    width: 100%;
    justify-self: center;
  }
  .faq-list {
    grid-template-columns: 1fr;
  }
  .faq-intro h2 br {
    display: none;
  }
}
@media (max-width: 740px) {
  .intro-band-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
  }
  .services,
  .approach,
  .process,
  .contact,
  .solutions,
  .quality,
  .faq,
  .prototype-section {
    padding-block: 3.6rem;
  }
  .feature-layout {
    grid-template-columns: 1fr;
  }
  .feature-reverse > .feature-copy,
  .arch-visual {
    grid-column: 1;
    grid-row: auto;
  }
  .arch-visual {
    order: 2;
  }
  .prototype-benefits {
    gap: 1.5rem;
  }
  .case-grid,
  .cap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .prototype-remark,
  .service-note {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
  .service-note > div,
  .prototype-remark > div {
    min-width: 0;
  }
  .quality-banner {
    grid-template-columns: 1fr;
  }
  .steps-six {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .architecture-feature {
    margin-top: 2.5rem;
    padding-top: 2.6rem;
  }
}
@media (max-width: 540px) {
  .services-grid,
  .case-grid,
  .cap-grid,
  .prototype-benefits,
  .steps-six {
    grid-template-columns: 1fr;
  }
  .prototype-demo {
    margin-inline: -0.1rem;
  }
  .demo-tabs {
    padding: 0.65rem;
  }
  .demo-tab {
    font-size: 0.77rem;
  }
  .arch-visual {
    padding: 1.2rem;
  }
  .arch-row span {
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.8rem 0.25rem;
  }
  .quality-banner {
    padding: 1.45rem;
  }
  .intro-band strong {
    font-size: 0.95rem;
  }
  .step-rich {
    display: block;
  }
  .step-rich .step-top {
    flex-direction: row;
  }
  .hero-text > p:not(.eyebrow) {
    font-size: 1rem;
  }
  .faq-intro {
    gap: 1.25rem;
  }
  .faq-intro-visual img {
    width: clamp(9rem, 42vw, 11rem);
  }
}
@media (prefers-reduced-motion: reduce) {
  .faq-plus {
    transition: none;
  }
}

/* --- Educational glossary: content on demand, readable and indexable. --- */
.knowledge {
  padding: 5rem 0;
  background: #fff;
}
.terms-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}
.term-item {
  border: 1px solid #e1e8eb;
  border-radius: 0.6rem;
  background: #f8fafb;
  padding: 0 1.2rem;
  min-width: 0;
}
.term-item summary {
  list-style: none;
  padding: 1.2rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  cursor: pointer;
  font-size: 0.97rem;
  line-height: 1.4;
}
.term-item summary::-webkit-details-marker {
  display: none;
}
.term-item summary span {
  color: var(--orange-text);
  font-size: 1.5rem;
  line-height: 1;
  flex: 0 0 1rem;
}
.term-item[open] summary span {
  transform: rotate(45deg);
}
.term-item p {
  border-top: 1px solid #e1e8eb;
  padding: 1rem 0 1.2rem;
  font-size: 0.96rem;
  line-height: 1.73;
  color: var(--muted);
  margin: 0;
}
.knowledge-end {
  margin-top: 1.9rem;
  padding: 1.4rem 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  border-left: 3px solid var(--orange);
  background: #f5f8f9;
}
.knowledge-end p {
  font-size: 0.96rem;
  color: var(--muted);
  margin: 0;
}
.knowledge-end strong {
  color: var(--ink);
}
.knowledge-end a {
  flex: 0 0 auto;
}
@media (max-width: 740px) {
  .knowledge {
    padding-block: 3.6rem;
  }
  .terms-grid {
    grid-template-columns: 1fr;
  }
  .knowledge-end {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
}

/* --- V7: prototipado más visual + apoyos gráficos adicionales. --- */
.services-visual-strip {
  margin-top: 1.45rem;
  padding: 1.25rem 1.3rem 1.45rem;
  border: 1px solid #e4eaee;
  border-radius: 0.9rem;
  background: linear-gradient(180deg, #fff, #f8fbfc);
  overflow: hidden;
}
.svs-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
}
.svs-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.36rem 0.7rem;
  border-radius: 999px;
  background: #f4f7f8;
  border: 1px solid #e3e8eb;
  color: #66747d;
  font-size: 0.78rem;
  font-weight: 700;
}
.svs-board {
  position: relative;
  min-height: 12rem;
  border-radius: 0.8rem;
  background: radial-gradient(circle at center, #fffdfb 0, #f8fbfc 52%, #f1f6f8 100%);
  border: 1px dashed #e3e8ec;
}
.svs-board::before,
.svs-board::after {
  content: "";
  position: absolute;
  inset: 14% 24%;
  border: 1px dashed #e4b089;
  border-radius: 50%;
}
.svs-board::after {
  inset: 28% 36%;
  border-color: #ccd7dd;
}
.svs-core,
.svs-node {
  position: absolute;
  background: #fff;
  border: 1px solid #dde5ea;
  box-shadow: 0 10px 25px #22364510;
}
.svs-core {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  font-weight: 760;
  color: #34414a;
  border-color: #e6bf9d;
}
.svs-core .icon {
  width: 2rem;
  height: 2rem;
  color: var(--orange);
}
.svs-node {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #55636c;
}
.svs-node .icon {
  width: 1.15rem;
  height: 1.15rem;
  color: #cf5f17;
}
.svs-node-a {
  left: 8%;
  top: 19%;
}
.svs-node-b {
  right: 7%;
  top: 21%;
}
.svs-node-c {
  right: 9%;
  bottom: 16%;
}
.svs-node-d {
  left: 10%;
  bottom: 14%;
}

.prototype-demo {
  border-radius: 1.2rem;
}
.demo-viewport {
  padding: 1.05rem 1.15rem 1.25rem;
  background: linear-gradient(180deg, #fff, #fbfdfe);
}
.proto-scene {
  position: relative;
  min-height: 23rem;
  border: 1px solid #e7edf0;
  border-radius: 1rem;
  padding: 1rem;
  background:
    radial-gradient(circle at 22% 15%, #fff7f0 0 8%, transparent 28%),
    radial-gradient(circle at 85% 24%, #eef6fa 0 10%, transparent 30%), linear-gradient(145deg, #ffffff, #f6fafc 72%);
  overflow: hidden;
}
.proto-scene::before,
.proto-scene::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px dashed #e7be9f;
  opacity: 0.75;
}
.proto-scene::before {
  width: 18rem;
  height: 18rem;
  right: -4rem;
  top: 3rem;
}
.proto-scene::after {
  width: 14rem;
  height: 14rem;
  left: -4rem;
  bottom: -2rem;
  border-color: #d5e0e6;
}
.proto-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
.proto-badges span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.72rem;
  background: #ffffffd9;
  border: 1px solid #e5eaee;
  border-radius: 999px;
  color: #5b6972;
  font-size: 0.78rem;
  font-weight: 760;
  box-shadow: 0 6px 18px #2037460b;
}
.proto-badges .icon {
  width: 1rem;
  height: 1rem;
  color: #c95814;
}
.proto-stage {
  position: relative;
  min-height: 18.4rem;
}
.proto-browser {
  position: absolute;
  inset: 1.1rem 8.8rem 1.1rem 0.2rem;
  background: #fff;
  border: 1px solid #dde6eb;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 18px 36px #23384818;
}
.proto-browser-top {
  height: 2.35rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.9rem;
  background: #eef3f6;
  color: #68767f;
  font-size: 0.8rem;
  font-weight: 700;
}
.proto-browser-top i {
  width: 0.45rem;
  height: 0.45rem;
  background: #d1dbe0;
  border-radius: 50%;
}
.proto-browser-top span {
  margin-left: 0.4rem;
}
.proto-browser-body {
  display: grid;
  grid-template-columns: 5.9rem 1fr;
  min-height: 14.95rem;
}
.proto-sidebar {
  background: #f5f8fa;
  padding: 1rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.proto-sidebar span {
  display: block;
  height: 0.58rem;
  border-radius: 999px;
  background: #d5e0e5;
  width: 88%;
}
.proto-sidebar span:nth-child(2) {
  width: 67%;
}
.proto-sidebar span:nth-child(3) {
  width: 78%;
}
.proto-sidebar span:nth-child(4) {
  width: 54%;
}
.proto-main {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.proto-title {
  display: block;
  height: 0.66rem;
  border-radius: 0.28rem;
  background: #dce6eb;
}
.proto-main .w62 {
  width: 62%;
}
.proto-main .w86 {
  width: 86%;
}
.proto-main .w48 {
  width: 48%;
}
.proto-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin: 0.2rem 0 0.1rem;
}
.proto-cards b {
  display: block;
  height: 5.25rem;
  border-radius: 0.7rem;
  background: #eaf0f3;
  border: 1px solid #dbe5ea;
}
.proto-chart {
  margin-top: 0.25rem;
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
  min-height: 4.4rem;
}
.proto-chart em {
  display: block;
  flex: 1;
  border-radius: 0.45rem 0.45rem 0.2rem 0.2rem;
  background: #dbe5ea;
  min-height: 35%;
}
.proto-chart em:nth-child(2) {
  min-height: 55%;
}
.proto-chart em:nth-child(3) {
  min-height: 78%;
}
.proto-chart em:nth-child(4) {
  min-height: 62%;
}
.proto-phone {
  position: absolute;
  right: 0;
  top: 2.1rem;
  width: 7.2rem;
  border-radius: 1.6rem;
  padding: 0.45rem;
  background: #263038;
  box-shadow: 0 16px 38px #1b273114;
  transform: rotate(7deg);
}
.proto-phone-screen {
  background: linear-gradient(180deg, #ffffff, #f7fafc);
  border-radius: 1.2rem;
  min-height: 12rem;
  padding: 1rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.proto-phone-notch {
  width: 2.45rem;
  height: 0.36rem;
  border-radius: 999px;
  background: #3d4a52;
  margin: 0.1rem auto 0.45rem;
}
.proto-mini-line,
.proto-mini-card {
  display: block;
  border-radius: 0.45rem;
  background: #dfe7ec;
}
.proto-mini-line {
  height: 0.42rem;
  width: 78%;
}
.proto-mini-line.small {
  width: 58%;
}
.proto-mini-card {
  height: 2.9rem;
}
.proto-mini-card.short {
  height: 2.15rem;
  background: #fff3e7;
  border: 1px solid #f2d5c0;
}
.proto-flow {
  position: absolute;
  left: 17%;
  right: 5%;
  bottom: -0.1rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  justify-content: center;
}
.proto-flow-card {
  min-width: 0;
  background: #fff;
  border: 1px solid #dde6eb;
  border-radius: 0.8rem;
  padding: 0.75rem 0.9rem;
  box-shadow: 0 12px 28px #2439480c;
}
.proto-flow-card small {
  display: block;
  color: #7b8890;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}
.proto-flow-card strong {
  display: block;
  color: #314048;
  font-size: 0.92rem;
}
.proto-flow-card.is-accent {
  border-color: #f0c29d;
  background: #fff6ef;
}
.proto-flow-arrow {
  color: #cb5c16;
  font-weight: 800;
  font-size: 1.05rem;
}
.prototype-demo[data-stage="wire"] .proto-browser,
.prototype-demo[data-stage="wire"] .proto-phone,
.prototype-demo[data-stage="wire"] .proto-flow-card {
  box-shadow: none;
}
.prototype-demo[data-stage="wire"] .proto-browser,
.prototype-demo[data-stage="wire"] .proto-phone,
.prototype-demo[data-stage="wire"] .proto-flow-card,
.prototype-demo[data-stage="wire"] .proto-badges span {
  filter: grayscale(1);
}
.prototype-demo[data-stage="wire"] .proto-cards b,
.prototype-demo[data-stage="wire"] .proto-mini-card,
.prototype-demo[data-stage="wire"] .proto-flow-card {
  background: #f7f9fa;
}
.prototype-demo[data-stage="ui"] .proto-browser {
  box-shadow: 0 20px 38px #23384818;
}
.prototype-demo[data-stage="ui"] .proto-browser-top {
  background: #2d3941;
  color: #dbe5ea;
}
.prototype-demo[data-stage="ui"] .proto-sidebar {
  background: #2a363e;
}
.prototype-demo[data-stage="ui"] .proto-sidebar span {
  background: #8ea1ab;
}
.prototype-demo[data-stage="ui"] .proto-cards b:first-child {
  background: linear-gradient(160deg, #fff2e5, #f6fbfe);
  border-top: 4px solid #d95f12;
}
.prototype-demo[data-stage="ui"] .proto-cards b:nth-child(2) {
  background: linear-gradient(160deg, #ffffff, #f4f7f9);
}
.prototype-demo[data-stage="ui"] .proto-cards b:nth-child(3) {
  background: linear-gradient(160deg, #eef7fb, #ffffff);
}
.prototype-demo[data-stage="ui"] .proto-chart em:nth-child(3),
.prototype-demo[data-stage="ui"] .proto-chart em:nth-child(4),
.prototype-demo[data-stage="ui"] .proto-mini-card.short {
  background: #fff0e1;
  border-color: #efc8ac;
}
.prototype-demo[data-stage="flow"] .proto-flow-card {
  border-color: #edb58a;
  background: #fff8f2;
  transform: translateY(-0.12rem);
}
.prototype-demo[data-stage="flow"] .proto-flow-card.is-accent {
  background: #ffeede;
  border-color: #e18c4c;
}
.prototype-demo[data-stage="flow"] .proto-browser::after {
  content: "";
  position: absolute;
  inset: 3.6rem 1rem auto auto;
  width: 5.4rem;
  height: 5.4rem;
  border: 2px solid #efb283;
  border-radius: 1rem;
  box-shadow: 0 0 0 0.45rem #fff7f0;
}
.prototype-demo[data-stage="flow"] .proto-phone {
  transform: rotate(0deg) translateY(-0.2rem);
}
.prototype-demo[data-stage="flow"] .proto-badges span:last-child {
  background: #fff0e5;
  color: #9f4307;
  border-color: #efc4a5;
}

.quality-visual {
  margin: 2rem 0 1.6rem;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(16rem, 0.95fr);
  gap: 1.2rem;
  align-items: center;
}
.qv-browser {
  background: #fff;
  border: 1px solid #e0e7eb;
  border-radius: 0.95rem;
  overflow: hidden;
  box-shadow: 0 18px 34px #2236480d;
}
.qv-top {
  height: 2rem;
  display: flex;
  gap: 0.35rem;
  align-items: center;
  padding: 0 0.8rem;
  background: #eef2f4;
}
.qv-top i {
  width: 0.43rem;
  height: 0.43rem;
  background: #cfd9de;
  border-radius: 50%;
}
.qv-body {
  display: grid;
  grid-template-columns: 6rem 1fr;
  min-height: 10.5rem;
}
.qv-panel {
  background: #f5f8fa;
  padding: 1rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.qv-panel span {
  display: block;
  height: 0.56rem;
  border-radius: 999px;
  background: #d5e0e5;
}
.qv-panel span:nth-child(2) {
  width: 70%;
}
.qv-panel span:nth-child(3) {
  width: 84%;
}
.qv-content {
  padding: 1rem;
}
.qv-headline {
  height: 0.68rem;
  width: 60%;
  border-radius: 0.3rem;
  background: #dce6eb;
  margin-bottom: 1rem;
}
.qv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}
.qv-grid b {
  display: block;
  height: 3.1rem;
  border-radius: 0.65rem;
  background: linear-gradient(160deg, #fff3e6, #f4f8fb);
  border: 1px solid #e7d3c4;
}
.qv-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}
.qv-checks div {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #fff;
  border: 1px solid #e0e7eb;
  padding: 0.9rem 1rem;
  border-radius: 0.7rem;
  box-shadow: 0 10px 22px #21364608;
  font-size: 0.9rem;
  font-weight: 700;
  color: #4c5962;
}
.qv-checks .icon {
  width: 1.15rem;
  height: 1.15rem;
  color: #c65412;
}

@media (max-width: 1080px) {
  .quality-visual {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 740px) {
  .services-visual-strip {
    padding: 1rem;
  }
  .svs-board {
    min-height: 16rem;
  }
  .svs-core {
    width: 7.6rem;
    height: 7.6rem;
    font-size: 0.88rem;
  }
  .proto-browser {
    inset: 1.2rem 4.8rem 4.9rem 0;
  }
  .proto-phone {
    width: 5.8rem;
    top: auto;
    bottom: 3.9rem;
    right: 0.2rem;
  }
  .proto-phone-screen {
    min-height: 8.8rem;
  }
  .proto-flow {
    left: 0;
    right: 0;
    bottom: 0.2rem;
  }
}
@media (max-width: 540px) {
  .svs-head {
    gap: 0.45rem;
  }
  .svs-pill {
    font-size: 0.72rem;
  }
  .svs-board::before,
  .svs-board::after {
    display: none;
  }
  .svs-board {
    display: grid;
    place-items: center;
    min-height: 20rem;
  }
  .svs-core {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    margin-top: 1rem;
  }
  .svs-node {
    position: absolute;
    padding: 0.52rem 0.65rem;
    font-size: 0.78rem;
  }
  .svs-node-a {
    left: 0.8rem;
    top: 1.1rem;
  }
  .svs-node-b {
    right: 0.8rem;
    top: 1.2rem;
  }
  .svs-node-c {
    right: 0.8rem;
    bottom: 1.2rem;
  }
  .svs-node-d {
    left: 0.8rem;
    bottom: 1.2rem;
  }
  .proto-scene {
    min-height: 24rem;
    padding: 0.85rem;
  }
  .proto-badges {
    gap: 0.4rem;
  }
  .proto-badges span {
    font-size: 0.72rem;
    padding: 0.36rem 0.55rem;
  }
  .proto-browser {
    inset: 1rem 0 7.6rem 0;
  }
  .proto-browser-body {
    grid-template-columns: 4.3rem 1fr;
  }
  .proto-phone {
    display: none;
  }
  .proto-flow {
    position: static;
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .proto-flow-arrow {
    display: none;
  }
  .proto-flow-card {
    flex: 1 1 100%;
  }
  .qv-body {
    grid-template-columns: 4.5rem 1fr;
  }
  .qv-checks {
    grid-template-columns: 1fr;
  }
}

/* --- V12 / Fotografía panorámica completa con transición natural. ---
   La imagen original tiene proporción 1267:764. Conservamos esa proporción
   para impedir que cover elimine la taza, los lápices o las libretas. */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 34rem;
  overflow: hidden;
  background: linear-gradient(100deg, #f5f7f8 0%, #f6f8f9 60%, #f8fafb 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  min-height: clamp(34rem, 44vw, 43rem);
  padding-block: clamp(3rem, 5vw, 4.2rem);
}
.hero-text {
  position: relative;
  z-index: 3;
  width: min(34rem, 48%);
  padding: 0;
}
.hero-text::after {
  content: none;
}
.hero-picture {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 0;
  bottom: auto;
  left: auto;
  width: min(70vw, 70rem);
  height: auto;
  aspect-ratio: 1267 / 764;
  transform: translateY(-50%);
  border-radius: 0;
  background-image: url("assets/portada-visual-v10.webp");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
  box-shadow: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.55) 8%, #000 19%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.55) 8%, #000 19%);
}
.hero-picture::before,
.hero-picture::after {
  content: none;
}

/* --- Under 980 px: move the full illustration below the text. --- */
@media (max-width: 980px) {
  .hero {
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .hero-content {
    order: 1;
    min-height: 0;
    padding-block: 3.1rem 1.5rem;
  }
  .hero-text {
    width: 100%;
    max-width: 37rem;
  }
  .hero-picture {
    position: relative;
    order: 2;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: min(calc(100% - 2rem), 46rem);
    height: auto;
    aspect-ratio: 1267 / 764;
    transform: none;
    margin: 0 auto 1.8rem;
    border-radius: 0.8rem;
    background-size: contain;
    -webkit-mask-image: none;
    mask-image: none;
  }
}
@media (max-width: 640px) {
  .hero-content {
    padding-block: 2.6rem 1.4rem;
  }
  .hero-picture {
    width: calc(100% - 1.2rem);
    margin-bottom: 1.25rem;
  }
}
@media (max-width: 520px) {
  .hero h1 span::after {
    content: " ";
    white-space: pre;
  }
}

/* --- V13: la imagen respeta el mismo contenedor que los textos. --- */
@media (min-width: 981px) {
  .hero-picture {
    /* El borde derecho coincide con el borde derecho de .wrapper. */
    right: max(1.6rem, calc((100vw - var(--max)) / 2));
    left: auto;
    width: min(59%, 42rem);
    max-width: calc(100% - 3.2rem);
    height: auto;
    aspect-ratio: 1267 / 764;
    background-size: contain;
    background-position: center;
    /* Disolvemos la unión sin recortar los extremos de la imagen. */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.48) 9%, #000 19%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.48) 9%, #000 19%);
  }
  .hero-text {
    width: min(34rem, 48%);
  }
}
@media (min-width: 981px) and (max-width: 1200px) {
  .hero-picture {
    width: 57%;
  }
}
@media (max-width: 980px) {
  .hero-picture {
    /* Misma alineación lateral que el contenido principal. */
    width: min(calc(100% - 3.2rem), var(--max));
    max-width: 100%;
    height: auto;
    aspect-ratio: 1267 / 764;
    background-size: contain;
    margin-inline: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
}
@media (max-width: 740px) {
  .hero-picture {
    width: calc(100% - 2.2rem);
  }
}

/* --- V13: evita solapamientos en el rango intermedio. --- */
@media (min-width: 981px) and (max-width: 1200px) {
  .hero {
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .hero-content {
    order: 1;
    min-height: 0;
    padding-block: 3.1rem 1.5rem;
  }
  .hero-text {
    width: 100%;
    max-width: 37rem;
  }
  .hero-picture {
    position: relative;
    order: 2;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: min(calc(100% - 3.2rem), var(--max));
    max-width: 100%;
    height: auto;
    aspect-ratio: 1267 / 764;
    transform: none;
    margin: 0 auto 1.8rem;
    border-radius: 0.8rem;
    background-size: contain;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* --- V15 | Nueva secuencia del hero en pantallas estrechas. ---
   Solo se reordena el hero; el contenido y la navegación permanecen intactos. */
@media (min-width: 1201px) {
  /* El contenedor estático permite conservar exactamente el anclaje visual
     de la imagen V14 respecto a toda la sección, pese al nuevo orden DOM. */
  .hero-content,
  .hero-text {
    position: static;
  }
  .hero-text > :not(.hero-picture) {
    position: relative;
    z-index: 2;
  }
}
@media (max-width: 1200px) {
  .hero {
    display: block;
    min-height: 0;
  }
  .hero-content {
    display: block;
    position: relative;
    min-height: 0;
    padding-block: 2.9rem 3.3rem;
  }
  .hero-text {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: none;
  }
  .hero-text > .eyebrow {
    margin-bottom: 1.05rem;
  }
  .hero-text > h1 {
    max-width: 46rem;
    margin-bottom: 1.8rem;
  }
  /* Imagen entre el H1 y el párrafo; cabe por completo en el área útil. */
  .hero-text > .hero-picture {
    position: relative;
    display: block;
    inset: auto;
    order: 0;
    align-self: stretch;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1267 / 764;
    transform: none;
    margin: 0 0 1.9rem;
    border-radius: 0.85rem;
    background-image: url("assets/portada-visual-v10.webp");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .hero-text > .hero-picture::before,
  .hero-text > .hero-picture::after {
    content: none;
  }
  .hero-text > p:not(.eyebrow) {
    max-width: 40rem;
    margin: 0 0 1.75rem;
  }
  .hero-actions {
    margin-top: 0;
  }
}
@media (max-width: 740px) {
  .hero-content {
    padding-block: 2.55rem 3rem;
  }
  .hero-text > h1 {
    margin-bottom: 1.55rem;
  }
  .hero-text > .hero-picture {
    margin-bottom: 1.65rem;
  }
}
@media (max-width: 480px) {
  .hero-text > .hero-picture {
    margin-bottom: 1.45rem;
  }
  .hero-text > p:not(.eyebrow) {
    margin-bottom: 1.55rem;
  }
}

/* --- V16: hero responsive compacto y fluido, sin cambiar desktop. --- */
@media (max-width: 1200px) {
  /* Solo los saltos de línea que marque el espacio real. */
  .hero h1 br {
    display: none;
  }
  .hero-text > h1 {
    max-width: 100%;
    text-wrap: pretty;
  }

  /* Abarca el mismo ancho útil que el título y la imagen. */
  .hero-text > p:not(.eyebrow) {
    width: 100%;
    max-width: 100%;
  }

  /* Formato panorámico, sin deformar la fotografía. El pequeño
     recorte vertical deja visibles portátil, paneles, libretas y taza. */
  .hero-text > .hero-picture {
    width: 100%;
    max-width: none;
    aspect-ratio: 2.05 / 1;
    height: auto;
    background-size: cover;
    background-position: center 53%;
    overflow: hidden;
  }
}
@media (max-width: 600px) {
  /* En móviles pequeños evitamos que los detalles queden diminutos. */
  .hero-text > .hero-picture {
    aspect-ratio: 1.88 / 1;
    background-position: 50% 53%;
  }
}

/* --- V17: acceso a contacto inmediato, sin desplazamiento largo. --- */
.quick-contact-dialog {
  width: min(calc(100% - 2rem), 31rem);
  max-height: min(90dvh, 48rem);
  overflow-y: auto;
  margin: auto;
  padding: 2.1rem;
  border: 1px solid #dce5ea;
  border-radius: 1rem;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 26px 85px #101c2c42;
}
.quick-contact-dialog::backdrop {
  background: rgba(21, 31, 38, 0.58);
}
.quick-contact-dialog h2 {
  margin: 0.1rem 2rem 0.7rem 0;
  font-size: clamp(1.5rem, 3vw, 1.95rem);
}
.quick-contact-dialog .eyebrow {
  margin: 0 2rem 0.6rem 0;
}
.quick-contact-lead {
  color: var(--muted);
  line-height: 1.65;
  font-size: 1rem;
  margin: 0 0 1.4rem;
}
.quick-contact-close {
  position: absolute;
  right: 0.85rem;
  top: 0.85rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.55rem;
  border: 1px solid #dbe2e6;
  background: #f7f9fa;
  color: #25323a;
}
.quick-contact-close:hover {
  background: #e8eef2;
}
.quick-contact-close .icon {
  width: 1.3rem;
  height: 1.3rem;
}
.quick-contact-links {
  display: grid;
  gap: 0.72rem;
}
.quick-contact-links a {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid #dfe7eb;
  border-radius: 0.65rem;
  background: #f9fbfc;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.quick-contact-links a:hover {
  border-color: #e69a66;
  background: #fff7f1;
}
.quick-contact-links a > .icon:first-child {
  width: 1.7rem;
  height: 1.7rem;
  color: #ba4807;
}
.quick-contact-links a span {
  min-width: 0;
  flex: 1;
}
.quick-contact-links strong {
  display: block;
  font-size: 1rem;
  line-height: 1.45;
}
.quick-contact-links small {
  display: block;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.quick-contact-links .quick-contact-arrow {
  color: #ba4807;
  width: 1.1rem;
  height: 1.1rem;
}
.quick-contact-more {
  display: inline-block;
  margin-top: 1.3rem;
  color: #a43f06;
  font-weight: 700;
  font-size: 0.93rem;
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}
@media (max-width: 480px) {
  .quick-contact-dialog {
    padding: 1.6rem 1.15rem;
  }
  .quick-contact-links a {
    gap: 0.7rem;
    padding: 0.9rem 0.75rem;
  }
}

/* --- V19 · Iconografía de servicios: pictogramas originales con color. --- */
.service-rich .service-icon-holder {
  width: 4.35rem;
  height: 4.35rem;
  margin-bottom: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #f1e5da;
  border-radius: 1.05rem;
  background: linear-gradient(145deg, #fffaf6, #fff0e4);
  box-shadow:
    inset 0 1px 0 #fff,
    0 6px 15px #bd76470d;
}
.service-rich .service-icon-holder .service-icon-rich {
  display: block;
  width: 3.15rem;
  height: 3.15rem;
  margin: 0;
  overflow: visible;
  color: #dc6417;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- V21 | Navegación corporativa refinada. --- */
/* Menos recuadros, mejor jerarquía y una línea de selección discreta. */
:root {
  --header-height: 4.9rem;
}
.header {
  background: linear-gradient(105deg, #253038 0%, #1c252c 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 7px 28px rgba(13, 23, 30, 0.15);
}
.header-row {
  gap: clamp(1rem, 2vw, 2.5rem);
}
.logo img {
  width: 13.85rem;
  transition: opacity 0.18s ease;
}
.logo:hover img {
  opacity: 0.89;
}
.nav {
  gap: 0.15rem;
  margin-left: auto;
  height: 100%;
  align-items: center;
}
.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 0.69rem;
  border: 0;
  border-radius: 0;
  background: none;
  color: #c8d0d5;
  font-size: 0.91rem;
  font-weight: 520;
  letter-spacing: 0.012em;
  line-height: 1.3;
  transition: color 0.18s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0.66rem;
  right: 0.66rem;
  bottom: 0.08rem;
  height: 2px;
  border-radius: 3px;
  background: #f28b48;
  opacity: 0;
  transform: scaleX(0.35);
  transition:
    opacity 0.18s ease,
    transform 0.2s ease;
}
.nav a:hover {
  color: #fff;
  background: none;
}
.nav a:hover::after {
  opacity: 0.6;
  transform: scaleX(1);
}
.nav a.active,
.nav a[aria-current="location"] {
  border: 0;
  background: none;
  color: #fff;
  font-weight: 640;
}
.nav a.active::after,
.nav a[aria-current="location"]::after {
  opacity: 1;
  transform: scaleX(1);
}
/* Contacto conserva la navegación normal, pero tiene más intención visual. */
.nav:not(.legal-nav) a[href="#contacto"] {
  margin-left: 0.45rem;
  padding: 0.62rem 1.08rem;
  min-height: 2.55rem;
  border: 1px solid rgba(240, 246, 250, 0.36);
  border-radius: 999px;
  color: #f9fbfd;
  font-weight: 630;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}
.nav:not(.legal-nav) a[href="#contacto"]::before {
  content: "↗";
  display: inline-block;
  font-size: 1rem;
  font-weight: 400;
  margin-right: 0.48rem;
  color: #f5a16a;
}
.nav:not(.legal-nav) a[href="#contacto"]::after {
  display: none;
}
.nav:not(.legal-nav) a[href="#contacto"]:hover,
.nav:not(.legal-nav) a[href="#contacto"].active,
.nav:not(.legal-nav) a[href="#contacto"][aria-current="location"] {
  background: rgba(232, 109, 35, 0.14);
  border-color: #f5a16a;
  color: #fff;
}
.mobile-toggle {
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid rgba(241, 247, 250, 0.3);
  border-radius: 0.72rem;
  background: rgba(255, 255, 255, 0.06);
  transition:
    background 0.18s ease,
    border-color 0.18s ease;
}
.mobile-toggle:hover,
.mobile-toggle[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(241, 247, 250, 0.6);
}
@media (max-width: 965px) {
  :root {
    --header-height: 4.5rem;
  }
  .logo img {
    width: min(13.25rem, 66vw);
  }
  .nav:not(.legal-nav) {
    display: none;
    position: absolute;
    top: calc(var(--header-height) - 1px);
    left: 0;
    right: 0;
    height: auto;
    margin: 0;
    padding: 1.1rem max(1.1rem, calc((100vw - min(71rem, 100vw - 3.2rem)) / 2)) 1.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0 0 1.05rem 1.05rem;
    background: linear-gradient(140deg, #27343c, #202a31);
    box-shadow: 0 18px 36px rgba(16, 27, 36, 0.28);
  }
  .nav:not(.legal-nav).is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.12rem;
  }
  .nav:not(.legal-nav) a {
    justify-content: flex-start;
    width: 100%;
    min-height: 3rem;
    padding: 0.83rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    border-radius: 0.5rem;
  }
  .nav:not(.legal-nav) a::after {
    left: 0.25rem;
    right: auto;
    top: 50%;
    bottom: auto;
    height: 1.45rem;
    width: 2px;
    transform: translateY(-50%) scaleY(0.4);
    transform-origin: center;
  }
  .nav:not(.legal-nav) a:hover {
    background: rgba(255, 255, 255, 0.055);
  }
  .nav:not(.legal-nav) a:hover::after {
    transform: translateY(-50%) scaleY(1);
  }
  .nav:not(.legal-nav) a.active,
  .nav:not(.legal-nav) a[aria-current="location"] {
    background: rgba(255, 255, 255, 0.06);
  }
  .nav:not(.legal-nav) a.active::after,
  .nav:not(.legal-nav) a[aria-current="location"]::after {
    transform: translateY(-50%) scaleY(1);
  }
  .nav:not(.legal-nav) a[href="#contacto"] {
    justify-content: center;
    margin: 0.8rem 0 0;
    min-height: 3.1rem;
    border-radius: 0.66rem;
    background: rgba(241, 137, 70, 0.09);
  }
  .nav:not(.legal-nav) a[href="#contacto"]::before {
    margin-right: 0.65rem;
  }
  /* Páginas legales: su enlace de regreso permanece visible. */
  .nav.legal-nav {
    display: flex;
    position: static;
    margin-left: auto;
    height: auto;
    background: none;
    box-shadow: none;
    border: 0;
    padding: 0;
  }
  .nav.legal-nav a {
    font-size: 0.9rem;
    padding: 0.58rem 0.5rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nav a,
  .nav a::after,
  .mobile-toggle {
    transition: none;
  }
}

/* --- DATASOLARIS / Ajuste puntual del logotipo de cabecera. ---
   El separador blanco pertenece al PNG original: renderizamos únicamente
   el símbolo y el bloque de texto, sin incluir la franja divisoria.
   Conservamos el fichero original, la altura de la cabecera y su navegación. */
.header .logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex: 0 0 auto;
  height: 100%;
}
.header .logo > img {
  display: none;
}
.header .logo::before,
.header .logo::after {
  content: "";
  display: block;
  flex: none;
  background-image: url("assets/logo-datasolaris-horizontal.png");
  background-repeat: no-repeat;
}
/* Silueta original (x 0–94, y 9–107): un poco más grande. */
.header .logo::before {
  width: 3.1138rem;
  height: 3.2462rem;
  background-size: 15.1713rem 3.7763rem;
  background-position: 0 -0.2981rem;
}
/* DATASOLARIS + lema (x 116–443, y 22–90): ampliado por separado. */
.header .logo::after {
  width: 12.8756rem;
  height: 2.6775rem;
  background-size: 18.0338rem 4.4887rem;
  background-position: -4.5675rem -0.8662rem;
}
@media (max-width: 72.5rem) and (min-width: 60.375rem) {
  .header .logo {
    gap: 0.48rem;
  }
  .header .logo::before {
    width: 2.82rem;
    height: 2.94rem;
    background-size: 13.74rem 3.42rem;
    background-position: 0 -0.27rem;
  }
  .header .logo::after {
    width: 11.6494rem;
    height: 2.4225rem;
    background-size: 16.3163rem 4.0613rem;
    background-position: -4.1325rem -0.7837rem;
  }
}
@media (max-width: 33.75rem) {
  .header .logo {
    gap: 0.38rem;
  }
  .header .logo::before {
    width: 2.4087rem;
    height: 2.5112rem;
    background-size: 11.7363rem 2.9213rem;
    background-position: 0 -0.2306rem;
  }
  .header .logo::after {
    width: 9.8125rem;
    height: 2.04rem;
    background-size: 13.74rem 3.42rem;
    background-position: -3.48rem -0.66rem;
  }
}

/* --- V23 · Logotipo más grande dentro de la altura existente de cabecera. ---
   Conserva el PNG original, oculta su separador vertical y no cambia
   la altura del encabezado ni el resto de la navegación. */
.header .logo {
  gap: 0.4375rem;
}
.header .logo::before {
  width: 4.31633rem;
  height: 4.5rem;
  background-size: 21.03061rem 5.23469rem;
  background-position: 0 -0.41327rem;
}
.header .logo::after {
  width: 19.68612rem;
  height: 4.09375rem;
  background-size: 27.57261rem 6.86305rem;
  background-position: -6.98346rem -1.32445rem;
}
@media (max-width: 1249px) {
  .header .logo {
    gap: 0.375rem;
  }
  .header .logo::before {
    width: 4.01658rem;
    height: 4.1875rem;
    background-size: 19.57015rem 4.87117rem;
    background-position: 0 -0.38457rem;
  }
  .header .logo::after {
    width: 18.03309rem;
    height: 3.75rem;
    background-size: 25.25735rem 6.28676rem;
    background-position: -6.39706rem -1.21324rem;
  }
}
@media (max-width: 1140px) {
  .header .logo {
    gap: 0.375rem;
  }
  .header .logo::before {
    width: 3.47704rem;
    height: 3.625rem;
    background-size: 16.94133rem 4.21684rem;
    background-position: 0 -0.33291rem;
  }
  .header .logo::after {
    width: 15.62868rem;
    height: 3.25rem;
    background-size: 21.88971rem 5.44853rem;
    background-position: -5.54412rem -1.05147rem;
  }
}
@media (max-width: 1050px) and (min-width: 966px) {
  .header .logo {
    gap: 0.3125rem;
  }
  .header .logo::before {
    width: 2.75765rem;
    height: 2.875rem;
    background-size: 13.43622rem 3.34439rem;
    background-position: 0 -0.26403rem;
  }
  .header .logo::after {
    width: 12.02206rem;
    height: 2.5rem;
    background-size: 16.83824rem 4.19118rem;
    background-position: -4.26471rem -0.80882rem;
  }
}
@media (max-width: 965px) {
  .header .logo {
    gap: 0.375rem;
  }
  .header .logo::before {
    width: 3.95663rem;
    height: 4.125rem;
    background-size: 19.27806rem 4.79847rem;
    background-position: 0 -0.37883rem;
  }
  .header .logo::after {
    width: 18.03309rem;
    height: 3.75rem;
    background-size: 25.25735rem 6.28676rem;
    background-position: -6.39706rem -1.21324rem;
  }
}
@media (max-width: 520px) {
  .header .logo {
    gap: 0.3125rem;
  }
  .header .logo::before {
    width: 3.47704rem;
    height: 3.625rem;
    background-size: 16.94133rem 4.21684rem;
    background-position: 0 -0.33291rem;
  }
  .header .logo::after {
    width: 15.92923rem;
    height: 3.3125rem;
    background-size: 22.31066rem 5.55331rem;
    background-position: -5.65074rem -1.07169rem;
  }
}
@media (max-width: 440px) {
  .header .logo {
    gap: 0.3125rem;
  }
  .header .logo::before {
    width: 3.1773rem;
    height: 3.3125rem;
    background-size: 15.48087rem 3.85332rem;
    background-position: 0 -0.30421rem;
  }
  .header .logo::after {
    width: 14.42647rem;
    height: 3rem;
    background-size: 20.20588rem 5.02941rem;
    background-position: -5.11765rem -0.97059rem;
  }
}
@media (max-width: 380px) {
  .header .logo {
    gap: 0.25rem;
  }
  .header .logo::before {
    width: 2.57781rem;
    height: 2.6875rem;
    background-size: 12.55995rem 3.12628rem;
    background-position: 0 -0.24681rem;
  }
  .header .logo::after {
    width: 11.72151rem;
    height: 2.4375rem;
    background-size: 16.41728rem 4.0864rem;
    background-position: -4.15809rem -0.7886rem;
  }
}
@media (max-width: 340px) {
  .header .logo {
    gap: 0.25rem;
  }
  .header .logo::before {
    width: 2.39796rem;
    height: 2.5rem;
    background-size: 11.68367rem 2.90816rem;
    background-position: 0 -0.22959rem;
  }
  .header .logo::after {
    width: 10.5193rem;
    height: 2.1875rem;
    background-size: 14.73346rem 3.66728rem;
    background-position: -3.73162rem -0.70772rem;
  }
}
/* En móviles muy estrechos, reservar espacio para el botón de menú. */
@media (max-width: 440px) {
  .header .header-row {
    gap: 0.75rem;
  }
}


/* --- Identidad de marca DATASOLARIS | Nueva sección aislada. --- */
.brand-identity {
  padding: clamp(3.6rem, 5.5vw, 5.25rem) 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafb 100%);
  border-top: 1px solid #edf0f2;
}
.brand-identity-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(0, 0.87fr);
  align-items: center;
  gap: clamp(1.6rem, 4vw, 4.3rem);
}
.brand-identity-lead h2 {
  max-width: 37rem;
  font-size: clamp(1.8rem, 2.85vw, 2.45rem);
  line-height: 1.22;
  margin-bottom: 1.35rem;
}
.brand-identity-lead p:not(.eyebrow),
.brand-identity-segment-copy p:not(.brand-identity-kicker) {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.78;
}
.brand-identity-lead strong,
.brand-identity-segment-copy strong {
  color: #35424b;
}
.brand-identity-full-logo {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem;
  border-radius: 1rem;
  background: #fff;
}
.brand-identity-full-logo img {
  width: min(100%, 27rem);
  height: auto;
  object-fit: contain;
}
.brand-identity-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.3rem;
  margin-top: 2.4rem;
}
.brand-identity-segment {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  min-width: 0;
  padding: 1.55rem;
  border: 1px solid #e5eaee;
  border-radius: 0.95rem;
  background: #fff;
  box-shadow: 0 12px 32px rgba(32, 53, 66, 0.045);
}
.brand-identity-segment > img {
  width: 11rem;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
.brand-identity-segment-copy {
  min-width: 0;
}
.brand-identity-kicker {
  color: var(--orange-text);
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.11em;
  margin-bottom: 0.65rem;
}
.brand-identity-segment h3 {
  font-size: clamp(1.35rem, 1.75vw, 1.7rem);
  line-height: 1.23;
  margin: 0 0 0.85rem;
}
.brand-identity-segment h3 span { color: var(--orange-text); }
.brand-identity-segment:first-child h3 span { color: #5f696e; }
.brand-identity-segment-copy p:last-child { margin-bottom: 0; }
.brand-identity-philosophy {
  margin-top: 2.8rem;
}
.brand-identity-philosophy-head {
  margin-bottom: 1.6rem;
}
.brand-identity-philosophy-head h3 {
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  margin: 0 0 0.65rem;
}
.brand-identity-philosophy-head > p:last-child {
  color: var(--muted);
  font-size: 1rem;
}
.brand-identity-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
}
.brand-identity-principles article {
  min-width: 0;
  padding: 1.75rem 1.6rem;
  background: #fff;
  border: 1px solid #e6ebee;
  border-radius: 0.85rem;
}
.brand-identity-principle-label {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.95rem;
}
.brand-identity-principle-icon {
  width: 3rem;
  height: 3rem;
  flex: 0 0 3rem;
  display: block;
  object-fit: contain;
}
.brand-identity-principle-label h4 {
  font-size: 1.22rem;
  line-height: 1.25;
  margin: 0;
}
.brand-identity-principles article > p {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.76;
  margin: 0;
}
@media (max-width: 1050px) {
  .brand-identity-intro { grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr); }
  .brand-identity-pair { grid-template-columns: 1fr; }
  .brand-identity-segment { grid-template-columns: 11rem minmax(0, 1fr); }
}
@media (max-width: 740px) {
  .brand-identity-intro { grid-template-columns: 1fr; gap: 0.9rem; }
  .brand-identity-full-logo { max-width: 27rem; width: 100%; margin: 0 auto; }
  .brand-identity-pair { margin-top: 1.6rem; }
  .brand-identity-principles { grid-template-columns: 1fr; }
  .brand-identity-philosophy { margin-top: 2rem; }
}
@media (max-width: 500px) {
  .brand-identity-segment { grid-template-columns: 1fr; gap: 0.4rem; }
  .brand-identity-segment > img { width: min(100%, 11rem); margin: 0 auto 0.8rem; }
  .brand-identity-segment { padding: 1.3rem; }
  .brand-identity-principles article { padding: 1.4rem; }
}


/* --- V29: orange marker follows the content column rather than the viewport. --- */
.anchor.is-targeted::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  /* --- .wrapper is centered, up to --max. Keep a 0.75rem breathing space. --- */
  /* left: max(0.25rem, calc((100% - var(--max)) / 2 - 2rem)); */
  width: 0.28rem;
  background: var(--orange);
  z-index: 5;
  pointer-events: none;
}

/* --- Narrow screens use a smaller offset because .wrapper has 1.1rem gutters. --- */
@media (max-width: 740px) {
  .anchor.is-targeted::before {
    left: 0.25rem;
  }
}

/* --- V31 / Interactive prototyping laboratory (scoped component). --- */
.prototype-demo {
  --lab-dark: #27343c;
  --lab-muted: #64727d;
  --lab-edge: #e4e9ed;
  --lab-orange: #de691c;
  border-radius: 1rem;
  border: 1px solid #dce5e9;
  background: #fff;
  box-shadow: 0 20px 60px #233c4c17;
  isolation: isolate;
  overflow: hidden;
}
.prototype-demo [hidden] { display: none !important; }
.prototype-demo button { -webkit-tap-highlight-color: transparent; }
.prototype-demo button:focus-visible,
.prototype-demo input:focus-visible,
.prototype-demo select:focus-visible,
.prototype-demo [role="tabpanel"]:focus-visible { outline: 3px solid #2475bf; outline-offset: 2px; }
.lab-header {
  min-height: 4.4rem;
  display: flex;
  align-items: center;
  padding: 1.05rem 1.3rem;
  gap: 0.8rem;
  border-bottom: 1px solid var(--lab-edge);
  background: #fff;
}
.lab-header-mark {
  display: grid;
  place-items: center;
  color: #c6530e;
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 2.35rem;
  border-radius: 0.62rem;
  background: #fff0e4;
}
.lab-header-mark .icon { width: 1.3rem; height: 1.3rem; }
.lab-header-title { display: flex; flex-direction: column; gap: 0.12rem; min-width: 0; line-height: 1.2; }
.lab-header-title strong { font-size: 0.78rem; letter-spacing: 0.11em; color: #3c4b54; }
.lab-header-title span { color: var(--lab-muted); font-size: 0.7rem; }
.lab-header-status { font-size: 0.66rem; color: #677580; font-weight: 780; letter-spacing: 0.1em; margin-left: auto; display: flex; align-items: center; gap: 0.35rem; white-space: nowrap; }
.lab-status-dot { width: 0.5rem; height: 0.5rem; background: #e98432; border-radius: 50%; }
.prototype-demo .demo-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.42rem;
  padding: 0.8rem 1.15rem;
  background: #fff;
  border-bottom: 1px solid var(--lab-edge);
}
.prototype-demo .demo-tab {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.43rem;
  position: relative;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  background: #f6f8f9;
  color: #65717b;
  min-height: 2.65rem;
  padding: 0.5rem 0.3rem;
  font-size: 0.82rem;
  line-height: 1.2;
  font-weight: 750;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.prototype-demo .demo-tab:hover { background: #fff1e6; color: #9f440c; }
.prototype-demo .demo-tab[aria-selected="true"] { color: #9b3b06; background: #fff0e5; border-color: #efb990; box-shadow: inset 0 -2px 0 #e57627; }
.prototype-demo .lab-tab-number { font-size: 0.69rem; opacity: 0.74; letter-spacing: 0.03em; }
.lab-canvas { padding: 1.1rem; background: linear-gradient(140deg, #f5f8fa 0%, #f8fafb 63%, #fff7f0 100%); }
.lab-stage { min-height: 26.6rem; }
.lab-stage-heading { display: flex; align-items: center; justify-content: space-between; gap: 0.7rem; margin: 0 0 0.85rem; color: #73818a; font-size: 0.68rem; line-height: 1.35; font-weight: 600; }
.lab-stage-tag { color: #af4c15; background: #fff2e7; border: 1px solid #f3ddca; border-radius: 2rem; padding: 0.32rem 0.65rem; font-size: 0.66rem; font-weight: 790; letter-spacing: 0.07em; white-space: nowrap; }
.lab-wire-window, .lab-app-window, .lab-flow-window { overflow: hidden; border: 1px solid #dde5e9; border-radius: 0.72rem; background: white; box-shadow: 0 12px 28px #2e465310; }
.lab-wire-window { border-style: dashed; border-color: #cbd5db; }
.lab-wire-toolbar { height: 2rem; background: #edf1f3; border-bottom: 1px solid #dce4e8; padding: 0 0.75rem; display: flex; align-items: center; gap: 0.3rem; }
.lab-wire-toolbar i { width: 0.35rem; height: 0.35rem; border-radius: 50%; background: #bcc8ce; }
.lab-wire-toolbar span { font-size: 0.65rem; color: #8a98a1; margin-left: 0.6rem; font-weight: 680; }
.lab-wire-layout { min-height: 17rem; display: grid; grid-template-columns: 3.9rem minmax(0, 1fr); }
.lab-wire-side { background: #f1f4f5; border-right: 1px solid #e2e8ea; display: flex; flex-direction: column; align-items: center; gap: 0.85rem; padding: 1rem 0.4rem; }
.lab-wire-logo { width: 1.6rem; height: 1.6rem; border: 2px solid #bac5cb; border-radius: 0.33rem; margin-bottom: 0.55rem; }
.lab-wire-side i { width: 1.6rem; height: 0.37rem; background: #c9d2d7; border-radius: 0.2rem; }
.lab-wire-side i:nth-child(3) { width: 1.2rem; }
.lab-wire-side i:nth-child(5) { width: 1.35rem; }
.lab-wire-main { position: relative; padding: 1rem 1.15rem 1.65rem; background-image: radial-gradient(#d5dfe44c 0.8px,transparent 0.8px); background-size: 0.85rem 0.85rem; }
.lab-wire-head { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; }
.lab-wire-title { width: 57%; max-width: 10rem; height: 0.8rem; border-radius: 0.25rem; background: #bac6cc; }
.lab-wire-avatar { height: 1.3rem; width: 1.3rem; border-radius: 50%; border: 2px solid #b7c3c9; }
.lab-wire-subtitle { margin-top: 0.5rem; width: 70%; height: 0.38rem; background: #e0e6e9; border-radius: 0.2rem; }
.lab-wire-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.55rem; margin-top: 1.5rem; }
.lab-wire-stats > div { min-width: 0; min-height: 3.4rem; border: 1.5px solid #ccd6dc; background: #fafbfc; border-radius: 0.3rem; padding: 0.7rem; }
.lab-wire-stats b, .lab-wire-stats i { display: block; width: 56%; height: 0.65rem; border-radius: 0.2rem; background: #c0cbd1; }
.lab-wire-stats i { width: 83%; height: 0.34rem; margin-top: 0.5rem; background: #d9e1e5; }
.lab-wire-section { display: flex; justify-content: space-between; margin: 1.4rem 0 0.7rem; }
.lab-wire-section span { height: 0.4rem; width: 32%; border-radius: 0.2rem; background: #cbd6dc; }
.lab-wire-section span:last-child { width: 16%; background: #e1e8eb; }
.lab-wire-rows { display: grid; gap: 0.45rem; }
.lab-wire-rows div { height: 1.3rem; border: 1px solid #dbe3e7; background: #f9fafb; border-radius: 0.2rem; }
.lab-wire-action { position: absolute; right: 0.8rem; bottom: 0.7rem; display: flex; flex-direction: column; gap: 0.15rem; padding: 0.48rem 0.67rem; background: #fff7f0; border: 1.5px dashed #e89050; border-radius: 0.35rem; transform: rotate(-1.5deg); box-shadow: 0 4px 15px #e6ab7522; }
.lab-wire-action span { font-size: 0.5rem; font-weight: 800; letter-spacing: 0.09em; color: #be6126; }
.lab-wire-action strong { font-size: 0.72rem; color: #8c4b20; }
.lab-wire-notes { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.92rem; }
.lab-wire-notes span { color: #677780; background: #fff; border: 1px solid #e1e8eb; border-radius: 1.5rem; font-size: 0.69rem; font-weight: 650; padding: 0.34rem 0.6rem; }
.lab-wire-notes b { color: #c45a15; margin-right: 0.25rem; }
.lab-app-window { background: #fff; }
.lab-app-top { height: 3rem; padding: 0 1rem; display: flex; align-items: center; gap: 0.65rem; border-bottom: 1px solid #e9eef0; }
.lab-app-brand { font-size: 0.79rem; font-weight: 860; letter-spacing: 0.1em; color: #283942; }
.lab-app-brand span { color: #e87528; font-size: 1.25rem; margin-right: 0.13rem; }
.lab-app-project { margin-left: auto; color: #829099; font-size: 0.69rem; }
.lab-app-avatar { display: grid; place-items: center; border-radius: 50%; background: #eaf2f5; color: #486675; font-size: 0.7rem; font-weight: 800; width: 1.72rem; height: 1.72rem; }
.lab-app-body { padding: 1.5rem 1.35rem 1.2rem; }
.lab-app-kicker { color: #c35a19; font-size: 0.64rem; font-weight: 830; letter-spacing: 0.13em; }
.lab-app-heading { display: flex; justify-content: space-between; align-items: center; gap: 0.65rem; margin: 0.38rem 0 0.2rem; }
.lab-app-heading h3 { font-size: clamp(1.25rem, 2.6vw, 1.5rem); letter-spacing: -0.035em; line-height: 1.25; color: #25343e; margin: 0; }
.lab-app-date { color: #86949d; font-size: 0.66rem; white-space: nowrap; }
.lab-app-body > p { color: #788892; font-size: 0.76rem; margin-bottom: 1.35rem; }
.lab-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.65rem; }
.lab-metrics > div { position: relative; border: 1px solid #e4ebee; border-radius: 0.56rem; background: #f9fbfc; padding: 0.75rem 0.7rem 0.66rem; overflow: hidden; }
.lab-metrics > div:nth-child(2) { background: #eff9f5; border-color: #d9eee4; }
.lab-metrics > div:nth-child(3) { background: #fff7ef; border-color: #f2e2d3; }
.lab-metrics span { display: block; color: #657581; font-size: 0.69rem; margin-bottom: 0.3rem; white-space: nowrap; }
.lab-metrics strong { color: #2b424e; display: block; font-size: 1.48rem; line-height: 1.15; }
.lab-metrics i { display: block; width: 1.6rem; height: 0.18rem; background: #839da8; border-radius: 0.2rem; margin-top: 0.48rem; }
.lab-metrics > div:nth-child(2) i { background: #56a77d; }
.lab-metrics > div:nth-child(3) i { background: #ea8b3b; }
.lab-app-subheading { display: flex; align-items: center; justify-content: space-between; margin: 1.25rem 0 0.5rem; gap: 0.5rem; }
.lab-app-subheading strong { color: #344753; font-size: 0.78rem; }
.lab-app-subheading span { color: #c45b18; font-size: 0.67rem; font-weight: 750; }
.lab-request-row { display: flex; align-items: center; gap: 0.62rem; border: 1px solid #e7edf0; border-radius: 0.55rem; padding: 0.62rem; }
.lab-request-symbol { display: grid; place-items: center; width: 2rem; height: 2rem; background: #edf3f5; border-radius: 0.4rem; color: #557480; }
.lab-request-row > span:nth-child(2) { min-width: 0; flex: 1; }
.lab-request-row strong { display: block; color: #3d515d; font-size: 0.69rem; line-height: 1.35; }
.lab-request-row small { display: block; color: #87949a; font-size: 0.61rem; margin-top: 0.1rem; }
.lab-request-row em { color: #2d8763; font-size: 0.62rem; font-style: normal; border-radius: 1rem; background: #eaf7ef; padding: 0.2rem 0.4rem; white-space: nowrap; }
.lab-primary, .lab-secondary { display: inline-flex; justify-content: center; align-items: center; gap: 0.6rem; border-radius: 0.48rem; padding: 0.73rem 0.95rem; font-size: 0.8rem; line-height: 1.2; font-weight: 760; min-height: 2.55rem; transition: background-color 0.18s ease, transform 0.18s ease; }
.lab-primary { background: #d7631c; border: 1px solid #c45614; color: #fff; }
.lab-primary:hover { background: #ad470d; transform: translateY(-1px); }
.lab-secondary { background: #fff; color: #516573; border: 1px solid #d6e0e5; }
.lab-secondary:hover { background: #f2f6f8; }
.prototype-demo .lab-primary .icon, .prototype-demo .lab-secondary .icon { width: 1rem; height: 1rem; }
.lab-ui-try { width: 100%; margin-top: 0.95rem; }
.lab-flow-window { background: #fff; }
.lab-flow-bar { background: #273943; color: #e2edf1; padding: 0.55rem 0.85rem; display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; font-size: 0.65rem; line-height: 1.4; }
.lab-flow-bar > span:first-child { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 750; }
.lab-flow-bar > span:last-child { color: #b4c5cf; text-align: right; }
.lab-live-dot { width: 0.48rem; height: 0.48rem; background: #68cba3; border-radius: 50%; }
.lab-flow-progress { padding: 1rem 1.1rem 0.85rem; display: flex; justify-content: center; align-items: center; gap: 0.5rem; border-bottom: 1px solid #edf1f3; }
.lab-flow-progress span { display: flex; align-items: center; gap: 0.34rem; color: #8997a0; font-size: 0.66rem; font-weight: 730; white-space: nowrap; }
.lab-flow-progress b { border: 1px solid #d7e1e5; display: grid; place-items: center; width: 1.35rem; height: 1.35rem; border-radius: 50%; font-size: 0.63rem; }
.lab-flow-progress i { flex: 1; min-width: 0.25rem; max-width: 2rem; height: 1px; background: #d9e3e7; }
.lab-flow-progress .is-current { color: #bd5011; }
.lab-flow-progress .is-current b { background: #dd6a1e; border-color: #dd6a1e; color: white; }
.lab-flow-progress .is-complete { color: #447b67; }
.lab-flow-progress .is-complete b { background: #ebf8f0; border-color: #b3dec5; }
.lab-flow-content { min-height: 18.4rem; padding: 1.35rem 1.35rem 1.4rem; display: flex; flex-direction: column; justify-content: center; }
.lab-flow-screen { animation: lab-appear 0.2s ease-out both; }
@keyframes lab-appear { from { opacity: 0; transform: translateY(0.35rem); } to { opacity: 1; transform: translateY(0); } }
.lab-flow-icon, .lab-success-icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 0.7rem; background: #fff0e4; color: #cb5b19; margin-bottom: 0.72rem; }
.lab-flow-icon .icon, .lab-success-icon .icon { width: 1.5rem; height: 1.5rem; }
.lab-flow-eyebrow { margin: 0 0 0.25rem; font-size: 0.66rem; color: #bd581a; font-weight: 800; letter-spacing: 0.12em; }
.lab-flow-screen h3 { margin: 0 0 0.48rem; color: #293b46; font-size: 1.24rem; letter-spacing: -0.03em; line-height: 1.3; }
.lab-flow-screen > p:not(.lab-flow-eyebrow) { margin: 0 0 1.15rem; color: #697b87; font-size: 0.79rem; line-height: 1.58; }
.lab-flow-screen > .lab-primary, .lab-flow-screen > .lab-secondary { width: 100%; }
.lab-flow-form label { display: block; font-size: 0.75rem; line-height: 1.4; color: #455762; font-weight: 750; margin: 0.86rem 0 0.32rem; }
.lab-flow-form label span { color: #b54c14; }
.lab-flow-form input, .lab-flow-form select { display: block; width: 100%; min-height: 2.48rem; border-radius: 0.42rem; border: 1px solid #ccd8de; background: #fff; color: #344753; font: inherit; font-size: 0.79rem; padding: 0.55rem 0.7rem; }
.lab-flow-form input::placeholder { color: #93a1a9; }
.lab-flow-form input[aria-invalid="true"] { border-color: #b94122; background: #fff9f7; }
.lab-field-error { display: block; color: #ab3518; font-size: 0.69rem; margin-top: 0.3rem; }
.lab-flow-actions { display: flex; gap: 0.7rem; margin-top: 1.2rem; }
.lab-flow-actions .lab-primary { flex: 1; }
.lab-success-icon { color: #25845e; background: #e4f6ec; }
.lab-result { border: 1px solid #dce9e2; border-radius: 0.52rem; background: #f4fbf7; padding: 0.62rem 0.8rem; margin-bottom: 0.95rem; }
.lab-result small, .lab-result strong, .lab-result span { display: block; }
.lab-result small { color: #5a806b; font-size: 0.66rem; }
.lab-result strong { color: #2f4d3c; font-size: 0.8rem; overflow-wrap: anywhere; }
.lab-result span { font-size: 0.69rem; color: #557864; }
.lab-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 5.2rem; padding: 1rem 1.25rem; border-top: 1px solid #e3eaed; background: #fff; }
.lab-footer-copy { display: flex; flex-direction: column; min-width: 0; gap: 0.2rem; }
.lab-footer-copy strong { color: #354750; font-size: 0.82rem; line-height: 1.35; }
.lab-footer-copy span { color: #70818b; font-size: 0.71rem; line-height: 1.5; }
.lab-next-stage { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 0.2rem; background: #fff; border: 1px solid #ebc3a6; color: #b94e0c; border-radius: 0.45rem; padding: 0.55rem 0.55rem 0.55rem 0.7rem; font-size: 0.73rem; font-weight: 800; }
.lab-next-stage:hover { background: #fff1e8; }
.lab-next-stage .icon { width: 0.91rem; height: 0.91rem; }
@media (max-width: 540px) {
  .lab-header { padding: 0.87rem; gap: 0.58rem; }
  .lab-header-mark { width: 2rem; height: 2rem; flex-basis: 2rem; }
  .lab-header-title strong { font-size: 0.7rem; }
  .lab-header-title span { font-size: 0.6rem; }
  .prototype-demo .demo-tabs { padding: 0.65rem 0.7rem; gap: 0.3rem; }
  .prototype-demo .demo-tab { font-size: 0.75rem; gap: 0.22rem; padding-inline: 0.18rem; }
  .prototype-demo .lab-tab-number { font-size: 0.62rem; }
  .lab-canvas { padding: 0.7rem; }
  .lab-stage { min-height: 26.5rem; }
  .lab-stage-heading { font-size: 0.61rem; }
  .lab-stage-tag { font-size: 0.57rem; padding: 0.28rem 0.45rem; }
  .lab-wire-layout { grid-template-columns: 2.6rem minmax(0, 1fr); }
  .lab-wire-side { gap: 0.9rem; }
  .lab-wire-side i { width: 1.25rem; }
  .lab-wire-main { padding: 0.8rem 0.65rem 1.5rem; }
  .lab-wire-stats { gap: 0.35rem; }
  .lab-wire-stats > div { padding: 0.55rem 0.35rem; }
  .lab-wire-notes span { font-size: 0.61rem; padding: 0.3rem 0.43rem; }
  .lab-app-top { padding: 0 0.7rem; }
  .lab-app-body { padding: 1.2rem 0.8rem; }
  .lab-app-project { font-size: 0.57rem; }
  .lab-app-date { display: none; }
  .lab-metrics { gap: 0.38rem; }
  .lab-metrics > div { padding: 0.55rem 0.42rem; }
  .lab-metrics span { font-size: 0.6rem; }
  .lab-metrics strong { font-size: 1.18rem; }
  .lab-request-row { gap: 0.4rem; padding: 0.48rem; }
  .lab-request-row em { display: none; }
  .lab-flow-bar { padding: 0.55rem; font-size: 0.57rem; }
  .lab-flow-progress { padding: 0.85rem 0.5rem; gap: 0.25rem; }
  .lab-flow-progress span { font-size: 0.55rem; gap: 0.15rem; }
  .lab-flow-progress b { width: 1.15rem; height: 1.15rem; }
  .lab-flow-content { padding: 1.15rem 0.8rem; }
  .lab-footer { flex-direction: column; align-items: stretch; gap: 0.75rem; padding: 0.93rem; }
  .lab-next-stage { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .prototype-demo *, .prototype-demo *::before, .prototype-demo *::after { animation: none !important; transition: none !important; }
}


/* --- V32: decorative prototyping illustration, isolated from the interactive lab. --- */
.prototype-section .prototype-feature-illustration {
  width: min(100%, 21.5rem);
  margin: 0 0 1.75rem;
  line-height: 0;
}
.prototype-section .prototype-feature-illustration img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
@media (max-width: 740px) {
  .prototype-section .prototype-feature-illustration {
    width: min(75%, 19rem);
    margin-bottom: 1.5rem;
  }
}
@media (max-width: 440px) {
  .prototype-section .prototype-feature-illustration {
    width: min(82%, 17rem);
    margin-bottom: 1.35rem;
  }
}

/* --- V33: center the prototyping artwork within the copy column at all breakpoints. --- */
.prototype-section .prototype-feature-illustration {
  margin-inline: auto;
}


/* --- V34: center the actual illustration against the full copy column. --- */
.prototype-section .feature-copy > .prototype-feature-illustration {
  display: flex;
  width: 100%;
  max-width: none;
  justify-content: center;
  align-items: center;
  margin: 0 0 1.75rem;
}
.prototype-section .feature-copy > .prototype-feature-illustration img {
  display: block;
  width: min(100%, 21.5rem);
  max-width: 100%;
  height: auto;
  flex: 0 1 auto;
}
@media (max-width: 740px) {
  .prototype-section .feature-copy > .prototype-feature-illustration { margin-bottom: 1.5rem; }
  .prototype-section .feature-copy > .prototype-feature-illustration img { width: min(75%, 19rem); }
}
@media (max-width: 440px) {
  .prototype-section .feature-copy > .prototype-feature-illustration { margin-bottom: 1.35rem; }
  .prototype-section .feature-copy > .prototype-feature-illustration img { width: min(82%, 17rem); }
}


/* --- V35 | Our approach: minimalist construction illustration, softly blended. --- */
.approach .approach-image {
  background-color: #f8fafb;
  background-position: center;
  -webkit-mask-image: radial-gradient(ellipse 79% 80% at 50% 50%, #000 57%, transparent 100%);
  mask-image: radial-gradient(ellipse 79% 80% at 50% 50%, #000 57%, transparent 100%);
}

/* --- V35 | Room for the new Identity menu item in medium desktop widths. --- */
@media (min-width: 966px) and (max-width: 1100px) {
  .header .mobile-toggle { display: flex; }
  .header .nav:not(.legal-nav) {
    display: none;
    position: absolute;
    top: calc(var(--header-height) - 1px);
    left: 0;
    right: 0;
    height: auto;
    margin: 0;
    padding: 1.1rem max(1.1rem, calc((100vw - min(71rem, 100vw - 3.2rem)) / 2)) 1.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0 0 1.05rem 1.05rem;
    background: linear-gradient(140deg, #27343c, #202a31);
    box-shadow: 0 18px 36px rgba(16, 27, 36, 0.28);
  }
  .header .nav:not(.legal-nav).is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.12rem;
  }
  .header .nav:not(.legal-nav) a {
    justify-content: flex-start;
    width: 100%;
    min-height: 3rem;
    padding: 0.83rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    border-radius: 0.5rem;
  }
  .header .nav:not(.legal-nav) a::after {
    left: 0.25rem;
    right: auto;
    top: 50%;
    bottom: auto;
    height: 1.45rem;
    width: 2px;
    transform: translateY(-50%) scaleY(0.4);
    transform-origin: center;
  }
  .header .nav:not(.legal-nav) a:hover { background: rgba(255, 255, 255, 0.055); }
  .header .nav:not(.legal-nav) a:hover::after { transform: translateY(-50%) scaleY(1); }
  .header .nav:not(.legal-nav) a.active,
  .header .nav:not(.legal-nav) a[aria-current="location"] {
    background: rgba(255, 255, 255, 0.06);
  }
  .header .nav:not(.legal-nav) a.active::after,
  .header .nav:not(.legal-nav) a[aria-current="location"]::after {
    transform: translateY(-50%) scaleY(1);
  }
  .header .nav:not(.legal-nav) a[href="#contacto"] {
    justify-content: center;
    margin: 0.8rem 0 0;
    min-height: 3.1rem;
    border-radius: 0.66rem;
    background: rgba(241, 137, 70, 0.09);
  }
  .header .nav:not(.legal-nav) a[href="#contacto"]::before { margin-right: 0.65rem; }
}


/* --- Final overrides · FAQ layout with illustration and two-column accordion. --- */
.faq {
  background: #f6f8f9;
}
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
}
.faq-intro {
  position: static;
  top: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  align-items: center;
  min-width: 0;
}
.faq-intro-copy {
  min-width: 0;
  max-width: 34rem;
}
.faq-intro p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.75;
}
.faq-intro-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  justify-self: center;
  align-self: center;
  width: 100%;
  min-height: 100%;
}
.faq-intro-visual img {
  width: clamp(10rem, 16vw, 13rem);
  max-width: 100%;
  height: auto;
  display: block;
  margin-inline: auto;
  background: transparent;
}
.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2rem;
  align-items: start;
  border-top: 0;
}
.faq-item {
  border-top: 1px solid #dce5e9;
  border-bottom: 1px solid #dce5e9;
  margin-top: -1px;
  background: transparent;
}
.faq-item summary {
  padding: 1.1rem 0.3rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 1rem;
  font-weight: 715;
  line-height: 1.42;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary:hover {
  color: var(--orange-text);
}
.faq-plus {
  font-weight: 300;
  font-size: 1.7rem;
  color: var(--orange-text);
  line-height: 1;
  flex: 0 0 1.4rem;
  text-align: center;
}
.faq-item[open] .faq-plus {
  transform: rotate(45deg);
}
.faq-answer {
  padding: 0 2rem 1.4rem 0.3rem;
}
.faq-answer p {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.7;
}
@media (max-width: 1080px) {
  .faq-layout {
    gap: 2.4rem;
  }
  .faq-list {
    gap: 0 1.4rem;
  }
}
@media (max-width: 965px) {
  .faq-intro {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 1.8rem;
  }
  .faq-intro-visual {
    width: 100%;
    justify-self: center;
  }
  .faq-list {
    grid-template-columns: 1fr;
  }
  .faq-intro h2 br {
    display: none;
  }
}
@media (max-width: 540px) {
  .faq-intro {
    gap: 1.25rem;
  }
  .faq-intro-visual img {
    width: clamp(9rem, 42vw, 11rem);
  }
}

/* Imagen de contacto restaurada: centrada, discreta y sin recuadro visible. */
.contact-illustration {
  width: clamp(11rem, 18vw, 14rem);
  max-width: 100%;
  margin: 1.55rem auto 0;
  pointer-events: none;
}
.contact-illustration img {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse 72% 72% at 50% 50%, #000 58%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 72% at 50% 50%, #000 58%, transparent 100%);
}
@media (max-width: 1080px) {
  .contact-illustration {
    width: min(16rem, 65vw);
    margin-top: 1rem;
  }
}


/* FAQ · Entrada visible en el menú horizontal y en el menú móvil abierto.
   El menú principal se convierte en desplegable cuando la pantalla no tiene espacio. */
.header #main-nav a[href="#preguntas"] {
  display: inline-flex;
  flex: 0 0 auto;
  opacity: 1;
  visibility: visible;
  color: #f0f4f6;
  font-weight: 620;
}
@media (max-width: 1100px) {
  .header #main-nav.is-open a[href="#preguntas"] {
    display: flex;
    width: 100%;
  }
}
