/* VULCAN STICKER — stk-sheets-single-desktop.css v1.0.4
   v1.0.4: texto con el tamano sobre la pegatina principal (.stksd-size).
   v1.0.3: landing con las mismas reglas que #stk-landing (boton de subir
           redondeado, panel sin relleno lateral, separacion de secciones).
   v1.0.2: logo de la cabecera con clase propia (.stksd-logo).
   v1.0.1: cabecera y fondo del editor como troqueladas (gris #D8D8D8).
   Editor de escritorio de "Hojas individuales". Todo va prefijado con
   stksd: no afecta a troqueladas ni a hojas de varios disenos. */
@media (min-width: 769px) {
  /* #stksd vive DENTRO de #stk-v38 (hereda sus variables y estilos de
     panel); el landing y el editor antiguos quedan cargados pero ocultos */
  body.stksd-on #stk-v38 > #stk-landing, body.stksd-on #stk-v38 > #stk-editor { display: none !important; }
  #stksd-landing { display: grid; grid-template-columns: var(--stk-grid-columns); gap: var(--stk-grid-gap); align-items: stretch; max-width: 1440px; margin: 0 auto; padding: var(--stk-container-pad-top) var(--stk-container-pad-x) 0; }
  #stksd-landing .stk-left { position: sticky; top: 20px; align-self: start; }
  #stksd-landing .stk-right { min-width: 0; }
  #stksd-landing .stk-section { margin-bottom: var(--stk-section-gap); }
  #stksd-landing .stk-panel > .stk-panel-scroll { padding: 0; overflow: visible; flex: 0 0 auto; }
  #stksd-landing .stk-panel .stk-section { margin-bottom: 28px; }
  #stksd-landing .stk-upload-btn { border-radius: 10px; }
  html.stksd-open, html.stksd-open body { overflow: hidden !important; }

  #stksd, #stksd * { box-sizing: border-box; }
  #stksd { font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; color: #141416; }

  /* ── landing: carrusel ── */
  #stksd-carousel { display: block; }   /* tamano y marco: clase .stk-stage-landing */
  .stksd-car-track { display: flex; width: 100%; height: 100%; transition: transform .45s cubic-bezier(.4, 0, .2, 1); }
  .stksd-car-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; display: block; }
  .stksd-car-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #fff; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
  .stksd-car-arrow.prev { left: 12px; } .stksd-car-arrow.next { right: 12px; }
  .stksd-car-arrow:hover { background: rgba(0, 0, 0, .8); }
  .stksd-car-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; gap: 8px; justify-content: center; }
  .stksd-car-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .45); cursor: pointer; }
  .stksd-car-dots i.on { background: #fff; }
  #stksd-l-status, #stksd-status { display: none; text-align: center; margin-top: 8px; font-size: 12px; }

  /* ── formas: el card activo ocupa toda la altura del fondo gris (como Acabado) ── */
  #stksd .stksd-shapes { padding: 0 !important; gap: 0 !important; }
  #stksd .stksd-shapes .stk-shape-card { border-radius: 10px !important; }

  /* ── color de la hoja: mismo boton y panel flotante que troqueladas
        (las clases .stk-borde-* ya traen el estilo; aqui solo la caja y el boton) ── */
  #stksd-color-btn { position: absolute; top: 100px; right: 28px; z-index: 30; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; padding: 0; border: none; border-radius: 10px; background: #1F1F21; color: #fff; cursor: pointer; box-shadow: 0 16px 48px rgba(0, 0, 0, .55), 0 0 0 .5px rgba(255, 255, 255, .09); }
  #stksd-color-btn svg { display: block; width: 22px; height: 22px; }
  #stksd-color-btn:hover svg path { fill: #F5C518; }
  #stksd-stage:has(#stksd-color-panel.open) #stksd-color-btn svg path { fill: #FF3B30; }
  #stksd-color-panel { display: none; position: absolute; top: 86px; right: 96px; z-index: 60; width: 260px; background: #2A2A2C; border: none; border-radius: 18px; padding: 0 0 8px; font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif; box-shadow: 0 16px 48px rgba(0, 0, 0, .55), 0 0 0 .5px rgba(255, 255, 255, .09); cursor: default; }
  #stksd-color-panel.open { display: block; }
  #stksd-color-panel::before { content: ''; position: absolute; top: 31px; right: -10px; width: 0; height: 0; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 10px solid #2A2A2C; filter: drop-shadow(2px 0 3px rgba(0, 0, 0, .2)); }
  #stksd-color-close { border: none; background: none; font-size: 18px; cursor: pointer; color: rgba(255, 255, 255, .42); padding: 10px; margin: -10px; line-height: 1; }
  #stksd-color-close:hover { color: rgba(255, 255, 255, .55); }

  /* ── editor a pantalla completa ── */
  #stksd-editor { position: fixed; inset: 0; z-index: 999999; background: #D8D8D8; flex-direction: row; }
  .stksd-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
  /* cabecera: clases .stk-topbar de troqueladas; aqui solo lo que cambia por no ser fija */
  #stksd .stk-topbar { flex: 0 0 64px; margin-right: 0; position: relative; top: auto; }
  #stksd .stksd-logo { display: block; height: 20px; width: auto; margin-top: 0; }
  #stksd #stksd-back { width: 80px; min-width: 80px; height: 100%; align-items: center; justify-content: center; padding: 0; border: none; border-radius: 0; background: none; }
  #stksd #stksd-back:hover { background: none; color: #000; }
  .stksd-tbtn { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid #D9D9DE; background: #fff; color: #141416; font-size: 13px; font-weight: 600; cursor: pointer; overflow: hidden; }
  .stksd-tbtn:hover { background: #F4F4F6; }
  .stksd-tbtn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
  #stksd-stage { position: relative; flex: 1 1 auto; min-height: 0; min-width: 0; overflow: hidden; box-shadow: inset 0 1px 4px rgba(0, 0, 0, .06); user-select: none; -webkit-user-select: none; }
  /* el panel reutiliza .stk-panel (estilos de formas, materiales, tamanos...) pero aqui no es fijo */
  #stksd .stksd-side { position: relative; top: auto; right: auto; bottom: auto; height: auto; z-index: auto; flex: 0 0 460px; width: 460px; display: flex; flex-direction: column; min-height: 0; border-left: 1px solid #E3E3E8; }
  #stksd .stksd-side-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
  #stksd .stksd-side-foot { flex: 0 0 auto; }
  #stksd-nota-row { cursor: pointer; }
  #stksd-comment { width: 100%; margin-top: 8px; border: 1px solid #D0D0D5; border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 13px; resize: vertical; }

  /* ── hoja + copias ── */
  #stksd-sheet { position: absolute; border-radius: 3px; box-shadow: 0 12px 40px rgba(0, 0, 0, .16), 0 1px 3px rgba(0, 0, 0, .12); }
  #stksd-bg { position: absolute; inset: 0; border-radius: 3px; background: #fff; }
  #stksd-items { position: absolute; inset: 0; }
  .stksd-tile { position: absolute; }
  .stksd-anim .stksd-tile { transition: left .22s ease, top .22s ease, width .22s ease, height .22s ease; }
  .stksd-tile > img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
  .stksd-cut { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; fill: none; }
  #stksd-cutpath { vector-effect: non-scaling-stroke; }
  .stksd-cut .a { stroke: #fff; stroke-width: 1.4; }
  .stksd-cut .b { stroke: #141416; stroke-width: 1.4; stroke-dasharray: 4 4; animation: stksd-ants .7s linear infinite; }
  .stksd-drag .stksd-cut .b { animation-play-state: paused; }
  @keyframes stksd-ants { to { stroke-dashoffset: -8; } }
  @media (prefers-reduced-motion: reduce) { .stksd-cut .b { animation: none; } }

  /* ── handles de la principal ── */
  .stksd-h { position: absolute; inset: -5px; border: 1px solid rgba(20, 20, 22, .45); border-radius: 2px; pointer-events: none; }
  .stksd-h b { position: absolute; width: 14px; height: 14px; background: #fff; border: 1.5px solid #141416; border-radius: 4px; pointer-events: auto; touch-action: none; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
  .stksd-h b::after { content: ''; position: absolute; inset: -8px; }
  .stksd-h .nw { left: -7px; top: -7px; cursor: nwse-resize; } .stksd-h .se { right: -7px; bottom: -7px; cursor: nwse-resize; }
  .stksd-h .ne { right: -7px; top: -7px; cursor: nesw-resize; } .stksd-h .sw { left: -7px; bottom: -7px; cursor: nesw-resize; }

  /* tamano de la pegatina principal: solo texto, mismo color que en hojas */
  .stksd-size { position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); margin-bottom: 2px; color: #6C5CE7; font-size: 11px; font-weight: 700; line-height: 1; white-space: nowrap; pointer-events: none; }

  /* ── barra del recuento + consejo ── */
  #stksd-bar { position: absolute; display: flex; gap: 8px; height: 40px; z-index: 4; }
  #stksd-count { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: center; background: #4A4A50; color: #fff; font-size: 13px; font-weight: 700; padding: 0 14px; border-radius: 10px; white-space: nowrap; overflow: hidden; }
  #stksd #stksd-change { flex: 0 0 auto; height: 40px; background: #1F2026; border-color: #1F2026; color: #fff; }
  #stksd #stksd-change:hover { background: #33343C; }
  #stksd-tip { position: absolute; display: none; max-width: 250px; background: #EFEFF1; color: #55555A; border: 0.5px solid #B4B4BA; border-radius: 10px; padding: 9px 12px; font-size: 12px; line-height: 1.4; z-index: 5; pointer-events: none; }
  #stksd-tip.on { display: block; }
  #stksd-tip b { display: block; color: #141416; font-weight: 700; margin-bottom: 2px; }
  #stksd-tip::before { content: ''; position: absolute; left: 20px; top: -6px; width: 10px; height: 10px; background: #EFEFF1; border-left: 0.5px solid #B4B4BA; border-top: 0.5px solid #B4B4BA; transform: rotate(45deg); }
  #stksd-busy { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; gap: 10px; background: rgba(255, 255, 255, .7); border-radius: 3px; font-size: 13px; font-weight: 600; color: #55555A; z-index: 6; }
  #stksd-busy i { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid #D0D0D5; border-top-color: #141416; animation: stksd-spin .8s linear infinite; }
  @keyframes stksd-spin { to { transform: rotate(360deg); } }

  /* ── dialogo de baja resolucion ── */
  #stksd-confirm { position: absolute; inset: 0; z-index: 20; background: rgba(0, 0, 0, .45); display: flex; align-items: center; justify-content: center; }
  .stksd-confirm-box { width: 360px; background: #fff; border-radius: 16px; padding: 22px; text-align: center; }
  .stksd-confirm-box strong { display: block; font-size: 16px; margin-bottom: 8px; }
  .stksd-confirm-box p { font-size: 13px; color: #55555A; margin: 0 0 16px; line-height: 1.5; }
  .stksd-confirm-box button { height: 40px; padding: 0 20px; border-radius: 10px; border: 1px solid #D0D0D5; background: #fff; font-weight: 700; font-size: 13px; cursor: pointer; margin: 0 4px; }
  .stksd-confirm-box button[data-r="1"] { background: #141416; border-color: #141416; color: #fff; }
}
