/* 7evensDTF Web. Todo va dentro de #sdtf-web para no chocar con el tema de WordPress. */
#sdtf-web, #sdtf-web * { box-sizing: border-box; }
#sdtf-web [hidden] { display: none !important; }
#sdtf-web {
  --fondo: #2b2b2b; --panel: #323232; --borde: #474747; --texto: #e6e6e6; --suave: #a9a9a9;
  --marca: #e6007e; --cian: #00a6d6; --magenta: #d1006f; --amarillo: #e0b300; --verde: #2e9e4f; --naranja: #f08a00;
  font: 13px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--texto); background: var(--fondo); border-radius: 10px; overflow: hidden;
  display: grid; grid-template-columns: 330px 1fr;
  /* Como una ventana de Photoshop: todo el ancho y todo el alto de la ventana */
  position: relative; width: 100vw; max-width: none; margin-left: calc(50% - 50vw); margin-right: 0;
  height: calc(100vh - var(--sdtf-top, 0px)); min-height: 600px; border-radius: 0;
  scroll-margin-top: var(--sdtf-top, 0px);
}
#sdtf-web .panel { overflow-y: auto; }
#sdtf-web .lienzo { min-height: 0; }
#sdtf-web:fullscreen { width: 100vw; height: 100vh; margin: 0; }
#sdtf-web:-webkit-full-screen { width: 100vw; height: 100vh; margin: 0; }
#sdtf-web button, #sdtf-web input, #sdtf-web select { font: inherit; }
#sdtf-web .panel { background: var(--panel); display: flex; flex-direction: column; min-width: 0; }
#sdtf-web .marca { background: #f4f4f4; padding: 10px 14px; display: flex; align-items: baseline; gap: 8px; }
#sdtf-web .marca .nombre { font-size: 20px; font-weight: 700; color: #111; letter-spacing: -0.3px; }
#sdtf-web .marca .nombre span { color: var(--marca); }
#sdtf-web .marca .sub { margin-left: auto; font-size: 9px; color: #666; letter-spacing: 1.5px; text-transform: uppercase; }
#sdtf-web .franja { display: flex; height: 4px; }
#sdtf-web .franja div { flex: 1; }
#sdtf-web .cuerpo { padding: 10px 12px 14px; overflow-y: auto; flex: 1; }

#sdtf-web .subir { display: block; border: 2px dashed #5a5a5a; border-radius: 8px; padding: 14px; text-align: center;
  cursor: pointer; color: var(--texto); background: #2a2a2a; }
#sdtf-web .subir:hover, #sdtf-web .subir.encima { border-color: var(--marca); background: #331f2b; }
#sdtf-web .subir b { display: block; font-size: 14px; margin-bottom: 2px; }
#sdtf-web .subir small { color: var(--suave); }
#sdtf-web .subir input { display: none; }
#sdtf-web .archivo { margin-top: 6px; color: var(--suave); font-size: 12px; word-break: break-all; }

#sdtf-web h3 { margin: 14px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: #fff; }
#sdtf-web .prendas { display: flex; flex-wrap: wrap; gap: 6px; }
#sdtf-web .prendas button { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #555; cursor: pointer; padding: 0; }
#sdtf-web .prendas button.activa { border-color: var(--marca); box-shadow: 0 0 0 2px var(--marca); }
#sdtf-web .prendas label { position: relative; width: 34px; height: 34px; border-radius: 50%; border: 2px dashed #777;
  cursor: pointer; display: grid; place-items: center; font-size: 18px; color: var(--suave); }
#sdtf-web .prendas label.activa { border-style: solid; border-color: var(--marca); box-shadow: 0 0 0 2px var(--marca); }
#sdtf-web .prendas input[type=color] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
#sdtf-web .nota { color: var(--suave); font-size: 11px; margin: 4px 2px 0; }

