    @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&display=swap');

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

    :root {
      --ig:       linear-gradient(135deg, #f9ce34 0%, #ee2a7b 50%, #6228d7 100%);
      --ig-wide:  linear-gradient(135deg, #f9ce34 0%, #ee2a7b 35%, #6228d7 65%, #ee2a7b 85%, #f9ce34 100%);
      --bg:       #fdf9ff;
      --card:     rgba(255, 255, 255, 0.82);
      --text:     #18122b;
      --sub:      #6e5f96;
      --muted:    #b0a5cc;
      --border:   rgba(160, 130, 230, 0.18);
      --green:    #10b981;
      --radius:   24px;
    }

    html { scroll-behavior: smooth; }

    body {
      font-family: 'Poppins', sans-serif;
      background: var(--bg);
      color: var(--text);
      min-height: 100vh;
      overflow-x: hidden;
    }

    /* ── ATMOSPHERIC ORBS ── */
    .bg-orbs {
      position: fixed;
      inset: 0;
      z-index: 0;
      pointer-events: none;
      overflow: hidden;
    }
    .orb {
      position: absolute;
      border-radius: 50%;
      filter: blur(72px);
    }
    .orb-1 {
      width: 620px; height: 620px;
      background: radial-gradient(circle, rgba(249,206,52,0.24) 0%, transparent 70%);
      top: -260px; left: -200px;
      animation: driftA 28s ease-in-out infinite;
    }
    .orb-2 {
      width: 520px; height: 520px;
      background: radial-gradient(circle, rgba(238,42,123,0.17) 0%, transparent 70%);
      top: 18%; right: -180px;
      animation: driftB 35s ease-in-out infinite;
    }
    .orb-3 {
      width: 460px; height: 460px;
      background: radial-gradient(circle, rgba(98,40,215,0.15) 0%, transparent 70%);
      bottom: 8%; left: -120px;
      animation: driftC 22s ease-in-out infinite;
    }
    .orb-4 {
      width: 320px; height: 320px;
      background: radial-gradient(circle, rgba(249,206,52,0.13) 0%, transparent 70%);
      bottom: 28%; right: 4%;
      animation: driftA 40s ease-in-out infinite reverse;
    }
    @keyframes driftA {
      0%,100% { transform: translate(0,0) scale(1); }
      33%      { transform: translate(40px,-60px) scale(1.05); }
      66%      { transform: translate(-20px,30px) scale(0.95); }
    }
    @keyframes driftB {
      0%,100% { transform: translate(0,0) scale(1); }
      33%      { transform: translate(-50px,40px) scale(1.08); }
      66%      { transform: translate(30px,-20px) scale(0.97); }
    }
    @keyframes driftC {
      0%,100% { transform: translate(0,0) scale(1); }
      50%      { transform: translate(60px,-40px) scale(1.06); }
    }

    /* ── PAGE WRAP ── */
    .page-wrap { position: relative; z-index: 1; }

    /* ── HERO ── */
    header {
      text-align: center;
      padding: 64px 20px 48px;
      max-width: 800px;
      margin: 0 auto;
    }

    .badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: .7rem;
      font-weight: 800;
      letter-spacing: .13em;
      text-transform: uppercase;
      padding: 7px 18px;
      border-radius: 100px;
      background: rgba(255,255,255,0.88);
      border: 1.5px solid rgba(160,130,230,0.22);
      color: #7c3aed;
      margin-bottom: 24px;
      backdrop-filter: blur(12px);
      box-shadow: 0 2px 12px rgba(98,40,215,0.08);
    }
    .badge-dot {
      width: 7px; height: 7px;
      border-radius: 50%;
      background: var(--ig);
      flex-shrink: 0;
    }

    h1 {
      font-family: 'Poppins', sans-serif;
      font-size: clamp(1.85rem, 5.5vw, 3.2rem);
      font-weight: 800;
      line-height: 1.2;
      letter-spacing: -.01em;
      background: var(--ig);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      margin-bottom: 20px;
    }

    .hero-desc {
      font-size: clamp(.96rem, 2.4vw, 1.12rem);
      color: var(--sub);
      line-height: 1.72;
      max-width: 590px;
      margin: 0 auto 22px;
    }
    .hero-desc strong { color: var(--text); font-weight: 800; }

    .hero-chips {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 8px;
    }
    .chip {
      font-size: .76rem;
      font-weight: 700;
      padding: 5px 14px;
      border-radius: 100px;
      background: rgba(255,255,255,0.88);
      border: 1.5px solid rgba(160,130,230,0.18);
      color: var(--sub);
      backdrop-filter: blur(8px);
    }

    /* ── MAIN ── */
    main {
      max-width: 720px;
      margin: 0 auto;
      padding: 8px 16px 56px;
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    /* ── CARD ── */
    .card {
      background: var(--card);
      backdrop-filter: blur(24px);
      -webkit-backdrop-filter: blur(24px);
      border: 1.5px solid var(--border);
      border-radius: var(--radius);
      padding: 28px 26px;
      box-shadow: 0 8px 40px rgba(98,40,215,0.07), 0 1px 4px rgba(0,0,0,0.04);
      animation: slideUp .5s cubic-bezier(.22,1,.36,1) both;
    }
    .card:nth-of-type(1) { animation-delay: .04s; }
    .card:nth-of-type(2) { animation-delay: .11s; }
    .card:nth-of-type(3) { animation-delay: .18s; }

    @keyframes slideUp {
      from { opacity: 0; transform: translateY(26px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    .card-label {
      display: inline-block;
      font-size: .67rem;
      font-weight: 800;
      letter-spacing: .14em;
      text-transform: uppercase;
      color: #c084fc;
      margin-bottom: 5px;
    }
    .card h2 {
      font-family: 'Poppins', sans-serif;
      font-size: 1.08rem;
      font-weight: 700;
      line-height: 1.35;
      letter-spacing: 0;
      color: var(--text);
      margin-bottom: 20px;
    }

    /* ── MÉTODO 1 ── */
    .size-row {
      display: flex;
      gap: 12px;
    }

    .size-btn {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 6px;
      padding: 24px 10px 20px;
      border-radius: 20px;
      border: 1.5px solid rgba(180,150,255,0.2);
      background: rgba(255,255,255,0.7);
      cursor: pointer;
      transition: transform .22s cubic-bezier(.34,1.56,.64,1),
                  box-shadow .2s ease,
                  border-color .2s,
                  background .2s;
      position: relative;
      overflow: hidden;
    }
    .size-btn::after {
      content: '';
      position: absolute;
      inset: 0;
      background: var(--ig);
      opacity: 0;
      transition: opacity .2s;
      border-radius: inherit;
    }
    .size-btn:hover {
      border-color: transparent;
      transform: translateY(-5px) scale(1.025);
      box-shadow: 0 14px 36px rgba(98,40,215,0.16);
    }
    .size-btn:hover::after { opacity: 0.07; }
    .size-btn:active { transform: scale(0.95); transition-duration: .08s; }

    .size-btn .emoji {
      font-size: 2rem;
      line-height: 1;
      position: relative;
      z-index: 1;
      transition: transform .22s cubic-bezier(.34,1.56,.64,1);
    }
    .size-btn:hover .emoji { transform: scale(1.18); }

    .size-btn .btn-name {
      font-family: 'Poppins', sans-serif;
      font-size: .87rem;
      font-weight: 700;
      line-height: 1.3;
      color: var(--text);
      position: relative;
      z-index: 1;
    }
    .size-btn .btn-hint {
      font-size: .67rem;
      color: var(--muted);
      font-weight: 600;
      text-align: center;
      line-height: 1.3;
      position: relative;
      z-index: 1;
    }

    /* Copied state */
    .size-btn.is-copied {
      border-color: rgba(16,185,129,0.3);
      background: rgba(240,253,244,0.9);
      transform: scale(0.98) !important;
    }
    .size-btn.is-copied .emoji,
    .size-btn.is-copied .btn-name,
    .size-btn.is-copied .btn-hint { display: none; }

    .size-btn .copied-txt {
      display: none;
      font-family: 'Poppins', sans-serif;
      font-size: .88rem;
      font-weight: 700;
      color: var(--green);
      position: relative;
      z-index: 1;
      animation: popIn .22s cubic-bezier(.34,1.56,.64,1);
    }
    .size-btn.is-copied .copied-txt { display: block; }

    @keyframes popIn {
      from { transform: scale(0.6); opacity: 0; }
      to   { transform: scale(1);   opacity: 1; }
    }

    /* ── MÉTODO 2 ── */
    .multi-body { display: flex; flex-direction: column; gap: 18px; }

    .qty-label {
      font-size: .84rem;
      color: var(--sub);
      font-weight: 600;
      margin-bottom: 10px;
    }
    .qty-control {
      display: flex;
      align-items: center;
      background: rgba(255,255,255,0.8);
      border: 1.5px solid rgba(180,150,255,0.25);
      border-radius: 16px;
      overflow: hidden;
      width: fit-content;
    }
    .qty-btn {
      width: 52px; height: 52px;
      border: none;
      background: transparent;
      font-size: 1.4rem;
      font-weight: 700;
      color: #7c3aed;
      cursor: pointer;
      font-family: 'Poppins', sans-serif;
      transition: background .15s;
    }
    .qty-btn:hover  { background: rgba(124,58,237,0.08); }
    .qty-btn:active { background: rgba(124,58,237,0.16); }

    .qty-val {
      width: 64px; height: 52px;
      text-align: center;
      font-family: 'Poppins', sans-serif;
      font-size: 1.2rem;
      font-weight: 700;
      color: var(--text);
      border: none;
      border-left: 1.5px solid rgba(180,150,255,0.2);
      border-right: 1.5px solid rgba(180,150,255,0.2);
      background: transparent;
      -moz-appearance: textfield;
      outline: none;
    }
    .qty-val::-webkit-inner-spin-button,
    .qty-val::-webkit-outer-spin-button { -webkit-appearance: none; }

    /* Animated IG button */
    .btn-ig {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      width: 100%;
      padding: 18px 24px;
      border-radius: 18px;
      border: none;
      cursor: pointer;
      font-family: 'Poppins', sans-serif;
      font-size: 1rem;
      font-weight: 700;
      color: #fff;
      letter-spacing: 0;
      overflow: hidden;
      transition: transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .2s;
    }
    .btn-ig::before {
      content: '';
      position: absolute;
      inset: 0;
      background: var(--ig-wide);
      background-size: 200% 100%;
      animation: igShimmer 3.5s linear infinite;
    }
    @keyframes igShimmer {
      0%   { background-position: 0% 50%; }
      100% { background-position: 200% 50%; }
    }
    .btn-ig:hover {
      transform: translateY(-3px) scale(1.01);
      box-shadow: 0 14px 36px rgba(238,42,123,0.38);
    }
    .btn-ig:active { transform: scale(0.97); }
    .btn-ig span { position: relative; z-index: 1; }
    .btn-ig.is-copied::before {
      background: linear-gradient(135deg, #10b981, #059669);
      animation: none;
    }

    /* ── MÉTODO 3 ── */
    textarea.test-area {
      width: 100%;
      min-height: 112px;
      border-radius: 18px;
      border: 1.5px solid rgba(180,150,255,0.22);
      padding: 16px 18px;
      font-family: 'Poppins', sans-serif;
      font-size: 1rem;
      color: var(--text);
      background: rgba(255,255,255,0.7);
      resize: vertical;
      outline: none;
      transition: border-color .2s, box-shadow .2s;
      line-height: 1.6;
    }
    textarea.test-area:focus {
      border-color: rgba(124,58,237,0.4);
      box-shadow: 0 0 0 4px rgba(124,58,237,0.07);
    }
    textarea.test-area::placeholder { color: var(--muted); }

    .test-tip {
      margin-top: 10px;
      font-size: .78rem;
      color: var(--muted);
      line-height: 1.55;
    }

    /* ── SEO SECTION ── */
    .seo-wrap {
      max-width: 720px;
      margin: 0 auto;
      padding: 0 16px 80px;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }
    .seo-section-label {
      font-size: .68rem;
      font-weight: 800;
      letter-spacing: .14em;
      text-transform: uppercase;
      color: var(--muted);
      text-align: center;
      margin-bottom: 4px;
    }

    .seo-card {
      background: rgba(255,255,255,0.72);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border: 1.5px solid rgba(180,150,255,0.14);
      border-radius: var(--radius);
      padding: 24px 24px;
      box-shadow: 0 4px 24px rgba(98,40,215,0.05);
    }
    .seo-card h2 {
      font-family: 'Poppins', sans-serif;
      font-size: 1.06rem;
      font-weight: 700;
      line-height: 1.35;
      letter-spacing: 0;
      margin-bottom: 10px;
      background: var(--ig);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      display: inline-block;
    }
    .seo-card h3 {
      font-family: 'Poppins', sans-serif;
      font-size: .92rem;
      font-weight: 600;
      line-height: 1.4;
      letter-spacing: 0;
      color: #7c3aed;
      margin: 16px 0 6px;
    }
    .seo-card p  { font-size: .9rem;  color: var(--sub); line-height: 1.75; }
    .seo-card ol,
    .seo-card ul { padding-left: 20px; color: var(--sub); font-size: .9rem; line-height: 2; }
    .seo-card code {
      display: inline-block;
      background: rgba(124,58,237,0.09);
      color: #7c3aed;
      border-radius: 6px;
      padding: 1px 8px;
      font-size: .81rem;
      font-family: 'Courier New', monospace;
      font-weight: 700;
    }

    /* ── FOOTER ── */
    footer {
      text-align: center;
      padding: 24px 16px 32px;
      font-size: .78rem;
      color: var(--muted);
      border-top: 1px solid rgba(180,150,255,0.12);
    }

    /* ── HUB DE NAVEGACIÓN — todas las herramientas ── */
    .hub-nav {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .hub-label {
      font-size: .78rem;
      font-weight: 700;
      color: var(--sub);
      text-transform: uppercase;
      letter-spacing: .06em;
      padding: 0 2px;
    }
    .hub-card {
      display: flex;
      align-items: center;
      gap: 14px;
      width: 100%;
      text-align: left;
      font-family: inherit;
      text-decoration: none;
      cursor: pointer;
      background: var(--card);
      backdrop-filter: blur(24px);
      -webkit-backdrop-filter: blur(24px);
      border: 1.5px solid var(--border);
      border-radius: var(--radius);
      padding: 18px 20px;
      box-shadow: 0 8px 40px rgba(98,40,215,0.07), 0 1px 4px rgba(0,0,0,0.04);
      transition: transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .2s ease, border-color .2s;
    }
    .hub-card:hover, .hub-card:focus-visible {
      border-color: transparent;
      transform: translateY(-2px) scale(1.005);
      box-shadow: 0 12px 34px rgba(98,40,215,0.14);
    }
    .hub-card:active { transform: scale(0.99); }
    .hub-icon { font-size: 1.9rem; flex-shrink: 0; line-height: 1; }
    .hub-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
    .hub-title { font-weight: 800; font-size: 1rem; color: var(--text); }
    .hub-sub { font-size: .8rem; color: var(--sub); line-height: 1.4; }
    .hub-arrow {
      margin-left: auto;
      flex-shrink: 0;
      font-size: 1.2rem;
      font-weight: 800;
      background: var(--ig);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }
    @media (max-width: 400px) {
      .hub-icon { font-size: 1.6rem; }
      .hub-title { font-size: .92rem; }
      .hub-sub { font-size: .74rem; }
    }

    /* ── SECCIÓN BONUS: ESTILOS DE TEXTO ── */
    .estilos-section {
      max-width: 720px;
      margin: 0 auto;
      padding: 0 16px;
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    .est-input-foot {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-top: 10px;
      font-size: .78rem;
      color: var(--muted);
    }
    .est-clear-btn {
      padding: 3px 12px;
      border-radius: 8px;
      color: var(--muted);
      font-size: .74rem;
      font-weight: 600;
      background: none;
      border: none;
      cursor: pointer;
      font-family: 'Poppins', sans-serif;
      transition: all .2s cubic-bezier(.34,1.56,.64,1);
    }
    .est-clear-btn:hover  { background: rgba(124,58,237,0.08); color: var(--text); transform: scale(1.05); }
    .est-clear-btn:active { transform: scale(0.93); }

    .result-count-badge {
      display: inline-block;
      white-space: nowrap;
      font-size: .68rem;
      vertical-align: middle;
      margin-top: 4px;
    }

    /* Generated style cards */
    .style-grid { display: flex; flex-direction: column; gap: 10px; }
    .style-card {
      position: relative;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      background: rgba(255,255,255,0.7);
      border: 1.5px solid rgba(180,150,255,0.2);
      border-radius: 16px;
      padding: 14px 16px 14px 18px;
      cursor: pointer;
      transition: transform .22s cubic-bezier(.34,1.56,.64,1),
                  box-shadow .2s ease, border-color .2s;
    }
    .style-card::before {
      content: '';
      position: absolute;
      inset: 0;
      background: var(--ig);
      opacity: 0;
      transition: opacity .2s;
      border-radius: inherit;
    }
    .style-card:hover {
      border-color: transparent;
      transform: translateY(-3px) scale(1.008);
      box-shadow: 0 12px 30px rgba(98,40,215,0.14);
    }
    .style-card:hover::before { opacity: .05; }
    .style-card:active { transform: scale(0.98); }
    .style-card.popped { animation: cardPop .38s cubic-bezier(.34,1.56,.64,1); }
    @keyframes cardPop {
      0%   { transform: scale(1); }
      40%  { transform: scale(0.97); }
      70%  { transform: scale(1.03); }
      100% { transform: scale(1); }
    }
    .style-txt {
      font-size: 1.02rem;
      line-height: 1.5;
      color: var(--text);
      word-break: break-all;
      flex: 1;
      position: relative; z-index: 1;
    }
    .style-side {
      display: flex; flex-direction: column; align-items: flex-end; gap: 5px;
      flex-shrink: 0; position: relative; z-index: 1;
    }
    .style-name {
      font-size: .62rem; font-weight: 700; letter-spacing: .05em;
      text-transform: uppercase; color: var(--muted); white-space: nowrap;
    }
    .style-pill {
      display: inline-flex; align-items: center; justify-content: center;
      width: 26px; height: 26px; border-radius: 8px;
      background: rgba(124,58,237,0.08);
      border: 1.5px solid rgba(180,150,255,0.2);
      font-size: .8rem; color: #7c3aed;
      transition: all .22s cubic-bezier(.34,1.56,.64,1);
    }
    .style-card:hover .style-pill {
      background: var(--ig); border-color: transparent; color: #fff;
      transform: scale(1.15) rotate(-8deg);
    }

    .empty-styles {
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      padding: 2.5rem 1rem; text-align: center; color: var(--muted);
    }
    .empty-styles .empty-icon { font-size: 2.4rem; margin-bottom: .6rem; }

    /* Trends */
    .trend-list { display: flex; flex-direction: column; gap: 8px; }
    .trend2 {
      position: relative; overflow: hidden;
      background: rgba(255,255,255,0.6);
      border: 1.5px solid rgba(180,150,255,0.18);
      border-radius: 14px;
      padding: 10px 14px;
      cursor: pointer;
      transition: all .22s cubic-bezier(.34,1.56,.64,1);
    }
    .trend2::after {
      content: ''; position: absolute; inset: 0; border-radius: inherit;
      background: var(--ig); opacity: 0; transition: opacity .2s;
    }
    .trend2:hover  { transform: translateY(-2px) scale(1.02); box-shadow: 0 8px 24px rgba(98,40,215,0.14); border-color: transparent; }
    .trend2:hover::after { opacity: .06; }
    .trend2:active { transform: scale(0.96); }
    .trend2-rank { font-size: .6rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; position: relative; z-index: 1; }
    .trend2-txt  { font-size: .98rem; color: var(--text); line-height: 1.4; word-break: break-all; position: relative; z-index: 1; }
    .trend2-lbl  { font-size: .66rem; color: var(--sub); margin-top: 2px; position: relative; z-index: 1; }

    /* Quick decorators */
    .deco-grid2 { display: grid; grid-template-columns: repeat(auto-fill,minmax(96px,1fr)); gap: 8px; }
    .deco-btn2 {
      background: rgba(255,255,255,0.7);
      border: 1.5px solid rgba(180,150,255,0.2);
      border-radius: 12px;
      padding: 10px 8px;
      font-size: .76rem; line-height: 1.3;
      color: var(--sub); text-align: center;
      font-family: 'Poppins', sans-serif;
      cursor: pointer;
      transition: all .22s cubic-bezier(.34,1.56,.64,1);
    }
    .deco-btn2:hover  { background: rgba(255,255,255,0.95); border-color: rgba(124,58,237,0.3); color: var(--text); transform: translateY(-2px) scale(1.05); box-shadow: 0 8px 20px rgba(98,40,215,0.12); }
    .deco-btn2:active { transform: scale(0.94); }

    /* Kaomojis */
    .kao-cats { display: flex; flex-direction: column; gap: 16px; }
    .kao-cat-title { font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
    .kao-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(118px,1fr)); gap: 8px; }
    .kao-card {
      position: relative; overflow: hidden;
      background: rgba(255,255,255,0.7);
      border: 1.5px solid rgba(180,150,255,0.2);
      border-radius: 12px;
      padding: 8px 6px;
      cursor: pointer; text-align: center;
      font-size: .8rem; line-height: 1.4; color: var(--text);
      word-break: break-all;
      transition: all .22s cubic-bezier(.34,1.56,.64,1);
    }
    .kao-card::before { content:''; position:absolute; inset:0; background:var(--ig); opacity:0; transition:opacity .2s; border-radius:inherit; }
    .kao-card:hover  { transform: translateY(-2px) scale(1.05); border-color: transparent; box-shadow: 0 8px 20px rgba(98,40,215,0.14); }
    .kao-card:hover::before { opacity: .06; }
    .kao-card.popped { animation: cardPop .38s cubic-bezier(.34,1.56,.64,1); }

    /* Toast */
    #est-toast {
      position: fixed; bottom: 28px; left: 50%;
      transform: translateX(-50%) translateY(90px);
      z-index: 9999;
      background: var(--ig); color: #fff;
      padding: 12px 26px;
      border-radius: 100px;
      font-family: 'Poppins', sans-serif;
      font-size: .86rem; font-weight: 700;
      white-space: nowrap;
      box-shadow: 0 10px 40px rgba(98,40,215,0.4), 0 2px 8px rgba(0,0,0,0.15);
      pointer-events: none; opacity: 0;
      transition: transform .42s cubic-bezier(.34,1.56,.64,1), opacity .42s ease;
    }
    #est-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

    /* Floating scroll button */
    #est-scrollbtn {
      position: fixed; bottom: 22px; right: 20px; z-index: 999;
      display: inline-flex; align-items: center; gap: 8px;
      padding: 10px 18px;
      border-radius: 100px; border: none; color: #fff;
      font-family: 'Poppins', sans-serif;
      font-size: .8rem; font-weight: 700;
      background: var(--ig-wide);
      background-size: 200% 100%;
      animation: igShimmer 3.5s linear infinite;
      box-shadow: 0 8px 30px rgba(98,40,215,0.35);
      cursor: pointer;
      opacity: 0; pointer-events: none;
      transform: translateY(16px) scale(0.88);
      transition: opacity .38s ease, transform .38s cubic-bezier(.34,1.56,.64,1);
    }
    #est-scrollbtn.visible { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
    #est-scrollbtn:hover   { transform: translateY(-3px) scale(1.06); }

    /* ── SECCIÓN BONUS: ARTE ASCII ── */
    .ascii-section {
      max-width: 720px;
      margin: 0 auto;
      padding: 0 16px;
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    /* Salidas de arte (generador de texto + conversor de foto) */
    .ascii-output-list { display: flex; flex-direction: column; gap: 12px; }
    .more-btn-wrap-ascii { display: flex; justify-content: center; padding-top: 16px; }
    .more-btn-wrap-ascii .btn-ig { width: auto; padding: 14px 32px; }
    .more-btn-wrap-ascii.is-hidden { display: none; }
    .ascii-card {
      position: relative; overflow: hidden;
      background: rgba(255,255,255,0.7);
      border: 1.5px solid rgba(180,150,255,0.2);
      border-radius: 16px;
      padding: 14px 16px;
      cursor: pointer;
      transition: transform .22s cubic-bezier(.34,1.56,.64,1),
                  box-shadow .2s ease, border-color .2s;
    }
    .ascii-card::before {
      content: ''; position: absolute; inset: 0;
      background: var(--ig); opacity: 0; transition: opacity .2s; border-radius: inherit;
    }
    .ascii-card:hover  { border-color: transparent; transform: translateY(-2px) scale(1.006); box-shadow: 0 12px 30px rgba(98,40,215,0.14); }
    .ascii-card:hover::before { opacity: .04; }
    .ascii-card:active { transform: scale(0.99); }
    .ascii-card.popped { animation: cardPop .38s cubic-bezier(.34,1.56,.64,1); }
    .ascii-card-head {
      display: flex; align-items: center; justify-content: space-between;
      margin-bottom: 8px; position: relative; z-index: 1;
    }
    .ascii-card-name {
      font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
      color: #7c3aed;
    }
    .ascii-copy-pill {
      display: inline-flex; align-items: center; justify-content: center;
      width: 24px; height: 24px; border-radius: 7px;
      background: rgba(124,58,237,0.08);
      border: 1.5px solid rgba(180,150,255,0.2);
      font-size: .74rem; color: #7c3aed; flex-shrink: 0;
      transition: all .22s cubic-bezier(.34,1.56,.64,1);
    }
    .ascii-card:hover .ascii-copy-pill { background: var(--ig); border-color: transparent; color: #fff; transform: scale(1.12) rotate(-8deg); }
    .ascii-pre {
      position: relative; z-index: 1;
      margin: 0;
      font-family: 'Courier New', Consolas, monospace;
      font-size: .5rem;
      line-height: 1.15;
      color: var(--text);
      white-space: pre;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
    }
    .ascii-empty {
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      padding: 2rem 1rem; text-align: center; color: var(--muted); font-size: .85rem;
    }
    .ascii-empty .empty-icon { font-size: 2.2rem; margin-bottom: .5rem; display: block; }

    /* Conversor de foto a ASCII */
    .ascii-dropzone {
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      gap: 6px; text-align: center;
      border: 2px dashed rgba(180,150,255,0.35);
      border-radius: 18px;
      padding: 30px 20px;
      cursor: pointer;
      background: rgba(124,58,237,0.03);
      transition: all .22s ease;
    }
    .ascii-dropzone:hover { border-color: rgba(124,58,237,0.5); background: rgba(124,58,237,0.06); }
    .ascii-dropzone .dz-icon { font-size: 2rem; }
    .ascii-dropzone .dz-title { font-weight: 700; font-size: .9rem; color: var(--text); }
    .ascii-dropzone .dz-sub { font-size: .76rem; color: var(--muted); }

    .ascii-controls {
      display: flex; flex-direction: column; gap: 14px;
      margin-top: 16px;
    }
    .ascii-control-row { display: flex; flex-direction: column; gap: 6px; }
    .ascii-control-label {
      display: flex; align-items: center; justify-content: space-between;
      font-size: .78rem; font-weight: 600; color: var(--sub);
    }
    .ascii-slider {
      -webkit-appearance: none; appearance: none;
      width: 100%; height: 6px; border-radius: 100px;
      background: rgba(180,150,255,0.25);
      accent-color: #7c3aed;
      cursor: pointer;
    }
    .ascii-checkbox-row {
      display: flex; align-items: center; gap: 8px;
      font-size: .82rem; color: var(--sub); font-weight: 600;
      cursor: pointer;
    }
    .ascii-checkbox-row input { accent-color: #7c3aed; width: 16px; height: 16px; cursor: pointer; }

    /* Tip dentro de la zona de foto a arte de texto */
    .tip-card {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      padding: 18px 20px;
      background: rgba(249,206,52,0.08);
      border-color: rgba(249,206,52,0.3);
    }
    .tip-card .tip-icon { font-size: 1.3rem; flex-shrink: 0; }
    .tip-card p { font-size: .86rem; color: var(--sub); line-height: 1.6; }
    .tip-card p strong { color: var(--text); }

    /* CTA intercalado en la galería, cada 5 piezas */
    .gal-cta {
      grid-column: 1 / -1;
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 16px 18px;
      cursor: pointer;
      border: none;
      border-radius: 16px;
      background: var(--ig);
      color: #fff;
      text-align: left;
      font-family: inherit;
      transition: transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .2s ease;
    }
    .gal-cta:hover { transform: translateY(-2px) scale(1.006); box-shadow: 0 10px 28px rgba(238,42,123,0.25); }
    .gal-cta:active { transform: scale(0.99); }
    .gal-cta .gal-cta-icon { font-size: 1.4rem; flex-shrink: 0; }
    .gal-cta .gal-cta-text { font-size: .84rem; font-weight: 600; line-height: 1.4; }
    .gal-cta .gal-cta-arrow { margin-left: auto; font-size: 1.2rem; font-weight: 800; flex-shrink: 0; }

    /* Galería de arte ASCII realista */
    .ascii-gallery-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }
    .gallery-card {
      padding: 10px 10px 12px;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    .gallery-card.gal-span { grid-column: 1 / -1; }
    .gallery-pre {
      line-height: 1.05;
      /* font-size fijado por JS según ancho real de la pieza (ver gal-fitFont) */
    }
    .gal-card-actions { display: flex; align-items: center; gap: 6px; }
    .gal-invert-btn {
      display: inline-flex; align-items: center; justify-content: center;
      width: 24px; height: 24px; border-radius: 7px;
      background: rgba(124,58,237,0.08);
      border: 1.5px solid rgba(180,150,255,0.2);
      font-size: .74rem; color: #7c3aed; flex-shrink: 0;
      cursor: pointer;
      transition: all .22s cubic-bezier(.34,1.56,.64,1);
    }
    .gal-invert-btn:hover { background: rgba(124,58,237,0.16); transform: scale(1.08); }
    .gal-invert-btn.is-active { background: var(--ig); border-color: transparent; color: #fff; }
    .gal-tier-badge {
      align-self: flex-start;
      font-size: .6rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
      padding: 3px 9px; border-radius: 100px;
      border: 1.5px solid rgba(160,130,230,0.18);
      color: var(--sub); background: rgba(255,255,255,0.6);
    }
    .gal-tier-badge.tier-pequeno { color: #0f9d6e; border-color: rgba(16,185,129,0.3); background: rgba(16,185,129,0.08); }
    .gal-tier-badge.tier-mediano { color: #7c3aed; border-color: rgba(124,58,237,0.28); background: rgba(124,58,237,0.08); }
    .gal-tier-badge.tier-grande  { color: #ee2a7b; border-color: rgba(238,42,123,0.28); background: rgba(238,42,123,0.08); }

    /* ── RESPONSIVE ── */
    @media (max-width: 520px) {
      header { padding: 48px 16px 36px; }
      .card  { padding: 22px 18px; }
      .size-row { gap: 8px; }
      .size-btn { padding: 18px 6px 14px; }
      .size-btn .emoji { font-size: 1.7rem; }
      .seo-card { padding: 20px 18px; }
      .estilos-section { padding: 0 16px; }
      .ascii-section { padding: 0 16px; }
      .ascii-pre { font-size: .42rem; }
    }
    @media (max-width: 360px) {
      .size-btn .btn-hint { display: none; }
    }

    /* ── TOPBAR — marca + navegación entre herramientas/idiomas ── */
    .topbar {
      position: sticky;
      top: 0;
      z-index: 20;
      background: rgba(253,249,255,0.82);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
      border-bottom: 1.5px solid var(--border);
    }
    .topbar-inner {
      max-width: 760px;
      margin: 0 auto;
      padding: 12px 16px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
    }
    .topbar-brand {
      display: flex;
      align-items: center;
      gap: 7px;
      font-family: 'Poppins', sans-serif;
      font-size: .92rem;
      font-weight: 800;
      text-decoration: none;
      white-space: nowrap;
      flex-shrink: 0;
    }
    .topbar-brand-mark { font-size: 1.15rem; line-height: 1; }
    .topbar-brand-text {
      background: var(--ig);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }
    .topbar-tools {
      display: flex;
      align-items: center;
      gap: 6px;
      flex-wrap: wrap;
    }
    .topbar-link {
      font-family: 'Poppins', sans-serif;
      font-size: .74rem;
      font-weight: 700;
      text-decoration: none;
      padding: 6px 13px;
      border-radius: 100px;
      color: var(--sub);
      background: rgba(255,255,255,0.75);
      border: 1.5px solid rgba(160,130,230,0.18);
      transition: transform .18s cubic-bezier(.34,1.56,.64,1), border-color .18s, color .18s, background .18s;
      white-space: nowrap;
    }
    .topbar-link:hover {
      border-color: transparent;
      color: #7c3aed;
      transform: translateY(-1px);
    }
    .topbar-link.is-current {
      color: #fff;
      background: var(--ig);
      border-color: transparent;
    }
    .topbar-lang {
      position: relative;
      flex-shrink: 0;
    }
    .topbar-lang-select {
      appearance: none;
      -webkit-appearance: none;
      -moz-appearance: none;
      font-family: 'Poppins', sans-serif;
      font-size: .72rem;
      font-weight: 800;
      color: #fff;
      background-color: #6228d7;
      background-image: var(--ig), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='white' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
      background-repeat: no-repeat, no-repeat;
      background-position: 0 0, right 11px center;
      background-size: auto, 9px 6px;
      border: 1.5px solid transparent;
      border-radius: 100px;
      padding: 6px 28px 6px 14px;
      cursor: pointer;
      white-space: nowrap;
      max-width: 172px;
      overflow: hidden;
      text-overflow: ellipsis;
      transition: transform .18s cubic-bezier(.34,1.56,.64,1);
    }
    .topbar-lang-select:hover { transform: translateY(-1px); }
    .topbar-lang-select:focus-visible {
      outline: 2px solid #7c3aed;
      outline-offset: 2px;
    }
    .topbar-lang-select option {
      color: var(--text);
      background: #fff;
      font-weight: 600;
    }
    @media (max-width: 360px) {
      .topbar-lang-select { max-width: 118px; font-size: .68rem; padding: 6px 24px 6px 11px; }
    }
    @media (max-width: 720px) {
      .topbar-tools { display: none; }
    }
    @media (max-width: 360px) {
      .topbar-brand-text { display: none; }
    }
