:root {
  --bg: #eef3f7;
  --surface: #ffffff;
  --surface-soft: #f6f8fb;
  --ink: #10233f;
  --ink-muted: #425978;
  --line: #d7e0ee;
  --brand-700: #113261;
  --brand-600: #184983;
  --brand-500: #2a67a9;
  --accent: #f3be2b;
  --accent-ink: #1d2b44;
  --ok: #2d7d46;
  --danger: #a33131;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-strong: 0 22px 48px rgba(15, 40, 76, 0.16);
  --shadow-soft: 0 12px 30px rgba(15, 40, 76, 0.08);
  --container: min(1140px, 92vw);
  --ease: 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: rgba(42, 103, 169, 0.72) #e7edf5;
  scrollbar-width: thin;
}

@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

body {
  font-family: "DM Sans", sans-serif;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 0%, rgba(30, 86, 148, 0.14) 0%, transparent 40%),
    radial-gradient(circle at 85% 12%, rgba(243, 190, 43, 0.17) 0%, transparent 42%),
    linear-gradient(180deg, #f8fafc 0%, #edf2f8 100%);
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(231, 237, 245, 0.96));
}

::-webkit-scrollbar-thumb {
  border: 3px solid #e7edf5;
  border-radius: 999px;
  background:
    linear-gradient(180deg, var(--brand-500), var(--brand-700));
}

::-webkit-scrollbar-thumb:hover {
  background:
    linear-gradient(180deg, #3476bc, var(--brand-700));
}

::-webkit-scrollbar-thumb:active {
  background:
    linear-gradient(180deg, var(--accent), var(--brand-600));
}

::-webkit-scrollbar-corner {
  background: #e7edf5;
}

::selection {
  background: #f3be2b;
  color: #10233f;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.08;
  font-family: "Manrope", sans-serif;
  letter-spacing: -0.02em;
  color: var(--ink);
}

p {
  margin: 0;
  color: var(--ink-muted);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 10px;
  top: -100px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.skip-link:focus {
  top: 10px;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 120;
  background: transparent;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--brand-500));
  transition: width 120ms linear;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.87);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(186, 202, 227, 0.65);
}

.nav-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(17, 50, 97, 0.2);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 1.38rem;
}

.brand-copy small {
  font-size: 0.67rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #617392;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #243e61;
  font-weight: 500;
}

.main-nav a {
  position: relative;
  transition: color var(--ease);
}

.main-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--brand-600), var(--brand-500));
  transition: width var(--ease);
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.is-current {
  color: var(--brand-700);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav a.is-current::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lang-switch {
  position: relative;
}

.lang-current {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: #243e61;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color var(--ease), color var(--ease), background var(--ease);
}

.lang-current::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform var(--ease);
}

.lang-current:hover,
.lang-current:focus-visible {
  border-color: var(--brand-500);
  color: var(--brand-700);
}

.lang-switch.is-open .lang-current::after {
  transform: rotate(-135deg);
  margin-top: 3px;
}

.lang-options {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 150px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-strong);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--ease), transform var(--ease), visibility var(--ease);
  z-index: 90;
}

.lang-switch.is-open .lang-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-options li + li {
  margin-top: 2px;
}

.lang-options button,
.lang-options a {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #243e61;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background var(--ease), color var(--ease);
}

.lang-options button:hover,
.lang-options button:focus-visible,
.lang-options a:hover,
.lang-options a:focus-visible {
  background: #f3f7fd;
  color: var(--brand-700);
}

.lang-options button.is-active,
.lang-options a.is-active {
  color: var(--brand-700);
  font-weight: 700;
  background: rgba(52, 108, 191, 0.1);
}

.menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0;
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: #1f3d65;
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease), top var(--ease);
}

.menu-toggle span:nth-child(1) {
  top: 15px;
}

.menu-toggle span:nth-child(2) {
  top: 21px;
}

.menu-toggle span:nth-child(3) {
  top: 27px;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

.menu-backdrop {
  display: none;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  padding: 12px 22px;
  font-weight: 700;
  transition: transform var(--ease), box-shadow var(--ease), background-color var(--ease), color var(--ease);
}

.btn:hover {
  transform: translateY(-3px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-500));
  box-shadow: 0 12px 24px rgba(24, 73, 131, 0.33);
}

.btn-primary:hover {
  box-shadow: 0 16px 28px rgba(24, 73, 131, 0.39);
}

.btn-accent {
  color: var(--accent-ink);
  background: linear-gradient(120deg, #ffd65d, var(--accent));
  box-shadow: 0 10px 22px rgba(243, 190, 43, 0.35);
}

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.07);
}

