/* ==========================================================================
   VP Studio — Landing
   Sistema de marca: blanco #FFFFFF · gris claro #F5F5F7 · gris #86868B
   negro #1D1D1F · acento #0071E3 · línea #E8E8ED
   Acentos secundarios (uso puntual): verde #30D158 · naranja #FF9F0A · violeta #BF5AF2
   ========================================================================== */

:root {
  --white: #FFFFFF;
  --gray-light: #F5F5F7;
  --gray: #86868B;
  --black: #1D1D1F;
  --accent: #0071E3;
  --line: #E8E8ED;

  --green: #30D158;
  --orange: #FF9F0A;
  --purple: #BF5AF2;

  /* Verde del logo (el puntito de acento). Fallback hex + oklch exacto del brand. */
  --logo-accent: #34a465;
  --logo-accent: oklch(0.68 0.16 148);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --container: 980px;
  --radius: 18px;
  --nav-h: 56px;
}

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

/* ==========================================================================
   Logo VP — monograma original (public/logo_vpstudio.png):
   “VP” geométrico, negro sobre transparente. Proporción ~1.94:1.
   ========================================================================== */

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Lenis (smooth scroll): cuando está activo desactiva el scroll-behavior nativo
   para que no pelee con la inercia. Sin JS/Lenis, el bloque de arriba sigue valiendo. */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--black);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Sin flash gris al tocar en iOS/Android; el feedback lo damos nosotros */
  -webkit-tap-highlight-color: transparent;
}

/* En pantallas táctiles el input de 16px evita el zoom automático de iOS al enfocar */
input, textarea, select, button { font-family: inherit; }

::selection { background: var(--accent); color: #fff; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  /* Respeta el notch / bordes curvos en iPhone (landscape sobre todo) */
  padding-left: max(28px, env(safe-area-inset-left));
  padding-right: max(28px, env(safe-area-inset-right));
}

/* ==========================================================================
   Loader
   ========================================================================== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.loader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

/* La marca en el loader: monograma grande, sobre el fondo blanco */
.vp-mark--loader {
  width: clamp(140px, 28vw, 220px);
  height: auto;
  display: block;
}

.loader__tag {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray);
  opacity: 0;
}

/* ==========================================================================
   Cursor custom
   ========================================================================== */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--black);
  pointer-events: none;
  z-index: 99;
  transform: translate(-50%, -50%);
  transition: width .25s ease, height .25s ease, background-color .25s ease, opacity .25s ease;
  mix-blend-mode: exclusion;
  background: #fff;
  opacity: 0;
}

.cursor.is-active { opacity: 1; }
.cursor.is-hover { width: 44px; height: 44px; }

@media (hover: none), (pointer: coarse) {
  .cursor { display: none; }

  /* En touch no hay hover ni cursor magnético: damos vida con feedback al presionar.
     Un micro-hundido inmediato hace que todo se sienta táctil y responsivo. */
  .btn, .nav__cta, .mobile-menu__wa, .card, .principle,
  .chip, .c-arrow, .c-dot, .cta__mail a {
    transition: transform .2s cubic-bezier(0.22, 1, 0.36, 1),
                background-color .25s ease, border-color .25s ease,
                color .25s ease, box-shadow .3s ease;
  }

  .btn:active,
  .nav__cta:active,
  .mobile-menu__wa:active,
  .c-arrow:active { transform: scale(0.95); }

  .card:active,
  .principle:active,
  .chip:active { transform: scale(0.98); }

  /* El hover del desktop no aplica en touch, así que el estado presionado
     toma el color de acento para dar la misma sensación de respuesta. */
  .chip:active { border-color: var(--gray); }
  .mobile-menu__link:active { color: var(--accent); }
}

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}

.nav.is-scrolled { border-bottom-color: var(--line); }

.nav--solid { border-bottom-color: var(--line); }

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  padding-left: max(28px, env(safe-area-inset-left));
  padding-right: max(28px, env(safe-area-inset-right));
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__logo { display: flex; align-items: center; gap: 9px; }

/* La marca en el nav: monograma VP (proporción horizontal) */
.nav__mark {
  width: auto;
  height: 28px;
  display: block;
}

