/* ========== Tokens ========== */
:root {
  --blue-ink: #071428;
  --blue-navy: #0b1f3a;
  --blue-deep: #0d4f9e;
  --blue-mid: #1a6fd4;
  --blue-bright: #3b8eef;
  --cyan: #3aa8c4;
  --cyan-soft: #8fd0de;
  --cyan-glow: rgba(58, 168, 196, 0.3);
  --text: #0e1a2b;
  --text-muted: #4a5d72;
  --surface: #e8f0f8;
  --surface-soft: #d9e7f4;
  --surface-panel: #f5f9fd;
  --surface-glass: rgba(245, 249, 253, 0.82);
  --border: rgba(13, 79, 158, 0.16);
  --shadow-nav: 0 14px 44px rgba(7, 20, 40, 0.14);
  --shadow-soft: 0 16px 42px rgba(13, 79, 158, 0.12);
  --shadow-lift: 0 22px 50px rgba(13, 79, 158, 0.18);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --header-h: 5.25rem;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(ellipse 65% 40% at 100% -5%, rgba(58, 168, 196, 0.2), transparent 55%),
    radial-gradient(ellipse 55% 40% at -5% 25%, rgba(26, 111, 212, 0.16), transparent 50%),
    radial-gradient(ellipse 40% 30% at 70% 90%, rgba(13, 79, 158, 0.1), transparent 50%),
    var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul,
ol {
  list-style: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
}

.text-accent {
  background: linear-gradient(115deg, var(--blue-mid) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-accent--soft {
  background: linear-gradient(115deg, #7dd3fc 10%, #e0f2fe 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.95rem, 3.6vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--blue-ink);
  text-align: center;
  margin-bottom: 0.85rem;
  text-wrap: balance;
}

.section-title--light {
  color: #fff;
  text-align: left;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.22);
}

.section-lead {
  text-align: center;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.45vw, 1.08rem);
  line-height: 1.7;
  max-width: 44ch;
  margin: 0 auto 2.75rem;
  text-wrap: pretty;
}

.section-lead--light {
  color: rgba(255, 255, 255, 0.9);
  text-align: left;
  margin-left: 0;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.18);
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.75s var(--ease-out),
    transform 0.75s var(--ease-out),
    filter 0.75s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
  filter: blur(2px);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
  filter: blur(0);
  will-change: auto;
}

/* Brillo limpio que sigue el cursor + borde iluminado */
.glow-track {
  --glow-x: 50%;
  --glow-y: 0%;
  --glow-alpha: 0;
  --glow-spot: rgba(56, 189, 248, 0.14);
  --glow-rim: rgba(14, 165, 233, 0.95);
  --glow-rim-soft: rgba(56, 189, 248, 0.35);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.glow-track > .card-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: var(--glow-alpha);
  transition: opacity 0.3s ease;
  background: radial-gradient(
    260px circle at var(--glow-x) var(--glow-y),
    var(--glow-spot),
    transparent 55%
  );
}

/* Anillo de luz en el borde (solo el perímetro) */
.glow-track > .card-glow-edge {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  padding: 1.5px;
  opacity: var(--glow-alpha);
  transition: opacity 0.3s ease;
  background: radial-gradient(
    220px circle at var(--glow-x) var(--glow-y),
    var(--glow-rim) 0%,
    var(--glow-rim-soft) 28%,
    transparent 55%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
}

.glow-track--on-dark {
  --glow-spot: rgba(125, 211, 252, 0.12);
  --glow-rim: rgba(186, 230, 253, 0.95);
  --glow-rim-soft: rgba(56, 189, 248, 0.45);
}

.glow-track.is-glowing {
  border-color: color-mix(in srgb, var(--glow-rim-soft) 55%, rgba(26, 111, 212, 0.14));
}

.glow-track--on-dark.is-glowing {
  border-color: color-mix(in srgb, var(--glow-rim) 40%, rgba(147, 197, 253, 0.28));
}

.glow-track > *:not(.card-glow):not(.card-glow-edge) {
  position: relative;
  z-index: 1;
}

@media (hover: none), (pointer: coarse) {
  .glow-track > .card-glow,
  .glow-track > .card-glow-edge {
    display: none;
  }
}

.reveal--left {
  transform: translateX(-36px);
}

.reveal--right {
  transform: translateX(36px);
}

.reveal--scale {
  transform: translateY(20px) scale(0.96);
}

.reveal--fade {
  transform: none;
  filter: none;
}

.process-card.reveal:nth-child(1) { --reveal-delay: 0.02s; }
.process-card.reveal:nth-child(2) { --reveal-delay: 0.1s; }
.process-card.reveal:nth-child(3) { --reveal-delay: 0.18s; }
.process-card.reveal:nth-child(4) { --reveal-delay: 0.26s; }
.process-card.reveal:nth-child(5) { --reveal-delay: 0.34s; }

.service-bento.reveal:nth-child(1) { --reveal-delay: 0.02s; }
.service-bento.reveal:nth-child(2) { --reveal-delay: 0.08s; }
.service-bento.reveal:nth-child(3) { --reveal-delay: 0.14s; }
.service-bento.reveal:nth-child(4) { --reveal-delay: 0.2s; }
.service-bento.reveal:nth-child(5) { --reveal-delay: 0.1s; }
.service-bento.reveal:nth-child(6) { --reveal-delay: 0.16s; }
.service-bento.reveal:nth-child(7) { --reveal-delay: 0.22s; }
.service-bento.reveal:nth-child(8) { --reveal-delay: 0.28s; }

.contact-card.reveal:nth-child(1) { --reveal-delay: 0.05s; }
.contact-card.reveal:nth-child(2) { --reveal-delay: 0.12s; }
.contact-card.reveal:nth-child(3) { --reveal-delay: 0.2s; }

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

/* ========== Header (barra redondeada flotante) ========== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 0.85rem 1rem 0;
  pointer-events: none;
}

.nav-shell {
  pointer-events: auto;
  max-width: calc(var(--max) + 2rem);
  margin: 0 auto;
  min-height: 3.6rem;
  padding: 0.45rem 0.55rem 0.45rem 1rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 6px 24px rgba(7, 20, 40, 0.05);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), background 0.35s, border-color 0.35s;
  animation: nav-float-in 0.8s var(--ease-out) both;
}

.site-header.is-scrolled .nav-shell {
  background: rgba(255, 255, 255, 0.38);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 10px 32px rgba(7, 20, 40, 0.1);
  transform: translateY(2px) scale(0.995);
}

.brand {
  grid-column: 1;
  justify-self: start;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  transition: transform 0.25s var(--ease-out);
  z-index: 2;
}

.brand:hover {
  transform: none;
}

/* --- Logo header: animación de entrada corporativa --- */
.brand-logo-wrapper {
  --brand-logo-duration: 2.1s;
  --brand-logo-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --brand-logo-rise: 7px;
  --brand-logo-scale-from: 0.96;
  --brand-logo-glow: rgba(58, 168, 196, 0.42);
  --brand-logo-glow-soft: rgba(26, 111, 212, 0.22);
  --brand-logo-shine: rgba(255, 255, 255, 0.55);

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  flex-shrink: 0;
  isolation: isolate;
}

.brand-logo,
.brand-mark {
  width: 2.55rem;
  height: 2.55rem;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 3px 8px var(--brand-logo-glow-soft));
  transform: translateZ(0);
  transition:
    transform 0.35s var(--brand-logo-ease),
    filter 0.35s var(--brand-logo-ease);
}

/* Sin JS / estado final: siempre visible y estable */
.brand-logo-wrapper--await .brand-logo {
  opacity: 0;
  transform: translateY(var(--brand-logo-rise)) scale(var(--brand-logo-scale-from));
  filter: blur(3px) drop-shadow(0 0 0 transparent);
}

.brand-logo-wrapper--animated .brand-logo {
  animation: brand-logo-enter var(--brand-logo-duration) var(--brand-logo-ease) forwards;
  will-change: transform, opacity, filter;
}

.brand-logo-wrapper--animated .brand-logo-shine {
  animation: brand-logo-shine 1.15s var(--brand-logo-ease) 0.45s both;
}

.brand-logo-wrapper--done .brand-logo {
  opacity: 1;
  transform: none;
  filter: drop-shadow(0 3px 8px var(--brand-logo-glow-soft));
  will-change: auto;
}

.brand-logo-shine {
  position: absolute;
  inset: -12%;
  z-index: 2;
  pointer-events: none;
  border-radius: 50%;
  background: linear-gradient(
    115deg,
    transparent 32%,
    var(--brand-logo-shine) 48%,
    transparent 64%
  );
  transform: translateX(-130%) skewX(-16deg);
  opacity: 0;
  mix-blend-mode: soft-light;
}

/* Hover ejecutivo (solo tras la entrada) */
.brand-logo-wrapper--done:hover .brand-logo,
.brand:hover .brand-logo-wrapper--done .brand-logo {
  transform: translateY(-2px) scale(1.02);
  filter: drop-shadow(0 6px 14px var(--brand-logo-glow));
}

@keyframes brand-logo-enter {
  0% {
    opacity: 0;
    transform: translateY(var(--brand-logo-rise)) scale(var(--brand-logo-scale-from));
    filter: blur(3.5px) drop-shadow(0 0 0 transparent);
  }
  35% {
    opacity: 1;
    filter: blur(1px) drop-shadow(0 0 12px var(--brand-logo-glow));
  }
  70% {
    transform: translateY(0) scale(1.01);
    filter: blur(0) drop-shadow(0 0 10px var(--brand-logo-glow));
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 3px 8px var(--brand-logo-glow-soft));
  }
}

@keyframes brand-logo-shine {
  0% {
    opacity: 0;
    transform: translateX(-130%) skewX(-16deg);
  }
  20% {
    opacity: 0.85;
  }
  100% {
    opacity: 0;
    transform: translateX(130%) skewX(-16deg);
  }
}

