/* ==========================================================================
   atomq.io — Estilos principales
   ========================================================================== */

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

:root {
  --white:    #ffffff;
  --off-white:#F7F5FC;
  --black:    #0D0B14;
  --ink:      #1A1730;
  --gray:     #6B6880;
  --gray-lt:  #A8A4BC;
  --border:   rgba(100,80,180,0.10);
  --purple:   #7C5CBF;
  --purple-dk:#5B3FA8;
  --purple-lt:#A688D8;
  --purple-xs:#EDE8F8;
  --purple-bg:#F3EFFC;
  --dark-bg:  #100A24;
  --font:     'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-display: 'Fraunces', serif;
  --display:  'Fraunces', serif;
}

/* ── Base ───────────────────────────────────── */
html { scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  overflow-x: hidden;
  cursor: none;
}

/* ── Cursor ──────────────────────────────────── */
#cursor {
  width: 10px; height: 10px;
  background: var(--purple);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width .3s cubic-bezier(.4,0,.2,1),
              height .3s cubic-bezier(.4,0,.2,1),
              background .3s, opacity .3s;
}
#cursor.expand { width: 52px; height: 52px; background: rgba(124,92,191,.15); }
#cursor.over-dark { background: rgba(255,255,255,.9); }

/* ── Scroll progress ────────────────────────── */
#scrollProgress {
  position: fixed; top: 0; left: 0; height: 2px;
  background: linear-gradient(90deg, var(--purple-dk), var(--purple-lt));
  width: 0; z-index: 300; transition: width .08s linear;
}

/* ── Navbar (#mainNav) ──────────────────────── */
header {
  position: relative;
  z-index: 100;
}

#mainNav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 48px;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#mainNav.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--border);
  padding: 16px 48px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

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

.logo-text {
  font-family: var(--display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.02em;
  line-height: 1;
  background: linear-gradient(120deg, #7B5CBF 0%, #9B7DD4 45%, #C4B0E8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#mainNav.scrolled .logo-text {
  background: linear-gradient(120deg, #5B3FA8 0%, #7C5CBF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s ease;
}

#mainNav.scrolled .nav-links a {
  color: var(--gray);
}

.nav-links a:hover {
  color: var(--purple-lt);
}

#mainNav.scrolled .nav-links a:hover {
  color: var(--purple);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--white);
  background: var(--purple);
  text-decoration: none;
  padding: 10px 20px 9px;
  border-radius: 100px;
  transition: background 0.22s ease, transform 0.2s ease, box-shadow 0.22s ease;
  box-shadow: 0 4px 16px rgba(124, 92, 191, 0.28);
}
.nav-cta:hover {
  background: var(--purple-dk);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(124, 92, 191, 0.35);
}
.nav-cta svg { transition: transform .3s; }
.nav-cta:hover svg { transform: translateX(4px); }

/* Loader */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  opacity: 1;
  visibility: visible;
}

.loader.hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.loader[style*="display: none"] {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

.loader-text {
  font-family: var(--font-body);
  font-size: 50px;
  font-weight: 300;
  color: var(--white);
  letter-spacing: 2px;
}

/* Navigation - Clean Huge Inc Style */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  background: transparent !important;
  transition: var(--transition);
  backdrop-filter: none;
}

.nav-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo-link {
  display: block;
  line-height: 0;
}

.nav-logo-img {
  display: block;
  height: 40px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

.nav-logo-link:hover .nav-logo-img {
  opacity: 0.9;
  transform: scale(1.02);
}

.menu-btn,
.lets-talk-btn {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  border: none;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 16px 30px 16px 30px;
  cursor: pointer;
  transition: var(--transition);
  border-radius: 4px;
}

.menu-btn:hover,
.lets-talk-btn:hover {
  opacity: 0.8;
}

/* Hero Section
* Estructura de alturas:
* - .hero-section: 100vh, overflow hidden, fondo negro (se ve si el background se mueve).
* - .hero-background: contenedor de las imágenes; si height: 100% y el parallax lo mueve
*   hacia arriba (y: -100), en la parte inferior del hero queda vacío y se ve el negro.
* - Solución: .hero-background más alto que el section (100% + 100px) para que al hacer
*   parallax siga habiendo imagen en la zona visible y no se vea el negro.
*/
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  /* Más alto que el section para que el parallax (y: -100) no deje negro abajo */
  height: calc(100% + 100px);
  min-height: calc(100vh + 100px);
  z-index: 1;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.8s cubic-bezier(0.4, 0, 0.2, 1), transform 4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-image.active {
  opacity: 1;
  transform: scale(1);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
}

.text-line {
  overflow: hidden;
  line-height: 1.2;
  position: relative;
}

.text-word {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(40px, 8vw, 120px);
  font-weight: 500;
  color: var(--white);
  letter-spacing: -0.02em;
  transform: translateY(100%);
  opacity: 0;
  will-change: transform, opacity;
}

/* Subtítulo del hero: blanco, combina con el título */
.hero-subtitle {
  margin: 0 auto;
  margin-top: 2rem;
  padding-left: 20px;
  padding-right: 20px;
  font-family: var(--font-body);
  font-size: clamp(18px, 1.8vw, 30px);
  font-weight: 400;
  line-height: 1.55;
  color: var(--white);
  letter-spacing: 0.01em;
  max-width: 800px;
  text-align: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
}

.hero-subtitle.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-indicator {
  font-family: var(--font-body);
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  color: var(--white);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0;
  white-space: nowrap;
}

.scroll-indicator.visible {
  opacity: 1;
}

.scroll-line {
  width: 1px;
  height: 20px;
  background: var(--white);
}

@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateX(-50%) translateY(20px);
  }
  to {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
  }
}