/* Wordmark del nav: "STUDIO" en mayúsculas y espaciado, para que junto al
   ícono VP lea como el lockup de marca "VP STUDIO". */
.nav__name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--black);
  margin-left: 3px;
}

.nav__links { display: flex; gap: 28px; }

.nav__links a {
  font-size: 13.5px;
  color: var(--gray);
  transition: color .25s ease;
}
.nav__links a:hover { color: var(--black); }

.nav__cta {
  font-size: 13.5px;
  font-weight: 500;
  background: var(--accent);
  color: #fff;
  padding: 7px 16px;
  border-radius: 980px;
  transition: background-color .25s ease, transform .25s ease;
}
.nav__cta:hover { background: #0077ED; }

/* ==========================================================================
   Botones
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 980px;
  padding: 13px 28px;
  transition: background-color .3s ease, color .3s ease, transform .3s ease, box-shadow .3s ease;
  will-change: transform;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover {
  background: #0077ED;
  box-shadow: 0 8px 30px rgba(0, 113, 227, 0.35);
}

.btn--ghost { color: var(--accent); padding: 13px 10px; }
.btn--ghost .btn__arrow { transition: transform .3s ease; display: inline-block; }
.btn--ghost:hover .btn__arrow { transform: translateX(5px); }

.btn--big { font-size: 18px; padding: 16px 36px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 60px) 0 80px;
  overflow: hidden;
}

.hero__bg { position: absolute; inset: 0; pointer-events: none; }

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  opacity: 0.5;
  /* Capa propia de GPU: el parallax mueve la textura ya borrosa
     en vez de repintar el blur en cada frame (clave para que no trabe). */
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.hero__orb--a {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(0,113,227,0.16), transparent 65%);
  top: 8%; left: -140px;
}

.hero__orb--b {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(191,90,242,0.12), transparent 65%);
  bottom: 4%; right: -120px;
}

.hero__content { position: relative; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray);
  letter-spacing: 0.02em;
  border: 1px solid var(--line);
  border-radius: 980px;
  padding: 7px 16px;
  margin-bottom: 34px;
  background: rgba(255,255,255,0.6);
}

.hero__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.45); }
  50%      { box-shadow: 0 0 0 6px rgba(48, 209, 88, 0); }
}

