/* SENDAR — estilos de index.html (extraídos del inline) */

/* ── ORIGINAL FONTS (custom SENDAR fonts) ── */
    @font-face {
      font-family: 'TT Tunnels Bold';
      src: url('assets/fonts/TTTunnels-Bold.woff2') format('woff2');
      font-weight: normal; font-style: normal; font-display: swap;
    }
    @font-face {
      font-family: 'TT Tunnels Regular';
      src: url('assets/fonts/TTTunnels-Regular.woff2') format('woff2');
      font-weight: normal; font-style: normal; font-display: swap;
    }
    @font-face {
      font-family: 'TT Lakes Neue';
      src: url('assets/fonts/TTLakesNeue-Medium.woff2') format('woff2');
      font-weight: normal; font-style: normal; font-display: swap;
    }
    @font-face {
      font-family: 'Suisse Intl';
      src: url('assets/fonts/SuisseIntl-Regular.woff2') format('woff2');
      font-weight: normal; font-style: normal; font-display: swap;
    }
    @font-face {
      font-family: 'Suisse Intl Bold';
      src: url('assets/fonts/SuisseIntl-Bold.woff2') format('woff2');
      font-weight: bold; font-style: normal; font-display: swap;
    }
  
    /* ── WORK REVEAL — cortina con línea roja de escaneo ── */
    .work-mask { position:absolute; inset:0; overflow:hidden; z-index:0; }
    .work-mask .wm-img {
      width:100%; height:100%; object-fit:cover; object-position:center top; display:block;
      filter: brightness(.94);
      transition: transform 1.3s var(--ease), filter .5s var(--ease);
    }
    .work-card:hover .work-mask .wm-img { transform: scale(1.06); filter: brightness(1.04); }
    /* gradiente inferior para que tag+nombre siempre se lean sobre la captura */
    .work-mask::after { content:''; position:absolute; inset:0; pointer-events:none; z-index:1;
      background: linear-gradient(to top, rgba(10,12,35,0.94) 0%, rgba(10,12,35,0.62) 20%, rgba(10,12,35,0.10) 46%, transparent 62%); }
    /* (el revelado ondulado lo gestiona GSAP vía clip-path; sin JS todo visible) */

