/* =========================================================
   IMPORTS & VARIABLES
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
  /* Core palette */
  --ink: #fff;
  --muted: #cfe3ff;
  --bg: #060b12;
  --bg-blue: #051121;

  /* Brand */
  --blue: #0B5AAA;
  --yellow: #FFC53D;
  --brand-blue: var(--blue);
  --brand-yellow: var(--yellow);

  /* Footer */
  --footer-bg: #0D1016;
  --footer-bg-2: #0B0E13;
  --text-on-dark: #ffffff;

  /* Type scale */
  --t1-min: 34px;
  --t1-vw: 6.8vw;
  --t1-max: 88px;
  --t2-min: 18px;
  --t2-vw: 2.2vw;
  --t2-max: 28px;

  /* Layout */
  --content-w: 1120px;
}

/* =========================================================
   BASE / RESET
   ========================================================= */

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

/* ===== Lenis baseline ===== */
html.lenis {
  height: auto;
}

.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis-stopped {
  overflow: hidden;
}

/* Si usas elementos con data-lenis-prevent para evitar el smoothing dentro */
.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

body {
  margin: 0;
  color: var(--ink);
  font: 400 16px/1.6 "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    url(./assets/img/pattern.png),
    linear-gradient(#051121, #051121);
  background-size: 30%;
  background-attachment: fixed;
}

/* =========================================================
   FONT UTILITIES (Poppins helpers)
   ========================================================= */
/* Mantengo utilidades por si están usadas en el HTML */
.poppins-thin {
  font-family: "Poppins", sans-serif;
  font-weight: 100
}

.poppins-extralight {
  font-weight: 200;
  font-family: "Poppins", sans-serif
}

.poppins-light {
  font-weight: 300;
  font-family: "Poppins", sans-serif
}

.poppins-regular {
  font-weight: 400;
  font-family: "Poppins", sans-serif
}

.poppins-medium {
  font-weight: 500;
  font-family: "Poppins", sans-serif
}

.poppins-semibold {
  font-weight: 600;
  font-family: "Poppins", sans-serif
}

.poppins-bold {
  font-weight: 700;
  font-family: "Poppins", sans-serif
}

.poppins-extrabold {
  font-weight: 800;
  font-family: "Poppins", sans-serif
}

.poppins-black {
  font-weight: 900;
  font-family: "Poppins", sans-serif
}

.poppins-thin-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 100;
  font-style: italic
}

.poppins-extralight-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 200;
  font-style: italic
}

.poppins-light-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-style: italic
}

.poppins-regular-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: italic
}

.poppins-medium-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-style: italic
}

.poppins-semibold-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-style: italic
}

.poppins-bold-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-style: italic
}

.poppins-extrabold-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-style: italic
}

.poppins-black-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  font-style: italic
}

/* =========================================================
   navbar (full-viewport)
   ========================================================= */
/* ================= NAV STYLES (namespaced) ================= */
:root {
  --nav-bg: rgba(8, 14, 24, .35);
  --nav-stroke: rgba(255, 255, 255, .14);
  --nav-blur: 10px;
  /* usa tus tokens existentes */
  --blue: #0B5AAA;
  --yellow: #FFC53D;
}

/* Contenedor */
.site-nav {
  position: sticky;
  top: 0;
  inset-inline: 0;
  z-index: 2;
  backdrop-filter: blur(var(--nav-blur)) saturate(120%);
  -webkit-backdrop-filter: blur(var(--nav-blur)) saturate(120%);
  background: linear-gradient(180deg, var(--nav-bg) 0%, rgba(8, 14, 24, 0.10) 100%);
  border-bottom: 1px solid var(--nav-stroke);
}

/* NAVBAR siempre visible por encima de todo */
.site-nav {
  position: fixed;
  /* antes era sticky */
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  /* sobre secciones pinneadas */
}

