/* ==========================================================================
   home-revamp.css — Home page revamp (2026-11)
   Scope: index.html only. Safe to port back into the Webflow designer.
   Sections: nav CTA · hero grid + visual + terrain · marquee · stat band +
   bento benefits · partners split · CTA band trace-lines · reveal util.
   All motion guarded by prefers-reduced-motion.
   ========================================================================== */

/* ---------- Nav CTA ---------- */
.nav-cta {
  display: inline-flex;
  align-items: center;
  margin: 0.35rem 0.5rem;
  padding: 0.55rem 1.1rem;
  background: var(--accent-1);
  color: var(--light-1);
  border-radius: 8px;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  transition: box-shadow 0.3s cubic-bezier(0.165, 0.84, 0.44, 1),
    background-color 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.nav-cta:hover {
  background: #0a55c2;
  box-shadow: 0 6px 18px rgba(11, 99, 223, 0.35);
}

/* ---------- Hero: full-bleed terrain background ---------- */
.hero-home_section.rv-hero {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 2.5rem;
  background: linear-gradient(180deg, var(--light-2) 0%, #ffffff 100%);
}
/* align hero copy with the page grid: .u-container lacks the max-width that
   .container gets from the global embed (90em) — without it the hero text sits
   ~125px further left than every other section on wide screens */
.hero-home_container.u-container {
  max-width: 90em;
}
.hero-terrain {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-terrain canvas {
  display: block;
  width: 100%;
  height: 100%;
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 98%);
  mask-image: linear-gradient(180deg, #000 72%, transparent 98%);
}
/* static SVG graph: hidden while WebGL runs, shown as fallback */
.hero-terrain svg {
  display: none;
  width: 100%;
  height: 100%;
}
.hero-terrain.no-webgl svg {
  display: block;
}
/* readability scrim: text left, terrain dominating the right */
.hero-home_section.rv-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg,
    rgba(247, 249, 253, 0.94) 0%,
    rgba(247, 249, 253, 0.62) 34%,
    rgba(247, 249, 253, 0) 66%);
}
.rv-hero-front {
  position: relative;
  z-index: 2;
}
.hero-home_wrap {
  align-items: flex-start;
  text-align: left;
}
.hero-home_grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

/* ---------- Section header + "Cómo funciona" card (products section) ---------- */
.rv-sec-head {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
.rv-how {
  max-width: 24rem;
  margin-left: auto;
  padding: 1.5rem;
  background: var(--light-1);
  border: 1px solid var(--dark-3);
  border-radius: 1.25rem;
  box-shadow: 0 18px 44px rgba(13, 13, 13, 0.1);
}
.rv-how_kicker {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-1);
  font-weight: 600;
}
.rv-how_claim {
  margin: 0.35rem 0 0.9rem;
  font-family: Faustina, serif;
  font-size: 1.35rem;
  font-weight: 600;
}
.rv-how_step {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 0.7rem 0;
}
.rv-how_step + .rv-how_step {
  border-top: 1px solid var(--dark-3);
}
.rv-how_num {
  flex: 0 0 auto;
  font-family: Faustina, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent-1);
  line-height: 1;
  padding-top: 0.15rem;
}
.rv-how_t {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
}
.rv-how_s {
  margin: 0;
  font-size: 0.82rem;
  color: var(--dark-2);
  opacity: 0.8;
}

/* ---------- Passport card (right column, over the graph) ---------- */
.rv-passport {
  max-width: 26rem;
  margin-left: auto;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--dark-3);
  border-radius: 1.25rem;
  box-shadow: 0 24px 60px rgba(13, 13, 13, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
@media (prefers-reduced-motion: no-preference) {
  .rv-passport {
    animation: rv-float 7s ease-in-out infinite alternate;
  }
}
@keyframes rv-float {
  from { transform: translateY(-5px) rotate(-1deg); }
  to   { transform: translateY(5px) rotate(-1deg); }
}
.rv-passport_head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.rv-passport_icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.6rem;
  height: 2.6rem;
  background: rgba(11, 99, 223, 0.1);
  border-radius: 0.8rem;
  color: var(--accent-1);
}
.rv-passport_icon svg {
  width: 1.4rem;
  height: 1.4rem;
}
.rv-passport_kicker {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark-2);
  opacity: 0.65;
}
.rv-passport_lot {
  margin: 0;
  font-weight: 600;
  font-size: 1.05rem;
}
.rv-passport_pill {
  margin-left: auto;
  padding: 0.3rem 0.7rem;
  background: rgba(11, 99, 223, 0.1);
  border-radius: 100vw;
  color: var(--accent-1);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}
