/* =========================================================
   NOVA · Marketing Agency Landing
   styles.css — cream + green + black premium edition
   ========================================================= */

/* ---------- 1. Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root {
  /* Colors */
  --bg: #f1f0e4;
  --dark: #0a0a0a;
  --dark-soft: #181818;
  --accent: #7dd48f;
  --accent-dark: #5cb872;
  --text-dim: rgba(10, 10, 10, 0.55);
  --border: rgba(10, 10, 10, 0.12);
  --border-strong: rgba(10, 10, 10, 0.22);

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;

  /* Layout */
  --container: 1320px;
  --radius: 20px;
  --radius-sm: 12px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--dark);
  line-height: 1.55;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font: inherit; outline: none; border: none; }
ul { list-style: none; }

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

/* ---------- 2. Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark);
}

.section-head {
  text-align: left;
  max-width: 900px;
  margin: 0 0 80px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-top: 18px;
}

.section-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

/* Pill — rectángulo verde para palabra clave */
.pill {
  display: inline-block;
  background: var(--accent);
  color: var(--dark);
  padding: 0 0.12em;
  margin: 0 -0.02em;
  border-radius: 6px;
  line-height: 0.8;
  font-style: normal;
  transform: translateY(-0.03em);
  box-shadow: 0 10px 32px -10px rgba(125, 212, 143, 0.45);
}

.pill-sm {
  display: inline-block;
  background: var(--accent);
  color: var(--dark);
  padding: 0 0.2em;
  border-radius: 8px;
  line-height: 1;
}

.pill-lg {
  display: inline-block;
  background: var(--accent);
  color: var(--dark);
  padding: 0 0.15em;
  border-radius: 0.1em;
  line-height: 0.92;
  font-style: italic;
  font-family: var(--font-serif);
  font-weight: 400;
}

/* ---------- 3. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 16px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(.22,1,.36,1),
              background 0.4s ease, color 0.4s ease,
              border-color 0.4s ease, box-shadow 0.4s ease;
  will-change: transform;
  white-space: nowrap;
}

.btn-sm { padding: 11px 18px; font-size: 0.82rem; gap: 8px; }
.btn-lg { padding: 20px 32px; font-size: 1rem; }

.btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--dark);
  font-size: 0.85rem;
  transition: transform 0.4s cubic-bezier(.22,1,.36,1);
}

.btn-dark {
  background: var(--dark);
  color: var(--bg);
}
.btn-dark:hover {
  transform: translateY(-2px);
  background: #1a1a1a;
}
.btn-dark:hover .btn-arrow {
  transform: rotate(45deg);
}

.btn-ghost-dark {
  background: transparent;
  color: var(--dark);
  border-color: var(--border-strong);
}
.btn-ghost-dark:hover {
  background: var(--dark);
  color: var(--bg);
  border-color: var(--dark);
  transform: translateY(-2px);
}

.btn-green {
  background: var(--accent);
  color: var(--dark);
}
.btn-green:hover {
  transform: translateY(-2px);
  background: #92dca2;
  box-shadow: 0 14px 40px rgba(125, 212, 143, 0.35);
}
.btn-green .btn-arrow {
  background: var(--dark);
  color: var(--accent);
}
.btn-green:hover .btn-arrow {
  transform: rotate(45deg);
}

/* ---------- 4. Status pill ---------- */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
}

.status-pill-light {
  background: rgba(241, 240, 228, 0.1);
  border-color: rgba(241, 240, 228, 0.2);
  color: var(--bg);
}

.status-dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
}
.status-dot::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.4;
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* ---------- 5. Navbar — floating glass pill ---------- */
.navbar {
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  pointer-events: none;
  transition: top 0.5s cubic-bezier(.22,1,.36,1);
}

