/* ToTó Personalizador — estilos aislados dentro de #toto-box */

#toto-box {
  background: #FDFAF4;
  border: 3px solid #1a1a1a;
  border-radius: 16px;
  padding: 24px;
  margin: 24px 0;
  max-width: 560px;
  box-sizing: border-box;
}
#toto-box * { box-sizing: border-box; }

#toto-box .toto-titulo { font-size: 1.3rem !important; font-weight: 900 !important; margin: 0 0 4px !important; color: #1a1a1a !important; line-height: 1.2 !important; }
#toto-box .toto-sub    { font-size: .88rem !important; color: #666 !important; margin: 0 0 20px !important; }
#toto-box .toto-label  { display: block !important; font-size: .75rem !important; font-weight: 800 !important; text-transform: uppercase !important; letter-spacing: .07em !important; color: #1a1a1a !important; margin: 0 0 10px !important; }
#toto-box .toto-hint      { font-size: .72rem !important; color: #999 !important; font-style: italic !important; margin: 6px 0 0 !important; }
#toto-box .toto-hint-drag { font-size: .72rem !important; color: #aaa !important; text-align: center !important; margin: 4px 0 8px !important; font-style: italic !important; }
#toto-box .toto-paso { margin-bottom: 18px !important; }

/* Prendas */
#toto-box .toto-prendas { display: grid !important; grid-template-columns: repeat(3,1fr) !important; gap: 8px !important; margin: 0 !important; padding: 0 !important; list-style: none !important; }
#toto-box .toto-prenda { background: #fff !important; border: 2px solid #e0ddd6 !important; border-radius: 10px !important; padding: 10px 6px 8px !important; font-size: .74rem !important; font-weight: 600 !important; cursor: pointer !important; display: flex !important; flex-direction: column !important; align-items: center !important; gap: 4px !important; color: #333 !important; transition: all .15s !important; text-align: center !important; line-height: 1.2 !important; text-transform: none !important; letter-spacing: 0 !important; width: 100% !important; }
#toto-box .toto-prenda span { font-size: 1.4rem !important; line-height: 1 !important; display: block !important; }
#toto-box .toto-prenda:hover  { border-color: #1a1a1a !important; background: #f5f0e8 !important; transform: translateY(-2px) !important; color: #1a1a1a !important; }
#toto-box .toto-prenda.activo { border-color: #1a1a1a !important; background: #1a1a1a !important; color: #fff !important; }

/* Upload */
#toto-box .toto-upload { display: block !important; border: 2.5px dashed #c8c4bc !important; border-radius: 12px !important; padding: 28px 20px !important; text-align: center !important; cursor: pointer !important; background: #fafaf8 !important; transition: all .2s !important; }
#toto-box .toto-upload:hover { border-color: #1a1a1a !important; background: #f5f0e8 !important; }
#toto-box .toto-upload.ok    { border-color: #5cb85c !important; background: #f0fff0 !important; }
#toto-box #toto-upload-inner { display: flex !important; flex-direction: column !important; align-items: center !important; gap: 5px !important; color: #666 !important; font-size: .88rem !important; font-weight: 600 !important; pointer-events: none !important; }
#toto-box .toto-upload-icon { font-size: 2.4rem !important; line-height: 1 !important; }
#toto-box #toto-upload-inner small { font-size: .72rem !important; color: #999 !important; font-weight: 400 !important; }

/* Flip */
#toto-box #toto-flip { display: flex !important; gap: 8px !important; margin-bottom: 10px !important; }
#toto-box .toto-flip-btn { flex: 1 !important; padding: 7px !important; border: 2px solid #e0ddd6 !important; border-radius: 8px !important; background: #fff !important; font-size: .78rem !important; font-weight: 700 !important; cursor: pointer !important; color: #555 !important; transition: all .15s !important; text-transform: none !important; letter-spacing: 0 !important; }
#toto-box .toto-flip-btn:hover  { border-color: #1a1a1a !important; }
#toto-box .toto-flip-btn.activo { border-color: #1a1a1a !important; background: #1a1a1a !important; color: #fff !important; }

/* Mockup */
#toto-mockup { position: relative !important; width: 300px !important; height: 300px !important; margin: 0 auto !important; overflow: hidden !important; touch-action: none !important; }
#toto-mockup img.toto-bg { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; object-fit: contain !important; pointer-events: none !important; }
#toto-mockup .toto-zona { position: absolute !important; border: 1.5px dashed rgba(232,93,38,.3) !important; border-radius: 4px !important; background: rgba(232,93,38,.03) !important; pointer-events: none !important; }
#toto-mockup img.toto-arte { position: absolute !important; object-fit: contain !important; cursor: grab !important; filter: drop-shadow(0 2px 6px rgba(0,0,0,.15)) !important; transform-origin: center !important; }
#toto-mockup img.toto-arte:active { cursor: grabbing !important; }

/* Rotar */
#toto-box .toto-rotar { display: flex !important; gap: 8px !important; justify-content: center !important; margin-bottom: 14px !important; }
#toto-box .toto-rotar button { padding: 6px 14px !important; border: 2px solid #e0ddd6 !important; border-radius: 8px !important; background: #fff !important; font-size: .76rem !important; font-weight: 700 !important; cursor: pointer !important; color: #555 !important; transition: all .15s !important; text-transform: none !important; letter-spacing: 0 !important; }
#toto-box .toto-rotar button:hover { border-color: #1a1a1a !important; background: #f5f0e8 !important; }

/* Tamaños */
#toto-box #toto-tamanos { display: flex !important; flex-wrap: wrap !important; gap: 7px !important; }
#toto-box .toto-tam { padding: 7px 11px !important; border: 2px solid #e0ddd6 !important; border-radius: 8px !important; background: #fff !important; font-size: .76rem !important; font-weight: 700 !important; cursor: pointer !important; color: #333 !important; transition: all .15s !important; text-transform: none !important; letter-spacing: 0 !important; }
#toto-box .toto-tam:hover  { border-color: #1a1a1a !important; background: #f5f0e8 !important; }
#toto-box .toto-tam.activo { border-color: #1a1a1a !important; background: #1a1a1a !important; color: #fff !important; }
#toto-box .toto-tam small  { opacity: .6 !important; font-weight: 400 !important; font-size: .68rem !important; }

/* Botón carrito */
#toto-carrito { display: flex !important; align-items: center !important; justify-content: center !important; gap: 14px !important; width: 100% !important; margin-top: 24px !important; padding: 18px 24px !important; background: #1a1a1a !important; color: #fff !important; border: none !important; border-radius: 12px !important; font-size: 1rem !important; font-weight: 800 !important; cursor: pointer !important; box-shadow: 0 4px 16px rgba(0,0,0,.15) !important; transition: background .2s, transform .15s !important; text-transform: none !important; letter-spacing: 0 !important; line-height: 1.2 !important; }
#toto-carrito:hover { background: #333 !important; transform: translateY(-2px) !important; }
#toto-precio { font-size: 1.35rem !important; font-weight: 900 !important; letter-spacing: -.02em !important; }

/* Error */
#toto-box #toto-error { margin-top: 12px !important; padding: 10px 14px !important; background: #fff5f0 !important; border: 2px solid #e85d26 !important; border-radius: 8px !important; color: #c03a0a !important; font-size: .84rem !important; font-weight: 600 !important; }

@media (max-width: 480px) {
  #toto-box .toto-prendas { grid-template-columns: repeat(3,1fr) !important; }
  #toto-mockup { width: 260px !important; height: 260px !important; }
}
