:root {
  --blue: #415BA4;
  --red: #E9444C;
  --white: #E7E8E8;
  --white-soft: rgba(231, 232, 232, 0.78);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 0;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 32%),
    var(--blue);
  color: var(--white);
  font-family: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body.intro-finished {
  overflow-y: auto;
  overflow-x: hidden;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 20;
  overflow: hidden;
  background: var(--blue);
}

.intro-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 1px;
  height: 1px;
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
}

.logo-crop {
  position: absolute;
  overflow: hidden;
  opacity: 0;
  will-change: transform, opacity, filter;
}

.logo-crop img,
.diana {
  position: absolute;
  display: block;
  max-width: none;
  pointer-events: none;
  user-select: none;
}

.diana {
  z-index: 4;
  opacity: 0;
  will-change: transform, opacity, filter;
}

.flecha {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  display: block;
  max-width: none;
  opacity: 0;
  pointer-events: none;
  user-select: none;
  will-change: transform, opacity, filter;
}

.impact {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 6;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.particle {
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: var(--white);
  opacity: 0;
}

.particle:nth-child(3n) {
  background: var(--red);
}

.shockwave {
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  border: 2px solid var(--white);
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%);
}

.shockwave:nth-child(2n) {
  border-color: var(--red);
}

.lineas {
  position: absolute;
  inset: -35vh -35vw;
  z-index: 7;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.linea {
  position: absolute;
  overflow: hidden;
  opacity: 0;
  transform: rotate(-48deg);
  will-change: transform, opacity;
}

.linea img {
  position: absolute;
  display: block;
  max-width: none;
  pointer-events: none;
  user-select: none;
}

.site {
  min-height: 100vh;
  min-height: 100svh;
  opacity: 0;
  overflow-x: hidden;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 15;
  padding: clamp(18px, 1.6vw, 28px) clamp(16px, 2.2vw, 40px) 0;
}

.header-shell {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.6vw, 28px);
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  position: relative;
  width: clamp(184px, 15.2vw, 248px);
  height: clamp(37px, 3.4vw, 51px);
  overflow: hidden;
  text-decoration: none;
}

@media (min-width: 1181px) {
  .brand {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
  }
}

.brand-logo-full {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 118%;
  max-width: none;
  height: auto;
  transform: translate(-50%, -50%);
}

.nav-track {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 1 auto;
  width: min(980px, 56vw);
  max-width: 980px;
  min-height: clamp(46px, 4.2vw, 64px);
  padding: 3px;
  border-radius: 999px;
  background: rgba(160, 90, 129, 0.84);
  box-shadow: 0 14px 34px rgba(24, 21, 48, 0.16);
}

