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

    :root {
      --bg:        #0f0f0f;
      --cream:     #F2EAD5;
      --cream-dim: #C9BEA8;
      --cream-mid: #9E9282;
      --cream-off: #6E6459;
    }

    body {
      background: var(--bg);
      color: var(--cream);
      font-family: 'Urbanist', sans-serif;
      overflow-x: hidden;
    }

    /* Grain */
    body::after {
      content: '';
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 999;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
      background-size: 180px;
      opacity: 0.025;
    }

    /* ── Scroll driver ── */
    .scroll-driver { height: 300vh; }
    /* Arriba a la derecha, siempre: los planes e iniciar sesión (quien ya tiene sesión no los ve) */
    .top-acc{position:fixed;top:18px;right:22px;z-index:50;display:flex;align-items:center;gap:6px;font-family:'Urbanist',sans-serif;}
    .top-acc a,.top-acc button{display:inline-flex;align-items:center;height:36px;padding:0 14px;border-radius:11px;font:inherit;font-size:13px;letter-spacing:.06em;color:var(--cream-dim);
      text-decoration:none;background:none;border:1px solid transparent;cursor:pointer;transition:color .25s,border-color .25s,background .25s;}
    .top-acc a:hover,.top-acc button:hover{color:var(--cream);}
    .top-acc .entra{border-color:rgba(242,234,213,.22);background:rgba(15,15,15,.4);color:var(--cream);}
    .top-acc .entra:hover{border-color:rgba(242,234,213,.45);background:rgba(242,234,213,.05);}
    .top-acc[hidden]{display:none;}

    .stage {
      position: sticky;
      top: 0;
      height: 100vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 0;
      gap: 56px;
      overflow: hidden;
    }

    /* ── Hero text ── */
    .hero-inner {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 22px;
      text-align: center;
      padding: 0 40px;
    }

    .hero-name {
      font-weight: 200;
      font-size: clamp(34px, 6vw, 92px);
      letter-spacing: 0.3em;
      text-transform: uppercase;
      color: var(--cream);
      line-height: 1;
      white-space: nowrap;
      text-shadow: 0 0 60px rgba(242,234,213,0.14);
    }

    .cursor {
      display: inline-block;
      width: 2px;
      height: 0.72em;
      background: var(--cream);
      margin-left: 4px;
      vertical-align: middle;
      animation: blink 0.8s step-end infinite;
    }
    @keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

    .hero-rule {
      width: 0;
      height: 1px;
      background: var(--cream-off);
      transition: width 1.2s ease;
    }
    .hero-rule.show { width: 52px; }

    .hero-tagline {
      font-weight: 300;
      font-size: clamp(11px, 1.15vw, 15px);
      letter-spacing: 0.09em;
      color: var(--cream-mid);
      max-width: 420px;
      line-height: 1.75;
      opacity: 0;
      transform: translateY(10px);
      transition: opacity 1.4s ease, transform 1.4s ease;
    }
    .hero-tagline.show { opacity: 1; transform: translateY(0); }

    /* ── Animation area ── */
    .anim-area {
      position: relative;
      width: 100%;
      height: 210px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    /* ── Diamond ── */
    .diamond-wrap {
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      flex-shrink: 0;
      will-change: transform, opacity;
      opacity: 0;
      filter: drop-shadow(0 0 10px rgba(242,234,213,0.08));
    }

    /* ── Text panels ── */
    .text-panel {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translateY(-50%);
      display: flex;
      flex-direction: column;
      gap: 13px;
      opacity: 0;
      will-change: opacity, transform;
      pointer-events: none;
      text-decoration: none;
      color: inherit;
    }

    /* RIGHT of center when diamond is LEFT */
    .panel-subs {
      align-items: flex-end;
      text-align: right;
    }

    /* LEFT of center when diamond is RIGHT */
    .panel-login {
      align-items: flex-start;
      text-align: left;
    }

    .panel-sublabel {
      font-size: 9px;
      letter-spacing: 0.34em;
      text-transform: uppercase;
      color: var(--cream-dim);
      font-weight: 300;
    }

    .panel-title {
      font-weight: 200;
      font-size: clamp(20px, 2.6vw, 40px);
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--cream-dim);
      line-height: 1;
      transition: color 0.3s;
    }

    .panel-cta {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-top: 2px;
    }
    .panel-subs  .panel-cta { flex-direction: row-reverse; }
    .panel-login .panel-cta { flex-direction: row; }

    .panel-cta-label {
      font-size: 9px;
      letter-spacing: 0.3em;
      text-transform: uppercase;
      color: var(--cream-dim);
      font-weight: 300;
      transition: color 0.3s;
    }

    .panel-cta-line {
      width: 32px;
      height: 1px;
      background: var(--cream-mid);
      transition: background 0.3s, width 0.3s;
    }

    .text-panel:hover .panel-title     { color: var(--cream); }
    .text-panel:hover .panel-cta-label { color: var(--cream); }
    .text-panel:hover .panel-cta-line  { background: var(--cream); width: 48px; }

    /* ── Scroll hint ── */
    .scroll-hint {
      position: absolute;
      bottom: 38px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
      pointer-events: none;
    }

    /* Docs: encima de "Scroll". Se desvanece y vuelve con el propio scroll-hint. */
    .sw-docs {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      height: 34px;
      padding: 0 13px;
      margin-bottom: 4px;
      border-radius: 10px;
      border: 1px solid rgba(255, 255, 255, 0.12);
      background: rgba(14, 14, 17, 0.72);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      font-size: 12.5px;
      letter-spacing: 0.02em;
      color: var(--cream-dim, #D8CEB8);
      text-decoration: none;
      pointer-events: auto;
      transition: border-color .2s, background .2s, color .2s;
    }
    .sw-botones { display: flex; gap: 8px; pointer-events: auto; }
    /* Al bajar, Docs y API pasan arriba a la derecha; al volver arriba, regresan a su sitio */
    .top-docs { position: fixed; top: 19px; right: 22px; z-index: 50; display: flex; gap: 8px; opacity: 0; pointer-events: none; transform: translateY(-6px); transition: opacity .3s, transform .3s; }
    .top-docs.on { opacity: 1; pointer-events: auto; transform: none; }
    .top-docs .sw-docs { margin-bottom: 0; }
    .sw-docs:hover {
      border-color: rgba(227, 199, 136, 0.55);
      background: rgba(20, 20, 24, 0.85);
      color: var(--cream, #F5EEDC);
    }
    .sw-docs svg { width: 11px; height: 11px; opacity: .6; transition: opacity .2s, transform .2s; }
    .sw-docs:hover svg { opacity: 1; transform: translate(1px, -1px); }

    .scroll-hint-label {
      font-size: 9px;
      letter-spacing: 0.28em;
      text-transform: uppercase;
      color: var(--cream-off);
      font-weight: 300;
    }

    .scroll-line {
      width: 1px;
      height: 36px;
      background: var(--cream-off);
      position: relative;
      overflow: hidden;
    }
    .scroll-line::after {
      content: '';
      position: absolute;
      top: -100%;
      left: 0;
      width: 100%;
      height: 100%;
      background: var(--cream-mid);
      animation: drip 2s ease-in-out infinite 0.5s;
    }
    @keyframes drip { 0%{top:-100%} 50%{top:0} 100%{top:100%} }

    /* ── Mobile ── */
    @media (max-width: 767px) {
      .stage        { gap: 32px; }
      .hero-inner   { padding: 0 24px; gap: 16px; }

      .hero-name {
        font-size: clamp(20px, 7vw, 44px);
        letter-spacing: 0.18em;
      }

      .hero-tagline {
        font-size: clamp(12px, 3.5vw, 14px);
        letter-spacing: 0.07em;
        max-width: 100%;
      }

      .anim-area    { height: 160px; }

      .diamond-wrap svg { width: 88px; height: auto; }

      .panel-title  { font-size: clamp(12px, 3.8vw, 18px); letter-spacing: 0.1em; }
      .panel-sublabel { font-size: 7px; letter-spacing: 0.24em; }

      .panel-cta    { gap: 8px; margin-top: 4px; }
      .panel-cta-label { font-size: 7px; letter-spacing: 0.2em; }
      .panel-cta-line  { width: 16px; }

      .scroll-hint  { bottom: 24px; }
      .scroll-hint-label { font-size: 8px; }
      .scroll-line  { height: 28px; }
    }

    /* ── Ambient scene: school of cream fish + occasional whale ── */
    .ambient {
      position: fixed;
      inset: 0;
      width: 100%;
      height: 100%;
      z-index: -1;            /* behind all content, above the dark bg */
      pointer-events: none;
    }

    @media (prefers-reduced-motion: reduce) {
      .ambient { display: none; }
    }
    .mapa-web { position: relative; z-index: 2; background: #07080c; border-top: 1px solid rgba(255,255,255,.07); padding: 56px 24px 64px; }
    .mapa-web nav { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
    .mapa-web h2 { margin: 0 0 12px; font-family: inherit; font-size: 13px; font-weight: 500; color: #F4F6FA; }
    .mapa-web a { display: block; padding: 4px 0; font-family: inherit; font-size: 13px; color: #8E94A3; text-decoration: none; transition: color .2s; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
    .mapa-web a:hover { color: #F4F6FA; }
    @media (max-width: 760px) { .mapa-web nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; } }
  