.hero__title {
  font-size: clamp(44px, 8vw, 84px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin-bottom: 30px;
}

.hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.hero__title .line > * , .hero__title .line { will-change: transform; }

/* palabra rotativa */
.hero__swap-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.hero__swap {
  display: inline-block;
  color: var(--accent);
  transition: color .4s ease;
}

.hero__sub {
  font-size: 19px;
  color: var(--gray);
  max-width: 520px;
  margin: 0 auto 42px;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.hero__scrollhint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 38px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
}

.hero__scrollhint span {
  width: 3px; height: 8px;
  border-radius: 2px;
  background: var(--gray);
  animation: scrollhint 1.8s ease-in-out infinite;
}

@keyframes scrollhint {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  overflow: hidden;
  background: var(--white);
}

.marquee__track { display: flex; width: max-content; will-change: transform; }

.marquee__group {
  display: flex;
  align-items: center;
  gap: 42px;
  padding-right: 42px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  white-space: nowrap;
}

.m-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.m-dot--blue   { background: var(--accent); }
.m-dot--green  { background: var(--green); }
.m-dot--orange { background: var(--orange); }
.m-dot--purple { background: var(--purple); }

/* ==========================================================================
   Secciones
   ========================================================================== */
.section { padding: 140px 0; }
.section--alt { background: var(--gray-light); }

.section__label {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 18px;
}

.section__label--dark { color: #6EAFFF; }

.section__title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin-bottom: 64px;
}

.section__title--dark { color: #F5F5F7; }

/* ==========================================================================
   Cards de servicios
   ========================================================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 42px;
}

.card {
  --card-accent: var(--accent);
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px 30px;
  overflow: hidden;
  transition: border-color .35s ease, transform .35s ease, box-shadow .35s ease;
  will-change: transform;
}

.card--blue   { --card-accent: var(--accent); }
.card--purple { --card-accent: var(--purple); }
.card--orange { --card-accent: var(--orange); }

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%),
              color-mix(in srgb, var(--card-accent) 8%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}

.card:hover::before { opacity: 1; }

.card:hover {
  border-color: color-mix(in srgb, var(--card-accent) 40%, var(--line));
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(29, 29, 31, 0.07);
}

.card__icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--card-accent);
  background: color-mix(in srgb, var(--card-accent) 10%, transparent);
  margin-bottom: 22px;
  transition: transform .35s ease;
}

.card__icon svg { width: 24px; height: 24px; }

.card:hover .card__icon { transform: scale(1.08) rotate(-4deg); }

.card h3 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.card p { font-size: 15px; color: var(--gray); line-height: 1.55; }

.card__num {
  position: absolute;
  top: 24px; right: 26px;
  font-size: 13px;
  font-weight: 600;
  color: var(--line);
  letter-spacing: 0.05em;
  transition: color .35s ease;
}

.card:hover .card__num { color: var(--card-accent); }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: var(--black);
  border: 1px solid var(--line);
  border-radius: 980px;
  padding: 9px 18px;
  background: var(--white);
  transition: border-color .3s ease, transform .3s ease;
}

.chip:hover { border-color: var(--gray); transform: translateY(-2px); }

/* ==========================================================================
   Proceso (oscuro, pineado)
   ========================================================================== */
.process { background: #000; color: #F5F5F7; }

.process__pin {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 90px 0;
}

.process__layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 70px;
  align-items: start;
  width: 100%;
}

/* Sin sticky: la sección ya está pineada (queda fija), así que el título
   se mantiene quieto por sí solo. El sticky acá causaba el salto brusco. */
.process__head { position: static; }

.process__head .section__title { margin-bottom: 40px; }

.process__progress {
  width: 200px;
  height: 3px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 2px;
  overflow: hidden;
}

.process__bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--purple));
  border-radius: 2px;
  transform-origin: left center;
  transform: scaleX(0);
}

.process__steps { list-style: none; display: flex; flex-direction: column; }

.process__step {
  padding: 34px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0.28;
  transition: opacity .4s ease;
}

.process__step.is-active { opacity: 1; }

.process__step:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }

.process__num {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #6EAFFF;
  display: block;
  margin-bottom: 10px;
}

.process__step h3 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.process__step p {
  font-size: 16px;
  color: rgba(245, 245, 247, 0.62);
  max-width: 420px;
}

/* ==========================================================================
   Principios
   ========================================================================== */
.principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.principle {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px 30px 34px;
  overflow: hidden;
}

.principle__accent {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform .5s cubic-bezier(.25,.8,.25,1);
}

.principle:hover .principle__accent { transform: scaleY(1); }

.principle__accent--blue   { background: var(--accent); }
.principle__accent--purple { background: var(--purple); }
.principle__accent--orange { background: var(--orange); }
.principle__accent--green  { background: var(--green); }

.principle h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.principle p { font-size: 15px; color: var(--gray); line-height: 1.55; }

/* ==========================================================================
   CTA
   ========================================================================== */
.cta { padding: 170px 0; }

.cta__inner { text-align: center; }