.site-nav .nav-inner {
  height: 100px;
  width: min(1200px, 96vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}

/* Marca + links */
.nav-brand img{
 width: 100px;
}

.brand-mark {
  font-weight: 900;
  letter-spacing: .02em;
  font-size: clamp(18px, 2.2vw, 22px);
}

.nav-desktop {
  display: flex;
  gap: clamp(16px, 3vw, 36px);
  justify-content: center;
}

.nav-link {
  position: relative;
  color: #e9f2ff;
  text-decoration: none;
  font-weight: 700;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 100%;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .28s ease;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

/* Acciones */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}

/* Idioma (desktop) */
.nav-lang {
  position: relative;
}

.lang-current {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .8rem;
  border-radius: 999px;
  border: 1px solid var(--nav-stroke);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-weight: 800;
}

.lang-current .chev {
  transition: transform .2s ease;
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 200px;
  padding: 9px;
  background: rgba(8, 14, 24, .9);
  border: 1px solid var(--nav-stroke);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  display: grid;
  gap: 6px;
}

.lang-menu ul {
  list-style: none;
  list-style-type: none;
}

.lang-menu a {
  width: 100%;
  text-align: left;
  padding: .55rem .65rem;
  border-radius: 10px;
  border: 0;
  color: #fff;
  background: transparent;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.lang-menu a:hover {
  background: rgba(255, 255, 255, .06);
}

/* Burger */
.mobile-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--nav-stroke);
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  cursor: pointer;
}

.mobile-toggle .bar {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease, top .25s ease;
}

.mobile-toggle .b1 {
  top: 14px;
}

.mobile-toggle .b2 {
  top: 21px;
}

.mobile-toggle .b3 {
  top: 28px;
}

/* Panel mobile */
.nav-panel {
  position: fixed;
  inset: 0 0 auto 0;
  top: 0;
  height: 100vh;
  background: rgba(6, 10, 18, .72);
  backdrop-filter: blur(8px);
}

.panel-inner {
  width: min(680px, 92vw);
  margin: 0 auto;
  padding: clamp(18px, 3vw, 28px) 0;
  display: grid;
  gap: clamp(18px, 2.4vw, 24px);
}

.nav-mobile {
  display: grid;
  gap: 12px;
  margin-top: 82px;
}

.m-link {
  font-size: clamp(20px, 4.6vw, 34px);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.panel-lang {
  margin-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, .12);
  padding-top: 14px;
}

.lang-title {
  color: #fff;
  opacity: .9;
  margin: 0 0 8px;
  font-weight: 800;
}

.lang-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pill {
  border: 1px solid var(--nav-stroke);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border-radius: 999px;
  padding: .6rem .9rem;
  font-weight: 800;
  cursor: pointer;
}

/* Scrim */
.nav-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
}

/* Compacto al hacer scroll */
.site-nav.is-compact .nav-inner {
  /* height: clamp(50px, 6.5vw, 70px); */
}

.site-nav.is-compact {
  background: rgba(8, 14, 24, .62);
}

/* Responsive */
@media (max-width: 960px) {
  .nav-desktop {
    display: none;
  }

  .mobile-toggle {
    display: inline-block;
  }
}

/* ===================== NAV TOGGLE PATCH ===================== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background: rgba(5, 17, 33, .7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.nav-inner {
  height: 70px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-desktop {
  display: flex;
  gap: 24px;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

/* Idiomas */
.lang-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Toggle (hamburguesa) */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  height: 32px;
  justify-content: center;
}

.mobile-toggle .bar {
  height: 3px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
}

/* Panel mobile */
.nav-panel {
  position: fixed;
  inset: 0;
  background: rgba(5, 17, 33, .95);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.nav-mobile {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.nav-mobile a {
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
}

@media (max-width: 960px) {
  .nav-desktop {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }
}

/* Mostrar las 3 barras correctamente */
.mobile-toggle .bar {
  height: 3px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Botón cerrar (X) en el panel móvil */
.panel-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
}
/* =================== FIN NAV TOGGLE PATCH =================== */

/* =========================================================
   HERO (full-viewport)
   ========================================================= */

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  z-index: 1;
}

/* Media */
.hero__media {
  position: absolute;
  inset: 0;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.05) contrast(1.05) brightness(.95);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 600px at 70% 20%, rgba(255, 255, 255, .22), transparent 55%),
    linear-gradient(180deg, rgba(12, 20, 34, .60) 0%, rgba(6, 10, 18, .85) 90%);
}

/* Glows */
.glow {
  position: absolute;
  width: 42vw;
  max-width: 560px;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(60px);
  mix-blend-mode: screen;
  opacity: .28;
  pointer-events: none;
}

.glow--a {
  background: #59a5ff;
  top: 15%;
  left: -12%;
}

.glow--b {
  background: #e3f2ff;
  bottom: -10%;
  right: -8%;
}