.nav-pill {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px 9px 22px;
  background: rgba(241, 240, 228, 0.55);
  border: 1px solid rgba(10, 10, 10, 0.08);
  border-radius: 999px;
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 -1px 0 rgba(10, 10, 10, 0.04) inset,
    0 20px 50px -20px rgba(10, 10, 10, 0.18),
    0 6px 24px -8px rgba(10, 10, 10, 0.08);
  transition: background 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
  position: relative;
  overflow: hidden;
}

/* Mirror sheen effect */
.nav-pill::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.08) 38%,
    rgba(255, 255, 255, 0) 55%,
    rgba(255, 255, 255, 0.04) 100%
  );
  pointer-events: none;
  mix-blend-mode: screen;
}

.navbar.is-scrolled .nav-pill {
  background: rgba(241, 240, 228, 0.78);
  border-color: rgba(10, 10, 10, 0.12);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 -1px 0 rgba(10, 10, 10, 0.05) inset,
    0 24px 60px -20px rgba(10, 10, 10, 0.22),
    0 10px 30px -8px rgba(10, 10, 10, 0.12);
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
  padding-right: 14px;
  border-right: 1px solid rgba(10, 10, 10, 0.12);
}
.logo-dot {
  color: var(--accent);
  font-size: 0.7em;
  margin-left: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
  z-index: 1;
}
.nav-links a {
  position: relative;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.35s ease, background 0.35s ease;
}
.nav-links a::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(10, 10, 10, 0.06);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(.22,1,.36,1);
}
.nav-links a:hover::before { opacity: 1; transform: scale(1); }

.nav-cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 18px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--bg);
  background: var(--dark);
  border-radius: 999px;
  transition: transform 0.4s cubic-bezier(.22,1,.36,1), background 0.4s ease;
}
.nav-cta:hover { background: #1a1a1a; transform: translateY(-1px); }
.nav-cta-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--dark);
  font-size: 0.72rem;
  transition: transform 0.4s cubic-bezier(.22,1,.36,1);
}
.nav-cta:hover .nav-cta-arrow { transform: rotate(45deg); }

/* ---------- 6. Hero — centered, harmonized with nav pill ---------- */
.hero {
  position: relative;
  padding: 150px 0 140px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ----- Decorative background ----- */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.hero-glow {
  position: absolute;
  top: -15%;
  left: 50%;
  width: 1100px;
  height: 1100px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125, 212, 143, 0.28) 0%, rgba(125, 212, 143, 0.08) 38%, transparent 65%);
  filter: blur(40px);
}

/* ----- Inner centered stack ----- */
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 44px;
}

/* ----- Title ----- */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 12.5vw, 11rem);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -0.045em;
  text-transform: lowercase;
  margin: 0;
  max-width: 1200px;
}

.hero-title .line {
  display: block;
  overflow: hidden;
  padding: 0.05em 0;
}
.hero-title .word { display: inline-block; }

.hero-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  padding-right: 0.05em;
}

.hero-title sup {
  font-family: var(--font-sans);
  font-size: 0.25em;
  font-weight: 500;
  vertical-align: super;
  color: var(--accent-dark);
  margin-left: 0.1em;
}

/* Letras divididas por JS */
.split-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(110%);
  will-change: transform, opacity;
}

/* ----- Meta + CTA (centered row) ----- */
.hero-meta {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.hero-meta small {
  font-size: 0.85rem;
  color: var(--text-dim);
}
.hero-meta sup {
  color: var(--accent-dark);
  font-weight: 600;
}
.hero-loc {
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.72rem !important;
  padding-left: 24px;
  position: relative;
}
.hero-loc::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 12px;
  height: 1px;
  background: var(--border-strong);
}

.hero-cta-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Spinning badge */
.spin-badge {
  position: absolute;
  top: 60px;
  right: 0;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spin-badge-svg {
  width: 100%;
  height: 100%;
  animation: spinSlow 18s linear infinite;
}

.spin-badge-svg text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.18em;
  fill: var(--dark);
}

