/* Por cada peso, dos caras: -latin (subconjunto) y -full (completa). El unicode-range de
   -full es el complemento exacto del de -latin, así que un texto en español solo descarga
   -latin (también con document.fonts.load, que baja toda cara que coincida con el texto) y
   un carácter fuera del rango (cirílico, CJK, símbolos raros) baja -full. Mismo rango que
   scripts/build-fonts.sh. */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/space-grotesk-400-full.woff2?v=1') format('woff2');
  unicode-range:
    U+0250-02BA, U+02BD-02C5, U+02C7-02D9, U+02DB, U+02DD-02FF, U+0302,
    U+0305-0307, U+030A-0322, U+0324-0328, U+032A-1DFF, U+1F00-1FFF,
    U+2070-209F, U+20D0-2121, U+2123-218F, U+219A-2211, U+2213-2214,
    U+2216-259F, U+27C0-FE0E, U+FE10-FEFE, U+FF00-FFFC, U+FFFE-10FFFF;
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/space-grotesk-400-latin.woff2?v=1') format('woff2');
  unicode-range:
    U+0000-00FF, U+0100-024F, U+0131, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1E00-1EFF,
    U+2000-206F, U+20A0-20CF, U+2122, U+2190-2199, U+2212, U+2215, U+25A0-25FF,
    U+2600-27BF, U+FE0F, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/space-grotesk-500-full.woff2?v=1') format('woff2');
  unicode-range:
    U+0250-02BA, U+02BD-02C5, U+02C7-02D9, U+02DB, U+02DD-02FF, U+0302,
    U+0305-0307, U+030A-0322, U+0324-0328, U+032A-1DFF, U+1F00-1FFF,
    U+2070-209F, U+20D0-2121, U+2123-218F, U+219A-2211, U+2213-2214,
    U+2216-259F, U+27C0-FE0E, U+FE10-FEFE, U+FF00-FFFC, U+FFFE-10FFFF;
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/space-grotesk-500-latin.woff2?v=1') format('woff2');
  unicode-range:
    U+0000-00FF, U+0100-024F, U+0131, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1E00-1EFF,
    U+2000-206F, U+20A0-20CF, U+2122, U+2190-2199, U+2212, U+2215, U+25A0-25FF,
    U+2600-27BF, U+FE0F, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/space-grotesk-700-full.woff2?v=1') format('woff2');
  unicode-range:
    U+0250-02BA, U+02BD-02C5, U+02C7-02D9, U+02DB, U+02DD-02FF, U+0302,
    U+0305-0307, U+030A-0322, U+0324-0328, U+032A-1DFF, U+1F00-1FFF,
    U+2070-209F, U+20D0-2121, U+2123-218F, U+219A-2211, U+2213-2214,
    U+2216-259F, U+27C0-FE0E, U+FE10-FEFE, U+FF00-FFFC, U+FFFE-10FFFF;
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/space-grotesk-700-latin.woff2?v=1') format('woff2');
  unicode-range:
    U+0000-00FF, U+0100-024F, U+0131, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1E00-1EFF,
    U+2000-206F, U+20A0-20CF, U+2122, U+2190-2199, U+2212, U+2215, U+25A0-25FF,
    U+2600-27BF, U+FE0F, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-500-full.woff2?v=1') format('woff2');
  unicode-range:
    U+0250-02BA, U+02BD-02C5, U+02C7-02D9, U+02DB, U+02DD-02FF, U+0302,
    U+0305-0307, U+030A-0322, U+0324-0328, U+032A-1DFF, U+1F00-1FFF,
    U+2070-209F, U+20D0-2121, U+2123-218F, U+219A-2211, U+2213-2214,
    U+2216-259F, U+27C0-FE0E, U+FE10-FEFE, U+FF00-FFFC, U+FFFE-10FFFF;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-500-latin.woff2?v=1') format('woff2');
  unicode-range:
    U+0000-00FF, U+0100-024F, U+0131, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1E00-1EFF,
    U+2000-206F, U+20A0-20CF, U+2122, U+2190-2199, U+2212, U+2215, U+25A0-25FF,
    U+2600-27BF, U+FE0F, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-700-full.woff2?v=1') format('woff2');
  unicode-range:
    U+0250-02BA, U+02BD-02C5, U+02C7-02D9, U+02DB, U+02DD-02FF, U+0302,
    U+0305-0307, U+030A-0322, U+0324-0328, U+032A-1DFF, U+1F00-1FFF,
    U+2070-209F, U+20D0-2121, U+2123-218F, U+219A-2211, U+2213-2214,
    U+2216-259F, U+27C0-FE0E, U+FE10-FEFE, U+FF00-FFFC, U+FFFE-10FFFF;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-700-latin.woff2?v=1') format('woff2');
  unicode-range:
    U+0000-00FF, U+0100-024F, U+0131, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1E00-1EFF,
    U+2000-206F, U+20A0-20CF, U+2122, U+2190-2199, U+2212, U+2215, U+25A0-25FF,
    U+2600-27BF, U+FE0F, U+FEFF, U+FFFD;
}
/* Por cada peso, dos caras: -latin (subconjunto) y -full (completa). El unicode-range de
   -full es el complemento exacto del de -latin, así que un texto en español solo descarga
   -latin (también con document.fonts.load, que baja toda cara que coincida con el texto) y
   un carácter fuera del rango (cirílico, CJK, símbolos raros) baja -full. Mismo rango que
   scripts/build-fonts.sh.

   Tercera cara por familia de tag: los 11 símbolos del nombre (tag-symbols.js) con una fuente propia
   (scripts/build-tag-symbols.py). Va DESPUÉS de -latin, que también cubre U+2600-27BF: con rangos que
   se solapan gana la última declarada, así el canvas dibuja ♥ con esta cara bajo la misma familia
   que las letras y tag-renderer.js no cambia. size-adjust iguala el alto del símbolo (700/1000 em,
   base en la línea base) al de la mayúscula de cada fuente (actualBoundingBoxAscent de A/N en Chrome;
   Cursiva, con la H más alta que la A, usa la A).

   La cara de símbolos de Pacifico usa tag-symbols-script-400.woff2: los mismos glifos con 135/1000 em de
   margen lateral en vez de 40, porque la cola de las mayúsculas de Pacifico se empalmaba con el símbolo
   (A♪B, T♥). Las demás familias siguen con tag-symbols-400.woff2. */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('assets/fonts/nunito-900-full.woff2?v=1') format('woff2');
  unicode-range:
    U+0250-02BA, U+02BD-02C5, U+02C7-02D9, U+02DB, U+02DD-02FF, U+0302,
    U+0305-0307, U+030A-0322, U+0324-0328, U+032A-1DFF, U+1F00-1FFF,
    U+2070-209F, U+20D0-2121, U+2123-218F, U+219A-2211, U+2213-2214,
    U+2216-259F, U+27C0-FE0E, U+FE10-FEFE, U+FF00-FFFC, U+FFFE-10FFFF;
}

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('assets/fonts/nunito-900-latin.woff2?v=1') format('woff2');
  unicode-range:
    U+0000-00FF, U+0100-024F, U+0131, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1E00-1EFF,
    U+2000-206F, U+20A0-20CF, U+2122, U+2190-2199, U+2212, U+2215, U+25A0-25FF,
    U+2600-27BF, U+FE0F, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('assets/fonts/tag-symbols-400.woff2?v=1') format('woff2');
  unicode-range:
    U+2600-2601, U+2605, U+263A, U+263E, U+2665, U+266A, U+26A1, U+26BD, U+273F,
    U+1F43E;
  size-adjust: 102%;
}

@font-face {
  font-family: 'Pacifico';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/pacifico-400-full.woff2?v=1') format('woff2');
  unicode-range:
    U+0250-02BA, U+02BD-02C5, U+02C7-02D9, U+02DB, U+02DD-02FF, U+0302,
    U+0305-0307, U+030A-0322, U+0324-0328, U+032A-1DFF, U+1F00-1FFF,
    U+2070-209F, U+20D0-2121, U+2123-218F, U+219A-2211, U+2213-2214,
    U+2216-259F, U+27C0-FE0E, U+FE10-FEFE, U+FF00-FFFC, U+FFFE-10FFFF;
}

@font-face {
  font-family: 'Pacifico';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/pacifico-400-latin.woff2?v=1') format('woff2');
  unicode-range:
    U+0000-00FF, U+0100-024F, U+0131, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1E00-1EFF,
    U+2000-206F, U+20A0-20CF, U+2122, U+2190-2199, U+2212, U+2215, U+25A0-25FF,
    U+2600-27BF, U+FE0F, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Pacifico';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/tag-symbols-script-400.woff2?v=1') format('woff2');
  unicode-range:
    U+2600-2601, U+2605, U+263A, U+263E, U+2665, U+266A, U+26A1, U+26BD, U+273F,
    U+1F43E;
  size-adjust: 121%;
}

@font-face {
  font-family: 'Jersey 10';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/jersey-10-400-full.woff2?v=1') format('woff2');
  unicode-range:
    U+0250-02BA, U+02BD-02C5, U+02C7-02D9, U+02DB, U+02DD-02FF, U+0302,
    U+0305-0307, U+030A-0322, U+0324-0328, U+032A-1DFF, U+1F00-1FFF,
    U+2070-209F, U+20D0-2121, U+2123-218F, U+219A-2211, U+2213-2214,
    U+2216-259F, U+27C0-FE0E, U+FE10-FEFE, U+FF00-FFFC, U+FFFE-10FFFF;
}

@font-face {
  font-family: 'Jersey 10';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/jersey-10-400-latin.woff2?v=1') format('woff2');
  unicode-range:
    U+0000-00FF, U+0100-024F, U+0131, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1E00-1EFF,
    U+2000-206F, U+20A0-20CF, U+2122, U+2190-2199, U+2212, U+2215, U+25A0-25FF,
    U+2600-27BF, U+FE0F, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Jersey 10';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/tag-symbols-400.woff2?v=1') format('woff2');
  unicode-range:
    U+2600-2601, U+2605, U+263A, U+263E, U+2665, U+266A, U+26A1, U+26BD, U+273F,
    U+1F43E;
  size-adjust: 76%;
}

@font-face {
  font-family: 'Lilita One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/lilita-one-400-full.woff2?v=1') format('woff2');
  unicode-range:
    U+0250-02BA, U+02BD-02C5, U+02C7-02D9, U+02DB, U+02DD-02FF, U+0302,
    U+0305-0307, U+030A-0322, U+0324-0328, U+032A-1DFF, U+1F00-1FFF,
    U+2070-209F, U+20D0-2121, U+2123-218F, U+219A-2211, U+2213-2214,
    U+2216-259F, U+27C0-FE0E, U+FE10-FEFE, U+FF00-FFFC, U+FFFE-10FFFF;
}

@font-face {
  font-family: 'Lilita One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/lilita-one-400-latin.woff2?v=1') format('woff2');
  unicode-range:
    U+0000-00FF, U+0100-024F, U+0131, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1E00-1EFF,
    U+2000-206F, U+20A0-20CF, U+2122, U+2190-2199, U+2212, U+2215, U+25A0-25FF,
    U+2600-27BF, U+FE0F, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Lilita One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/tag-symbols-400.woff2?v=1') format('woff2');
  unicode-range:
    U+2600-2601, U+2605, U+263A, U+263E, U+2665, U+266A, U+26A1, U+26BD, U+273F,
    U+1F43E;
  size-adjust: 100%;
}

@font-face {
  font-family: 'Luckiest Guy';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/luckiest-guy-400-full.woff2?v=1') format('woff2');
  unicode-range:
    U+0250-02BA, U+02BD-02C5, U+02C7-02D9, U+02DB, U+02DD-02FF, U+0302,
    U+0305-0307, U+030A-0322, U+0324-0328, U+032A-1DFF, U+1F00-1FFF,
    U+2070-209F, U+20D0-2121, U+2123-218F, U+219A-2211, U+2213-2214,
    U+2216-259F, U+27C0-FE0E, U+FE10-FEFE, U+FF00-FFFC, U+FFFE-10FFFF;
}

@font-face {
  font-family: 'Luckiest Guy';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/luckiest-guy-400-latin.woff2?v=1') format('woff2');
  unicode-range:
    U+0000-00FF, U+0100-024F, U+0131, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1E00-1EFF,
    U+2000-206F, U+20A0-20CF, U+2122, U+2190-2199, U+2212, U+2215, U+25A0-25FF,
    U+2600-27BF, U+FE0F, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Luckiest Guy';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/tag-symbols-400.woff2?v=1') format('woff2');
  unicode-range:
    U+2600-2601, U+2605, U+263A, U+263E, U+2665, U+266A, U+26A1, U+26BD, U+273F,
    U+1F43E;
  size-adjust: 100%;
}

@font-face {
  font-family: 'Mouse Memoirs';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/mouse-memoirs-400-full.woff2?v=1') format('woff2');
  unicode-range:
    U+0250-02BA, U+02BD-02C5, U+02C7-02D9, U+02DB, U+02DD-02FF, U+0302,
    U+0305-0307, U+030A-0322, U+0324-0328, U+032A-1DFF, U+1F00-1FFF,
    U+2070-209F, U+20D0-2121, U+2123-218F, U+219A-2211, U+2213-2214,
    U+2216-259F, U+27C0-FE0E, U+FE10-FEFE, U+FF00-FFFC, U+FFFE-10FFFF;
}

@font-face {
  font-family: 'Mouse Memoirs';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/mouse-memoirs-400-latin.woff2?v=1') format('woff2');
  unicode-range:
    U+0000-00FF, U+0100-024F, U+0131, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1E00-1EFF,
    U+2000-206F, U+20A0-20CF, U+2122, U+2190-2199, U+2212, U+2215, U+25A0-25FF,
    U+2600-27BF, U+FE0F, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Mouse Memoirs';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/tag-symbols-400.woff2?v=1') format('woff2');
  unicode-range:
    U+2600-2601, U+2605, U+263A, U+263E, U+2665, U+266A, U+26A1, U+26BD, U+273F,
    U+1F43E;
  size-adjust: 100%;
}

@font-face {
  font-family: 'Titan One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/titan-one-400-full.woff2?v=1') format('woff2');
  unicode-range:
    U+0250-02BA, U+02BD-02C5, U+02C7-02D9, U+02DB, U+02DD-02FF, U+0302,
    U+0305-0307, U+030A-0322, U+0324-0328, U+032A-1DFF, U+1F00-1FFF,
    U+2070-209F, U+20D0-2121, U+2123-218F, U+219A-2211, U+2213-2214,
    U+2216-259F, U+27C0-FE0E, U+FE10-FEFE, U+FF00-FFFC, U+FFFE-10FFFF;
}