@keyframes nav-float-in {
  from {
    opacity: 0;
    transform: translateY(-18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: var(--blue-navy);
}

.brand-tag {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-mid);
  opacity: 0.9;
}

.footer-brand-lockup {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.footer-brand-lockup img {
  width: 2.6rem;
  height: 2.6rem;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.3));
  flex-shrink: 0;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.primary-nav {
  display: contents;
}

.nav-list {
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  z-index: 1;
}

.nav-link {
  position: relative;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--blue-mid);
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  transition: color 0.25s, background 0.25s, transform 0.25s;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.28rem;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--blue-mid));
  transform: translateX(-50%);
  transition: width 0.3s var(--ease-out);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--blue-deep);
  background: rgba(26, 111, 212, 0.08);
  outline: none;
  transform: translateY(-1px);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  width: 1.1rem;
}

.nav-link.is-active {
  color: var(--blue-deep);
  font-weight: 600;
}

.nav-cta {
  grid-column: 3;
  justify-self: end;
  position: relative;
  z-index: 2;
}

.nav-cta .dropdown-trigger {
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-sm);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, background 0.25s, border-color 0.25s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #3aa8c4 0%, var(--blue-mid) 55%, var(--blue-deep) 100%);
  background-size: 140% 140%;
  box-shadow: 0 8px 22px rgba(26, 111, 212, 0.28);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-position: 100% 50%;
  box-shadow: 0 12px 32px rgba(0, 212, 232, 0.45);
  outline: none;
}

.btn-outline {
  color: var(--blue-navy);
  border: 1.5px solid rgba(11, 31, 58, 0.22);
  background: rgba(255, 255, 255, 0.55);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  border-color: var(--blue-mid);
  background: #fff;
  outline: none;
}

.btn-outline-light {
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #fff;
}

.btn-skew {
  transform: skewX(-8deg);
  border-radius: 8px;
}

.btn-skew:hover {
  transform: skewX(-8deg) translateY(-1px);
}

.btn-skew:active {
  transform: skewX(-8deg) scale(0.98);
}

/* ========== Dropdown ========== */
.dropdown {
  position: relative;
}

.dropdown-chevron {
  transition: transform 0.25s var(--ease-out);
}

.dropdown.is-open .dropdown-chevron {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  min-width: 16.5rem;
  max-height: min(70vh, 28rem);
  overflow-y: auto;
  padding: 0.45rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(7, 20, 40, 0.16);
  backdrop-filter: blur(12px);
  animation: dropdown-in 0.28s var(--ease-out);
  z-index: 120;
}

.dropdown-menu[hidden] {
  display: none;
}

.dropdown-menu a {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: background 0.2s, color 0.2s;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
  background: linear-gradient(90deg, rgba(58, 168, 196, 0.12), rgba(26, 111, 212, 0.1));
  color: var(--blue-deep);
  outline: none;
}

.dropdown-divider {
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--border);
}

.dropdown-divider a {
  font-weight: 700;
  color: var(--blue-mid);
}

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

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  gap: 5px;
  flex-direction: column;
  border-radius: 8px;
  z-index: 110;
}

.nav-toggle-bar {
  display: block;
  width: 1.35rem;
  height: 2px;
  background: var(--blue-deep);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========== Hero (sólido / geométrico) ========== */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(145deg, #cfe4f5 0%, #e8f3fb 40%, #d4ebf7 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero-mesh {
  position: absolute;
  inset: -8%;
  background:
    radial-gradient(ellipse 70% 55% at 85% 15%, rgba(58, 168, 196, 0.35), transparent 60%),
    radial-gradient(ellipse 55% 50% at 10% 80%, rgba(26, 111, 212, 0.28), transparent 55%),
    radial-gradient(ellipse 40% 35% at 50% 40%, rgba(13, 79, 158, 0.12), transparent 70%);
  animation: hero-mesh-drift 18s ease-in-out infinite alternate;
  will-change: transform;
}

.hero-grid {
  position: absolute;
  inset: -5%;
  background-image:
    linear-gradient(rgba(13, 79, 158, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 79, 158, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
  opacity: 0.7;
  animation: hero-grid-drift 22s ease-in-out infinite alternate;
  will-change: transform;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  will-change: transform;
}

.hero-orb--a {
  width: min(38vw, 380px);
  height: min(38vw, 380px);
  top: -8%;
  right: -5%;
  background: linear-gradient(135deg, rgba(0, 212, 232, 0.45), rgba(26, 111, 212, 0.2));
  animation: hero-orb-float-a 14s ease-in-out infinite;
  animation-delay: 0s;
}

.hero-orb--b {
  width: min(28vw, 260px);
  height: min(28vw, 260px);
  bottom: 8%;
  left: -6%;
  background: linear-gradient(160deg, rgba(13, 79, 158, 0.35), rgba(0, 212, 232, 0.15));
  animation: hero-orb-float-b 17s ease-in-out infinite;
  animation-delay: -5s;
}

.hero-orb--c {
  width: 140px;
  height: 140px;
  top: 42%;
  right: 18%;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(26, 111, 212, 0.12);
  backdrop-filter: blur(8px);
  animation: hero-orb-float-c 11s ease-in-out infinite;
  animation-delay: -2.5s;
  opacity: 0.7;
}

.hero-orb--d {
  width: min(18vw, 120px);
  height: min(18vw, 120px);
  top: 18%;
  left: 12%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.7), rgba(58, 168, 196, 0.35));
  border: 1px solid rgba(255, 255, 255, 0.45);
  animation: hero-orb-float-d 13s ease-in-out infinite;
  animation-delay: -7s;
}

.hero-atmosphere-layer {
  display: none;
}

.hero-tron {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.72;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 22%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 22%, transparent 78%);
}

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

.hero-tron-base {
  stroke-width: 1.25;
}

.hero-tron-path {
  stroke-width: 2;
  stroke-dasharray: 120 980;
  animation: hero-tron-travel 14s linear infinite;
}

.hero-tron-path--a {
  animation-duration: 16s;
}

.hero-tron-path--b {
  animation-duration: 18s;
  animation-delay: -8s;
  stroke-width: 1.75;
}

@keyframes hero-tron-travel {
  to {
    stroke-dashoffset: -1100;
  }
}

.hero-product-stage,
.hero-panel,
.hero-scanline {
  display: none;
}

.hero-content {
  max-width: var(--max);
  margin: 0 auto;
  padding: calc(var(--header-h) + 3.25rem) 1.5rem 3.5rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-content.is-hero-ready .hero-anim {
  animation: hero-enter 1.05s var(--ease-out) var(--hero-delay, 0s) both;
}

/* Visible por defecto (sin JS). Con JS se oculta hasta is-hero-ready */
.hero-anim {
  opacity: 1;
}

.has-js .hero-content[data-hero-animate]:not(.is-hero-ready):not(.hero-static) .hero-anim {
  opacity: 0;
  animation: hero-failsafe-show 0.01s linear 1.2s forwards;
}

.has-js .hero-content[data-hero-animate]:not(.is-hero-ready):not(.hero-static) .hero-pillars li {
  opacity: 0;
  animation: hero-failsafe-show 0.01s linear 1.2s forwards;
}

@keyframes hero-failsafe-show {
  to {
    opacity: 1;
    filter: none;
    transform: none;
  }
}

.hero-brand-row {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.45rem, 1.2vw, 0.75rem);
  margin-bottom: 1.5rem;
  isolation: isolate;
  padding: 0.15rem 0.25rem;
}

.hero-mark-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(9.75rem, 28vw, 15rem);
  height: clamp(9.75rem, 28vw, 15rem);
  isolation: isolate;
  flex-shrink: 0;
  z-index: 1;
}

.hero-mark {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 14px 34px rgba(26, 111, 212, 0.3));
  position: relative;
  z-index: 1;
  image-rendering: auto;
}

.hero-content.is-hero-ready .hero-mark {
  animation: hero-mark-enter 1.2s var(--ease-out) 0.05s both;
}

.hero-content.is-hero-ready .hero-brand-shine {
  animation: hero-brand-shine 1.5s var(--ease-out) 0.28s both;
}

.hero-content.is-hero-ready .hero-brand {
  animation: hero-brand-glow 1.6s var(--ease-out) 0.35s both;
}

.hero-brand-shine {
  position: absolute;
  top: -30%;
  bottom: -30%;
  left: 0;
  width: 42%;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 18%,
    rgba(255, 255, 255, 0.18) 38%,
    rgba(255, 255, 255, 0.78) 50%,
    rgba(0, 212, 232, 0.35) 56%,
    transparent 72%
  );
  transform: translateX(-130%) skewX(-16deg);
  opacity: 0;
  mix-blend-mode: soft-light;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8.8vw, 5.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin-bottom: 0;
  display: inline-flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-brand-astral {
  color: var(--blue-navy);
  text-shadow: 0 0 0 transparent;
  transition: text-shadow 0.4s ease;
}

.hero-brand-tech {
  background: linear-gradient(115deg, var(--blue-mid) 10%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 0 transparent);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.85vw, 1.95rem);
  font-weight: 600;
  color: var(--blue-ink);
  letter-spacing: -0.028em;
  line-height: 1.25;
  max-width: 28ch;
  margin: 0 auto 1rem;
  text-wrap: balance;
}

.hero-title .text-accent {
  font-weight: 700;
}

.hero-lead {
  font-size: clamp(1.02rem, 1.55vw, 1.16rem);
  line-height: 1.65;
  color: color-mix(in srgb, var(--text-muted) 92%, var(--blue-deep));
  max-width: 42ch;
  margin: 0 auto 1.85rem;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.hero-pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1.5rem;
  max-width: 520px;
  margin: 0 auto;
  text-align: left;
}

.hero-content.is-hero-ready .hero-pillars li {
  animation: hero-pillar-enter 0.7s var(--ease-out) calc(0.95s + var(--pillar-i, 0) * 0.08s) both;
}

.hero-pillars li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--blue-navy);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(26, 111, 212, 0.12);
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  box-shadow: 0 8px 20px rgba(13, 79, 158, 0.08);
  backdrop-filter: blur(6px);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
  opacity: 1;
}

