/* Index y servicios: jerarquía orientada a conversión */

.page-index .hero-video-bg {
  opacity: .42;
  filter: saturate(.78) contrast(1.08);
}
.page-index .hero-overlay {
  background:
    linear-gradient(90deg, rgba(7,9,12,.94) 0%, rgba(7,9,12,.6) 48%, rgba(7,9,12,.3) 100%),
    linear-gradient(0deg, #07090c 0%, transparent 48%);
}
.page-index .hero-inner { max-width: 1360px; }
.page-index .hero-content { max-width: 790px; }
.page-index .hero-title {
  max-width: 760px;
  font-size: clamp(54px, 7.4vw, 96px);
  line-height: .88;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.page-index .hero-sub {
  max-width: 610px;
  color: rgba(255,255,255,.78);
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.55;
  text-wrap: pretty;
}
.page-index .hero-services-panel { width: 260px; }
.page-index .hsp-name { color: rgba(255,255,255,.72); }

.home-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 500px);
  gap: clamp(34px, 7vw, 100px);
  align-items: end;
  margin-bottom: clamp(38px, 6vw, 68px);
}
.home-section-head h2 {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: .96;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.home-section-head h2 span { color: var(--cyan); }
.home-section-head p {
  max-width: 54ch;
  margin: 0;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.65;
  text-wrap: pretty;
}
.home-section-head > a {
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  margin-top: -22px;
  color: inherit;
  font-size: 13px;
  font-weight: 800;
}
.home-section-head > a span { color: var(--cyan); transition: transform .25s cubic-bezier(.16,1,.3,1); }
.home-section-head > a:hover span { transform: translateX(5px); }

.home-latest-project {
  min-height: 420px;
  max-height: 640px;
  aspect-ratio: 21 / 8;
}
.home-latest-project .fp-banner-overlay {
  background:
    linear-gradient(90deg, rgba(7,9,12,.84) 0%, rgba(7,9,12,.18) 56%, rgba(7,9,12,.5) 100%),
    linear-gradient(0deg, rgba(7,9,12,.72), transparent 55%);
}
.home-latest-project .fp-banner-info { max-width: 1360px; margin-inline: auto; }
.home-latest-project .fp-banner-label { color: rgba(255,255,255,.72); }
.home-latest-project .fp-banner-project-type { color: rgba(255,255,255,.66); }

.home-work { padding-block: clamp(48px, 5vw, 72px); background: #f4f6f8; color: #080b0f; }
.home-work-head {
  display: grid;
  grid-template-columns: minmax(230px, .7fr) minmax(360px, 1fr) auto;
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
  margin-bottom: 30px;
}
.home-work-head h2 {
  max-width: 18ch;
  font-size: clamp(28px, 2.7vw, 38px);
  line-height: 1.02;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.home-work-head p { max-width: 52ch; color: #4c5662; font-size: 15px; line-height: 1.55; text-wrap: pretty; }
.home-work-head > a { display: inline-flex; align-items: center; gap: 10px; color: #080b0f; font-size: 13px; font-weight: 800; white-space: nowrap; }
.home-work-head > a span { color: #0089bf; transition: transform .25s cubic-bezier(.16,1,.3,1); }
.home-work-head > a:hover span { transform: translateX(4px); }
.home-work-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}
.home-work-case {
  grid-column: span 4;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
  min-width: 0;
  color: #080b0f;
}
.home-work-case:nth-child(1) { grid-column: span 5; }
.home-work-case:nth-child(2) { grid-column: span 4; }
.home-work-case:nth-child(3) { grid-column: span 3; }
.home-work-case.is-featured { grid-row: auto; }
.home-work-visual {
  display: block;
  overflow: hidden;
  height: clamp(210px, 18vw, 260px);
  aspect-ratio: auto;
  background: #dfe4e8;
}
.home-work-case.is-featured .home-work-visual { height: clamp(210px, 18vw, 260px); min-height: 0; aspect-ratio: auto; }
.home-work-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .65s cubic-bezier(.16,1,.3,1), filter .3s ease;
}
.home-work-case:hover .home-work-visual img { transform: scale(1.025); filter: saturate(1.06); }
.home-work-copy {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 14px;
  align-items: start;
  padding-top: 12px;
  border-top: 1px solid #bec6cd;
}
.home-work-copy strong { font-size: 14px; }
.home-work-copy > span { grid-column: 1 / -1; max-width: 42ch; color: #4c5662; font-size: 13px; line-height: 1.45; }
.home-work-copy i { color: #0089bf; font-style: normal; font-size: 18px; }

.ai-native-home {
  border: 0;
  background: #071017;
}
.ai-native-home::before,
.ai-native-home::after,
.ai-native-orbit { display: none; }
.ai-native-layout {
  grid-template-columns: minmax(300px, .82fr) minmax(430px, 1.18fr);
  gap: clamp(60px, 10vw, 150px);
  align-items: start;
}
.ai-native-copy { position: sticky; top: 130px; }
.ai-native-title {
  max-width: 650px;
  font-size: clamp(42px, 5.5vw, 76px);
  line-height: .96;
  letter-spacing: -.035em;
}
.ai-native-copy p { color: rgba(255,255,255,.7); }
.studio-process { margin: 0; padding: 0; list-style: none; }
.studio-process li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 22px;
  min-height: 146px;
  padding: 27px 0;
  border-top: 1px solid rgba(255,255,255,.16);
}
.studio-process li:last-child { border-bottom: 1px solid rgba(255,255,255,.16); }
.studio-process > li > span { padding-top: 5px; color: var(--cyan); font-size: 12px; font-weight: 800; }
.studio-process strong { display: block; margin-bottom: 8px; font-size: clamp(23px, 2.2vw, 32px); letter-spacing: -.02em; }
.studio-process p { max-width: 48ch; color: rgba(255,255,255,.64); font-size: 15px; line-height: 1.55; }

.services-preview { background: #0c1117; }
.services-preview .home-section-head p { color: rgba(255,255,255,.67); }
.home-solutions-list { border-top: 1px solid rgba(255,255,255,.16); }
.home-solution {
  display: grid;
  grid-template-columns: 54px minmax(220px, .8fr) minmax(300px, 1.12fr) minmax(180px, .65fr) 24px;
  gap: clamp(18px, 3vw, 42px);
  align-items: center;
  min-height: 154px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255,255,255,.16);
  color: #fff;
  transition: color .25s ease, padding .3s cubic-bezier(.16,1,.3,1);
}
.home-solution:hover { padding-inline: 10px; color: var(--cyan-l); }
.home-solution-number { color: var(--cyan); font-size: 11px; font-weight: 800; }
.home-solution strong { font-size: clamp(24px, 2.8vw, 40px); line-height: 1.02; letter-spacing: -.025em; text-wrap: balance; }
.home-solution-text { color: rgba(255,255,255,.68); font-size: 15px; line-height: 1.58; }
.home-solution small { color: rgba(255,255,255,.48); font-size: 12px; line-height: 1.55; }
.home-solution i { color: var(--cyan); font-style: normal; font-size: 20px; }
.home-services-cta { display: flex; justify-content: flex-end; margin-top: 38px; }

/* Servicios */
.page-hero {
  position: relative;
  min-height: 70dvh;
  overflow: hidden;
  background: #071017;
  background-image: radial-gradient(800px circle at 78% 35%, rgba(0,174,239,.15), transparent 64%);
  animation: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  right: 7vw;
  bottom: -24%;
  width: min(38vw, 520px);
  aspect-ratio: 1;
  border: 1px solid rgba(64,217,255,.2);
  border-radius: 50%;
  box-shadow: 0 0 0 54px rgba(64,217,255,.035), 0 0 0 108px rgba(64,217,255,.02);
  pointer-events: none;
}
.page-hero > .wrap { position: relative; z-index: 1; }
.page-hero-title {
  max-width: 1060px;
  font-size: clamp(52px, 7.2vw, 96px);
  line-height: .94;
  letter-spacing: -.04em;
  text-transform: none;
  text-wrap: balance;
}
.page-hero-title em { color: var(--cyan-l); }
.services-page-lede {
  max-width: 64ch;
  margin-top: 30px;
  color: rgba(255,255,255,.72);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.6;
  text-wrap: pretty;
}
.services-list { padding: 32px 0; }
.services-list .service-item {
  max-width: 1280px;
  width: calc(100% - 40px);
  margin: 0 auto;
  padding: clamp(52px, 6vw, 78px) 0 !important;
  grid-template-columns: 56px minmax(280px, .88fr) minmax(380px, 1.12fr);
  gap: clamp(28px, 5vw, 72px);
  overflow: visible;
}
.service-item::before,
.service-item::after { display: none; }
.service-name { font-size: clamp(35px, 4vw, 60px); line-height: .94; }
.service-right { gap: 18px; }
.service-desc { max-width: 62ch; color: rgba(255,255,255,.74); font-size: 16px; line-height: 1.62; }
.service-fit {
  max-width: 62ch;
  padding-top: 17px;
  border-top: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.66);
  font-size: 14px;
  line-height: 1.55;
}
.service-fit span { color: var(--cyan-l); font-weight: 800; }
.service-tags { margin-top: 2px; }
.service-cta { width: max-content; min-height: 44px; align-items: center; }
.services-consult { padding: clamp(74px, 9vw, 126px) 0; background: var(--cyan); color: #061018; }
.services-consult-inner {
  display: grid;
  grid-template-columns: minmax(300px, .9fr) minmax(300px, 1fr) auto;
  gap: clamp(30px, 6vw, 88px);
  align-items: center;
}
.services-consult h2 { max-width: 14ch; font-size: clamp(38px, 4.6vw, 66px); line-height: .96; letter-spacing: -.035em; text-wrap: balance; }
.services-consult p { max-width: 52ch; font-size: 17px; line-height: 1.62; }
.services-consult .btn-primary { background: #071017; color: #fff; white-space: nowrap; }
.services-consult .btn-primary:hover { background: #17232d; }

@media (max-width: 980px) {
  .home-work-head { grid-template-columns: 1fr 1fr; }
  .home-work-head > a { grid-column: 2; }
  .home-work-grid { grid-template-columns: 1fr 1fr; }
  .home-work-case,
  .home-work-case:nth-child(n),
  .home-work-case.is-featured { grid-column: auto; grid-row: auto; }
  .home-work-case:first-child { grid-column: 1 / -1; }
  .home-work-case.is-featured .home-work-visual { height: 250px; }
  .ai-native-layout { grid-template-columns: 1fr; gap: 54px; }
  .ai-native-copy { position: static; }
  .home-solution { grid-template-columns: 44px minmax(220px, .85fr) minmax(300px, 1.15fr) 24px; }
  .home-solution small { grid-column: 2 / 4; }
  .services-list .service-item { grid-template-columns: 52px minmax(220px, .8fr) minmax(330px, 1.2fr); gap: 30px; }
  .services-consult-inner { grid-template-columns: 1fr 1fr; }
  .services-consult .btn-primary { grid-column: 2; width: max-content; }
}

@media (max-width: 700px) {
  .page-index .hero-title { font-size: clamp(46px, 13vw, 66px); }
  .page-index .hero-sub { font-size: 16px; }
  .page-index .hero-services-panel { display: none; }
  .page-index .hero-ctas { flex-direction: row; gap: 8px; }
  .page-index .hero-ctas a { flex: 1 1 0; width: auto; min-height: 42px; padding: 10px 12px; justify-content: center; text-align: center; font-size: 10px; letter-spacing: .06em; }
  .home-latest-project { min-height: 0; max-height: none; aspect-ratio: 4 / 3; }
  .home-latest-project .fp-banner-info { align-items: flex-end; }
  .home-latest-project .fp-banner-project-type { display: none; }
  .home-section-head { grid-template-columns: 1fr; gap: 22px; }
  .home-section-head > a { grid-column: 1; margin-top: 0; }
  .home-section-head h2 { font-size: 42px; }
  .home-work { padding-block: 40px 44px; }
  .home-work-head { grid-template-columns: 1fr; gap: 12px; margin-bottom: 24px; }
  .home-work-head h2 { font-size: 28px; }
  .home-work-head p { font-size: 14px; line-height: 1.5; }
  .home-work-head > a { grid-column: 1; margin-top: 4px; }
  .home-work-grid {
    display: flex;
    gap: 14px;
    margin-right: -20px;
    padding-right: 20px;
    padding-bottom: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }
  .home-work-case,
  .home-work-case:nth-child(n),
  .home-work-case.is-featured { flex: 0 0 min(78vw, 304px); display: grid; scroll-snap-align: start; }
  .home-work-visual,
  .home-work-case.is-featured .home-work-visual { height: 196px; }
  .ai-native-title { font-size: 44px; }
  .studio-process li { grid-template-columns: 40px 1fr; min-height: 0; }
  .home-solution {
    grid-template-columns: 38px 1fr 20px;
    gap: 12px;
    min-height: 0;
    padding: 30px 0;
  }
  .home-solution strong { font-size: 28px; }
  .home-solution-text,
  .home-solution small { grid-column: 2 / 4; }
  .home-services-cta { justify-content: flex-start; }
  .page-hero { min-height: 66dvh; padding-bottom: 58px; }
  .page-hero::after { width: 74vw; right: -24vw; bottom: -14%; }
  .page-hero-title { font-size: clamp(44px, 12.5vw, 62px); }
  .services-page-lede { font-size: 16px; }
  .services-list .service-item {
    width: calc(100% - 40px);
    grid-template-columns: 36px 1fr;
    gap: 14px;
  }
  .service-name { font-size: 36px; }
  .service-right { grid-column: 2; }
  .services-consult-inner { grid-template-columns: 1fr; gap: 24px; }
  .services-consult .btn-primary { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .home-work-visual img,
  .home-section-head > a span,
  .home-solution { transition: none; }
}