.cta__title {
  font-size: clamp(38px, 6.5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.06;
  margin-bottom: 24px;
}

.cta__accent {
  background: linear-gradient(92deg, var(--accent), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cta__sub {
  font-size: 19px;
  color: var(--gray);
  max-width: 480px;
  margin: 0 auto 44px;
}

.cta__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.cta__mail { font-size: 15px; color: var(--gray); letter-spacing: 0.01em; }
.cta__mail a { color: var(--accent); }
.cta__mail a:hover { text-decoration: underline; }

/* --- Botón que despliega el formulario --- */
.cta__toggle {
  justify-content: center;
  border: none;
  cursor: pointer;
}
.cta__toggle-arrow {
  display: inline-block;
  transition: transform .45s cubic-bezier(0.22, 1, 0.36, 1);
}
.cta__toggle[aria-expanded="true"] .cta__toggle-arrow {
  transform: rotate(90deg);
}

/* --- Panel colapsable (solo se colapsa si hay JS) --- */
.cta__panel { overflow: hidden; }
.js .cta__panel {
  height: 0;
  opacity: 0;
  will-change: height;
}

/* --- Formulario de contacto --- */
.cta__form {
  max-width: 620px;
  margin: 28px auto 8px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form__field { display: flex; flex-direction: column; gap: 8px; }

.form__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink, #1D1D1F);
  letter-spacing: -0.01em;
}

.form__opt { color: var(--gray); font-weight: 400; }

.form__input {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink, #1D1D1F);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  transition: border-color .25s ease, box-shadow .25s ease;
}

.form__input::placeholder { color: var(--gray); }

.form__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}

.form__textarea { resize: vertical; min-height: 120px; }

.cta__submit {
  justify-content: center;
  width: 100%;
  border: none;
  cursor: pointer;
  margin-top: 4px;
}

.form__status {
  font-size: 15px;
  text-align: center;
  min-height: 20px;
  margin: 0;
}
.form__status.is-ok { color: #1a7f37; }
.form__status.is-error { color: #d92d20; }

@media (max-width: 560px) {
  .form__row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--line);
  padding: 54px 0 36px;
  padding-bottom: max(36px, calc(28px + env(safe-area-inset-bottom)));
  background: var(--gray-light);
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  padding-bottom: 36px;
}

.footer__brand { display: flex; align-items: center; gap: 12px; }

.nav__mark--footer { width: auto; height: 36px; }

.footer__name { font-size: 15px; font-weight: 600; }

.footer__tag {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
}

.footer__links { display: flex; gap: 22px; flex-wrap: wrap; }

.footer__links a {
  font-size: 13.5px;
  color: var(--gray);
  transition: color .25s ease;
}
.footer__links a:hover { color: var(--black); }

.footer__bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--gray);
}

.footer__copy { margin: 0; }

.footer__location {
  margin: 0;
  text-align: center;
  white-space: nowrap;
}

.footer__legal {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}

.footer__legal a {
  color: var(--gray);
  transition: color .25s ease;
}
.footer__legal a:hover { color: var(--black); }

/* ==========================================================================
   Páginas legales
   ========================================================================== */
.legal-page {
  padding: calc(var(--nav-h) + 72px) 0 96px;
  background: var(--white);
  min-height: 70vh;
}

.legal-page__header {
  max-width: 680px;
  margin-bottom: 48px;
}

.legal-page__eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 14px;
}

.legal-page__title {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.legal-page__updated {
  font-size: 14px;
  color: var(--gray);
}

.legal-page__body {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.legal-page__body > p,
.legal-page__body li {
  font-size: 16px;
  line-height: 1.65;
  color: #3a3a3c;
}

.legal-page__body h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  color: var(--black);
}

.legal-page__section { scroll-margin-top: calc(var(--nav-h) + 24px); }

.legal-page__body ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.legal-page__body li {
  padding-left: 18px;
  position: relative;
}

.legal-page__body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gray);
}

.legal-page__body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-page__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  font-size: 14px;
  color: var(--gray);
  transition: color .25s ease;
}
.legal-page__back:hover { color: var(--black); }

/* ==========================================================================
   Estados de animación (JS los resuelve; sin JS todo queda visible)
   ========================================================================== */
.js [data-reveal] { opacity: 0; transform: translateY(24px); }
.js .hero__title .line { visibility: hidden; }
.js [data-hero-fade] { opacity: 0; }
.js .vp-mark--loader { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .hero__title .line { visibility: visible; }
  .js [data-hero-fade] { opacity: 1; }
  .js .vp-mark--loader { opacity: 1; }
  .hero__dot, .hero__scrollhint span { animation: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .section { padding: 100px 0; }

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

  .process__layout { grid-template-columns: 1fr; gap: 40px; }
  .process__head { position: static; }
  .process__pin { min-height: 0; padding: 100px 0; }

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

/* ==========================================================================
   Hamburger
   ========================================================================== */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  transition: background .2s ease;
}
.nav__burger:hover { background: var(--gray-light); }
.nav__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .25s ease;
  transform-origin: center;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Menú mobile
   ========================================================================== */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  z-index: 49;
  background: rgba(255,255,255,0.97);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  padding: 28px 28px 32px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .3s ease;
}
.mobile-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu__links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 24px;
}
.mobile-menu__link {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--black);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  transition: color .2s ease;
}
.mobile-menu__link:last-child { border-bottom: none; }
.mobile-menu__link:hover { color: var(--accent); }