.spin-badge-center {
  position: absolute;
  width: 50px;
  height: 50px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--dark);
  animation: bounceSoft 3s ease-in-out infinite;
}

@keyframes spinSlow {
  to { transform: rotate(360deg); }
}

@keyframes bounceSoft {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.scroll-line {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--dark), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
.scroll-indicator small {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.4); opacity: 0.4; }
}

/* ---------- 7. Marquee ---------- */
.marquee {
  background: var(--dark);
  color: var(--bg);
  padding: 28px 0;
  overflow: hidden;
  border-top: 1px solid var(--dark);
  border-bottom: 1px solid var(--dark);
}

.marquee-italic {
  background: var(--bg);
  color: var(--dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 40px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 500;
  will-change: transform;
}

.marquee-italic .marquee-track {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}

.marquee-track span {
  display: inline-block;
}
.marquee-track .dot {
  color: var(--accent);
  font-size: 0.6em;
}

/* ---------- 8. Intro / Ticker ---------- */
.intro {
  padding: 140px 0;
}

.intro-inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 60px;
  align-items: start;
}

.intro-text {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.018em;
  max-width: 920px;
}
.intro-text em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

/* Rotating word ticker */
.ticker {
  display: inline-block;
  position: relative;
  overflow: hidden;
  vertical-align: bottom;
  height: 1.18em;
  line-height: 1.18;
}
.ticker-track {
  display: block;
  will-change: transform;
}
.ticker-track span {
  display: block;
  background: var(--accent);
  color: var(--dark);
  padding: 0 0.32em;
  border-radius: 8px;
  white-space: nowrap;
  line-height: 1.18;
  font-style: normal;
}

/* ---------- 9. Servicios — horizontal expanding accordion ---------- */
.servicios {
  padding: 140px 0;
}

.services-stage {
  display: flex;
  gap: 12px;
  height: 580px;
  width: 100%;
}

.service-panel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  background: var(--dark);
  color: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition:
    flex-grow 0.9s cubic-bezier(.76,0,.24,1),
    background 0.6s ease;
  will-change: flex-grow;
}

.service-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(125, 212, 143, 0.18), transparent 55%),
    linear-gradient(180deg, #111 0%, #0a0a0a 100%);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.service-panel.is-active {
  flex: 7 1 0;
}
.service-panel.is-active::before { opacity: 1; }

/* ---- Collapsed state (vertical label) ---- */
.service-collapsed {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 34px 18px;
  opacity: 1;
  transition: opacity 0.45s ease;
}
.service-panel.is-active .service-collapsed {
  opacity: 0;
  pointer-events: none;
}

.service-num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.service-vertical {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bg);
  white-space: nowrap;
}

.service-panel:hover:not(.is-active) .service-vertical {
  color: var(--accent);
}

/* ---- Expanded state (full content) ---- */
.service-expanded {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 44px 46px 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease 0.15s;
}

.service-panel.is-active .service-expanded {
  opacity: 1;
  pointer-events: auto;
}

.service-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.service-num-big {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(125, 212, 143, 0.12);
  border: 1px solid rgba(125, 212, 143, 0.32);
  border-radius: 16px;
  color: var(--accent);
  flex-shrink: 0;
}
.service-icon svg { width: 26px; height: 26px; }

.service-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.028em;
  margin-top: auto;
}

.service-desc {
  color: rgba(241, 240, 228, 0.6);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 440px;
  margin-top: 16px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.service-tags li {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid rgba(241, 240, 228, 0.2);
  border-radius: 999px;
  color: rgba(241, 240, 228, 0.8);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  align-self: flex-start;
}
.service-link .arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--dark);
  font-size: 0.95rem;
  transition: transform 0.45s cubic-bezier(.22,1,.36,1);
}
.service-panel.is-active:hover .service-link .arrow {
  transform: translate(4px, -4px) rotate(-10deg);
}