@font-face {
  font-family: 'Titan One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/titan-one-400-latin.woff2?v=1') format('woff2');
  unicode-range:
    U+0000-00FF, U+0100-024F, U+0131, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1E00-1EFF,
    U+2000-206F, U+20A0-20CF, U+2122, U+2190-2199, U+2212, U+2215, U+25A0-25FF,
    U+2600-27BF, U+FE0F, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Titan One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/tag-symbols-400.woff2?v=1') format('woff2');
  unicode-range:
    U+2600-2601, U+2605, U+263A, U+263E, U+2665, U+266A, U+26A1, U+26BD, U+273F,
    U+1F43E;
  size-adjust: 101%;
}

@font-face {
  font-family: Bungee;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/bungee-400-full.woff2?v=1') format('woff2');
  unicode-range:
    U+0250-02BA, U+02BD-02C5, U+02C7-02D9, U+02DB, U+02DD-02FF, U+0302,
    U+0305-0307, U+030A-0322, U+0324-0328, U+032A-1DFF, U+1F00-1FFF,
    U+2070-209F, U+20D0-2121, U+2123-218F, U+219A-2211, U+2213-2214,
    U+2216-259F, U+27C0-FE0E, U+FE10-FEFE, U+FF00-FFFC, U+FFFE-10FFFF;
}

@font-face {
  font-family: Bungee;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/bungee-400-latin.woff2?v=1') format('woff2');
  unicode-range:
    U+0000-00FF, U+0100-024F, U+0131, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1E00-1EFF,
    U+2000-206F, U+20A0-20CF, U+2122, U+2190-2199, U+2212, U+2215, U+25A0-25FF,
    U+2600-27BF, U+FE0F, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Bungee;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/tag-symbols-400.woff2?v=1') format('woff2');
  unicode-range:
    U+2600-2601, U+2605, U+263A, U+263E, U+2665, U+266A, U+26A1, U+26BD, U+273F,
    U+1F43E;
  size-adjust: 103%;
}

@font-face {
  font-family: 'Black Ops One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/black-ops-one-400-full.woff2?v=1') format('woff2');
  unicode-range:
    U+0250-02BA, U+02BD-02C5, U+02C7-02D9, U+02DB, U+02DD-02FF, U+0302,
    U+0305-0307, U+030A-0322, U+0324-0328, U+032A-1DFF, U+1F00-1FFF,
    U+2070-209F, U+20D0-2121, U+2123-218F, U+219A-2211, U+2213-2214,
    U+2216-259F, U+27C0-FE0E, U+FE10-FEFE, U+FF00-FFFC, U+FFFE-10FFFF;
}

@font-face {
  font-family: 'Black Ops One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/black-ops-one-400-latin.woff2?v=1') format('woff2');
  unicode-range:
    U+0000-00FF, U+0100-024F, U+0131, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1E00-1EFF,
    U+2000-206F, U+20A0-20CF, U+2122, U+2190-2199, U+2212, U+2215, U+25A0-25FF,
    U+2600-27BF, U+FE0F, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Black Ops One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/tag-symbols-400.woff2?v=1') format('woff2');
  unicode-range:
    U+2600-2601, U+2605, U+263A, U+263E, U+2665, U+266A, U+26A1, U+26BD, U+273F,
    U+1F43E;
  size-adjust: 93%;
}

@font-face {
  font-family: Grandstander;
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('assets/fonts/grandstander-900-full.woff2?v=1') format('woff2');
  unicode-range:
    U+0250-02BA, U+02BD-02C5, U+02C7-02D9, U+02DB, U+02DD-02FF, U+0302,
    U+0305-0307, U+030A-0322, U+0324-0328, U+032A-1DFF, U+1F00-1FFF,
    U+2070-209F, U+20D0-2121, U+2123-218F, U+219A-2211, U+2213-2214,
    U+2216-259F, U+27C0-FE0E, U+FE10-FEFE, U+FF00-FFFC, U+FFFE-10FFFF;
}

@font-face {
  font-family: Grandstander;
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('assets/fonts/grandstander-900-latin.woff2?v=1') format('woff2');
  unicode-range:
    U+0000-00FF, U+0100-024F, U+0131, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1E00-1EFF,
    U+2000-206F, U+20A0-20CF, U+2122, U+2190-2199, U+2212, U+2215, U+25A0-25FF,
    U+2600-27BF, U+FE0F, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Grandstander;
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('assets/fonts/tag-symbols-400.woff2?v=1') format('woff2');
  unicode-range:
    U+2600-2601, U+2605, U+263A, U+263E, U+2665, U+266A, U+26A1, U+26BD, U+273F,
    U+1F43E;
  size-adjust: 90%;
}

@font-face {
  font-family: 'Cherry Bomb One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/cherry-bomb-one-400-full.woff2?v=1') format('woff2');
  unicode-range:
    U+0250-02BA, U+02BD-02C5, U+02C7-02D9, U+02DB, U+02DD-02FF, U+0302,
    U+0305-0307, U+030A-0322, U+0324-0328, U+032A-1DFF, U+1F00-1FFF,
    U+2070-209F, U+20D0-2121, U+2123-218F, U+219A-2211, U+2213-2214,
    U+2216-259F, U+27C0-FE0E, U+FE10-FEFE, U+FF00-FFFC, U+FFFE-10FFFF;
}

@font-face {
  font-family: 'Cherry Bomb One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/cherry-bomb-one-400-latin.woff2?v=1') format('woff2');
  unicode-range:
    U+0000-00FF, U+0100-024F, U+0131, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1E00-1EFF,
    U+2000-206F, U+20A0-20CF, U+2122, U+2190-2199, U+2212, U+2215, U+25A0-25FF,
    U+2600-27BF, U+FE0F, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Cherry Bomb One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/tag-symbols-400.woff2?v=1') format('woff2');
  unicode-range:
    U+2600-2601, U+2605, U+263A, U+263E, U+2665, U+266A, U+26A1, U+26BD, U+273F,
    U+1F43E;
  size-adjust: 100%;
}

@font-face {
  font-family: 'Racing Sans One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/racing-sans-one-400-full.woff2?v=1') format('woff2');
  unicode-range:
    U+0250-02BA, U+02BD-02C5, U+02C7-02D9, U+02DB, U+02DD-02FF, U+0302,
    U+0305-0307, U+030A-0322, U+0324-0328, U+032A-1DFF, U+1F00-1FFF,
    U+2070-209F, U+20D0-2121, U+2123-218F, U+219A-2211, U+2213-2214,
    U+2216-259F, U+27C0-FE0E, U+FE10-FEFE, U+FF00-FFFC, U+FFFE-10FFFF;
}

@font-face {
  font-family: 'Racing Sans One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/racing-sans-one-400-latin.woff2?v=1') format('woff2');
  unicode-range:
    U+0000-00FF, U+0100-024F, U+0131, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1E00-1EFF,
    U+2000-206F, U+20A0-20CF, U+2122, U+2190-2199, U+2212, U+2215, U+25A0-25FF,
    U+2600-27BF, U+FE0F, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Racing Sans One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/tag-symbols-400.woff2?v=1') format('woff2');
  unicode-range:
    U+2600-2601, U+2605, U+263A, U+263E, U+2665, U+266A, U+26A1, U+26BD, U+273F,
    U+1F43E;
  size-adjust: 91%;
}

@font-face {
  font-family: DynaPuff;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/dynapuff-700-full.woff2?v=1') format('woff2');
  unicode-range:
    U+0250-02BA, U+02BD-02C5, U+02C7-02D9, U+02DB, U+02DD-02FF, U+0302,
    U+0305-0307, U+030A-0322, U+0324-0328, U+032A-1DFF, U+1F00-1FFF,
    U+2070-209F, U+20D0-2121, U+2123-218F, U+219A-2211, U+2213-2214,
    U+2216-259F, U+27C0-FE0E, U+FE10-FEFE, U+FF00-FFFC, U+FFFE-10FFFF;
}

@font-face {
  font-family: DynaPuff;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/dynapuff-700-latin.woff2?v=1') format('woff2');
  unicode-range:
    U+0000-00FF, U+0100-024F, U+0131, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1E00-1EFF,
    U+2000-206F, U+20A0-20CF, U+2122, U+2190-2199, U+2212, U+2215, U+25A0-25FF,
    U+2600-27BF, U+FE0F, U+FEFF, U+FFFD;
}

@font-face {
  font-family: DynaPuff;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/tag-symbols-400.woff2?v=1') format('woff2');
  unicode-range:
    U+2600-2601, U+2605, U+263A, U+263E, U+2665, U+266A, U+26A1, U+26BD, U+273F,
    U+1F43E;
  size-adjust: 106%;
}

@font-face {
  font-family: 'Sedgwick Ave Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/sedgwick-ave-display-400-full.woff2?v=1') format('woff2');
  unicode-range:
    U+0250-02BA, U+02BD-02C5, U+02C7-02D9, U+02DB, U+02DD-02FF, U+0302,
    U+0305-0307, U+030A-0322, U+0324-0328, U+032A-1DFF, U+1F00-1FFF,
    U+2070-209F, U+20D0-2121, U+2123-218F, U+219A-2211, U+2213-2214,
    U+2216-259F, U+27C0-FE0E, U+FE10-FEFE, U+FF00-FFFC, U+FFFE-10FFFF;
}

@font-face {
  font-family: 'Sedgwick Ave Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/sedgwick-ave-display-400-latin.woff2?v=1') format('woff2');
  unicode-range:
    U+0000-00FF, U+0100-024F, U+0131, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1E00-1EFF,
    U+2000-206F, U+20A0-20CF, U+2122, U+2190-2199, U+2212, U+2215, U+25A0-25FF,
    U+2600-27BF, U+FE0F, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Sedgwick Ave Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/tag-symbols-400.woff2?v=1') format('woff2');
  unicode-range:
    U+2600-2601, U+2605, U+263A, U+263E, U+2665, U+266A, U+26A1, U+26BD, U+273F,
    U+1F43E;
  size-adjust: 100%;
}

/* 3Dimensional Racing: fuente propia (scripts/racing-font/, licencia en 3dimensional-racing-LICENSE.txt).
   La familia se declara solo aquí: una segunda cara latin en otra hoja ganaría el solape U+2600-27BF y
   rompería los símbolos. size-adjust 100 %: en Chrome, ★ mide 1.0385 veces la N (como Nunito) y ♥ lo
   mismo que la N. */
@font-face {
  font-family: '3Dimensional Racing';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/3dimensional-racing-400-full.woff2?v=1') format('woff2');
  unicode-range:
    U+0250-02BA, U+02BD-02C5, U+02C7-02D9, U+02DB, U+02DD-02FF, U+0302,
    U+0305-0307, U+030A-0322, U+0324-0328, U+032A-1DFF, U+1F00-1FFF,
    U+2070-209F, U+20D0-2121, U+2123-218F, U+219A-2211, U+2213-2214,
    U+2216-259F, U+27C0-FE0E, U+FE10-FEFE, U+FF00-FFFC, U+FFFE-10FFFF;
}

@font-face {
  font-family: '3Dimensional Racing';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/3dimensional-racing-400-latin.woff2?v=1') format('woff2');
  unicode-range:
    U+0000-00FF, U+0100-024F, U+0131, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1E00-1EFF,
    U+2000-206F, U+20A0-20CF, U+2122, U+2190-2199, U+2212, U+2215, U+25A0-25FF,
    U+2600-27BF, U+FE0F, U+FEFF, U+FFFD;
}

@font-face {
  font-family: '3Dimensional Racing';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/tag-symbols-400.woff2?v=1') format('woff2');
  unicode-range:
    U+2600-2601, U+2605, U+263A, U+263E, U+2665, U+266A, U+26A1, U+26BD, U+273F,
    U+1F43E;
  size-adjust: 100%;
}

/* Familia de interfaz para los botones de símbolos: muestran el mismo glifo que se imprime. */
@font-face {
  font-family: 'Tag Symbols';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/tag-symbols-400.woff2?v=1') format('woff2');
}

/* Muestras "Aa" de las tarjetas de estilo (personaliza.html): una cara por familia con solo A y a
   (~2 KB) bajo otro nombre, para no bajar las nueve caras latin completas al abrir la página; la
   fuente real la carga tag-fonts.js solo para el estilo elegido. Los 6 estilos de antes siguen
   usando su cara latin. */
@font-face {
  font-family: 'Titan One Muestra';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/titan-one-400-muestra.woff2?v=1') format('woff2');
}
@font-face {
  font-family: 'Bungee Muestra';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/bungee-400-muestra.woff2?v=1') format('woff2');
}
@font-face {
  font-family: 'Black Ops One Muestra';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/black-ops-one-400-muestra.woff2?v=1') format('woff2');
}
@font-face {
  font-family: 'Grandstander Muestra';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('assets/fonts/grandstander-900-muestra.woff2?v=1') format('woff2');
}
@font-face {
  font-family: 'Cherry Bomb One Muestra';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/cherry-bomb-one-400-muestra.woff2?v=1') format('woff2');
}
@font-face {
  font-family: 'Racing Sans One Muestra';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/racing-sans-one-400-muestra.woff2?v=1') format('woff2');
}
@font-face {
  font-family: 'DynaPuff Muestra';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/dynapuff-700-muestra.woff2?v=1') format('woff2');
}
@font-face {
  font-family: 'Sedgwick Ave Display Muestra';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/sedgwick-ave-display-400-muestra.woff2?v=1') format('woff2');
}
@font-face {
  font-family: '3Dimensional Racing Muestra';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/3dimensional-racing-400-muestra.woff2?v=1') format('woff2');
}
:root {
  --blue: #0039b5;
  --blue-deep: #002a86;
  --lime: #dafb06;
  --red: #f70000;
  --green: #0b7a43;
  --white: #ffffff;
  --ink: #0b1020;
  --ink-soft: #4a5470;
  --paper: #f5f7fb;
  --stage: #e9edf5;
  --line: #dde3f0;
  --line-strong: var(--ink);
  --blue-tint: #e8eefb;
  --lime-tint: #fbffe0;
  --on-blue-soft: #b8c7f0;
  --danger-text: #d10000;
  /* Verde de marca de WhatsApp (MASTER §2.6): solo el botón "Pedir por WhatsApp". */
  --whatsapp: #25d366;
  --scrim: rgb(11 16 32 / 0.6);
  --shadow-dialog: 0 24px 64px rgb(11 16 32 / 0.24);
  --shadow-text: 0 1px 2px rgb(11 16 32 / 0.3);
  --font-ui: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  /* Colores de marca de Google (MASTER §2.5), exclusivos del botón de
     "Continuar con Google" (§6.12); no se usan en nada más. */
  --google-text: #1f1f1f;
  --google-stroke: #747775;
  --font-google: 'Google Sans', var(--font-ui);
  --radius: 4px;
  --radius-sm: 2px;
  --grid-size: 24px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
}
button,
input {
  font: inherit;
}
button,
a,
input,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--lime);
}
a {
  color: inherit;
  text-decoration: none;
}
header {
  max-width: 1440px;
  margin: auto;
  height: 72px;
  padding: 0 5%;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line-strong);
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  min-height: 44px;
}
.brand-chile {
  height: 40px;
  width: auto;
  flex-shrink: 0;
}
.brand-logo {
  height: 30px;
  width: auto;
  flex-shrink: 0;
}
.header-label {
  font-size: 12px;
  letter-spacing: 1.6px;
  color: var(--ink-soft);
  border-left: 1px solid var(--line);
  padding-left: 28px;
}
.nav-link {
  margin-left: auto;
  font-size: 14px;
  font-weight: 800;
}
.nav-link span {
  padding-left: 15px;
}
main {
  max-width: 1320px;
  margin: auto;
  padding: 42px 40px 0;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}