.hero {
  position: relative;
  min-height: calc(100svh - 82px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  background: #0e2445;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 64px;
  background: linear-gradient(180deg, rgba(16, 31, 58, 0) 0%, rgba(16, 31, 58, 0.92) 100%);
  pointer-events: none;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(122deg, rgba(255, 255, 255, 0.04), transparent 58%),
    url("../images/hero-placeholder.png") center / cover no-repeat;
  transform: scale(1.05);
  filter: saturate(0.82) contrast(1.03);
  animation: drift 14s ease-in-out infinite alternate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(98deg, rgba(6, 18, 38, 0.94) 0%, rgba(8, 24, 48, 0.76) 44%, rgba(15, 45, 78, 0.28) 76%, rgba(15, 45, 78, 0.14) 100%),
    linear-gradient(180deg, rgba(5, 16, 34, 0.02) 0%, rgba(5, 16, 34, 0.46) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: var(--container);
  max-width: none;
  padding: 142px 0 122px;
}

.hero-badge {
  display: block;
  margin-bottom: 20px;
  max-width: 100%;
  padding: 0;
  border-radius: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243, 190, 43, 0.92);
  border: 0;
  background: none;
  backdrop-filter: none;
}

.hero h1 {
  color: #fff;
  max-width: 1180px;
  margin: 0 0 24px;
  font-size: clamp(2.35rem, 3.85vw, 4.15rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
}

.hero h1 span {
  display: block;
}

@media (min-width: 980px) {
  .hero h1 span {
    white-space: nowrap;
  }
}

.hero p {
  color: #d7e6fb;
  font-size: clamp(1.02rem, 1.18vw, 1.16rem);
  max-width: 61ch;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.trust-band {
  position: relative;
  padding: 72px 0;
  background:
    radial-gradient(circle at 15% 50%, rgba(69, 130, 196, 0.16), transparent 42%),
    radial-gradient(circle at 84% 45%, rgba(243, 190, 43, 0.14), transparent 46%),
    linear-gradient(180deg, #f3f6fb 0%, #f7f9fc 100%);
  border-top: 1px solid rgba(207, 220, 240, 0.85);
  border-bottom: 1px solid rgba(207, 220, 240, 0.85);
}

.boat-lane {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.boat-leader-star {
  position: absolute;
  left: 0;
  top: 0;
  width: 38px;
  height: 38px;
  margin-left: -19px;
  margin-top: -19px;
  background: url("../images/STAR.png") center / contain no-repeat;
  filter: drop-shadow(0 3px 10px rgba(255, 213, 108, 0.55));
  transform-origin: center;
  z-index: 4;
  pointer-events: none;
}

.boat {
  border: 0;
  padding: 0;
  appearance: none;
  cursor: pointer;
  position: absolute;
  left: 0;
  top: 0;
  width: 74px;
  height: 18px;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(180deg, #2d66ad 0%, #1d4f95 100%);
  box-shadow: 0 8px 18px rgba(29, 79, 149, 0.28);
  transform-origin: center bottom;
  pointer-events: auto;
  z-index: 3;
}

.boat:focus-visible {
  outline: 2px solid rgba(255, 214, 93, 0.95);
  outline-offset: 5px;
}

.boat::before {
  content: "";
  position: absolute;
  left: 35px;
  bottom: 14px;
  width: 3px;
  height: 30px;
  background: #f6f9ff;
  border-radius: 2px;
}

.boat::after {
  content: "";
  position: absolute;
  left: 38px;
  bottom: 18px;
  width: 0;
  height: 0;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 24px solid rgba(255, 214, 93, 0.95);
  filter: drop-shadow(0 2px 4px rgba(20, 40, 73, 0.25));
}

.boat-star {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--star-size, 12px);
  height: var(--star-size, 12px);
  pointer-events: none;
  opacity: 0;
  z-index: 5;
  background: var(--star-color, #ffd65d);
  clip-path: polygon(50% 0%, 61% 36%, 98% 36%, 68% 58%, 79% 95%, 50% 72%, 21% 95%, 32% 58%, 2% 36%, 39% 36%);
  transform: translate(-50%, -50%) scale(0.2) rotate(0deg);
  filter: drop-shadow(0 1px 4px rgba(22, 55, 99, 0.25));
  animation: boat-star-burst var(--star-duration, 820ms) cubic-bezier(0.18, 0.72, 0.34, 1) forwards;
}

@keyframes boat-star-burst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2) rotate(0deg);
  }
  15% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--star-tx, 0px)), calc(-50% + var(--star-ty, 0px))) scale(1.05) rotate(var(--star-rot, 180deg));
  }
}

.trust-band-inner {
  max-width: 860px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.trust-title {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #1f5fac;
}

.trust-copy {
  margin-top: 14px;
  font-size: 1.18rem;
  line-height: 1.7;
  color: #243f66;
}

.trust-copy strong {
  color: #173763;
}

.section {
  padding: clamp(64px, 8vw, 112px) 0;
  scroll-margin-top: 100px;
}

.paired-viewport {
  min-height: calc(100svh - 82px);
  display: flex;
  flex-direction: column;
}

.paired-top,
.paired-bottom {
  min-height: 0;
  display: grid;
  align-items: center;
}

.paired-top {
  flex: 1.2;
}

.paired-bottom {
  flex: 0.8;
}

.section-dark {
  background: linear-gradient(165deg, #101f3a 0%, #152b4e 72%, #1b3c6a 100%);
}

#por-que {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

#por-que > .container {
  position: relative;
  z-index: 2;
}

#por-que .bg-animation {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

#por-que #stars,
#por-que #stars2,
#por-que #stars3,
#por-que #stars4 {
  position: absolute;
  inset: -100% 0 0;
  background-repeat: repeat;
  will-change: transform;
}

#por-que #stars {
  background-image:
    radial-gradient(circle, rgba(255, 218, 124, 0.78) 1px, transparent 1.1px),
    radial-gradient(circle, rgba(196, 153, 82, 0.58) 1px, transparent 1.2px);
  background-size: 230px 230px, 310px 310px;
  background-position: 14px 18px, 120px 92px;
  animation: por-que-stars-fall 90s linear infinite;
}