/* Content */
.hero__content {
  position: relative;
  z-index: 2;
  width: min(var(--content-w), 94vw);
  margin-inline: auto;
  min-height: 100svh;
  display: grid;
  align-content: center;
  gap: min(2.4vh, 22px);
  padding: clamp(16px, 3vw, 28px) 0;
}

/* Chip */
.chip {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .42rem .8rem;
  border-radius: 999px;
  font-size: clamp(12px, 1.2vw, 14px);
  color: #e9f2ff;
  background: rgba(9, 18, 30, .55);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(8px);
}

.chip__dot {
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 10px var(--yellow)
}

/* Title */
.title {
  position: relative;
  margin: 0;
  font-weight: 900;
  font-size: clamp(var(--t1-min), var(--t1-vw), var(--t1-max));
  line-height: 1.04;
  letter-spacing: -.02em;
  text-wrap: balance;
  max-width: 20ch;
}

.title .line {
  display: block;
}

.alt-italic {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 700;
}

.title .shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .22) 45%, rgba(255, 255, 255, 0) 65%);
  transform: translateX(-120%) skewX(-18deg);
  mix-blend-mode: overlay;
}

/* Subtitle */
.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: clamp(var(--t2-min), var(--t2-vw), var(--t2-max));
  max-width: 68ch;
}

/* CTA row */
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .8rem;
}

.email {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .7rem .9rem;
  border-radius: 14px;
  background: rgba(7, 16, 28, .6);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #d8e7ff;
  backdrop-filter: blur(8px);
}

.email input {
  all: unset;
  color: #fff;
  width: min(44vw, 320px);
  font-size: 15px;
}

.btn {
  --shadow: 0 8px 16px rgba(0, 0, 0, .28);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .9rem 1.1rem;
  border-radius: 14px;
  line-height: 1;
  font-weight: 900;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  border: 2px solid transparent;
  color: #081319;
}

.btn .icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  transition: transform .2s ease
}

.btn--primary {
  background: var(--yellow);
  border-color: var(--yellow);
}

.btn--outline {
  background: transparent;
  color: #fff;
  border-color: var(--blue);
}

@media (hover:hover) {
  .btn:hover {
    transform: translateY(-2px);
  }
}

/* Partners */
.partners {
  display: grid;
  gap: .6rem;
  margin-top: .4rem;
}

.partners__label {
  color: #a8c3ff;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.partners ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  opacity: .8;
}

.partners li img {
  width: 100px;
  filter: brightness(0) invert(1);
}

.partners-footer {
  display: grid;
  gap: .6rem;
  margin-top: .4rem;
}


.partners-footer ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  opacity: .8;
}

.partners-footer li img {
  width: 100px;
}

/* Hero tweaks */
@media (max-height:720px) {
  :root {
    --t1-vw: 5.6vw;
    --t1-max: 78px;
  }
}

@media (max-width:480px) {
  .email input {
    width: 58vw;
  }
}

/* =========================================================
   "NEXT" SECTION (overlay sobre hero)
   ========================================================= */

.next {
  position: relative;
  z-index: 2;
  background: transparent;
}

.next::before {
  content: "";
  position: absolute;
  left: 0;
  top: -32px;
  width: 100%;
  height: 32px;
  pointer-events: none;
  z-index: -1;
}

@media (max-width:1800px) {
  .next::before {
    top: -52px;
    height: 52px;
  }
}

.next__inner {
  width: 97%;
  margin-inline: auto;
  padding: 96px 0 140px;
  color: #e7f0ff;
}

/* =========================================================
   SERVICIOS — TITULAR A DOS CAPAS (SplitText + clip)
   ========================================================= */