#sdtf-web .seccion { margin-top: 10px; border-radius: 6px; overflow: hidden; background: #2a2a2a; }
#sdtf-web .cab { width: 100%; text-align: left; border: 0; padding: 7px 10px; cursor: pointer; color: #fff; font-weight: 700;
  display: flex; gap: 6px; align-items: center; }
#sdtf-web .cab .res { font-weight: 400; opacity: .9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#sdtf-web .cab .fl { margin-left: auto; transition: transform .15s; }
#sdtf-web .seccion.abierta .cab .fl { transform: rotate(90deg); }
#sdtf-web .seccion .contenido { display: none; padding: 8px 10px 10px; }
#sdtf-web .seccion.abierta .contenido { display: block; }
#sdtf-web .cab.tamano { background: var(--cian); }
#sdtf-web .cab.trama { background: var(--magenta); }
#sdtf-web .cab.niveles { background: var(--amarillo); color: #222; }
#sdtf-web .cab.licencia { background: #111; }

#sdtf-web .fila { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
#sdtf-web .fila > span:first-child { width: 86px; flex: 0 0 auto; color: var(--suave); }
#sdtf-web .fila select, #sdtf-web .fila input[type=number], #sdtf-web .fila input[type=text] {
  flex: 1; min-width: 0; background: #1f1f1f; color: var(--texto); border: 1px solid var(--borde); border-radius: 4px; padding: 5px 6px; }
#sdtf-web .fila input[type=range] { flex: 1; accent-color: var(--marca); }
#sdtf-web .fila input:disabled, #sdtf-web .fila select:disabled { opacity: .45; }
#sdtf-web .casilla { display: flex; gap: 6px; align-items: center; margin: 6px 0; cursor: pointer; }
#sdtf-web .casilla input { accent-color: var(--marca); }

#sdtf-web .info { border-left: 4px solid #666; background: #262626; padding: 6px 8px; border-radius: 0 4px 4px 0; margin-top: 6px; font-size: 12px; }
#sdtf-web .info.buena { border-left-color: #3cb45a; }
#sdtf-web .info.aceptable { border-left-color: #d9c53a; }
#sdtf-web .info.regular { border-left-color: #e08a2e; }
#sdtf-web .info.baja { border-left-color: #dc3c3c; }

#sdtf-web .boton { display: block; width: 100%; margin-top: 12px; padding: 11px; border: 0; border-radius: 6px; cursor: pointer;
  font-size: 14px; font-weight: 700; color: #fff; background: var(--verde); }
#sdtf-web .boton:disabled { background: #555; cursor: default; }
#sdtf-web .boton.trabajando { background: var(--naranja); }
#sdtf-web .boton.secundario { background: #1d6fb8; }
#sdtf-web a.boton { text-align: center; text-decoration: none; }
#sdtf-web a.enlace { display: inline-block; }
#sdtf-web .enlace {background: none; border: 0; color: var(--suave); text-decoration: underline; cursor: pointer; padding: 6px 0 0; font-size: 12px; }
#sdtf-web .estado { margin-top: 10px; padding: 8px; border-radius: 5px; background: #262626; font-size: 12px; min-height: 34px; }
#sdtf-web .estado.ok { background: #1f3b26; color: #bff0c9; }
#sdtf-web .estado.error { background: #4a1f1f; color: #ffd0d0; }
#sdtf-web .barra { height: 4px; background: #444; border-radius: 2px; margin-top: 6px; overflow: hidden; display: none; }
#sdtf-web .barra div { height: 100%; width: 0; background: var(--naranja); }

#sdtf-web a.boton.whatsapp { background: #25d366; color: #06301a; text-align: center; text-decoration: none; font-weight: 700; margin: 8px 0; }

#sdtf-web a.boton.paypal { background: #ffc439; color: #111; text-align: center; text-decoration: none; font-weight: 700; margin: 8px 0; }

#sdtf-web a.boton.photoshop { background: #001e36; color: #31a8ff; border: 1px solid #31a8ff; text-align: center; text-decoration: none; font-weight: 700; margin: 8px 0; }