.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  color: var(--blue);
}
.eyebrow::before {
  content: '// ';
  color: var(--ink-soft);
}
h1 {
  font-size: clamp(30px, 3.4vw, 46px);
  letter-spacing: -1.8px;
  line-height: 1.2;
  margin: 10px 0 9px;
  font-weight: 900;
}
h1 span {
  color: var(--blue);
}
.intro p {
  color: var(--ink-soft);
  margin: 0;
}
.studio-pill {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: var(--white);
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 26px;
}
.viewer {
  background: var(--stage);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  min-height: 620px;
  overflow: hidden;
  position: relative;
}
.viewer-top {
  padding: 25px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border-bottom: 1px solid var(--line-strong);
}
.preview-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 8px;
}
.preview-label i {
  width: 8px;
  height: 8px;
  background: var(--green);
}
.material {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  color: var(--ink-soft);
}
.canvas-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 300px;
}
#preview {
  width: 100%;
  height: auto;
  display: block;
}
#empty {
  position: absolute;
  inset: 0;
  align-content: center;
  text-align: center;
  color: var(--ink-soft);
  padding: 30px;
}
.viewer-bottom {
  padding: 10px 25px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.view-buttons {
  background: var(--white);
  border: 1.5px solid var(--line-strong);
  display: flex;
  gap: 4px;
  padding: 5px;
  border-radius: var(--radius);
}
.view-buttons button {
  background: transparent;
  border: 0;
  color: var(--ink);
  padding: 9px 15px;
  font-family: var(--font-mono);
  font-size: 14px;
  border-radius: var(--radius-sm);
  min-height: 44px;
}
.view-buttons button:not(.selected):hover {
  background: var(--paper);
}
.view-buttons button.selected {
  color: var(--lime);
  background: var(--ink);
}
.reset {
  border: 0;
  background: none;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
}
.reset:hover {
  color: var(--blue);
}
.reset span {
  font-size: 13px;
}
.preview-foot {
  border-top: 1px solid var(--line-strong);
  display: flex;
  justify-content: space-between;
  padding: 16px 25px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  color: var(--ink-soft);
  background: var(--white);
}
.controls {
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 24px;
}
.step {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 13px;
}
.step:not(:first-child) {
  margin-top: 24px;
}
.step > span {
  color: var(--white);
  background: var(--blue);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.6px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}
h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
}
.name-field {
  display: flex;
  align-items: center;
  min-height: 48px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}
.name-field:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--lime);
}
.name-field input:focus-visible {
  box-shadow: none;
}
.name-field input {
  border: 0;
  outline: 0;
  min-width: 0;
  width: 100%;
  padding: 13px;
  background: transparent;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}
.name-field > span {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  color: var(--ink-soft);
  padding: 0 12px 0 0;
  white-space: nowrap;
}
.name-field > span.is-max {
  color: var(--ink);
  font-weight: 700;
}
.hint {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 8px 0 0;
}
.hint b {
  color: var(--ink);
}
/* Botones de símbolos del nombre del tag (personaliza y "Un tag" del panel): muestran el mismo glifo
   que se imprime, con la fuente 'Tag Symbols' (assets/fonts-tags.css). */
.symbol-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.symbol-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--white);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font:
    22px/1 'Tag Symbols',
    sans-serif;
  cursor: pointer;
}
.symbol-key:hover {
  background: var(--lime);
}
.symbol-key:active {
  transform: translateY(1px);
}
/* El aviso vivo bajo los botones no ocupa espacio mientras está vacío. */
.symbol-keys + p:empty {
  margin: 0;
}
.styles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.style-card {
  border: 1px solid var(--line-strong);
  background: white;
  border-radius: var(--radius);
  color: var(--ink);
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}
.style-card:not(.selected):hover {
  background: var(--paper);
}
.style-card.selected {
  background: var(--blue-tint);
  border: 1.5px solid var(--blue);
  color: var(--blue);
}
/* LEGO sin su combinación publicada: sigue enfocable (el motivo es parte de su nombre) pero no responde. */
.style-card[aria-disabled='true'] {
  background: var(--paper);
  border-style: dashed;
  color: var(--ink-soft);
  cursor: not-allowed;
}
/* Todas las muestras ocupan lo mismo (el alto de la más grande, Píxel: 40px × 1.3) para que el nombre
   quede a la misma altura en cada tarjeta, tenga o no descripción la de al lado. */