/* ══════════════════════════════ RESET ══ */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: auto; }

    /* ══════════════════════════════ TOKENS ══ */
    :root {
      --dark:   #1D2145;
      --dark2:  #13162e;
      --light:  #EEEEF2;
      --accent: #D62E49;
      --faded:  rgba(238,238,242,0.45);
      --ease:   cubic-bezier(0.22, 1, 0.36, 1);
      --pad: clamp(20px, 4.16vw, 72px);
      /* ── safe areas — content never enters these zones ── */
      --nav-h:        168px;   /* logo (pad+86px) + breathing room — covers all viewport sizes */
      --cta-safe-r:   148px;   /* menu/pencil right: 72px pad + 76px btn + 20px gap */
      --cta-safe-b:   140px;   /* pencil bottom: 32px + 76px + 32px gap */
    }

    /* ══════════════════════════════ BASE ══ */
    body {
      background: var(--dark);
      color: var(--light);
      font-family: 'Suisse Intl', "Open Sans", "Helvetica", sans-serif;
      overflow-x: hidden;
      cursor: none;
      letter-spacing: -0.005em;
    }
    /* "Floating card" frame — fixed overlay with 10px inset and rounded corners.
       Sits ABOVE all content but pointer-events:none so it doesn't block interaction.
       The border draws a 10px-thick light frame around the entire viewport. */
    body::before {
      content: '';
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 9000;
      box-shadow: inset 0 0 0 10px #EEEEF2;
      border-radius: 22px;
    }
    body::after {
      content: '';
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 8999;
      /* Mask the actual corners to make them visually rounded */
      background:
        radial-gradient(circle 22px at 22px 22px,             transparent 21px, #EEEEF2 22px) top    left  / 32px 32px no-repeat,
        radial-gradient(circle 22px at calc(100% - 22px) 22px, transparent 21px, #EEEEF2 22px) top    right / 32px 32px no-repeat,
        radial-gradient(circle 22px at 22px calc(100% - 22px), transparent 21px, #EEEEF2 22px) bottom left  / 32px 32px no-repeat,
        radial-gradient(circle 22px at calc(100% - 22px) calc(100% - 22px), transparent 21px, #EEEEF2 22px) bottom right / 32px 32px no-repeat;
    }
    /* Small tech/UI labels (matches .bs-tech in original) */
    .nav-usp, .nav-brand .brand-text, .hero-tagline, .hero-scroll, .hl-label, .hl-name,
    .section-label, .nav-links a, .award-badge, .award-year, .stat-label, .fcol-title,
    .footer-copy, .footer-social a, .pf-label, .test-eyebrow, .test-name, .test-role,
    .rule-num, .intro-label, .intro-small-text p, .work-card-tag, .view-all,
    .pre-pct, .pre-word, .menu-toggle, #menu-slide .social a {
      font-family: 'TT Lakes Neue', "Impact", sans-serif;
      font-weight: normal;
    }
    a { color: inherit; text-decoration: none; }
    ul { list-style: none; }

    /* ══════════════════════════════ HEX PATTERN BG — exact replica of original .scrollPattern ══
       Two IMG elements (.patternTop slides DOWN from above, .patternBottom slides UP from below)
       — driven by scroll position. SENDAR custom implementation. */
    .scrollPattern {
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      pointer-events: none;
      z-index: 0;
      overflow: hidden;
    }
    .scrollPattern .patternTop,
    .scrollPattern .patternBottom {
      position: absolute;
      left: 0;
      width: 100%;
      height: 100vh;
      overflow: hidden;
      will-change: transform;
    }
    .scrollPattern .patternTop    { top: 0; transform: translateY(-100%); }
    .scrollPattern .patternBottom { bottom: 0; transform: translateY(100%); }
    .scrollPattern img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      opacity: 0.45;                            /* visible — "brilla" */
      filter: brightness(1.15) contrast(0.95) saturate(0.65) blur(0.3px);
      display: block;
      transition: opacity .5s ease-out, filter .5s ease-out;
      /* Vignette aligero — más generoso, el patrón se ve por todo el viewport */
      -webkit-mask-image: radial-gradient(ellipse 110% 95% at center, rgba(0,0,0,0.50), rgba(0,0,0,0.92) 85%);
              mask-image: radial-gradient(ellipse 110% 95% at center, rgba(0,0,0,0.50), rgba(0,0,0,0.92) 85%);
    }
    /* PULSE — refinado */
    body.hex-pulse .scrollPattern img {
      opacity: 0.65;
      filter: brightness(1.35) contrast(1.05) saturate(0.8) blur(0px);
    }

    /* ══════════════════════════════ CUSTOM CURSOR ══ */
    #cursor {
      position: fixed; pointer-events: none; z-index: 9999;
      width: 10px; height: 10px;
      background: var(--light); border-radius: 50%;
      transform: translate(-50%,-50%);
      mix-blend-mode: difference;
    }
    #cursor-ring {
      position: fixed; pointer-events: none; z-index: 9998;
      width: 36px; height: 36px;
      border: 1px solid rgba(238,238,242,0.3);
      border-radius: 50%;
      transform: translate(-50%,-50%);
    }

    /* ══════════════════════════════ PRELOADER ══ */
    #preloader {
      position: fixed; inset: 0;
      background: var(--dark2);
      z-index: 10000;
      display: flex; flex-direction: column;
      align-items: center; justify-content: center; gap: 28px;
    }
    .pre-word {
      font-family: 'TT Tunnels Bold', "Impact", sans-serif;
      font-weight: 900; font-size: clamp(36px,5vw,72px);
      letter-spacing: 0.22em; text-transform: uppercase;
      overflow: hidden;
    }
    .pre-word span { display: block; transform: translateY(110%); }
    .pre-track {
      width: clamp(160px,20vw,240px); height: 1px;
      background: rgba(238,238,242,0.15); position: relative; overflow: hidden;
    }
    .pre-fill {
      position: absolute; left:0; top:0; height:100%;
      background: var(--light); width:0;
      transition: width .4s var(--ease);
    }
    .pre-pct {
      font-family: 'TT Tunnels Bold', "Impact", sans-serif;
      font-size: 13px; font-weight: 600;
      letter-spacing: 0.25em; color: var(--faded);
    }

    /* ══════════════════════════════ NAV — 3 ELEMENTOS FLOTANTES INDEPENDIENTES ══ */
    #nav {
      /* El nav NO es una barra. Es un contenedor transparente que permite posicionar los 3 puntos fijos */
      position: fixed; inset: 0;
      pointer-events: none;       /* el propio nav no bloquea nada */
      z-index: 1000;
      background: none !important;
      backdrop-filter: none !important;
      border: none !important;
      padding: 0;
    }
    #nav.scrolled { background: none !important; backdrop-filter: none !important; border: none !important; }
    /* ── PUNTO 1: Logo — esquina superior izquierda ── */
    .nav-brand {
      position: fixed;
      top: var(--pad); left: var(--pad);
      pointer-events: all;
      z-index: 1001;
      display: flex; align-items: center; gap: 18px;
      opacity: 0;
    }
    /* SENDAR logo — premium hex-badge (larger, more present) */
    .nav-brand .sendar-logo {
      width: 86px; height: 86px;
      display: block;
      filter: drop-shadow(0 6px 18px rgba(214,46,73,0.30));
      transition: filter .4s var(--ease), transform .5s cubic-bezier(.4,1.6,.4,1);
    }
    .nav-brand .sendar-logo svg { width: 100%; height: 100%; display: block; }
    .nav-brand .sendar-logo .sl-hex-outer,
    .nav-brand .sendar-logo .sl-hex-inner,
    .nav-brand .sendar-logo .sl-s-top,
    .nav-brand .sendar-logo .sl-s-bot { transition: transform .55s cubic-bezier(.4,1.6,.4,1), stroke-opacity .35s; transform-origin: center; }
    .nav-brand .sendar-logo:hover {
      transform: scale(1.08) rotate(-3deg);
      filter: drop-shadow(0 8px 24px rgba(214,46,73,0.55));
    }
    .nav-brand .sendar-logo:hover .sl-hex-inner { transform: scale(0.92) rotate(8deg); }
    .nav-brand .sendar-logo:hover .sl-s-top { transform: translateX(-1px); }
    .nav-brand .sendar-logo:hover .sl-s-bot { transform: translateX(1px); }
    .nav-brand .brand-text {
      font-family: 'TT Tunnels Bold', "Impact", sans-serif;
      font-weight: 900;
      font-size: 18px;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      line-height: 1.15;
      color: var(--light);
      max-width: 200px; overflow: hidden; white-space: nowrap;
      transition: opacity .38s var(--ease), max-width .38s var(--ease);
    }
    body.is-scrolled .nav-brand .brand-text { opacity: 0; max-width: 0; pointer-events: none; }
    .nav-brand .brand-text .brand-name {
      display: block;
      font-size: 22px;                       /* SENDAR — the main brand, even bigger */
      letter-spacing: 0.24em;
    }
    .nav-brand .brand-text .brand-sub {
      display: block;
      font-size: 12px;
      letter-spacing: 0.30em;
      color: var(--faded);
      margin-top: 4px;
      font-weight: 600;
    }
    /* El texto rotatorio central desaparece — no forma parte del marco de 3 puntos */
    .nav-usp { display: none; }
    .nav-usp .we {
      display: inline-block;
      font-family: 'TT Tunnels Bold', "Impact", sans-serif;
      font-size: 17px;
      letter-spacing: 0.10em;
    }
    .nav-usp .dot {
      width: 10px; height: 10px;
      background: var(--accent);
      border-radius: 50%;
      flex-shrink: 0;
      box-shadow: 0 0 0 5px rgba(214,46,73,0.20);
    }
    .nav-usp .rot {
      position: relative;
      width: 380px; height: 1.4em;
      overflow: hidden;
      display: inline-block;
    }
    .nav-usp .rot .rot-inner {
      position: absolute; inset: 0;
      display: flex; flex-direction: column;
      animation: rotMsg 36s infinite;        /* 12 phrases × 3s each */
    }
    .nav-usp .rot .rot-inner span {
      display: block; height: 1.4em; line-height: 1.4em;
      white-space: nowrap;
    }
    /* Each phrase visible ~2.7s, slides up over ~0.3s — 12 phrases over 36s */
    @keyframes rotMsg {
      0%,    7.6%  { transform: translateY(0); }
      8.3%, 15.9% { transform: translateY(-1.4em); }
      16.6%,24.2% { transform: translateY(-2.8em); }
      25%,  32.6% { transform: translateY(-4.2em); }
      33.3%,40.9% { transform: translateY(-5.6em); }
      41.6%,49.2% { transform: translateY(-7.0em); }
      50%,  57.6% { transform: translateY(-8.4em); }
      58.3%,65.9% { transform: translateY(-9.8em); }
      66.6%,74.2% { transform: translateY(-11.2em); }
      75%,  82.6% { transform: translateY(-12.6em); }
      83.3%,90.9% { transform: translateY(-14.0em); }
      91.6%, 99% { transform: translateY(-15.4em); }
      100%        { transform: translateY(-16.8em); }
    }
    /* ── PUNTO 2: Menú — esquina superior derecha ── */
    .nav-right {
      position: fixed;
      top: var(--pad); right: var(--pad);
      pointer-events: all;
      z-index: 1001;
      display: flex; align-items: center; gap: 28px; opacity: 0;
    }
    .nav-links {
      display: flex; gap: 28px;
    }
    .nav-links a {
      font-family: 'TT Tunnels Bold', "Impact", sans-serif;
      font-size: 13px; font-weight: 700;
      letter-spacing: 0.18em; text-transform: uppercase;
      position: relative;
    }
    .nav-links a::after {
      content: '';
      position: absolute; bottom: -2px; left: 0;
      width: 0; height: 1px; background: var(--light);
      transition: width .35s var(--ease);
    }
    .nav-links a:hover::after { width: 100%; }
    /* ─── MENU TOGGLE — premium hex-slider design (matches the reference image) ─── */
    .menu-toggle {
      width: 76px; height: 76px;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer;
      background: rgba(238,238,242,0.06);
      border: 1.5px solid rgba(238,238,242,0.42);
      border-radius: 50%;
      padding: 0;
      position: relative;
      overflow: hidden;
      transition: background .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease), box-shadow .4s;
      box-shadow: 0 0 0 0 rgba(238,238,242,0);
    }
    .menu-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
    #nav.scrolled .menu-toggle { background: rgba(238,238,242,0.09); }
    /* Subtle red sweep on hover (like the buttons) */
    .menu-toggle::before {
      content: '';
      position: absolute; inset: 0;
      background: var(--accent);
      transform: translateY(101%);
      transition: transform .55s cubic-bezier(.7,0,.2,1);
      z-index: 0;
    }
    .menu-toggle:hover::before { transform: translateY(0); }
    .menu-toggle:hover {
      border-color: var(--accent);
      transform: scale(1.05);
      box-shadow: 0 0 0 4px rgba(214,46,73,0.18);
    }
    .menu-toggle svg {
      position: relative; z-index: 1;
      width: 32px; height: 40px;
      transition: transform .5s cubic-bezier(.4,1.6,.4,1);
    }
    .menu-toggle svg .mt-stroke {
      stroke: var(--light);
      stroke-width: 1.6;
      fill: none;
      stroke-linecap: round;
      stroke-linejoin: round;
      transition: stroke .35s, transform .5s cubic-bezier(.4,1.6,.4,1);
      transform-origin: center;
    }
    /* Hex endpoints + vertical lines — two control "rails" suggesting precision/customization */
    .menu-toggle svg .mt-hex-top,
    .menu-toggle svg .mt-hex-bot { transition: transform .5s cubic-bezier(.4,1.6,.4,1), fill .35s; }
    /* OPEN STATE: rotate the slider 90° so it becomes a horizontal indicator */
    .menu-toggle.is-open svg { transform: rotate(90deg); }
    .menu-toggle.is-open svg .mt-hex-top { fill: var(--light); }
    /* When menu is open and panel is white behind: switch strokes to dark */
    body.menu-open .menu-toggle .mt-stroke { stroke: var(--dark); }
    body.menu-open .menu-toggle.is-open svg .mt-hex-top { fill: var(--dark); }
    body.menu-open .menu-toggle { border-color: rgba(29,33,69,0.18); }
    body.menu-open .menu-toggle::before { background: var(--dark); }
    body.menu-open .menu-toggle:hover .mt-stroke { stroke: var(--light); }
    body.menu-open .menu-toggle:hover.is-open svg .mt-hex-top { fill: var(--light); }

    /* ══════════════════════════════ MENU OVERLAY (wavy partial drop ~62vh) ══ */
    #menu-slide {
      position: fixed; top: 0; left: 0; right: 0;
      z-index: 999;
      height: 62vh; min-height: 440px;
      pointer-events: none;
      transform: translateY(-115%);
      transition: transform 0.95s cubic-bezier(0.7, 0, 0.2, 1);
      background: var(--light);
      display: flex; flex-direction: column;
      align-items: center;
      justify-content: space-between;          /* links at TOP, social at BOTTOM */
      padding: clamp(80px, 9vw, 130px) var(--pad) clamp(56px, 7vw, 88px);
      box-shadow: 0 30px 60px rgba(0,0,0,0.18);
    }
    body.menu-open #menu-slide {
      transform: translateY(0) !important;       /* !important defeats any GSAP leftover inline transform */
      pointer-events: auto;
    }
    /* Wavy SVG bottom edge — undulates while menu is open */
    #menu-slide .wave-edge {
      position: absolute;
      left: 0; right: 0;
      bottom: -78px;
      width: 100%; height: 80px;
      fill: var(--light);
      pointer-events: none;
    }
    /* Horizontal nav links row */
    #menu-slide .links {
      display: flex; align-items: center; justify-content: center;
      gap: 28px; flex-wrap: wrap;
    }
    #menu-slide .nav-link {
      font-family: 'TT Tunnels Bold', "Impact", sans-serif;
      font-weight: 900;
      font-size: clamp(36px, 5.5vw, 90px);
      text-transform: uppercase;
      letter-spacing: -0.02em;
      color: var(--dark);
      line-height: 0.95;
      position: relative;
      display: flex; align-items: center; gap: 28px;
      transition: color .25s;
    }
    #menu-slide .nav-link span {
      transition: color .25s;
    }
    #menu-slide .nav-link:hover span { color: var(--accent); }
    /* Hexagon bullet between links */
    #menu-slide .nav-link .hex-dot {
      width: 14px; height: 16px;
      flex-shrink: 0;
      fill: var(--accent);
    }
    /* Hide last hex (the one after Contact) */
    #menu-slide .nav-link:last-child .hex-dot { display: none; }
    /* Social links row below */
    #menu-slide .social {
      display: flex; gap: 36px; flex-wrap: wrap;
      justify-content: center;
    }
    #menu-slide .social a {
      font-family: 'TT Tunnels Bold', "Impact", sans-serif;
      font-size: 12px; font-weight: 600;
      letter-spacing: 0.22em; text-transform: uppercase;
      color: var(--dark);
      position: relative;
    }
    #menu-slide .social a::after {
      content: '';
      position: absolute; bottom: -3px; left: 0;
      width: 0; height: 1px; background: var(--dark);
      transition: width .35s var(--ease);
    }
    #menu-slide .social a:hover::after { width: 100%; }
    /* Hide pencil CTA while menu is open (avoids visual conflict) */
    body.menu-open #fixed-cta { opacity: 0; pointer-events: none; transition: opacity .3s; }
    /* PENCIL CTA — BOTTOM-RIGHT corner, larger size, fixed on every section */
    #fixed-cta {
      position: fixed;
      right: 32px; bottom: 32px;       /* always bottom-right, never moves with scroll */
      z-index: 1001;
      width: 76px; height: 76px;        /* medium-large size */
      border-radius: 50%;
      background: var(--accent);
      display: flex; align-items: center; justify-content: center;
      cursor: pointer;
      transition: transform .35s var(--ease), box-shadow .35s var(--ease);
      box-shadow: 0 6px 22px rgba(214,46,73,0.40);
      overflow: hidden;
    }
    #fixed-cta:hover {
      transform: scale(1.08);
      box-shadow: 0 10px 30px rgba(214,46,73,0.55);
    }
    #fixed-cta svg {
      width: 32px; height: 32px;
      stroke: var(--light); fill: none; stroke-width: 2;
      stroke-linecap: round; stroke-linejoin: round;
      transition: transform .55s var(--ease);
    }
    /* Pencil "draws in" — triggered on HOVER. Starts outside top-right of circle, sweeps down + rotates into place */
    @keyframes pencil-draw-in {
      0%   { transform: translate(160%, -160%) rotate(-130deg); opacity: 0; }
      40%  { opacity: 1; }
      75%  { transform: translate(-6%, 4%) rotate(12deg); opacity: 1; }
      100% { transform: translate(0%, 0%) rotate(0deg); opacity: 1; }
    }
    /* Default state: pencil sits inside the red circle */
    #fixed-cta svg { transform: translate(0%, 0%) rotate(0deg); opacity: 1; }
    /* On hover: replay the entry animation so the pencil "writes itself in" */
    #fixed-cta:hover svg {
      animation: pencil-draw-in 0.9s var(--ease);
    }

    /* ══════════════════════════════ HERO ══ */
    #hero {
      position: relative;
      height: 100vh; min-height: 600px;
      overflow: hidden;
      display: flex; flex-direction: column;
      justify-content: space-between;
      padding-top: var(--nav-h);                       /* clear logo + menu at all viewport sizes */
      z-index: 1;
    }
    .hero-text-wrap { margin-bottom: 0 !important; }
    .hero-line1 { margin-top: 0; }
    .hero-line2 { margin-top: -0.02em; }
    #webglBubble {
      position: fixed; top: 0; left: 0;
      width: 100%; height: 100%;
      pointer-events: none;
      z-index: 2;
      overflow: hidden;
    }
    #webglBubble canvas { display: block; width: 100% !important; height: 100% !important; }
    .hero-text-wrap {
      position: relative; z-index: 2;
      padding: 0 var(--cta-safe-r) 0 calc(var(--pad) + 80px);
      margin-top: clamp(20px, 3vw, 60px);             /* push everything UP from center */
      margin-bottom: clamp(60px, 8vw, 100px);
      display: flex;
      align-items: flex-start;                        /* align tops so content starts higher */
      justify-content: space-between;
      gap: clamp(24px, 4vw, 80px);
    }
    .hero-left {
      display: flex; flex-direction: column;
      align-items: flex-start;
      gap: clamp(4px, 0.5vw, 10px);
    }
    .hero-right {
      display: flex; flex-direction: column;
      align-items: flex-end;
      gap: clamp(2px, 0.4vw, 8px);
      text-align: right;
    }
    /* QUIERO → RESULTADOS — button FRAME width matches MARKETING line, inner text smaller */
    .cta-quiero {
      margin-top: clamp(14px, 1.8vw, 26px);
      display: inline-flex;
      align-self: flex-end;
      position: relative;
      width: clamp(280px, 30vw, 540px);       /* roughly matches MARKETING text width */
      height: clamp(64px, 8vw, 120px);         /* matches MARKETING line-height */
      border: 2px solid var(--accent);
      border-radius: clamp(38px, 4.5vw, 70px);
      overflow: hidden;
      cursor: pointer;
      background: transparent;
      transition: border-color .35s var(--ease);
    }
    .cta-quiero::before {
      content: '';
      position: absolute; inset: 0;
      background: var(--accent);
      transform: translateX(-101%);
      transition: transform .55s var(--ease);
      z-index: 0;
    }
    .cta-quiero .cq-inner {
      position: relative; z-index: 1;
      width: 100%; height: 100%;
      display: flex; align-items: center; justify-content: center;
      gap: clamp(14px, 1.6vw, 26px);
      font-family: 'TT Tunnels Bold', "Impact", sans-serif;
      font-weight: 900;
      font-size: clamp(16px, 1.4vw, 22px);     /* SMALL text inside the big frame */
      letter-spacing: 0.10em;
      text-transform: uppercase;
      color: var(--light);
      transition: color .35s var(--ease);
    }
    .cta-quiero .cq-left { color: var(--light); }
    .cta-quiero .cq-right { color: var(--accent); }
    .cta-quiero .cq-arrow {
      display: inline-flex; align-items: center; justify-content: center;
      width: clamp(34px, 3.2vw, 50px);
      color: var(--accent);
      transition: transform .45s var(--ease), color .35s var(--ease);
    }
    .cta-quiero .cq-arrow svg { width: 100%; height: auto; }
    .cta-quiero:hover::before { transform: translateX(0); }
    .cta-quiero:hover .cq-left,
    .cta-quiero:hover .cq-right { color: var(--light); }
    .cta-quiero:hover .cq-arrow { transform: translateX(8px); color: var(--light); }
    /* INLINE tagline (right column) — LEFT-aligned for clean readability */
    .hero-tagline-inline {
      margin-top: clamp(24px, 2.4vw, 36px);
      font-family: 'TT Lakes Neue', "Impact", sans-serif;
      font-size: clamp(14px, 1.2vw, 17px);
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: rgba(238,238,242,0.92);
      line-height: 1.9;
      text-align: left;
      align-self: flex-end;
      max-width: 360px;
    }
    .h-word {
      font-family: 'TT Tunnels Bold', "Impact", sans-serif;
      font-weight: 900;
      font-size: clamp(64px, 11vw, 180px);
      text-transform: uppercase;
      letter-spacing: 0.005em;             /* slight POSITIVE tracking for legibility */
      overflow: hidden; display: block;
      line-height: 0.92;
      cursor: pointer;
    }
    .h-word span {
      display: block; transform: translateY(110%);
      transition: color 0.45s var(--ease);
    }
    .h-red span { color: var(--accent); }
    .h-word:not(.h-red):hover span { color: var(--accent); }
    .h-red:hover span { color: var(--light); }
    /* WEBS & APPS on same line */
    .h-row {
      display: inline-flex; align-items: baseline;
      gap: clamp(8px, 1.2vw, 22px);
    }
    .h-row .h-piece { display: inline-block; overflow: hidden; }
    .h-row .h-piece span { display: inline-block; }
    .h-row .h-amp {
      font-style: italic; color: var(--accent);
      font-size: 0.6em;
      padding: 0 clamp(4px, 0.5vw, 10px);
      transform: translateY(-0.12em);
    }
    .h-row .h-piece:not(.h-red):hover span { color: var(--accent); }
    .h-row .h-piece.h-red:hover span { color: var(--light); }
    /* STUDIO — clearly smaller than CREATIVO for hierarchy, italic flair */
    .h-studio-word {
      font-family: 'TT Tunnels Bold', "Impact", sans-serif;
      font-size: clamp(40px, 6.5vw, 108px);        /* ~60% size of CREATIVO */
      letter-spacing: 0.005em;
      text-transform: uppercase;
      color: var(--light);
      font-style: italic;
      line-height: 0.92;
      transform: skewX(-4deg);
      cursor: pointer;
      transition: color 0.45s var(--ease);
    }
    .h-studio-word:hover { color: var(--accent); }

    /* Hero bottom bar — now only contains the SCROLL cue centered */
    .hero-bottom {
      position: absolute;
      bottom: 0; left: 0; right: 0; z-index: 3;
      padding: 0 calc(var(--pad) + 100px) 36px calc(var(--pad) + 100px);
      display: flex;
      justify-content: center;
      align-items: flex-end;
    }
    .hero-tagline {
      font-family: 'TT Lakes Neue', "Impact", sans-serif;
      font-size: clamp(12px, 1vw, 15px);              /* bigger, more legible */
      font-weight: 500; letter-spacing: 0.18em;
      text-transform: uppercase; color: rgba(238,238,242,0.86);
      line-height: 1.8; max-width: 340px; opacity: 0;
      text-align: right;
      justify-self: end;
      order: 3;
    }
    .hero-scroll { order: 1; }
    .hero-latest { order: 2; }
    .hero-scroll {
      font-family: 'TT Tunnels Bold', "Impact", sans-serif;
      font-size: 12px; font-weight: 600;
      letter-spacing: 0.3em; text-transform: uppercase;
      color: var(--faded);
      display: flex; flex-direction: column;
      align-items: center; gap: 10px;
      opacity: 0;
    }
    .hero-scroll::after {
      content: '';
      width: 1px; height: 36px;
      background: var(--faded);
      animation: scrollPulse 2s ease-in-out infinite;
    }
    @keyframes scrollPulse {
      0%,100%{opacity:1;transform:scaleY(1)}
      50%{opacity:.35;transform:scaleY(.4)}
    }
    .hero-latest { display: flex; justify-content: flex-end; opacity: 0; }
    .hero-latest-box {
      border: 1px solid rgba(238,238,242,0.18);
      padding: 14px 22px;
      display: grid;
      grid-template-columns: auto 1fr auto;
      align-items: center; gap: 18px; min-width: 300px;
      position: relative; overflow: hidden;
      transition: border-color .35s var(--ease), color .35s var(--ease);
      cursor: pointer;
    }
    /* Color-fill on hover — paint sweeps across button */
    .hero-latest-box::before {
      content: '';
      position: absolute; inset: 0;
      background: var(--accent);
      transform: translateX(-101%);
      transition: transform .55s var(--ease);
      z-index: 0;
    }
    .hero-latest-box:hover::before { transform: translateX(0); }
    .hero-latest-box:hover { border-color: var(--accent); color: var(--light); }
    .hero-latest-box:hover .hl-label,
    .hero-latest-box:hover .hl-name { color: var(--light); }
    .hero-latest-box:hover .hl-arrow { background: rgba(255,255,255,0.55); }
    .hero-latest-box:hover .hl-arrow::after { color: var(--light); }
    .hero-latest-box > * { position: relative; z-index: 1; transition: color .35s; }
    .hl-label {
      font-family: 'TT Tunnels Bold', "Impact", sans-serif;
      font-size: 12px; font-weight: 700;
      letter-spacing: 0.2em; text-transform: uppercase; color: var(--faded);
    }
    .hl-arrow {
      height: 1px; background: rgba(238,238,242,0.25); position: relative;
    }
    .hl-arrow::after {
      content: '→'; position: absolute;
      right: -8px; top: -9px;
      font-size: 14px; color: var(--faded);
    }
    .hl-name {
      font-family: 'TT Tunnels Bold', "Impact", sans-serif;
      font-size: 12px; font-weight: 800;
      letter-spacing: 0.12em; text-transform: uppercase;
    }

    /* ══════════════════════════════ INTRO ══ */
    #intro {
      position: relative; z-index: 1;
      padding: clamp(80px,10vw,160px) var(--pad);
      display: grid;
      grid-template-columns: auto minmax(0,1fr) clamp(40px,5vw,80px) minmax(0,1.4fr);
      gap: 0 clamp(20px,2vw,32px);
      align-items: start;
    }
    .intro-label {
      font-family: 'TT Tunnels Bold', "Impact", sans-serif;
      font-size: 13px; font-weight: 700;
      letter-spacing: 0.22em; text-transform: uppercase;
      color: rgba(238,238,242,0.90); padding-top: 8px;
      writing-mode: vertical-rl; transform: rotate(180deg);
      white-space: nowrap;
    }
    .intro-label::before {
      content: '';
      display: block; width: 7px; height: 7px;
      border-radius: 50%; background: var(--accent);
      margin: 0 auto 10px; transform: rotate(180deg);
      box-shadow: 0 0 6px rgba(214,46,73,0.6);
    }
    .intro-small-text {
      padding-top: 8px;
    }
    .intro-small-text p {
      font-family: 'Suisse Intl', "Helvetica", sans-serif;
      font-size: clamp(15px, 1.3vw, 18px);
      font-weight: 400; line-height: 1.8;
      text-transform: none; letter-spacing: 0.01em;
      color: rgba(238,238,242,0.90);
      max-width: 30ch;
    }
    .intro-ctas {
      margin-top: 36px;
      display: flex; flex-direction: column; gap: 12px;
    }
    .intro-big-text {
      grid-column: 4;
    }
    .intro-big-text p {
      font-family: 'TT Tunnels Bold', "Impact", sans-serif;
      font-weight: 900;
      font-size: clamp(32px, 4.8vw, 78px);
      line-height: 1.0; text-transform: uppercase;
      letter-spacing: -0.015em;
    }
    /* Scroll reveal for big text lines */
    .scroll-word {
      display: inline-block;
      transition: opacity .5s var(--ease), color .5s var(--ease);
      opacity: 0.52;
      color: rgba(238,238,242,0.90);
    }
    .scroll-word.lit { opacity: 1; color: var(--light); }

    /* ══════════════════════════════ BUTTONS ══ */
    .btn {
      font-family: 'TT Tunnels Bold', "Impact", sans-serif;
      font-size: 14px; font-weight: 700;
      letter-spacing: 0.16em; text-transform: uppercase;
      color: var(--light);
      background: rgba(238,238,242,0.10);
      border: 2px solid rgba(238,238,242,0.92);
      padding: 16px 38px; border-radius: 100px;
      display: inline-flex; align-items: center; gap: 10px;
      position: relative; overflow: hidden;
      transition: color .3s, border-color .3s, background .3s;
    }
    .btn::before {
      content: '';
      position: absolute; inset: 0;
      background: var(--light);
      transform: translateX(-101%);
      transition: transform .45s var(--ease);
    }
    .btn:hover::before { transform: translateX(0); }
    .btn:hover { color: var(--dark); border-color: var(--light); }
    .btn > * { position: relative; z-index: 1; }
    .btn-arr { transition: transform .3s; }
    .btn-hex-icon { width: 0; height: 18px; opacity: 0; overflow: hidden; transition: width .35s var(--ease), opacity .3s var(--ease); flex-shrink: 0; }
    .btn-services:hover .btn-hex-icon { width: 18px; opacity: 1; }
    .btn:hover .btn-arr { transform: rotate(45deg); }

    /* ══════════════════════════════ SECTION COMMON ══ */
    .section-label {
      font-family: 'TT Tunnels Bold', "Impact", sans-serif;
      font-size: 13px; font-weight: 700;
      letter-spacing: 0.18em; text-transform: uppercase;
      color: rgba(238,238,242,0.82); margin-bottom: 14px;
      display: flex; align-items: center; gap: 8px;
    }
    .section-label::before {
      content: '';
      width: 8px; height: 8px;
      border-radius: 50%; background: var(--accent);
      flex-shrink: 0;
      box-shadow: 0 0 6px rgba(214,46,73,0.5);
    }
    .divider {
      height: 1px; margin: 0 var(--pad);
      background: linear-gradient(90deg, transparent, rgba(238,238,242,0.12) 20%, rgba(238,238,242,0.12) 80%, transparent);
    }

    /* ── safe areas: snap below nav on anchor links, right gutter clears menu button ── */
    section, #footer, #attitude-wrapper {
      scroll-margin-top: var(--nav-h);
    }
    section:not(#hero):not(#webglBubble), #footer, #pre-footer {
      padding-left: calc(var(--pad) + 100px) !important;   /* libera el logo (arriba-izq) */
      padding-right: var(--cta-safe-r) !important;          /* libera menú/lápiz (derecha) */
    }
    @media(max-width:768px){
      section:not(#hero):not(#webglBubble), #footer, #pre-footer {
        padding-left: var(--pad) !important;
        padding-right: var(--pad) !important;
      }
    }

    /* ══════════════════════════════ WORK ══ */
    #trabajos {
      position: relative; z-index: 1;
      padding: clamp(60px,8vw,120px) var(--pad);
    }
    .work-top {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: clamp(24px,3vw,48px);
      margin-bottom: clamp(48px,6vw,80px);
      align-items: end;
    }
    .work-title {
      font-family: 'TT Tunnels Bold', "Impact", sans-serif;
      font-weight: 900;
      font-size: clamp(52px, 9vw, 148px);
      line-height: 0.9; text-transform: uppercase;
      letter-spacing: -0.02em;
    }
    .work-title .line { overflow: hidden; display: block; }
    .work-title .line span { display: block; transform: translateY(110%); }
    /* Project cards grid */
    .work-grid {
      display: grid;
      max-width: 1120px;
      margin-left: auto; margin-right: auto;
      grid-template-columns: 1fr 1.1fr;
      grid-template-rows: auto auto;
      gap: clamp(12px,1.5vw,24px);
    }
    .work-card {
      position: relative; overflow: hidden;
      cursor: none;
    }
    .work-card-inner {
      background: rgba(238,238,242,0.05);
      border: 1px solid rgba(238,238,242,0.1);
      aspect-ratio: 4/3;
      display: flex; flex-direction: column;
      justify-content: flex-end;
      padding: clamp(16px,2vw,28px);
      transition: border-color .3s, background .3s;
      position: relative; overflow: hidden;
      color: var(--light); text-decoration: none;
    }
    /* 4th card full-width background */
    .work-card:nth-child(4) .work-card-inner { background: rgba(20,35,60,0.6); }
    .work-card-inner::before {
      content: '';
      position: absolute; inset: 0;
      /* Placeholder gradient for where images would be */
      background: linear-gradient(135deg, rgba(29,33,69,0.8) 0%, rgba(214,46,73,0.08) 100%);
      transition: opacity .4s;
    }
    .work-card:hover .work-card-inner { border-color: rgba(238,238,242,0.3); }
    .work-card:hover .work-card-inner::before { opacity: 0.6; }
    /* ── Placeholder image inside card ── */
    .work-card-img {
      position: absolute; inset: 0;
      background-size: cover; background-position: center top;
      transition: transform 1.2s var(--ease), opacity .6s var(--ease);
      transform: scale(1.04);
      opacity: 0.92;
    }
    .work-card:hover .work-card-img { transform: scale(1.08); opacity: 1; }
    /* Gradient overlay so text is always readable */
    .work-card-img::after {
      content: '';
      position: absolute; inset: 0;
      background: linear-gradient(to top, rgba(10,12,35,0.97) 0%, rgba(10,12,35,0.55) 50%, rgba(10,12,35,0.10) 100%);
    }
    /* Per-project placeholder gradients — more saturated so they read as distinct cards */
    .work-card:nth-child(1) .work-card-img { background-image: url(assets/projects/gnf-cup.webp), linear-gradient(145deg,#0d2b5e 0%,#1a4a8a 45%,#c0392b 100%); }
    .work-card:nth-child(2) .work-card-img { background-image: url(assets/projects/tilde-madrid.webp), linear-gradient(145deg,#2a0545 0%,#4e2085 50%,#8845c8 100%); }
    .work-card:nth-child(3) .work-card-img { background-image: url(assets/projects/academia-arabe.webp), linear-gradient(145deg,#1e3608 0%,#345c0f 45%,#d4a017 100%); }
    .work-card:nth-child(4) .work-card-img { background-image: url(assets/projects/anapat.webp), linear-gradient(145deg,#0d2030 0%,#1a4060 50%,#e8821a 100%); }
    .work-card:nth-child(5) .work-card-img { background-image: url(assets/projects/eslex.webp), linear-gradient(145deg,#0a1a38 0%,#0f2e58 50%,#1a6db5 100%); }
    .work-card:nth-child(6) .work-card-img { background-image: url(assets/projects/huella-maestra.webp), linear-gradient(145deg,#1e0808 0%,#5c1010 50%,#c23b1e 100%); }
    .work-card:nth-child(7) .work-card-img { background-image: url(assets/projects/tradunia.webp), linear-gradient(145deg,#0a1e18 0%,#0f3828 50%,#14a86e 100%); }
    .work-card:nth-child(8) .work-card-img { background-image: linear-gradient(145deg,#1a1a0a 0%,#3d3808 50%,#b8a010 100%); }
    /* Card bg base — slightly lighter than page bg so they pop */
    .work-card:nth-child(1) .work-card-inner { background: #121e40; }
    .work-card:nth-child(2) .work-card-inner { background: #190d30; }
    .work-card:nth-child(3) .work-card-inner { background: #142010; }
    .work-card:nth-child(4) .work-card-inner { background: #102030; }
    .work-card:nth-child(5) .work-card-inner { background: #0d1a38; }
    .work-card:nth-child(6) .work-card-inner { background: #1e0f0f; }
    .work-card:nth-child(7) .work-card-inner { background: #0a1e18; }
    .work-card:nth-child(8) .work-card-inner { background: #1a1808; }
    /* (reveal de name/tag ahora unificado en .wm-in .work-card-content) */
    @media(max-width:768px){
      .work-grid { grid-template-columns: 1fr; }
      .work-card[style*="grid-row"],
      .work-card[style*="grid-column"] { grid-row: auto!important; grid-column: auto!important; }
      .work-card-inner[style*="aspect-ratio:auto"] { min-height: 260px!important; }
      .work-card:nth-child(4) .work-card-inner { flex-direction: column!important; align-items: flex-end!important; }
    }
    .work-card-num {
      font-family: 'TT Tunnels Bold', "Impact", sans-serif;
      font-size: clamp(60px,8vw,120px);
      font-weight: 900; line-height: 1;
      letter-spacing: -0.04em;
      color: rgba(238,238,242,0.06);
      position: absolute; top: 16px; right: 20px;
      pointer-events: none;
    }
    .work-card-content { position: relative; z-index: 1; }
    .work-card-name {
      font-family: 'TT Tunnels Bold', "Impact", sans-serif;
      font-weight: 900;
      font-size: clamp(24px, 2.6vw, 40px);
      line-height: 0.95;
      text-transform: uppercase; letter-spacing: -0.01em;
      color: var(--light);
      position: relative; width: max-content; max-width: 100%;
      padding-bottom: 5px;
    }
    .work-card-name::after { content:''; position:absolute; left:0; bottom:0; width:100%; height:2px; background:var(--accent); transform:scaleX(0); transform-origin:left; transition:transform .45s var(--ease); }
    .work-card:hover .work-card-name::after { transform:scaleX(1); }
    .work-card-tag {
      font-family: 'TT Tunnels Bold', "Impact", sans-serif;
      font-size: 12px; font-weight: 600;
      letter-spacing: 0.2em; text-transform: uppercase;
      color: rgba(238,238,242,0.85); margin-bottom: 8px;
    }
    .work-card-tag::before { content:''; display:inline-block; width:6px; height:6px; background:var(--accent); border-radius:1px; margin-right:9px; vertical-align:middle; }
    .work-card-desc {
      font-family: 'Suisse Intl', "Helvetica", sans-serif;
      font-size: clamp(13px, 1vw, 15px); font-weight: 400;
      line-height: 1.65; letter-spacing: 0.01em;
      color: rgba(238,238,242,0.92);
      margin-top: 8px;
      max-height: 0; overflow: hidden;
      opacity: 0;
      transition: max-height .45s var(--ease), opacity .35s var(--ease);
    }
    .work-card:hover .work-card-desc { max-height: 120px; opacity: 1; }
    .work-card-arrow {
      position: absolute; top: 20px; right: 20px; z-index: 1;
      width: 36px; height: 36px;
      border: 1px solid rgba(238,238,242,0.2);
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-size: 15px;
      transition: transform .3s, background .3s, border-color .3s;
    }
    .work-card:hover .work-card-arrow {
      transform: rotate(45deg);
      background: var(--accent); border-color: var(--accent);
    }
    .view-all {
      margin-top: clamp(32px,4vw,56px);
      font-family: 'TT Tunnels Bold', "Impact", sans-serif;
      font-size: 15px; font-weight: 700;
      letter-spacing: 0.18em; text-transform: uppercase;
      color: var(--light);
      display: inline-flex; align-items: center; gap: 12px;
      position: relative;
    }
    .view-all::after {
      content: '';
      position: absolute; bottom: -2px; left: 0;
      width: 100%; height: 1px; background: var(--light);
      transform-origin: right; transition: transform .4s var(--ease);
    }
    .view-all:hover::after { transform: scaleX(0); transform-origin: left; }

    /* ══════════════════════════════ CÓDIGO SENDAR ══ */
    #attitude-wrapper {
      position: relative; z-index: 1;
      height: 100vh; /* JS sets actual height after measuring boxes */
    }
    #attitude {
      position: sticky; top: 0;
      height: 100vh; overflow: hidden;
    }

    /* ── Palabra gigante oscura — casi invisible sobre el fondo oscuro ── */
    .codigo-big {
      position: absolute;
      width: 100%; text-align: center;
      font-size: 37vw;
      color: #171A37;
      z-index: 1;
      line-height: 0.8;
      font-family: 'TT Tunnels Bold', "Impact", sans-serif;
      letter-spacing: -0.05em;
      top: 50%; transform: translateY(-50%);
      pointer-events: none;
      white-space: nowrap;
    }

    /* ── Copia roja revelada con clip-path de derecha → izquierda ── */
    .text-progress {
      position: absolute;
      width: 100%; top: 50%; transform: translateY(-50%);
      z-index: 2; pointer-events: none;
      text-align: center;
    }
    .text-fill {
      font-size: 37vw;
      color: var(--accent);
      clip-path: inset(0% 0% 0% 100%);
      -webkit-clip-path: inset(0% 0% 0% 100%);
      font-family: 'TT Tunnels Bold', "Impact", sans-serif;
      letter-spacing: -0.05em;
      line-height: 0.8;
      display: block;
      white-space: nowrap;
    }

    /* ── Contenedor de cajas — empieza fuera de pantalla a la derecha ── */
    .attitude-boxes {
      position: absolute;
      top: 10%; height: 80%;
      left: 0; margin-left: 99.9984vw;
      display: flex;
      z-index: 3;
    }

    /* ── Columna de cada tarjeta (stagger vertical vía align-self) ── */
    .stack {
      width: 37.4994vw;
      padding-left: 4.1666vw;
      display: flex;
      align-items: flex-end;
    }
    /* Primera columna: panel título (sin padding extra) */
    .stack:first-child {
      width: 33.3328vw;
      padding-left: 0;
      flex-direction: column;
      justify-content: flex-end;
      gap: 12px;
    }

    /* Stagger vertical — igual que la referencia */
    .b-middle { align-self: center;   }
    .b-end    { align-self: flex-end; }

    /* ── Tarjeta individual — alta, generosa ── */
    .box {
      flex: 0 0 33.3328vw;
      padding: 4.1666vw;
      background-color: rgba(34, 38, 80, 0.96);
      border-radius: 16px;
      display: flex; flex-direction: column; gap: 28px;
      align-self: flex-end;
      min-height: 68%;
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border: 1px solid rgba(238,238,242,0.06);
    }

    /* Contenido de las tarjetas */
    .rule-num {
      font-family: 'TT Lakes Neue', "Impact", sans-serif;
      font-size: 13px; font-weight: 600;
      letter-spacing: 0.20em; text-transform: uppercase;
      color: rgba(238,238,242,0.82);
      display: flex; align-items: center; gap: 8px;
    }
    .rule-num::before {
      content: '';
      display: inline-block;
      width: 7px; height: 7px;
      background: var(--accent);
      border-radius: 50%;
      flex-shrink: 0;
    }
    .rule-bar  { width: 32px; height: 2px; background: var(--accent); flex-shrink: 0; }
    .rule-name {
      font-family: 'TT Tunnels Bold', "Impact", sans-serif;
      font-weight: 900;
      font-size: clamp(34px, 3.8vw, 62px);
      text-transform: uppercase; letter-spacing: -0.02em; line-height: 0.95;
    }
    .rule-desc {
      font-size: clamp(14px, 1.2vw, 17px);
      line-height: 1.85;
      color: rgba(238,238,242,0.92); flex: 1;
    }

    /* Panel título (primera columna) */
    .attitude-title-panel h2 {
      font-family: 'TT Tunnels Bold', "Impact", sans-serif;
      font-weight: 900;
      font-size: clamp(40px, 5.5vw, 86px);
      text-transform: uppercase;
      letter-spacing: -0.02em; line-height: 0.88;
    }
    .attitude-title-panel .section-label { margin-bottom: 0; }

    /* ── Mobile: layout vertical, sin scroll horizontal ── */
    @media(max-width:768px){
      #attitude-wrapper { height: auto !important; }
      #attitude { position: relative; height: auto; overflow: visible; }
      .codigo-big { font-size: 22vw; top: auto; transform: none; position: relative;
        padding: 60px var(--pad) 40px; }
      .text-progress { display: none; }
      .attitude-boxes { position: relative; margin-left: 0; top: auto; height: auto;
        flex-direction: column; padding: var(--pad); gap: clamp(16px,3vw,24px); }
      .stack, .stack:first-child {
        width: 100%; padding-left: 0; align-items: stretch;
        flex-direction: column; justify-content: flex-start;
      }
      .box { flex: none; width: 100%; align-self: auto; }
      .b-middle, .b-end { align-self: auto; }
    }

    /* ══════════════════════════════ CLIENTS ══ */
    #clients {
      position: relative; z-index: 1;
      padding: clamp(80px,10vw,160px) var(--pad);
    }
    .clients-header {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: clamp(40px,6vw,100px);
      align-items: start;
      margin-bottom: clamp(60px,8vw,120px);
    }
    @media(max-width:768px){
      #intro {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: clamp(32px,6vw,56px) 0;
      }
      .intro-label { writing-mode: horizontal-tb; transform: none; margin-bottom: 0; }
      .intro-big-text { grid-column: 1; }
      .intro-small-text p { max-width: 100%; font-size: 14px; }
      .intro-ctas { flex-direction: row; gap: 12px; }
    }
    @media(max-width:768px){.clients-header{grid-template-columns:1fr}}
    .clients-heading {
      font-family: 'TT Tunnels Bold', "Impact", sans-serif;
      font-weight: 900;
      font-size: clamp(44px, 7vw, 108px);
      text-transform: uppercase;
      letter-spacing: -0.02em; line-height: 0.9;
    }
    .clients-heading em { font-style: normal; color: var(--accent); }
    .clients-header-right {
      display: flex; flex-direction: column;
      justify-content: flex-end; gap: 32px;
    }
    .clients-body {
      font-size: clamp(15px, 1.35vw, 18px);
      line-height: 1.8; color: rgba(238,238,242,0.92);
    }
    @media(max-width:768px){ .clients-header-right { gap: 24px; } }
    /* Marquee */
    .clients-marquee {
      overflow: hidden;
      margin-bottom: clamp(48px,6vw,96px);
      border-top: 1px solid rgba(238,238,242,0.08);
      border-bottom: 1px solid rgba(238,238,242,0.08);
      padding: 12px 0;
    }
    .clients-marquee-inner {
      display: flex; white-space: nowrap;
      animation: marquee 12s linear infinite;
    }
    .clients-marquee-inner span {
      font-family: 'TT Tunnels Bold', "Impact", sans-serif;
      font-weight: 900;
      font-size: clamp(32px, 5vw, 80px);
      text-transform: uppercase;
      letter-spacing: -0.02em; padding-right: 56px;
      color: rgba(238,238,242,0.07);
    }
    .clients-marquee-inner span em { font-style: normal; color: rgba(214,46,73,0.25); }
    @keyframes marquee{0%{transform:translateX(0)}100%{transform:translateX(-50%)}}
    .stats {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 1px; background: rgba(238,238,242,0.08);
    }
    @media(max-width:900px){.stats{grid-template-columns:repeat(2,1fr)}}
    .stat {
      background: var(--dark);
      padding: clamp(20px,2.5vw,40px) clamp(16px,2vw,28px);
      display: flex; flex-direction: column; gap: 8px;
    }
    .stat-num {
      font-family: 'TT Tunnels Bold', "Impact", sans-serif;
      font-weight: 900;
      font-size: clamp(32px,4.5vw,68px);
      line-height: 1; letter-spacing: -0.02em;
    }
    .stat-label {
      font-family: 'TT Tunnels Bold', "Impact", sans-serif;
      font-size: 13px; font-weight: 700;
      letter-spacing: 0.16em; text-transform: uppercase;
      color: rgba(238,238,242,0.86); line-height: 1.55;
    }

    /* ══════════════════════════════ TESTIMONIALS ══ */
    #testimonials {
      position: relative; z-index: 1;
      padding: clamp(80px,10vw,160px) var(--pad); overflow: hidden;
    }
    .test-hdr { margin-bottom: clamp(48px,6vw,96px); }
    .test-eyebrow {
      font-family: 'TT Tunnels Bold', "Impact", sans-serif;
      font-size: 13px; font-weight: 700;
      letter-spacing: 0.25em; text-transform: uppercase;
      color: var(--faded); margin-bottom: 16px;
    }
    .test-title {
      font-family: 'TT Tunnels Bold', "Impact", sans-serif;
      font-weight: 900;
      font-size: clamp(44px,7vw,108px);
      text-transform: uppercase;
      letter-spacing: -0.02em; line-height: 0.9;
    }
    .test-track {
      display: flex; gap: 20px;
      overflow-x: auto; scrollbar-width: none;
      padding-bottom: 24px; cursor: grab;
    }
    .test-track::-webkit-scrollbar { display: none; }
    .test-track:active { cursor: grabbing; }
    .test-card {
      flex: 0 0 clamp(280px,32vw,460px);
      border: 1px solid rgba(238,238,242,0.1);
      background: rgba(238,238,242,0.04);
      padding: clamp(24px,2.8vw,44px);
      display: flex; flex-direction: column; gap: 24px;
      transition: border-color .3s, background .3s;
      user-select: none;
    }
    .test-card:hover { border-color: rgba(238,238,242,0.2); background: rgba(238,238,242,0.07); }
    .test-heart { color: var(--accent); font-size: 18px; }
    .test-quote {
      font-size: clamp(16px, 1.4vw, 20px);
      line-height: 1.85; color: rgba(238,238,242,0.92); flex: 1;
    }
    .test-author {
      border-top: 1px solid rgba(238,238,242,0.1);
      padding-top: 18px;
    }
    .test-name {
      font-family: 'TT Tunnels Bold', "Impact", sans-serif;
      font-size: clamp(14px, 1.1vw, 16px); font-weight: 700;
      letter-spacing: 0.15em; text-transform: uppercase;
    }
    .test-role {
      font-family: 'TT Tunnels Bold', "Impact", sans-serif;
      font-size: clamp(12px, 0.95vw, 14px); letter-spacing: 0.10em;
      color: rgba(238,238,242,0.80); margin-top: 4px;
    }

    /* ══════════════════════════════ PRE-FOOTER ══ */
    #pre-footer {
      position: relative; z-index: 1;
      padding: clamp(36px,4vw,64px) var(--pad);
      border-top: 1px solid rgba(238,238,242,0.1);
      display: flex; align-items: center;
      justify-content: space-between; flex-wrap: wrap; gap: 20px;
    }
    .pf-left { display: flex; flex-direction: column; gap: 4px; }
    .pf-label {
      font-family: 'TT Tunnels Bold', "Impact", sans-serif;
      font-size: 13px; font-weight: 700;
      letter-spacing: 0.20em; text-transform: uppercase; color: rgba(238,238,242,0.82);
    }
    .pf-name {
      font-family: 'TT Tunnels Bold', "Impact", sans-serif;
      font-weight: 900;
      font-size: clamp(22px,3vw,44px);
      text-transform: uppercase; letter-spacing: -0.01em;
      transition: color .3s;
    }
    .pf-name:hover { color: var(--accent); }

    /* ══════════════════════════════ FOOTER ══ */
    #footer {
      position: relative; z-index: 1;
      padding: clamp(56px,8vw,120px) var(--pad) var(--cta-safe-b);
      border-top: 1px solid rgba(238,238,242,0.1);
    }
    .footer-cta {
      font-family: 'TT Tunnels Bold', "Impact", sans-serif;
      font-weight: 900;
      font-size: clamp(56px,10vw,170px);
      text-transform: uppercase;
      letter-spacing: -0.03em; line-height: 0.88;
      margin-bottom: clamp(48px,6vw,96px);
    }
    .footer-cta a { position: relative; display: inline-block; }
    .footer-cta a::after {
      content: '';
      position: absolute; bottom: 4px; left: 0;
      width: 100%; height: 3px; background: var(--accent);
      transform: scaleX(0); transform-origin: right;
      transition: transform .6s var(--ease);
    }
    .footer-cta a:hover::after { transform: scaleX(1); transform-origin: left; }
    .footer-cols {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: clamp(28px,4vw,60px);
      margin-bottom: clamp(40px,5vw,72px);
    }
    @media(max-width:768px){.footer-cols{grid-template-columns:1fr 1fr}}
    .fcol-title {
      font-family: 'TT Tunnels Bold', "Impact", sans-serif;
      font-size: 13px; font-weight: 700;
      letter-spacing: 0.20em; text-transform: uppercase;
      color: rgba(238,238,242,0.80); margin-bottom: 18px;
    }
    .fcol-links { display: flex; flex-direction: column; gap: 9px; }
    .fcol-links a {
      font-family: 'TT Tunnels Bold', "Impact", sans-serif;
      font-size: 13px; font-weight: 500;
      letter-spacing: 0.06em; text-transform: uppercase;
      color: rgba(238,238,242,0.92); transition: color .25s;
      position: relative; display: inline-block;
    }
    .fcol-links a::after {
      content: '';
      position: absolute; bottom: -1px; left: 0;
      width: 0; height: 1px; background: var(--accent);
      transition: width .3s var(--ease);
    }
    .fcol-links a:hover { color: var(--light); }
    .fcol-links a:hover::after { width: 100%; }
    .fcol-address { font-size: 13px; line-height: 1.75; color: rgba(238,238,242,0.86); }
    .footer-bottom {
      display: flex; align-items: center; justify-content: space-between;
      flex-wrap: wrap; gap: 14px;
      padding-top: clamp(20px,2.5vw,36px);
      border-top: 1px solid rgba(238,238,242,0.07);
    }
    .footer-copy {
      font-family: 'TT Tunnels Bold', "Impact", sans-serif;
      font-size: 13px; letter-spacing: 0.10em; color: rgba(238,238,242,0.80);
    }
    .footer-social { display: flex; gap: 18px; }
    .footer-social a {
      font-family: 'TT Tunnels Bold', "Impact", sans-serif;
      font-size: 13px; font-weight: 600;
      letter-spacing: 0.12em; text-transform: uppercase;
      color: rgba(238,238,242,0.80); transition: color .25s;
    }
    .footer-social a:hover { color: var(--light); }

    /* ══════════════════════════════ REVEAL UTILS ══ */
    .reveal { opacity: 0; transform: translateY(56px) scale(0.975); filter: blur(3px); }
    .reveal.in {
      opacity: 1; transform: translateY(0) scale(1); filter: blur(0);
      transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter .8s var(--ease);
    }
    .d1{transition-delay:.12s!important}
    .d2{transition-delay:.26s!important}
    .d3{transition-delay:.40s!important}
    .d4{transition-delay:.54s!important}
    .d4{transition-delay:.4s!important}
    .d5{transition-delay:.5s!important}
  
    /* ── PROFESSIONAL FOOTER (overrides) ── */
    #footer { padding: clamp(64px,9vw,130px) var(--pad) clamp(140px,14vw,170px); border-top: 1px solid rgba(238,238,242,0.10); position: relative; z-index: 1; background: linear-gradient(180deg, transparent 0%, rgba(13,15,32,0.55) 100%); }
    .footer-cta { font-family: 'TT Tunnels Bold', "Impact", sans-serif; font-weight: 900; font-size: clamp(56px,10vw,170px); text-transform: uppercase; letter-spacing: -0.03em; line-height: 0.88; margin-bottom: clamp(48px,6vw,96px); }
    .footer-cta a { position: relative; display: inline-block; color: var(--light); }
    .footer-cta a em { font-style: normal; color: var(--accent); }
    .footer-cta a::after { content: ''; position: absolute; bottom: 4px; left: 0; width: 100%; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
    .footer-cta a:hover::after { transform: scaleX(1); transform-origin: left; }
    .footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(28px,4vw,72px); padding-bottom: clamp(40px,5vw,72px); border-bottom: 1px solid rgba(238,238,242,0.10); margin-bottom: clamp(28px,3.5vw,48px); }
    @media(max-width:900px){.footer-grid{grid-template-columns:1fr 1fr;gap:36px}}
    @media(max-width:520px){.footer-grid{grid-template-columns:1fr}}
    .fbrand { display: flex; flex-direction: column; gap: 18px; }
    .fbrand-logo { width: 64px; height: 64px; }
    .fbrand-name { font-family: 'TT Tunnels Bold', "Impact", sans-serif; font-weight: 900; font-size: 22px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--light); }
    .fbrand-tag { font-family: 'Suisse Intl', "Helvetica", sans-serif; font-size: 14px; line-height: 1.7; color: rgba(238,238,242,0.86); max-width: 32ch; }
    .fbrand-meta { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; font-family: 'TT Lakes Neue', "Impact", sans-serif; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(238,238,242,0.70); }
    .fbrand-meta a { color: rgba(238,238,242,0.85); transition: color .25s; }
    .fbrand-meta a:hover { color: var(--accent); }
    .fcol-title { font-family: 'TT Lakes Neue', "Impact", sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(238,238,242,0.70); margin-bottom: 22px; padding-bottom: 12px; border-bottom: 1px solid rgba(238,238,242,0.08); }
    .fcol-links { display: flex; flex-direction: column; gap: 11px; }
    .fcol-links a { font-family: 'Suisse Intl', "Helvetica", sans-serif; font-size: 14px; letter-spacing: 0; text-transform: none; color: rgba(238,238,242,0.90); transition: color .25s, padding-left .25s; position: relative; padding-left: 0; }
    .fcol-links a:hover { color: var(--accent); padding-left: 8px; }
    .fcol-links a::before { content: '→'; position: absolute; left: -16px; top: 0; opacity: 0; transition: opacity .25s, left .25s; color: var(--accent); }
    .fcol-links a:hover::before { opacity: 1; left: -10px; }
    .fcol-address { font-family: 'Suisse Intl', "Helvetica", sans-serif; font-size: 14px; line-height: 1.75; color: rgba(238,238,242,0.90); margin-top: 2px; font-style: normal; }
    .fcol-address strong { color: var(--light); font-weight: 600; }
    .footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; padding-top: clamp(20px,2.5vw,36px); }
    .footer-copy { font-family: 'TT Lakes Neue', "Impact", sans-serif; font-size: 12px; letter-spacing: 0.16em; color: rgba(238,238,242,0.70); text-transform: uppercase; }
    .footer-legal { display: flex; gap: 22px; flex-wrap: wrap; }
    .footer-legal a { font-family: 'TT Lakes Neue', "Impact", sans-serif; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(238,238,242,0.70); transition: color .25s; }
    .footer-legal a:hover { color: var(--light); }
    .footer-social { display: flex; gap: 14px; }
    .footer-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(238,238,242,0.18); display: inline-flex; align-items: center; justify-content: center; color: rgba(238,238,242,0.80); transition: color .25s, background .25s, border-color .25s, transform .25s; font-family: 'TT Lakes Neue', sans-serif; font-size: 11px; letter-spacing: 0.1em; text-transform: lowercase; }
    .footer-social a:hover { color: var(--light); background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
    @media(max-width:600px){.footer-bottom{flex-direction:column;align-items:flex-start;gap:20px}}
    /* Default (transparent) button → solid border, light fill on hover */
    .btn {
      color: var(--light) !important;
      background: rgba(238,238,242,0.10) !important;
      border-color: rgba(238,238,242,0.90) !important;
    }
    .btn:hover { color: var(--dark) !important; border-color: var(--light) !important; }
    /* Accent (red) → solid fill */
    .btn-accent, .btn-cta-primary {
      background: var(--accent) !important;
      border-color: var(--accent) !important;
      color: #fff !important;
      box-shadow: 0 8px 24px rgba(214,46,73,0.30);
    }
    .btn-accent:hover, .btn-cta-primary:hover { box-shadow: 0 12px 32px rgba(214,46,73,0.50); }
    /* Plan button (inside white cards) */
    .btn-plan {
      background: var(--dark) !important;
      border-color: var(--dark) !important;
      color: var(--light) !important;
    }
    /* Submit big button */
    .btn-submit { font-size: clamp(15px, 1.3vw, 18px) !important; box-shadow: 0 14px 36px rgba(214,46,73,0.40); }
    /* Stop btn from stretching inside flex containers */
    .pf-left ~ .btn, #pre-footer .btn, .sv-cta-actions .btn,
    .sv-cta-actions .btn-cta-primary, .sv-cta-actions .btn-cta-secondary {
      flex: 0 0 auto !important;
      width: auto !important;
    }
  
    /* ── BUTTONS — GLOBAL VISIBILITY OVERRIDE (v3 — LARGER) ── */
    .btn, .btn-plan, .btn-cta-primary, .btn-cta-secondary, .btn-submit, .success-btn {
      font-size: clamp(15px, 1.3vw, 18px) !important;
      font-weight: 800 !important;
      letter-spacing: 0.14em !important;
      padding: clamp(20px, 2.2vw, 26px) clamp(36px, 4vw, 52px) !important;
      border-width: 2.5px !important;
      gap: 14px !important;
      white-space: nowrap;
      max-width: max-content;
      align-self: flex-start;
      line-height: 1;
      border-radius: 100px !important;
    }
    .btn-arr, .btn .btn-arr, .btn-plan .btn-arr, .btn-cta-primary .btn-arr, .btn-cta-secondary .btn-arr {
      font-size: 1.15em !important;
      font-weight: 700;
    }
    /* Default (light border) */
    .btn {
      color: var(--light) !important;
      background: rgba(238,238,242,0.12) !important;
      border-color: var(--light) !important;
    }
    .btn:hover { color: var(--dark) !important; background: var(--light) !important; }
    /* Accent (red) */
    .btn-accent, .btn-cta-primary {
      background: var(--accent) !important;
      border-color: var(--accent) !important;
      color: #fff !important;
      box-shadow: 0 10px 28px rgba(214,46,73,0.34);
    }
    .btn-accent:hover, .btn-cta-primary:hover { box-shadow: 0 16px 40px rgba(214,46,73,0.55); transform: translateY(-2px); }
    /* Plan button (inside white cards) */
    .btn-plan {
      background: var(--dark) !important;
      border-color: var(--dark) !important;
      color: var(--light) !important;
    }
    /* Submit big button */
    .btn-submit {
      font-size: clamp(16px, 1.4vw, 20px) !important;
      padding: clamp(22px,2.4vw,28px) clamp(48px,5vw,68px) !important;
      box-shadow: 0 14px 36px rgba(214,46,73,0.40);
    }
    /* Stop btn from stretching */
    #pre-footer .btn, .sv-cta-actions .btn,
    .sv-cta-actions .btn-cta-primary, .sv-cta-actions .btn-cta-secondary {
      flex: 0 0 auto !important;
      width: auto !important;
    }
    /* "Ver todos" link in work section — give it btn-like presence */
    .view-all {
      display: inline-flex; align-items: center; gap: 12px;
      font-family: 'TT Tunnels Bold', "Impact", sans-serif;
      font-weight: 800; font-size: 15px; letter-spacing: 0.14em;
      color: var(--light); border: 2px solid var(--light);
      padding: 16px 32px; border-radius: 100px;
      transition: background .3s, color .3s, transform .3s;
    }
    .view-all:hover { background: var(--light); color: var(--dark); transform: translateY(-2px); }

/* ════════ RESPONSIVE MÓVIL — HOME (fix overflow + legibilidad) ════════ */
    @media(max-width:820px){
      /* botones flotantes más pequeños y proporcionados */
      .nav-brand .sendar-logo { width: 58px; height: 58px; }
      .nav-brand { gap: 12px; }
      .nav-brand .brand-text .brand-name { font-size: 17px; letter-spacing: 0.18em; }
      .nav-brand .brand-text .brand-sub { font-size: 10px; letter-spacing: 0.22em; }
      .menu-toggle { width: 58px; height: 58px; }
      .menu-toggle svg { width: 24px; height: 30px; }
      #fixed-cta { width: 58px; height: 58px; right: 20px; bottom: 20px; }
      #fixed-cta svg { width: 24px; height: 24px; }
      :root { --nav-h: 120px; --cta-safe-r: 20px; --cta-safe-b: 96px; }

      /* HERO: apilar en una columna, alineado a la izquierda */
      #hero { height: auto; min-height: auto; padding-top: calc(var(--nav-h) + 18px); padding-bottom: clamp(40px,9vw,64px); }
      .hero-text-wrap { flex-direction: column; align-items: flex-start; justify-content: flex-start;
        padding: 0 var(--pad); gap: 4px; margin-top: 8px; margin-bottom: clamp(28px,6vw,48px); z-index: 3; }
      .hero-left, .hero-right { width: 100%; align-items: flex-start; text-align: left; }
      .hero-right { gap: 4px; }
      .h-word { font-size: clamp(40px, 13vw, 80px); letter-spacing: 0; line-height: 0.98; }
      .h-studio-word { font-size: clamp(22px, 6.5vw, 40px); }
      .h-row { flex-wrap: wrap; }
      .hero-tagline-inline { text-align: left; margin-top: clamp(16px,4vw,24px);
        font-size: clamp(12.5px,3.4vw,15px); line-height: 1.95; letter-spacing: 0.08em; }
      .cta-quiero { width: 100%; max-width: 360px; height: clamp(58px,14vw,66px);
        align-self: flex-start; margin-top: clamp(18px,4.5vw,26px); }
      /* la bola pasa a ser un fondo sutil para que el texto mande y se lea bien */
      #webglBubble { opacity: 0.22; }
      .hero-text-wrap { position: relative; }
      .hero-text-wrap::before { content:''; position:absolute; inset:-6% -8% -10% -8%; z-index:-1;
        background: radial-gradient(120% 90% at 20% 40%, rgba(19,22,46,0.86), rgba(19,22,46,0.55) 55%, transparent 80%); }
      .hero-bottom { padding: 0 var(--pad); }

      /* secciones a 1 columna */
      .work-top { grid-template-columns: 1fr; gap: 16px; }
      .work-grid { grid-template-columns: 1fr !important; }
      .stats { grid-template-columns: repeat(2,1fr); }
      html, body { overflow-x: hidden; max-width: 100%; }
      .scrollPattern, .scrollPattern img { max-width: 100vw; }
      /* menú desplegable: que no genere scroll horizontal */
      #menu-slide { overflow-x: hidden; height: auto; min-height: 0; padding: clamp(90px,16vw,120px) var(--pad) clamp(40px,8vw,64px); }
      #menu-slide .links { flex-direction: column; gap: 4px; width: 100%; }
      #menu-slide .nav-link { font-size: clamp(34px,9vw,56px); gap: 14px; }
      #menu-slide .social { gap: 18px 22px; margin-top: 24px; }
      #menu-slide .social a { font-size: 11px; }
    }
    /* INTRO: texto grande y botones que caben */
    @media(max-width:820px){
      .intro-big-text p { font-size: clamp(28px, 7.6vw, 56px); letter-spacing: 0; overflow-wrap: anywhere; }
      .intro-ctas { flex-direction: column !important; align-items: stretch; }
      .intro-ctas .btn { width: 100%; max-width: 100% !important; justify-content: center; }
      .work-card-name { font-size: clamp(24px, 7vw, 36px); }
    }
    @media(max-width:480px){
      .h-word { font-size: clamp(34px, 13vw, 56px); }
      .h-studio-word { font-size: clamp(20px, 6.5vw, 30px); }
      .stats { grid-template-columns: 1fr 1fr; }
      .intro-big-text p { font-size: clamp(24px, 7.4vw, 44px); }
    }