.hero-pillars li:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(13, 79, 158, 0.14);
}

@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes hero-mark-enter {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.94);
    filter: blur(3px) drop-shadow(0 0 0 transparent);
  }
  55% {
    opacity: 1;
    filter: blur(0) drop-shadow(0 0 16px rgba(58, 168, 196, 0.4));
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 10px 24px rgba(26, 111, 212, 0.35));
  }
}

@keyframes hero-brand-shine {
  0% {
    opacity: 0;
    transform: translateX(-130%) skewX(-16deg);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(280%) skewX(-16deg);
  }
}

@keyframes hero-brand-glow {
  0% {
    filter: drop-shadow(0 0 0 transparent);
  }
  40% {
    filter: drop-shadow(0 0 18px rgba(0, 212, 232, 0.45))
      drop-shadow(0 0 34px rgba(26, 111, 212, 0.28));
  }
  100% {
    filter: drop-shadow(0 4px 16px rgba(26, 111, 212, 0.18));
  }
}

@keyframes hero-pillar-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.pillar-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--dot);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--dot) 22%, transparent);
  flex-shrink: 0;
}

@keyframes float-glow {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-14px, 18px);
  }
}

@keyframes hero-mesh-drift {
  0%, 100% {
    transform: scale(1) translate(0, 0);
  }
  50% {
    transform: scale(1.07) translate(-2.5%, 2.5%);
  }
}

@keyframes hero-grid-drift {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-16px, -12px);
  }
}

@keyframes hero-orb-float-a {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(-36px, 28px) scale(1.05);
  }
  50% {
    transform: translate(-18px, 52px) scale(0.97);
  }
  75% {
    transform: translate(24px, 20px) scale(1.03);
  }
}

@keyframes hero-orb-float-b {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(42px, -24px) scale(1.06);
  }
  66% {
    transform: translate(-28px, -36px) scale(0.95);
  }
}

@keyframes hero-orb-float-c {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(-32px, -28px) rotate(10deg);
  }
}

@keyframes hero-orb-float-d {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  40% {
    transform: translate(22px, 18px) scale(1.08);
  }
  70% {
    transform: translate(-14px, 30px) scale(0.94);
  }
}

/* ========== Proceso ========== */
.process {
  background:
    linear-gradient(180deg, #d4e6f4 0%, #e2eef8 45%, #d8e8f5 100%);
  overflow: hidden;
}

.process-glow {
  position: absolute;
  inset: 10% -10% auto auto;
  width: min(50vw, 480px);
  height: min(50vw, 480px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(58, 168, 196, 0.28), transparent 68%);
  pointer-events: none;
  animation: float-glow 12s var(--ease-out) infinite alternate;
}

.process-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.35rem;
  position: relative;
  z-index: 1;
}

.process-card {
  flex: 1 1 calc(33.333% - 1.35rem);
  max-width: 320px;
  background: linear-gradient(165deg, #ffffff 0%, #edf5fc 100%);
  border: 1px solid rgba(26, 111, 212, 0.14);
  border-radius: 22px;
  padding: 1.65rem 1.35rem 1.5rem;
  text-align: left;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}

.process-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  z-index: 2;
  background: linear-gradient(180deg, var(--step), var(--blue-deep));
}

.process-card::after {
  content: "";
  position: absolute;
  right: -20%;
  top: -30%;
  width: 55%;
  height: 55%;
  border-radius: 50%;
  z-index: 0;
  background: color-mix(in srgb, var(--step) 12%, transparent);
  pointer-events: none;
}

.process-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lift);
}

.process-icon {
  width: 3.4rem;
  height: 3.4rem;
  margin-bottom: 0.9rem;
  filter: drop-shadow(0 8px 16px rgba(13, 79, 158, 0.2));
  transition: transform 0.35s var(--ease-out);
}

.process-card:hover .process-icon {
  transform: scale(1.08) rotate(-3deg);
}

.process-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.process-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--blue-deep);
  background: color-mix(in srgb, var(--step, #1a6fd4) 14%, #e8f3fb);
  border: 1px solid color-mix(in srgb, var(--step, #1a6fd4) 28%, transparent);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  margin-bottom: 0.55rem;
}

.process-card h3 {
  font-family: var(--font-display);
  color: var(--blue-navy);
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.process-card p {
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ========== About ========== */
.about {
  position: relative;
  padding: 0 0 5rem;
  background: linear-gradient(180deg, #e4eef6 0%, #eef4f9 55%, #e8f0f7 100%);
  overflow: hidden;
}

.about-atmosphere {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(228, 238, 246, 0.92) 0%, rgba(238, 244, 249, 0.88) 45%, rgba(232, 240, 247, 0.95) 100%),
    url("assets/img/atmosphere-tech.png") center 35% / min(920px, 88vw) auto no-repeat;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.section-bridge {
  height: 4.5rem;
  background:
    radial-gradient(ellipse 55% 120% at 12% -20%, rgba(43, 184, 203, 0.18), transparent 55%),
    linear-gradient(180deg, rgba(214, 230, 242, 0.95) 0%, transparent 100%);
  position: relative;
}

.section-bridge::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(13, 79, 158, 0.12), transparent);
}

.about-inner {
  position: relative;
  z-index: 1;
  padding-top: 0.5rem;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-mid);
  text-align: center;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 1.75rem;
  height: 1.5px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.85;
}

.about-panel {
  background: linear-gradient(165deg, #ffffff 0%, #eaf3fb 100%);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.5rem;
  border: 1px solid rgba(26, 111, 212, 0.12);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.about-panel:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift);
}

.about-panel h3 {
  font-family: var(--font-display);
  color: var(--blue-mid);
  margin-bottom: 0.6rem;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.about-panel p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr min(44%, 440px);
  gap: 1.5rem;
  align-items: stretch;
  margin-top: 1.25rem;
}

.about-visual {
  position: relative;
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  border: 1px solid rgba(26, 111, 212, 0.14);
  background: #fff;
  aspect-ratio: 902 / 528;
  min-height: 220px;
}

.about-visual-img,
.about-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.06);
  transform-origin: 55% 40%;
  will-change: transform;
}

.about-visual.is-visible .about-visual-img,
.about-visual.is-visible img {
  animation: about-kenburns 22s ease-in-out infinite alternate;
}

@keyframes about-kenburns {
  from {
    transform: scale(1.06) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.14) translate3d(-2.2%, -1.4%, 0);
  }
}

.about-layout .about-panel.reveal--left {
  --reveal-delay: 0.2s;
}

.about-layout .about-visual.reveal--right {
  --reveal-delay: 0.32s;
}

.about-split .about-panel.reveal--left {
  --reveal-delay: 0.12s;
}

.about-split .about-panel.reveal--right {
  --reveal-delay: 0.26s;
}

/* ========== Services ========== */
.services {
  background: linear-gradient(165deg, #0b2340 0%, #13406c 48%, #0d2c50 100%);
  padding: 5.5rem 0 5.75rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.services-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.services-aura {
  position: absolute;
  inset: -12%;
  background:
    radial-gradient(ellipse 48% 42% at 88% 12%, rgba(58, 168, 196, 0.28), transparent 58%),
    radial-gradient(ellipse 42% 38% at 8% 88%, rgba(59, 142, 239, 0.22), transparent 56%),
    radial-gradient(ellipse 36% 30% at 50% 45%, rgba(14, 165, 233, 0.1), transparent 70%);
  animation: services-aura-drift 16s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

.services-grid-lines {
  position: absolute;
  inset: -8%;
  background-image:
    linear-gradient(rgba(147, 197, 253, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 197, 253, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 15%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 15%, transparent 78%);
  opacity: 0.55;
  animation: services-grid-drift 22s ease-in-out infinite alternate;
  will-change: transform;
}

.services-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  will-change: transform, opacity;
}

.services-orb--a {
  width: min(34vw, 320px);
  height: min(34vw, 320px);
  top: -8%;
  right: -4%;
  background: radial-gradient(circle at 35% 35%, rgba(125, 211, 252, 0.35), rgba(26, 111, 212, 0.08) 65%, transparent 75%);
  animation: services-orb-a 18s ease-in-out infinite;
}

.services-orb--b {
  width: min(26vw, 240px);
  height: min(26vw, 240px);
  bottom: 4%;
  left: -6%;
  background: radial-gradient(circle at 40% 40%, rgba(56, 189, 248, 0.28), rgba(13, 79, 158, 0.1) 60%, transparent 75%);
  animation: services-orb-b 20s ease-in-out infinite;
  animation-delay: -6s;
}

.services-orb--c {
  width: min(18vw, 150px);
  height: min(18vw, 150px);
  top: 42%;
  left: 48%;
  background: radial-gradient(circle at 40% 35%, rgba(255, 255, 255, 0.18), rgba(58, 168, 196, 0.12) 55%, transparent 72%);
  animation: services-orb-c 14s ease-in-out infinite;
  animation-delay: -3s;
}

.services-beam {
  position: absolute;
  opacity: 0;
  border-radius: 999px;
  filter: blur(0.4px);
  will-change: transform, opacity;
}

.services-beam--h {
  top: 28%;
  left: -15%;
  width: 220px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(125, 211, 252, 0.15),
    rgba(255, 255, 255, 0.75),
    rgba(56, 189, 248, 0.45),
    transparent
  );
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.45);
  animation: services-beam-h 11s ease-in-out infinite;
}

.services-beam--v {
  top: -12%;
  right: 22%;
  width: 2px;
  height: 180px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(58, 168, 196, 0.2),
    rgba(255, 255, 255, 0.7),
    rgba(26, 111, 212, 0.4),
    transparent
  );
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.4);
  animation: services-beam-v 13s ease-in-out infinite;
  animation-delay: -4.5s;
}