.style-card b {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  font-size: 26px;
  line-height: 1.3;
}
.style-card span {
  font-size: 12px;
  font-weight: 800;
}
.style-card .style-desc {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  text-wrap: balance;
  margin-top: -4px;
}
.sample-script {
  font-family: Pacifico, cursive;
}
.sample-block {
  font-family: Nunito;
  font-weight: 900;
  text-shadow: 1px 2px 0 var(--line);
}
.color-label {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 500;
  margin: 15px 0 10px;
}
.color-label span:last-child {
  font-size: 12px;
  color: var(--ink-soft);
}
.swatches {
  display: flex;
  justify-content: space-between;
  gap: 6px;
}
.swatch {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  position: relative;
  padding: 0;
}
.swatch.selected {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.swatch.selected:after {
  content: '✓';
  color: var(--check);
  font-size: 17px;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.swap {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 14px 0 0;
  border: 0;
  border-bottom: 2px solid var(--blue);
  background: none;
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
}
.swap:hover {
  background: var(--lime);
}
.swap:disabled {
  color: var(--ink-soft);
  border-bottom-color: var(--ink-soft);
  cursor: not-allowed;
}
.swap:disabled:hover {
  background: none;
}
.skeleton-swatch {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
}
.swatches-message {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
}
.download-note {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
  text-align: center;
  margin: 10px 0 0;
}
.inspiration {
  margin-top: 43px;
  scroll-margin-top: 20px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 20px;
}
.section-heading h2 {
  font-size: 25px;
  letter-spacing: -0.6px;
  margin-top: 7px;
}
.section-heading p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}
.presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.preset {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 0;
  color: var(--ink);
}
/* ≤ 680px .preset pasa a grid: sin esto el atributo hidden (preset LEO sin su combinación) no lo esconde. */
.preset[hidden] {
  display: none;
}
.preset canvas {
  width: 100%;
  height: auto;
  display: block;
}
.preset > div {
  display: flex;
  justify-content: space-between;
  padding: 14px 19px;
  font-size: 14px;
  background: var(--white);
  border-top: 1px solid var(--line-strong);
  font-weight: 500;
}
.preset:hover > div {
  background: var(--lime);
  color: var(--ink);
}
.pink,
.green,
.yellow {
  background: var(--stage);
}
footer {
  padding: 36px 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  border-top: 1px solid var(--line-strong);
}
footer > span {
  font-size: 13px;
  color: var(--ink-soft);
  white-space: nowrap;
}
footer > a.footer-social,
footer > nav.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  min-height: 44px;
  white-space: nowrap;
  font-size: 13px;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
footer > nav.footer-links {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  column-gap: 20px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
footer > a.footer-social:hover,
footer > nav.footer-links a:hover {
  text-decoration-thickness: 2px;
}
footer p {
  margin-left: auto;
  text-align: right;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 1400px) {
  main {
    padding-top: 50px;
  }
  .viewer {
    min-height: 665px;
  }
}
@media (max-width: 900px) {
  header {
    height: 80px;
  }
  .header-label {
    display: none;
  }
  main {
    padding: 28px 22px 0;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 16px;
  }
  .controls {
    padding: 20px;
  }
  .studio-pill {
    display: none;
  }
  .viewer-top {
    padding: 20px 16px;
  }
  .material {
    display: none;
  }
  .viewer-bottom {
    padding: 15px;
  }
  .preview-foot {
    padding: 15px;
    gap: 10px;
  }
  .reset span {
    display: none;
  }
  .reset {
    min-width: 44px;
    justify-content: center;
  }
}
@media (max-width: 680px) {
  header {
    height: 72px;
    padding: 0 20px;
  }
  .nav-link {
    font-size: 13px;
  }
  main {
    padding: 25px 16px 0;
  }
  h1 {
    font-size: 32px;
    letter-spacing: -1.2px;
  }
  .intro p {
    font-size: 14px;
  }
  .eyebrow {
    font-size: 12px;
  }
  .intro {
    margin-bottom: 22px;
  }
  .workspace {
    display: flex;
    flex-direction: column;
  }
  .viewer {
    min-height: 0;
    border-radius: var(--radius);
  }
  .viewer-top {
    padding: 17px;
  }
  .canvas-wrap {
    min-height: 0;
  }
  #preview {
    aspect-ratio: 1.9;
    object-fit: contain;
  }
  .data-error.stage-error {
    padding: 16px;
  }
  .data-error.stage-error .data-error-label {
    margin-bottom: 4px;
  }
  .data-error.stage-error p:not(.data-error-label) {
    font-size: 13px;
    margin-bottom: 10px;
  }
  .data-error.stage-error p.data-error-title {
    font-size: 16px;
    margin-bottom: 4px;
  }
  .viewer-bottom {
    padding: 0 14px 14px;
  }
  .preview-foot {
    font-size: 11px;
    padding: 12px 14px;
  }
  .controls {
    padding: 22px;
  }
  .swatches {
    justify-content: start;
    gap: 14px;
  }
  .section-heading {
    display: block;
  }
  .section-heading p {
    margin-top: 8px;
  }
  .presets {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .preset {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
  }
  .preset > div {
    height: 100%;
    align-items: center;
    padding: 15px;
    font-size: 13px;
    gap: 8px;
  }
  footer {
    flex-wrap: wrap;
    gap: 13px;
    padding: 28px 2px;
  }
  footer p {
    width: 100%;
    text-align: left;
    margin: 0;
  }
  .inspiration {
    margin-top: 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.shape-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.shape-options button {
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  padding: 9px 6px;
}
.shape-options button:hover {
  background: var(--paper);
}
.shape-options button.selected {
  background: var(--blue-tint);
  border: 1.5px solid var(--blue);
  color: var(--blue);
}

.sample-minecraft {
  font-family: 'Jersey 10', monospace;
  font-weight: 400;
}
.sample-lego {
  font-family: 'Lilita One', sans-serif;
  font-weight: 400 !important;
  font-style: italic;
}
.style-card .sample-minecraft {
  font-size: 40px;
}
.style-card .sample-lego {
  font-size: 30px;
}

.view-buttons button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.swatches {
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
}
.sample-fortnite {
  font-family: 'Luckiest Guy', sans-serif;
  font-weight: 400 !important;
}
.style-card .sample-fortnite {
  font-size: 32px;
}
.style-card .sample-disney {
  font-family: 'Mouse Memoirs', sans-serif;
  font-weight: 400;
  font-size: 34px;
}
/* Estilos agregados el 2026-11-07: una muestra "Aa" por fuente, al tamaño que iguala su mayúscula; la familia "… Muestra" trae solo A y a (fonts-tags.css). */
.style-card .sample-titan {
  font-family: 'Titan One Muestra', sans-serif;
  font-weight: 400;
  font-size: 28px;
}
.style-card .sample-urban {
  font-family: 'Bungee Muestra', sans-serif;
  font-weight: 400;
  font-size: 26px;
}
.style-card .sample-stencil {
  font-family: 'Black Ops One Muestra', sans-serif;
  font-weight: 400;
  font-size: 30px;
}
.style-card .sample-kids {
  font-family: 'Grandstander Muestra', sans-serif;
  font-weight: 900;
  font-size: 30px;
}
.style-card .sample-kawaii {
  font-family: 'Cherry Bomb One Muestra', sans-serif;
  font-weight: 400;
  font-size: 28px;
}
.style-card .sample-racing {
  font-family: 'Racing Sans One Muestra', sans-serif;
  font-weight: 400;
  font-size: 32px;
}
.style-card .sample-puffy {
  font-family: 'DynaPuff Muestra', sans-serif;
  font-weight: 700;
  font-size: 28px;
}
.style-card .sample-graffiti {
  font-family: 'Sedgwick Ave Display Muestra', sans-serif;
  font-weight: 400;
  font-size: 28px;
}
.style-card .sample-turbo {
  font-family: '3Dimensional Racing Muestra', sans-serif;
  font-weight: 400;
  font-size: 30px;
}
/* Keep the design independent of the growing control panel. */
main {
  padding-top: 24px;
}
.intro {
  margin-bottom: 22px;
}
h1 {
  font-size: clamp(30px, 3vw, 40px);
}
.viewer {
  align-self: start;
  width: 100%;
  min-height: 0;
  height: clamp(340px, calc(100dvh - 240px), 560px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  position: sticky;
  top: 20px;
}
/* Personaliza (random-near-preview): la columna completa (barra de inspiración + visor) es la que
   queda sticky en escritorio. La altura es la del visor de antes más la barra (70px) y el gap (12px). */
.viewer-column {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  align-self: start;
  position: sticky;
  top: 20px;
  height: clamp(422px, calc(100dvh - 158px), 642px);
}
.viewer-column .viewer {
  position: static;
  height: auto;
  min-height: 0;
  align-self: stretch;
}
@media (min-width: 681px) {
  #name {
    scroll-margin-top: 72px;
  }
}
.viewer-top {
  padding: 18px 22px;
}
.canvas-wrap {
  min-height: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
#preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: fill;
}
.viewer-bottom {
  padding: 10px 20px 16px;
}
.preview-foot {
  padding: 12px 20px;
}
@media (max-width: 680px) {
  main {
    padding-top: 20px;
  }
  .intro {
    margin-bottom: 18px;
  }
  .viewer-column {
    display: contents;
  }
  .viewer {
    position: relative;
    top: auto;
    height: clamp(260px, 44svh, 360px);
  }
  .viewer-top {
    padding: 14px;
  }
  .viewer-bottom {
    padding: 8px 12px 12px;
  }
  .preview-foot {
    padding: 10px 12px;
  }
}

@media (max-width: 680px) {
  header {
    gap: 12px;
  }
  .nav-link span {
    padding-left: 5px;
  }
}
@media (max-width: 480px) {
  .brand {
    gap: 8px;
  }
  .brand-chile {
    height: 34px;
  }
  .brand-logo {
    height: 26px;
  }
}
.studio-header {
  max-width: 1440px;
  padding: 0 5%;
  justify-content: space-between;
  gap: 24px;
}
/* Nav principal (pages/nav-menu.md): una sola lista dentro de <details>. Base = botón + panel
   (≤ 800 px y navegadores sin ::details-content); la fila de escritorio está en el bloque @supports. */
.studio-header {
  position: relative;
}
.studio-header nav {
  font-family: var(--font-mono);
  font-weight: 500;
}
.nav-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.nav-menu-toggle::-webkit-details-marker {
  display: none;
}
.nav-menu-toggle:hover {
  background: var(--paper);
}
.nav-menu-toggle:active {
  transform: translateY(1px);
}
.nav-menu-icon-close {
  display: none;
}
.nav-menu[open] > .nav-menu-toggle {
  background: var(--ink);
  color: var(--lime);
}
.nav-menu[open] .nav-menu-icon-open {
  display: none;
}
.nav-menu[open] .nav-menu-icon-close {
  display: block;
}
.nav-menu-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  padding: 8px 5% 16px;
  background: var(--white);
  border-bottom: 1px solid var(--line-strong);
  box-shadow: var(--shadow-dialog);
}
.nav-menu-list a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 48px;
  padding: 0 12px;
  color: var(--ink);
  font-size: 15px;
  white-space: nowrap;
  border-top: 1px solid var(--line);
}
.nav-menu-list a:first-child {
  border-top: 0;
}
.nav-menu-list a:hover {
  background: var(--paper);
  color: var(--blue);
}
.nav-menu-list a.active {
  color: var(--blue);
  font-weight: 700;
  box-shadow: inset 4px 0 0 var(--blue);
}
.nav-menu-list a:last-child {
  justify-content: center;
  margin-top: 12px;
  background: var(--blue);
  border: 0;
  border-radius: var(--radius);
  color: var(--white);
  font-weight: 700;
}
.nav-menu-list a:last-child:hover {
  background: var(--blue-deep);
  color: var(--white);
}
.nav-menu-list a:last-child.active {
  box-shadow: inset 0 -3px 0 var(--lime);
}
@supports selector(::details-content) {
  @media (min-width: 801px) {
    .nav-menu-toggle {
      display: none;
    }
    .nav-menu::details-content {
      content-visibility: visible;
      display: contents;
    }
    .nav-menu-list {
      position: static;
      flex-direction: row;
      align-items: stretch;
      padding: 0;
      background: none;
      border-bottom: 0;
      box-shadow: none;
      font-size: 14px;
    }
    .nav-menu-list a {
      justify-content: center;
      min-height: 44px;
      padding: 0 14px;
      font-size: 14px;
      border-top: 0;
      border-left: 1px solid var(--line);
    }
    .nav-menu-list a:first-child {
      border-left: 0;
    }
    .nav-menu-list a.active {
      box-shadow: inset 0 -3px 0 var(--blue);
    }
    .nav-menu-list a:last-child {
      margin: 0 0 0 8px;
      padding: 0 19px;
      border: 0;
    }
    .nav-menu-list a:last-child.active {
      box-shadow: inset 0 -3px 0 var(--lime);
    }
  }
}
.studio-page {
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
}
.studio-page main {
  max-width: 1320px;
  padding: 0 40px;
  margin: auto;
}
.studio-page .eyebrow {
  margin: 0 0 16px;
}
.hero {
  display: grid;
  grid-template-columns: 1.04fr 1fr;
  grid-template-rows: 1fr auto auto 1fr;
  grid-template-areas:
    '. bed'
    'intro bed'
    'offer bed'
    '. bed';
  align-items: center;
  column-gap: 56px;
  row-gap: 0;
  padding: 54px 0 60px;
}
.hero .eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  color: var(--blue);
}
.hero .eyebrow::before {
  content: '// ';
  color: var(--ink-soft);
}
.studio-page h1 {
  font-size: clamp(40px, 5.2vw, 68px);
  line-height: 1.06;
  letter-spacing: -2.8px;
  margin: 0;
  font-weight: 900;
}
.studio-page .hero h1 {
  font-size: clamp(40px, 5.4vw - 4px, 68px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.studio-page h1 em {
  font-style: normal;
  color: var(--blue);
}
.hero h1 em {
  white-space: nowrap;
  background: linear-gradient(
    transparent 58%,
    var(--lime) 58%,
    var(--lime) 92%,
    transparent 92%
  );
}
.hero-description {
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1.75;
  max-width: 30em;
  margin: 26px 0 0;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 22px;
  min-height: 48px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition:
    background-color 120ms linear,
    color 120ms linear,
    border-color 120ms linear;
}
.button:active {
  transform: translateY(1px);
}
.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}
.primary:hover {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
}
.primary:disabled {
  background: var(--paper);
  border: 1.5px dashed var(--ink-soft);
  color: var(--ink-soft);
  cursor: not-allowed;
  transition: none;
}
.button.secondary {
  background: var(--white);
  border-color: var(--line-strong);
  color: var(--ink);
}
.button.secondary:hover {
  background: var(--lime);
  border-color: var(--lime);
}
.button.secondary:disabled {
  background: var(--paper);
  border: 1.5px dashed var(--ink-soft);
  color: var(--ink-soft);
  cursor: not-allowed;
  transition: none;
}
.button.sm {
  min-height: 44px;
  padding: 0 16px;
}
/* Enlaces con apariencia de botón deshabilitado mientras cargan datos (no
   pueden usar :disabled, que solo existe para <button>/<input>). */
a.button[aria-disabled='true'] {
  background: var(--paper);
  border: 1.5px dashed var(--ink-soft);
  color: var(--ink-soft);
  cursor: not-allowed;
  pointer-events: none;
  transition: none;
}
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  border: 0;
  border-bottom: 2px solid var(--blue);
  background: none;
  padding: 0;
  cursor: pointer;
  transition: background-color 120ms linear;
}
.text-link:hover {
  background: var(--lime);
}
.text-link:disabled {
  color: var(--ink-soft);
  border-bottom-color: var(--ink-soft);
  cursor: not-allowed;
}
.text-link:disabled:hover {
  background: none;
}
.specs {
  display: flex;
  margin: 24px 0 0;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
}
.specs > div {
  padding: 10px 16px;
  border-left: 1px solid var(--line);
}
.specs > div:first-child {
  border-left: 0;
}
.specs dt {
  margin: 0 0 2px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.specs dd {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  color: var(--ink);
}
.studio-section {
  padding: 58px 0;
}
.studio-page .section-heading {
  margin-bottom: 24px;
}
.studio-page .section-heading h2 {
  font-size: 30px;
  max-width: 530px;
}
.section-lead {
  margin: 8px 0 0;
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 530px;
  line-height: 1.6;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.category-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: white;
}
.category-card:hover .category-info {
  background: var(--lime-tint);
}
.card-meta {
  margin: 0;
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}
.card-meta span {
  color: var(--blue);
  font-weight: 700;
}
.product-image {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background-color: var(--stage);
  border-bottom: 1px solid var(--line-strong);
  position: relative;
}
.product-image img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}
.category-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.category-info {
  padding: 20px;
  transition: background-color 120ms linear;
}
.category-info h3 {
  font-size: 20px;
  margin: 0 0 8px;
  display: flex;
  justify-content: space-between;
}
.category-info h3 span {
  font-size: 18px;
  color: var(--blue);
}
.category-info p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
}
.image-disclaimer {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.65;
  margin: 17px 0 0;
}
/* Portada: Hazlo tan tú como quieras + Cómo funciona (pages/index.md §4A, landing-copy-tweaks) */
.creative-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    'copy play'
    'steps steps';
  gap: 32px 48px;
  align-items: center;
  margin: 0 0 40px;
  background-color: var(--blue);
  background-image:
    linear-gradient(rgb(255 255 255 / 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.08) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  border-radius: var(--radius);
  padding: 48px;
  color: var(--white);
}
.creative-callout .eyebrow {
  color: var(--lime);
}
.creative-callout .eyebrow::before {
  color: var(--on-blue-soft);
}
.creative-callout h2 {
  font-size: 38px;
  line-height: 1.16;
  letter-spacing: -1px;
}
.creative-callout-copy {
  grid-area: copy;
}
.creative-callout-copy > p:not(.eyebrow) {
  font-size: 16px;
  line-height: 1.7;
  max-width: 480px;
  color: var(--on-blue-soft);
  margin: 16px 0 0;
}
.creative-callout a:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  box-shadow: none;
}
.light {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}
.light:hover {
  background: var(--white);
  border-color: var(--white);
}
.type-play {
  grid-area: play;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 24px;
  overflow: hidden;
}
.type-play > span {
  display: block;
  line-height: 1.3;
}
.script-word {
  font-family: Pacifico;
  font-size: 46px;
  color: var(--white);
  transform: rotate(-7deg);
}
.pixel-word {
  font-family: 'Jersey 10';
  font-weight: 400;
  font-size: 60px;
  color: var(--lime);
  transform: rotate(4deg);
}
.block-word {
  font-family: 'Lilita One';
  font-style: italic;
  font-size: 61px;
  color: var(--white);
  transform: rotate(-5deg);
}
.type-play small {
  flex-basis: 100%;
  text-align: center;
  font-size: 10px;
  letter-spacing: 2px;
  margin-top: 8px;
  color: var(--on-blue-soft);
}
/* Portada: color callout compacto con muestras reales (pages/index.md §7, landing-copy-tweaks) */
.color-callout {
  display: grid;
  grid-template-columns: minmax(0, 720px) 260px;
  justify-content: start;
  grid-template-areas:
    'copy spools'
    'strip spools'
    'link spools';
  column-gap: 56px;
  row-gap: 0;
  align-items: center;
  padding: 40px 0;
}
.color-callout-copy {
  grid-area: copy;
}
.color-callout h2 {
  font-size: 34px;
  letter-spacing: -1px;
}
.color-callout p:not(.eyebrow) {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 480px;
  margin: 12px 0 0;
}
.color-strip {
  grid-area: strip;
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 8px;
  max-width: 720px;
}
.color-strip li {
  aspect-ratio: 1;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}
.color-strip li.skeleton {
  border-color: transparent;
}
.color-strip-more {
  display: grid;
  place-items: center;
  background: var(--white);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.color-callout .text-link {
  grid-area: link;
  justify-self: start;
  margin-top: 20px;
}
.color-spools {
  grid-area: spools;
  display: block;
  justify-self: start;
  width: 260px;
  max-width: 100%;
  height: auto;
}
@media (max-width: 900px) {
  .color-callout {
    grid-template-columns: minmax(0, 1fr) 160px;
    justify-content: stretch;
    grid-template-areas:
      'copy spools'
      'strip strip'
      'link link';
    column-gap: 24px;
  }
  .color-spools {
    width: 160px;
  }
}
@media (max-width: 680px) {
  .color-callout {
    grid-template-columns: minmax(0, 1fr) 112px;
    column-gap: 12px;
    align-items: start;
    padding: 32px 0;
  }
  .color-callout h2 {
    font-size: 28px;
  }
  .color-strip {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    max-width: 440px;
    margin-top: 20px;
  }
  .color-callout .text-link {
    margin-top: 16px;
  }
  .color-spools {
    width: 112px;
  }
}
.studio-footer {
  width: 100%;
  background-color: var(--blue);
  background-image:
    linear-gradient(rgb(255 255 255 / 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.08) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  padding: 40px 5% 24px;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  align-items: start;
  gap: 26px;
}
.studio-footer .brand-chile {
  height: 56px;
}
.studio-footer p {
  margin: 0;
  text-align: left;
  font-size: 14px;
  color: var(--on-blue-soft);
}
.studio-footer nav {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
}
.studio-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--white);
}
.studio-footer nav a::before {
  content: '→ ';
  color: var(--lime);
}
.studio-footer nav a:hover {
  color: var(--lime);
}
.studio-footer a:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  box-shadow: none;
}
.studio-footer small {
  grid-column: 1/-1;
  padding-top: 16px;
  border-top: 1px solid rgb(255 255 255 / 0.3);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--on-blue-soft);
}
.studio-content {
  padding-top: 46px !important;
  padding-bottom: 64px !important;
}
.page-intro {
  margin-bottom: 30px;
  max-width: 720px;
}
.page-intro p:last-child {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.studio-page .page-intro h1 {
  font-size: 52px;
}
.catalog-note {
  background: var(--blue-tint);
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 17px 21px;
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 14px;
  line-height: 1.6;
}
.catalog-note b {
  white-space: nowrap;
  color: var(--ink);
}
.catalog-note span {
  color: var(--ink-soft);
}
.catalog-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 28px 0 18px;
}
.catalog-filters button {
  border: 1px solid var(--line-strong);
  padding: 11px 21px;
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  min-height: 44px;
  color: var(--ink);
}
.catalog-filters button.selected {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--lime);
}
.catalog-filters[aria-disabled='true'] button {
  pointer-events: none;
}
.catalog-filters[aria-disabled='true'] button:not(.selected) {
  border-style: dashed;
  color: var(--ink-soft);
}
.catalog-count {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px;
}
.catalog-card {
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  overflow: hidden;
  background: white;
}
.catalog-card[hidden] {
  display: none;
}
.catalog-card .product-image {
  aspect-ratio: 1.35;
}
.catalog-card .product-image {
  background-size: 200% auto;
}
.catalog-card .product-image > span {
  position: absolute;
  top: 18px;
  left: 18px;
  background: var(--white);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  letter-spacing: 1px;
  font-weight: 900;
}
.catalog-card-body {
  padding: 26px;
}
.catalog-card h2 {
  font-size: 25px;
}
.catalog-card p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
  max-width: 440px;
  margin: 12px 0 18px;
}
.color-workspace {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 35px;
  align-items: start;
}
.color-workspace .catalog-note {
  display: block;
}
.color-workspace .catalog-note b {
  display: block;
  margin-bottom: 5px;
}
.palette-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.palette-card {
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 0;
  text-align: left;
  color: var(--ink);
}
.palette-card.selected {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}
.palette-sample {
  display: block;
  height: 112px;
  border-bottom: 1px solid var(--line);
}
.palette-card > span:last-child {
  display: block;
  padding: 13px;
  font-size: 14px;
  font-weight: 800;
}
.palette-card small {
  display: block;
  font-size: 11px;
  color: var(--ink-soft);
  font-weight: 600;
  margin-top: 4px;
}

