@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Manrope:wght@500;600;700;800&display=swap');

@font-face {
  font-family: "Monolog";
  src: url("../fonts/Monolog/Monolog-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Monolog";
  src: url("../fonts/Monolog/Monolog-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Monolog";
  src: url("../fonts/Monolog/Monolog-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
:root {
  --cyan: #00a8e8;
  --magenta: #ec168c;
  --yellow: #ffd400;
  --ink: #080b10;
  --surface: #10151d;
  --line: rgba(255, 255, 255, .12);
  --muted: #aab3c2;
  --paper: #f4f6f8;
  --white: #fff;
  --max: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: "DM Sans", sans-serif;
  overflow-x: hidden;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

img,
video {
  max-width: 100%;
}

::selection {
  background: var(--yellow);
  color: var(--ink);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(20px, 4vw, 64px);
  transition: .35s ease;
}

.site-header.scrolled {
  padding-top: 14px;
  padding-bottom: 14px;
  background: rgba(8, 11, 16, .86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

/* .brand { display: inline-flex; align-items: center; gap: 12px; font: 800 19px/1 "Manrope"; letter-spacing: .12em; } */
.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  display: block;
  width: auto;
  height: 68px;
  object-fit: contain;
}

.brand-mark {
  display: grid;
  grid-template-columns: repeat(2, 9px);
  gap: 2px;
  transform: rotate(45deg);
}

.brand-mark i {
  width: 9px;
  height: 9px;
  display: block;
}

.brand-mark .c {
  background: var(--cyan);
}

.brand-mark .m {
  background: var(--magenta);
}

.brand-mark .y {
  background: var(--yellow);
}

.brand-mark .k {
  background: #fff;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
}

.main-nav a {
  color: #dce2ea;
  transition: color .2s;
}

.main-nav a:hover {
  color: #fff;
}

.nav-cta {
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 999px;
  padding: 11px 18px;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  width: 42px;
  height: 42px;
  position: relative;
}

.menu-toggle span {
  position: absolute;
  left: 9px;
  width: 24px;
  height: 2px;
  background: #fff;
}

.menu-toggle span:first-child {
  top: 16px;
}

.menu-toggle span:last-child {
  top: 24px;
}

.hero {
  min-height: 100svh;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 150px clamp(20px, 6vw, 92px) 82px;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.7) contrast(1.1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 8, 12, .94) 0%, rgba(5, 8, 12, .64) 48%, rgba(5, 8, 12, .24) 100%), linear-gradient(0deg, rgba(5, 8, 12, .9), transparent 48%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: .13;
  background-image: linear-gradient(rgba(255, 255, 255, .2) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .2) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, transparent, #000);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1050px;
}

.eyebrow {
  margin: 0 0 20px;
  color: #c9d1dc;
  font-size: 12px;
  letter-spacing: .2em;
  font-weight: 600;
}

.hero-title {
  margin: 0;
  font: 700 clamp(48px, 8vw, 118px)/.92 "Manrope";
  letter-spacing: -.065em;
}

.hero-title span {
  display: block;
}

.gradient-text {
  color: transparent;
  background: linear-gradient(90deg, var(--cyan), #fff 40%, var(--magenta) 72%, var(--yellow));
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-copy {
  max-width: 680px;
  color: #ced4de;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.55;
  margin: 30px 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
  transition: .2s ease;
}

.button-primary {
  background: #fff;
  color: var(--ink);
}

.button-primary:hover {
  background: var(--yellow);
  transform: translateY(-2px);
}

.button-ghost {
  border-color: rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(10px);
}

.button-ghost:hover {
  background: rgba(255, 255, 255, .12);
}

.hero-side-label {
  position: absolute;
  right: 26px;
  top: 50%;
  writing-mode: vertical-rl;
  font-size: 10px;
  letter-spacing: .3em;
  color: #aeb7c4;
  z-index: 2;
}

.scroll-hint {
  position: absolute;
  right: clamp(20px, 6vw, 92px);
  bottom: 42px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #c6ced8;
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.scroll-hint span {
  width: 46px;
  height: 1px;
  background: #fff;
  transform-origin: left;
  animation: scan 1.8s infinite;
}

@keyframes scan {
  0% {
    transform: scaleX(.2)
  }

  50% {
    transform: scaleX(1)
  }

  100% {
    transform: scaleX(.2)
  }
}

.section {
  max-width: var(--max);
  margin: auto;
  padding: 130px clamp(20px, 4vw, 64px);
}

.section-label {
  color: #8490a0;
  font-size: 11px;
  letter-spacing: .22em;
  margin-bottom: 26px;
}

.intro {
  background: var(--ink);
}

.intro-layout {
  display: grid;
  grid-template-columns: 1.75fr .85fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: end;
}

.display-title {
  margin: 0;
  font: 700 clamp(38px, 5.5vw, 78px)/1.02 "Manrope";
  letter-spacing: -.055em;
}

.intro-copy {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 100px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  padding: 35px 18px;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat strong,
.stat span {
  font: 700 clamp(36px, 4vw, 58px)/1 "Manrope";
}

.stat span {
  color: var(--yellow);
}

.stat p {
  color: var(--muted);
  margin-bottom: 0;
}

.services {
  max-width: none;
  background: var(--paper);
  color: var(--ink);
  padding-left: max(clamp(20px, 4vw, 64px), calc((100vw - var(--max))/2 + 64px));
  padding-right: max(clamp(20px, 4vw, 64px), calc((100vw - var(--max))/2 + 64px));
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 360px;
  align-items: end;
  gap: 40px;
  max-width: var(--max);
  margin: auto;
}

.section-summary {
  color: #586270;
  font-size: 18px;
  line-height: 1.6;
}

.service-grid {
  max-width: var(--max);
  margin: 70px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #ced3da;
  border: 1px solid #ced3da;
}

.service-card {
  position: relative;
  min-height: 320px;
  padding: 32px;
  background: var(--paper);
  overflow: hidden;
  transition: .35s ease;
}

.service-card:hover {
  background: #fff;
  transform: translateY(-8px);
  z-index: 2;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .12);
}

.service-card.featured {
  background: #111722;
  color: #fff;
}

.service-number {
  color: #7d8794;
  font-size: 11px;
}

.service-icon {
  margin: 38px 0 28px;
  font-size: 32px;
}

.cyan {
  color: var(--cyan)
}

.magenta {
  color: var(--magenta)
}

.yellow {
  color: var(--yellow)
}

.service-card h3 {
  font: 700 24px/1.2 "Manrope";
  margin: 0 0 16px;
}

.service-card p {
  color: #65707e;
  line-height: 1.55;
  margin: 0;
}

.service-card.featured p {
  color: #b8c0cc;
}

.card-line {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta), var(--yellow));
  transform: scaleX(.18);
  transform-origin: left;
  transition: .35s;
}

.service-card:hover .card-line {
  transform: scaleX(1);
}

.process-section {
  height: 420vh;
  background: #0b0f15;
}

.process-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.process-intro {
  min-width: 42vw;
  padding-left: clamp(20px, 6vw, 92px);
}

.process-intro h2 {
  font: 700 clamp(48px, 6vw, 90px)/.95 "Manrope";
  letter-spacing: -.06em;
  margin: 0 0 22px;
}

.process-intro p {
  color: var(--muted);
}

.process-track {
  display: flex;
  gap: 24px;
  padding-right: 10vw;
}

.process-card {
  width: min(390px, 78vw);
  height: 520px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: radial-gradient(circle at 75% 20%, rgba(0, 168, 232, .2), transparent 30%), linear-gradient(145deg, #171e29, #0c1017);
}

.process-card:nth-child(2n) {
  background: radial-gradient(circle at 75% 20%, rgba(236, 22, 140, .2), transparent 30%), linear-gradient(145deg, #171e29, #0c1017);
}

.process-card:nth-child(3n) {
  background: radial-gradient(circle at 75% 20%, rgba(255, 212, 0, .18), transparent 30%), linear-gradient(145deg, #171e29, #0c1017);
}

.process-card span {
  color: #8390a0;
  margin-bottom: auto;
}

.process-card h3 {
  font: 700 38px/1 "Manrope";
  margin: 0 0 18px;
}

.process-card p {
  color: var(--muted);
  line-height: 1.6;
}

.technology {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(50px, 8vw, 120px);
  align-items: center;
}

.tech-visual {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(circle, rgba(255, 255, 255, .08), transparent 55%);
}

.tech-visual span {
  font: 600 13px/1.4 "Manrope";
  text-align: center;
  letter-spacing: .18em;
  z-index: 2;
}

.tech-ring {
  position: absolute;
  width: 65%;
  height: 65%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, .3);
  animation: rotate 20s linear infinite;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(7px);
}

.orb-1 {
  width: 38%;
  height: 38%;
  background: rgba(0, 168, 232, .38);
  left: 12%;
  top: 17%;
}

.orb-2 {
  width: 30%;
  height: 30%;
  background: rgba(236, 22, 140, .35);
  right: 12%;
  bottom: 18%;
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

.tech-copy>p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.tech-list {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  border-top: 1px solid var(--line);
}

.tech-list li {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
}

.tech-list span {
  color: #7d8999;
  display: inline-block;
  width: 48px;
  font-size: 11px;
}

.clients {
  background: #fff;
  color: var(--ink);
  padding: 0 0 110px;
  overflow: hidden;
}

.clients-heading {
  margin: 0 auto;
}

.logo-marquee {
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  overflow: hidden;
}

.logo-track {
  width: max-content;
  display: flex;
  animation: marquee 28s linear infinite;
}

.logo-track span {
  width: 240px;
  height: 150px;
  display: grid;
  place-items: center;
  border-right: 1px solid #ddd;
  color: #68717c;
  font: 700 17px "Manrope";
  letter-spacing: .08em;
}

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

.client-note {
  text-align: center;
  color: #78818c;
  margin: 26px 20px 0;
  font-size: 13px;
}

.contact {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(50px, 8vw, 120px);
}

.contact-copy>p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.contact-email {
  display: inline-block;
  margin-top: 25px;
  font-size: 18px;
  border-bottom: 1px solid #fff;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.field-full {
  grid-column: 1/-1;
}

.field label {
  color: #9da7b5;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  color: #fff;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #3a424e;
  padding: 12px 0;
  outline: none;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--cyan);
}

.field select option {
  color: #111;
}

.site-footer {
  max-width: var(--max);
  margin: auto;
  padding: 35px clamp(20px, 4vw, 64px);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #9fa8b6;
  font-size: 13px;
}

.whatsapp {
  /*font-family: "Monolog", "DM Sans", sans-serif;*/
  position: fixed;
  z-index: 90;
  right: 22px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #07180e;
  padding: 10px 16px 10px 10px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .28);
}

.whatsapp-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  font-size: 20px;
}

.whatsapp-pulse {
  position: absolute;
  inset: 0;
  border: 2px solid #25d366;
  border-radius: 999px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  to {
    transform: scale(1.22);
    opacity: 0;
  }
}

.cursor-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(0, 168, 232, .06);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
}

@media (max-width:900px) {
  .main-nav {
    position: fixed;
    inset: 0;
    background: #080b10;
    flex-direction: column;
    justify-content: center;
    font: 700 30px "Manrope";
    transform: translateY(-100%);
    transition: .45s ease;
  }

  .main-nav.open {
    transform: translateY(0);
  }

  .menu-toggle {
    display: block;
    z-index: 2;
  }

  .intro-layout,
  .section-heading,
  .technology,
  .contact {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .stat:nth-child(2) {
    border-right: 0;
  }

  .service-grid {
    grid-template-columns: 1fr 1fr;
  }

  .process-intro {
    min-width: 65vw;
  }
}

@media (max-width:600px) {
  .hero {
    padding-bottom: 100px;
  }

  .hero-side-label,
  .scroll-hint {
    display: none;
  }

  .section {
    padding-top: 90px;
    padding-bottom: 90px;
  }

  .service-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .process-intro {
    min-width: 88vw;
  }

  .process-card {
    height: 62vh;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .field-full {
    grid-column: auto;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
  }

  .whatsapp-label {
    display: none;
  }

  .whatsapp {
    padding: 8px;
  }
}

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

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


/* ===== HEADER Y NAVEGACIÓN ANIMADOS ===== */
.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 250;
  width: 100%;
  height: 3px;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--cyan), var(--magenta) 52%, var(--yellow));
  box-shadow: 0 0 16px rgba(0, 168, 232, .35)
}

.site-header {
  isolation: isolate
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: linear-gradient(90deg, rgba(0, 168, 232, .08), transparent 28%), rgba(8, 11, 16, .86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: opacity .35s ease, border-color .35s ease
}

.site-header.scrolled {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .18)
}

.site-header.scrolled::before {
  opacity: 1;
  border-bottom-color: var(--line)
}

.brand {
  position: relative;
  transform-origin: left center;
  will-change: transform, opacity
}

.brand::after {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: -7px;
  height: 2px;
  border-radius: 999px;
  opacity: 0;
  transform: scaleX(.2);
  background: linear-gradient(90deg, var(--cyan), var(--magenta), var(--yellow));
  transition: transform .35s ease, opacity .35s ease
}

.brand:hover::after {
  opacity: 1;
  transform: scaleX(1)
}

.brand-logo {
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .22));
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), filter .35s ease, height .35s ease;
  will-change: transform
}

.brand:hover .brand-logo {
  transform: translateY(-2px) scale(1.035);
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .3)) drop-shadow(0 0 12px rgba(0, 168, 232, .14))
}