@keyframes services-aura-drift {
  from {
    transform: translate3d(-2%, 1%, 0) scale(1);
    opacity: 0.8;
  }
  to {
    transform: translate3d(2.5%, -2%, 0) scale(1.06);
    opacity: 1;
  }
}

@keyframes services-grid-drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-18px, 14px, 0);
  }
}

@keyframes services-orb-a {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translate3d(-28px, 36px, 0) scale(1.12);
    opacity: 1;
  }
}

@keyframes services-orb-b {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.65;
  }
  50% {
    transform: translate3d(34px, -24px, 0) scale(1.1);
    opacity: 0.95;
  }
}

@keyframes services-orb-c {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.45;
  }
  50% {
    transform: translate3d(-20px, -28px, 0) scale(1.18);
    opacity: 0.8;
  }
}

@keyframes services-beam-h {
  0% {
    opacity: 0;
    transform: translateX(0);
  }
  12% {
    opacity: 0.9;
  }
  55% {
    opacity: 0.55;
  }
  100% {
    opacity: 0;
    transform: translateX(120vw);
  }
}

@keyframes services-beam-v {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  15% {
    opacity: 0.85;
  }
  100% {
    opacity: 0;
    transform: translateY(120vh);
  }
}

.services-head {
  margin-bottom: 2.25rem;
  text-align: center;
}

.services-head .section-title--light,
.services-head .section-lead--light {
  text-align: center;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}

.services-head .section-lead--light {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
}

.services-more {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.services-bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(148px, auto);
  gap: 0.9rem;
}

.service-bento {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 148px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(186, 230, 253, 0.2);
  text-decoration: none;
  color: #fff;
  background: #0d2b4d;
  isolation: isolate;
  transition: transform 0.35s var(--ease-out), border-color 0.35s, box-shadow 0.35s;
}

.service-bento:hover,
.service-bento:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(186, 230, 253, 0.45);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  outline: none;
}

.service-bento--feature {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 320px;
}

.service-bento--wide {
  grid-column: span 2;
  min-height: 168px;
}

.service-bento-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  transition: transform 0.7s var(--ease-out), filter 0.7s;
  filter: saturate(0.85) brightness(0.72);
}

.service-bento:hover .service-bento-media,
.service-bento:focus-visible .service-bento-media {
  transform: scale(1.1);
  filter: saturate(1) brightness(0.8);
}

.service-bento-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(8, 28, 52, 0.15) 0%, rgba(8, 28, 52, 0.55) 45%, rgba(6, 22, 42, 0.92) 100%),
    linear-gradient(90deg, rgba(13, 79, 158, 0.25), transparent 55%);
  pointer-events: none;
}

.service-bento-content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 0.3rem;
  padding: 1.1rem 1.15rem 1.15rem;
  width: 100%;
}

.service-bento--feature .service-bento-content {
  padding: 1.5rem 1.5rem 1.6rem;
  gap: 0.45rem;
  max-width: 28rem;
}

.service-bento-kicker {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(186, 230, 253, 0.7);
}

.service-bento-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.service-bento--feature .service-bento-title {
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 800;
}

.service-bento--wide .service-bento-title {
  font-size: 1.25rem;
}

.service-bento-desc {
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(226, 239, 250, 0.78);
}

.service-bento--feature .service-bento-desc {
  font-size: 0.98rem;
  max-width: 34ch;
}

.service-bento-go {
  margin-top: 0.45rem;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: #7dd3fc;
  transition: transform 0.3s var(--ease-out), color 0.3s;
}

.service-bento--feature:hover .service-bento-go,
.service-bento--feature:focus-visible .service-bento-go {
  color: #fff;
  transform: translateX(4px);
}

/* ========== FAQ ========== */
.faq {
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(0, 212, 232, 0.18), transparent 50%),
    linear-gradient(160deg, #163a5c 0%, #1f4f73 50%, #0f2f48 100%);
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.faq-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.faq-float-q {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 800;
  color: rgba(186, 230, 253, 0.22);
  line-height: 1;
  user-select: none;
  will-change: transform, opacity;
  animation: faq-q-drift 9s ease-in-out infinite;
}

.faq-float-q--1 {
  top: 12%;
  left: 6%;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  animation-duration: 10s;
}

.faq-float-q--2 {
  top: 18%;
  right: 8%;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: rgba(125, 211, 252, 0.18);
  animation-duration: 12s;
  animation-delay: -2s;
  animation-name: faq-q-drift-alt;
}

.faq-float-q--3 {
  bottom: 16%;
  left: 12%;
  font-size: clamp(2rem, 4vw, 3rem);
  color: rgba(255, 255, 255, 0.12);
  animation-duration: 11s;
  animation-delay: -4s;
}

.faq-float-q--4 {
  bottom: 22%;
  right: 14%;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: rgba(56, 189, 248, 0.2);
  animation-duration: 8.5s;
  animation-delay: -1.5s;
  animation-name: faq-q-drift-alt;
}

.faq-float-q--5 {
  top: 48%;
  left: 3%;
  font-size: 1.5rem;
  color: rgba(186, 230, 253, 0.16);
  animation-duration: 13s;
  animation-delay: -6s;
}

.faq-float-q--6 {
  top: 58%;
  right: 4%;
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.1);
  animation-duration: 9.5s;
  animation-delay: -3.2s;
  animation-name: faq-q-drift-alt;
}

@keyframes faq-q-drift {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(-8deg) scale(1);
    opacity: 0.55;
  }
  40% {
    transform: translate3d(10px, -18px, 0) rotate(6deg) scale(1.08);
    opacity: 0.95;
  }
  70% {
    transform: translate3d(-8px, 10px, 0) rotate(-4deg) scale(0.96);
    opacity: 0.7;
  }
}

@keyframes faq-q-drift-alt {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(10deg) scale(1);
    opacity: 0.45;
  }
  50% {
    transform: translate3d(-14px, -22px, 0) rotate(-12deg) scale(1.12);
    opacity: 0.9;
  }
}

.faq .section-inner {
  position: relative;
  z-index: 1;
}

.faq-head {
  text-align: center;
  margin-bottom: 2.25rem;
}

.faq-head .section-title--light {
  text-align: center;
  margin-bottom: 0;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
}

.faq-visual {
  display: flex;
  justify-content: center;
}

.faq-ecosystem {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 1;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(158, 215, 239, 0.95), rgba(200, 235, 247, 0.92)),
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.55), transparent 55%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.faq-ecosystem::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26, 111, 212, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 111, 212, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.7;
  pointer-events: none;
}

.faq-ecosystem-ring {
  position: absolute;
  inset: 14%;
  border: 1.5px dashed rgba(26, 111, 212, 0.22);
  border-radius: 50%;
  animation: faq-ring-spin 28s linear infinite;
}

@keyframes faq-ring-spin {
  to { transform: rotate(360deg); }
}

.faq-ecosystem-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.08rem;
  padding: 0.55rem 0.5rem 0.45rem;
  box-sizing: border-box;
  box-shadow: 0 12px 28px rgba(13, 79, 158, 0.18);
  z-index: 2;
}

.faq-ecosystem-logo {
  width: 64%;
  max-width: 3.4rem;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0 auto;
  flex-shrink: 0;
}

.faq-ecosystem-label {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--blue-mid);
  text-transform: uppercase;
  line-height: 1;
  margin: 0;
}

.faq-ecosystem-chips {
  list-style: none;
  margin: 0;
  padding: 0;
}

.faq-chip {
  position: absolute;
  left: var(--chip-x);
  top: var(--chip-y);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.55rem 0.38rem 0.42rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(26, 111, 212, 0.14);
  box-shadow: 0 8px 18px rgba(7, 20, 40, 0.12);
  z-index: 3;
  animation: faq-chip-float 5.5s ease-in-out infinite;
  animation-delay: var(--chip-delay, 0s);
}

@keyframes faq-chip-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.faq-chip-icon {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #1a6fd4, #0d4f9e);
  color: #fff;
  flex-shrink: 0;
}

.faq-chip-icon svg {
  width: 0.82rem;
  height: 0.82rem;
}

.faq-chip-text {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--blue-deep);
  white-space: nowrap;
}

.faq-q-mark {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 14px rgba(7, 20, 40, 0.14);
  z-index: 1;
  animation: faq-q-bounce 3.8s ease-in-out infinite;
  will-change: transform;
}

.faq-q-mark--a {
  top: 28%;
  right: 22%;
  background: #5bcde0;
  color: #fff;
}

.faq-q-mark--b {
  bottom: 22%;
  left: 24%;
  background: #1a4b6e;
  color: #fff;
  animation-delay: -1.1s;
  animation-duration: 4.4s;
}

.faq-q-mark--c {
  top: 14%;
  left: 42%;
  width: 1.7rem;
  height: 1.7rem;
  font-size: 1.05rem;
  background: #3b8eef;
  color: #fff;
  animation-delay: -2.2s;
  animation-duration: 3.4s;
  animation-name: faq-q-spin-soft;
}

@keyframes faq-q-bounce {
  0%, 100% {
    transform: translateY(0) rotate(-6deg) scale(1);
  }
  35% {
    transform: translateY(-10px) rotate(8deg) scale(1.08);
  }
  60% {
    transform: translateY(4px) rotate(-3deg) scale(0.96);
  }
}

@keyframes faq-q-spin-soft {
  0%, 100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  50% {
    transform: translateY(-8px) rotate(18deg) scale(1.1);
  }
}