/* Estados de datos en vivo: skeleton, barra indeterminada y bloque de
   error/vacío (design-system/3dimensional/pages/estados-datos.md,
   MASTER §6.16-6.17). Compartidos por las páginas que leen datos de Supabase. */
.skeleton {
  background: var(--stage);
  border-radius: var(--radius-sm);
}
@media (prefers-reduced-motion: no-preference) {
  .skeleton {
    animation: skeleton-pulse 1.2s ease-in-out infinite alternate;
  }
}
@keyframes skeleton-pulse {
  from {
    opacity: 1;
  }
  to {
    opacity: 0.55;
  }
}
.skeleton-line {
  display: inline-block;
  height: 1em;
  vertical-align: middle;
}
.skeleton-w-2ch {
  width: 2ch;
}
.skeleton-w-6ch {
  width: 6ch;
}
.skeleton-w-8ch {
  width: 8ch;
}
.skeleton-w-9ch {
  width: 9ch;
}
.skeleton-w-10ch {
  width: 10ch;
}
.skeleton-w-14ch {
  width: 14ch;
}
.skeleton-w-20ch {
  width: 20ch;
}
.skeleton-chip {
  display: inline-block;
  width: 90px;
  min-height: 44px;
}
.skeleton-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 13px;
}
.progress-indeterminate {
  position: relative;
  height: 4px;
  background: var(--stage);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.progress-indeterminate::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 30%;
  background: var(--blue);
}
@media (prefers-reduced-motion: no-preference) {
  .progress-indeterminate::after {
    animation: progress-slide 1.2s linear infinite;
  }
}
@keyframes progress-slide {
  from {
    left: -30%;
  }
  to {
    left: 100%;
  }
}
.data-error,
.data-empty {
  max-width: 560px;
  margin: 0 auto;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.data-error {
  border-left: 4px solid var(--danger-text);
}
.data-error-label {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--danger-text);
}
.data-error h2 {
  margin: 0 0 8px;
  font-size: 20px;
}
.data-error p:not(.data-error-label),
.data-empty p {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 16px;
}
.data-error .button:last-child,
.data-empty .button:last-child {
  margin-bottom: 0;
}
.data-empty p:last-child {
  margin-bottom: 0;
}
.color-workspace > .data-error,
.color-workspace > .data-empty {
  grid-column: 1 / -1;
}
.data-error p.data-error-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}
.stage-error {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: 360px;
  max-height: 100%;
  overflow: auto;
}
.combination {
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 25px;
  position: sticky;
  top: 20px;
}
.combination-preview {
  height: 160px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--stage);
}
.combination-preview > span {
  font-family: Pacifico;
  font-size: 48px;
  line-height: 1.3;
  padding: 8px 25px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  transform: rotate(-5deg);
}
.combination-rows {
  display: grid;
  gap: 8px;
  margin: 24px 0;
}
.combination-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.combination-row-label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  color: var(--ink-soft);
}
.combination-row-value {
  font-weight: 800;
  text-align: right;
  max-width: 70%;
}
.combination-row.selected {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--lime);
}
.combination-row.selected .combination-row-label {
  color: var(--lime);
}
.combination .button {
  width: 100%;
  font-size: 13px;
  padding: 15px;
}
.personalizer-page main {
  padding-top: 24px;
}
@media (max-width: 1000px) {
  .hero {
    column-gap: 30px;
  }
  .hero-actions {
    gap: 16px;
  }
  .studio-page h1 {
    font-size: 48px;
  }
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .studio-footer {
    padding: 32px 40px 20px;
  }
  .color-workspace {
    grid-template-columns: 1fr 300px;
    gap: 20px;
  }
}
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-template-areas: 'intro' 'offer' 'bed';
    row-gap: 24px;
  }
  .hero-description {
    margin: 0;
  }
  /* Una columna: el h1 ("Tus ideas" / "en otra dimensión.") queda en 2 líneas. */
  .studio-page .hero h1 {
    font-size: clamp(32px, 10.2vw, 48px);
  }
}
/* ≤ 800px: una fila con el logo y el botón Menú (pages/nav-menu.md §4.2). */
@media (max-width: 800px) {
  .studio-header,
  .personalizer-page .studio-header {
    height: auto;
    min-height: 64px;
    padding: 10px 5%;
    flex-wrap: nowrap;
    gap: 12px;
  }
}
@media (max-width: 680px) {
  .studio-header,
  .personalizer-page .studio-header {
    padding: 10px 20px;
  }
  .nav-menu-list {
    padding: 8px 20px 16px;
  }
  .studio-page main {
    padding-left: 20px;
    padding-right: 20px;
  }
  .hero {
    padding: 32px 0 36px;
  }
  .studio-page h1 {
    font-size: 47px;
    letter-spacing: -1.8px;
  }
  .hero-description {
    font-size: 16px;
    line-height: 1.65;
    margin: 0;
  }
  .hero-actions .button {
    padding: 14px 17px;
    font-size: 14px;
  }
  .studio-section {
    padding: 35px 0;
  }
  .studio-page .section-heading {
    display: block;
  }
  .studio-page .section-heading h2 {
    font-size: 26px;
    margin-bottom: 16px;
  }
  .category-grid {
    gap: 12px;
  }
  .category-info {
    padding: 14px;
  }
  .category-info h3 {
    font-size: 18px;
  }
  .category-info p {
    font-size: 12px;
  }
  .studio-footer {
    grid-template-columns: 1fr 1fr;
    gap: 23px;
    padding: 24px 20px 18px;
  }
  .studio-footer .brand-chile {
    height: 44px;
  }
  .studio-footer p {
    width: auto;
    font-size: 12px;
  }
  .studio-footer nav {
    grid-column: 1/-1;
    justify-content: flex-start;
  }
  .studio-footer small {
    font-size: 11px;
  }
  .studio-content {
    padding-top: 30px !important;
    padding-bottom: 38px !important;
  }
  .studio-page .page-intro h1 {
    font-size: 39px;
  }
  .page-intro p:last-child {
    font-size: 15px;
  }
  .catalog-note {
    display: block;
    padding: 15px;
    font-size: 13px;
  }
  .catalog-note b {
    display: block;
    margin-bottom: 5px;
  }
  .catalog-filters {
    gap: 8px;
    margin-top: 22px;
  }
  .catalog-filters button {
    font-size: 13px;
    padding: 10px 16px;
  }
  .catalog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .catalog-card-body {
    padding: 21px;
  }
  .color-workspace {
    display: flex;
    flex-direction: column;
  }
  .color-workspace > section {
    width: 100%;
  }
  .color-workspace > .data-error,
  .color-workspace > .data-empty {
    width: 100%;
  }
  .palette-grid {
    gap: 12px;
  }
  .palette-sample {
    height: 88px;
  }
  .palette-card > span:last-child {
    font-size: 13px;
    padding: 11px;
  }
  .combination {
    position: static;
    width: 100%;
    margin-top: 10px;
  }
  /* Visor sticky compacto (mismo patrón que Clickers): la vista previa acompaña al desplazarse por
     estilos y colores. Canvas 5:2 (máx. 170px) + fila Relieve/Frontal/Reiniciar = ≤ 235px.
     --viewer-sticky es esa altura más holgura: separa del visor al enfocar controles. */
  .personalizer-page #panel-tags {
    --viewer-sticky: 250px;
  }
  .personalizer-page #panel-tags .viewer {
    position: sticky;
    top: 0;
    z-index: 5;
    height: auto;
    grid-template-rows: auto auto;
    background: var(--stage);
  }
  .personalizer-page #panel-tags .viewer-top,
  .personalizer-page #panel-tags .preview-foot {
    display: none;
  }
  .personalizer-page #panel-tags .canvas-wrap {
    height: auto;
    max-height: 170px;
    aspect-ratio: 5 / 2;
  }
  /* El aviso de error (absoluto, con scroll propio) necesita más que 130px de canvas. */
  .personalizer-page #panel-tags .canvas-wrap:has(#colors-error:not([hidden])) {
    max-height: none;
    aspect-ratio: auto;
    min-height: 200px;
  }
  .personalizer-page #panel-tags .controls :is(input, button, select, a),
  .personalizer-page #panel-tags .controls > * {
    scroll-margin-top: var(--viewer-sticky);
  }
  .personalizer-page main {
    padding-top: 20px;
  }
  .card-meta {
    display: none;
  }
}
@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .button {
    width: 100%;
    justify-content: center;
  }
  .specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .specs > div {
    border-top: 1px solid var(--line);
  }
  .specs > div:first-child {
    grid-column: 1 / -1;
    border-top: 0;
  }
  .specs > div:nth-child(2) {
    border-left: 0;
  }
}
.catalog-card .product-image {
  aspect-ratio: 1;
  background-size: 200% 200%;
}

.palette-card[hidden] {
  display: none;
}
.family-filters {
  gap: 7px;
  margin: 14px 0;
}
.family-filters button {
  font-size: 12px;
  padding: 8px 12px;
  min-height: 44px;
}
.palette-card:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.combination-preview #color-word b {
  font-weight: 400;
  background-clip: text !important;
  -webkit-background-clip: text !important;
  color: transparent;
}
.personalizer-page .swatches {
  flex-wrap: wrap;
  gap: 10px;
}
.personalizer-page .swatch {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  color: var(--check);
  min-width: 44px;
  min-height: 44px;
}
.personalizer-page .swatch[data-text='white'] {
  text-shadow: var(--shadow-text);
}
.personalizer-page .swatch[data-text='plate'] .swatch-num {
  background: var(--white);
  color: var(--ink);
  border-radius: 999px;
  padding: 1px 6px;
}
.personalizer-page .swatch.selected::after {
  content: none;
}
/* Seleccionada: contorno azul fuera y doble anillo interior (blanco + tinta)
   que se distingue sobre muestras claras, oscuras y azules. */
.personalizer-page .swatch.selected {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  box-shadow:
    inset 0 0 0 2px var(--white),
    inset 0 0 0 3px var(--ink);
}
/* El anillo interior de .selected reemplaza el box-shadow global de :focus-visible:
   se vuelve a sumar el halo para que foco y selección se distingan. */
.personalizer-page .swatch.selected:focus-visible {
  box-shadow:
    inset 0 0 0 2px var(--white),
    inset 0 0 0 3px var(--ink),
    0 0 0 5px var(--lime);
}
@media (max-width: 680px) {
  .palette-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .color-workspace .combination {
    order: -1;
    padding: 18px;
    margin: 0 0 12px;
  }
  .combination-preview {
    height: 95px;
  }
  .combination-preview > span {
    font-size: 35px;
  }
  .combination-rows {
    margin: 14px 0;
  }
  .combination .eyebrow {
    margin-bottom: 6px;
  }
  .palette-sample {
    height: 100px;
  }
}
/* Individual product gallery */
.catalog-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.studio-page .catalog-intro h1 {
  font-size: 44px;
  letter-spacing: -1.5px;
}
.catalog-intro p:not(.eyebrow) {
  font-size: 16px;
  color: var(--ink-soft);
  margin: 15px 0 0;
}
.reference-label {
  font-size: 12px;
  white-space: nowrap;
  padding: 9px 13px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
}
.product-catalog .catalog-filters {
  margin-top: 28px;
}
.catalog-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 0 18px;
}
.catalog-meta p {
  margin: 0;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.products-grid[hidden] {
  display: none;
}
.piece-card {
  border: 1px solid var(--line-strong);
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
}
.piece-card[hidden] {
  display: none;
}
.category-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: var(--ink-soft);
}
.category-empty p {
  margin: 0 0 10px;
}
.piece-open {
  width: 100%;
  display: block;
  border: 0;
  padding: 0;
  background: none;
  text-align: left;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.piece-open:hover .piece-link {
  color: var(--blue);
  text-decoration: underline;
}
.piece-open:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: -4px;
  border-radius: var(--radius);
}
.piece-image {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line-strong);
}
.piece-visual {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  background-color: var(--stage);
}
.photo-visual {
  object-fit: cover;
}
.tag-visual {
  object-fit: contain;
}
.piece-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 800;
}
.piece-copy {
  padding: 22px;
}
.piece-copy h2 {
  font-size: 20px;
  line-height: 1.25;
  margin: 0;
}
.piece-copy p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 10px 0 17px;
  min-height: 44px;
}
.piece-link {
  font-size: 14px;
  font-weight: 900;
  color: var(--blue);
}
.dialog-open {
  overflow: hidden;
}
#product-dialog {
  max-width: 980px;
  width: calc(100% - 48px);
  max-height: 90dvh;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  box-shadow: var(--shadow-dialog);
}
#product-dialog::backdrop {
  background: var(--scrim);
  backdrop-filter: blur(5px);
}
.dialog-close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
  z-index: 1;
  font-size: 28px;
  cursor: pointer;
}
.dialog-close:hover {
  background: var(--lime);
}
.dialog-close:active {
  transform: translateY(1px);
}
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}
.detail-copy {
  padding: 45px 32px 30px;
}
.detail-copy h2 {
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.7px;
  margin: 12px 0 18px;
}
.detail-copy
  > p:not(.eyebrow):not(.image-disclaimer):not(.quote-note):not(.detail-price) {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.detail-copy > .detail-price {
  margin: -8px 0 16px;
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.detail-copy > .detail-price[hidden] {
  display: none;
}
.detail-price-prefix {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  vertical-align: middle;
}
.detail-copy h3 {
  font-size: 16px;
  margin: 24px 0 10px;
}
.detail-copy ul {
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}
.detail-palette {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 20px;
}
.detail-palette p {
  font-size: 14px;
}
.detail-palette #detail-colors {
  display: flex;
  gap: 9px;
  margin-bottom: 12px;
}
.detail-palette span {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}
.detail-copy > .button {
  margin-top: 25px;
  width: 100%;
  font-size: 14px;
}
.detail-copy > .button[hidden],
.detail-copy > .quote-note[hidden] {
  display: none;
}
.detail-copy > .button.whatsapp {
  margin-top: 25px;
}
.detail-copy > .quote-note {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 10px 0 0;
}
#detail-visual {
  position: sticky;
  top: 0;
  background: var(--stage);
}
#detail-visual .piece-visual {
  aspect-ratio: 1;
}
/* Carrusel de la ficha (catalogo-galeria.md §1.3) */
.photo-carousel-stage {
  position: relative;
}
.photo-carousel-track {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.photo-carousel-track::-webkit-scrollbar {
  display: none;
}
.photo-carousel-track > li {
  flex: none;
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.photo-carousel-arrow {
  position: absolute;
  top: calc(50% - 22px);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}
.photo-carousel-arrow.is-prev {
  left: 8px;
}
.photo-carousel-arrow.is-next {
  right: 8px;
}
.photo-carousel-arrow:active {
  transform: translateY(1px);
}
.photo-carousel-arrow[aria-disabled='true'] {
  color: var(--ink-soft);
  background: var(--paper);
  border: 1.5px dashed var(--ink-soft);
  cursor: not-allowed;
}
.photo-carousel-dots {
  display: flex;
  justify-content: center;
  background: var(--white);
  border-top: 1px solid var(--line-strong);
}
.photo-carousel-dots button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
}
.photo-carousel-dots button::before {
  content: '';
  width: 12px;
  height: 12px;
  box-sizing: border-box;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-sm);
  background: transparent;
}
.photo-carousel-dots button[aria-current='true']::before {
  background: var(--ink);
}
@media (hover: hover) {
  .photo-carousel-arrow:not([aria-disabled='true']):hover {
    background: var(--lime);
  }
  .photo-carousel-dots button:not([aria-current='true']):hover::before {
    background: var(--lime);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .photo-carousel-track {
    scroll-behavior: smooth;
  }
}
@media (max-width: 950px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .catalog-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }
  .detail-copy {
    padding: 42px 24px 24px;
  }
}
@media (max-width: 680px) {
  .studio-page .catalog-intro h1 {
    font-size: 35px;
    letter-spacing: -1px;
  }
  .catalog-intro .eyebrow {
    font-size: 12px;
  }
  .catalog-intro {
    gap: 14px;
  }
  .catalog-meta p:last-child {
    display: none;
  }
  .products-grid {
    gap: 14px;
  }
  .piece-copy {
    padding: 14px;
  }
  .piece-copy h2 {
    font-size: 17px;
  }
  .piece-copy p {
    font-size: 14px;
    min-height: 66px;
    margin: 8px 0 12px;
  }
  .piece-badge {
    font-size: 12px;
    top: 9px;
    left: 9px;
    padding: 5px 9px;
  }
  .piece-link {
    font-size: 14px;
  }
  .product-catalog .catalog-filters {
    gap: 6px;
  }
  .product-catalog .catalog-filters button {
    padding: 10px 13px;
    min-height: 44px;
  }
  .product-detail {
    grid-template-columns: 1fr;
  }
  #product-dialog {
    width: calc(100% - 24px);
    max-height: 92dvh;
  }
  #detail-visual {
    position: static;
  }
  #detail-visual .piece-visual {
    max-height: 340px;
    aspect-ratio: 1;
  }
  .detail-copy {
    padding: 24px;
  }
  .detail-copy h2 {
    font-size: 27px;
  }
}
/* 1 columna ≤ 480px: a 390px las 2 columnas dejaban tarjetas de 168px con título a 2 líneas y
   foto de 166px; a 1 columna la tarjeta mide ~350px y la primera cabe entera en pantalla. */