.services .srv-title {
  position: relative;
  display: block;
  width: max-content;
  margin: 0 auto 10px;
  text-align: center;
  font-family: "Bebas Neue", sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(1rem, 9vw, 10rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.services .srv-title.jap{
    font-size: clamp(1rem, 10vw, 8rem);

}

.services .srv-title__stroke,
.services .srv-title__fill {
  display: block;
  position: relative;
}

.services .srv-title__stroke {
  color: transparent;
}

.services .srv-title__fill {
  position: absolute;
  inset: 0;
  color: white;
  clip-path: inset(0 100% 0 0);
  pointer-events: none;
  will-change: clip-path;
}

.srv-line,
.srv-line--fill {
  will-change: transform;
}

@media (max-width:1800px) {
  .services .srv-title {
    font-size: clamp(1rem, 22vw, 15rem);
    line-height: 1.1;
  }
}

@media (max-width:800px) {
  .services .srv-title {
    font-size: 4rem;
    line-height: 1.1;
  }
}

/* =========================================================
   VERTICAL SCROLLER (.vscroll) — CARDS PINNED
   ========================================================= */

.vscroll {
  color: #292929;
}

.vscroll * {
  box-sizing: border-box;
}

.vscroll .heading {
  font-size: 10rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-transform: uppercase;
  font-family: "Bebas Neue", sans-serif;
  font-weight: 900;
}
.vscroll .heading.jap{
  font-size: 7rem;
  
}

.vscroll .section {
  overflow: hidden;
}

.vscroll .wrapper {
  height: 100vh;
}

.vscroll .list {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  position: relative;
  padding: .2rem;
}

.vscroll .item {
  width: 100vw;
  height: 100%;
  display: flex;
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--bg-blue);
  margin: 0 auto;
}

.vscroll .item_number {
  display: none;
  /* si lo necesitas, elimina esta línea */
  font-size: 1.5rem;
  height: 3rem;
  width: 3rem;
  margin-bottom: .5rem;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--bg-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  position: absolute;
  top: 6rem;
  left: 3rem;
  display: none;
}

.vscroll .item_content {
  background: var(--bg-blue);
  color: #292929;
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: flex-start;
  padding-left: 3rem;
  position: relative;
  width: 50%;
}

.vscroll .item_content h2 {
  font-size: 3.5rem;
  margin: 0 0 40px;
  line-height: 80px;
  color: white;
  z-index: 1;
}

.vscroll .item_content h2 span {
  font-size: 3rem;
}

.vscroll .item_content p {
  font-size: 1.2rem;
  margin-top: 0;
  color: white;
}

.vscroll .item_content ul {
  font-size: 1rem;
  margin-top: 0;
  color: white;
}

.vscroll .item_media {
  object-fit: cover;
  width: 50%;
  height: 100%;
}

/* HR curvo bajo el título de cada card */
.srv-hr-arch {
  width: 40%;
  height: clamp(10px, 2.2vw, 22px);
  overflow: visible;
  margin-top: -45px;
  margin-bottom: 20px;
  z-index: 0;
}

.srv-hr-arch svg {
  display: block;
  width: 100%;
  height: 100%;
}

.srv-hr-arch path {
  fill: none;
  stroke: var(--yellow);
  stroke-width: 5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .06));
}

/* vscroll — responsive */
@media (max-width:780px) {
  .vscroll .item_content {
    padding-left: 1rem;
  }

  .vscroll .item_content h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    line-height: 30px;
  }

  .srv-hr-arch {
    width: 40%;
    height: clamp(10px, 2.2vw, 22px);
    overflow: visible;
    margin-top: -25px;
    margin-bottom: 20px;
    z-index: 0;
  }

  .vscroll .item_content h2 span {
    font-size: 1.2rem;
  }

  .vscroll .item_content p {
    font-size: .9rem;
    padding-right: 20px;
  }

  .vscroll .item_content ul {
    font-size: .8rem;
  }
}

@media (max-width:575.98px) {
  .vscroll .heading {
    font-size: 2.5rem;
  }

  .vscroll .heading.jap{
  font-size: 1.2rem;
  
}

  .vscroll .item {
    flex-direction: column;
  }

  .vscroll .item_content,
  .vscroll .item_media {
    width: 100%;
    height: 50vh;
    padding-top: 0;
    padding-bottom: 0;
  }

  .vscroll .item_number {
    font-size: .9rem;
    font-weight: bold;
    top: .6rem;
    left: .5rem;
  }
}