/* ---------- 10. Big Word Reveal ---------- */
.reveal-word {
  padding: 160px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.reveal-word-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.reveal-intro,
.reveal-outro {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  color: var(--text-dim);
  max-width: 600px;
  line-height: 1.35;
  font-weight: 400;
}
.reveal-intro em,
.reveal-outro em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--dark);
}

.big-word {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(5rem, 22vw, 22rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.85;
  margin: 20px 0;
}

.big-word-base {
  display: inline-block;
  -webkit-text-stroke: 2px var(--dark);
  color: transparent;
}

.big-word-fill {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: inline-block;
  color: var(--accent);
  clip-path: inset(0 100% 0 0);
}

/* ---------- 11. Storytelling pinned ---------- */
.story {
  background: var(--dark);
  color: var(--bg);
  position: relative;
  border-top: 1px solid var(--dark);
  border-bottom: 1px solid var(--dark);
}

.story-sticky {
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.story-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
}

.story-left .eyebrow {
  color: var(--accent);
  margin-bottom: 30px;
}

.story-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.6rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.story-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.story-progress {
  margin-top: 50px;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 360px;
}
.story-progress-bar {
  flex: 1;
  height: 2px;
  background: rgba(241, 240, 228, 0.15);
  position: relative;
  overflow: hidden;
}
.story-progress-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0.25);
  transition: transform 0.5s ease;
}
.story-progress-num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.story-right {
  position: relative;
  height: 580px;
  perspective: 1200px;
}

/* ----- Capa 1: palabra gigante de fondo (cambia por paso) ----- */
.story-bg-words {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.bg-word {
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(5rem, 16vw, 16rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.85;
  white-space: nowrap;
  -webkit-text-stroke: 1.5px rgba(125, 212, 143, 0.38);
  color: transparent;
  opacity: 0;
  text-transform: lowercase;
  will-change: transform, opacity;
}

/* ----- Capa 2: shapes flotantes decorativos ----- */
.story-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.shape {
  position: absolute;
  will-change: transform, opacity;
}
.shape-blur {
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125, 212, 143, 0.45), transparent 65%);
  filter: blur(50px);
  top: 22%;
  left: 22%;
}
.shape-ring {
  width: 150px;
  height: 150px;
  border: 1px dashed rgba(241, 240, 228, 0.2);
  border-radius: 50%;
  top: 6%;
  right: 8%;
}
.shape-circle {
  width: 240px;
  height: 240px;
  border: 1px solid rgba(125, 212, 143, 0.22);
  border-radius: 50%;
  bottom: 4%;
  left: 4%;
}
.shape-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 30px rgba(125, 212, 143, 0.7);
}
.dot-1 { top: 16%; right: 30%; }
.dot-2 { bottom: 22%; right: 14%; }

.shape-line {
  width: 110px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  top: 70%;
  left: 12%;
}

/* ----- Capa 3: stage con cards apiladas (depth effect) ----- */
.story-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.story-card {
  position: absolute;
  width: calc(100% - 24px);
  max-width: 480px;
  padding: 42px 38px;
  background: rgba(241, 240, 228, 0.05);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(241, 240, 228, 0.14);
  border-radius: 24px;
  opacity: 0;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
  will-change: transform, opacity, filter;
}

.story-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.story-step-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding: 7px 14px;
  border: 1px solid rgba(125, 212, 143, 0.4);
  border-radius: 999px;
  background: rgba(125, 212, 143, 0.08);
}

.story-step-label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(241, 240, 228, 0.55);
}

.story-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1;
  margin-bottom: 18px;
}

.story-card p {
  color: rgba(241, 240, 228, 0.65);
  font-size: 1rem;
  margin-bottom: 28px;
  line-height: 1.55;
  max-width: 420px;
}

.story-card .story-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.story-card .story-tags li {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 13px;
  border: 1px solid rgba(241, 240, 228, 0.2);
  border-radius: 999px;
  color: rgba(241, 240, 228, 0.78);
}