.nav-indicator {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(33.333% - 2px);
  border-radius: 999px;
  background: var(--red);
  z-index: 0;
  transition: transform 420ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.nav-link {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(40px, 3.8vw, 58px);
  color: var(--white);
  font-size: clamp(16px, 1.25vw, 22px);
  font-weight: 500;
  text-transform: uppercase;
  text-decoration: none;
}

.nav-link.is-active {
  font-weight: 700;
}

.header-spacer {
  display: none;
}

.section {
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(96px, 12vh, 142px) clamp(18px, 3vw, 48px) clamp(40px, 6vh, 70px);
  scroll-margin-top: 0;
}

.section-inner {
  width: min(100%, 1480px);
  margin: 0 auto;
}

.section-title {
  color: var(--white);
  font-size: clamp(34px, 3vw, 52px);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.centered {
  text-align: center;
}

.section-home {
  position: relative;
  overflow: hidden;
}

.section-services {
  padding-top: clamp(154px, 18vh, 190px);
}

.home-shell {
  position: relative;
  display: block;
  min-height: calc(100vh - 140px);
  min-height: calc(100svh - 140px);
}

.home-copy {
  position: relative;
  z-index: 2;
  max-width: min(640px, 100%);
  padding-top: clamp(165px, 21vh, 230px);
}

.home-copy h1 {
  color: var(--white);
  font-size: clamp(50px, 4.9vw, 60px);
  font-weight: 800;
  line-height: 0.98;
  text-transform: uppercase;
}

.lead {
  max-width: 600px;
  margin-top: 28px;
  color: var(--white);
  font-size: clamp(18px, 1.6vw, 28px);
  font-weight: 400;
  line-height: 1.42;
}

.home-graphic {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.expansion-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.expansion-path {
  stroke: var(--red);
  stroke-width: 54;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  opacity: 0.96;
}

.expansion-path-soft {
  stroke-width: 22;
  opacity: 0.28;
}

.services-shell,
.contact-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.services-stage {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: clamp(28px, 4vh, 46px);
  padding: 18px 0;
  overflow: hidden;
}

.services-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.services-route-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.services-route {
  stroke: rgba(233, 68, 76, 0.9);
  stroke-width: 44;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  opacity: 0;
  filter: drop-shadow(0 12px 22px rgba(28, 22, 42, 0.12));
}

.services-route-mobile {
  display: none;
}

.services-grid {
  position: relative;
  z-index: 1;
  width: min(calc(100vw - 72px), 900px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(300px, 400px));
  justify-content: center;
  gap: 30px 48px;
  align-items: start;
}

.service-card {
  width: 100%;
  max-width: 400px;
  min-height: 0;
  height: fit-content;
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 22px 20px;
  position: relative;
  border-radius: 28px;
  background: var(--red);
  box-shadow: 0 16px 34px rgba(28, 22, 42, 0.16);
  opacity: 0;
  transform: translateY(24px) scale(0.92);
}

.service-card h3 {
  color: var(--white);
  font-size: clamp(22px, 1.28vw, 27px);
  font-weight: 800;
  line-height: 1.06;
  text-align: center;
  text-wrap: balance;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.service-card p {
  max-width: 308px;
  margin: 18px auto 0;
  color: rgba(255, 255, 255, 0.98);
  font-size: clamp(14px, 0.9vw, 16px);
  line-height: 1.18;
  text-align: center;
  text-wrap: balance;
  min-height: 0;
}

.contact-shell {
  min-height: calc(100vh - 140px);
  min-height: calc(100svh - 140px);
}

.contact-quote-block {
  width: min(100%, 1380px);
  margin-top: clamp(34px, 5vh, 54px);
}

.contact-quote {
  opacity: 0;
  color: var(--white);
  font-family: "Poppins", "Montserrat", sans-serif;
  font-size: clamp(24px, 2.2vw, 42px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.14;
  text-align: center;
  text-wrap: balance;
}

.contact-balance {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(22px, 2.4vw, 44px);
  margin-top: clamp(38px, 5vh, 62px);
  color: var(--white);
  font-size: clamp(20px, 1.16vw, 25px);
  font-weight: 500;
  opacity: 0;
}

.contact-balance span {
  display: inline-block;
  transform-origin: center;
}

.balance-minus {
  color: rgba(231, 232, 232, 0.52);
}

.contact-rails {
  display: grid;
  gap: 22px;
  width: min(100%, 340px);
  margin-top: clamp(30px, 4vh, 46px);
  justify-items: center;
}

.contact-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 340px);
  min-height: 68px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(28, 22, 42, 0.16);
  font-size: clamp(20px, 1.16vw, 25px);
  font-weight: 500;
  opacity: 0;
}

.contact-pill-core {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: auto;
}

.contact-pill-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  text-decoration: none;
}

.contact-pill-label {
  min-width: 0;
  line-height: 1.02;
  text-align: center;
  white-space: nowrap;
}

.contact-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
  flex: 0 0 auto;
  transform-origin: center;
  transform: scale(1.6);
}

@media (max-width: 1180px) {
  .site-header {
    padding: clamp(14px, 2vw, 22px) clamp(14px, 2.5vw, 28px) 0;
  }

  .header-shell {
    justify-content: space-between;
    gap: clamp(12px, 2vw, 22px);
  }

  .brand {
    width: clamp(150px, 22vw, 210px);
    height: clamp(30px, 4.8vw, 44px);
    transform: none;
  }

  .nav-track {
    flex: 0 0 auto;
    width: min(680px, calc(100vw - clamp(150px, 22vw, 210px) - 56px));
    max-width: none;
    min-height: clamp(42px, 5vw, 58px);
  }

  .nav-link {
    min-height: clamp(36px, 4.6vw, 52px);
    font-size: clamp(13px, 1.9vw, 18px);
  }

  .home-shell {
    min-height: calc(100svh - 110px);
    padding-bottom: 0;
  }

  .home-copy {
    padding-top: clamp(116px, 17vh, 170px);
  }

  .home-graphic {
    top: 0;
    bottom: 0;
    left: calc(50% - 50vw);
    width: max(100vw, 1180px);
    height: auto;
    min-height: 0;
    transform: none;
  }

  .services-grid {
    width: min(calc(100vw - 48px), 860px);
    grid-template-columns: repeat(2, minmax(280px, 380px));
    gap: 24px 34px;
  }

  .service-card {
    max-width: 380px;
    padding: 18px 20px 20px;
  }

  .service-card h3 {
    font-size: clamp(22px, 2.3vw, 25px);
  }

  .service-card p {
    font-size: clamp(14px, 1.6vw, 16px);
  }

  .contact-quote-block {
    width: min(100%, 1040px);
  }

  .contact-quote {
    font-size: clamp(24px, 3.1vw, 36px);
  }
}

@media (min-width: 841px) and (max-width: 1180px) {
  .header-shell {
    justify-content: center;
  }

  .brand {
    position: absolute;
    top: 50%;
    left: 0;
    width: clamp(142px, 17vw, 188px);
    height: clamp(28px, 3.9vw, 38px);
    transform: translateY(-50%);
  }

  .nav-track {
    width: min(660px, 60vw);
  }

  .home-shell {
    min-height: calc(100svh - 92px);
    padding-bottom: 0;
  }

  .home-graphic {
    top: -8px;
    bottom: -18px;
    left: calc(50% - 50vw);
    width: max(100vw, 1180px);
    height: auto;
    transform: none;
  }

  .expansion-map {
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    bottom: 0;
  }

  .expansion-path {
    stroke-width: clamp(30px, 3.8vw, 42px);
  }

  .expansion-path-soft {
    stroke-width: clamp(12px, 1.55vw, 17px);
  }
}

@media (min-width: 841px) and (max-width: 1180px) and (max-height: 760px) {
  .home-shell {
    min-height: calc(100svh - 76px);
    padding-bottom: 0;
  }

  .home-graphic {
    top: -4px;
    bottom: -24px;
    left: calc(50% - 50vw);
    width: max(100vw, 1180px);
    height: auto;
    transform: none;
  }

  .expansion-map {
    top: 0;
    height: 100%;
    bottom: 0;
  }

  .expansion-path {
    stroke-width: clamp(28px, 3.4vw, 38px);
  }

  .expansion-path-soft {
    stroke-width: clamp(11px, 1.35vw, 15px);
  }
}

@media (max-width: 840px) {
  .site-header {
    padding: 12px 12px 0;
  }

  .header-shell {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .brand {
    align-self: center;
    width: clamp(150px, 48vw, 190px);
    height: clamp(30px, 9vw, 38px);
  }

  .nav-track {
    width: 100%;
    min-height: 42px;
  }

  .nav-link {
    min-height: 36px;
    font-size: clamp(11px, 3.1vw, 13px);
  }

  .section {
    padding: 118px 16px 44px;
  }

  .section-services,
  .section-contact {
    padding-top: 126px;
  }

  .home-shell {
    min-height: calc(100svh - 82px);
    padding-bottom: 0;
  }

  .home-copy {
    padding-top: clamp(70px, 10vh, 100px);
  }

  .home-copy h1 {
    font-size: clamp(34px, 9vw, 42px);
  }

  .lead {
    max-width: 100%;
    margin-top: 20px;
    font-size: clamp(16px, 4.3vw, 18px);
    line-height: 1.34;
  }

  .home-graphic {
    top: 0;
    bottom: auto;
    left: calc(50% - 50vw);
    width: max(100vw, 1180px);
    height: clamp(560px, 72svh, 720px);
    transform: none;
    opacity: 0.92;
    clip-path: none;
  }

  .expansion-path {
    stroke-width: 18;
  }

  .expansion-path-soft {
    stroke-width: 8;
  }

  .services-grid {
    width: min(calc(100vw - 32px), 430px);
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-card {
    max-width: none;
    min-height: 0;
    padding: 17px 18px 18px;
    border-radius: 24px;
  }

  .service-card h3 {
    font-size: clamp(20px, 5.6vw, 23px);
  }

  .service-card p {
    max-width: 320px;
    margin-top: 13px;
    font-size: clamp(14px, 4vw, 16px);
    line-height: 1.14;
  }

  .services-stage {
    margin-top: 24px;
    padding: 8px 0 0;
  }

  .services-route-desktop {
    display: none;
  }

  .services-route-mobile {
    display: block;
    stroke-width: 28;
    opacity: 0;
  }

  .contact-quote {
    font-size: clamp(18px, 4.4vw, 22px);
    line-height: 1.18;
  }

  .contact-balance {
    gap: 14px;
    margin-top: 30px;
    font-size: clamp(18px, 5.2vw, 22px);
  }

  .contact-rails {
    gap: 16px;
    width: min(100%, 320px);
    margin-top: 28px;
  }

  .contact-pill {
    width: min(100%, 320px);
    min-height: 58px;
    padding: 9px 12px;
    font-size: clamp(15px, 4.2vw, 18px);
  }

  .contact-pill-core {
    gap: 10px;
  }

  .contact-icon {
    width: 30px;
    height: 30px;
    transform: scale(1.28);
  }

  .contact-pill-label {
    white-space: normal;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding-top: 10px;
  }

  .brand {
    width: clamp(140px, 52vw, 172px);
    height: clamp(28px, 10vw, 34px);
  }

  .nav-track {
    padding: 2px;
  }

  .nav-indicator {
    top: 2px;
    bottom: 2px;
    left: 2px;
  }

  .section {
    padding-top: 112px;
    padding-inline: 14px;
  }

  .section-services,
  .section-contact {
    padding-top: 118px;
  }

  .section-title {
    font-size: clamp(30px, 9vw, 38px);
  }

  .home-copy h1 {
    font-size: clamp(31px, 9.6vw, 38px);
  }

  .lead {
    font-size: clamp(15px, 4.3vw, 17px);
  }

  .home-graphic {
    height: clamp(430px, 52svh, 470px);
    top: 0;
    bottom: auto;
    width: max(100vw, 700px);
    clip-path: none;
  }

  .expansion-path {
    stroke-width: 14;
  }

  .expansion-path-soft {
    stroke-width: 7;
  }

  .services-grid {
    width: min(calc(100vw - 28px), 360px);
  }

  .service-card {
    padding: 16px 14px 17px;
    border-radius: 22px;
  }

  .service-card p {
    max-width: 292px;
  }

  .contact-quote-block {
    margin-top: 28px;
  }

  .contact-balance {
    gap: 10px;
  }

  .contact-rails,
  .contact-pill {
    width: min(100%, 292px);
  }

  .contact-pill-core {
    gap: 8px;
  }

  .contact-icon {
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 380px) {
  .nav-link {
    font-size: 10.5px;
  }

  .contact-pill {
    width: min(100%, 270px);
    font-size: 14px;
  }

  .contact-icon {
    width: 24px;
    height: 24px;
  }
}

@media (min-width: 841px) and (max-height: 760px) {
  .site-header {
    padding-top: 12px;
  }

  .section {
    padding-top: 94px;
    padding-bottom: 30px;
  }

  .section-services {
    padding-top: 114px;
  }

  .home-copy {
    padding-top: clamp(112px, 16vh, 150px);
  }

  .services-stage {
    margin-top: 24px;
  }

  .services-grid {
    gap: 22px 42px;
  }

  .service-card {
    padding-top: 16px;
    padding-bottom: 18px;
  }

  .contact-quote-block {
    margin-top: 28px;
  }

  .contact-balance {
    margin-top: 28px;
  }

  .contact-rails {
    gap: 16px;
    margin-top: 24px;
  }

  .contact-pill {
    min-height: 58px;
  }
}