#por-que #stars2 {
  background-image:
    radial-gradient(circle, rgba(255, 224, 150, 0.72) 1.4px, transparent 1.5px),
    radial-gradient(circle, rgba(196, 153, 82, 0.52) 1.4px, transparent 1.5px);
  background-size: 360px 360px, 460px 460px;
  background-position: 70px 14px, 210px 178px;
  animation: por-que-stars-fall 130s linear infinite;
}

#por-que #stars3 {
  background-image:
    radial-gradient(circle, rgba(255, 229, 163, 0.66) 2px, transparent 2.1px),
    radial-gradient(circle, rgba(196, 153, 82, 0.45) 1.8px, transparent 1.9px);
  background-size: 560px 560px, 680px 680px;
  background-position: 44px 120px, 260px 330px;
  animation: por-que-stars-fall 180s linear infinite;
}

#por-que #stars4 {
  background-image:
    radial-gradient(circle, rgba(255, 236, 190, 0.78) 1px, transparent 1.1px),
    radial-gradient(circle, rgba(196, 153, 82, 0.4) 1px, transparent 1.1px);
  background-size: 150px 150px, 240px 240px;
  background-position: 8px 48px, 90px 130px;
  opacity: 0.56;
  animation: por-que-stars-fall 240s linear infinite;
}

@keyframes por-que-stars-fall {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(50%);
  }
}

.section-dark h2,
.section-dark h3,
.section-dark p,
.section-dark li,
.section-dark blockquote {
  color: #eef3ff;
}

.section-soft {
  background:
    radial-gradient(circle at 12% 15%, rgba(26, 92, 162, 0.11), transparent 44%),
    linear-gradient(180deg, #f5f8fc 0%, #eef4fb 100%);
}

#metodo {
  position: relative;
  isolation: isolate;
  clip-path: polygon(0 46px, 100% 0, 100% 100%, 0 100%);
  padding-top: calc(clamp(64px, 8vw, 112px) + 30px);
}

#metodo::before,
#metodo::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}

#metodo::before {
  width: 320px;
  height: 320px;
  right: 4%;
  top: 18%;
  background: rgba(45, 102, 173, 0.22);
}

#metodo::after {
  width: 260px;
  height: 260px;
  left: 2%;
  bottom: 6%;
  background: rgba(243, 190, 43, 0.2);
}

#contacto {
  position: relative;
  padding-bottom: clamp(64px, 8vw, 112px);
}

#contacto::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  opacity: 0.6;
  pointer-events: none;
}

.eyebrow {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-500);
}

.section-dark .eyebrow {
  color: #ffd56c;
}

.section h2 {
  margin-top: 12px;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.split {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 42px;
  align-items: center;
}

.split p {
  margin-top: 14px;
  max-width: 62ch;
}

.split blockquote {
  margin: 0;
  padding-left: 20px;
  border-left: 4px solid #ffd05b;
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.35rem, 2.8vw, 2.35rem);
  font-weight: 700;
  line-height: 1.2;
}

.services-intro {
  margin-top: 16px;
  max-width: 74ch;
  font-size: 1.08rem;
  line-height: 1.66;
}

.method-intro {
  margin-top: 14px;
  max-width: 74ch;
  font-size: 1.02rem;
}

.services-list {
  margin-top: 46px;
  position: relative;
  height: clamp(330px, 44vw, 450px);
  overflow: visible;
  isolation: isolate;
  cursor: grab;
  touch-action: pan-y;
}

.services-list.is-dragging {
  cursor: grabbing;
}

.service-seo-links {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.service-seo-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(24, 73, 131, 0.2);
  background: rgba(255, 255, 255, 0.72);
  color: var(--brand-700);
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(16, 37, 68, 0.07);
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.service-seo-links a:hover,
.service-seo-links a:focus-visible {
  border-color: rgba(24, 73, 131, 0.36);
  box-shadow: 0 12px 26px rgba(16, 37, 68, 0.12);
  transform: translateY(-2px);
}

.service-item {
  --x: calc(var(--active, 0) * 74%);
  --y: calc(var(--active, 0) * 10%);
  --rot: calc(var(--active, 0) * 7deg);
  --opacity: clamp(0.18, calc((var(--z-index, 1) / var(--items, 5)) * 1.35), 1);
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: var(--z-index, 1);
  width: clamp(220px, 26vw, 300px);
  min-height: clamp(250px, 31vw, 320px);
  padding: 22px 22px 18px;
  border-radius: 14px;
  border: 1px solid rgba(24, 73, 131, 0.2);
  background: linear-gradient(180deg, #ffffff, #f6f9ff 65%, #f1f6fe 100%);
  box-shadow: 0 14px 34px rgba(16, 37, 68, 0.16);
  transform-origin: 0% 100%;
  transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--rot));
  opacity: var(--opacity);
  transition: transform 0.78s cubic-bezier(0, 0.02, 0, 1), opacity 0.78s cubic-bezier(0, 0.02, 0, 1), box-shadow var(--ease), border-color var(--ease);
  pointer-events: auto;
  user-select: none;
}

.service-index {
  color: rgba(24, 73, 131, 0.48);
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  line-height: 1.2;
  display: block;
  margin-bottom: 18px;
}

.service-item h3 {
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  margin-bottom: 14px;
}

.service-lead {
  color: #405a7d;
  font-size: 1.02rem;
  line-height: 1.58;
  max-width: 31ch;
}

.service-focus {
  margin-top: 18px;
  color: #184983;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.55;
}