.site-header.scrolled .brand-logo {
  height: 54px
}

.main-nav .nav-link {
  font-family: "Monolog", "DM Sans", sans-serif;
    letter-spacing: 0.04em;
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 2px;
  overflow: hidden;
  transition: color .25s ease, transform .25s ease
  
}

.main-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 3px;
  height: 2px;
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: right center;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  transition: transform .32s cubic-bezier(.2, .8, .2, 1)
}

.main-nav .nav-link:hover {
  color: #fff;
  transform: translateY(-2px)
}

.main-nav .nav-link:hover::after,
.main-nav .nav-link.is-active::after {
  transform: scaleX(1);
  transform-origin: left center
}

.main-nav .nav-link.is-active {
  color: #fff
}

.nav-cta {
  font-family: "Monolog", "DM Sans", sans-serif;
    font-weight: 500;
  overflow: visible !important;
  isolation: isolate;
  transition: color .3s ease, border-color .3s ease, transform .3s ease, box-shadow .3s ease !important
}

.nav-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  transform: scale(.75);
  opacity: 0;
  background: linear-gradient(110deg, var(--cyan), var(--magenta), var(--yellow));
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .35s ease
}

.nav-cta::after {
  display: none
}

.nav-cta:hover,
.nav-cta.is-active {
  color: var(--ink) !important;
  border-color: transparent;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .25)
}