.faq-list {
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-body {
  background: #f4f8fc;
  padding: 1.15rem 1.45rem 1.35rem;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.faq-body p {
  margin: 0;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.015em;
  line-height: 1.35;
  padding: 1.15rem 1.45rem;
  color: var(--blue-ink);
  background: #edf3f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background 0.25s, color 0.25s;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.25s;
  flex-shrink: 0;
}

.faq-item[open] summary {
  background: linear-gradient(120deg, #1e4f7a 0%, #2563a0 100%);
  color: #fff;
}

.faq-item[open] summary::after {
  transform: rotate(-135deg);
}

/* ========== Clientes (marquee) ========== */
.clients {
  background:
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(58, 168, 196, 0.14), transparent 55%),
    linear-gradient(180deg, #d7e7f4 0%, #e4eef8 100%);
  padding-bottom: 4.5rem;
  overflow: hidden;
}

.clients .section-lead {
  margin-bottom: 2rem;
}

.clients-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.clients-marquee.is-empty {
  mask-image: none;
  -webkit-mask-image: none;
  overflow: visible;
  padding: 0 1.5rem;
}

.clients-marquee.is-empty .clients-track {
  display: none;
  animation: none;
}

.clients-empty {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(26, 111, 212, 0.28);
  background: rgba(255, 255, 255, 0.55);
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.clients-marquee:not(.is-empty) .clients-empty {
  display: none;
}

.clients-marquee-fade {
  display: none;
}

.clients-track {
  display: flex;
  width: max-content;
  gap: 1.25rem;
  animation: clients-marquee var(--clients-marquee-duration, 18s) linear infinite;
  will-change: transform;
}

.clients-marquee:hover .clients-track {
  animation-play-state: paused;
}

.clients-logos {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
}

.client-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
  width: 12.5rem;
  height: 5.25rem;
  padding: 0.85rem 1.1rem;
  border-radius: 14px;
  background: linear-gradient(165deg, #ffffff, #ebf4fc);
  border: 1px solid rgba(26, 111, 212, 0.14);
  box-shadow: var(--shadow-soft);
}

/* Cualquier logo de cliente se tiñe a azul/gris de la marca */
.client-logo img,
.client-logo-img {
  width: 100%;
  height: 100%;
  max-width: 9.5rem;
  max-height: 3.25rem;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  flex-shrink: 0;
  background: transparent;
  display: block;
  margin: 0 auto;
  filter:
    grayscale(1)
    contrast(1.35)
    brightness(0.58)
    sepia(0.7)
    hue-rotate(178deg)
    saturate(4.2);
}

.client-mark {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(145deg, var(--mark, #1a6fd4), color-mix(in srgb, var(--mark, #1a6fd4) 65%, #0a1f38));
  flex-shrink: 0;
}

.client-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--blue-navy);
  letter-spacing: -0.01em;
}

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

/* ========== Contact ========== */
.contact {
  padding: 0 0 5rem;
}

.contact-hero {
  background:
    radial-gradient(ellipse 45% 55% at 92% 20%, rgba(58, 168, 196, 0.28), transparent 55%),
    linear-gradient(125deg, #1a3f78 0%, #2458a0 45%, #1a4a86 100%);
  color: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: center;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 3.25rem max(1.5rem, calc((100% - var(--max)) / 2 + 1.5rem));
  position: relative;
  overflow: hidden;
  border-radius: 0;
}

.contact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -35deg,
      transparent,
      transparent 40px,
      rgba(255, 255, 255, 0.035) 40px,
      rgba(255, 255, 255, 0.035) 80px
    );
  pointer-events: none;
}

.contact-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 36rem;
}

.contact-hero h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.8vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.contact-hero p {
  opacity: 0.92;
  margin-bottom: 1.1rem;
  max-width: 38ch;
}

.contact-perks {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.35rem;
}

.contact-perks li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.94rem;
}

.contact-perks li::before {
  content: "";
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 4px;
  background: var(--blue-mid);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
}

.contact-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact-hero-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.7rem;
  padding: 1.15rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.contact-hero-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  transition: background 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

a.contact-hero-row:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.contact-hero-row-icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  flex-shrink: 0;
}

.contact-hero-row-icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.contact-hero-row-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 0.1rem;
}

.contact-hero-row-value {
  display: block;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
  word-break: break-word;
}

.contact-hero-note {
  margin: 0.15rem 0.15rem 0;
  font-size: 0.78rem;
  opacity: 0.78;
  line-height: 1.4;
  max-width: none;
}

.contact-hero-art,
.art-screen,
.art-desk {
  display: none;
}

.contact-body {
  padding-top: 3.5rem;
}

.contact-sub {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.9vw, 2.1rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.7rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-wrap: balance;
}

.contact-lead {
  text-align: center;
  color: var(--text-muted);
  max-width: 44ch;
  margin: 0 auto 2rem;
  font-size: 1.02rem;
  line-height: 1.65;
  text-wrap: pretty;
}

.contact-cards {
  display: none;
}

.contact-card {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.35rem;
  background: linear-gradient(165deg, #ffffff, #eaf4fc);
  border: 1px solid rgba(26, 111, 212, 0.14);
  border-radius: var(--radius-md);
  padding: 1.35rem 1rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift);
}

.contact-card-icon {
  width: 2.4rem;
  height: 2.4rem;
  color: var(--blue-mid);
  margin-bottom: 0.25rem;
}

.contact-card-icon svg {
  width: 100%;
  height: 100%;
}

.contact-card-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.contact-card-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--cyan);
  word-break: break-word;
}

.contact-form {
  background: linear-gradient(180deg, #f8fbfe, #eef5fb);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  max-width: 760px;
  margin: 0 auto;
  scroll-margin-top: 7rem;
  scroll-margin-bottom: 3rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.15rem;
  margin-bottom: 1rem;
}

.contact-form label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--blue-ink);
}

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

.form-full {
  margin-bottom: 1.25rem;
}

.form-consent {
  display: flex !important;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-body) !important;
  font-weight: 500 !important;
  font-size: 0.88rem !important;
  color: var(--text-muted) !important;
  line-height: 1.45;
}

.form-consent input {
  width: auto !important;
  margin-top: 0.2rem;
  accent-color: var(--blue-mid);
  flex-shrink: 0;
}

.form-consent a {
  color: var(--blue-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-consent a:hover {
  color: var(--cyan);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #d5dde6;
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px rgba(26, 111, 212, 0.15);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.form-status {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  color: var(--blue-mid);
  min-height: 1.25rem;
}

.form-status.is-success {
  color: var(--blue-deep);
  font-weight: 600;
}

.form-status.is-error {
  color: #dc2626;
}

.form-submit {
  position: relative;
  overflow: visible;
}

.form-submit.is-sending {
  pointer-events: none;
}

.form-submit.is-sending .form-submit-label {
  opacity: 0.55;
}

.form-mail-fly {
  position: fixed;
  z-index: 200;
  width: 2.6rem;
  height: 2.6rem;
  margin: 0;
  pointer-events: none;
  color: #fff;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, #3aa8c4, var(--blue-mid) 55%, var(--blue-deep));
  box-shadow:
    0 10px 24px rgba(26, 111, 212, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  animation: form-mail-fly 1.05s cubic-bezier(0.22, 0.9, 0.3, 1) forwards;
  will-change: transform, opacity;
}

.form-mail-fly svg {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
}

@keyframes form-mail-fly {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.55) rotate(-8deg);
  }
  18% {
    opacity: 1;
    transform: translate(-50%, -58%) scale(1.05) rotate(4deg);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + min(28vw, 9rem)), calc(-50% - min(42vh, 14rem))) scale(0.7) rotate(18deg);
  }
}

.contact-form.is-prefilled [name="asunto"],
.contact-form.is-prefilled [name="mensaje"] {
  border-color: rgba(26, 111, 212, 0.45);
  box-shadow: 0 0 0 3px rgba(26, 111, 212, 0.1);
}

/* ========== Footer ========== */
.site-footer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #0a1f38 0%, #123a63 55%, #0d2b4d 100%);
  padding: 3.75rem 1.5rem 1.5rem;
  color: #e8f2fb;
}

.footer-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 45% 50% at 10% 20%, rgba(58, 168, 196, 0.2), transparent 55%),
    radial-gradient(ellipse 40% 45% at 90% 80%, rgba(26, 111, 212, 0.22), transparent 55%);
}

.footer-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand p {
  margin: 0.85rem 0 0.85rem;
  max-width: 28ch;
  color: rgba(232, 242, 251, 0.78);
  font-size: 0.95rem;
}

.footer-brand-name {
  margin: 0 0 0.35rem;
  max-width: none;
  color: #fff;
  font-size: 1.15rem;
}

.footer-brand img {
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.25));
}

.footer-brand-copy {
  min-width: 0;
  max-width: 28ch;
}

.socials {
  display: flex;
  justify-content: flex-start;
  gap: 0.55rem;
  width: 100%;
}

.social {
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #1e4f8c, #1a6fd4);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, filter 0.25s;
}

.social svg {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}