.service-item:hover {
  border-color: rgba(24, 73, 131, 0.34);
  box-shadow: 0 18px 42px rgba(16, 37, 68, 0.22);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  border-color: #b8cae7;
  box-shadow: var(--shadow-strong);
}

.card h3 {
  font-size: 1.85rem;
  margin-bottom: 12px;
}

.method-timeline {
  --timeline-progress: 0%;
  --timeline-start: 0%;
  --timeline-middle: 45%;
  --timeline-end: 100%;
  margin-top: 40px;
  position: relative;
  display: grid;
  gap: 28px;
}

.method-timeline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 8px;
  bottom: 8px;
  background: linear-gradient(180deg, rgba(38, 103, 172, 0.04), rgba(38, 103, 172, 0.2) 15%, rgba(38, 103, 172, 0.2) 85%, rgba(38, 103, 172, 0.04));
  clip-path: polygon(
    34% var(--timeline-start),
    65% var(--timeline-middle),
    34% var(--timeline-end),
    35.4% var(--timeline-end),
    66.4% var(--timeline-middle),
    35.4% var(--timeline-start)
  );
}

.method-timeline::after {
  display: none;
}

.timeline-progress-arrow {
  position: absolute;
  left: 0;
  right: 0;
  top: 8px;
  bottom: 8px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(38, 103, 172, 0.12), rgba(38, 103, 172, 0.76) 15%, rgba(38, 103, 172, 0.76) 85%, rgba(38, 103, 172, 0.12));
  clip-path: polygon(
    34% var(--timeline-start),
    65% var(--timeline-middle),
    34% var(--timeline-end),
    35.4% var(--timeline-end),
    66.4% var(--timeline-middle),
    35.4% var(--timeline-start)
  );
  -webkit-mask-image: linear-gradient(
    180deg,
    #000 0%,
    #000 var(--timeline-progress),
    transparent var(--timeline-progress),
    transparent 100%
  );
  mask-image: linear-gradient(
    180deg,
    #000 0%,
    #000 var(--timeline-progress),
    transparent var(--timeline-progress),
    transparent 100%
  );
  transition: -webkit-mask-image 120ms linear, mask-image 120ms linear;
}

.timeline-step {
  position: relative;
  isolation: isolate;
  z-index: 1;
  width: min(560px, calc(50% - 40px));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 14px 32px rgba(15, 40, 76, 0.08);
  padding: 24px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: opacity 420ms ease, transform 420ms ease, box-shadow var(--ease), border-color var(--ease);
}

.timeline-step.is-timeline-reached {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.timeline-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(45, 102, 173, 0.5);
}

.timeline-step::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2d66ad;
  border: 2px solid #f2f7ff;
  box-shadow: 0 0 0 5px rgba(45, 102, 173, 0.08);
  opacity: 0.42;
  transition: opacity var(--ease), box-shadow var(--ease), transform var(--ease);
}

.timeline-step.is-timeline-reached::after {
  opacity: 1;
  box-shadow: 0 0 0 6px rgba(45, 102, 173, 0.14);
}

.timeline-step-2::before {
  background: rgba(45, 102, 173, 0.5);
}

.timeline-step-2::after {
  background: #2d66ad;
  box-shadow: 0 0 0 5px rgba(45, 102, 173, 0.08);
}

.timeline-step-3::before {
  background: rgba(45, 102, 173, 0.5);
}

.timeline-step-3::after {
  background: #2d66ad;
  box-shadow: 0 0 0 5px rgba(45, 102, 173, 0.08);
}

.timeline-left {
  justify-self: start;
}

.timeline-left::after {
  right: -45px;
}

.timeline-right {
  justify-self: end;
  margin-top: 34px;
}

.timeline-right::after {
  left: -45px;
}

.timeline-step:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(15, 40, 76, 0.12);
  border-color: #b8cae7;
}

.timeline-step:not(.is-timeline-reached):hover {
  transform: translateY(18px) scale(0.98);
}

.timeline-step h3 {
  font-size: 1.45rem;
  margin-bottom: 10px;
}

.timeline-step p {
  color: #36557f;
}

.timeline-step ul {
  margin: 16px 0 0;
  padding: 0;
  border-top: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.timeline-step li {
  position: relative;
  padding-left: 16px;
  color: #536985;
  font-size: 0.94rem;
  line-height: 1.4;
}

.timeline-step li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(45, 102, 173, 0.42);
}

.timeline-outcome {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(45, 102, 173, 0.12);
  color: #2f527f;
  font-weight: 600;
  font-size: 0.93rem;
  line-height: 1.45;
}

.timeline-outcome strong {
  color: #1d4f95;
  font-weight: 700;
}

.about {
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(320px, 440px) 1fr;
  align-items: center;
}

.about-figure {
  position: relative;
}

.about-image {
  position: relative;
  overflow: hidden;
  min-height: 580px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(24deg, rgba(16, 39, 72, 0.34), rgba(34, 86, 146, 0.16)),
    url("../images/hero-placeholder.png") center / cover no-repeat;
  box-shadow: var(--shadow-strong);
}

.about-reveal-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms ease;
}

.about-image.is-reveal-active .about-reveal-canvas {
  opacity: 1;
}

