/* ═══════════════════════════════════════════════════════════
   éxodo bpo — CLIENTES CINEMÁTICA
   Identidad de página: verde #40AC47 · misma gramática
   Carga DESPUÉS de home-cine.css
   ═══════════════════════════════════════════════════════════ */
:root { --verde: #40AC47; --verde-d: #1e6c22; }
.green { color: var(--verde); }

#nav { mix-blend-mode: normal; color: #fff; }
#nav:not(.scrolled) {
  --fg: var(--ink); --mut: var(--ink);
  color: var(--ink);
}
#nav:not(.scrolled) .n-mob span { background: var(--ink); }
#nav:not(.scrolled) .n-cta a { border-color: rgba(10, 10, 11, 0.35); }
#nav:not(.scrolled) .n-cta a:hover {
  background: var(--ink); color: var(--bone); border-color: var(--ink);
}
#nav.scrolled {
  background: rgba(7, 7, 8, 0.82);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border-bottom-color: rgba(255, 255, 255, 0.05);
}
.n-links li.active a { opacity: 1; }
.n-links li.active a::after { transform: scaleX(1); }

/* ═ HERO VERDE ═ */
.pgh {
  height: 100vh; height: 100svh; position: relative;
  display: flex; align-items: flex-end; overflow: hidden;
  background: var(--verde);
}
#heroCanvas { position: absolute; inset: 0; z-index: 0; }
.pgh-vig {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 120% 90% at 50% 110%, rgba(10, 46, 13, 0.5), transparent 55%),
    radial-gradient(ellipse 140% 110% at 50% 50%, transparent 38%, rgba(9, 40, 11, 0.6) 100%);
}
.pgh ::selection { background: #fff; color: var(--verde); }
.pgh-ct { position: relative; z-index: 3; width: 100%; padding: 0 var(--pad) clamp(72px, 12vh, 140px); }
.pgh-badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .22em;
  text-transform: uppercase; color: #f3f1ec; margin-bottom: clamp(20px, 3vh, 36px);
  opacity: 0; transform: translateY(14px);
}
.pgh-badge i {
  width: 6px; height: 6px; background: #fff; border-radius: 50%;
  animation: pulse 2.2s ease-in-out infinite; box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
}
.pgh-h {
  font-size: clamp(44px, min(9vw, 14svh), 148px);
  font-weight: 750; letter-spacing: -0.045em; line-height: 0.96;
  color: #fff; margin-bottom: clamp(26px, 4vh, 44px);
}
.pgh-h .hl { display: block; overflow: hidden; padding-bottom: 0.07em; margin-bottom: -0.06em; }
.pgh-h .hl-in { display: block; transform: translateY(112%); will-change: transform; }
.pgh-h .em { font-size: 1.04em; line-height: 0.9; color: rgba(255, 255, 255, 0.95); font-family:'Exodo Cursiva',sans-serif; font-style:normal;}
.pgh-p {
  font-size: clamp(14px, 1.15vw, 17px); font-weight: 300; line-height: 1.85;
  color: #f3f1ec; max-width: 470px;
  opacity: 0; transform: translateY(16px);
}
.pgh-scroll {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 10px; opacity: 0;
}
.pgh-scroll .mono { font-size: 11px; color: #f3f1ec; letter-spacing: .22em; }
.pgh-scroll .sc-line { background: rgba(255, 255, 255, 0.2); }
.pgh-scroll .sc-line::after { background: rgba(255, 255, 255, 0.75); }

/* ═ encabezados ═ */
.sd-h {
  font-size: clamp(30px, 4.2vw, 64px); font-weight: 750; letter-spacing: -0.04em;
  line-height: 1.04; max-width: 820px;
}
.sd-h em { font-size: 1.05em; color: var(--verde); font-family:'Exodo Cursiva',sans-serif; font-style:normal;}
.sd-sub { font-size: 14px; font-weight: 300; max-width: 460px; line-height: 1.85; margin-top: 20px; text-wrap: pretty; }

/* ═ MURO DE CLIENTES por sector (hueso) ═ */
.wall { background: var(--bone); color: var(--ink); padding: clamp(90px, 13vh, 180px) var(--pad); }
.wall .sd-sub { color: #6e6b65; }
.wall-groups { margin-top: clamp(44px, 6vh, 72px); border-top: 1px solid rgba(10, 10, 11, 0.12); }
.wall-group {
  display: grid; grid-template-columns: minmax(150px, 260px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 56px); align-items: start;
  padding: clamp(28px, 4.5vh, 48px) 0; border-bottom: 1px solid rgba(10, 10, 11, 0.12);
  position: relative; opacity: 0; transform: translateY(26px);
}
.wall-group::before {
  content: ''; position: absolute; top: -1px; left: 0; width: 100%; height: 1px;
  background: var(--verde); transform: scaleX(0); transform-origin: left;
  transition: transform 0.8s var(--ease);
}
.wall-group:hover::before { transform: scaleX(1); }
.wall-label {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .22em;
  text-transform: uppercase; color: #56544f; padding-top: clamp(8px, 1.4vw, 20px);
}
.wall-count { display: block; margin-top: 8px; color: #56544f; }
.wall-clients {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4.5vh, 48px) clamp(20px, 3vw, 56px);
  min-width: 0;
}
.wall-client { min-width: 0; position: relative; align-self: start; }
.wall-name {
  font-size: clamp(24px, 3.2vw, 50px); font-weight: 300; letter-spacing: -0.03em;
  line-height: 1.3; color: #6e6b65; transition: color 0.4s var(--ease), font-weight 0.4s;
  cursor: default; white-space: normal; overflow-wrap: anywhere;
}
.wall-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 44px; padding-bottom: 12px; list-style: none; cursor: pointer;
}
.wall-trigger::-webkit-details-marker { display: none; }
.wall-trigger .wall-name { cursor: inherit; }
.wall-trigger:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
.wall-trigger:hover .wall-name, .wall-disclosure[open] .wall-name { color: var(--ink); }
.wall-toggle { width: 16px; height: 16px; flex: 0 0 16px; position: relative; color: #56544f; }
.wall-toggle::before, .wall-toggle::after {
  content: ''; position: absolute; background: currentColor;
  transition: transform 0.4s var(--ease), color 0.4s var(--ease);
}
.wall-toggle::before { width: 16px; height: 1px; left: 0; top: 50%; }
.wall-toggle::after { width: 1px; height: 16px; left: 50%; top: 0; }
.wall-disclosure[open] .wall-toggle { color: var(--verde); }
.wall-disclosure[open] .wall-toggle::after { transform: scaleY(0); }
.wall-description {
  padding: 4px 0 12px 20px; margin: 10px 0 8px;
  border-left: 1px solid var(--verde);
}
.wall .wall-description .sd-sub { color: #56544f; max-width: 54ch; margin: 0; font-size: 15px; }
.wall .wall-description .sd-sub + .sd-sub { margin-top: 12px; }
.wall-disclosure[open] .wall-description { animation: client-reveal 0.4s var(--ease) both; }
@keyframes client-reveal {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.wall-option, .wall-stage { display: none; }
@media (min-width: 1100px) {
  .wall-browser-ready .wall-layout {
    display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: clamp(48px, 7vw, 130px); align-items: start;
    margin-top: clamp(44px, 6vh, 72px);
  }
  .wall-browser-ready .wall-groups { margin-top: 0; }
  .wall-browser-ready .wall-group { display: block; padding-block: 28px; }
  .wall-browser-ready .wall-label { padding-top: 0; margin-bottom: 20px; }
  .wall-browser-ready .wall-count { display: inline; margin-left: 16px; }
  .wall-browser-ready .wall-clients { gap: 12px 32px; }
  .wall-browser-ready .wall-disclosure { display: none; }
  .wall-browser-ready .wall-name { font-size: clamp(24px, 2.2vw, 38px); line-height: 1.3; }
  .wall-browser-ready .wall-option {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    width: 100%; min-width: 0; min-height: 52px; padding: 8px 0;
    border: 0; background: none; text-align: left; color: var(--verde); cursor: pointer;
  }
  .wall-option svg { flex: 0 0 18px; opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .4s var(--ease); }
  .wall-option[aria-pressed="true"] svg, .wall-option:hover svg, .wall-option:focus-visible svg { opacity: 1; transform: none; }
  .wall-option .wall-name { cursor: inherit; }
  .wall-option:hover .wall-name, .wall-option:focus-visible .wall-name { color: var(--ink); }
  .wall-option[aria-pressed="true"] .wall-name { color: var(--ink); }
  .wall-option:focus-visible { outline: 1px solid var(--verde); outline-offset: 5px; border-radius: 2px; }
  .wall-browser-ready .wall-stage {
    display: block; position: sticky; top: 114px; min-width: 0;
    border-top: 1px solid var(--verde); padding-top: 28px;
  }
  .wall-stage-sector { color: #56544f; font-size: 11px; line-height: 1.8; letter-spacing: .14em; text-transform: uppercase; }
  .wall .wall-stage-name { font-size: clamp(34px, 3.6vw, 60px); font-weight: 400; line-height: 1.15; letter-spacing: -.035em; margin: 22px 0 28px; overflow-wrap: anywhere; }
  .wall .wall-stage-copy .sd-sub { color: #56544f; font-size: 16px; line-height: 1.85; max-width: 48ch; margin: 0; }
  .wall .wall-stage-copy .sd-sub + .sd-sub { margin-top: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .wall-disclosure[open] .wall-description { animation: none; }
  .wall-trigger .wall-name, .wall-toggle::before, .wall-toggle::after { transition: none; }
  .wall-option svg { transition: none; }
}

/* ═ TESTIMONIOS PINNEADOS (tinta) ═ */
.tst-w { height: 560vh; position: relative; }
.tst {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); overflow: hidden;
}
.tst-idx { position: absolute; top: 110px; left: var(--pad); color: var(--mut-d); }
.tst-mark {
  position: absolute; top: clamp(80px, 14vh, 140px); left: 50%; transform: translateX(-50%);
  font-size: clamp(80px, 12vw, 180px); font-weight: 800; color: var(--verde);
  opacity: 0.18; line-height: 1; pointer-events: none; font-family: 'Outfit', sans-serif;
}
.tst-q {
  position: absolute; max-width: 920px; padding: 0 32px; text-align: center;
  opacity: 0; will-change: transform, opacity, filter;
}
.tst-text {
  font-size: clamp(20px, 2.8vw, 40px); font-weight: 300; letter-spacing: -0.015em;
  line-height: 1.55; color: var(--mut); text-wrap: pretty;
}
.tst-text strong { color: var(--fg); font-weight: 700; }
.tst-note { position: absolute; bottom: 80px; left: var(--pad); right: var(--pad); text-align: center; font-family: 'JetBrains Mono', monospace; font-size: 11px; line-height: 1.7; color: var(--mut); }
:root:not(.cine-ready):not(.cine-pending) .tst-note { position: static; }
.tst-dots { position: absolute; bottom: 48px; left: 50%; transform: translateX(-50%); display: flex; gap: 9px; }
.tst-dot { width: clamp(22px, 3.5vw, 44px); height: 2px; background: rgba(243, 241, 236, 0.1); transition: background 0.4s; }
.tst-dot.active { background: var(--verde); }

/* ═ NÚMEROS (hueso) ═ */
.nums { background: var(--bone); color: var(--ink); padding: clamp(90px, 13vh, 180px) var(--pad); }
.nums .sd-h em { display: inline-block; }
.nums-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(44px, 6vh, 72px); }
.num-it { padding: 10px clamp(16px, 2.5vw, 44px); border-left: 1px solid rgba(10, 10, 11, 0.12); opacity: 0; transform: translateY(26px); }
.num-it:first-child { border-left: none; padding-left: 0; }
.num-val {
  font-size: clamp(48px, 6.5vw, 104px); font-weight: 200; letter-spacing: -0.04em;
  line-height: 1; font-variant-numeric: tabular-nums;
}
.num-val sup { font-size: 0.4em; font-weight: 300; color: var(--verde); vertical-align: 0.9em; }
.num-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; margin-top: 16px; color: #56544f; max-width: 180px; line-height: 1.9; }

/* ═ QUOTE (tinta) ═ */
.qbrk-d { background: var(--ink); padding: clamp(100px, 14vh, 190px) var(--pad); text-align: center; }
.qbrk-d-in {
  font-size: clamp(24px, 3vw, 46px); font-weight: 300; letter-spacing: -0.02em;
  line-height: 1.45; max-width: 820px; margin: 0 auto; color: var(--mut); text-wrap: pretty;
}
.qbrk-d-in .qw { opacity: 0.1; }
.qbrk-d-in strong { font-weight: 750; color: var(--fg); }
.qbrk-d-in .green { font-weight: 750; }

/* ═ CTA (hueso) ═ */
.cta-cl {
  min-height: 80vh; display: flex; align-items: center; justify-content: center;
  text-align: center; background: var(--bone); color: var(--ink);
  padding: clamp(90px, 12vh, 150px) 32px;
}
.cta-cl .cta-h { font-size: clamp(48px, 8.5vw, 130px); }
.cta-cl .cta-h em { color: var(--verde); font-family:'Exodo Cursiva',sans-serif; font-style:normal;}
.cta-cl .cta-tagline { color: #6e6b65; }
.cta-btn.verde { background: var(--verde); color: #fff; }
.cta-btn.verde:hover { box-shadow: 0 24px 70px rgba(64, 172, 71, 0.35); }

/* ═ RESPONSIVE ═ */
@media (max-width: 1024px) {
  .wall-group { grid-template-columns: 1fr; gap: 12px; }
  .nums-grid { grid-template-columns: 1fr 1fr; gap: 32px 0; }
  .num-it:nth-child(odd) { border-left: none; padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pgh-h .hl-in, .pgh-badge, .pgh-p, .pgh-scroll,
  .wall-group, .num-it { opacity: 1 !important; transform: none !important; }
  .qbrk-d-in .qw { opacity: 1 !important; }
  .tst-w { height: auto; }
  .tst { position: static; height: auto; padding: 100px 24px; flex-direction: column; gap: 60px; }
  .tst-q { position: static; opacity: 1 !important; }
  .tst-note { position: static; }
  .tst-idx, .tst-dots { display: none; }
}

/* Nombres y testimonios completos, también con texto ampliado. */
@media (max-width: 768px) {
  .pgh { height: auto; min-height: 100vh; min-height: 100svh; }
  .pgh-ct { padding-top: 112px; padding-bottom: 112px; }
  .pgh-badge { max-width: 100%; line-height: 1.7; }
  .pgh-badge i { flex-shrink: 0; }
  .pgh-h { font-size: clamp(36px, 10.5vw, 68px); overflow-wrap: anywhere; }
  .pgh-scroll { bottom: 24px; }
  .wall, .nums, .qbrk-d { padding-top: 72px; padding-bottom: 72px; }
  .wall-group { grid-template-columns: minmax(0, 1fr); }
  .wall-clients { grid-template-columns: minmax(0, 1fr); }
  .wall-label { padding-top: 0; line-height: 1.7; }
  .tst-w { height: auto; }
  .tst { position: relative; height: auto; padding: 100px var(--pad) 72px; flex-direction: column; gap: 0; }
  .tst-mark { top: 28px; font-size: 88px; }
  .tst-idx, .tst-dots { display: none; }
  .tst-q {
    position: relative; width: 100%; padding: 32px 0; will-change: auto;
    /* Neutraliza solo en móvil los estados del carrusel de escritorio. */
    opacity: 1 !important; transform: none !important; filter: none !important; pointer-events: auto !important;
  }
  .tst-q + .tst-q { border-top: 1px solid var(--hair-d); }
  .tst-note { position: static; margin-top: 24px; }
  .nums-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 0; }
  .num-it { min-width: 0; padding: 8px 12px; }
  .num-val { font-size: clamp(36px, 10vw, 64px); }
  .num-label { font-size: 11px; letter-spacing: 0.12em; overflow-wrap: anywhere; }
  .cta-cl { min-height: 0; padding: 72px var(--pad); }
  .cta-cl .cta-h { font-size: clamp(34px, 9vw, 68px); overflow-wrap: anywhere; }
}