.rv-trace {
  position: relative;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}
.rv-trace li {
  position: relative;
  display: flex;
  gap: 0.9rem;
  padding: 0.55rem 0;
}
.rv-trace li::before {
  content: "";
  position: absolute;
  left: 0.44rem;
  top: 1.7rem;
  bottom: -0.55rem;
  width: 2px;
  background: var(--dark-3);
}
.rv-trace li:last-child::before {
  display: none;
}
.rv-trace_dot {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  margin-top: 0.15rem;
  background: var(--accent-1);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--accent-1);
}
.rv-trace li.is-current .rv-trace_dot {
  background: #fff;
}
.rv-trace_t {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}
.rv-trace_s {
  margin: 0;
  font-size: 0.8rem;
  color: var(--dark-2);
  opacity: 0.75;
}
.rv-passport_foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--dark-3);
}
.rv-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.rv-badges span {
  padding: 0.25rem 0.6rem;
  background: #fff;
  border: 1px solid var(--dark-3);
  border-radius: 100vw;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--dark-2);
}
.rv-qr {
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  color: var(--dark-1);
}
.rv-qr svg {
  width: 100%;
  height: 100%;
}
.hero-home_title {
  align-items: flex-start;
}
.hero-home_heading {
  max-width: 18ch;
  font-size: 4.6rem;
  line-height: 1.06;
  letter-spacing: -0.01em;
}
.hero-home_heading em {
  font-style: italic;
  color: var(--accent-1);
}
.hero-home_text.u-paragraph-md {
  max-width: 48ch;
  margin-top: 0.5rem;
}
.hero-home_ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.75rem;
}
.hero-link-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: Inter, sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--dark-1);
  text-decoration: none;
  border-bottom: 2px solid var(--accent-1);
  padding-bottom: 0.15rem;
  transition: color 0.25s ease, gap 0.25s ease;
}
.hero-link-cta span {
  color: var(--accent-1);
  transition: transform 0.25s ease;
}
.hero-link-cta:hover {
  color: var(--accent-1);
}
.hero-link-cta:hover span {
  transform: translateX(3px);
}
.hero-trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.hero-trust-chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  background: var(--light-1);
  border: 1px solid var(--dark-3);
  border-radius: 100vw;
  font-size: 0.875rem;
  color: var(--dark-2);
}
.hero-trust-chips li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-1);
  flex: 0 0 auto;
}

/* ---------- no-WebGL / reduced-motion fallback (static SVG graph in HTML) ---------- */
.hero-terrain.no-webgl {
  background: linear-gradient(160deg, #ffffff, var(--light-2));
}

/* ---------- Marquee caption + grayscale logos ---------- */
.hero-home_marque-wrap {
  position: relative;
  z-index: 2;
  padding: 1.25rem 0 1.75rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.85) 22%, var(--light-2) 60%);
}
.marquee-caption {
  margin-bottom: 0.75rem;
  text-align: center;
  color: var(--dark-2);
  opacity: 0.7;
}
.marquee-image {
  filter: grayscale(1);
  opacity: 0.72;
  transition: filter 0.3s ease, opacity 0.3s ease;
}
.marquee-image:hover {
  filter: none;
  opacity: 1;
}

/* ---------- Stat band ---------- */
.rv-stat-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 62rem;
  margin: 3rem auto 0;
  text-align: center;
}
.rv-stat-num {
  font-family: Faustina, serif;
  font-size: 3.6rem;
  font-weight: 600;
  line-height: 1;
  color: var(--accent-1);
}
.rv-stat-label {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: var(--dark-2);
}