.about-badge {
  position: absolute;
  right: 18px;
  bottom: -20px;
  border-radius: 16px;
  padding: 16px 18px;
  background: linear-gradient(140deg, #1d5eb2, #2e73c4);
  color: #fff;
  box-shadow: 0 16px 30px rgba(25, 79, 148, 0.35);
}

.about-badge strong {
  display: block;
  font-family: "Manrope", sans-serif;
  font-size: 2rem;
  line-height: 1;
}

.about-badge span {
  display: block;
  margin-top: 4px;
  font-size: 0.95rem;
  font-weight: 700;
}

.about-snapshot {
  position: absolute;
  left: -16px;
  top: -16px;
  width: 132px;
  height: 132px;
  border-radius: 18px;
  border: 6px solid #fff;
  box-shadow: 0 18px 30px rgba(15, 40, 76, 0.24);
  background:
    linear-gradient(160deg, rgba(16, 39, 72, 0.18), rgba(34, 86, 146, 0.08)),
    url("../images/about-placeholder.jpg") center / cover no-repeat;
  transform: rotate(-8deg);
  transition: transform var(--ease);
}

.about-figure:hover .about-snapshot {
  transform: rotate(-4deg) scale(1.03);
}

.about-content h2 {
  font-size: clamp(2.08rem, 3.45vw, 3.05rem);
  line-height: 1.03;
  max-width: 20ch;
}

.about-content p {
  margin-top: 10px;
  max-width: 72ch;
}

.about-content p strong {
  color: #1c3e6c;
  text-transform: uppercase;
}

.profile-card {
  margin-top: 24px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background:
    linear-gradient(165deg, #ffffff 0%, #f6f9ff 66%, #f1f6ff 100%);
  border-radius: 16px;
  border: 1px solid #d4e0f2;
  padding: 18px;
  box-shadow: 0 12px 28px rgba(17, 54, 102, 0.1);
  position: relative;
  overflow: hidden;
}

.profile-card::before {
  content: "";
  position: absolute;
  right: -52px;
  top: -58px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42, 103, 169, 0.14) 0%, rgba(42, 103, 169, 0) 72%);
  pointer-events: none;
}

.profile-body {
  position: relative;
  z-index: 1;
}

.profile-card img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid #d8e4f6;
  box-shadow: 0 6px 16px rgba(17, 54, 102, 0.14);
}

.profile-tag {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.75rem;
  font-weight: 800;
  color: #2b5fa6;
}

.profile-card h3 {
  color: var(--brand-600);
  font-size: 1.42rem;
  margin: 2px 0 8px;
}

.profile-card p {
  color: #36557f;
  line-height: 1.6;
}

.profile-body > p[data-i18n="quien.profileBio"] {
  font-size: 0.99rem;
  color: #365278;
}

.text-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--brand-600);
  font-weight: 700;
}

.text-link:hover {
  color: var(--brand-700);
}

