      :root {
        --bg: #fdf8f2;
        --orange: #ff7a00;
        --ink: #b34d00;
        --cyan: #00b4d8;
        --dark: #201205;
        --card: #fffaf3;
        --text: #241505;
        --text-soft: #7a6a5a;
        --line: rgba(36, 21, 5, 0.12);
      }

      * {
        box-sizing: border-box;
      }
      html {
        scroll-behavior: smooth;
      }
      html,
      body {
        width: 100%;
        margin: 0;
        background: var(--bg);
        color: var(--text);
        font-family:
          Inter,
          system-ui,
          -apple-system,
          BlinkMacSystemFont,
          "Segoe UI",
          sans-serif;
      }
      body {
        position: relative;
        overflow-x: hidden;
      }
      img,
      svg {
        max-width: 100%;
      }

      .display {
        font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
        letter-spacing: -0.02em;
        line-height: 0.94;
        text-transform: uppercase;
      }
      a {
        color: inherit;
      }
      .wrap {
        max-width: 1180px;
        margin: 0 auto;
        padding: 0 clamp(20px, 5vw, 56px);
      }
      .icon {
        width: 30px;
        height: 30px;
        color: var(--orange);
      }

      /* ================= HERO ================= */
      .hero-wrap {
        position: relative;
        height: 170vh;
      }
      .hero-pin {
        position: sticky;
        top: 0;
        height: 100vh;
        overflow: hidden;
      }

      .background-type {
        position: absolute;
        inset: 0;
        z-index: 0;
        overflow: hidden;
        pointer-events: none;
        user-select: none;
        color: var(--orange);
        font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
        font-size: clamp(110px, 15vw, 240px);
        font-weight: 900;
        line-height: 0.82;
        letter-spacing: -0.055em;
        display: flex;
        align-items: center;
        transform: rotate(-7deg) scale(1.12);
      }
      .background-marquee {
        display: flex;
        width: max-content;
        flex-shrink: 0;
        animation: marquee 90s linear infinite;
        will-change: transform;
      }
      .background-track {
        display: flex;
        align-items: center;
        flex-shrink: 0;
        white-space: nowrap;
        gap: 0.42em;
        padding-right: 0.42em;
      }
      .background-track span {
        display: block;
        flex-shrink: 0;
      }
      @keyframes marquee {
        from {
          transform: translateX(0);
        }
        to {
          transform: translateX(-50%);
        }
      }

      #scene {
        position: fixed;
        inset: 0;
        z-index: 3;
        pointer-events: none;
      }
      #scene.is-interactive {
        pointer-events: auto;
      }
      #scene.menu-open {
        pointer-events: none;
        z-index: 60;
      }
      @media (hover: none) {
        #scene.is-interactive {
          pointer-events: none;
        }
      }
      .pin-hit {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 0;
        z-index: 4;
        pointer-events: none;
        touch-action: none;
        cursor: grab;
      }
      .pin-hit.active {
        pointer-events: auto;
      }
      .pin-hit.dragging {
        cursor: grabbing;
      }
      canvas {
        display: block;
        width: 100%;
        height: 100%;
        touch-action: pan-y;
        cursor: grab;
      }
      canvas.dragging {
        cursor: grabbing;
      }

      .hero-caption {
        position: absolute;
        left: 50%;
        top: 7%;
        transform: translateX(-50%);
        z-index: 2;
        text-align: center;
        pointer-events: none;
        width: min(720px, 88vw);
      }
      .hero-caption p {
        margin: 0;
        color: var(--orange);
        font-size: 0.95rem;
        font-weight: 600;
      }

      /* ================= NAV flotante ================= */
      .hud {
        position: fixed;
        left: 50%;
        bottom: 24px;
        transform: translateX(-50%);
        z-index: 40;
        pointer-events: auto;
        max-width: 94vw;
        will-change: transform;
        transition:
          opacity 0.35s ease,
          transform 0.35s ease;
      }
      .hud.is-hidden {
        opacity: 0;
        transform: translateX(-50%) translateY(24px);
        pointer-events: none;
      }
      .bottom-nav {
        display: flex;
        align-items: center;
        gap: 0.2rem;
        padding: 0.35rem;
        background: color-mix(in srgb, var(--bg) 78%, transparent);
        backdrop-filter: blur(14px);
        border: 1px solid var(--line);
        border-radius: 999px;
        box-shadow: 0 14px 40px rgba(0, 0, 0, 0.14);
        overflow-x: auto;
        scrollbar-width: none;
      }
      .bottom-nav::-webkit-scrollbar {
        display: none;
      }
      .bottom-nav a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        padding: 0.55rem 0.85rem;
        color: var(--orange);
        text-decoration: none;
        font-size: 0.76rem;
        font-weight: 700;
        letter-spacing: 0.02em;
        border-radius: 999px;
        transition:
          background-color 180ms ease,
          color 180ms ease,
          transform 180ms ease;
      }
      .bottom-nav a:hover {
        background: color-mix(in srgb, var(--orange) 16%, transparent);
      }
      .bottom-nav a.active {
        background: var(--orange);
        color: #fff;
      }

      /* ================= Menú hamburguesa (móvil) ================= */
      .nav-toggle {
        position: fixed;
        left: 50%;
        top: auto;
        right: auto;
        bottom: calc(20px + env(safe-area-inset-bottom));
        z-index: 50;
        display: none;
        align-items: center;
        justify-content: center;
        width: 52px;
        height: 48px;
        padding: 0;
        border: 1px solid var(--line);
        border-radius: 999px;
        background: color-mix(in srgb, var(--bg) 82%, transparent);
        backdrop-filter: blur(14px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        color: var(--orange);
        cursor: pointer;
        transform: translateX(-50%);
        will-change: transform;
        transition:
          opacity 0.35s ease,
          transform 0.35s ease;
      }
      .nav-toggle.is-hidden {
        opacity: 0;
        transform: translateX(-50%) translateY(12px);
        pointer-events: none;
      }
      .nav-toggle:active {
        transform: translateX(-50%) scale(0.94);
      }
      .nav-toggle .nav-burger,
      .nav-toggle .nav-x {
        position: absolute;
        display: flex;
        align-items: center;
        justify-content: center;
        transition:
          opacity 180ms ease,
          transform 180ms ease;
      }
      .nav-toggle .nav-burger {
        flex-direction: column;
        gap: 5px;
      }
      .nav-toggle .nav-burger i {
        display: block;
        width: 20px;
        height: 2px;
        border-radius: 2px;
        background: var(--orange);
      }
      .nav-toggle .nav-x {
        font-size: 1.45rem;
        line-height: 1;
        opacity: 0;
        transform: scale(0.6);
      }
      .nav-toggle.is-open .nav-burger {
        opacity: 0;
        transform: scale(0.6);
      }
      .nav-toggle.is-open .nav-x {
        opacity: 1;
        transform: scale(1);
      }

      .nav-backdrop {
        position: fixed;
        inset: 0;
        z-index: 45;
        background: rgba(24, 12, 0, 0.4);
        opacity: 0;
        visibility: hidden;
        transition:
          opacity 260ms ease,
          visibility 260ms ease;
      }
      .nav-backdrop.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
      }

      .nav-drawer {
        position: fixed;
        inset: 0;
        z-index: 46;
        padding: 26px 28px;
        background: #fff;
        transform: translateY(100%);
        transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
        display: flex;
        flex-direction: column;
      }
      .nav-drawer.is-open {
        transform: translateY(0);
      }
      .nav-drawer.is-open .nav-drawer-head .display {
        visibility: hidden;
      }
      .nav-drawer.is-open .nav-close {
        display: none;
      }
      .nav-drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 2rem;
        font-size: 1.6rem;
        color: var(--orange);
      }
      .nav-close {
        width: 40px;
        height: 40px;
        border: 1px solid var(--line);
        border-radius: 999px;
        background: transparent;
        color: var(--orange);
        font-size: 1.05rem;
        line-height: 1;
        cursor: pointer;
      }
      .drawer-nav {
        flex: 1 1 auto;
        display: grid;
        align-content: center;
        gap: 0.6rem;
      }
      .drawer-nav a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 1.1rem;
        color: var(--orange);
        text-decoration: none;
        font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
        font-weight: 400;
        font-size: 1.6rem;
        letter-spacing: 0.03em;
        text-transform: uppercase;
        border-radius: 14px;
        transition:
          background-color 180ms ease,
          color 180ms ease;
      }
      .drawer-nav a:hover {
        background: color-mix(in srgb, var(--orange) 12%, transparent);
      }
      .drawer-nav a.active {
        background: var(--orange);
        color: #fff;
      }
      .nav-drawer-foot {
        margin-top: auto;
        padding-top: 2rem;
        font-size: 0.8rem;
        color: var(--text-soft);
      }

      @media (max-width: 720px) {
        .nav-toggle {
          display: flex;
        }
        .hud {
          display: none;
        }
      }

      /* ================= WhatsApp flotante ================= */
      .wsp-float {
        position: fixed;
        right: 22px;
        bottom: 24px;
        z-index: 40;
        width: 58px;
        height: 58px;
        border-radius: 50%;
        background: #25d366;
        color: #0b3d20;
        display: grid;
        place-items: center;
        box-shadow: 0 14px 34px rgba(37, 211, 102, 0.45);
        text-decoration: none;
        will-change: transform;
      }
      .wsp-float svg {
        width: 28px;
        height: 28px;
      }
      .wsp-float::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 50%;
        border: 2px solid #25d366;
        animation: pulse 2.2s ease-out infinite;
      }
      @keyframes pulse {
        0% {
          transform: scale(1);
          opacity: 0.7;
        }
        100% {
          transform: scale(1.65);
          opacity: 0;
        }
      }

      /* ================= Secciones ================= */
      section {
        position: relative;
        padding: clamp(72px, 12vw, 140px) 0;
      }
      .kicker {
        color: var(--orange);
        font-weight: 700;
        font-size: 0.95rem;
        margin: 0 0 0.6em;
      }
      h2.section-title {
        margin: 0 0 0.35em;
        font-size: clamp(2.4rem, 6vw, 4.4rem);
      }
      .lede {
        max-width: 52ch;
        color: var(--text-soft);
        font-size: 1.08rem;
        line-height: 1.6;
        margin: 0;
      }

      .wave {
        display: block;
        width: 100%;
        height: clamp(40px, 8vw, 90px);
      }

      /* -------- NOSOTROS -------- */
      #nosotros {
        background: var(--bg);
      }
      .nosotros-grid {
        display: grid;
        grid-template-columns: 1.1fr 0.9fr;
        gap: clamp(32px, 6vw, 72px);
        align-items: start;
        position: relative;
        z-index: 1;
      }
      @media (max-width: 860px) {
        .nosotros-grid {
          grid-template-columns: 1fr;
        }
      }

      .stat-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 28px 20px;
        margin-top: 2.2rem;
      }
      .stat b {
        display: block;
        font-family: Impact, Haettenschweiler, sans-serif;
        font-size: clamp(2.6rem, 6vw, 3.6rem);
        color: var(--orange);
        line-height: 1;
      }
      .stat span {
        color: var(--text-soft);
        font-size: 0.92rem;
      }

      .story-card {
        background: var(--card);
        border: 1px solid var(--line);
        border-radius: 34px 14px 34px 14px;
        padding: clamp(24px, 4vw, 40px);
        transform: rotate(-1.4deg);
        transition: transform 260ms ease;
      }
      .story-card:hover {
        transform: rotate(0deg);
      }
      .highlight-text {
        margin: 0;
        font-size: 1.15rem;
        line-height: 1.75;
      }
      .highlight-text .word {
        opacity: 0.32;
        color: var(--text-soft);
        transition: none;
      }

      /* -------- PROCESO (pineado) -------- */
      #proceso {
        background: var(--card);
      }
      .steps-wrap {
        display: grid;
        grid-template-columns: 0.8fr 1.2fr;
        gap: clamp(24px, 5vw, 64px);
        position: relative;
        z-index: 1;
      }

      .steps-sticky {
        position: sticky;
        top: 22vh;
        align-self: start;
      }
      @media (max-width: 860px) {
        .steps-wrap {
          grid-template-columns: 1fr;
        }
        .steps-sticky {
          position: static;
          top: auto;
          margin-bottom: 12px;
        }
      }
      .steps-sticky .kicker {
        color: var(--cyan);
      }
      .steps-num {
        font-family: Impact, Haettenschweiler, sans-serif;
        font-size: clamp(4rem, 12vw, 8rem);
        color: var(--cyan);
        line-height: 0.9;
        margin: 0.3em 0;
      }
      .steps-progress {
        width: 4px;
        height: 140px;
        background: var(--line);
        border-radius: 4px;
        overflow: hidden;
        margin-top: 8px;
      }
      .steps-progress span {
        display: block;
        width: 100%;
        height: 33%;
        background: var(--cyan);
        border-radius: 4px;
        transition: height 200ms ease;
      }

      .steps-list {
        display: grid;
        gap: clamp(40px, 8vh, 20vh);
        padding: 6vh 0;
      }
      .step-block {
        opacity: 0.32;
        transform: translateY(10px);
        transition:
          opacity 320ms ease,
          transform 320ms ease;
        max-width: 46ch;
      }
      .step-block.active {
        opacity: 1;
        transform: translateY(0);
      }
      .step-block .icon {
        color: var(--cyan);
        width: 40px;
        height: 40px;
        margin-bottom: 14px;
      }
      .step-block .icon3d {
        width: 46px;
        height: 46px;
      }

      /* -------- Fondo 3D difuminado por sección -------- */
      #nosotros,
      #proceso,
      #servicios,
      #juegos {
        position: relative;
        isolation: isolate;
      }
      .section-bg {
        position: absolute;
        z-index: -1;
        top: 50%;
        right: 0;
        width: min(56vmin, 520px);
        height: min(56vmin, 520px);
        transform: translateY(-50%);
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        filter: blur(6px);
        opacity: 0.16;
        pointer-events: none;
        user-select: none;
      }
      @media (max-width: 720px) {
        .section-bg {
          display: none;
        }
      }
      .step-block h3 {
        margin: 0 0 8px;
        font-size: 1.5rem;
      }
      .step-block p {
        margin: 0;
        color: var(--text-soft);
        line-height: 1.6;
      }

      /* -------- SERVICIOS -------- */
      #servicios {
        background: var(--bg);
      }
      .services-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-top: 3rem;
        position: relative;
        z-index: 1;
      }
      @media (max-width: 900px) {
        .services-grid {
          grid-template-columns: repeat(2, 1fr);
        }
      }
      @media (max-width: 560px) {
        .services-grid {
          grid-template-columns: 1fr;
        }
      }

      .service {
        background: var(--card);
        border: 1px solid var(--line);
        border-radius: 28px;
        padding: 28px 24px;
        transform: rotate(var(--tilt, 0deg));
        transition:
          transform 220ms ease,
          box-shadow 220ms ease;
      }
      .service:hover {
        transform: rotate(0deg) translateY(-4px);
        box-shadow: 0 18px 34px rgba(0, 0, 0, 0.1);
      }
      .service .icon {
        margin-bottom: 14px;
      }
      .icon3d {
        position: relative;
        width: 58px;
        height: 58px;
        margin-bottom: 14px;
      }
      .icon3d svg {
        width: 100%;
        height: 100%;
        margin-bottom: 0;
      }
      body.has-icon3d .icon3d svg {
        display: none;
      }
      #icon3d-layer {
        position: fixed;
        inset: 0;
        z-index: 2;
        pointer-events: none;
        cursor: default;
        display: none;
      }
      body.has-icon3d #icon3d-layer {
        display: block;
      }
      .service h3 {
        margin: 0 0 6px;
        font-size: 1.15rem;
      }
      .service p {
        margin: 0;
        color: var(--text-soft);
        font-size: 0.94rem;
        line-height: 1.55;
      }

      /* -------- JUEGOS -------- */
      #juegos {
        background: var(--card);
      }
      .games-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 22px;
        margin-top: 3rem;
        position: relative;
        z-index: 1;
      }
      @media (max-width: 940px) {
        .games-grid {
          grid-template-columns: repeat(2, 1fr);
        }
      }
      @media (max-width: 600px) {
        .games-grid {
          grid-template-columns: 1fr;
        }
      }

      .game-card {
        background: var(--bg);
        border: 1px solid var(--line);
        border-radius: 30px 30px 16px 16px;
        overflow: hidden;
        transform: rotate(var(--tilt, 0deg));
        transition:
          transform 240ms ease,
          box-shadow 240ms ease;
      }
      .game-card:hover {
        transform: rotate(0deg) translateY(-5px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.14);
      }
      .game-photo {
        height: 168px;
        display: grid;
        place-items: center;
        background: linear-gradient(
          160deg,
          color-mix(in srgb, var(--orange) 20%, var(--card)),
          color-mix(in srgb, var(--cyan) 24%, var(--card))
        );
      }
      .game-photo .icon {
        width: 64px;
        height: 64px;
        color: var(--dark);
        opacity: 0.75;
      }
      .game-body {
        padding: 18px 20px 22px;
      }
      .game-body h3 {
        margin: 0 0 4px;
        font-size: 1.2rem;
      }
      .capacity {
        display: inline-block;
        margin: 4px 0 12px;
        padding: 3px 12px;
        border-radius: 999px;
        background: color-mix(in srgb, var(--cyan) 18%, transparent);
        color: color-mix(in srgb, var(--cyan) 55%, var(--text));
        font-size: 0.8rem;
        font-weight: 700;
      }
      .game-body p {
        margin: 0 0 16px;
        color: var(--text-soft);
        font-size: 0.92rem;
        line-height: 1.5;
      }
      .btn-wsp {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: var(--orange);
        color: #fff;
        padding: 12px 20px;
        border-radius: 999px;
        text-decoration: none;
        font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
        font-weight: 400;
        font-size: 1rem;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        transition:
          transform 180ms ease,
          background 180ms ease;
      }
      .btn-wsp:hover {
        background: var(--ink);
        transform: translateY(-2px);
      }
      .btn-wsp svg {
        width: 16px;
        height: 16px;
      }

      /* -------- FOOTER -------- */
      footer {
        background: #fdf8f2;
        padding: 64px 0 28px;
        position: relative;
        z-index: 1;
      }
      .footer-grid {
        display: grid;
        grid-template-columns: 1.3fr 1fr 1fr;
        gap: 40px;
      }
      @media (max-width: 760px) {
        .footer-grid {
          grid-template-columns: 1fr;
          gap: 32px;
        }
      }
      footer h4 {
        margin: 0 0 14px;
        font-size: 0.85rem;
        letter-spacing: 0.02em;
        color: var(--text-soft);
      }
      .foot-brand .display {
        font-size: 2.4rem;
        color: var(--orange);
        margin-bottom: 10px;
      }
      /* La "B&R" naranja del footer es solo el anchor que mide hero3d.js para
         posar las letras 3D: conserva layout pero no se pinta. */
      #footBrandText {
        visibility: hidden;
      }
      .foot-brand p {
        color: var(--text-soft);
        max-width: 34ch;
        line-height: 1.6;
        margin: 0;
      }
      footer ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: grid;
        gap: 10px;
      }
      footer ul a {
        text-decoration: none;
        color: var(--orange);
        font-size: 0.95rem;
      }
      footer ul a:hover {
        color: var(--ink);
      }
      .social-row {
        display: flex;
        gap: 10px;
        margin-top: 4px;
      }
      .social-row a {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        background: rgba(36, 21, 5, 0.05);
        border: 1px solid var(--line);
        color: var(--orange);
      }
      .social-row a:hover {
        background: var(--orange);
        border-color: var(--orange);
        color: #fff;
      }
      .social-row svg {
        width: 18px;
        height: 18px;
      }
      .foot-bottom {
        margin-top: 48px;
        padding-top: 22px;
        border-top: 1px solid var(--line);
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
        font-size: 0.82rem;
        color: var(--text-soft);
      }

      .reveal {
        opacity: 0;
        transform: translateY(28px);
      }

      @media (prefers-reduced-motion: reduce) {
        html {
          scroll-behavior: auto;
        }
        .wsp-float::before {
          animation: none !important;
        }
        .reveal {
          opacity: 1 !important;
          transform: none !important;
        }
      }

      .loading {
        position: fixed;
        inset: 0;
        z-index: 50;
        pointer-events: auto;
        background: #ffffff;
        transition:
          opacity 0.5s ease 0.1s,
          visibility 0.5s ease 0.1s;
      }
      .loading.hidden {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
      }
      .loader-pct {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
        font-size: clamp(2.2rem, 7vw, 3.4rem);
        letter-spacing: -0.02em;
        color: var(--orange);
        font-variant-numeric: tabular-nums;
        line-height: 1;
        transition: opacity 0.4s ease;
      }
      .loading.popping .loader-pct {
        opacity: 0;
      }

      body.is-loading {
        overflow: hidden;
      }
      .wsp-float,
      .hero-caption,
      .think-bubble,
      .scroll-cue,
      .background-type {
        transition: opacity 0.6s ease 0.25s;
      }
      body.is-loading .hud,
      body.is-loading .wsp-float,
      body.is-loading .hero-caption,
      body.is-loading .think-bubble,
      body.is-loading .scroll-cue,
      body.is-loading .background-type {
        opacity: 0;
        pointer-events: none;
      }
      .error {
        position: fixed;
        z-index: 60;
        left: 50%;
        top: 50%;
        width: min(680px, calc(100vw - 40px));
        transform: translate(-50%, -50%);
        padding: 22px;
        border-radius: 18px;
        background: white;
        color: #7d251c;
        box-shadow: 0 20px 80px rgba(0, 0, 0, 0.15);
        font:
          13px/1.55 ui-monospace,
          SFMono-Regular,
          Menlo,
          monospace;
        display: none;
        white-space: pre-wrap;
      }