.nav-cta:hover::before,
.nav-cta.is-active::before {
  transform: scale(1);
  opacity: 1
}

.gradient-text {
  background-size: 180% 100%;
  animation: titleGradient 7s ease-in-out infinite alternate
}

@keyframes titleGradient {
  from {
    background-position: 0 50%
  }

  to {
    background-position: 100% 50%
  }
}

.hero-side-label {
  transition: letter-spacing .4s ease, color .4s ease
}

.hero:hover .hero-side-label {
  letter-spacing: .38em;
  color: #fff
}

@media(max-width:900px) {
  .main-nav .nav-link {
    min-height: 52px
  }

  .main-nav .nav-link::after {
    bottom: 0
  }

  .site-header.scrolled .brand-logo {
    height: 48px
  }
}

@media(max-width:600px) {
  .brand-logo {
    height: 52px
  }

  .site-header.scrolled .brand-logo {
    height: 42px
  }
}

@media(prefers-reduced-motion:reduce) {
  .gradient-text {
    animation: none
  }
}

/* =========================================================
   CARRUSEL DE TEXTOS DEL HERO
   ========================================================= */

.hero-content {
  width: min(1050px, 100%);
}

.hero-slide {
  display: none;
  width: 100%;
}

.hero-slide.is-active {
  display: block;
}