.profile-link {
  margin-top: 13px;
  font-size: 0.92rem;
  align-items: center;
  gap: 9px;
  background: #ffffff;
  border: 1px solid #d3e0f3;
  border-radius: 999px;
  padding: 7px 13px 7px 9px;
  box-shadow: 0 5px 14px rgba(19, 57, 103, 0.09);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.profile-link:hover {
  transform: translateY(-1px);
  border-color: #b7cbed;
  box-shadow: 0 10px 20px rgba(19, 57, 103, 0.14);
}

.profile-link-icon {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(150deg, #0a66c2, #1558a6);
  color: #ffffff;
  flex: 0 0 auto;
}

.profile-link-icon svg {
  width: 14px;
  height: 14px;
  display: block;
  fill: currentColor;
}

.contact {
  position: relative;
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr 1.1fr;
  align-items: start;
}

.contact::after {
  content: "";
  position: absolute;
  right: -16px;
  top: -46px;
  width: 180px;
  height: 180px;
  border-radius: 42% 58% 65% 35% / 45% 45% 55% 55%;
  background: radial-gradient(circle, rgba(243, 190, 43, 0.35), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}

.contact h2 {
  margin: 10px 0 14px;
}

.contact-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
}

.contact-list {
  margin: 24px 0 0;
  list-style: none;
  padding: 0;
  display: grid;
  border-top: 1px solid rgba(198, 215, 244, 0.16);
}

.contact-list li {
  display: grid;
  grid-template-columns: minmax(82px, 0.24fr) 1fr;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(198, 215, 244, 0.16);
  color: #dce8fb;
  line-height: 1.45;
}

.contact-list strong {
  color: rgba(220, 232, 251, 0.62);
  font-family: "Manrope", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.contact-list span {
  color: rgba(238, 243, 255, 0.9);
}

.contact-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-actions .btn {
  min-width: 190px;
}

.contact-form {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: #fff;
  border-radius: 22px;
  border: 1px solid rgba(207, 219, 238, 0.9);
  box-shadow: var(--shadow-strong);
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  transform: rotate(-0.45deg);
  transition: transform var(--ease), box-shadow var(--ease);
}

.contact-form:hover,
.contact-form:focus-within {
  transform: rotate(0deg);
  box-shadow: 0 26px 54px rgba(15, 40, 76, 0.22);
}

.contact-form label {
  color: #284365;
  font-size: 0.93rem;
  font-weight: 600;
  display: grid;
  gap: 8px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #d3deef;
  border-radius: var(--radius-md);
  background: #f5f8fd;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  transition: border-color var(--ease), background-color var(--ease), box-shadow var(--ease);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: 0;
  border-color: #6da1d8;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(109, 161, 216, 0.2);
}

.contact-form .full {
  grid-column: 1 / -1;
}

.contact-form .consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.45;
}

.contact-form .consent input {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  padding: 0;
}

.consent span {
  flex: 1;
  color: #3d567a;
  font-weight: 500;
}

.consent a {
  color: var(--brand-600);
  text-decoration: underline;
}

.form-feedback {
  min-height: 1.2em;
  font-size: 0.9rem;
}

.form-feedback.success {
  color: var(--ok);
}

.form-feedback.error {
  color: var(--danger);
}

.site-footer {
  background: #0f1e39;
  color: #afc0df;
  border-top: 1px solid rgba(196, 214, 244, 0.14);
}

.footer-wrap {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}

.footer-link-groups {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 22px 34px;
  max-width: 840px;
}

.footer-link-group {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 7px 18px;
  align-content: start;
}

.footer-link-group span {
  grid-column: 1 / -1;
  color: rgba(175, 192, 223, 0.58);
  font-family: "Manrope", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-wrap a {
  color: #d8e6fb;
  font-size: 0.92rem;
  line-height: 1.35;
  white-space: nowrap;
  opacity: 0.86;
  transition: color var(--ease), opacity var(--ease);
}

.footer-wrap a:hover {
  color: #fff;
  opacity: 1;
}

.footer-brand {
  display: grid;
  gap: 4px;
  max-width: 340px;
}

.footer-brand p {
  color: rgba(175, 192, 223, 0.72);
}
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-500));
  box-shadow: 0 14px 26px rgba(24, 73, 131, 0.4);
  opacity: 0;
  transform: translateY(14px) scale(0.9);
  pointer-events: none;
  transition: opacity var(--ease), transform var(--ease);
  z-index: 90;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.back-to-top:hover {
  transform: translateY(-3px) scale(1.03);
}

.back-to-top-arrow {
  width: 10px;
  height: 10px;
  border-left: 2px solid #fff;
  border-top: 2px solid #fff;
  transform: rotate(45deg);
  margin-top: 5px;
}

.testimonials-scroll-zone {
  background:
    radial-gradient(circle at 14% 10%, rgba(17, 54, 100, 0.26), transparent 36%),
    radial-gradient(circle at 86% 18%, rgba(243, 190, 43, 0.22), transparent 34%),
    #060d19;
  color: #f5f8ff;
  min-height: 100svh;
  padding: 0;
}

.testimonials-scroll-zone .eyebrow,
.testimonials-scroll-zone h2,
.testimonials-scroll-zone p {
  color: inherit;
}

.testimonials-scroll-intro {
  position: absolute;
  left: 50%;
  top: clamp(74px, 10vh, 120px);
  transform: translateX(-50%);
  z-index: 5;
  text-align: center;
  transition: opacity 320ms linear, transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.testimonials-scroll-intro h2 {
  margin-top: 10px;
}

.testimonials-scroll-intro p {
  margin: 12px auto 0;
  max-width: 64ch;
  color: rgba(224, 235, 255, 0.85);
}

.testimonials-animation-stage {
  min-height: 172vh;
  position: relative;
}

.testimonials-sticky-canvas {
  min-height: 100vh;
  position: sticky;
  top: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.testimonials-avatar-grid {
  width: min(1160px, calc(100% - 40px));
  aspect-ratio: 16 / 9;
  position: relative;
}

.ts-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.45) translateY(28px);
  transition: opacity 220ms linear;
}

.ts-avatar {
  position: absolute;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.76);
  box-shadow: 0 14px 30px rgba(3, 11, 24, 0.5);
  animation: ts-float 10s linear infinite;
  cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease), filter var(--ease);
}



.ts-value-icon,
.ts-card-icon {
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(145deg, var(--value-a), var(--value-b));
}

.ts-value-icon {
  overflow: hidden;
}