/* ---------- 12. Métricas ---------- */
.metrics {
  padding: 160px 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.metric {
  padding: 60px 30px;
  text-align: center;
  border-right: 1px solid var(--border);
  transition: background 0.5s ease;
}
.metric:last-child { border-right: none; }
.metric:hover {
  background: rgba(125, 212, 143, 0.1);
}

.metric h3 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.9;
  margin-bottom: 14px;
  display: flex;
  align-items: baseline;
  justify-content: center;
}
.metric .metric-suffix {
  color: var(--accent-dark);
  font-size: 0.7em;
}
.metric p {
  color: var(--text-dim);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- 13. Showcase ---------- */
.showcase {
  padding: 160px 0;
  background: var(--bg);
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.showcase-item { position: relative; }

.showcase-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  overflow: hidden;
  clip-path: inset(100% 0 0 0);
  will-change: clip-path;
  cursor: pointer;
  transition: transform 0.7s cubic-bezier(.22,1,.36,1);
}
.showcase-img:hover {
  transform: scale(0.99);
}

.showcase-tag {
  position: absolute;
  top: 22px; left: 22px;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 14px;
  background: rgba(241, 240, 228, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  color: var(--dark);
}

.showcase-year {
  position: absolute;
  top: 22px; right: 22px;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  padding: 8px 14px;
  background: var(--accent);
  border-radius: 999px;
  color: var(--dark);
}

.showcase-item figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 22px;
  padding: 0 6px;
}
.showcase-item h4 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.showcase-item figcaption span {
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ---------- 14. Testimonios ---------- */
.testimonios {
  padding: 160px 0;
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testi {
  position: relative;
  padding: 50px 36px 36px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.5s cubic-bezier(.22,1,.36,1),
              border-color 0.4s ease, background 0.4s ease;
}
.testi:hover {
  transform: translateY(-6px);
  border-color: var(--dark);
  background: #fafaef;
}

.testi-quote {
  position: absolute;
  top: 18px; left: 32px;
  font-family: var(--font-serif);
  font-size: 5rem;
  line-height: 1;
  color: var(--accent);
  font-style: italic;
}

.testi blockquote {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.55;
  margin: 28px 0 30px;
}

.testi figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.testi-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
.testi figcaption div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.testi strong { font-weight: 500; font-size: 0.95rem; }
.testi figcaption span { color: var(--text-dim); font-size: 0.82rem; }

/* ---------- 15. FAQ ---------- */
.faq { padding: 160px 0; }

.faq-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.faq-left .eyebrow { margin-bottom: 24px; }
.faq-title { margin-bottom: 36px; }

.faq-list {
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 32px 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: padding 0.4s ease, color 0.4s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover {
  padding-left: 12px;
}

.faq-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  font-size: 1.4rem;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform 0.5s cubic-bezier(.22,1,.36,1),
              background 0.4s ease, color 0.4s ease;
}
.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  background: var(--accent);
  border-color: var(--accent);
}

.faq-body {
  padding: 0 0 32px;
  max-width: 700px;
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.6;
}

/* ---------- 16. CTA Final ---------- */
.cta-final { padding: 80px 0 140px; }

.cta-box {
  position: relative;
  padding: 100px 60px 90px;
  background: var(--dark);
  color: var(--bg);
  border-radius: 32px;
  text-align: center;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(125, 212, 143, 0.15), transparent 50%);
  pointer-events: none;
}

.cta-top { margin-bottom: 30px; position: relative; }

.cta-status {
  background: rgba(125, 212, 143, 0.12);
  border-color: rgba(125, 212, 143, 0.3);
  color: var(--bg);
}

.cta-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 50px;
  position: relative;
}

.cta-form {
  position: relative;
  display: flex;
  gap: 10px;
  max-width: 540px;
  margin: 0 auto 18px;
  padding: 8px;
  background: rgba(241, 240, 228, 0.06);
  border: 1px solid rgba(241, 240, 228, 0.15);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}
