.boton_pixel_color {
    cursor: pointer;
    width: 50px;
    height: 50px;
    margin-top: 0px;
}
#logo_pixel_color_dtfstore{
    margin-bottom: -5px;
    border-top: 1px solid #8787872b;
}
/* --- Ventana a pantalla completa --- */
.pcd-wrap {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    background: #000000bd;
    backdrop-filter: blur(12px);
    z-index: 400;
    font-family: monospace;
    font-size: 1.2rem;
    display: none;
    max-width: 100%;
}

/* --- Botón cerrar arriba a la derecha --- */
.pcd-close {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 40px;
    height: 40px;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    background: #ff0000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    color: white;
}
.pcd-close:hover {
  background: #ff237f;
}
.pcd-close > .pcd-icon-close {
  width: 22px !important;
  height: 22px !important;
  stroke-width: 2.25 !important;
  pointer-events: none;
  display: block;
}

/* --- Layout general: dos columnas (50% / 50%) --- */
.pcd-body {
  display: grid;
  grid-template-columns: 1fr 1fr;  /* mitad izquierda, mitad derecha */
  width: 100%;
  height: 100%;
}

/* Columna izquierda (sidebar) */
.pcd-sidebar {
  display: flex;
  align-items: center;
  justify-content: center;
}
.pcd-sidebox {
  width: clamp(280px, 70%, 560px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1rem;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  position: relative;
  color:black;
}
.pcd-title {
    margin: 0 0 .5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 1px solid #8080803d;
    color: #ff8400 !important;
}
.pcd-result {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.pcd-swatch {
    width: 60px;
    height: 100px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #ffffff;
    margin-right: 10px;
}
.pcd-values {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.pcd-status {
  font-size: 12px;
  color: #6b7280;
}

/* --- Columna derecha (canvas + controles) --- */
.pcd-main {
  position: relative; 
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Canvas centrado */
.pcd-view {
    display: block;
    width: min(92%, 46vw);
    height: min(86vh, 92%);
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #373737a8;
    cursor: crosshair;
}

/* --- Controles flotando sobre el canvas --- */
.pcd-controls {
    position: absolute;
    top: 34px;
    right: 25px;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: .5rem;
    background: rgba(255,255,255,0.9);
    padding: .25rem .5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Botones redondos */
.pcd-controls .pcd-btn {
  width: 40px;
  height: 40px;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #374151;
  flex: 0 0 auto;
}
.pcd-controls .pcd-btn:hover {
  background: #f3f4f6;
}

/* SVG dentro de los botones (forzado grande) */
.pcd-controls .pcd-btn > .pcd-icon {
  width: 28px !important;
  height: 28px !important;
  stroke-width: 2.5 !important;
  display: block;
  pointer-events: none;
  flex: 0 0 auto;
}

/* Neutralizar reglas globales tipo svg {width:1em;} */
.pcd-controls .pcd-btn > .pcd-icon,
.pcd-close > .pcd-icon-close {
  max-width: none !important;
  max-height: none !important;
}

/* Etiqueta de zoom */
.pcd-zoom-label {
    font-size: .9rem;
    color: #8f8f8f;
    position: absolute;
    text-align: center;
    bottom: 5%;
    z-index: 100;
    align-items: center;
}
/* --- Responsive: en móviles se apila --- */
@media (max-width: 900px) {
  .pcd-body {
    grid-template-columns: 1fr;
    grid-auto-rows: min-content 1fr;
  }
  .pcd-sidebox {
    width: 100%;
    max-width: 95%;
  }
  .pcd-view {
    width: min(96%, 96vw);
    height: min(75vh, 92%);
  }
}