.ts-value-icon svg,
.ts-card-icon svg {
  width: 48%;
  height: 48%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ts-value-icon::after {
  content: "";
  position: absolute;
  inset: 17%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.ts-integrity { --value-a: #1b5f75; --value-b: #44a188; }
.ts-commitment { --value-a: #214f99; --value-b: #6d87cc; }
.ts-respect { --value-a: #7051a3; --value-b: #ba76a4; }
.ts-responsibility { --value-a: #876421; --value-b: #d4a943; }

.ts-card-icon {
  width: 62px;
  height: 62px;
  margin-bottom: 18px;
  border-radius: 18px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 12px 24px rgba(20, 53, 93, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.ts-entry .ts-card-icon {
  display: inline-grid;
  color: #ffffff;
}

.ts-entry .ts-card-icon svg {
  stroke: #ffffff;
  stroke-width: 2.25;
  filter: drop-shadow(0 1px 2px rgba(5, 20, 40, 0.28));
}

.ts-avatar.is-selected {
  border-color: #ffd56c;
  box-shadow: 0 16px 34px rgba(7, 18, 38, 0.62), 0 0 0 5px rgba(255, 213, 108, 0.24);
  filter: saturate(1.08);
}

.a1 { width: 104px; height: 104px; left: 2%; top: 11%; animation-duration: 10s; }
.a2 { width: 64px; height: 64px; left: 10%; top: 62%; animation-duration: 12s; }
.a3 { width: 72px; height: 72px; right: 7%; top: 14%; animation-duration: 8s; }
.a4 { width: 56px; height: 56px; right: 12%; top: 70%; animation-duration: 11s; }
.a5 { width: 70px; height: 70px; left: 19%; top: 24%; animation-duration: 9s; }
.a6 { width: 76px; height: 76px; right: 20%; top: 26%; animation-duration: 8.5s; }
.a7 { width: 62px; height: 62px; left: 26%; top: 76%; animation-duration: 9.5s; }
.a8 { width: 58px; height: 58px; right: 28%; top: 74%; animation-duration: 7.5s; }
.a9 { width: 82px; height: 82px; left: 42%; top: 10%; animation-duration: 9.5s; }
.a10 { width: 60px; height: 60px; left: 46%; top: 80%; animation-duration: 7s; }

.ts-scaler-card {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(2.6);
  width: min(580px, 88vw);
  min-height: 304px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(201, 216, 239, 0.88);
  box-shadow: 0 28px 62px rgba(5, 15, 32, 0.46);
  padding: 28px;
  color: #153255;
  transform-origin: center;
  opacity: 0;
  transition: opacity 280ms linear;
}

.ts-scaler-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(24, 73, 131, 0.26);
}

.ts-entries {
  position: relative;
  margin-top: 16px;
  min-height: 182px;
  perspective: 1000px;
}

.ts-entry {
  position: absolute;
  inset: 0;
  transition: transform 700ms cubic-bezier(0.5, -0.01, 0, 1), opacity 700ms cubic-bezier(0.5, -0.01, 0, 1);
}

.ts-entry p {
  margin-top: 10px;
  color: #29496f;
  font-size: 1.05rem;
  line-height: 1.6;
}

.ts-entry h3 {
  margin-top: 0;
  font-size: 1.2rem;
  color: #163a64;
}

.ts-entry span {
  display: none;
  margin-top: 4px;
  color: #4a6487;
  font-size: 0.92rem;
  font-weight: 600;
}

.ts-entry.is-active {
  opacity: 1;
  transform: translateY(0) rotateX(0deg);
}

.ts-entry.is-hidden-up {
  opacity: 0;
  transform: translateY(-100%) rotateX(70deg);
}

.ts-entry.is-hidden-down {
  opacity: 0;
  transform: translateY(100%) rotateX(-70deg);
}

.testimonials-scroll-outro {
  text-align: center;
  margin-top: 36px;
}

.testimonials-scroll-outro p {
  color: rgba(221, 234, 255, 0.9);
  font-size: 1.08rem;
}

@keyframes ts-float {
  0% {
    transform: rotate(0deg) translate(-8px) rotate(0deg);
  }
  100% {
    transform: rotate(360deg) translate(-8px) rotate(-360deg);
  }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: transform var(--ease), opacity var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes drift {
  from {
    transform: scale(1.05) translateY(0);
  }
  to {
    transform: scale(1.09) translateY(-12px);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }

  .ts-avatar {
    animation: none;
  }
}

@media (max-width: 1080px) {
  .split,
  .about,
  .contact {
    grid-template-columns: 1fr;
  }

  .services-list {
    height: clamp(320px, 56vw, 430px);
  }

  .service-item {
    width: clamp(210px, 40vw, 290px);
    min-height: clamp(240px, 38vw, 300px);
  }

  .service-lead {
    max-width: 58ch;
  }

  .method-timeline::before,
  .method-timeline::after,
  .timeline-progress-arrow {
    display: none;
  }

  .timeline-step,
  .timeline-left,
  .timeline-right {
    width: 100%;
    justify-self: stretch;
    margin-top: 0;
    opacity: 1;
    transform: none;
    clip-path: none;
  }

  .timeline-step::after {
    display: none;
  }

  .about-image {
    min-height: 520px;
  }

  .testimonials-animation-stage {
    min-height: 162vh;
  }

  .testimonials-scroll-intro {
    top: clamp(70px, 8vh, 100px);
  }

  .ts-scaler-card {
    width: min(540px, 90vw);
    min-height: 290px;
  }

  .a1,
  .a3,
  .a4,
  .a6,
  .a9 {
    width: 72px;
    height: 72px;
  }
}

@media (max-width: 900px) {
  .nav-actions {
    gap: 10px;
  }

  .lang-current {
    height: 36px;
    padding: 0 10px;
    font-size: 0.72rem;
  }

  .lang-options {
    right: auto;
    left: 50%;
    transform: translate(-50%, -8px);
  }

  .lang-switch.is-open .lang-options {
    transform: translate(-50%, 0);
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 92px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: min(92vw, 380px);
    z-index: 85;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 12px;
    box-shadow: var(--shadow-strong);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px) scale(0.97);
    transition: opacity var(--ease), transform var(--ease), visibility var(--ease);
  }

  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .main-nav a:not(.btn) {
    padding: 15px 14px;
    border-bottom: 1px solid #eef2f9;
    border-radius: 12px;
    font-size: 1.02rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .main-nav a:not(.btn):hover,
  .main-nav a:not(.btn):focus-visible {
    background: #f3f7fd;
  }

  .main-nav a:not(.btn)::after {
    content: "\2192";
    position: static;
    width: auto;
    height: auto;
    background: none;
    color: #a9bcdb;
    font-weight: 700;
    transition: transform var(--ease), color var(--ease);
  }

  .main-nav a:not(.btn):hover::after,
  .main-nav a:not(.btn):focus-visible::after,
  .main-nav a:not(.btn).is-current::after {
    width: auto;
    color: var(--brand-600);
    transform: translateX(3px);
  }

  .main-nav .btn {
    width: 100%;
    margin-top: 10px;
  }

  .menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 30, 55, 0.4);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--ease), visibility var(--ease);
    z-index: 70;
  }

  body.menu-open .menu-backdrop {
    opacity: 1;
    visibility: visible;
  }

  .contact-actions .btn {
    min-width: 0;
    width: 100%;
  }

  .paired-viewport {
    min-height: auto;
  }

  .paired-top,
  .paired-bottom {
    display: block;
  }
}

@media (max-width: 700px) {
  .hero {
    min-height: calc(100svh - 82px);
  }

  .hero-content {
    padding: 118px 0 80px;
  }

  .hero-badge {
    width: auto;
    padding: 0;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
  }

  .hero p {
    font-size: 1rem;
  }

  .trust-band {
    padding: 56px 0;
  }

  .trust-copy {
    font-size: 1rem;
  }

  #metodo {
    clip-path: polygon(0 24px, 100% 0, 100% 100%, 0 100%);
  }

  .contact::after {
    display: none;
  }

  .contact-list li {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .about-snapshot {
    width: 92px;
    height: 92px;
    left: -12px;
    top: -12px;
  }

  .services-list {
    margin-top: 34px;
    height: clamp(300px, 74vw, 370px);
  }

  .service-item {
    width: clamp(180px, 62vw, 250px);
    min-height: clamp(220px, 62vw, 280px);
    padding: 18px 16px 15px;
  }

  .service-index {
    font-size: 0.78rem;
    margin-bottom: 12px;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .card,
  .timeline-step {
    padding: 22px;
  }

  .timeline-step,
  .timeline-left,
  .timeline-right {
    padding-left: 52px;
  }

  .about-image {
    min-height: 360px;
  }

  .about-badge {
    right: 12px;
    bottom: -16px;
    padding: 12px 14px;
  }

  .about-badge strong {
    font-size: 1.6rem;
  }

  .profile-card {
    flex-direction: column;
    align-items: start;
  }

  .testimonials-animation-stage {
    min-height: 150vh;
  }

  .testimonials-scroll-intro {
    top: 72px;
  }

  .ts-scaler-card {
    width: min(94vw, 440px);
    min-height: 268px;
    padding: 20px;
  }

  .ts-entry p {
    font-size: 0.95rem;
  }
  .a2,
  .a3 {
    display: none;
  }

  .footer-wrap {
    min-height: unset;
    padding: 18px 0;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
  .footer-link-groups {
    justify-content: center;
    gap: 20px;
  }

  .footer-link-group {
    justify-items: center;
    grid-template-columns: 1fr;
    gap: 7px;
  }
}

.seo-body {
  background:
    linear-gradient(180deg, #f8fafc 0%, #eef3f9 100%);
}

.seo-main {
  padding: clamp(56px, 7vw, 88px) 0 clamp(70px, 8vw, 112px);
}

.seo-page {
  width: var(--container);
  margin: 0 auto;
}

.seo-hero {
  max-width: 860px;
  padding-bottom: clamp(28px, 4vw, 42px);
  border-bottom: 1px solid rgba(24, 73, 131, 0.16);
}

.seo-hero h1 {
  margin-top: 12px;
  max-width: 920px;
  font-size: clamp(2.15rem, 4.15vw, 3.85rem);
  letter-spacing: -0.01em;
}

.seo-hero .legal-meta {
  margin-top: 18px;
  max-width: 62ch;
  color: #355579;
  font-size: clamp(1.02rem, 1.3vw, 1.18rem);
  line-height: 1.65;
}

.seo-content {
  max-width: 900px;
  padding-top: clamp(26px, 4vw, 42px);
  display: grid;
  gap: 0;
}

.seo-content .legal-section {
  margin-top: 0;
  padding: 24px 0;
  border-bottom: 1px solid rgba(24, 73, 131, 0.11);
  display: grid;
  grid-template-columns: minmax(170px, 0.34fr) 1fr;
  gap: clamp(18px, 4vw, 48px);
}

.seo-content .legal-section h2 {
  margin: 0;
  color: var(--brand-700);
  font-size: 1rem;
  line-height: 1.35;
}

.seo-content .legal-section p,
.seo-content .legal-section li {
  color: #304b70;
  font-size: 1.01rem;
  line-height: 1.7;
}

.seo-content .legal-section ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 9px;
}

.seo-page > .service-seo-links {
  max-width: 900px;
  margin-top: 30px;
}

.seo-page > .legal-back {
  margin-top: 28px;
}

@media (max-width: 700px) {
  .seo-main {
    padding-top: 42px;
  }

  .seo-hero h1 {
    max-width: none;
  }

  .seo-content .legal-section {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 22px 0;
  }
}

.legal-body {
  background:
    radial-gradient(circle at 12% 0%, rgba(26, 92, 162, 0.12), transparent 40%),
    linear-gradient(180deg, #f9fbfe 0%, #eef3f9 100%);
}

.legal-main {
  padding: 42px 0 70px;
}

.legal-card {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-strong);
  padding: clamp(22px, 4vw, 38px);
}

.legal-card h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.legal-meta {
  margin-top: 10px;
  color: #6a809e;
  font-size: 0.95rem;
}

.legal-section {
  margin-top: 28px;
}

.legal-section h2 {
  font-size: 1.36rem;
  margin-bottom: 10px;
}

.legal-section p,
.legal-section li {
  color: #304b70;
}

.legal-section ul {
  margin: 10px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.legal-back {
  margin-top: 28px;
  display: inline-flex;
  font-weight: 700;
  color: var(--brand-600);
}

.legal-back:hover {
  color: var(--brand-700);
}