@media (max-width: 780px) {
  .vscroll .section {
    overflow: visible; /* evita recortes cuando ya no hay pin */
  }

  .vscroll .wrapper {
    height: auto !important; /* deja fluir la altura por contenido */
  }

  .vscroll .list {
    display: block;          /* en bloque para apilar */
    height: auto !important;
    padding: 0.5rem 0;       /* un respiro vertical */
    position: static;        /* asegura flujo normal */
  }

  .vscroll .item {
    position: relative !important;  /* quita absolute */
    inset: auto !important;
    width: 100%;
    height: auto;                   /* se adapta al contenido */
    margin: 0 0 2rem 0;             /* separación entre cards */
    overflow: hidden;
    transform: none !important;     /* elimina yPercent/scale */
    border-radius: 0;               /* si quieres mantenerlo, quita esta línea */
  }

  .vscroll .item_content,
  .vscroll .item_media {
    width: 100%;
  }

  /* Ya tenías flex-direction column en 575px; lo reforzamos en 780px también */
  .vscroll .item {
    display: flex;
    flex-direction: column;
  }

  /* Alturas más naturales para evitar saltos y pantallas muy cortas */
  .vscroll .item_content {
    height: auto;
    padding: 1rem; /* usabas 1rem a este breakpoint; lo mantenemos coherente */
  }

  .vscroll .item_media {
    height: auto;           /* permite que el video ajuste su alto */
    min-height: 40vh;       /* da presencia visual sin forzar 50vh fijo */
    object-fit: cover;
  }
}

/* =========================================================
   MARQUEE / CINTAS (full width con glass)
   ========================================================= */

.heading.poppins-black {
  font-size: 7.5rem;
  overflow-wrap: anywhere;
  -webkit-background-clip: text;
  background-clip: text;
  color: white;
}

@media (max-width:1800px) {
  .heading.poppins-black {
    font-size: 6rem;
  }
}

@media (max-width:780px) {
  .heading.poppins-black {
    font-size: 4.5rem;
  }
}

section.ticker-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 50px;
  overflow: hidden;
  padding: 50px 0;
}

.ticker {
  position: relative;
  isolation: isolate;
  padding: 2vw 0;
  white-space: nowrap;
}

.ticker>* {
  position: relative;
  z-index: 1;
}

/* contenido por encima del glass */

.ticker-wrap {
  display: flex;
}

.ticker-logos {
  display: flex;
  align-items: center;
  gap: 90px;
  padding: 0 45px;
}

.ticker-logos img {
  max-height: 70px;
  width: auto;
  filter: grayscale(4);
  opacity: .8;
}

.ticker .ticker-logos img {
  filter: brightness(0) invert(1);
}

/* Capa glass */
.ticker::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  background: var(--glass-tint, rgba(255, 255, 255, .08));
  outline: 1px solid rgba(255, 255, 255, .16);
}

/* Inclinaciones */
.ticker:first-child {
  transform: rotateZ(-2deg) scale(1);
  --glass-tint: rgba(59, 130, 246, .2);
}

.ticker:last-child {
  transform: rotateZ(2deg) scale(1);
  --glass-tint: rgba(255, 255, 255, .2);
}

/* =========================================================
   FLOW STEPS (timeline vertical paso a paso)
   ========================================================= */

.flow-steps {
  position: relative;
  background: transparent;
  color: #111;
  padding: clamp(40px, 6vw, 96px) 0;
}

.flow-steps__inner {
  width: 100%;
  margin-inline: auto;
  position: relative;
}

/* Título (dos capas) */
.flow-steps__title {
  position: relative;
  display: block;
  width: max-content;
  margin: 0 auto clamp(24px, 5vh, 48px);
  text-align: center;
  font-family: "Bebas Neue", sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  color: white;
  font-size: 12rem;
  line-height: 1.05;
  letter-spacing: -.02em;
}



.flow-title__stroke,
.flow-title__fill {
  display: block;
  position: relative;
}

.flow-title__stroke {
  color: transparent;
}

.flow-title__fill {
  position: absolute;
  inset: 0;
  color: white;
  pointer-events: none;
}

/* Pista central */
.flow-steps__track {
  position: absolute;
  top: 15%;
  bottom: 10%;
  left: 50%;
  width: 7px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(9, 18, 30, .06), rgba(9, 18, 30, .12));
  border-radius: 50px;
  overflow: hidden;
}

/* Progreso */
.flow-steps__progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0%;
  background: linear-gradient(180deg, var(--yellow), #ffd870);
  box-shadow: 0 0 12px rgba(255, 197, 61, .5);
}

/* Lista & pasos */
.flow-steps__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(32px, 6vh, 80px);
  position: relative;
  z-index: 1;
}

.flow-step {
  position: relative;
  min-height: clamp(160px, 36vh, 420px);
}