@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .piece-copy h2 {
    font-size: 18px;
  }
  .piece-copy p {
    min-height: 0;
  }
}

.custom-design {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 38px 40px;
  margin: 0 0 40px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--lime-tint);
}
.custom-design h2 {
  font-size: 34px;
  line-height: 1.16;
  letter-spacing: -0.8px;
  margin: 0;
}
.custom-design h2 span {
  color: var(--blue);
}
.custom-design-copy > p:not(.eyebrow) {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 18px 0 0;
  max-width: 510px;
}
.custom-design-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}
.custom-design-steps li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}
.custom-step-number {
  flex: none;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--blue);
}
.custom-design-steps h3 {
  font-size: 16px;
  margin: 0 0 4px;
}
.custom-design-steps p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}
.custom-design .eyebrow {
  font-size: 12px;
}
.custom-design-cta {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line-strong);
}
.custom-design-cta p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
  max-width: 560px;
}
.custom-design-cta .button.whatsapp,
.wholesale-actions .button.whatsapp {
  width: auto;
  margin-top: 0;
  flex: none;
}
/* mayoreo.html: "Cómo pedir" sin pasos (pages/nav-menu.md §5). */
.custom-design--solo .custom-design-cta {
  grid-column: auto;
  align-self: stretch;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  padding: 0 0 0 40px;
  border-top: 0;
  border-left: 1px solid var(--line-strong);
}
@media (max-width: 1000px) {
  .custom-design--solo {
    grid-template-columns: 1fr;
    row-gap: 28px;
  }
  .custom-design--solo .custom-design-copy > p:not(.eyebrow) {
    max-width: 640px;
  }
  .custom-design--solo .custom-design-cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 28px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line-strong);
  }
}
@media (max-width: 900px) {
  .custom-design {
    gap: 30px;
    padding: 30px;
  }
  .custom-design h2 {
    font-size: 30px;
  }
}
@media (max-width: 680px) {
  .custom-design {
    grid-template-columns: 1fr;
    padding: 25px;
    gap: 25px;
    margin-bottom: 30px;
  }
  .custom-design h2 {
    font-size: 29px;
    letter-spacing: -0.6px;
  }
  .custom-design-steps {
    gap: 18px;
  }
  .custom-design-cta {
    padding-top: 22px;
  }
  .custom-design--solo .custom-design-cta {
    padding-top: 22px;
  }
  .custom-design-cta .button.whatsapp,
  .wholesale-actions .button.whatsapp {
    width: 100%;
  }
}

/* Pestañas (MASTER §6.19) */
.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 24px;
  background: var(--white);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
}
.tabs [role='tab'] {
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.tabs [role='tab']:not([aria-selected='true']):hover {
  background: var(--paper);
}
.tabs [role='tab'][aria-selected='true'] {
  background: var(--ink);
  color: var(--lime);
}
.tabs [role='tab']:active {
  transform: translateY(1px);
}
/* Hasta 1000 px: seis pestañas en dos filas con el nombre completo y sin deslizar (Tags · Clickers · Navidad /
   Sello en relieve · Llanta · Organizador). Rejilla de 12 columnas: la primera fila son tres pestañas de 4 y la
   segunda 5 / 3 / 4, para que "Sello en relieve" (la más larga) tenga casi la mitad.
   La fila única mide 753 px naturales con seis pestañas y la página deja 45 px a cada lado:
   desde 989 px cabe, y con la barra de scroll clásica (15 px) desde 1004; el corte es 1000, así que hasta
   1000 px van en dos filas. */
@media (max-width: 1000px) {
  .tabs {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 2px;
  }
  .tabs [role='tab'] {
    grid-column: span 4;
    min-width: 0;
    padding: 0 4px;
    font-size: 13px;
    letter-spacing: 0;
    text-align: center;
  }
  .tabs [role='tab']:nth-child(4) {
    grid-column: span 5;
  }
  .tabs [role='tab']:nth-child(5) {
    grid-column: span 3;
  }
}
.tab-loading {
  margin: 0;
  padding: 24px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 14px;
  /* Reserva el alto mientras la pestaña diferida carga: el pie queda bajo el pliegue y no
     salta al montarse (CLS al entrar por #hash). Un viewport basta: lo que se mueve fuera de
     pantalla no cuenta. */
  min-height: 100svh;
  box-sizing: border-box;
}

/* Clickers (pages/clickers.md §3, §5) */
.clicker-workspace .viewer {
  height: clamp(300px, calc(100dvh - 240px), 440px);
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.clicker-workspace .controls > * {
  scroll-margin-top: 20px;
}
/* Sello en relieve: el canvas es cuadrado y cabe entero en el visor (pages/personaliza.md). */
#emboss-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
#clicker-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
#clicker-empty {
  position: absolute;
  inset: 0;
  align-content: center;
  text-align: center;
  color: var(--ink-soft);
  padding: 30px;
}
#clicker-empty[hidden] {
  display: none;
}
#clicker-name {
  letter-spacing: 0.08em;
  font-weight: 500;
}
.clicker-quote {
  margin: 0;
}
.clicker-quote > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.clicker-quote > div + div {
  margin-top: 8px;
}
.clicker-quote dt {
  font-size: 14px;
  color: var(--ink-soft);
}
.clicker-quote dd {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}
.clicker-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.clicker-subtotal[hidden] {
  display: none;
}
.clicker-subtotal b {
  font-family: var(--font-mono);
  font-size: 20px;
}
.clicker-subtotal .currency,
.order-currency {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  color: var(--ink-soft);
}
#clicker-submit,
#clicker-download,
#tag-submit,
#download {
  width: 100%;
  justify-content: space-between;
}
#clicker-submit,
#tag-submit {
  margin-top: 24px;
}
#clicker-download,
#download {
  margin-top: 12px;
}
#clicker-cancel,
#tag-cancel {
  display: flex;
  margin: 8px auto 0;
}
#clicker-cancel[hidden],
#tag-cancel[hidden] {
  display: none;
}
.clicker-order,
.tag-order {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 26px;
  margin: 48px 0 48px;
  align-items: start;
}
.order-main {
  container-type: inline-size;
  min-width: 0;
}
.order-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.order-head h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
}
.order-chip,
.editing-chip {
  display: inline-flex;
  padding: 4px 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--ink);
}
.order-chip[hidden] {
  display: none;
}
.editing-chip {
  background: var(--lime);
  font-weight: 700;
}
.clicker-order .data-empty,
.tag-order .data-empty {
  max-width: none;
  margin: 0;
}
.data-empty-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}
.order-list {
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.order-list[hidden] {
  display: none;
}
.order-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) auto;
  grid-template-areas:
    'thumb body price'
    'thumb actions actions';
  gap: 8px 16px;
  align-items: center;
  padding: 16px;
}
.order-row + .order-row {
  border-top: 1px solid var(--line);
}
.order-row.is-editing {
  background: var(--blue-tint);
}
.order-thumb {
  grid-area: thumb;
  display: block;
  width: 160px;
  height: 56px;
  background: var(--stage);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.order-body {
  grid-area: body;
  min-width: 0;
}
.order-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink);
  overflow-wrap: anywhere;
}
/* Las dos líneas de un tag doble van una sobre otra. */
.order-name-line {
  display: block;
}
/* Un tag es una palabra con minúsculas: sin el espaciado de las teclas del clicker (tags-pedido §2.2). */
.tag-order .order-name {
  letter-spacing: 0;
}
.order-style {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
}
.order-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
}
ul.order-colors {
  padding: 0;
  list-style: none;
}
.order-colors .color-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 6px;
  vertical-align: -1px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}
.order-warning {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--danger-text);
}
.order-price {
  grid-area: price;
  align-self: start;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}
/* Desglose bajo el precio de la fila: la columna price es auto y el texto en una línea mide ~215 px,
   así que max-width lo parte en líneas, alineadas a la derecha, para no estrechar el cuerpo. */
.order-price-detail {
  display: block;
  max-width: 14ch;
  margin-left: auto;
  font-weight: 500;
  font-size: 12px;
  color: var(--ink-soft);
  text-align: right;
}
/* Costo por símbolo junto a los botones (solo personaliza), centrado con los botones de 44 px. */
.symbol-keys .symbol-price {
  align-self: center;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  color: var(--ink-soft);
}
.order-actions {
  grid-area: actions;
  display: flex;
  gap: 16px;
}
@container (max-width: 519px) {
  .order-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      'thumb thumb'
      'body price'
      'actions actions';
  }
  .order-thumb {
    width: 100%;
    height: 64px;
  }
  .order-actions {
    justify-content: space-between;
  }
}
.order-summary {
  position: sticky;
  top: 20px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.order-summary p {
  margin: 0;
}
.order-eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  color: var(--ink-soft);
}
.order-total {
  font-size: clamp(32px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.order-total .order-currency {
  font-size: 14px;
  letter-spacing: 0;
}
.order-count,
.order-note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.order-note {
  margin-top: 10px;
}
.clicker-unsaved {
  margin-top: 12px;
  padding: 12px;
  border-left: 4px solid var(--blue);
  background: var(--blue-tint);
  font-size: 13px;
  color: var(--ink);
}
.clicker-unsaved[hidden] {
  display: none;
}
.button.whatsapp {
  width: 100%;
  margin-top: 16px;
  justify-content: space-between;
  background: var(--whatsapp);
  border-color: var(--line-strong);
  color: var(--ink);
}
.button.whatsapp span:nth-child(2) {
  flex: 1;
  text-align: center;
}
.button.whatsapp:not([aria-disabled='true']):hover {
  background: var(--ink);
  color: var(--whatsapp);
}
/* Botón de imágenes del pedido (spec clickers §5.1): secundario, sin verde. */
.button.share-button {
  width: 100%;
  margin-top: 16px;
  justify-content: space-between;
}
.button.share-button[aria-disabled='true']:not([aria-busy='true']) {
  background: var(--paper);
  border: 1.5px dashed var(--ink-soft);
  color: var(--ink-soft);
  cursor: not-allowed;
  transition: none;
}
.button.share-button[aria-busy='true'] {
  cursor: progress;
}
.order-summary .order-note[hidden] {
  display: none;
}
.order-note.is-error {
  color: var(--danger-text);
}
/* Aviso del otro pedido: el link va en su propia línea, no partido entre dos. */
.order-note .text-link {
  display: flex;
  width: fit-content;
}
.button.whatsapp svg {
  width: 20px;
  height: 20px;
  flex: none;
}
@media (max-width: 900px) {
  .clicker-order,
  .tag-order {
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 16px;
  }
}
@media (max-width: 680px) {
  .clicker-workspace .viewer {
    position: sticky;
    top: 0;
    z-index: 5;
    height: auto;
    grid-template-rows: auto auto;
    background: var(--stage);
  }
  .clicker-workspace .viewer-top {
    display: none;
  }
  .clicker-workspace .canvas-wrap {
    height: auto;
    aspect-ratio: 3 / 1;
  }
  /* A 360px "LUNA · 4 letras · $120" + "Visualización ilustrativa" miden 310px y el visor 326px:
     sin wrap el pie se recortaba y ensanchaba el canvas. */
  .clicker-workspace .viewer {
    grid-template-columns: minmax(0, 1fr);
  }
  .emboss-workspace .canvas-wrap {
    aspect-ratio: 2 / 1;
  }
  .clicker-workspace .preview-foot {
    flex-wrap: wrap;
    gap: 2px 12px;
  }
  .clicker-workspace .controls > * {
    scroll-margin-top: 180px;
  }
  .clicker-workspace .swatches {
    gap: 8px;
  }
  .clicker-order,
  .tag-order {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 32px;
  }
  .order-summary {
    position: static;
  }
}
/* Teclado abierto o pantalla baja (≤ 560px de alto): el visor sticky no puede ocupar casi la mitad
   del viewport. Se oculta la fila Relieve/Frontal/Reiniciar y queda solo el canvas (~140px). */
@media (max-width: 680px) and (max-height: 560px) {
  .personalizer-page #panel-tags {
    --viewer-sticky: 170px;
  }
  .personalizer-page #panel-tags .viewer-bottom {
    display: none;
  }
  .personalizer-page #panel-tags .canvas-wrap {
    max-height: 140px;
  }
  .clicker-workspace .viewer-bottom {
    display: none;
  }
  .clicker-workspace .controls > * {
    scroll-margin-top: 150px;
  }
}