.hero-slide .hero-title {
  min-height: 2.05em;
}

.hero-slide .hero-copy {
  min-height: 3.2em;
}

.hero-carousel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 8px;
}

.hero-carousel-controls {
  display: flex;
  align-items: center;
  gap: 9px;
  position: relative;
  z-index: 3;
}

.hero-dot {
  position: relative;
  width: 28px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.28);
  transition:
    width 0.35s ease,
    background 0.35s ease,
    transform 0.25s ease;
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.hero-dot.is-active {
  width: 54px;
  background: rgba(255, 255, 255, 0.32);
}

.hero-dot.is-active::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transform-origin: left center;
  background: linear-gradient(90deg,
      var(--cyan),
      var(--magenta),
      var(--yellow));
  animation: heroDotProgress 6s linear forwards;
}

@keyframes heroDotProgress {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@media (max-width: 900px) {
  .hero-carousel-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
  }

  .hero-slide .hero-title,
  .hero-slide .hero-copy {
    min-height: auto;
  }
}

@media (max-width: 600px) {
  .hero-carousel-controls {
    width: 100%;
  }

  .hero-dot {
    flex: 1;
    width: auto;
  }

  .hero-dot.is-active {
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-dot.is-active::after {
    animation: none;
    transform: scaleX(1);
  }
}

/* ===== CARRUSEL DE TEXTOS — SERVICIOS ===== */
.services-heading-carousel {
  min-height: 235px
}

.services-heading-slides,
.services-summary-slides {
  position: relative
}

.services-heading-slide,
.services-summary-slide {
  display: none
}

.services-heading-slide.is-active,
.services-summary-slide.is-active {
  display: block
}

.services-heading-slide .display-title {
  max-width: 780px
}

.services-heading-side {
  align-self: end
}

.services-heading-controls {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 28px
}

.services-heading-dot {
  position: relative;
  width: 30px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(8, 11, 16, .16);
  transition: width .35s ease, transform .25s ease
}

.services-heading-dot:hover {
  transform: translateY(-2px)
}

.services-heading-dot.is-active {
  width: 58px
}

.services-heading-dot.is-active::after {
  content: "";
  position: absolute;
  inset: 0;
  transform-origin: left center;
  background: linear-gradient(90deg, var(--cyan), var(--magenta), var(--yellow));
  animation: servicesHeadingProgress 7s linear forwards
}

@keyframes servicesHeadingProgress {
  from {
    transform: scaleX(0)
  }

  to {
    transform: scaleX(1)
  }
}

/* ===== CARRUSELES DE IMÁGENES — TARJETAS ===== */
.service-grid {
  align-items: stretch
}

.service-card {
  min-height: 520px;
  padding: 0;
  display: flex;
  flex-direction: column
}

.service-media {
  position: relative;
  height: 215px;
  overflow: hidden;
  background: #111722
}

.service-media-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  pointer-events: none;
  transition: opacity .7s ease, transform 5s ease
}