.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; letter-spacing: .04em;
  color: var(--white); background: var(--purple);
  text-decoration: none; padding: 14px 28px 13px;
  border-radius: 100px;
  box-shadow: 0 6px 24px rgba(124,92,191,.32);
  transition: background .25s, transform .2s, box-shadow .25s;
}
.btn-primary:hover {
  background: var(--purple-dk);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(124,92,191,.38);
}
.btn-primary svg { transition: transform .3s; }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; letter-spacing: .04em;
  color: var(--purple); border: 1.5px solid rgba(124,92,191,.3);
  text-decoration: none; padding: 14px 28px 13px;
  border-radius: 100px;
  transition: border-color .25s, background .25s, transform .2s;
}
.btn-ghost:hover {
  border-color: var(--purple);
  background: var(--purple-xs);
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--gray-lt);
  animation: fadeInUp .8s 1.5s both;
}
.hero-scroll span { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; }
.scroll-arrow {
  width: 26px; height: 26px; border: 1.5px solid var(--border);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  animation: bounceDown 1.8s ease-in-out infinite;
}
@keyframes bounceDown {
  0%,100% { transform: translateY(0); }
  50%  { transform: translateY(5px); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateX(-50%) translateY(16px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── Reveal (scroll animations) ─────────────── */
.reveal {
  opacity: 0; transform: translateY(48px);
  transition: opacity .9s cubic-bezier(.16,1,.3,1),
              transform .9s cubic-bezier(.16,1,.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left  { transform: translateX(-60px); }
.reveal-left.visible { transform: translateX(0); }
.reveal-right { transform: translateX(60px); }
.reveal-right.visible { transform: translateX(0); }
.d1 { transition-delay: .08s; }
.d2 { transition-delay: .18s; }
.d3 { transition-delay: .28s; }
.d4 { transition-delay: .38s; }
.d5 { transition-delay: .48s; }

/* ── Section label ──────────────────────────── */
.label {
  display: inline-block;
  font-size: 10px; font-weight: 700; letter-spacing: .24em;
  text-transform: uppercase; color: var(--purple);
  margin-bottom: 20px;
}

/* ── Servicios ──────────────────────────────── */
.services-wrap {
  background: var(--white);
  border-top: 1px solid var(--border);
}
.services-intro {
  padding: 120px 48px 72px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end;
}
.services-intro h2 {
  font-size: clamp(38px, 5vw, 72px);
  font-weight: 800; letter-spacing: -.035em; line-height: 1.04;
}
.services-intro h2 .faded { color: var(--purple-dk); }
.services-intro p {
  font-size: 17px; line-height: 1.7; color: var(--gray);
  max-width: 400px; justify-self: end; align-self: end;
}

/* Services intro: mismo formato que process-intro (una columna, título grande en una línea, p debajo) */
.services-intro.services-intro-block-wrap {
  grid-template-columns: 1fr;
  align-items: start;
}
.services-intro-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.services-intro-block h2 {
  font-size: clamp(48px, 7vw, 110px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  white-space: nowrap;
}
.services-intro-block .reveal.d2 {
  margin-top: 0;
}

/* reveal d2: pegado a la izquierda, mayor tamaño, mayúsculas (estilo scroll hero) */
.services-intro p.reveal.d2 {
  justify-self: start;
  align-self: end;
  text-align: left;
  font-family: var(--font-body);
  font-size: clamp(14px, 1.4vw, 20px);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.5;
  max-width: none;
}

/* Grid 2×2: colores intercalados claro–oscuro (1:claro 2:oscuro 3:claro 4:oscuro) */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
}

.sc {
  position: relative;
  min-height: 58vh;
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  cursor: none;
  transition: background .4s;
}

/* Alternancia: claro → oscuro → claro → oscuro (en grid y al apilar) */
.sc-light { background: var(--purple-bg); border: 1px solid var(--border); }
.sc-light:hover { background: #EDE8FA; }
.sc-dark { background: var(--dark-bg); }

.sc-bg-image {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform .9s cubic-bezier(.16,1,.3,1);
}
.sc:hover .sc-bg-image { transform: scale(1.05); }
.sc-dark .sc-bg-image { filter: brightness(.25) saturate(.5); }

.sc-1 .sc-bg-image { background-image: url('https://images.unsplash.com/photo-1677442135703-1787eea5ce01?w=900&q=80&fit=crop'); }
.sc-2 .sc-bg-image { background-image: url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?w=900&q=80&fit=crop'); }
.sc-3 .sc-bg-image { background-image: url('https://images.unsplash.com/photo-1498049794561-7780e7231661?w=900&q=80&fit=crop'); }
.sc-4 .sc-bg-image { background-image: url('https://images.unsplash.com/photo-1559136555-9303baea8ebd?w=900&q=80&fit=crop'); }

.sc-light .sc-bg-image::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(243,239,252,.96) 40%, rgba(237,232,248,.7) 100%);
}

/* Overlay oscuro en tarjetas dark para que el texto blanco siempre se lea */
.sc-dark .sc-bg-image::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(16,10,36,.92) 0%, rgba(16,10,36,.6) 100%);
}

.sc-inner {
  position: relative;
  z-index: 2;
}

.sc-num {
  font-size: 11px; font-weight: 700; letter-spacing: .2em;
  margin-bottom: 20px;
}
.sc-light .sc-num { color: var(--purple); }
.sc-dark  .sc-num { color: rgba(255,255,255,.5); }

.sc-title {
  font-size: clamp(22px, 2.2vw, 32px); font-weight: 700;
  letter-spacing: -.02em; line-height: 1.18; margin-bottom: 14px;
}
.sc-light .sc-title { color: var(--ink); }
.sc-dark  .sc-title { color: #fff; }

.sc-desc { font-size: 18px; line-height: 1.7; max-width: 380px; }
.sc-light .sc-desc { color: var(--gray); }
.sc-dark  .sc-desc { color: rgba(255,255,255,.85); }

.sc-arrow {
  margin-top: 32px; display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  transition: gap .3s, color .25s;
}
.sc-light .sc-arrow { color: var(--purple); }
.sc-dark  .sc-arrow { color: rgba(255,255,255,.4); }
.sc:hover .sc-arrow { gap: 14px; }
.sc-light:hover .sc-arrow { color: var(--purple-dk); }
.sc-dark:hover  .sc-arrow { color: #fff; }

/* ── Tagline: "Somos tu partner de Transformación Digital" ── */
.tagline-section {
  padding: 120px 48px 140px;
  border-top: 1px solid var(--border);
  background: var(--white);
  overflow: hidden;
}

.tagline-heading {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(36px, 5.5vw, 88px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--ink);
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25em;
}

.tagline-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.tagline-word.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .tagline-section { padding: 80px 24px 100px; }
  .tagline-heading { gap: 0.2em; }
}

/* ── Partner / Misión ───────────────────────── */
.partner {
  padding: 140px 48px;
  border-top: 1px solid var(--border);
  overflow: hidden;
}
.partner .label { margin-bottom: 32px; }
.partner-line {
  font-size: clamp(34px, 5.2vw, 76px);
  font-weight: 800; letter-spacing: -.035em; line-height: 1.08;
  overflow: hidden;
}
.partner-line .line-inner {
  display: block;
  transform: translateY(102%);
  transition: transform .95s cubic-bezier(.16,1,.3,1);
}
.partner-line .line-inner.visible { transform: translateY(0); }
.partner-line .hl {
  font-family: var(--display); font-style: italic;
  background: linear-gradient(110deg, var(--purple-dk) 0%, var(--purple-lt) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.partner-line .muted { color: var(--gray-lt); }

/* ── Proceso ────────────────────────────────── */
.process-wrap {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, #F8F6FC 0%, #EDE8F8 100%);
}
/* Intro proceso: título en una línea + párrafo justo abajo */
.services-intro.process-intro {
  grid-template-columns: 1fr;
  align-items: start;
}
.process-intro-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.process-intro-block h2 {
  font-size: clamp(48px, 7vw, 110px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  white-space: nowrap;
}
.process-intro-block .reveal.d2 {
  margin-top: 0;
}

.process-header {
  padding: 100px 48px 64px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end;
}
.process-header h2 {
  font-size: clamp(52px, 6.5vw, 96px);
  font-weight: 800; letter-spacing: -.04em; line-height: 1.02;
}
.process-header p {
  font-size: 17px; line-height: 1.7; color: var(--gray);
  max-width: 360px; align-self: end; justify-self: end;
}

.process-steps { padding: 0 0 80px; }

.pstep {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 0;
  padding: 52px 48px;
  border-top: 1px solid var(--border);
  cursor: none;
  overflow: hidden;
  transition: background .35s;
}
.pstep::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: linear-gradient(to right, rgba(124,92,191,.06), transparent);
  transition: width .5s cubic-bezier(.16,1,.3,1);
}
.pstep:hover::before { width: 100%; }

.pstep-num {
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
  color: var(--purple); padding-top: 6px;
}
.pstep-name {
  font-size: clamp(34px, 3.8vw, 60px); font-weight: 800;
  letter-spacing: -.035em; line-height: 1.08;
  color: var(--ink);
}
.pstep-name em {
  font-style: normal; color: var(--gray-lt);
}
.pstep-desc {
  font-size: 20px; line-height: 1.72; color: var(--gray);
  padding-left: 40px; padding-top: 6px;
}

/* Texto morado en fila propia, todo el ancho */
.pstep-desc.pstep-desc-accent {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 100%;
  max-width: none;
  padding-left: 48px;
  padding-right: 48px;
  padding-top: 12px;
  margin-top: 0;
  color: var(--purple);
  white-space: normal;
  word-break: normal;
}

/* ── CTA ─────────────────────────────────────── */
.cta-section {
  position: relative; min-height: 100vh;
  background: var(--dark-bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 80px 48px;
  overflow: hidden;
}

.cta-orb {
  position: absolute; border-radius: 50%;
  filter: blur(100px); pointer-events: none;
}
.cta-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(124,92,191,.35) 0%, transparent 70%);
  top: -200px; left: 50%; transform: translateX(-50%);
  animation: orbPulse 8s ease-in-out infinite;
}
.cta-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(91,63,168,.25) 0%, transparent 70%);
  bottom: -100px; right: 10%;
  animation: orbPulse 6s ease-in-out infinite reverse;
}
@keyframes orbPulse {
  0%,100% { transform: translateX(-50%) scale(1); opacity: .8; }
  50%  { transform: translateX(-50%) scale(1.15); opacity: 1; }
}
.cta-orb-2 { animation: orbPulse2 6s ease-in-out infinite; }
@keyframes orbPulse2 {
  0%,100% { transform: scale(1); opacity: .6; }
  50%  { transform: scale(1.2); opacity: 1; }
}

.cta-label {
  font-size: 11px; font-weight: 600; letter-spacing: .24em;
  text-transform: uppercase; color: var(--purple-lt);
  margin-bottom: 44px; position: relative; z-index: 2;
}
.cta-title {
  font-size: clamp(30px, 7vw, 96px);
  font-weight: 800; letter-spacing: -.04em; line-height: 1.02;
  color: #fff; position: relative; z-index: 2;
}
.cta-title .word {
  display: inline-block; overflow: hidden; vertical-align: bottom;
}
.cta-title .word-inner {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1s cubic-bezier(.16,1,.3,1);
}
.cta-title .word-inner.visible { transform: translateY(0); }
.cta-sub {
  font-size: clamp(38px, 6vw, 84px);
  font-weight: 800; letter-spacing: -.04em; line-height: 1.02;
  font-family: var(--display); font-style: italic;
  background: linear-gradient(120deg, var(--purple-lt) 0%, #D8CBFC 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative; z-index: 2;
  margin-bottom: 64px;
}

.cta-btn {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 15px; font-weight: 600; letter-spacing: .04em;
  color: var(--ink); background: #fff;
  text-decoration: none; padding: 18px 36px 17px;
  border-radius: 100px;
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
  transition: background .25s, color .25s, transform .2s, box-shadow .25s;
}
.cta-btn:hover {
  background: var(--purple-xs); color: var(--purple-dk);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,.3);
}
.cta-btn svg { transition: transform .3s; }
.cta-btn:hover svg { transform: translateX(4px); }

/* Botón CTA dentro de partner-cta: fondo morado, letra blanca */
.partner-cta .cta-btn {
  background: var(--purple) !important;
  color: var(--white) !important;
  box-shadow: 0 4px 20px rgba(124, 92, 191, 0.35);
}
.partner-cta .cta-btn:hover {
  background: var(--purple-dk) !important;
  color: var(--white) !important;
  box-shadow: 0 8px 28px rgba(124, 92, 191, 0.4);
}

/* ── Partner CTA (entre Servicios y Proceso) ─── */
.partner-cta {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 80px 48px 88px;
  text-align: center;
}
.partner-cta-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.partner-cta-title {
  margin: 0 0 0.1em;
  font-size: clamp(30px, 5.5vw, 96px);
  line-height: 1.08;
  text-align: center;
}
/* Estilo "Listo para transformar tu empresa": bold sans-serif */
.partner-cta-bold {
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
}
/* Estilo "Hablemos": italic display, gradiente morado */
.partner-cta-italic {
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--purple-dk) 0%, var(--purple-lt) 50%, #D8CBFC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.partner-cta-btn {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--white);
  background: var(--purple);
  text-decoration: none;
  padding: 16px 32px 15px;
  border-radius: 100px;
  box-shadow: 0 4px 20px rgba(124, 92, 191, 0.25);
  transition: background .25s, transform .2s, box-shadow .25s;
}
.partner-cta-btn:hover {
  background: var(--purple-dk);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(124, 92, 191, 0.3);
}
@media (max-width: 900px) {
  .partner-cta { padding: 56px 24px 64px; }
}

/* ── Footer ─────────────────────────────────── */
footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 40px 48px 32px;
}
.footer-top {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-brand .logo-text-sm {
  font-family: var(--display); font-weight: 700; font-size: 24px;
  letter-spacing: -.01em; margin: 0; display: block;
  background: linear-gradient(120deg, #7B5CBF 0%, #C4B0E8 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-tagline {
  font-size: 14px; line-height: 1.5; color: var(--gray);
  margin: 0; max-width: 280px;
}
.footer-col.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}
.footer-col h4 {
  font-size: 10px; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gray-lt); margin: 0;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0; }
.footer-col a {
  font-size: 14px; color: var(--gray);
  text-decoration: none; transition: color .2s;
}
.footer-col a:hover { color: var(--purple); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 20px; flex-wrap: wrap; gap: 16px;
}
.footer-bottom p { font-size: 13px; color: var(--gray-lt); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { font-size: 13px; color: var(--gray-lt); text-decoration: none; transition: color .2s; }
.footer-legal a:hover { color: var(--purple); }

/* ── Responsive ────────────────────────────── */
@media (max-width: 900px) {
  #mainNav { padding: 18px 24px; }
  #mainNav.scrolled { padding: 14px 24px; }
  .nav-links { display: none; }
  .logo-img { height: 30px; }
  .services-intro, .process-header { grid-template-columns: 1fr; padding: 72px 24px 48px; }
  .services-intro p, .process-header p { justify-self: start; max-width: 100%; }
  .process-intro-block h2,
  .services-intro-block h2 { white-space: normal; }
  /* Una columna: se apilan en orden 1,2,3,4 = claro, oscuro, claro, oscuro */
  .services-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .sc { min-height: 52vh; padding: 40px 24px; }
  .partner { padding: 90px 24px; }
  .pstep { grid-template-columns: 48px 1fr; padding: 40px 24px; }
  .pstep-name { font-size: clamp(26px, 6vw, 38px); min-width: 0; }
  .pstep-desc { grid-column: 2; padding-left: 0; padding-top: 10px; font-size: 17px; min-width: 0; word-wrap: break-word; }
  .pstep-desc.pstep-desc-accent { grid-column: 1 / -1; grid-row: 2; padding-left: 24px; padding-right: 24px; }
  .cta-section { padding: 64px 24px; }
  .footer-top { gap: 1.5rem; padding-bottom: 24px; }
  footer { padding: 32px 24px 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 520px) {
  .footer-top { flex-direction: column; align-items: flex-start; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-content { padding-left: 28px; padding-right: 28px; }
  .hero-subtitle {
    padding-left: 20px;
    padding-right: 20px;
    border-left: 5px solid var(--white);
    border-right: 5px solid var(--white);
  }
  .pstep { padding: 32px 20px; }
  .pstep-name { font-size: clamp(22px, 7vw, 28px); }
  .pstep-desc { font-size: 15px; }
}