.cta-form input {
  flex: 1;
  padding: 14px 22px;
  background: transparent;
  color: var(--bg);
  font-size: 0.95rem;
}
.cta-form input::placeholder { color: rgba(241, 240, 228, 0.4); }

.cta-note {
  display: block;
  color: rgba(241, 240, 228, 0.5);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  position: relative;
}

/* CTA spinning badge */
.spin-badge-cta {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 110px;
  height: 110px;
}
.spin-badge-cta .spin-badge-svg text { fill: var(--bg); font-size: 18px; }
.spin-badge-cta .spin-badge-center {
  width: 40px;
  height: 40px;
  font-size: 1rem;
}

/* ---------- 17. Footer ---------- */
.footer {
  background: var(--dark);
  color: var(--bg);
  padding: 80px 0 30px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 60px;
}
.footer-big {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 12rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.85;
  flex: 1;
}
.footer-meta {
  align-self: flex-start;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 60px;
  margin-bottom: 80px;
  padding-top: 60px;
  border-top: 1px solid rgba(241, 240, 228, 0.12);
}
.footer-brand p {
  color: rgba(241, 240, 228, 0.55);
  max-width: 320px;
  font-size: 0.95rem;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-cols h4 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 22px;
  color: var(--accent);
}
.footer-cols a {
  display: block;
  color: rgba(241, 240, 228, 0.6);
  font-size: 0.92rem;
  margin-bottom: 12px;
  transition: color 0.3s ease, transform 0.4s ease;
}
.footer-cols a:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(241, 240, 228, 0.12);
  color: rgba(241, 240, 228, 0.5);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

/* ---------- 18. Reveal animation states ---------- */
[data-reveal] {
  opacity: 0;
}

/* ---------- 19. Responsive ---------- */
@media (max-width: 1100px) {
  .story-inner { grid-template-columns: 1fr; gap: 60px; }
  .story-right { height: 440px; }
  .faq-inner { grid-template-columns: 1fr; gap: 50px; }
  .services-stage { height: 520px; }
  .service-expanded { padding: 38px 34px 34px; }
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .services-stage {
    flex-direction: column;
    height: auto;
    gap: 10px;
  }
  .service-panel {
    flex: 0 0 90px;
    min-height: 90px;
  }
  .service-panel.is-active {
    flex: 0 0 460px;
  }
  .service-collapsed {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 22px;
    padding: 0 28px;
  }
  .service-vertical {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 1rem;
  }
  .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .metric { border-bottom: 1px solid var(--border); }
  .metric:nth-child(2) { border-right: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .showcase-grid { grid-template-columns: 1fr; }
  .intro-inner { grid-template-columns: 1fr; gap: 30px; }
  .spin-badge { width: 110px; height: 110px; top: 80px; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .hero { padding: 140px 0 80px; }
  .hero-bottom { flex-direction: column; align-items: flex-start; }
  .servicios,
  .metrics,
  .showcase,
  .testimonios,
  .reveal-word,
  .faq,
  .intro { padding: 100px 0; }
  .testi-grid { grid-template-columns: 1fr; }
  .service-panel.is-active { flex: 0 0 520px; }
  .metrics-grid { grid-template-columns: 1fr; }
  .metric { border-right: none; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .cta-box { padding: 80px 24px 70px; border-radius: 24px; }
  .cta-form { flex-direction: column; border-radius: 20px; }
  .cta-form .btn { width: 100%; justify-content: center; }
  .story-sticky { height: auto; padding: 100px 0; }
  .story-right { height: auto; min-height: 460px; }
  .spin-badge { width: 90px; height: 90px; top: 70px; }
  .spin-badge-svg text { font-size: 18px; }
  .spin-badge-center { width: 36px; height: 36px; font-size: 1rem; }
  .spin-badge-cta { top: 20px; right: 20px; width: 80px; height: 80px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}