.service-media-image.is-active {
  opacity: 1;
  transform: scale(1)
}

.service-media-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 11, 16, .1), rgba(8, 11, 16, .58)), linear-gradient(90deg, rgba(8, 11, 16, .22), transparent 60%)
}

.service-media .service-number {
  position: absolute;
  z-index: 3;
  top: 22px;
  left: 24px;
  color: rgba(255, 255, 255, .82)
}

.service-media-dots {
  position: absolute;
  z-index: 4;
  left: 24px;
  right: 24px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 7px
}

.service-media-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255, 255, 255, .45);
  transition: width .3s ease, border-radius .3s ease, background .3s ease
}

.service-media-dot.is-active {
  width: 26px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta), var(--yellow))
}

.service-card-content {
  position: relative;
  flex: 1;
  padding: 28px 32px 42px;
  background: var(--paper)
}

.service-card.featured .service-card-content {
  background: #111722;
  color: #fff
}

.service-card-content .service-icon {
  margin: 0 0 22px
}

.service-card-content .card-line {
  left: 32px;
  right: 32px;
  bottom: 24px
}

.service-card:hover .service-media-image.is-active {
  transform: scale(1.045)
}

@media(max-width:900px) {
  .services-heading-carousel {
    min-height: 0
  }

  .services-heading-side {
    align-self: auto
  }

  .service-card {
    min-height: 500px
  }
}