/* Bullet */
.flow-step__bullet {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--yellow);
  border: 3px solid #fff;
  box-shadow: 0 0 0 rgba(255, 197, 61, 0);
  z-index: 2;
}

/* Card */
.flow-step__card {
  position: relative;
  width: min(560px, 86vw);
  padding: clamp(16px, 3vw, 26px);
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .06);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
  color: #0b1023;
}

.flow-step__card * {
  color: inherit;
}

/* Alternancia izquierda/derecha */
.flow-step:nth-child(odd) .flow-step__card {
  margin-left: calc(50% + 28px);
}

.flow-step:nth-child(even) .flow-step__card {
  margin-right: calc(50% + 28px);
  margin-left: auto;
}

/* Tipos */
.flow-step__title {
  margin: 0 0 6px;
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.2;
}

.flow-step__text {
  margin: 0 0 10px;
  font-size: clamp(15px, 1.5vw, 16px);
  color: #333;
}

.flow-step__meta {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #444;
}

.flow-step__meta li {
  margin: 4px 0;
}

/* Mobile columna única */
@media (max-width:768px) {
  .flow-steps__title {
    font-size: 4.2rem;
  }
  .flow-steps__title.jap{
   font-size: 2rem;
}
  .flow-steps__track {
    left: 8px;
    transform: none;
  }

  .flow-step__bullet {
    left: 8px;
    transform: translate(-50%, -50%);
  }

  .flow-step__card {
    width: 90%;
    margin: 0 0 0 28px !important;
  }

  .flow-steps__track {
    top: 10%;
    bottom: 10%;

  }

  .flow-step__bullet {
    position: absolute;
    top: 23%;
    transform: translate(-50%, -50%);
  }

}

/* Asegura visibilidad (por si otras capas solapan) */
#flow-steps .flow-steps__list {
  overflow: visible;
  position: relative;
}

#flow-steps .flow-step {
  position: relative;
  z-index: 1;
}

/* =========================================================
   CTA PUENTE (antes del footer)
   ========================================================= */

.cta-bridge {
  padding: 50px 5vw 400px 5vw;
  text-align: center;
}

.cta-title {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 900;
  font-size: 5.9rem;
}

.cta-sub {
  opacity: 1;
  margin: 14px auto 26px;
  max-width: 72ch;
  color: white !important;
  text-decoration: none;
}

.cta-sub a {
  font-weight: 900;
  color: white !important;
  text-decoration: none;
}

.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Botones CTA (unificados) */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  padding: .9rem 2.25rem;
  border-radius: 14px;
  font-weight: 700;
  font-size: 2rem;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  text-decoration: none;
}

.btn-cta--primary {
  background: var(--brand-yellow);
  color: #0b1023;
  box-shadow: 0 8px 24px rgba(255, 197, 61, .25);
}

.btn-cta--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 197, 61, .35);
}

.btn-cta--outline {
  border: 2px solid var(--brand-blue);
  color: var(--brand-blue);
  background: transparent;
}

.btn-cta--outline:hover {
  transform: translateY(-2px);
  background: var(--brand-blue);
  color: #fff;
}

@media (max-width:800px) {

  /* Botones CTA (unificados) */
  .btn-cta {

    gap: .2rem;
    padding: .9rem 2rem;
    font-size: 1rem;

  }

  .cta-title {
    font-family: "Bebas Neue", sans-serif;
    font-weight: 900;
    font-size: 3.6rem;
  }

  .cta-bridge {
    padding: 50px 5vw 200px 5vw;
    text-align: center;
  }

}

/* =========================================================
   FOOTER PARALLAX
   ========================================================= */

.footer-sentinel {
  height: 45vh;
  background: transparent;

}

/* zona de scroll previa */

.footer-parallax {
  position: relative;
  width: 100%;
  height: 90vh;
  overflow: hidden;
  color: var(--text-on-dark);
  background: white;
}

.footer-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transform: translateY(0);
  will-change: transform;
}

/* Rows */
.footer-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.row-top {
  height: 32%;
}

.row-center {
  height: 36%;
  width: 100%;
  padding: 0 6vw;
  display: grid;
  gap: clamp(16px, 4vw, 48px);
  grid-template-columns: 1fr 1fr;
  align-items: center;
  background: rgba(255, 255, 255, .03);
  border-top: 1px solid rgba(255, 255, 255, .08);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(6px);
}