.social--facebook {
  background: linear-gradient(145deg, #1877f2, #0d5ec9);
}

.social--instagram {
  background: linear-gradient(135deg, #f58529, #dd2a7b 45%, #8134af 75%, #515bd4);
}

.social--whatsapp {
  background: linear-gradient(145deg, #25d366, #128c7e);
}

.social:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 12px 24px rgba(26, 111, 212, 0.4);
  filter: brightness(1.05);
}

.footer-col h3 {
  font-family: var(--font-display);
  margin-bottom: 0.85rem;
  color: #fff;
}

.footer-col a {
  display: block;
  padding: 0.28rem 0;
  font-size: 0.94rem;
  color: rgba(232, 242, 251, 0.82);
  transition: color 0.2s, transform 0.2s;
}

.footer-col a:hover {
  color: #9fd8ea;
  transform: translateX(3px);
}

.footer-copy {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  color: rgba(232, 242, 251, 0.7);
  text-align: center;
}

.footer-copy a {
  color: rgba(191, 219, 254, 0.95);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-copy a:hover {
  color: #9fd8ea;
}

.fab-dock {
  --fab-expand-shift: 11.75rem;
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
}

.page-services .fab-dock {
  z-index: 120;
}

.chatbot-fab {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  color: #fff;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #1a6fd4 0%, #0d4f9e 60%, #3aa8c4 100%);
  box-shadow:
    0 12px 28px rgba(26, 111, 212, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  animation: chatbot-fab-pulse 2.8s ease-in-out infinite;
  transition: transform 0.35s var(--ease-out), box-shadow 0.25s;
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 2;
}

.chatbot-fab svg {
  width: 1.55rem;
  height: 1.55rem;
}

.chatbot-fab:hover {
  transform: scale(1.06);
}

.chatbot-fab.is-open {
  animation: none;
  transform: scale(1.06);
  box-shadow: 0 12px 28px rgba(26, 111, 212, 0.55);
}

.fab-dock.is-socials-open .chatbot-fab {
  transform: translateY(calc(-1 * var(--fab-expand-shift)));
}

.fab-dock.is-socials-open .chatbot-fab:hover,
.fab-dock.is-socials-open .chatbot-fab.is-open {
  transform: translateY(calc(-1 * var(--fab-expand-shift))) scale(1.06);
}

@keyframes chatbot-fab-pulse {
  0%, 100% { box-shadow: 0 12px 28px rgba(26, 111, 212, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
  50% { box-shadow: 0 12px 30px rgba(58, 168, 196, 0.5), 0 0 0 10px rgba(26, 111, 212, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
}

.fab-speed-dial {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  z-index: 1;
}

.fab-actions {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.55rem);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.94);
  transition:
    opacity 0.25s var(--ease-out),
    transform 0.28s var(--ease-out);
  z-index: 3;
}

.fab-speed-dial.is-open .fab-actions {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.fab-action {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 0.4rem 0.4rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(165deg, #ffffff 0%, #f3f8fc 100%);
  border: 1px solid rgba(13, 79, 158, 0.14);
  box-shadow:
    0 12px 28px rgba(7, 20, 40, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
  color: var(--blue-ink);
  transform: translateX(10px);
  opacity: 0;
  backdrop-filter: blur(8px);
  transition:
    transform 0.28s var(--ease-out),
    opacity 0.22s var(--ease-out),
    box-shadow 0.2s,
    border-color 0.2s;
}

.fab-speed-dial.is-open .fab-action {
  transform: translateX(0);
  opacity: 1;
}

.fab-speed-dial.is-open .fab-action:nth-child(1) { transition-delay: 0.02s; }
.fab-speed-dial.is-open .fab-action:nth-child(2) { transition-delay: 0.07s; }
.fab-speed-dial.is-open .fab-action:nth-child(3) { transition-delay: 0.12s; }

.fab-action:hover {
  border-color: rgba(26, 111, 212, 0.28);
  box-shadow: 0 16px 32px rgba(7, 20, 40, 0.2);
  transform: translateX(-2px);
}

.fab-action-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.fab-action-icon {
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

.fab-action-icon svg {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
}

.fab-action--wa .fab-action-icon {
  background: linear-gradient(145deg, #2fe36b, #1ebe57 45%, #128c7e);
}

.fab-action--ig .fab-action-icon {
  background: linear-gradient(135deg, #f58529, #dd2a7b 48%, #8134af 78%, #515bd4);
}

.fab-action--fb .fab-action-icon {
  background: linear-gradient(145deg, #3b8cff, #1877f2 50%, #0d5ec9);
}

.fab-main {
  width: 3.55rem;
  height: 3.55rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #25d366 0%, #1ebe57 40%, #128c7e 100%);
  box-shadow:
    0 12px 28px rgba(18, 140, 126, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  animation: fab-main-pulse 2.8s ease-in-out infinite;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, background 0.25s;
}

.fab-main:hover,
.fab-speed-dial.is-open .fab-main {
  transform: scale(1.06);
}

.fab-speed-dial.is-open .fab-main {
  animation: none;
  background: linear-gradient(145deg, #0d4f9e, #1a6fd4 60%, #128c7e);
}

@keyframes fab-main-pulse {
  0%, 100% {
    box-shadow: 0 12px 28px rgba(18, 140, 126, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  }
  50% {
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5), 0 0 0 10px rgba(37, 211, 102, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  }
}

.fab-main-icon {
  width: 1.45rem;
  height: 1.45rem;
  position: absolute;
  transition: opacity 0.2s, transform 0.25s var(--ease-out);
}

.fab-main-icon--close {
  opacity: 0;
  transform: rotate(-90deg) scale(0.6);
}

.fab-speed-dial.is-open .fab-main-icon--open {
  opacity: 0;
  transform: rotate(90deg) scale(0.6);
}

.fab-speed-dial.is-open .fab-main-icon--close {
  opacity: 1;
  transform: rotate(0) scale(1);
}

/* En desktop, abrir también al pasar el mouse (sin romper el cierre en móvil) */
@media (hover: hover) and (pointer: fine) {
  .fab-dock:has(.fab-speed-dial:hover) .chatbot-fab,
  .fab-dock:has(.fab-speed-dial:focus-within) .chatbot-fab {
    transform: translateY(calc(-1 * var(--fab-expand-shift)));
  }

  .fab-dock:has(.fab-speed-dial:hover) .chatbot-fab:hover,
  .fab-dock:has(.fab-speed-dial:hover) .chatbot-fab.is-open,
  .fab-dock:has(.fab-speed-dial:focus-within) .chatbot-fab:hover,
  .fab-dock:has(.fab-speed-dial:focus-within) .chatbot-fab.is-open {
    transform: translateY(calc(-1 * var(--fab-expand-shift))) scale(1.06);
  }

  .fab-speed-dial:hover .fab-actions,
  .fab-speed-dial:focus-within .fab-actions {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .fab-speed-dial:hover .fab-action,
  .fab-speed-dial:focus-within .fab-action {
    transform: translateX(0);
    opacity: 1;
  }

  .fab-speed-dial:hover .fab-action:nth-child(1),
  .fab-speed-dial:focus-within .fab-action:nth-child(1) { transition-delay: 0.02s; }

  .fab-speed-dial:hover .fab-action:nth-child(2),
  .fab-speed-dial:focus-within .fab-action:nth-child(2) { transition-delay: 0.07s; }

  .fab-speed-dial:hover .fab-action:nth-child(3),
  .fab-speed-dial:focus-within .fab-action:nth-child(3) { transition-delay: 0.12s; }

  .fab-speed-dial:hover .fab-main-icon--open,
  .fab-speed-dial:focus-within .fab-main-icon--open {
    opacity: 0;
    transform: rotate(90deg) scale(0.6);
  }

  .fab-speed-dial:hover .fab-main-icon--close,
  .fab-speed-dial:focus-within .fab-main-icon--close {
    opacity: 1;
    transform: rotate(0) scale(1);
  }

  .fab-speed-dial:hover .fab-main,
  .fab-speed-dial:focus-within .fab-main {
    transform: scale(1.06);
    animation: none;
    background: linear-gradient(145deg, #0d4f9e, #1a6fd4 60%, #128c7e);
  }
}

.chatbot-panel {
  position: fixed;
  right: 1.25rem;
  bottom: calc(1.25rem + 3.4rem + 0.4rem + 3.55rem + 0.75rem);
  width: min(360px, calc(100vw - 2.5rem));
  max-height: min(520px, calc(100svh - 8rem));
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: #f7fbfe;
  border: 1px solid rgba(26, 111, 212, 0.16);
  box-shadow: 0 24px 56px rgba(7, 20, 40, 0.28);
  z-index: 95;
  overflow: hidden;
  transform-origin: bottom right;
  transform: translateY(12px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.32s var(--ease-out),
    opacity 0.28s var(--ease-out);
}

.chatbot-panel.is-open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.chatbot-panel[hidden] {
  display: none;
}

.chatbot-panel:not([hidden]) {
  display: flex;
}

.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem;
  background: linear-gradient(135deg, #0d4f9e 0%, #1a6fd4 55%, #3aa8c4 100%);
  color: #fff;
}

.chatbot-header-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.chatbot-header-brand img {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
}

.chatbot-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.chatbot-status {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.88);
}

.chatbot-status-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25);
}

.chatbot-close {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
  transition: background 0.2s;
}

.chatbot-close:hover {
  background: rgba(255, 255, 255, 0.24);
}

.chatbot-close svg {
  width: 1.1rem;
  height: 1.1rem;
}

.chatbot-messages {
  flex: 1;
  min-height: 220px;
  max-height: 320px;
  overflow-y: auto;
  padding: 1rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: linear-gradient(180deg, #f7fbfe 0%, #eef4f9 100%);
}

.chatbot-msg {
  max-width: 88%;
  padding: 0.65rem 0.8rem;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.45;
  animation: chatbot-msg-in 0.28s var(--ease-out) both;
}

.chatbot-msg-text {
  margin: 0;
}

.chatbot-msg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.65rem;
}

.chatbot-action {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(26, 111, 212, 0.1);
  color: var(--blue-deep);
  border: 1px solid rgba(26, 111, 212, 0.2);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.chatbot-msg--bot .chatbot-action {
  background: rgba(245, 249, 253, 0.95);
}

.chatbot-action:hover {
  background: rgba(26, 111, 212, 0.16);
  border-color: rgba(26, 111, 212, 0.4);
  transform: translateY(-1px);
}

@keyframes chatbot-msg-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chatbot-msg--bot {
  align-self: flex-start;
  background: #fff;
  color: var(--text-muted);
  border: 1px solid rgba(13, 79, 158, 0.1);
  box-shadow: 0 4px 12px rgba(13, 79, 158, 0.06);
}

.chatbot-msg--user {
  align-self: flex-end;
  background: linear-gradient(135deg, #1a6fd4, #0d4f9e);
  color: #fff;
}

.chatbot-msg--typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 0.28rem;
  padding: 0.75rem 0.9rem;
}

.chatbot-msg--typing span {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: rgba(13, 79, 158, 0.35);
  animation: chatbot-typing 1s ease-in-out infinite;
}

.chatbot-msg--typing span:nth-child(2) { animation-delay: 0.15s; }
.chatbot-msg--typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes chatbot-typing {
  0%, 100% { transform: translateY(0); opacity: 0.45; }
  50% { transform: translateY(-3px); opacity: 1; }
}

.chatbot-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 0.9rem 0.65rem;
  background: #eef4f9;
}

.chatbot-chip {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.38rem 0.65rem;
  border-radius: 999px;
  background: #fff;
  color: var(--blue-deep);
  border: 1px solid rgba(26, 111, 212, 0.18);
  transition: background 0.2s, border-color 0.2s;
}

.chatbot-chip:hover {
  background: rgba(26, 111, 212, 0.08);
  border-color: rgba(26, 111, 212, 0.35);
}

.chatbot-form {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 0.85rem;
  border-top: 1px solid rgba(13, 79, 158, 0.1);
  background: #fff;
}

.chatbot-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(13, 79, 158, 0.14);
  border-radius: 999px;
  padding: 0.62rem 0.9rem;
  font-size: 0.88rem;
  background: #f7fbfe;
  color: var(--blue-ink);
}

.chatbot-form input:focus {
  outline: none;
  border-color: rgba(26, 111, 212, 0.45);
  box-shadow: 0 0 0 3px rgba(26, 111, 212, 0.12);
}

.chatbot-form button {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #1a6fd4, #0d4f9e);
  color: #fff;
  flex-shrink: 0;
  transition: transform 0.2s var(--ease-out);
}

.chatbot-form button:hover {
  transform: scale(1.05);
}

.chatbot-form button svg {
  width: 1rem;
  height: 1rem;
}

.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;
}

/* ========== Responsive ========== */
@media (max-width: 1100px) {
  .services-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-bento--feature {
    grid-column: span 2;
    grid-row: span 1;
    min-height: 260px;
  }

  .service-bento--wide {
    grid-column: span 2;
  }

  .process-card {
    flex: 1 1 calc(50% - 1.25rem);
  }

  .about-layout {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .site-header {
    padding: 0.65rem 0.75rem 0;
    pointer-events: none;
  }

  .nav-shell {
    border-radius: 22px;
    padding: 0.55rem 0.65rem 0.55rem 0.9rem;
    position: relative;
    grid-template-columns: 1fr auto;
    background: rgba(255, 255, 255, 0.28);
  }

  .nav-toggle {
    display: grid;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    z-index: 3;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .primary-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.75rem;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.55rem);
    padding: 1rem;
    background: rgba(247, 251, 254, 0.92);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-nav);
    transform: translateY(-8px) scale(0.98);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease-out), opacity 0.3s;
    z-index: 5;
  }

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

  .nav-list {
    grid-column: auto;
    justify-self: stretch;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-link {
    padding: 0.75rem 1rem;
    color: var(--blue-navy);
  }

  .nav-cta {
    grid-column: auto;
    justify-self: stretch;
    width: 100%;
  }

  .nav-cta .dropdown-trigger {
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    margin-top: 0.5rem;
    box-shadow: none;
    max-height: none;
    animation: none;
  }

  .hero-content {
    text-align: left;
  }

  .hero-brand-row {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.4rem 0.65rem;
  }

  .hero-mark-wrap {
    width: clamp(8.5rem, 42vw, 12rem);
    height: clamp(8.5rem, 42vw, 12rem);
  }

  .hero-title,
  .hero-lead {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
  }

  .hero-actions,
  .hero-pillars {
    justify-content: flex-start;
  }

  .hero-pillars {
    margin-left: 0;
  }

  .about-split,
  .about-layout,
  .faq-layout,
  .contact-hero,
  .contact-cards,
  .footer-inner,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .contact-hero {
    padding-block: 2.5rem;
  }

  .contact-hero-panel {
    order: 2;
  }

  .site-footer {
    background: linear-gradient(180deg, #0a1f38 0%, #123a63 55%, #0d2b4d 100%);
  }
}

@media (max-width: 640px) {
  .services-bento {
    grid-template-columns: 1fr;
  }

  .service-bento--feature,
  .service-bento--wide {
    grid-column: span 1;
    min-height: 220px;
  }

  .service-bento {
    min-height: 160px;
  }

  .about-atmosphere {
    opacity: 0.35;
    background-position: center 20%;
    background-size: 140% auto;
  }

  .about-visual {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 10;
    max-height: none;
    min-height: 0;
    margin-inline: auto;
    justify-self: stretch;
  }

  .about-visual-img,
  .about-visual img,
  .about-visual.is-visible .about-visual-img,
  .about-visual.is-visible img {
    object-position: center center;
    transform-origin: center center;
  }

  .process-card {
    flex: 1 1 100%;
    max-width: none;
  }

  .hero-pillars {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-product-stage,
  .hero-atmosphere-layer {
    display: none;
  }

  .hero-tron {
    opacity: 0.75;
  }

  .chatbot-panel {
    right: 1rem;
    bottom: calc(1rem + 3.4rem + 0.4rem + 3.55rem + 0.65rem);
    width: calc(100vw - 2rem);
    max-height: min(480px, calc(100svh - 7rem));
  }

  .fab-dock {
    --fab-expand-shift: 11.25rem;
    right: 1rem;
    bottom: 1rem;
  }

  .fab-action-label {
    font-size: 0.72rem;
  }

  .brand-tag {
    display: none;
  }

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

  .brand-logo-wrapper,
  .brand-logo,
  .brand-mark {
    width: 2.3rem;
    height: 2.3rem;
  }

  .brand-logo-wrapper {
    --brand-logo-glow: rgba(58, 168, 196, 0.28);
    --brand-logo-shine: rgba(255, 255, 255, 0.4);
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .service-detail.reveal .service-points li,
  .service-detail.reveal.is-visible .service-points li {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .services-cta-band.reveal--scale,
  .services-cta-band.reveal--scale.is-visible {
    transform: none;
    filter: none;
  }

  .about-visual-img,
  .about-visual img,
  .about-visual.is-visible .about-visual-img,
  .about-visual.is-visible img {
    animation: none !important;
    transform: none !important;
    will-change: auto;
  }

  .services-aura,
  .services-grid-lines,
  .services-orb,
  .services-beam {
    animation: none !important;
  }

  .services-beam {
    display: none;
  }

  .faq-float-q,
  .faq-q-mark {
    animation: none !important;
  }

  .faq-float-q {
    opacity: 0.2;
  }

  .hero-anim,
  .hero-pillars li,
  .hero-mark {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
    filter: drop-shadow(0 10px 24px rgba(26, 111, 212, 0.35)) !important;
  }

  .hero-mark-shine,
  .hero-brand-shine {
    display: none !important;
  }

  .clients-track {
    animation: none !important;
    transform: none !important;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 1.5rem;
  }

  .clients-logos[aria-hidden="true"] {
    display: none;
  }

  .clients-logos {
    flex-wrap: wrap;
    justify-content: center;
    padding-right: 0;
  }

  .hero-tron-path {
    animation: none !important;
    stroke-dasharray: none;
    opacity: 0.35;
  }

  .hero-services-brand,
  .hero-services-line,
  .hero-services-lead,
  .hero-services-inner .btn,
  .hero-services-orb,
  .hero-services-beam,
  .services-cta-glow {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .service-detail-visual::before {
    display: none !important;
  }

  .glow-track > .card-glow,
  .glow-track > .card-glow-edge {
    display: none !important;
  }

  .brand-logo-wrapper--await .brand-logo,
  .brand-logo-wrapper--animated .brand-logo,
  .brand-logo-wrapper--done .brand-logo,
  .brand-logo {
    opacity: 1 !important;
    transform: none !important;
    filter: drop-shadow(0 3px 8px rgba(26, 111, 212, 0.22)) !important;
    animation: none !important;
  }

  .brand-logo-shine {
    display: none !important;
  }

  .brand-logo-wrapper--done:hover .brand-logo,
  .brand:hover .brand-logo-wrapper--done .brand-logo {
    transform: none !important;
    filter: drop-shadow(0 3px 8px rgba(26, 111, 212, 0.22)) !important;
  }
}

/* ========== Página servicios ========== */
.page-services .hero-services {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: calc(var(--header-h) + 3rem) 1.5rem 3.75rem;
  background:
    radial-gradient(ellipse 55% 45% at 88% 12%, rgba(43, 184, 203, 0.22), transparent 58%),
    radial-gradient(ellipse 40% 50% at 8% 80%, rgba(26, 111, 212, 0.14), transparent 60%),
    linear-gradient(155deg, #cfe6f3 0%, #e8f2f8 48%, #d4e8f4 100%);
  text-align: center;
}

.hero-services-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-services-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.7;
}

.hero-services-orb--a {
  width: min(38vw, 280px);
  height: min(38vw, 280px);
  top: -8%;
  right: 8%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.75), rgba(58, 168, 196, 0.35));
  animation: hero-services-float-a 11s ease-in-out infinite;
}

.hero-services-orb--b {
  width: min(28vw, 180px);
  height: min(28vw, 180px);
  bottom: 6%;
  left: 6%;
  background: radial-gradient(circle at 40% 40%, rgba(26, 111, 212, 0.35), transparent 70%);
  animation: hero-services-float-b 13s ease-in-out infinite;
}

.hero-services-orb--c {
  width: min(18vw, 110px);
  height: min(18vw, 110px);
  top: 42%;
  left: 58%;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(26, 111, 212, 0.12);
  animation: hero-services-float-c 9s ease-in-out infinite;
}

.hero-services-grid {
  position: absolute;
  inset: -10%;
  background-image:
    linear-gradient(rgba(13, 79, 158, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 79, 158, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  opacity: 0.55;
}

.hero-services-beam {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(58, 168, 196, 0.65), transparent);
  opacity: 0.55;
  animation: hero-services-beam 7s ease-in-out infinite;
}

.hero-services-beam--1 {
  width: min(70vw, 640px);
  top: 34%;
  left: 8%;
  transform: rotate(-8deg);
}

.hero-services-beam--2 {
  width: min(50vw, 420px);
  top: 62%;
  right: 6%;
  transform: rotate(6deg);
  animation-delay: -2.5s;
}

@keyframes hero-services-float-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-18px, 22px) scale(1.05); }
}

@keyframes hero-services-float-b {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(16px, -14px); }
}

@keyframes hero-services-float-c {
  0%, 100% { transform: translate(0, 0); opacity: 0.45; }
  50% { transform: translate(-10px, 12px); opacity: 0.75; }
}

@keyframes hero-services-beam {
  0%, 100% { opacity: 0.2; filter: blur(0.5px); }
  50% { opacity: 0.7; filter: blur(0); }
}

.hero-services-inner {
  position: relative;
  z-index: 1;
  max-width: 44rem;
  margin: 0 auto;
}

.hero-services-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.65rem;
  background: linear-gradient(120deg, var(--blue-ink) 10%, var(--blue-mid) 45%, #3aa8c4 75%, var(--blue-ink) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: hero-services-brand-shine 5.5s ease-in-out infinite;
}

@keyframes hero-services-brand-shine {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.hero-services-title {
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 5vw, 3.45rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--blue-ink);
  margin: 0 0 0.9rem;
  line-height: 1.05;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.28em;
}

.hero-services-line {
  display: inline-block;
  opacity: 0;
  transform: translateY(1.1rem);
  animation: hero-services-line-in 0.7s var(--ease-out) forwards;
}

.hero-services-line:nth-child(1) { animation-delay: 0.08s; }
.hero-services-line:nth-child(2) { animation-delay: 0.2s; }

.hero-services-line--accent {
  background: linear-gradient(120deg, var(--blue-mid), #3aa8c4 55%, var(--blue-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@keyframes hero-services-line-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-services-lead {
  max-width: 40ch;
  margin: 0 auto 1.55rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.55;
  opacity: 0;
  animation: hero-services-line-in 0.7s var(--ease-out) 0.32s forwards;
}

.hero-services-inner .btn {
  opacity: 0;
  animation: hero-services-line-in 0.7s var(--ease-out) 0.45s forwards;
}

.service-detail {
  position: relative;
  padding: 3rem 0;
  scroll-margin-top: 6.5rem;
  transition: box-shadow 0.35s var(--ease-out), background-color 0.35s var(--ease-out);
}

.service-detail.is-hash-target {
  animation: service-hash-glow 2.1s var(--ease-out) both;
}

@keyframes service-hash-glow {
  0% {
    box-shadow: inset 0 0 0 0 rgba(26, 111, 212, 0);
  }
  25% {
    box-shadow: inset 0 0 0 3px rgba(26, 111, 212, 0.45);
    background-color: rgba(26, 111, 212, 0.08);
  }
  100% {
    box-shadow: inset 0 0 0 0 rgba(26, 111, 212, 0);
  }
}

.service-detail:nth-of-type(even) {
  background: rgba(214, 230, 242, 0.55);
}

.service-detail-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.25rem;
  align-items: center;
}

.service-detail:nth-of-type(even) .service-detail-inner {
  direction: rtl;
}

.service-detail:nth-of-type(even) .service-detail-inner > * {
  direction: ltr;
}

.service-detail-copy {
  position: relative;
}

.service-detail-index {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 6vw, 4rem);
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: rgba(26, 111, 212, 0.12);
  margin-bottom: 0.35rem;
  user-select: none;
  transition: color 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}

.service-detail.reveal.is-visible .service-detail-index {
  color: rgba(26, 111, 212, 0.2);
  transform: translateX(0);
}

.service-detail-visual {
  aspect-ratio: 16 / 10;
  min-height: 240px;
  border-radius: 24px;
  background: linear-gradient(180deg, #f7fbfe, #dceaf4);
  border: 1px solid rgba(13, 79, 158, 0.12);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.service-detail-visual:hover {
  box-shadow: 0 18px 40px rgba(13, 79, 158, 0.18);
}

.service-detail-visual--icon {
  background: #121e21;
}

.service-detail-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.28) 50%, transparent 65%);
  transform: translateX(-120%);
  pointer-events: none;
}

.service-detail.reveal.is-visible .service-detail-visual::before {
  animation: service-visual-sheen 1.4s var(--ease-out) 0.35s both;
}

@keyframes service-visual-sheen {
  to { transform: translateX(120%); }
}

.service-detail-visual::after {
  content: "";
  position: absolute;
  width: 55%;
  height: 55%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55), transparent 70%);
  animation: float-glow 8s ease-in-out infinite alternate;
  pointer-events: none;
}

.service-detail-visual:has(.service-detail-img)::after {
  opacity: 0.35;
}

.service-detail-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.04);
  transition: transform 1.1s var(--ease-out);
}

.service-detail.reveal.is-visible .service-detail-img {
  transform: scale(1);
}

.service-detail-visual:hover .service-detail-img {
  transform: scale(1.06);
}

.service-detail-visual--icon .service-detail-img {
  object-fit: contain;
  padding: 1.75rem;
  max-width: 280px;
  max-height: 280px;
  margin: auto;
}

.service-detail-badge {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--blue-deep);
  letter-spacing: -0.02em;
  text-align: center;
  padding: 1rem;
}

.service-detail h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.7vw, 2.05rem);
  color: var(--blue-ink);
  margin-bottom: 0.75rem;
  letter-spacing: -0.025em;
  position: relative;
  display: inline-block;
}

.service-detail h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.28rem;
  width: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-mid), #3aa8c4);
  transition: width 0.7s var(--ease-out) 0.15s;
}

.service-detail.reveal.is-visible h2::after {
  width: 100%;
}

.service-detail p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  max-width: 46ch;
  line-height: 1.6;
}

.service-points {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.35rem;
}

.service-points li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--blue-navy);
}