/* ---------- Outcomes graph: cards-nodos conectadas ---------- */
.rv-outcome-graph {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: 62rem;
  margin: 3rem auto 0;
}
/* Arista punteada que une los nodos (visible solo en los gaps entre cards) */
.rv-outcome-graph::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 3%;
  right: 3%;
  height: 2px;
  transform: translateY(-50%);
  background-image: linear-gradient(90deg,
    rgba(11, 99, 223, 0.5) 0 8px, transparent 8px 16px);
  background-size: 16px 2px;
  z-index: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .rv-outcome-graph::before {
    animation: rv-edge-flow 1.1s linear infinite;
  }
}
@keyframes rv-edge-flow {
  to {
    background-position-x: 16px;
  }
}
.rv-outcome-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--light-1);
  border: 1px solid rgba(11, 99, 223, 0.22);
  border-radius: 1em;
  box-shadow: 0 6px 18px rgba(13, 13, 13, 0.06);
  transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1),
    box-shadow 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.rv-outcome-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(13, 13, 13, 0.12);
}
/* Nodos: puntos sobre los bordes de cada card, sobre la arista */
.rv-outcome-card::before,
.rv-outcome-card::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-1);
  border: 2px solid var(--light-1);
  box-shadow: 0 0 0 2px rgba(11, 99, 223, 0.35);
  transform: translateY(-50%);
  z-index: 2;
}
.rv-outcome-card::before {
  left: -7px;
}
.rv-outcome-card::after {
  right: -7px;
}
/* Los nodos terminales del grafo no llevan punto suelto */
.rv-outcome-card:first-child::before,
.rv-outcome-card:last-child::after {
  display: none;
}
.rv-outcome-card .rv-stat-num {
  margin-top: 0.25rem;
}
@media screen and (max-width: 991px) {
  .rv-outcome-graph {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 24rem;
  }
  /* Arista vertical entre cards apiladas (sin animación de flujo) */
  .rv-outcome-graph::before {
    top: 3%;
    bottom: 3%;
    left: 50%;
    right: auto;
    width: 2px;
    height: auto;
    transform: translateX(-50%);
    background-image: linear-gradient(180deg,
      rgba(11, 99, 223, 0.5) 0 8px, transparent 8px 16px);
    background-size: 2px 16px;
    animation: none;
  }
  .rv-outcome-card::before,
  .rv-outcome-card::after {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
  .rv-outcome-card::before {
    top: -7px;
  }
  .rv-outcome-card::after {
    top: auto;
    bottom: -7px;
  }
}

/* ---------- Industries slider: light system cards ---------- */
.rv-ind-card {
  background: var(--light-1);
}
.rv-ind-card .u-img-ratio1 {
  padding: 0.6rem 0.6rem 0;
}
.rv-ind-card .u-img-ratio1 img {
  border-radius: 0.9rem;
}
.rv-ind-card .card-v1_body .u-meta {
  color: var(--dark-2);
  opacity: 0.75;
}
.rv-ind-card .card-v1_body .u-heading-fs3-ff2 {
  color: var(--dark-1);
}
.rv-ind-card .card-v1_body p {
  color: var(--dark-2);
}
.rv-ind-card .card-v1_body::after {
  content: "Ver solución ↳";
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-1);
}
.rv-ind-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(13, 13, 13, 0.14);
}
/* slider arrows: white circles in the card language */
.splide__arrow {
  width: 3.2em;
  height: 3.2em;
  background-color: var(--light-1);
  border: 1px solid var(--dark-3);
  box-shadow: 0 8px 20px rgba(13, 13, 13, 0.12);
}
.splide__arrow:hover {
  background-color: var(--light-1);
  border-color: var(--accent-1);
}

