:root {
  --ink: #132e4b;
  --navy: #0a2543;
  --night: #061d36;
  --cyan: #059fdd;
  --bright: #27c5ec;
  --orange: #ff8a00;
  --orange-deep: #ea9209;
  --muted: #647d93;
  --line: #dae7ee;
  --ice: #f2f8fc;
  --white: #fff;
  --shadow: 0 28px 70px rgba(12, 56, 87, 0.11);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family:
    Inter,
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  line-height: 1.6;
}
img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
button {
  font: inherit;
}
.container {
  width: min(1240px, calc(100% - 70px));
  margin-inline: auto;
}
.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 999;
  padding: 12px;
  background: white;
}
.section {
  padding: 106px 0;
}
.eyebrow {
  color: #46d5f3;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  height: 2px;
  width: 26px;
  background: currentColor;
}
.eyebrow.dark {
  color: #008ebf;
}
.eyebrow.light {
  color: #79dff2;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  letter-spacing: -0.047em;
  line-height: 1.09;
}
h1 {
  font-size: clamp(44px, 5.3vw, 79px);
  font-weight: 780;
}
h1 span {
  color: #2bd4f5;
}
h2 {
  font-size: clamp(35px, 4.05vw, 56px);
  font-weight: 760;
}
h2 em {
  font-style: normal;
  color: #079ed8;
}
h3 {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 740;
}
p {
  color: var(--muted);
  line-height: 1.79;
}
.split-head {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 62px;
  align-items: end;
  margin-bottom: 43px;
}
.split-head h2 {
  margin-top: 17px;
  max-width: 730px;
}
.section-copy {
  font-size: 16px;
  padding-bottom: 5px;
}
/* Navegación premium, blanca y luminosa */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid #e4edf4;
  box-shadow: 0 3px 18px rgba(4, 45, 77, 0.035);
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 83px;
}
.site-logo img {
  width: 201px;
  height: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 33px;
}
.main-nav > a {
  font-size: 14px;
  font-weight: 680;
  color: #284358;
  transition: color 0.2s;
}
.main-nav > a:hover {
  color: var(--cyan);
}
.main-nav .nav-cta {
  background: linear-gradient(110deg, #008dce, #12bee7);
  padding: 13px 21px;
  color: white;
  border-radius: 999px;
  box-shadow: 0 9px 18px #058ccd24;
}
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 11px;
  width: 42px;
  height: 42px;
  cursor: pointer;
}
.menu-toggle .icon-close {
  display: none;
}
.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}
.menu-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}
/* Hero: sin herencia visual de la web de 2024 */
.hero {
  position: relative;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 72% 22%, #195681 0%, transparent 36%),
    radial-gradient(circle at 8% 87%, #114a74 0%, transparent 34%),
    linear-gradient(123deg, #08233e 0%, #061b33 53%, #0a2e4d 100%);
}
.hero-backdrop {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(139, 213, 240, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(139, 213, 240, 0.035) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.7;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 45px;
  align-items: center;
  padding: 86px 0 90px;
  min-height: 720px;
}
.hero-copy h1 {
  margin-top: 22px;
  max-width: 680px;
  font-size: clamp(40px, 4.6vw, 66px);
}
.hero-lead {
  margin-top: 26px;
  color: #c3deef;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.75;
  max-width: 545px;
}
.hero-actions {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  margin-top: 35px;
}
.btn {
  padding: 16px 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  font-size: 14px;
  font-weight: 740;
  border-radius: 999px;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.btn:hover {
  transform: translateY(-3px);
}
.btn-primary {
  background: linear-gradient(115deg, #07b9e9, #5be3ff);
  color: #05253e;
  box-shadow: 0 14px 30px #00b9ea40;
}
.btn-secondary {
  border: 1px solid #ffffff50;
  color: white;
  background: #ffffff0e;
}
.hero-bullets {
  display: flex;
  gap: 10px 20px;
  flex-wrap: wrap;
  margin-top: 27px;
}
.hero-bullets span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #b3d3e7;
}
.hero-bullets .icon {
  width: 15px;
  height: 15px;
  color: #2de1fa;
}
/* Tres imágenes originales 2026 de las plataformas */
.hero-visual {
  position: relative;
  padding: 22px 15px 20px 0;
  min-width: 0;
}
.hero-panel-main {
  border-radius: 27px;
  padding: 18px 19px;
  background: linear-gradient(180deg, #eff9ff16, #ffffff08);
  border: 1px solid #ffffff35;
  box-shadow: 0 30px 90px #00000038;
  backdrop-filter: blur(10px);
}
.panel-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 6px 17px;
  font-size: 13px;
}
.panel-top strong {
  color: white;
}
.panel-top small {
  margin-left: auto;
  color: #a2c5dc;
  font-size: 11px;
}
.dot {
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  background: #38d8f5;
  border-radius: 50%;
  box-shadow: 0 0 0 6px #38d8f522;
}
.stack-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.stack-card {
  position: relative;
  overflow: hidden;
  background: #e5f3fc;
  border: 1px solid #ffffff88;
  border-radius: 19px;
  height: 202px;
  box-shadow: 0 12px 24px #00152826;
}
.stack-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #061e36c8, transparent 55%);
  pointer-events: none;
}
.stack-logo,
.stack-card p {
  display: none;
}
.stack-screen {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.stack-card-certiore {
  grid-column: span 2;
  height: 290px;
}
.stack-card-certiore .stack-screen {
  object-position: center 45%;
}
.stack-card-joyclinic .stack-screen {
  object-position: center;
}
.stack-card-revais .stack-screen {
  object-position: center;
}
.floating-badge {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-width: 164px;
  padding: 14px 18px;
  border-radius: 17px;
  border: 1px solid #ffffff66;
  background: #ffffffee;
  color: #153858;
  box-shadow: 0 16px 33px #00000023;
  backdrop-filter: blur(12px);
}
.floating-badge strong {
  font-size: 17px;
  line-height: 1.2;
}
.floating-badge span {
  font-size: 10px;
  color: #5c7a92;
  margin-top: 5px;
  max-width: 155px;
}
.badge-one {
  bottom: 18px;
  left: -17px;
}
.badge-two {
  right: -6px;
  top: 4px;
}
.trust-bar {
  background: #edf8fc;
  border-bottom: 1px solid #d7eaf3;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.trust-grid > div {
  padding: 28px 19px;
  border-right: 1px solid #d8e7f0;
}
.trust-grid > div:first-child {
  padding-left: 0;
}
.trust-grid > div:last-child {
  border: 0;
}
.trust-grid strong,
.trust-grid span {
  display: block;
}
.trust-grid strong {
  color: #0d3550;
  font-size: 17px;
}
.trust-grid span {
  font-size: 12px;
  margin-top: 4px;
  color: #688198;
}
/* Soluciones: grandes imágenes oficiales; tratamiento editorial nuevo */
.intro {
  background: white;
}
.solution-list {
  display: grid;
  gap: 32px;
}
.solution-card {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid #e2edf4;
  background: white;
  box-shadow: var(--shadow);
}
.solution-card.reverse {
  grid-template-columns: 0.88fr 1.12fr;
}
.solution-card.reverse .solution-media {
  order: 2;
}
.solution-card.reverse .solution-body {
  order: 1;
}
.solution-media {
  position: relative;
  min-height: 415px;
  overflow: hidden;
  background: linear-gradient(160deg, #f2f8fb, #dceff8);
}
.solution-media img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: center;
}
.solution-card-joyclinic .solution-media img {
  object-position: center 38%;
}
.solution-body {
  padding: 41px 41px 34px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.product-logo {
  width: auto;
  height: 34px;
  max-width: 190px;
  object-fit: contain;
}
.solution-body h3 {
  margin-top: 23px;
  max-width: 390px;
}
.solution-body p {
  margin-top: 15px;
  font-size: 15px;
}
.solution-body ul {
  padding: 0;
  margin: 19px 0 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.solution-body li {
  font-size: 14px;
  color: #45667c;
  line-height: 1.55;
  padding-left: 23px;
  position: relative;
}
.solution-body li::before {
  position: absolute;
  left: 0;
  top: 8px;
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #12b9e6;
  box-shadow: 0 0 0 4px #12b9e61e;
}
.solution-body > a {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #008ec1;
  font-size: 14px;
  font-weight: 780;
  margin-top: auto;
  padding-top: 22px;
}
.solution-body > a:hover {
  color: #005878;
}
/* Ingeniería visual */
.engineering {
  background: #081b2f;
  color: white;
}
.engineering-shell {
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  gap: 60px;
  align-items: center;
}
.engineering-copy h2 {
  margin-top: 20px;
  font-size: clamp(37px, 4vw, 55px);
}
.engineering-copy h2 em {
  color: #38cdea;
}
.engineering-copy > p {
  color: #b9d0df;
  margin-top: 22px;
  font-size: 16px;
}
.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 13px;
  margin-top: 30px;
}
.capability {
  padding: 21px 19px;
  border: 1px solid #ffffff1e;
  background: #ffffff0a;
  border-radius: 16px;
}
.capability .icon {
  width: 24px;
  height: 24px;
  color: #2dccf1;
}
.capability h3 {
  font-size: 20px;
  margin-top: 13px;
  color: white;
}
.capability p {
  font-size: 13px;
  color: #b4cbd9;
  margin-top: 5px;
}
.engineering-visual {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 12px;
  position: relative;
  min-height: 555px;
}
.visual-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 17px 42px #00000050;
  background: #13324b;
}
.visual-card img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
}
.visual-card-large {
  grid-row: span 2;
}
.visual-card-small {
  min-height: 250px;
}
.visual-overlay {
  position: absolute;
  z-index: 2;
  left: 17px;
  right: 17px;
  bottom: 16px;
  border-radius: 17px;
  padding: 17px 20px;
  background: #061d36de;
  color: white;
  backdrop-filter: blur(9px);
  border: 1px solid #ffffff25;
}
.visual-overlay span {
  display: block;
  color: #2dd7fc;
  font-size: 10px;
  letter-spacing: 0.15em;
  font-weight: 800;
}
.visual-overlay strong {
  font-size: 18px;
  line-height: 1.3;
  display: block;
  margin-top: 8px;
}
.use-cases {
  background: var(--ice);
}
.use-case-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}
.use-case {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  background: white;
  border: 1px solid #e0ebf2;
  padding: 28px 22px;
  border-radius: 18px;
  box-shadow: 0 12px 30px #0c385711;
}
.case-number {
  font-size: 12px;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: #06a9d9;
}
.use-case h3 {
  margin-top: 26px;
  font-size: 23px;
}
.use-case p {
  font-size: 14px;
  margin-top: 10px;
}
.use-case::before {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0098db, #57d8eb);
  opacity: 0.8;
}
.references {
  background: white;
}
.logo-wall {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border: 1px solid #e0ecf3;
  border-radius: 20px;
  overflow: hidden;
  background: white;
}
.logo-item {
  min-height: 132px;
  border-right: 1px solid #e5edf3;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-item:last-child {
  border: 0;
}
.logo-item img {
  width: 100%;
  max-height: 75px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.79;
}
.logo-item:hover img {
  filter: none;
  opacity: 1;
}
.company {
  background: #f2f8fb;
}
.company-grid {
  display: grid;
  grid-template-columns: 0.93fr 1.07fr;
  gap: 76px;
  align-items: center;
}
.company-panel {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 24px;
  background: linear-gradient(130deg, #0d385a, #081a2d);
  padding: 42px;
  color: white;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.company-panel::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -200px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px solid #49bee039;
  box-shadow:
    0 0 0 60px #55c5e80c,
    0 0 0 115px #55c5e806;
}
.company-panel > * {
  position: relative;
  z-index: 1;
}
.mini-label {
  color: #5cddf7;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.14em;
}
.company-panel strong {
  font-size: clamp(31px, 3.4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin-top: 13px;
}
.company-panel p {
  color: #c0d5e3;
  margin-top: 20px;
  font-size: 14px;
}
.company-copy h2 {
  font-size: clamp(34px, 3.6vw, 48px);
}
.company-copy p {
  margin-top: 20px;
}
.contact-band {
  background: linear-gradient(100deg, #06213c, #0b4265);
  color: white;
  padding: 78px 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 55px;
  align-items: center;
}
.contact-grid h2 {
  margin-top: 19px;
  font-size: clamp(36px, 3.8vw, 54px);
}
.contact-grid h2 em {
  color: #63e1fa;
}
.contact-grid p {
  color: #b6d8e9;
  margin-top: 17px;
}
.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 19px;
}
.contact-actions span {
  color: #b1d2e4;
  font-size: 13px;
}
.site-footer {
  background: #061525;
  padding: 42px 0 48px;
  color: #a6c2d5;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 70px;
}
.footer-row > div:first-child {
  max-width: 440px;
}
.footer-row img {
  width: 201px;
  height: auto;
  filter: brightness(0) invert(1);
}
.footer-row p {
  color: #8bacbf;
  font-size: 13px;
  margin-top: 15px;
}
.footer-address {
  display: block;
  margin-top: 10px;
  font-style: normal;
  color: #8bacbf;
  font-size: 13px;
  line-height: 1.5;
}
.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 13px;
  color: #c4daea;
  padding-top: 10px;
}
.footer-links button {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
@media (max-width: 1100px) {
  .container {
    width: calc(100% - 50px);
  }
  .main-nav {
    gap: 18px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 35px;
    padding-top: 70px;
    min-height: 0;
  }
  .hero-copy h1 {
    max-width: 890px;
  }
  .hero-lead {
    max-width: 720px;
  }
  .hero-visual {
    max-width: 780px;
    width: 100%;
    margin: auto;
  }
  .engineering-shell {
    grid-template-columns: 1fr;
  }
  .engineering-visual {
    max-width: 760px;
    width: 100%;
    margin: 10px auto 0;
  }
  .logo-wall {
    grid-template-columns: repeat(3, 1fr);
  }
  .logo-item:nth-child(3) {
    border-right: 0;
  }
  .logo-item:nth-child(-n + 3) {
    border-bottom: 1px solid #e5edf3;
  }
  .use-case-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .company-grid {
    gap: 35px;
  }
}
@media (max-width: 800px) {
  .header-bar {
    min-height: 72px;
  }
  .menu-toggle {
    display: flex;
  }
  .main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: white;
    padding: 0 22px;
    box-shadow: 0 15px 25px #163c561b;
    border-bottom: 1px solid var(--line);
    gap: 2px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      max-height 0.42s cubic-bezier(0.22, 0.61, 0.36, 1),
      opacity 0.28s ease,
      padding 0.28s ease,
      visibility 0s linear 0.42s;
  }
  .main-nav.is-open {
    max-height: 480px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    padding: 12px 22px 20px;
    transition:
      max-height 0.42s cubic-bezier(0.22, 0.61, 0.36, 1),
      opacity 0.28s ease,
      padding 0.28s ease,
      visibility 0s linear 0s;
  }
  .main-nav a.nav-link,
  .main-nav .nav-cta {
    padding: 10px 4px;
  }
  .main-nav .nav-cta {
    text-align: center;
    justify-content: center;
  }
  .section {
    padding: 75px 0;
  }
  .split-head,
  .company-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 19px;
  }
  .solution-card,
  .solution-card.reverse {
    grid-template-columns: 1fr;
  }
  .solution-card.reverse .solution-media {
    order: 0;
  }
  .solution-card.reverse .solution-body {
    order: 1;
  }
  .solution-media {
    min-height: 370px;
  }
  .solution-body {
    padding: 34px;
  }
  .capability-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .engineering-shell {
    gap: 30px;
  }
}
@media (max-width: 540px) {
  .container {
    width: calc(100% - 34px);
  }
  .hero-grid {
    padding: 55px 0 62px;
  }
  .hero-copy h1 {
    font-size: clamp(36px, 9.4vw, 48px);
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .hero-bullets {
    gap: 10px;
  }
  .hero-visual {
    padding: 0;
  }
  .hero-panel-main {
    padding: 11px;
    border-radius: 22px;
  }
  .panel-top small {
    display: none;
  }
  .stack-grid {
    gap: 8px;
  }
  .stack-card {
    height: 146px;
    border-radius: 13px;
  }
  .stack-card-certiore {
    height: 190px;
  }
  .badge-one,
  .badge-two {
    position: static;
    margin-top: 10px;
    display: inline-flex;
    min-width: 0;
    padding: 9px 12px;
  }
  .floating-badge strong {
    font-size: 14px;
  }
  .floating-badge span {
    font-size: 9px;
  }
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust-grid > div {
    padding: 16px 11px;
  }
  .trust-grid > div:first-child {
    padding-left: 11px;
  }
  .trust-grid > div:nth-child(even) {
    border-right: none;
  }
  .trust-grid > div:nth-child(-n + 2) {
    border-bottom: 1px solid #d8e7f0;
  }
  .trust-grid strong {
    font-size: 14px;
  }
  .trust-grid span {
    font-size: 10px;
  }
  .solution-media {
    min-height: 240px;
  }
  .solution-body {
    padding: 26px 21px;
  }
  .solution-body ul {
    margin-top: 13px;
  }
  .capability-grid,
  .use-case-grid {
    grid-template-columns: 1fr;
  }
  .engineering-visual {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .visual-card-large {
    height: 300px;
    grid-row: auto;
  }
  .visual-card-small {
    height: 170px;
    min-height: 0;
  }
  .visual-overlay {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: -1px;
  }
  .logo-wall {
    grid-template-columns: repeat(2, 1fr);
  }
  .logo-item {
    min-height: 104px;
    padding: 13px;
  }
  .logo-item:nth-child(3) {
    border-right: 1px solid #e5edf3;
  }
  .logo-item:nth-child(2n) {
    border-right: 0;
  }
  .logo-item:nth-child(-n + 4) {
    border-bottom: 1px solid #e5edf3;
  }
  .company-panel {
    min-height: 300px;
    padding: 30px;
  }
  .footer-row {
    flex-direction: column;
    gap: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn,
  .main-nav > a,
  .lang-switcher a,
  .lang-switcher::before {
    transition: none;
  }
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation-duration: 0s;
  }
}

/* ===== REFERENCIAS HOSPITALARIAS · V2 | Galería y relación completa ===== */
.references-v2 {
  background: linear-gradient(180deg, #fff 0%, #f6fafd 100%);
}
.references-v2 .section-head {
  margin-bottom: 31px;
}
.reference-lead {
  display: grid;
  gap: 20px;
  align-self: end;
}
.reference-facts {
  display: flex;
  gap: 11px;
  flex-wrap: wrap;
}
.reference-facts > span {
  display: inline-flex;
  gap: 7px;
  align-items: baseline;
  padding: 10px 15px;
  color: #4a687c;
  background: #e7f5fb;
  border: 1px solid #d8eaf2;
  border-radius: 30px;
  font-size: 13px;
}
.reference-facts strong {
  font-size: 17px;
  color: #0785bd;
  line-height: 1;
}
.reference-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}
.reference-logo-card {
  min-width: 0;
  position: relative;
  padding: 17px 17px 15px;
  min-height: 178px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  gap: 9px;
  background: #fff;
  border: 1px solid #e1ebf1;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(7, 37, 63, 0.045);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}
.reference-logo-card:hover {
  transform: translateY(-3px);
  border-color: #aedce9;
  box-shadow: 0 20px 38px rgba(7, 37, 63, 0.09);
}
.reference-logo-image {
  height: 93px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.reference-logo-image img {
  max-width: 100%;
  width: 100%;
  height: 92px;
  object-fit: contain;
  filter: none;
  opacity: 1;
}
.reference-logo-caption {
  border-top: 1px solid #edf2f5;
  padding-top: 10px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 5px;
  row-gap: 1px;
}
.reference-logo-caption > span:first-child {
  font-size: 12px;
  color: #173a51;
  line-height: 1.35;
  font-weight: 750;
}
.reference-logo-caption small {
  display: block;
  width: 100%;
  font-size: 11px;
  color: #7590a1;
  line-height: 1.4;
}
.reference-tag {
  font-size: 8px !important;
  letter-spacing: 0.07em;
  font-weight: 800 !important;
  color: #078bb6 !important;
  background: #e7f6fa;
  border-radius: 4px;
  padding: 2px 5px;
}
.references-expand {
  margin-top: 20px;
  background: #fff;
  border: 1px solid #dce9f0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(7, 37, 63, 0.035);
}
.references-expand > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 25px;
  font-size: 14px;
  font-weight: 800;
  color: #12334a;
  transition: background 0.2s ease;
}
.references-expand > summary::-webkit-details-marker {
  display: none;
}
.references-expand > summary:hover {
  background: #f4fafc;
}
.references-expand > summary:focus-visible {
  outline: 3px solid #24b5da;
  outline-offset: -3px;
}
.references-expand-left,
.references-expand-right {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.references-expand-left > .icon {
  width: 19px;
  height: 19px;
  color: #0a9acb;
}
.references-expand-right {
  font-size: 12px;
  color: #0a94c3;
  white-space: nowrap;
}
.references-expand-right .icon {
  width: 16px;
  height: 16px;
  transform: rotate(90deg);
  transition: transform 0.2s ease;
}
.references-expand[open] .references-expand-right .icon {
  transform: rotate(-90deg);
}
.references-expanded-content {
  border-top: 1px solid #e4eef3;
  padding: 27px;
}
.reference-subtitle {
  font-size: 19px;
  letter-spacing: -0.02em;
  margin: 0 0 17px;
  color: #17334a;
}
.reference-gallery-extra {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.reference-directory-heading {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: end;
  margin: 33px 0 14px;
}
.reference-directory-heading h3 {
  font-size: 23px;
  line-height: 1.2;
}
.reference-directory-heading p {
  font-size: 12px;
  max-width: 450px;
  line-height: 1.6;
}
.reference-regions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.reference-region {
  border: 1px solid #e6edf2;
  border-radius: 14px;
  padding: 20px 21px;
  background: #f9fcfe;
}
.reference-region h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2ebf2;
  color: #113149;
  font-size: 20px;
  line-height: 1.25;
}
.reference-region h3 span {
  font-size: 11px;
  color: #0a94bc;
  white-space: nowrap;
  font-weight: 800;
}
.reference-region ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.reference-region li {
  position: relative;
  padding-left: 14px;
  color: #526d7f;
  font-size: 12.5px;
  line-height: 1.48;
}
.reference-region li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 0.57em;
  background: #23b5da;
}
@media (max-width: 1060px) {
  .reference-gallery,
  .reference-gallery-extra {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 800px) {
  .reference-gallery,
  .reference-gallery-extra {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .reference-directory-heading {
    display: block;
  }
  .reference-directory-heading p {
    margin-top: 8px;
  }
  .reference-regions {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 540px) {
  .reference-gallery,
  .reference-gallery-extra {
    gap: 10px;
  }
  .reference-logo-card {
    padding: 12px 10px;
    min-height: 155px;
    border-radius: 13px;
  }
  .reference-logo-image {
    height: 78px;
  }
  .reference-logo-image img {
    height: 76px;
  }
  .reference-logo-caption > span:first-child {
    font-size: 11px;
  }
  .reference-logo-caption small {
    font-size: 10px;
  }
  .references-expand > summary {
    padding: 16px 15px;
    gap: 9px;
  }
  .references-expand-right {
    font-size: 10px;
  }
  .references-expand-left {
    gap: 7px;
    font-size: 12px;
  }
  .references-expanded-content {
    padding: 15px;
  }
  .reference-region {
    padding: 16px;
  }
  .reference-region li {
    font-size: 12px;
  }
  .reference-facts > span {
    font-size: 11px;
    padding: 9px 11px;
  }
  .reference-facts strong {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reference-logo-card,
  .references-expand-right .icon {
    transition: none;
  }
}
/* Ensure anchor navigation clears the persistent header. */
html {
  scroll-padding-top: 96px;
}
section[id] {
  scroll-margin-top: 96px;
}

/* Final crop fixes */
.stack-card-joyclinic .stack-screen,
.stack-card-revais .stack-screen {
  object-fit: contain;
  object-position: center;
  background: linear-gradient(160deg, #dff1fb, #cfe8f8);
}
.solution-card-revais .solution-media img {
  object-fit: contain;
  object-position: center;
  background: linear-gradient(160deg, #edf7fb, #d9eef9);
}
.solution-card-revais .solution-media {
  padding: 18px;
}
@media (max-width: 540px) {
  .solution-card-revais .solution-media {
    padding: 10px;
  }
}

/* ===== Multilingual header, legal pages & final QA ===== */

.header-bar {
  gap: 18px;
}
.main-nav {
  margin-left: auto;
  gap: 19px;
  min-width: 0;
  order: 1;
}
.lang-switcher {
  order: 2;
}
.menu-toggle {
  order: 3;
}
.lang-switcher {
  position: relative;
  display: flex;
  gap: 2px;
  align-items: center;
  flex-shrink: 0;
  border: 1px solid #dcecf5;
  background: #f1f8fc;
  border-radius: 999px;
  padding: 4px;
}
.lang-switcher::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 4px;
  left: 4px;
  width: 29px;
  height: 26px;
  border-radius: 999px;
  background: #079fd3;
  box-shadow: 0 2px 7px #0b8fc32b;
  pointer-events: none;
  view-transition-name: lang-pill;
  transition:
    left 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
    background-color 0.28s ease,
    box-shadow 0.28s ease;
}
.lang-switcher:has(a:nth-child(2)[aria-current="page"])::before {
  left: 35px;
}
.lang-switcher:has(a:nth-child(3)[aria-current="page"])::before {
  left: 66px;
}
.lang-switcher:has(a:nth-child(1):hover)::before,
.lang-switcher:has(a:nth-child(1):focus-visible)::before {
  left: 4px;
}
.lang-switcher:has(a:nth-child(2):hover)::before,
.lang-switcher:has(a:nth-child(2):focus-visible)::before {
  left: 35px;
}
.lang-switcher:has(a:nth-child(3):hover)::before,
.lang-switcher:has(a:nth-child(3):focus-visible)::before {
  left: 66px;
}
.lang-switcher:has(a[aria-current="page"]:is(:hover, :focus-visible))::before {
  background: #0689b8;
}
.lang-switcher a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 26px;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.02em;
  color: #5e7b8f;
  background: transparent;
  border-radius: 999px;
  transition: color 0.2s ease;
}
.lang-switcher a[aria-current="page"] {
  color: #fff;
  background: transparent;
  box-shadow: none;
}
.lang-switcher:is(:has(a:hover), :has(a:focus-visible)) a {
  color: #5e7b8f;
}
.lang-switcher:is(:has(a:hover), :has(a:focus-visible)) a:is(:hover, :focus-visible) {
  color: #fff;
  transition-delay: 0.2s;
}
@view-transition {
  navigation: auto;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
}
::view-transition-group(lang-pill) {
  animation-duration: 0.45s;
  animation-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1);
}
::view-transition-old(lang-pill),
::view-transition-new(lang-pill) {
  animation: none;
  mix-blend-mode: normal;
  height: 100%;
}
@media (max-width: 800px) {
  .main-nav {
    margin-left: 0;
  }
  .lang-switcher {
    margin-left: auto;
  }
  .menu-toggle {
    flex-shrink: 0;
    margin-left: 0;
  }
}
@media (max-width: 360px) {
  .site-logo img {
    width: 165px;
  }
  .lang-switcher a,
  .lang-switcher::before {
    width: 25px;
  }
  .lang-switcher:has(a:nth-child(2)[aria-current="page"])::before,
  .lang-switcher:has(a:nth-child(2):hover)::before,
  .lang-switcher:has(a:nth-child(2):focus-visible)::before {
    left: 31px;
  }
  .lang-switcher:has(a:nth-child(3)[aria-current="page"])::before,
  .lang-switcher:has(a:nth-child(3):hover)::before,
  .lang-switcher:has(a:nth-child(3):focus-visible)::before {
    left: 58px;
  }
  .header-bar {
    gap: 8px;
  }
}
@media (max-width: 600px) {
  .references-expand-right {
    white-space: normal;
    text-align: right;
  }
  .reference-region h3 {
    flex-wrap: wrap;
  }
}
.legal-main {
  min-height: calc(100vh - 280px);
  background: #f6fafd;
  padding: 72px 0 100px;
}
.legal-main .legal-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 44px 46px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid #dce9f0;
  box-shadow: 0 14px 40px #071d3610;
}
.legal-main h1 {
  font-size: clamp(32px, 4vw, 50px);
  color: #113149;
  margin: 14px 0 18px;
}
.legal-main h2 {
  font-size: 23px;
  margin: 32px 0 12px;
  color: #12344d;
}
.legal-main p,
.legal-main li {
  font-size: 15px;
  line-height: 1.78;
  color: #49677e;
  margin: 12px 0;
}
.legal-main ul {
  padding-left: 23px;
}
.legal-main a:not(.btn) {
  color: #078ac0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-main .back-link {
  display: inline-flex;
  gap: 8px;
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 750;
}
.legal-main .legal-note {
  border-top: 1px solid #e0ebf1;
  padding-top: 18px;
  margin-top: 32px;
  font-size: 13px;
  color: #6e889a;
}
.cookie-pref-button {
  border: 1px solid #6cbfe0;
  border-radius: 30px;
  background: #e9f8fc;
  color: #087ca7;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}
@media (max-width: 600px) {
  .legal-main {
    padding: 35px 0 65px;
  }
  .legal-main .legal-content {
    padding: 26px 20px;
  }
}

/* ===== Mejoras de aspecto, foco y navegación (patrón CERTIORE, paleta SOLERTIA) ===== */
.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-variation-settings:
    "FILL" 0,
    "wght" 500,
    "GRAD" 0,
    "opsz" 24;
  -webkit-font-smoothing: antialiased;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #0aa4d4;
  outline-offset: 3px;
}
.hero a:focus-visible,
.engineering a:focus-visible,
.contact-band a:focus-visible,
.site-footer a:focus-visible,
.site-footer button:focus-visible,
.scroll-top:focus-visible {
  outline-color: #b9f3ff;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 1000;
  padding: 12px 16px;
  background: #fff;
  color: #0a2543;
  border-radius: 10px;
  font-weight: 750;
}
.lang-switcher a:focus-visible {
  outline-offset: 2px;
}

.hero h1 span {
  color: #fff;
  background: linear-gradient(90deg, #fff 0%, #9aefff 48%, #2bd4f5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
h2 em {
  background: linear-gradient(90deg, #132e4b 0%, #079ed8 52%, #2bd4f5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.engineering-copy h2 em {
  background: linear-gradient(90deg, #fff 0%, #9aefff 48%, #38cdea 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.contact-grid h2 em {
  background: linear-gradient(90deg, #fff 0%, #9aefff 48%, #63e1fa 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 span {
    color: #2bd4f5;
    background: none;
    -webkit-text-fill-color: unset;
  }
  h2 em,
  .engineering-copy h2 em,
  .contact-grid h2 em {
    background: none;
    -webkit-text-fill-color: unset;
  }
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-item-icon.material-symbols-outlined {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  font-size: 22px;
  color: currentColor;
}
.nav-item-icon.nav-item-icon-menu {
  display: none;
}
.main-nav a.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.main-nav a.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 2px;
  background: var(--bright);
  opacity: 0;
  transform: scaleX(0.35);
  transform-origin: left center;
  transition:
    opacity 0.22s ease,
    transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1),
    background-color 0.22s ease;
}
.main-nav a.nav-link:hover::after,
.main-nav a.nav-link:focus-visible::after {
  background: var(--bright);
  opacity: 1;
  transform: scaleX(1);
}
.main-nav a.nav-link.is-active::after,
.main-nav a.nav-link[aria-current="true"]::after,
.main-nav a.nav-link.is-active:hover::after,
.main-nav a.nav-link[aria-current="true"]:hover::after {
  background: var(--navy);
  opacity: 1;
  transform: scaleX(1);
}
.main-nav .nav-cta.is-active {
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 4px #12bee7;
}

.menu-toggle {
  position: relative;
}
.menu-toggle .icon-menu,
.menu-toggle .icon-close {
  position: absolute;
  inset: 0;
  margin: auto;
  display: block;
  transition:
    transform 0.28s ease,
    opacity 0.22s ease;
}
.menu-toggle .icon-close {
  opacity: 0;
  transform: rotate(-90deg);
}
.menu-toggle[aria-expanded="true"] .icon-menu {
  opacity: 0;
  transform: rotate(90deg);
}
.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
  opacity: 1;
  transform: rotate(0);
}

.capability-grid,
.use-case-grid {
  align-items: stretch;
}
.capability,
.use-case {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.capability {
  position: relative;
  overflow: hidden;
  padding: 26px 22px;
}
.capability .icon {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
  padding: 11px;
  box-sizing: content-box;
  border-radius: 14px;
  background: rgba(45, 204, 241, 0.18);
  color: #8eebff;
}
.capability:nth-child(2) .icon {
  background: rgba(125, 255, 214, 0.16);
  color: #b8ffe8;
}
.capability:nth-child(3) .icon {
  background: rgba(121, 183, 255, 0.18);
  color: #c5dcff;
}
.capability:nth-child(4) .icon {
  background: rgba(255, 210, 122, 0.16);
  color: #ffe3a8;
}
.use-case {
  padding: 32px 26px;
}

.solution-media::before,
.visual-card::before,
.stack-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(6, 29, 54, 0.45);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.solution-media:hover::before,
.solution-media:focus-within::before,
.visual-card:hover::before,
.visual-card:focus-within::before,
.stack-card:hover::before,
.stack-card:focus-within::before {
  opacity: 1;
}
.media-zoom {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--orange);
  cursor: zoom-in;
  opacity: 0;
  transition:
    opacity 0.25s ease,
    color 0.25s ease;
}
.solution-media:hover .media-zoom,
.solution-media:focus-within .media-zoom,
.visual-card:hover .media-zoom,
.visual-card:focus-within .media-zoom,
.stack-card:hover .media-zoom,
.stack-card:focus-within .media-zoom,
.media-zoom:focus-visible {
  opacity: 1;
}
.media-zoom:hover,
.media-zoom:focus-visible {
  color: var(--orange);
}
.media-zoom .material-symbols-outlined {
  font-size: clamp(3.5rem, 6vw, 4.75rem);
  font-variation-settings:
    "FILL" 0,
    "wght" 200,
    "GRAD" 0,
    "opsz" 48;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}
.solution-media img,
.visual-card img,
.stack-card .stack-screen {
  cursor: zoom-in;
}

.modal.modal-image {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
}
.modal.modal-image.is-open {
  display: block;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}
.modal-dialog-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.modal-image-stage {
  position: relative;
  pointer-events: auto;
  line-height: 0;
  max-width: min(1120px, 94vw);
}
.modal-image-stage img {
  display: block;
  width: auto;
  max-width: min(1120px, 94vw);
  max-height: min(86vh, calc(100dvh - 96px));
  object-fit: contain;
  border-radius: 12px;
  background: #0b2238;
}
.modal-close-image {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #000;
  color: var(--orange);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.modal-close-image:hover,
.modal-close-image:focus-visible {
  color: var(--orange);
  background: #000;
}
body.modal-open {
  overflow: hidden;
}

.section-rail {
  display: none;
}
@media (min-width: 1601px) {
  .section-rail {
    position: fixed;
    top: 50%;
    left: 12px;
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    transform: translateY(-50%);
    pointer-events: none;
  }
  .section-rail-track {
    position: absolute;
    top: 18px;
    bottom: 18px;
    left: 19px;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(
      180deg,
      rgba(7, 159, 211, 0.15),
      rgba(7, 159, 211, 0.55),
      rgba(7, 159, 211, 0.15)
    );
  }
  .section-rail-item,
  .section-rail-item:visited {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 40px;
    color: var(--orange);
    text-decoration: none;
    pointer-events: auto;
  }
  .section-rail-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid #d5e6f0;
    border-radius: 50%;
    background: #fff;
    color: #5d7384;
    box-shadow: 0 8px 20px rgba(7, 37, 63, 0.08);
    transition:
      border-color 0.25s ease,
      color 0.25s ease,
      box-shadow 0.25s ease;
  }
  .section-rail-dot .material-symbols-outlined {
    font-size: 20px;
  }
  .section-rail-label {
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    white-space: nowrap;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--orange);
    -webkit-text-fill-color: var(--orange);
    transform: translateX(-6px);
    transition:
      max-width 0.28s ease,
      opacity 0.28s ease,
      transform 0.28s ease;
  }
  .section-rail-item:hover .section-rail-dot,
  .section-rail-item:focus-visible .section-rail-dot,
  .section-rail-item.is-active .section-rail-dot {
    color: var(--orange);
    border-color: var(--orange);
    box-shadow: 0 8px 22px rgba(255, 138, 0, 0.22);
  }
  .section-rail-item:hover .section-rail-label,
  .section-rail-item:focus-visible .section-rail-label,
  .section-rail-item.is-active .section-rail-label {
    max-width: 140px;
    opacity: 1;
    transform: none;
    color: var(--orange);
    -webkit-text-fill-color: var(--orange);
  }
  .section-rail-item:focus-visible {
    outline: none;
  }
  .section-rail-item:focus-visible .section-rail-dot {
    outline: 3px solid #7dd3fc;
    outline-offset: 2px;
  }
}

.scroll-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #9bc8e4;
  border-radius: 50%;
  background: #0a2543;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(7, 37, 63, 0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s ease;
}
.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.scroll-top .material-symbols-outlined {
  font-size: 22px;
}
.floating-tag {
  position: fixed;
  right: 18px;
  bottom: 68px;
  z-index: 79;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  box-sizing: border-box;
  padding: 14px 0;
  border: 1px solid rgba(255, 196, 102, 0.85);
  border-radius: 999px;
  background: rgba(234, 146, 9, 0.94);
  color: #07304d;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.03em;
  line-height: 1.15;
  text-align: center;
  writing-mode: vertical-rl;
  box-shadow: 0 10px 22px rgba(234, 146, 9, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-110vh) rotate(180deg);
  transition:
    opacity 0.45s ease,
    visibility 0.45s ease,
    transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.floating-tag.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) rotate(180deg);
}

@media (max-width: 800px) {
  .main-nav {
    transform: translateY(-10px);
    transition:
      max-height 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
      opacity 0.35s ease,
      padding 0.4s ease,
      transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
      visibility 0s linear 0.5s;
  }
  .main-nav.is-open {
    transform: none;
    transition:
      max-height 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
      opacity 0.35s ease,
      padding 0.4s ease,
      transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
      visibility 0s linear 0s;
  }
  .nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    opacity: 0;
    transform: translateY(-10px);
    transition:
      opacity 0.26s ease,
      transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
  }
  .main-nav.is-open .nav-item {
    opacity: 1;
    transform: none;
    transition:
      opacity 0.36s ease,
      transform 0.42s cubic-bezier(0.22, 0.61, 0.36, 1);
  }
  .main-nav.is-open .nav-item:nth-child(1) {
    transition-delay: 0.06s;
  }
  .main-nav.is-open .nav-item:nth-child(2) {
    transition-delay: 0.11s;
  }
  .main-nav.is-open .nav-item:nth-child(3) {
    transition-delay: 0.16s;
  }
  .main-nav.is-open .nav-item:nth-child(4) {
    transition-delay: 0.21s;
  }
  .main-nav.is-open .nav-item:nth-child(5) {
    transition-delay: 0.26s;
  }
  .main-nav:not(.is-open) .nav-item:nth-child(5) {
    transition-delay: 0s;
  }
  .main-nav:not(.is-open) .nav-item:nth-child(4) {
    transition-delay: 0.03s;
  }
  .main-nav:not(.is-open) .nav-item:nth-child(3) {
    transition-delay: 0.06s;
  }
  .main-nav:not(.is-open) .nav-item:nth-child(2) {
    transition-delay: 0.09s;
  }
  .main-nav:not(.is-open) .nav-item:nth-child(1) {
    transition-delay: 0.12s;
  }
  .nav-item-icon.material-symbols-outlined {
    display: inline-flex;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    color: var(--orange);
    font-size: 26px;
  }
  .nav-item-icon.nav-item-icon-desk {
    display: none;
  }
  .nav-item-icon.nav-item-icon-menu {
    display: inline-flex;
  }
  .nav-item .nav-cta {
    flex: 1;
  }
  .main-nav a.nav-link {
    flex: 1;
  }
  .main-nav a.nav-link::after {
    left: 4px;
    right: auto;
    width: calc(100% - 8px);
    bottom: 4px;
  }
  .main-nav a.nav-link.is-active,
  .main-nav a.nav-link[aria-current="true"] {
    color: var(--orange-deep);
  }
  .main-nav .nav-cta {
    flex: 1;
  }
  .solution-media::before,
  .visual-card::before,
  .stack-card::before,
  .media-zoom {
    display: none;
  }
  .solution-media img,
  .visual-card img,
  .stack-card .stack-screen {
    cursor: default;
  }
  .modal.modal-image {
    display: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .main-nav,
  .main-nav.is-open,
  .nav-item,
  .main-nav.is-open .nav-item,
  .menu-toggle .icon-menu,
  .menu-toggle .icon-close,
  .media-zoom,
  .section-rail-label,
  .section-rail-dot,
  .scroll-top,
  .floating-tag,
  .solution-media::before,
  .visual-card::before,
  .stack-card::before {
    transition: none;
  }
  .nav-item {
    opacity: 1;
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ===== Google Fonts, carga progresiva y modales legales ===== */
body {
  font-family:
    "Space Grotesk",
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
}
h1,
h2,
h3,
.company-panel strong {
  font-family: "Momo Trust Display", "Space Grotesk", sans-serif;
  font-weight: 400;
}
.eyebrow,
.btn,
.main-nav,
.lang-switcher,
.reference-facts,
.case-number {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.js-ready .reveal-section {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 0.72s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.72s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.js-ready .reveal-section.is-visible {
  opacity: 1;
  transform: none;
}
.js-ready .reveal-section .reveal-item {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.56s ease,
    transform 0.56s ease;
}
.js-ready .reveal-section.is-visible .reveal-item {
  opacity: 1;
  transform: none;
}
.js-ready .reveal-section.is-visible .reveal-item:nth-child(2) {
  transition-delay: 0.08s;
}
.js-ready .reveal-section.is-visible .reveal-item:nth-child(3) {
  transition-delay: 0.16s;
}
.js-ready .reveal-section.is-visible .reveal-item:nth-child(4) {
  transition-delay: 0.24s;
}

.menu-toggle::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(7, 159, 211, 0.18), rgba(39, 197, 236, 0.04));
  opacity: 0;
  transform: scale(0.75);
  transition:
    opacity 0.28s ease,
    transform 0.28s ease;
  pointer-events: none;
}
.menu-toggle:hover::before,
.menu-toggle:focus-visible::before,
.menu-toggle[aria-expanded="true"]::before {
  opacity: 1;
  transform: scale(1);
}
.menu-toggle[aria-expanded="true"] {
  border-color: #7ccfe8;
  box-shadow: 0 6px 18px rgba(7, 159, 211, 0.14);
}

.modal.modal-legal {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: none;
  padding: clamp(18px, 4vw, 54px);
}
.modal.modal-legal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-legal .modal-backdrop {
  background: rgba(3, 18, 32, 0.78);
  backdrop-filter: blur(7px);
}
.modal-dialog-legal {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
  max-height: min(88vh, 850px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.35);
  animation: legal-modal-in 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.modal-legal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 24px;
  border-bottom: 1px solid #dfebf2;
  background: linear-gradient(120deg, #f8fcfe, #edf8fc);
}
.modal-legal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #0a2543;
}
.modal-legal-brand .material-symbols-outlined {
  color: #079fd3;
}
.modal-legal-title {
  margin: 0;
  font-family: "Momo Trust Display", "Space Grotesk", sans-serif;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.025em;
}
.modal-close-legal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #cfe0e9;
  border-radius: 50%;
  background: #fff;
  color: #0a2543;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}
.modal-close-legal:hover,
.modal-close-legal:focus-visible {
  color: #fff;
  background: #079fd3;
  transform: rotate(5deg);
}
.modal-legal-scroll {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 28px clamp(22px, 5vw, 52px) 38px;
  scrollbar-color: #74cbe5 #eef7fa;
  scrollbar-width: thin;
}
.modal-legal-content .back-link,
.modal-legal-content > .eyebrow,
.modal-legal-content > h1 {
  display: none;
}
.modal-legal-content h2 {
  margin: 28px 0 10px;
  color: #12344d;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}
.modal-legal-content p,
.modal-legal-content li {
  color: #49677e;
  font-size: 0.94rem;
  line-height: 1.75;
}
.modal-legal-content a {
  color: #078ac0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.modal-legal-content .cookie-pref-button {
  color: #087ca7;
  text-decoration: none;
}
.modal-legal-status {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 120px;
  color: #49677e;
}
.modal-legal-status .material-symbols-outlined {
  color: #079fd3;
}
@keyframes legal-modal-in {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 600px) {
  .modal.modal-legal {
    padding: 10px;
  }
  .modal-dialog-legal {
    max-height: calc(100dvh - 20px);
    border-radius: 17px;
  }
  .modal-legal-head {
    padding: 15px 16px;
  }
  .modal-legal-scroll {
    padding: 20px 18px 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .js-ready .reveal-section,
  .js-ready .reveal-section .reveal-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .menu-toggle::before,
  .modal-close-legal {
    transition: none;
  }
  .modal-dialog-legal {
    animation: none;
  }
}