.row-bottom {
  height: 32%;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 6vw 12px;
}

.brandmark {
  height: 9rem;
  width: auto;
  opacity: .95;
}

.licenses {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 2vw, 24px);
  align-items: center;
  justify-content: center;
}

.licenses img {
  height: clamp(32px, 6vw, 50px);
  width: auto;
  opacity: .95;
}

.cta-block {
  text-align: center;
}

/* Columns bottom */
.cols {
  width: 100%;
  max-width: 1200px;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(12, 1fr);
}

.cols .col:nth-child(1) {
  grid-column: span 7;
}

.cols .col:nth-child(2) {
  grid-column: span 5;
}

.col h4 {
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .9;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--bg-blue);
}

.col h4::after {
  content: "";
  height: 2px;
  flex: 1 1 auto;
  border-radius: 2px;
  background: var(--yellow);
  opacity: .7;
}

.col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.col a {
  color: var(--bg-blue);
  text-decoration: none;
  opacity: .95;
}

.col a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.copy {
  opacity: .85;
  font-size: 20;
  text-align: center;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, .2);
  width: 100%;
  max-width: 1200px;
  color: var(--bg-blue);
}

.copy a {

  color: var(--bg-blue);
}

/* Footer responsive */
@media (max-width:900px) {

  .footer-sentinel {
    height: 45dvh;
    background: transparent;
  }

  /* zona de scroll previa */

  .footer-parallax {
    position: relative;
    width: 100%;
    height: 850px;
    overflow: hidden;
    color: var(--text-on-dark);
    background: white;

  }

  .row-center {
    grid-template-columns: 1fr;
  }

  .cols {
    grid-template-columns: 1fr;
  }

  .cols .col {
    grid-column: 1 / -1 !important;
  }
}

html.lenis {
  height: auto;
}

.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis-stopped {
  overflow: hidden;
}

.lenis-scrolling iframe {
  pointer-events: none;
}

/* Evita bloqueos globales */
html,
body {
  overflow: unset;
}

body {
  min-height: 100%;
}

/* en vez de height:100% */

.footer-element {
  box-shadow: -1px 10px 21px -1px rgba(0, 0, 0, 0.29);
  -webkit-box-shadow: -1px 10px 21px -1px rgba(0, 0, 0, 0.29);
  -moz-box-shadow: -1px 10px 21px -1px rgba(0, 0, 0, 0.29);
  height: 40px;
}


/* ===== LOADER ===== */
:root{
  --loader-bg: #0b0c10;
  --loader-fg: #ffffff;
  --loader-muted: #a8b0bb;
  --loader-track: rgba(255,255,255,0.15);
  --loader-fill: #ffffff; /* se anima con opacity/transform */
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 9999 !important;
  background:
    radial-gradient(1200px 800px at 10% 10%, rgba(255,255,255,0.06), transparent 60%),
    radial-gradient(1000px 700px at 90% 90%, rgba(255,255,255,0.05), transparent 60%),
    var(--loader-bg);
  color: var(--loader-fg);
  display: grid;
  place-items: center;
  overflow: hidden;
  clip-path: circle(140% at 50% 50%); /* animaremos a 0% para revelar */
}

.loader__inner{
  width: min(540px, 92vw);
  padding-inline: 8px;
  text-align: center;
}

.loader__brand{
  opacity: 0.92;
  transform-origin: center;
  margin-bottom: 24px;
}

.loader__bar{
  height: 6px;
  background: var(--loader-track);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

.loader__bar .loader__fill{
  position: absolute;
  inset: 0;
  background: var(--loader-fill);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform, opacity;
}

.loader__meta{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  font-size: 14px;
  letter-spacing: 0.3px;
}

.loader__percent{
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 16px;
}

.loader__note{
  color: var(--loader-muted);
}

/* Glows decorativos */
.loader__glow{
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  filter: blur(60px);
  opacity: 0.2;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
}
.loader__glow--a{ background: #47c9ff; top: -20vmax; left: -10vmax; }

/* Evita scroll mientras carga */
html.is-lock, body.is-lock { overflow: hidden; }

/* Prefiere menos movimiento: simplificar */
@media (prefers-reduced-motion: reduce){
  .loader__glow{ display: none; }
  .loader{ transition: opacity .3s ease; }
}