/* ---------- Bento benefits: light cards + tinted larges ---------- */
.rv-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}
.rv-bento .card-v1 {
  background: var(--light-1);
  border-radius: 1em;
  transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1),
    box-shadow 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.rv-bento .card-v1:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(13, 13, 13, 0.12);
}
.rv-bento .card-v1.rv-card-tint {
  background: #edf3fc;
  border-color: rgba(11, 99, 223, 0.28);
}
.rv-bento .card-v1.rv-card-light {
  background: var(--light-1);
  color: var(--dark-1);
}
.rv-card-large {
  grid-column: span 2;
}
.rv-card_body {
  padding: 1.75rem;
}
.rv-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.1rem;
  background: rgba(11, 99, 223, 0.08);
  border: 1px solid rgba(11, 99, 223, 0.2);
  border-radius: 0.75rem;
  color: var(--accent-1);
}
.rv-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}
.rv-bento .card-v1.rv-card-tint .rv-icon {
  background: rgba(11, 99, 223, 0.14);
}
.rv-bento .u-heading-fs4-ff2 {
  margin-bottom: 0.6rem;
}
.rv-bento p {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--dark-2);
  margin-bottom: 0;
}
.rv-bento-cta {
  display: flex;
  justify-content: center;
  margin-top: 2.75rem;
}

/* ---------- Partners: labeled rows + logo tiles ---------- */
.card-logo {
  background: var(--light-1);
  border: 1px solid var(--dark-3);
  border-radius: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-logo:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(13, 13, 13, 0.1);
}
.rv-partners-label {
  margin: 2.25rem 0 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dark-2);
  opacity: 0.65;
}
.rv-partners-label:first-child {
  margin-top: 0;
}

/* ---------- Footer: kicker headers + brand hovers ---------- */
.section-v2.cc-footer .c-footer_header {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.65;
}
.section-v2.cc-footer .c-footer_link:hover {
  color: #7fb0f5;
}

/* ---------- Final CTA band ---------- */
.rv-cta-band {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  align-items: center;
  gap: 2rem;
  max-width: 72rem;
  margin: 0 auto;
}
.rv-cta-copy h3 {
  max-width: 22ch;
}
.rv-cta-copy p {
  max-width: 44ch;
  margin-top: 0.75rem;
  opacity: 0.9;
}
.rv-cta-kicker {
  margin-bottom: 0.6rem;
  opacity: 0.75;
}
.rv-cta-action {
  justify-self: end;
  text-align: center;
  padding: 1.6rem 2.1rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 1.25rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.rv-cta-note {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  opacity: 0.8;
}
.rv-trace-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.5;
}
.rv-trace-lines path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.55);
  stroke-width: 1.5;
  stroke-dasharray: 6 10;
}
@media (prefers-reduced-motion: no-preference) {
  .rv-trace-lines path {
    animation: rv-dash 22s linear infinite;
  }
  .rv-trace-lines path:nth-child(2) {
    animation-duration: 30s;
    animation-direction: reverse;
  }
}
@keyframes rv-dash {
  to {
    stroke-dashoffset: -640;
  }
}

/* ---------- Scroll reveal (JS adds .rv-pre only when motion is OK) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rv-pre {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
  }
  .rv-pre.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */
@media screen and (max-width: 991px) {
  .rv-sec-head {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .rv-how {
    max-width: 24rem;
    margin: 0 auto;
  }
  .hero-home_grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .rv-passport {
    max-width: 24rem;
    margin: 0 auto;
  }
  .hero-home_heading {
    font-size: 3.4rem;
  }
  .hero-home_section.rv-hero {
    padding: 4rem 0 2rem;
  }
  /* stack scrim vertically: text on top, terrain visible below */
  .hero-home_section.rv-hero::before {
    background: linear-gradient(180deg,
      rgba(247, 249, 253, 0.95) 0%,
      rgba(247, 249, 253, 0.75) 45%,
      rgba(247, 249, 253, 0.15) 78%);
  }
  .hero-terrain {
    opacity: 0.9;
  }
  .rv-bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .rv-stat-band {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .rv-cta-band {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .rv-cta-copy h3,
  .rv-cta-copy p {
    margin-left: auto;
    margin-right: auto;
  }
  .rv-cta-action {
    justify-self: center;
  }
}
@media screen and (max-width: 479px) {
  .hero-home_heading {
    font-size: 2.6rem;
  }
  .hero-home_ctas {
    flex-direction: column;
    align-items: flex-start;
  }
  .rv-bento {
    grid-template-columns: 1fr;
  }
  .rv-card-large {
    grid-column: span 1;
  }
}