.mobile-menu__wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  background: var(--accent);
  padding: 11px 22px;
  border-radius: 980px;
  transition: background .25s ease;
}
.mobile-menu__wa:hover { background: #0077ED; }

.mobile-menu__overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 48;
  background: rgba(0,0,0,0.18);
  opacity: 0;
  /* Cerrado: invisible Y sin capturar toques. Sin esto, el overlay tapa
     toda la pantalla en mobile y ningún botón del cuerpo responde. */
  pointer-events: none;
  transition: opacity .3s ease;
}
.mobile-menu__overlay.is-open { opacity: 1; pointer-events: auto; }

/* ==========================================================================
   Carrusel mobile — viewport, track, UI
   ========================================================================== */

/* Viewport: oculto en desktop, visible en mobile via media query */
.c-viewport { display: contents; }

/* UI de navegación: oculto en desktop */
.c-ui { display: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .section { padding: 100px 0; }

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

  .process__layout { grid-template-columns: 1fr; gap: 40px; }
  .process__head { position: static; }
  .process__pin { min-height: 0; padding: 100px 0; }

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

  .footer__bottom {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 10px;
  }

  .footer__location { text-align: left; }

  .footer__legal { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }

  .hero__sub { font-size: 17px; }

  .section__title { margin-bottom: 44px; }

  .cta { padding: 90px 0; }

  .footer__top {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__bottom {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 10px;
  }

  .footer__location { text-align: left; }

  .footer__legal { justify-content: flex-start; }

  /* Mostrar menu mobile */
  .mobile-menu { display: block; }
  .mobile-menu__overlay { display: block; }

  /* ---- Carrusel: viewport ---- */
  .c-viewport {
    display: block;          /* activa el overflow hidden */
    overflow: hidden;
    /* Extiende hasta los bordes de la pantalla para peek limpio */
    margin: 0 -28px;
  }

  /* ---- Carrusel: track (GSAP anima su x) ---- */
  .cards.carousel,
  .principles.carousel {
    display: flex;
    flex-direction: row;
    gap: 16px;
    /* Padding izquierdo = margen visual del primer card.
       El ancho de cada card deja visible ~40px del siguiente (peek). */
    padding: 6px 28px 24px;
    will-change: transform;
    cursor: grab;
  }
  .cards.carousel:active,
  .principles.carousel:active { cursor: grabbing; }
  .principles.carousel { grid-template-columns: unset; }

  /* Ancho de cada card: viewport - 2×padding - espacio del peek */
  .cards.carousel .card,
  .principles.carousel .principle {
    flex: 0 0 calc(100vw - 80px);
    max-width: 320px;
  }

  /* ---- Carrusel: UI (dots + flechas) ---- */
  .c-ui {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding-top: 10px;
    margin-bottom: 36px;
  }

  .c-dots {
    display: flex;
    align-items: center;
    gap: 9px;
  }

  .c-dot {
    width: 7px;
    height: 7px;
    border-radius: 4px;
    background: var(--line);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: width .35s cubic-bezier(.4,0,.2,1), background .3s ease;
  }
  .c-dot.is-active {
    width: 24px;
    background: var(--accent);
  }

  .c-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--line);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--black);
    transition: border-color .25s ease, color .25s ease, transform .15s ease;
    padding: 0;
  }
  .c-arrow:hover  { border-color: var(--accent); color: var(--accent); }
  .c-arrow:active { transform: scale(0.88); }

  /* Chips en mobile: scroll horizontal con inercia */
  .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    padding-bottom: 8px;
    margin: 0 -28px;
    padding-left: 28px;
    padding-right: 28px;
    scrollbar-width: none;
  }
  .chip { scroll-snap-align: start; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex-shrink: 0; }
}