@media(max-width:600px) {
  .services-heading-controls {
    width: 100%
  }

  .services-heading-dot {
    flex: 1;
    width: auto
  }

  .services-heading-dot.is-active {
    width: auto
  }

  .service-media {
    height: 230px
  }
}

@media(prefers-reduced-motion:reduce) {
  .services-heading-dot.is-active::after {
    animation: none;
    transform: scaleX(1)
  }

  .service-media-image {
    transition: none
  }
}

/* =========================================================
   CURSOR PERSONALIZADO PRINFLEX
   ========================================================= */

@media (pointer: fine) {

  /* body,
  a,
  button,
  input,
  textarea,
  select,
  .service-card,
  .hero-dot,
  .service-media-dot {
    cursor: none;
  } */
  body {
    cursor: default;
  }

  a,
  button,
  select,
  .service-card,
  .hero-dot,
  .service-media-dot {
    cursor: pointer;
  }

  input,
  textarea {
    cursor: text;
  }

  /* .custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 46px;
    height: 46px;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -50%);
    will-change: transform;
  } */

  /* .custom-cursor img {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    width: 28px;
    height: 28px;
    object-fit: contain;
    transform: translate(-50%, -50%);
    filter:
      drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35)) drop-shadow(0 0 8px rgba(0, 168, 232, 0.25));
    transition:
      width 0.3s ease,
      height 0.3s ease,
      transform 0.3s ease,
      filter 0.3s ease;
  } */

  /* .custom-cursor-ring {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    transform: scale(0.75);
    transition:
      transform 0.35s cubic-bezier(.2, .8, .2, 1),
      border-color 0.35s ease,
      background 0.35s ease,
      opacity 0.35s ease;
  } */

  /* Efecto al pasar sobre elementos interactivos */
  /* .custom-cursor.is-hovering .custom-cursor-ring {
    transform: scale(1.55);
    border-color: transparent;
    background: rgba(0, 168, 232, 0.12);
    box-shadow:
      0 0 18px rgba(0, 168, 232, 0.18),
      0 0 35px rgba(236, 22, 140, 0.12);
  } */

  /* .custom-cursor.is-hovering img {
    width: 34px;
    height: 34px;
    transform:
      translate(-50%, -50%) rotate(8deg) scale(1.08);
  } */

  /* Efecto al hacer clic */
  /* .custom-cursor.is-clicking .custom-cursor-ring {
    transform: scale(0.65);
    background: rgba(255, 212, 0, 0.25);
  } */

  /* .custom-cursor.is-clicking img {
    transform:
      translate(-50%, -50%) scale(0.8);
  } */

  /* Cursor sobre elementos oscuros destacados */
  /* .custom-cursor.is-featured .custom-cursor-ring {
    border-color: var(--yellow);
    background: rgba(255, 212, 0, 0.08);
  } */

  /* =========================================================
     IMAGEN QUE SIGUE AL CURSOR CON EFECTO DE ARRASTRE
     ========================================================= */

  @media (pointer: fine) {

    .custom-cursor {
      position: fixed;
      top: 0;
      left: 0;
      z-index: 9999;

      width: 46px;
      height: 46px;

      pointer-events: none;
      opacity: 0;

      transform: translate(-50%, -50%);
      will-change: transform;

      mix-blend-mode: normal;
    }

    .custom-cursor img {
      position: absolute;
      top: 50%;
      left: 50%;

      width: 30px;
      height: 30px;

      object-fit: contain;

      transform: translate(-50%, -50%);

      filter:
        drop-shadow(0 4px 7px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 8px rgba(0, 168, 232, 0.3));

      transition:
        width 0.3s ease,
        height 0.3s ease,
        filter 0.3s ease;
    }

    .custom-cursor-ring {
      position: absolute;
      inset: 0;

      border: 1px solid rgba(0, 168, 232, 0.55);
      border-radius: 50%;

      transform: scale(0.75);

      transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease;
    }

    .custom-cursor.is-hovering .custom-cursor-ring {
      transform: scale(1.45);

      border-color: var(--magenta);
      background: rgba(236, 22, 140, 0.08);
    }

    .custom-cursor.is-hovering img {
      width: 35px;
      height: 35px;

      filter:
        drop-shadow(0 5px 10px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 12px rgba(236, 22, 140, 0.35));
    }

    .custom-cursor.is-clicking {
      transform-origin: center;
    }

    .custom-cursor.is-clicking .custom-cursor-ring {
      transform: scale(0.55);
      background: rgba(255, 212, 0, 0.22);
      border-color: var(--yellow);
    }

    .custom-cursor.is-clicking img {
      width: 24px;
      height: 24px;
    }
  }

  @media (pointer: coarse) {
    .custom-cursor {
      display: none;
    }
  }
}