/* Portada: landing-sells (pages/index.md §2, §3) */
.hero-intro {
  grid-area: intro;
}
.hero-offer {
  grid-area: offer;
}
.hero-note {
  margin-top: 24px;
  font-size: 13px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-note span {
  font-size: 24px;
  color: var(--blue);
}
/* Portada: cama de impresión del hero (pages/index.md §2) */
.print-bed {
  grid-area: bed;
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 540px;
  margin: 0 auto;
  background-color: var(--blue);
  background-image:
    linear-gradient(rgb(255 255 255 / 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  border: 1px solid var(--ink);
}
.bed-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--lime);
}
.bed-corner--tl {
  top: 12px;
  left: 12px;
  border-right: 0;
  border-bottom: 0;
}
.bed-corner--tr {
  top: 12px;
  right: 12px;
  border-left: 0;
  border-bottom: 0;
}
.bed-corner--bl {
  bottom: 12px;
  left: 12px;
  border-right: 0;
  border-top: 0;
}
.bed-corner--br {
  bottom: 12px;
  right: 12px;
  border-left: 0;
  border-top: 0;
}
.bed-mascot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60%;
  height: auto;
  transform: translate(-50%, -50%);
}
.bed-label {
  position: absolute;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
}
.bed-label--top {
  top: 40px;
  left: 16px;
  color: var(--white);
}
.bed-label--top span {
  color: var(--lime);
}
.bed-label--bottom {
  bottom: 40px;
  right: 16px;
  color: var(--on-blue-soft);
  text-align: right;
}
@media (max-width: 900px) {
  .print-bed {
    max-width: 420px;
    aspect-ratio: 4 / 3;
  }
  .bed-label {
    font-size: 11px;
  }
  .bed-label--top {
    top: 16px;
    left: 40px;
  }
  .bed-label--bottom {
    bottom: 16px;
    right: 40px;
  }
}
.trust-strip {
  background: var(--ink);
  color: var(--white);
}
.trust-strip dl {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  margin: 0;
}
.trust-strip dl > div {
  padding: 20px 24px;
}
.trust-strip dl > div + div {
  border-left: 1px solid var(--ink-soft);
}
.trust-strip dt {
  margin: 0 0 4px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lime);
}
.trust-strip dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  color: var(--white);
}
@media (max-width: 680px) {
  .trust-strip dl {
    grid-template-columns: 1fr;
  }
  .trust-strip dl > div {
    padding: 14px 20px;
  }
  .trust-strip dl > div + div {
    border-left: 0;
    border-top: 1px solid var(--ink-soft);
  }
}

/* Portada: landing-sells (pages/index.md §4.3, §4A) */
.category-info .category-price,
.piece-copy .piece-price {
  display: inline-block;
  margin: 12px 0 0;
  padding: 4px 8px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--lime);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}
.category-info .category-price strong,
.piece-copy .piece-price strong {
  font-weight: 700;
}
/* Tarjeta del catálogo: pisa `.piece-copy p` (min-height y margen de la frase corta). */
.piece-copy .piece-price {
  margin: 10px 0 0;
  min-height: 0;
  font-size: 12px;
  line-height: 1.3;
  color: var(--ink);
}
.how-steps {
  grid-area: steps;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgb(255 255 255 / 0.3);
}
.how-steps li {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 24px 24px 0 0;
}
.how-steps li + li {
  padding-left: 24px;
  border-left: 1px solid rgb(255 255 255 / 0.3);
}
.how-steps .custom-step-number {
  background: var(--lime);
  color: var(--ink);
}
.how-steps h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
  color: var(--white);
}
.how-steps p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--on-blue-soft);
}
@media (max-width: 1000px) {
  .creative-callout {
    gap: 28px 32px;
    padding: 35px;
  }
  .creative-callout h2 {
    font-size: 32px;
  }
}
@media (max-width: 680px) {
  .creative-callout {
    grid-template-columns: 1fr;
    grid-template-areas:
      'copy'
      'play'
      'steps';
    gap: 24px;
    padding: 28px;
    margin-bottom: 30px;
  }
  .creative-callout h2 {
    font-size: 31px;
  }
  .type-play {
    gap: 4px 16px;
  }
  .script-word {
    font-size: 37px;
  }
  .pixel-word {
    font-size: 52px;
  }
  .block-word {
    font-size: 49px;
  }
  .how-steps {
    grid-template-columns: 1fr;
  }
  .how-steps li,
  .how-steps li + li {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 4px 16px;
    padding: 20px 0;
    border-left: 0;
  }
  .how-steps .custom-step-number {
    grid-row: span 2;
  }
  .how-steps li + li {
    border-top: 1px solid rgb(255 255 255 / 0.3);
  }
  .how-steps li:last-child {
    padding-bottom: 0;
  }
}

/* Portada: landing-sells (pages/index.md §7A, §8.1) */
.faq-list {
  display: grid;
  gap: 8px;
  max-width: 860px;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.faq-item summary {
  display: block;
  position: relative;
  list-style: none;
  min-height: 56px;
  padding: 16px 52px 16px 20px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 120ms linear;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: '↓';
  content: '↓' / '';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  color: var(--blue);
}
.faq-item summary:hover {
  background: var(--lime-tint);
}
.faq-item[open] > summary {
  border-radius: 3px 3px 0 0;
}
.faq-item[open] > summary::after {
  transform: translateY(-50%) rotate(180deg);
}
.faq-answer {
  padding: 0 20px 20px;
}
.faq-answer p {
  margin: 0;
  max-width: 640px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.faq-answer .text-link {
  margin-top: 8px;
}
.studio-footer--contact {
  grid-template-areas:
    'brand copy nav'
    'brand contact nav'
    'legal legal legal';
}
@media (min-width: 681px) {
  .studio-footer--contact {
    row-gap: 16px;
  }
}
.studio-footer--contact > .brand {
  grid-area: brand;
}
.studio-footer--contact > p {
  grid-area: copy;
}
.studio-footer--contact > nav {
  grid-area: nav;
}
.studio-footer--contact > address {
  grid-area: contact;
}
.studio-footer--contact > small {
  grid-area: legal;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 20px;
  margin: 0;
  font-style: normal;
}
.footer-contact p {
  flex-basis: 100%;
}
.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 14px;
  color: var(--white);
}
.footer-contact a > span[aria-hidden='true'] {
  color: var(--lime);
}
.footer-contact a:hover {
  color: var(--lime);
}
@media (max-width: 680px) {
  .faq-item summary {
    font-size: 16px;
    padding: 14px 48px 14px 16px;
  }
  .faq-item summary::after {
    right: 16px;
  }
  .faq-answer {
    padding: 0 16px 16px;
  }
  .studio-footer--contact {
    grid-template-areas:
      'brand copy'
      'nav nav'
      'contact contact'
      'legal legal';
  }
}

/* Personaliza: barra de inspiración compacta arriba del visor (pages/personaliza.md, random-near-preview). La regla de deshabilitado vale para todo .button con aria-disabled. */
.inspiration-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.inspiration-bar[hidden] {
  display: none;
}
.inspiration-bar .eyebrow {
  margin: 0;
}
.inspiration-bar-head h2 {
  margin: 2px 0 0;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--ink);
}
.inspiration-bar .button {
  font-size: 14px;
}
.random-actions {
  display: flex;
  gap: 8px;
}
.random-actions .icon {
  flex: none;
}
.button[aria-disabled='true']:not([aria-busy='true']),
.button[aria-disabled='true']:not([aria-busy='true']):hover {
  background: var(--paper);
  border: 1.5px dashed var(--ink-soft);
  color: var(--ink-soft);
  cursor: not-allowed;
  transition: none;
}
.random-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.random-note:empty {
  display: none;
}
.inspiration-bar .random-note {
  flex-basis: 100%;
}
@media (max-width: 680px) {
  .inspiration-bar {
    display: grid;
    gap: 8px;
    padding: 12px;
  }
  .random-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .random-actions .button {
    justify-content: center;
    padding: 0 8px;
  }
}

/* Personaliza: aviso visual "tag agregado" (MASTER §6.21, pages/personaliza.md "random-near-preview" §3). Refuerzo: aria-hidden, no es región viva. */
.order-toast {
  position: fixed;
  left: 24px;
  bottom: 24px;
  max-width: 480px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 4px 16px;
  padding: 8px 8px 8px 16px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 120ms linear,
    transform 120ms linear;
}
.order-toast[hidden] {
  display: none;
}
.order-toast.is-open {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 160ms ease-out,
    transform 160ms ease-out;
}
.order-toast-check {
  margin-right: -10px;
  font: 700 14px/1.4 var(--font-mono);
  color: var(--lime);
}
.order-toast-text {
  flex: 1;
  min-width: 0;
  margin: 0;
  font:
    500 14px/1.4 var(--font-ui),
    'Tag Symbols',
    sans-serif;
}
.order-toast-title {
  white-space: normal;
  overflow-wrap: anywhere;
}
.order-toast-count {
  white-space: nowrap;
}
.order-toast-action {
  flex-shrink: 0;
  white-space: nowrap;
  min-height: 44px;
  padding: 0 8px;
  background: none;
  border: 0;
  font: 700 14px/1.4 var(--font-mono);
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.order-toast-action:active {
  transform: translateY(1px);
}
@media (max-width: 680px) {
  .order-toast {
    left: 16px;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    max-width: none;
  }
  .order-toast-count {
    display: block;
  }
  .order-toast-sep {
    display: none;
  }
}

/* Tag doble (pages/personaliza.md, "tag-doble"): selector Sencillo / Doble con la piel de .shape-options. */
.kind-options,
.variant-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.variant-options[hidden] {
  display: none;
}
.variant-options button {
  text-align: center;
}
.kind-options button,
.variant-options button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  padding: 9px 6px;
}
.kind-options button:hover,
.variant-options button:hover {
  background: var(--paper);
}
.kind-options button.selected,
.variant-options button.selected {
  background: var(--blue-tint);
  border: 1.5px solid var(--blue);
  color: var(--blue);
}
.kind-options small,
.variant-options small {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
}
.kind-options button.selected small,
.variant-options button.selected small {
  color: var(--blue);
}
.kind-options,
.variant-options {
  margin-bottom: 12px;
}
/* La región viva no se oculta con display: none (dejaría de anunciar); vacía, solo pierde su margen. */
#kind-note {
  margin: -4px 0 12px;
}
#kind-note:empty {
  margin: 0;
}
/* El apellido va aparte del nombre; los [hidden] valen aunque la clase fije display. */
.name-field[hidden],
.surname-field[hidden] {
  display: none;
}
.surname-field {
  margin-top: 12px;
}
.field-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 6px;
}

/* Pie común (pages/mayoreo.md §9.1): Mayoreo en el nav y la línea legal. Va después del bloque .studio-footer--contact para ganarle por posición. */
.studio-footer a[aria-current='page'] {
  font-weight: 700;
}
.studio-footer--contact > small {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 24px;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  column-gap: 20px;
}
.footer-legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 12px;
  font-weight: 500;
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-legal a:hover {
  color: var(--lime);
}
@media (min-width: 681px) {
  .studio-footer--contact > nav {
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
  }
}
@media (max-width: 680px) {
  .studio-footer--contact > nav {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    column-gap: 24px;
  }
  .studio-footer--contact > small {
    justify-content: flex-start;
  }
}

