:root{
    --bg:#0a0a0d;
    --panel:#131017;
    --panel-2:#1b1720;
    --ink:#f3f8ff;
    --ink-dim:#9b98a3;
    --accent:#f8440a;
    --accent-ink:#131017;
    --line:rgba(243,248,255,.16);
    --line-strong:rgba(243,248,255,.4);
    --bar-top-h:88px;
    --bar-bottom-h:42px;
    --font-display:'Unbounded',ui-sans-serif,system-ui,sans-serif;
    --font-body:'Montserrat',ui-sans-serif,system-ui,sans-serif;
    --font-mono:'Space Mono',ui-monospace,'SFMono-Regular',Menlo,monospace;
    --ease-hard:cubic-bezier(.5,0,.15,1);
    --ease-scroll:cubic-bezier(.65,0,.35,1);
    background:var(--bg);
    color-scheme:dark;
  }
  @media (max-width:720px){
    :root{ --bar-top-h:64px; --bar-bottom-h:36px; }
  }
  *,*::before,*::after{ box-sizing:border-box; }
  body{
    background:var(--bg);
    color:var(--ink);
    font-family:'Montserrat',ui-sans-serif,system-ui,sans-serif;
    -webkit-font-smoothing:antialiased;
    overflow-x:hidden;
  }
  ::selection{ background:var(--accent); color:var(--accent-ink); }
  a{ color:inherit; text-decoration:none; }
  button{ font:inherit; color:inherit; background:none; border:0; cursor:pointer; }
  h1,h2,h3{ font-family:'Unbounded',ui-sans-serif,system-ui,sans-serif; text-wrap:balance; margin:0; }
  p{ margin:0; }
  img{ display:block; }
  .u-label{
    font-family:var(--font-mono); font-weight:700; text-transform:uppercase;
    letter-spacing:.1em; font-size:.72rem;
  }
  .u-num{ font-family:var(--font-mono); font-variant-numeric:tabular-nums; font-weight:700; }
  .u-slash::before{ content:"/ "; color:var(--accent); }
  :focus-visible{ outline:3px solid var(--accent); outline-offset:3px; }

  /* ---------- grain overlay ---------- */
  .grain{
    position:fixed; inset:0; z-index:60; pointer-events:none;
    opacity:.05; mix-blend-mode:overlay;
    background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  }

  /* ---------- custom cursor (pointer:fine only) ---------- */
  .cursor-dot{
    position:fixed; top:0; left:0; width:16px; height:16px; margin:-8px 0 0 -8px;
    border-radius:50%; background:var(--accent); z-index:80; pointer-events:none;
    transform:translate(-100px,-100px); transition:width .18s var(--ease-hard), height .18s var(--ease-hard), background .18s;
    display:none;
  }
  html.has-cursor .cursor-dot{ display:block; }
  html.has-cursor{ cursor:none; }
  html.has-cursor a, html.has-cursor button{ cursor:none; }
  .cursor-dot.big{ width:64px; height:64px; margin:-32px 0 0 -32px; background:transparent; border:2px solid var(--accent); }
  .cursor-dot.invert{ background:#fff; }
  .cursor-dot.invert.big{ background:transparent; border-color:#fff; }

  /* ---------- loader ---------- */
  #loader{
    position:fixed; inset:0; z-index:100; background:var(--bg);
    display:flex; align-items:center; justify-content:center;
    transition:transform .6s var(--ease-hard), opacity .5s ease .1s;
  }
  #loader img, #loader svg{ width:min(50vw,320px); height:auto; opacity:0; transform:scale(.85);
    animation:loaderLogo 1s var(--ease-hard) .15s forwards; }
  #loader.hide{ transform:translateY(-100%); opacity:0; }
  @keyframes loaderLogo{ to{ opacity:1; transform:scale(1); } }
  @media (prefers-reduced-motion:reduce){
    #loader{ transition:none; }
    #loader img, #loader svg{ animation:none; opacity:1; transform:none; }
  }

  /* ---------- top bar ---------- */
  .bar-top{
    position:fixed; top:0; left:0; right:0; z-index:50;
    height:var(--bar-top-h);
    padding:0 clamp(16px,4vw,40px);
    padding-top:env(safe-area-inset-top,0px);
    display:flex; align-items:center; justify-content:space-between;
    background:linear-gradient(var(--bg) 60%, transparent);
  }
  .brand-btn{ position:relative; height:28px; display:block; }
  .brand-btn img, .brand-btn svg{ position:absolute; inset:0; height:28px; width:auto; transition:opacity .15s linear; }
  .brand-btn .on{ opacity:1; }
  .brand-btn .off{ opacity:0; }
  .brand-btn:hover .on{ opacity:0; }
  .brand-btn:hover .off{ opacity:1; }
  @media (max-width:720px){ .brand-btn, .brand-btn img, .brand-btn svg{ height:20px; } }

  .bar-top-right{ display:flex; align-items:center; gap:clamp(10px,2vw,20px); }
  .flower-logo{ visibility:visible; width:34px; height:34px; display:flex; align-items:center; justify-content:center; flex:none; }
  .flower-logo img, .flower-logo svg{ width:100%; height:100%; object-fit:contain; transition:transform .1s linear; will-change:transform; display:block; }
  @media (max-width:720px){ .flower-logo{ width:26px; height:26px; } }

  .menu-trigger{
    display:flex; align-items:center; gap:10px;
    border:2px solid var(--line-strong); padding:10px 18px;
    transition:background .15s var(--ease-hard), color .15s var(--ease-hard), border-color .15s;
  }
  .menu-trigger:hover{ background:var(--ink); color:var(--bg); border-color:var(--ink); }
  .menu-trigger .bars{ display:flex; flex-direction:column; gap:3px; width:18px; }
  .menu-trigger .bars span{ height:2px; background:currentColor; display:block; }

  /* ---------- index overlay ---------- */
  #indexOverlay{
    position:fixed; inset:0; z-index:65; background:var(--panel);
    display:flex; flex-direction:column;
    padding:calc(20px + env(safe-area-inset-top,0px)) clamp(16px,4vw,56px) calc(20px + env(safe-area-inset-bottom,0px));
    transform:translateY(-100%); transition:transform .5s var(--ease-hard);
  }
  #indexOverlay.open{ transform:translateY(0); }
  #indexOverlay[hidden]{ display:flex; }
  .idx-top{ display:flex; justify-content:space-between; align-items:center; }
  .idx-close{ border:2px solid var(--line-strong); width:44px; height:44px; display:flex; align-items:center; justify-content:center; font-size:1.4rem; transition:background .15s, color .15s; }
  .idx-close:hover{ background:var(--accent); border-color:var(--accent); color:var(--accent-ink); }
  .idx-list{ list-style:none; margin:auto 0; padding:0; }
  .idx-list li{ border-top:1px solid var(--line); }
  .idx-list li:last-child{ border-bottom:1px solid var(--line); }
  .idx-row{
    width:100%; display:flex; align-items:baseline; gap:clamp(14px,3vw,32px);
    padding:clamp(10px,2.4vw,22px) 4px; text-align:left; position:relative; overflow:hidden;
  }
  .idx-row::before{
    content:""; position:absolute; inset:0; background:var(--accent); transform:translateX(-101%);
    transition:transform .28s var(--ease-hard); z-index:0;
  }
  .idx-row:hover::before, .idx-row:focus-visible::before{ transform:translateX(0); }
  .idx-row > *{ position:relative; z-index:1; }
  .idx-row:hover, .idx-row:focus-visible{ color:var(--accent-ink); }
  .idx-n{ font-family:var(--font-mono); font-size:clamp(.9rem,1.6vw,1.2rem); color:var(--ink-dim); }
  .idx-row:hover .idx-n{ color:var(--accent-ink); opacity:.7; }
  .idx-t{ font-family:'Unbounded'; font-weight:700; font-size:clamp(1.8rem,6.4vw,4.6rem); line-height:1; text-transform:uppercase; }
  .idx-d{ margin-left:auto; font-size:.8rem; color:var(--ink-dim); font-weight:600; letter-spacing:.04em; display:none; }
  @media (min-width:720px){ .idx-d{ display:block; } }
  .idx-row:hover .idx-d{ color:var(--accent-ink); opacity:.85; }
  .idx-row.is-current{ cursor:default; }
  .idx-row.is-current .idx-n, .idx-row.is-current .idx-t, .idx-row.is-current .idx-d{ color:var(--accent); }
  .idx-row.is-current::before{ display:none; }
  .idx-foot{ display:flex; flex-wrap:wrap; gap:8px 28px; justify-content:space-between; padding-top:18px; border-top:1px solid var(--line); }
  .idx-foot a{ font-weight:700; border-bottom:1px solid var(--line-strong); padding-bottom:2px; }
  .idx-foot a:hover{ color:var(--accent); border-color:var(--accent); }

  /* ---------- bottom marquee bar ---------- */
  .bar-bottom{
    position:fixed; bottom:0; left:0; right:0; z-index:50; height:var(--bar-bottom-h);
    padding-bottom:env(safe-area-inset-bottom,0px);
    background:var(--bg); border-top:1px solid var(--line);
    display:flex; align-items:center; overflow:hidden;
  }
  .marquee{ display:flex; white-space:nowrap; animation:scroll 22s linear infinite; }
  @media (prefers-reduced-motion:reduce){ .marquee{ animation:none; } }
  .marquee span{ display:inline-flex; align-items:center; gap:10px; padding-right:28px;
    font-family:'Unbounded'; font-size:.68rem; letter-spacing:.1em; text-transform:uppercase; color:var(--ink-dim); }
  .marquee span::after{ content:""; display:inline-block; width:.6rem; height:.6rem; flex:none; background:var(--accent); -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5v19M2.5 12h19M5.28 5.28l13.44 13.44M18.72 5.28 5.28 18.72' fill='none' stroke='%23000' stroke-width='2.8' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat; mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5v19M2.5 12h19M5.28 5.28l13.44 13.44M18.72 5.28 5.28 18.72' fill='none' stroke='%23000' stroke-width='2.8' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat; margin-left:10px; }
  @keyframes scroll{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }

  /* ---------- app shell ---------- */
  #app{ padding-top:var(--bar-top-h); padding-bottom:var(--bar-bottom-h); min-height:100%; }
  .view{ padding:0 clamp(16px,4vw,56px); }
  .view[hidden]{ display:none; }
  .wrap{ max-width:1280px; margin:0 auto; }
  .rule{ border:0; border-top:1px solid var(--line); margin:0; }
  section{ padding-block:clamp(64px,11vw,150px); }

  /* ---------- section heads ---------- */
  .kicker{ display:flex; align-items:center; gap:12px; color:var(--ink-dim); margin-bottom:clamp(20px,4vw,40px); }
  .kicker::before{ content:""; width:34px; height:2px; background:var(--accent); display:block; }
  .head-row{ display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:clamp(28px,4vw,52px); }
  .head-row h1{ font-size:clamp(2.4rem,7vw,5rem); line-height:1; text-transform:uppercase; overflow-wrap:break-word; word-break:break-word; max-width:100%; }
  @media (max-width:480px){ .head-row h1{ font-size:clamp(1.7rem,8.6vw,5rem); } }
  .head-row .lede{ max-width:38ch; color:var(--ink-dim); font-size:.98rem; line-height:1.6; }
  .cta-link{ font-family:var(--font-mono); display:inline-flex; align-items:center; gap:10px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; font-size:.8rem; border-bottom:2px solid var(--accent); padding-bottom:4px; }
  .cta-link svg{ transition:transform .2s var(--ease-hard); }
  .cta-link:hover svg{ transform:translateX(6px); }

  /* ---------- statement band (reused for CVs page CTA) ---------- */
  .band{ background:var(--panel); position:relative; overflow:hidden; }
  .band .wm{ position:absolute; right:-8%; top:50%; transform:translateY(-50%); width:44vw; max-width:520px; opacity:.05; filter:blur(1.5px); }
  .band h2{ font-size:clamp(2.2rem,7vw,5.4rem); line-height:1.05; max-width:16ch; position:relative; text-transform:uppercase; overflow-wrap:break-word; }
  .band h2 em{ color:var(--accent); font-style:normal; }

  /* ---------- modal ---------- */
  #modal{ position:fixed; inset:0; z-index:75; display:flex; align-items:center; justify-content:center; padding:24px; background:rgba(10,10,13,.86); backdrop-filter:blur(2px); }
  #modal[hidden]{ display:none; }
  .modal-box{ background:var(--panel); border:1px solid var(--line-strong); max-width:640px; width:100%; max-height:88vh; overflow:auto; }
  .modal-box.wide{ max-width:920px; }
  .modal-viz{ aspect-ratio:16/9; position:relative; overflow:hidden; background:var(--panel-2); }
  .modal-viz img{ width:100%; height:100%; object-fit:cover; }
  .modal-body{ padding:clamp(20px,4vw,36px); display:flex; flex-direction:column; gap:14px; }
  .modal-close{ position:absolute; top:14px; right:14px; z-index:3; width:38px; height:38px; background:var(--bg); border:1px solid var(--line-strong); display:flex; align-items:center; justify-content:center; font-size:1.2rem; }
  .modal-close:hover{ background:var(--accent); color:var(--accent-ink); border-color:var(--accent); }
  .modal-body h3{ font-size:clamp(1.5rem,3.4vw,2.1rem); }
  .modal-body p{ color:var(--ink-dim); line-height:1.6; font-size:.92rem; }
  .modal-text{ display:flex; flex-direction:column; gap:14px; color:var(--ink-dim); line-height:1.6; font-size:.92rem; }
  .card-cat{ display:block; margin-top:12px; font-family:var(--font-mono); font-weight:700; font-size:.66rem; letter-spacing:.07em; text-transform:uppercase; color:var(--accent); }

  /* ---------- CV teaser band ---------- */
  .cv-band{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:24px; border:1px solid var(--line); padding:clamp(24px,4vw,44px); }
  .cv-band h2{ font-size:clamp(1.6rem,4vw,2.6rem); max-width:20ch; }

  /* ---------- CVs grid ---------- */
  .cv-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
  @media (max-width:940px){ .cv-grid{ grid-template-columns:repeat(2,1fr); } }
  @media (max-width:620px){ .cv-grid{ grid-template-columns:1fr; } }

  /* ---------- tarjeta 3D: rota en perspectiva siguiendo al cursor ---------- */
  .cv-3d-wrap{ perspective:1200px; height:100%; }
  .cv-card{
    border:1px solid var(--line-strong); display:flex; flex-direction:column;
    position:relative; z-index:0; height:100%;
    transform-style:preserve-3d;
    transition:transform .2s ease-out, box-shadow .3s ease;
    will-change:transform;
  }
  .cv-card:hover{
    box-shadow:0 24px 48px -20px rgba(0,0,0,.5);
  }
  .cv-card > *{ transform-style:preserve-3d; }
  /* elementos que "flotan" por encima al hacer hover, cada uno a su altura */
  .cv-mock, .cv-mock .chip, .cv-card-3d-title, .cv-info p, .cv-actions, .cv-view-btn{
    transition:transform .25s ease-out;
  }
  .cv-card:hover .cv-mock{ transform:translateZ(28px); }
  .cv-card:hover .cv-mock .chip{ transform:translateZ(50px); }
  .cv-card:hover .cv-card-3d-title{ transform:translateZ(44px); }
  .cv-card:hover .cv-info p{ transform:translateZ(30px); }
  .cv-card:hover .cv-actions{ transform:translateZ(38px); }
  @media (prefers-reduced-motion:reduce){
    .cv-card{ transition:none; }
    .cv-card:hover{ transform:none !important; }
    .cv-mock, .cv-mock .chip, .cv-card-3d-title, .cv-info p, .cv-actions, .cv-view-btn{ transition:none; }
    .cv-card:hover .cv-mock, .cv-card:hover .cv-mock .chip, .cv-card:hover .cv-card-3d-title,
    .cv-card:hover .cv-info p, .cv-card:hover .cv-actions{ transform:none; }
  }

  .cv-mock{ aspect-ratio:3/4; background:var(--panel); padding:22px; display:flex; flex-direction:column; gap:10px; position:relative; overflow:hidden; }
  .cv-mock b{ height:14px; width:70%; background:var(--ink); display:block; }
  .cv-mock i{ height:6px; background:var(--line-strong); display:block; font-style:normal; }
  .cv-mock i.w60{ width:60%; } .cv-mock i.w80{ width:80%; } .cv-mock i.w40{ width:40%; } .cv-mock i.w90{ width:90%; }
  .cv-mock .chip{ margin-top:auto; align-self:flex-start; background:var(--accent); color:var(--accent-ink); padding:6px 12px; font-family:var(--font-mono); font-weight:700; font-size:.62rem; letter-spacing:.06em; text-transform:uppercase; position:relative; z-index:2; }
  .cv-mock img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:top; }
  .cv-mock .viz-inner{ position:absolute; inset:0; }
  .cv-sketch{ position:absolute; inset:0; width:100%; height:100%; z-index:0; }
  .cv-info{ padding:18px 20px 22px; border-top:1px solid var(--line); display:flex; flex-direction:column; gap:10px; flex:1 1 auto; }
  .cv-info h3{ font-size:1.15rem; }
  .cv-info p{ color:var(--ink-dim); font-size:.82rem; line-height:1.45; }
  .cv-actions{ display:flex; flex-wrap:wrap; gap:18px; margin-top:auto; padding-top:2px; }
  .cv-view-btn{ align-self:flex-start; font-weight:800; font-size:.72rem; letter-spacing:.08em; text-transform:uppercase; border-bottom:2px solid var(--accent); padding-bottom:3px; }
  .cv-card.ghost{ border-style:dashed; }
  .cv-card.ghost .cv-mock{ align-items:center; justify-content:center; }
  .cv-card.ghost .cv-info p{ font-style:italic; }

  /* ---------- insignia animada de la tarjeta "Próxima versión" ----------
     Adaptado de una animación de Uiverse.io (botón "brutalist"): un
     círculo que gira y dos destellos que cruzan la tarjeta al pasar el
     ratón, revelando un texto. No es un botón real (no lleva a ningún
     sitio) — es solo decorativo, para que quede claro que esta tarjeta
     todavía no está disponible sin usar un símbolo "+" que parezca
     pulsable. */
  .cv-ghost-badge{
    position:relative; z-index:1;
    display:flex; flex-direction:column; align-items:center; justify-content:center;
    gap:10px; cursor:default;
    transition:transform .3s var(--ease-hard);
  }
  .cv-card.ghost:hover .cv-ghost-badge{ transform:translateY(-6px) translateZ(56px); }
  .cv-ghost-badge::before, .cv-ghost-badge::after{
    content:""; position:absolute; top:50%;
    width:22px; height:22px; margin-top:-11px;
    border-radius:50%; background:rgba(243,248,255,.07);
    opacity:0; z-index:0;
  }
  .cv-ghost-badge::before{ left:0; transform:translateX(-50%); }
  .cv-ghost-badge::after{ right:0; transform:translateX(50%); }
  .cv-card.ghost:hover .cv-ghost-badge::before{
    animation:cvGhostCrissLeft .8s cubic-bezier(.25,.8,.25,1) both alternate;
    opacity:1;
  }
  .cv-card.ghost:hover .cv-ghost-badge::after{
    animation:cvGhostCrissRight .8s cubic-bezier(.25,.8,.25,1) both alternate;
    opacity:1;
  }
  @keyframes cvGhostCrissLeft{
    0%{ left:0; width:22px; height:22px; }
    50%{ left:50%; width:22px; height:22px; }
    100%{ left:50%; width:420px; height:420px; }
  }
  @keyframes cvGhostCrissRight{
    0%{ right:0; width:22px; height:22px; }
    50%{ right:50%; width:22px; height:22px; }
    100%{ right:50%; width:420px; height:420px; }
  }
  .cv-ghost-orb{
    position:relative; z-index:1;
    width:108px; height:108px; border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    background:var(--accent);
  }
  .cv-card.ghost:hover .cv-ghost-orb{ animation:cvGhostSpin 12s linear infinite; }
  @keyframes cvGhostSpin{ to{ transform:rotate(360deg); } }
  .cv-ghost-star{
    position:relative; z-index:1;
    font-size:46px; line-height:1; color:var(--ink);
    transition:font-size .3s var(--ease-hard);
  }
  .cv-card.ghost:hover .cv-ghost-star{ font-size:36px; }
  .cv-ghost-text{
    position:relative; z-index:1;
    display:flex; flex-direction:column; align-items:center; text-align:center;
    line-height:1.3; font-family:var(--font-mono); color:var(--ink-dim);
    opacity:0; max-height:0; overflow:hidden;
    transition:all .3s var(--ease-hard);
  }
  .cv-ghost-text span:first-child{ font-size:.66rem; letter-spacing:.06em; text-transform:uppercase; }
  .cv-ghost-text span:last-child{ font-size:.78rem; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--ink); margin-top:1px; }
  .cv-card.ghost:hover .cv-ghost-text{ opacity:1; max-height:40px; margin-top:2px; }
  @media (prefers-reduced-motion:reduce){
    .cv-ghost-badge, .cv-ghost-star, .cv-ghost-text{ transition:none; }
    .cv-card.ghost:hover .cv-ghost-badge{ transform:none; }
    .cv-card.ghost:hover .cv-ghost-badge::before, .cv-card.ghost:hover .cv-ghost-badge::after{ display:none; }
    .cv-card.ghost:hover .cv-ghost-orb{ animation:none; }
    .cv-card.ghost:hover .cv-ghost-text{ opacity:1; max-height:none; }
  }

  /* ---------- floating pill CTA ---------- */
  .float-cta{
    position:fixed; right:clamp(14px,3vw,32px); bottom:calc(var(--bar-bottom-h) + clamp(14px,3vw,28px));
    z-index:55; display:flex; align-items:center; gap:10px;
    background:var(--accent); color:var(--accent-ink); border-radius:999px;
    padding:15px 24px 15px 26px; font-family:var(--font-mono); font-weight:700; text-transform:uppercase;
    letter-spacing:.05em; font-size:.78rem;
    transform:translateY(160%) scale(.9); opacity:0; pointer-events:none;
    transition:transform .45s var(--ease-hard), opacity .3s, background .2s;
    box-shadow:0 10px 34px rgba(0,0,0,.4);
  }
  .float-cta.show{ transform:translateY(0) scale(1); opacity:1; pointer-events:auto; }
  .float-cta .fc-icon{ display:flex; width:22px; height:22px; align-items:center; justify-content:center; border-radius:50%; background:var(--accent-ink); color:var(--accent); transition:transform .35s var(--ease-hard); flex:none; }
  .float-cta:hover .fc-icon{ transform:rotate(90deg); }
  .float-cta:hover{ background:var(--ink); }
  @media (prefers-reduced-motion:reduce){ .float-cta{ transition:opacity .2s; transform:translateY(0) scale(1); } }
  @media (max-width:560px){ .float-cta .fc-txt{ display:none; } .float-cta{ padding:14px; border-radius:50%; } }

  /* ---------- small red accent marks ---------- */
  .accent-star{ color:var(--accent); font-size:1.3rem; display:inline-block; line-height:1; margin-left:10px; transform:translateY(-1px); }
  .head-row h1 .accent-star{ vertical-align:top; transform:translateY(10px); }

  /* ---------- scroll reveal (multi-direction) ---------- */
  .reveal{ opacity:0; transform:translateY(46px); transition:opacity .8s var(--ease-hard), transform .8s var(--ease-hard); will-change:transform,opacity; }
  .reveal.reveal-left{ transform:translateX(-70px); }
  .reveal.reveal-right{ transform:translateX(70px); }
  .reveal.in-view{ opacity:1; transform:none; }
  .cv-grid .cv-3d-wrap.reveal:nth-child(1){ transition-delay:0s; }
  .cv-grid .cv-3d-wrap.reveal:nth-child(2){ transition-delay:.08s; }
  .cv-grid .cv-3d-wrap.reveal:nth-child(3){ transition-delay:.16s; }
  .cv-grid .cv-3d-wrap.reveal:nth-child(4){ transition-delay:.24s; }
  .cv-grid .cv-3d-wrap.reveal:nth-child(5){ transition-delay:.32s; }
  @media (prefers-reduced-motion:reduce){
    .reveal, .reveal.in-view{ transition:none !important; opacity:1 !important; transform:none !important; }
  }

  /* ---------- word-by-word blur/opacity scroll reveal ---------- */
  .rw{ display:inline-block; filter:blur(7px); opacity:.2; transition:filter .35s var(--ease-hard), opacity .35s var(--ease-hard); }
  @media (prefers-reduced-motion:reduce){ .rw{ filter:none !important; opacity:1 !important; } }

  /* ---------- CVs page hero eyebrow row ---------- */
  .cvs-hero{ padding-top:clamp(40px,7vw,90px); }
  .cvs-hero .hf-row{ display:flex; justify-content:space-between; align-items:flex-start; gap:16px; flex-wrap:wrap; margin-bottom:clamp(18px,3vw,30px); }
  .hf-eyebrow{ font-family:var(--font-mono); text-transform:uppercase; letter-spacing:.07em; font-size:.7rem; color:var(--ink-dim); }
  .hf-eyebrow b{ color:var(--ink); font-weight:700; }
  .hf-eyebrow.right{ text-align:right; }

  /* ---------- base ---------- */
  html,body{ margin:0; padding:0; }
  img{ max-width:100%; }
  [hidden]{ display:none !important; }

  /* ---------- contenido desde WordPress ---------- */
  html.wp-pending [data-wp]{ visibility:hidden; }
  .card.skeleton{ background:var(--bg); }
  .card.skeleton .viz-inner{ background:var(--panel-2); animation:mfSkel 1.3s ease-in-out infinite alternate; }
  @keyframes mfSkel{ from{ opacity:.45; } to{ opacity:1; } }
  @media (prefers-reduced-motion: reduce){ .card.skeleton .viz-inner{ animation:none; } }

  /* Destinos sin salida (páginas aún no activadas) */
  a[data-destination]{ cursor:pointer; }
  .link-notice{ position:fixed; left:16px; right:16px; bottom:calc(var(--bar-bottom-h) + 16px); z-index:120; max-width:680px; margin:auto; padding:20px; background:var(--panel); color:var(--ink); border:2px solid var(--accent); box-shadow:0 8px 32px #0008; }
  .link-notice[hidden]{ display:none; }
  .link-notice p{ overflow-wrap:anywhere; font-size:.9rem; line-height:1.5; }
  .link-notice button{ margin-top:12px; padding:8px 14px; border:1px solid var(--accent); }

/* Asterisco vectorial (sustituye al carácter ✳, que iOS pinta como emoji verde) */
.ast{display:inline-block;width:.82em;height:.82em;vertical-align:-.06em;overflow:visible;flex:none}

/* cursor: solo el círculo, nunca la flecha del sistema */
html.has-cursor, html.has-cursor *, html.has-cursor *::before, html.has-cursor *::after{ cursor:none !important; }
.cursor-dot{ will-change:transform; }
/* el círculo del cursor siempre por delante de todo (avisos, tarjetas, visores...) */
.cursor-dot{ z-index:2147483000 !important; }