.service-detail.reveal .service-points li {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.55s var(--ease-out),
    transform 0.55s var(--ease-out);
}

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

.service-detail.reveal.is-visible .service-points li:nth-child(1) {
  transition-delay: 0.18s;
}

.service-detail.reveal.is-visible .service-points li:nth-child(2) {
  transition-delay: 0.3s;
}

.service-detail.reveal.is-visible .service-points li:nth-child(3) {
  transition-delay: 0.42s;
}

.service-points li::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--blue-mid);
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(26, 111, 212, 0.12);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}

.service-points li:hover::before {
  transform: scale(1.25);
  box-shadow: 0 0 0 6px rgba(26, 111, 212, 0.18);
}

.services-cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin: 2rem 1.5rem 4rem;
  max-width: var(--max);
  margin-inline: auto;
  border-radius: 24px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: linear-gradient(125deg, #1a4f96, #2563a0 50%, #1e6f8a);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.services-cta-glow {
  position: absolute;
  inset: -20%;
  z-index: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(58, 168, 196, 0.35), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.12), transparent 40%);
  animation: services-cta-glow 8s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes services-cta-glow {
  from { transform: translate(-2%, 0) scale(1); }
  to { transform: translate(3%, -2%) scale(1.08); }
}

.services-cta-band.reveal--scale {
  transform: translateY(24px) scale(0.94);
  filter: blur(1px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out),
    filter 0.9s var(--ease-out);
}