/* Formato de descarga */
#sdtf-web .formato { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
#sdtf-web .formato span { color: var(--suave); }
#sdtf-web .formato select { flex: 1; min-width: 0; padding: 6px 8px; border-radius: 5px; border: 1px solid #5a5a5a; background: #1f1f1f; color: #fff; }

/* «Tengo un código» */
#sdtf-web .codigo { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--borde); }
#sdtf-web .codigo label { display: block; font-weight: 700; margin-bottom: 5px; }
#sdtf-web .codigo-fila { display: flex; gap: 6px; }
#sdtf-web .codigo-fila input { flex: 1; min-width: 0; padding: 7px 8px; border-radius: 5px; border: 1px solid #5a5a5a; background: #1f1f1f; color: #fff; text-transform: uppercase; }
#sdtf-web .codigo-fila button { padding: 7px 12px; border: 0; border-radius: 5px; background: var(--verde); color: #fff; font-weight: 700; cursor: pointer; }
#sdtf-web .codigo-fila button:disabled { opacity: .5; cursor: default; }

/* Lienzo */
#sdtf-web .lienzo { position: relative; display: flex; flex-direction: column; min-width: 0; background: #1b1b1b; }
#sdtf-web .herramientas { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px 10px; background: #262626; border-bottom: 1px solid #333; }
#sdtf-web .grupo { display: flex; border: 1px solid #444; border-radius: 6px; overflow: hidden; }
#sdtf-web .grupo button { background: #2f2f2f; color: var(--texto); border: 0; padding: 5px 9px; cursor: pointer; }
#sdtf-web .grupo button + button { border-left: 1px solid #444; }
#sdtf-web .grupo button.activa { background: var(--marca); color: #fff; }
#sdtf-web .herramientas .zoom { color: var(--suave); min-width: 46px; text-align: center; }
#sdtf-web .vista { position: relative; flex: 1; overflow: auto; min-height: 480px; }
#sdtf-web .vista.cuadros { background-color: #fff; background-image:
  linear-gradient(45deg, #d9d9d9 25%, transparent 25%), linear-gradient(-45deg, #d9d9d9 25%, transparent 25%),
  linear-gradient(45deg, transparent 75%, #d9d9d9 75%), linear-gradient(-45deg, transparent 75%, #d9d9d9 75%);
  background-size: 20px 20px; background-position: 0 0, 0 10px, 10px -10px, -10px 0; }
#sdtf-web .escena { position: relative; margin: 20px auto; }
#sdtf-web .escena canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; image-rendering: auto; }
#sdtf-web .escena canvas.cerca { image-rendering: pixelated; }
#sdtf-web .divisor { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px solid var(--marca); cursor: ew-resize; z-index: 3; }
#sdtf-web .divisor::after { content: "⇆"; position: absolute; top: 50%; left: -15px; width: 28px; height: 28px; margin-top: -14px;
  border-radius: 50%; background: var(--marca); color: #fff; display: grid; place-items: center; font-size: 14px; }
#sdtf-web .etiqueta { position: absolute; top: 8px; z-index: 3; background: rgba(0,0,0,.65); color: #fff; padding: 2px 8px; border-radius: 10px; font-size: 11px; }
#sdtf-web .agua { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: .22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='140'%3E%3Ctext x='10' y='80' transform='rotate(-20 130 70)' font-family='Arial' font-size='22' font-weight='bold' fill='%23e6007e'%3E7evensDTF · prueba%3C/text%3E%3C/svg%3E"); }
#sdtf-web .vacio { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #888; padding: 20px; }
#sdtf-web .vacio b { display: block; color: #ddd; font-size: 18px; margin-bottom: 6px; }
#sdtf-web .pie { padding: 6px 10px; font-size: 11px; color: var(--suave); background: #262626; border-top: 1px solid #333; }

@media (max-width: 820px) {
  #sdtf-web { grid-template-columns: 1fr; min-height: 0; height: auto; }
  #sdtf-web .panel { overflow: visible; }
  #sdtf-web .vista { min-height: 380px; }
}