/* Mayoreo (pages/mayoreo.md §1–§3): intro, casos de uso y cards de producto en fila en móvil */
.wholesale-intro {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 72px;
}
.studio-page .wholesale-intro h1 {
  font-size: 44px;
  letter-spacing: -1.5px;
  line-height: 1.06;
  font-weight: 700;
  margin: 0;
}
.wholesale-lead {
  max-width: 560px;
  margin: 16px 0 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.wholesale-actions {
  margin-top: 24px;
}
.wholesale-intro .specs {
  margin-top: 24px;
}
.wholesale-figure {
  margin: 0;
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 2;
  background: var(--stage);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.wholesale-figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.wholesale-cases {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.case-card {
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.case-card h3 {
  margin: 16px 20px 8px;
  font-size: 20px;
  font-weight: 700;
}
.case-card p:not(.card-meta) {
  margin: 0 20px 20px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.wholesale-products {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 1000px) {
  .wholesale-intro {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 48px;
  }
  .wholesale-figure {
    max-width: 480px;
  }
  .wholesale-cases {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .wholesale-products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  .wholesale-intro {
    margin-bottom: 40px;
  }
  .studio-page .wholesale-intro h1 {
    font-size: 35px;
    letter-spacing: -1px;
  }
  .wholesale-lead {
    font-size: 16px;
  }
  .wholesale-cases {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .case-card h3 {
    margin-inline: 16px;
  }
  .case-card p:not(.card-meta) {
    margin-inline: 16px;
  }
  .wholesale-products {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .wholesale-products .category-card {
    display: grid;
    grid-template-columns: 104px 1fr;
    grid-template-areas:
      'meta meta'
      'image info';
  }
  .wholesale-products .card-meta {
    grid-area: meta;
  }
  .wholesale-products .product-image {
    grid-area: image;
    aspect-ratio: 1;
    border-bottom: 0;
    border-right: 1px solid var(--line-strong);
  }
  .wholesale-products .category-info {
    grid-area: info;
    padding: 14px;
  }
}

/* Páginas legales (pages/legales.md): documento largo sobre superficie blanca */
.legal-page {
  padding-top: 40px;
  padding-bottom: 72px;
}
.legal-doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 56px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
}
.legal-doc .legal-head {
  display: block;
  height: auto;
  max-width: none;
  padding: 0 0 24px;
  margin: 0 0 24px;
  border-bottom: 1px solid var(--line);
}
.studio-page .legal-head h1 {
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0;
}
.legal-updated {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  margin: 12px 0 0;
}
.legal-summary,
.legal-toc {
  margin-bottom: 40px;
}
.legal-summary {
  margin-bottom: 32px;
  padding: 16px 20px;
  background: var(--blue-tint);
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
}
.legal-summary h2,
.legal-toc h2 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 8px;
}
.legal-summary ul {
  font-size: 15px;
  line-height: 1.6;
  padding-left: 20px;
  margin: 0;
}
.legal-toc ol {
  margin: 0;
  padding-left: 24px;
}
.legal-toc a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-toc a:hover,
.legal-doc section a:hover {
  background: var(--lime);
}
.legal-doc section {
  scroll-margin-top: 24px;
}
.legal-doc section + section {
  margin-top: 40px;
}
.legal-doc section h2 {
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 700;
  margin: 0 0 12px;
}
.legal-doc section h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 24px 0 8px;
}
.legal-doc section p,
.legal-doc section ul,
.legal-doc section ol {
  max-width: 68ch;
  font-size: 16px;
  line-height: 1.7;
}
.legal-doc section p {
  margin: 0 0 12px;
}
.legal-doc section ul,
.legal-doc section ol {
  padding-left: 22px;
  margin: 0 0 12px;
}
.legal-doc section li + li {
  margin-top: 6px;
}
.legal-doc section a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (min-width: 681px) {
  .legal-toc ol {
    columns: 2;
    column-gap: 32px;
  }
}
@media (max-width: 680px) {
  .legal-doc {
    padding: 24px 20px;
  }
}

/* Pestaña Navidad (pages/personaliza.md, "site-products"): reutiliza .workspace, .viewer, .controls,
   .kind-options, .swatches y la lista del pedido; solo suma lo que no existía. */
.navidad-workspace .viewer,
.termos-workspace .viewer,
.organizador-workspace .viewer,
.llanta-workspace .viewer {
  height: clamp(360px, calc(100dvh - 160px), 620px);
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.navidad-workspace .canvas-wrap,
.termos-workspace .canvas-wrap,
.organizador-workspace .canvas-wrap,
.llanta-workspace .canvas-wrap {
  position: relative;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
}
#navidad-preview {
  display: block;
  flex: none;
  position: static;
  width: auto;
  height: auto;
  object-fit: contain;
}
/* El visor del organizador llena el escenario menos la franja del selector de vista: el canvas mide lo
   que se ve (organizador.js le asigna CSS × DPR de píxeles) y la escena se ajusta dentro. */
#organizador-preview {
  display: block;
  position: absolute;
  inset: 0 0 52px;
  width: 100%;
  height: calc(100% - 52px);
}
#navidad-preview[hidden],
#organizador-preview[hidden] {
  display: none;
}
/* Selector de vista del organizador (Diagonal · Frente · Arriba), abajo al centro del visor. */
.view-options {
  position: absolute;
  inset: auto 0 4px;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.view-options[hidden] {
  display: none;
}
.view-options button {
  min-width: 88px;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  padding: 9px 12px;
}
.view-options button:hover {
  background: var(--paper);
}
.view-options button.selected {
  background: var(--blue-tint);
  border: 2px solid var(--blue);
  padding: 8px 11px;
  color: var(--blue);
  font-weight: 700;
}
#navidad-empty,
#termos-empty,
#emboss-empty,
#organizador-empty,
#llanta-empty {
  position: absolute;
  inset: 0;
  align-content: center;
  text-align: center;
  color: var(--ink-soft);
  padding: 30px;
}
#navidad-empty[hidden],
#termos-empty[hidden],
#emboss-empty[hidden],
#organizador-empty[hidden],
#llanta-empty[hidden] {
  display: none;
}
.navidad-workspace .controls > *,
.termos-workspace .controls > *,
.organizador-workspace .controls > *,
.llanta-workspace .controls > * {
  scroll-margin-top: 20px;
}
.choice-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.choice-group[hidden] {
  display: none;
}
/* Radios nativos con la piel de .kind-options; el foco y la selección salen del <input> escondido. */
.kind-options label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  padding: 9px 6px;
  text-align: center;
  cursor: pointer;
}
.kind-options label:hover {
  background: var(--paper);
}
.kind-options label:has(input:checked) {
  background: var(--blue-tint);
  border: 1.5px solid var(--blue);
  color: var(--blue);
}
.kind-options label:has(input:focus-visible) {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--lime);
}
.kind-options label input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.kind-options label b {
  font-weight: 800;
}
.kind-options label small {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
}
.kind-options label:has(input:checked) small {
  color: var(--blue);
}
#navidad-deco-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
/* Tres piezas en una fila; el precio baja a su renglón en 390 px */
#navidad-product {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
#navidad-spin {
  margin: 8px 0 16px;
}
#navidad-spin[hidden] {
  display: none;
}
#navidad-spin[data-state='on'] {
  background: var(--blue-tint);
  border-color: var(--blue);
  color: var(--blue);
}
.names-area {
  display: block;
  width: 100%;
  min-height: 140px;
  padding: 13px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.5;
  resize: vertical;
}
.names-area:focus {
  outline: 0;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--lime);
}
.names-area[aria-invalid='true'] {
  border-color: var(--danger-text);
}
#navidad-notice:empty {
  margin: 0;
}
/* Paso 01 del organizador: el aviso de angostado (1 línea) y las medidas (2 líneas) reservan su alto
   (line-height 1.5 de .hint) para que los pasos siguientes no se muevan al cambiar de estilo o nombre. */
#organizador-notice {
  min-height: 1.5em;
}
#organizador-size {
  min-height: 3em;
}
.style-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.style-chip {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}
.style-chip:hover {
  background: var(--paper);
}
.style-chip:disabled {
  background: var(--paper);
  border: 1px dashed var(--line-strong);
  color: var(--ink-soft);
  cursor: not-allowed;
}
.style-chip.selected {
  background: var(--blue-tint);
  border: 1.5px solid var(--blue);
  color: var(--blue);
}
#navidad-submit,
#termos-submit,
#organizador-submit,
#llanta-submit {
  width: 100%;
  justify-content: space-between;
  margin-top: 24px;
}
#navidad-cancel,
#termos-cancel,
#organizador-cancel,
#llanta-cancel {
  display: flex;
  margin: 8px auto 0;
}
#navidad-cancel[hidden],
#termos-cancel[hidden],
#organizador-cancel[hidden],
#llanta-cancel[hidden] {
  display: none;
}
/* La lista del pedido de las pestañas nuevas: miniaturas cuadradas con la pieza entera, siempre a la
   izquierda (la fila de Tags las pone arriba en cajas angostas). */
.order-thumbs {
  grid-area: thumb;
  display: flex;
  gap: 6px;
  align-self: start;
}
.order-thumbs .order-thumb {
  flex: none;
  width: 96px;
  height: 96px;
  object-fit: contain;
}
.order-row:has(.order-thumbs) {
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    'thumb body price'
    'thumb actions actions';
}
@container (max-width: 519px) {
  .order-row:has(.order-thumbs) {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      'thumb body'
      'thumb price'
      'actions actions';
  }
  .order-row:has(.order-thumbs) .order-price {
    align-self: start;
  }
  .order-row:has(.order-thumbs) .order-price-detail {
    max-width: none;
    margin-left: 0;
    text-align: left;
  }
  .order-row .order-thumbs .order-thumb {
    width: 88px;
    height: 88px;
  }
}
#navidad-style-step > .step {
  margin-top: 24px;
}
.order-others {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.order-others[hidden] {
  display: none;
}
.order-others li {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.order-others .text-link {
  display: flex;
  width: fit-content;
}
@media (max-width: 680px) {
  .navidad-workspace .viewer,
  .termos-workspace .viewer,
  .organizador-workspace .viewer,
  .llanta-workspace .viewer {
    position: sticky;
    top: 0;
    z-index: 5;
    height: clamp(210px, 36svh, 280px);
    grid-template-rows: minmax(0, 1fr);
    background: var(--stage);
  }
  .navidad-workspace .viewer-top,
  .navidad-workspace .preview-foot,
  .termos-workspace .viewer-top,
  .organizador-workspace .viewer-top,
  .llanta-workspace .viewer-top,
  .termos-workspace .preview-foot,
  .organizador-workspace .preview-foot,
  .llanta-workspace .preview-foot {
    display: none;
  }
  .navidad-workspace .controls > *,
  .termos-workspace .controls > *,
  .organizador-workspace .controls > *,
  .llanta-workspace .controls > * {
    scroll-margin-top: 300px;
  }
  .navidad-workspace #navidad-color-groups .swatches,
  .termos-workspace #termos-color-groups .swatches,
  .organizador-workspace #organizador-color-groups .swatches,
  .llanta-workspace #llanta-color-groups .swatches {
    gap: 8px;
  }
}

/* Pestaña Termos: el par de etiquetas lado a lado en el visor; la lista del pedido muestra dos
   miniaturas por fila. */
.pair-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 0;
}
.pair-preview canvas {
  display: block;
  flex: none;
  position: static;
  width: auto;
  height: auto;
}
.pair-preview canvas[hidden] {
  display: none;
}
.termos-workspace .field-label,
.organizador-workspace .field-label,
.llanta-workspace .field-label {
  display: block;
  margin: 12px 0 6px;
}
.termos-workspace .step + .field-label,
.organizador-workspace .step + .field-label,
.llanta-workspace .step + .field-label {
  margin-top: 0;
}
.order-thumbs:has(canvas + canvas) .order-thumb {
  width: 64px;
  height: 72px;
}
@container (max-width: 519px) {
  .order-row .order-thumbs:has(canvas + canvas) .order-thumb {
    width: 56px;
    height: 64px;
  }
}

/* Pestaña Llanta (pages/personaliza.md, "llanta"): la cara en vivo y la imagen fija de ejemplo lado a
   lado en el visor; en celular una debajo de la otra y el visor deja de ser sticky. */
.llanta-preview {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  width: 100%;
  min-height: 0;
  padding: 0 20px;
}
.llanta-preview[hidden] {
  display: none;
}
#llanta-preview {
  display: block;
  position: static;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  justify-self: center;
}
.llanta-photo {
  display: grid;
  gap: 8px;
  margin: 0;
  min-width: 0;
}
.llanta-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.llanta-photo figcaption {
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-soft);
}
.llanta-workspace .field-label {
  display: block;
  margin: 12px 0 6px;
}
.llanta-workspace .step + .field-label {
  margin-top: 0;
}
.llanta-workspace .field-error {
  color: var(--danger-text);
  font-weight: 500;
}
.llanta-workspace .field-error:empty {
  display: none;
}
#llanta-size-options .kind-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
#llanta-size-options label {
  min-height: 56px;
}
/* Tres dibujos en una fila; el pie ("Bloques y canales") baja a dos líneas en 320 px sin cortarse. */
#llanta-tread-options .kind-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
#llanta-tread-options label {
  min-height: 56px;
  padding-inline: 4px;
}
#llanta-height-note {
  margin-top: 8px;
}
.llanta-order .order-thumbs .order-thumb {
  background: var(--stage);
}
/* Escritorio: el alto del visor manda. El lado del canvas (y el de la foto, menos su pie) nunca pasa del
   alto del .canvas-wrap, que es contenedor de tamaño; así una ventana baja no recorta la llanta. Entre
   681 y 1199 px la foto de ejemplo se oculta para que el canvas tenga todo el ancho. */
@media (min-width: 681px) {
  .llanta-workspace .canvas-wrap {
    container-type: size;
  }
  .llanta-preview {
    height: 100%;
  }
  #llanta-preview {
    width: min(100%, 100cqh);
  }
  .llanta-photo img {
    width: min(100%, calc(100cqh - 64px));
    justify-self: center;
  }
}
@media (min-width: 681px) and (max-width: 1199px) {
  .llanta-preview {
    grid-template-columns: minmax(0, 1fr);
  }
  .llanta-photo {
    display: none;
  }
}
@media (max-width: 680px) {
  .llanta-workspace .viewer {
    position: static;
    height: auto;
    grid-template-rows: auto;
  }
  .llanta-workspace .canvas-wrap {
    overflow: visible;
    padding: 14px 0;
  }
  .llanta-preview {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 12px;
    padding: 0 12px;
  }
  #llanta-preview {
    width: min(100%, 340px);
  }
  .llanta-photo {
    grid-template-columns: 120px minmax(0, 1fr);
    align-items: center;
    width: 100%;
  }
  .llanta-workspace .controls > * {
    scroll-margin-top: 20px;
  }
}

/* Portada: landing-full-catalog (pages/index.md §2, §3A, §4B, §7A) */
.hero-actions .button[hidden],
.season-block[hidden] {
  display: none;
}
.hero-catalog-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.season-grid,
.create-grid {
  display: grid;
  gap: 18px;
}
.season-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.create-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  container-type: inline-size;
}
.season-card,
.create-card {
  display: flex;
  flex-direction: column;
}
.season-card .category-info,
.create-card .category-info {
  flex: 1;
}
.season-image,
.create-image {
  background: var(--stage);
  overflow: hidden;
  border-bottom: 1px solid var(--line-strong);
}
.season-image {
  aspect-ratio: 1;
}
.season-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.create-image {
  aspect-ratio: 4 / 3;
}
.create-card--wide {
  grid-column: span 2;
}
.create-card--wide .create-image {
  aspect-ratio: 8 / 3;
  /* Mismo alto que la imagen 4:3 de una columna (4 columnas, hueco de 18px). */
  height: calc((100cqw - 54px) * 0.1875 - 1.5px);
}
.create-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.category-info .season-price-note {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-soft);
}
.faq-answer .faq-prices {
  margin: 8px 0 12px;
  padding-left: 20px;
  max-width: 640px;
}
.faq-answer .faq-prices li {
  margin-top: 4px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.faq-answer .faq-prices strong {
  color: var(--ink);
  font-weight: 700;
}
@media (max-width: 1000px) {
  .create-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .create-card--wide .create-image {
    height: calc((100cqw - 18px) * 0.375 - 1.5px);
  }
}
@media (max-width: 680px) {
  .season-grid,
  .create-grid {
    gap: 12px;
  }
  .season-grid {
    grid-template-columns: 1fr;
  }
  .create-card--wide .create-image {
    height: calc((100cqw - 12px) * 0.375 - 1.5px);
  }
  .season-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: center;
  }
  .season-image {
    width: 112px;
    height: 112px;
    border-bottom: 0;
  }
  .season-card .category-info {
    padding: 12px 14px;
  }
  .faq-answer .faq-prices {
    padding-left: 18px;
  }
}
@media (max-width: 480px) {
  .hero-actions {
    flex-direction: row;
    align-items: stretch;
    gap: 10px;
  }
  .hero-actions .button {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
    padding: 14px 8px;
    gap: 6px;
  }
  .hero-actions .hero-catalog-link {
    flex: 1 0 100%;
  }
}