.services-cta-band.reveal--scale.is-visible {
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.services-cta-band h2,
.services-cta-band p,
.services-cta-band .btn {
  position: relative;
  z-index: 1;
}

.services-cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  margin-bottom: 0.55rem;
}

.services-cta-band p {
  opacity: 0.9;
  margin-bottom: 1.25rem;
}

.services-cta-band .btn-outline-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

@media (max-width: 900px) {
  .service-detail-inner,
  .service-detail:nth-of-type(even) .service-detail-inner {
    grid-template-columns: 1fr;
    direction: ltr;
  }
}

@media (hover: none), (pointer: coarse) {
  .service-detail-visual:hover .service-detail-img {
    transform: scale(1);
  }
}

/* ========== Legal / Privacidad ========== */
.page-legal {
  background: linear-gradient(180deg, #e4eef6 0%, #eef4f9 100%);
}

.legal-hero {
  padding: calc(var(--header-h) + 3.5rem) 0 2rem;
  text-align: center;
}

.legal-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--blue-ink);
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.legal-updated {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.legal-related {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.legal-related a {
  color: var(--blue-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content {
  max-width: 820px;
  margin: 0 auto 4.5rem;
  padding: 2rem 1.5rem 2.5rem;
  background: linear-gradient(165deg, #ffffff, #f3f8fc);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(26, 111, 212, 0.12);
  box-shadow: var(--shadow-soft);
}

.legal-toc {
  margin: 0 0 2rem;
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: 14px;
  background: rgba(26, 111, 212, 0.05);
  border: 1px solid rgba(26, 111, 212, 0.12);
}

.legal-toc-title {
  font-family: var(--font-display);
  font-size: 0.95rem !important;
  margin: 0 0 0.65rem !important;
  color: var(--blue-deep);
}

.legal-toc ol {
  margin: 0 !important;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.35rem;
  columns: 1;
}

@media (min-width: 720px) {
  .legal-toc ol {
    columns: 2;
    column-gap: 1.5rem;
  }
}

.legal-toc li {
  break-inside: avoid;
  font-size: 0.88rem !important;
}

.legal-toc a {
  text-decoration: none;
}

.legal-toc a:hover {
  text-decoration: underline;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--blue-deep);
  margin: 1.75rem 0 0.65rem;
  scroll-margin-top: 6.5rem;
}

.legal-content h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--blue-navy);
  margin: 1.15rem 0 0.45rem;
  scroll-margin-top: 6.5rem;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.legal-content ul {
  margin: 0.5rem 0 0.75rem 1.1rem;
  display: grid;
  gap: 0.45rem;
}

.legal-content a {
  color: var(--blue-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-back,
.legal-actions {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(26, 111, 212, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.35rem;
  justify-content: flex-start;
  align-items: center;
}

.legal-actions a {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--blue-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}

.legal-actions a:hover,
.legal-actions a:focus-visible {
  color: var(--blue-mid);
  outline: none;
}

.legal-actions a.legal-actions-home {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
}

.legal-actions a.legal-actions-home:hover,
.legal-actions a.legal-actions-home:focus-visible {
  color: var(--blue-deep);
  text-decoration: underline;
}