/* En celulares y tablets táctiles se usa el comportamiento normal */
@media (pointer: coarse) {
  .custom-cursor {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .custom-cursor {
    display: none;
  }

  body,
  a,
  button,
  input,
  textarea,
  select {
    cursor: auto;
  }

}

/* ===== CARRUSEL QUIÉNES SOMOS ===== */
.intro-carousel {
  position: relative
}

.intro-carousel-slides {
  position: relative;
  min-height: 430px
}

.intro-carousel-slide {
  display: none;
  width: 100%
}

.intro-carousel-slide.is-active {
  display: block
}

.intro-carousel-slide .intro-layout {
  min-height: 330px
}

.intro-carousel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 34px;
  margin-top: 20px;
  border-top: 1px solid var(--line)
}

.intro-carousel-counter {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #7f8a99;
  font-size: 11px;
  letter-spacing: .18em
}

.intro-carousel-counter #aboutCurrent {
  color: #fff
}

.intro-counter-line {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta), var(--yellow))
}

.intro-carousel-controls {
  display: flex;
  align-items: center;
  gap: 18px
}

.intro-dots {
  display: flex;
  align-items: center;
  gap: 8px
}

.intro-dot {
  position: relative;
  width: 28px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(255, 255, 255, .18);
  transition: width .35s ease, background .35s ease, transform .25s ease
}

.intro-dot:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .42)
}

.intro-dot.is-active {
  width: 54px
}

.intro-dot.is-active::after {
  content: "";
  position: absolute;
  inset: 0;
  transform-origin: left center;
  background: linear-gradient(90deg, var(--cyan), var(--magenta), var(--yellow));
  animation: aboutDotProgress 8s linear forwards
}

@keyframes aboutDotProgress {
  from {
    transform: scaleX(0)
  }

  to {
    transform: scaleX(1)
  }
}

.intro-arrow {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  color: #fff;
  background: transparent;
  cursor: pointer;
  transition: color .3s ease, background .3s ease, border-color .3s ease, transform .3s ease
}

.intro-arrow:hover {
  color: var(--ink);
  border-color: transparent;
  background: var(--yellow);
  transform: scale(1.08)
}

@media(max-width:900px) {
  .intro-carousel-slides {
    min-height: 600px
  }

  .intro-carousel-slide .intro-layout {
    min-height: 510px
  }
}

@media(max-width:600px) {
  .intro-carousel-slides {
    min-height: 690px
  }

  .intro-carousel-slide .intro-layout {
    min-height: 590px
  }

  .intro-carousel-footer {
    align-items: flex-start;
    flex-direction: column
  }

  .intro-carousel-controls {
    width: 100%;
    justify-content: space-between
  }

  .intro-dots {
    flex: 1
  }

  .intro-dot {
    flex: 1;
    width: auto
  }

  .intro-dot.is-active {
    width: auto
  }
}

@media(prefers-reduced-motion:reduce) {
  .intro-dot.is-active::after {
    animation: none;
    transform: scaleX(1)
  }
}

/*estilos para las banderas de chile & perulli*/
.hero-side-label {
  position: absolute;
  right: 24px;
  top: 50%;
  z-index: 2;

  display: flex;
  align-items: center;
  gap: 12px;

  writing-mode: vertical-rl;
  transform: translateY(-50%);

  color: #d7dde6;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
}

.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-location img {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;

  /* Compensa la orientación vertical del contenedor */
  transform: rotate(90deg);

  box-shadow:
    0 3px 10px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.18);
}

.hero-location-separator {
  color: var(--yellow);
  letter-spacing: 0;
}