 body {
      font-family: 'Inter', 'Roboto', 'Open Sans', 'Source Sans Pro', 'Noto Sans', 'IBM Plex Sans', system-ui, sans-serif;
      background: #f9f9f9;
      margin: 0px;
    }
	
	
	
	
	
	
        .header {

            display: flex;

            justify-content: space-between;

            align-items: flex-start; /* Alinea el logo y botones al principio */

            padding: 0 20px;

            background-color: #23374c;

			background-image: url('../assets/background_test.png');

            color: white;

            height: 100px;

            width: 100%; /* Asegura que ocupe todo el ancho */

            box-sizing: border-box; /* Incluye padding y border en el ancho total */

            position: relative; /* Permitir el posicionamiento de las categorías */
			
			margin-bottom: 3%;

        }



        /* Logo header*/

        .logo img {

            max-width: 256px; /* Ajuste del tamaño del logo */

            height: auto;

			margin: 10px;
			

			

        }
	
	
.icon-panel {
      display: flex;
      justify-content: center;
      gap: 10px;
      align-items: flex-start;
    }

    .icon-side {
      display: flex;
      flex-direction: column;
      gap: 5px;
    }

    .icon-top {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 5px;
      margin-bottom: 10px;
    }

    .icon-side img,
    .icon-top img {
      width: 100px;
      cursor: grab;
    }

    #canvas-container {
      display: flex;
      justify-content: center;
    }

    canvas {
      border: 1px solid #ccc;
      border-radius: 6px;
      background-color: white;
      margin-bottom: 20px;
    }

.canvas-actions{
  display:flex;
  justify-content:center;
  gap:10px;
  margin-top:8px;
}


    .controls,
    .button-panel {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 10px;
    }

    .controls label {
      display: flex;
      align-items: center;
      gap: 5px;
    }

    button{
      background: #90C2D2;
      color: white;
      border: none;
      padding: 8px 14px;
      border-radius: 6px;
      cursor: pointer;
      font-family: inherit;
    }

  button-copy,
button-download{
  background:#4a90e2;
  color:#fff;
  border:none;
  padding:8px 14px;
  border-radius:6px;
  cursor:pointer;
  font-family:inherit;
}
button-copy:hover,
button-download:hover{
  background:#357ab8;
}

    button:hover {
      background: #357ab8;
    }

    input[type="color"] {
      cursor: pointer;
    }

    .modal-overlay {
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(240, 240, 240, 0.2);
      backdrop-filter: blur(5px);
      display: none;
      z-index: 9999;
      justify-content: center;
      align-items: center;
    }

    .modal-wrapper {
      width: 850px;
      height: 600px;
      background: #fff;
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
      position: relative;
    }

    .modal-frame {
      width: 100%;
      height: 100%;
      border: none;
    }

    .close-btn {
      position: absolute;
      top: 8px; right: 8px;
      width: 30px;
      height: 30px;
      border: none;
      border-radius: 50%;
      background: #ff4d4d;
      color: #fff;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0;
      font-size:18px;
      font-weight: 800;
    }

    /* Tooltips */
    .tooltip {
      position: absolute;
      background: #333;
      color: #fff;
      padding: 4px 8px;
      border-radius: 4px;
      font-size: 12px;
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.2s ease;
      z-index: 99999;
    }

    .catalog {
      display: grid;
      grid-template-columns: 160px 180px;
      gap: 10px;
      align-items: start;
      margin-right: 10px;
    }

    .catalog-cats {
      background: #fff;
      border: 1px solid #ddd;
      border-radius: 8px;
      padding: 8px;
    }

    .catalog-cats h4 {
      margin: 0 0 8px 0;
      font-size: 14px;
      color: #444;
    }

    #catalogList {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    #catalogList li {
      font-size: 14px;
      padding: 6px 8px;
      border-radius: 6px;
      cursor: pointer;
      transition: background .2s;
    }

    #catalogList li:hover {
      background: #eef5ff;
    }

    #catalogList li.active {
      background: #dbe9ff;
      font-weight: 600;
    }

    .catalog-items {
      background: #fff;
      border: 1px solid #ddd;
      border-radius: 8px;
      padding: 8px;
      display: grid;
      grid-template-columns: 1fr;
      gap: 6px;
      min-height: 180px;
    }

    .catalog-items img {
      width: 128px;
      height: auto;
      border: 1px solid #eee;
      border-radius: 6px;
      cursor: grab;
      background: #fafafa;
      padding: 4px;
      transition: transform .1s;
    }

    .catalog-items img:hover {
      transform: translateY(-2px);
    }

    .catalog-empty {
      grid-column: 1 / -1;
      color: #888;
      text-align: center;
      font-size: 13px;
      padding: 20px 0;
    }


.catalog-subcat-btn{
  font-size: 13px;   /* cambiá acá */
  line-height: 1.4;
}



    /* Fondo de tablero */
    canvas.transparent-bg{
      background-color: transparent !important;
      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 0px;
    }

    /* Toast / Snackbar */
    #app-toast{
      position: fixed;
      left: 50%;
      bottom: 24px;
      transform: translateX(-50%) translateY(20px);
      min-width: 260px;
      max-width: 90vw;
      padding: 10px 14px;
      color: #fff;
      background: linear-gradient(135deg, #1e293b, #0f172a);
      border-radius: 10px;
      box-shadow: 0 10px 30px rgba(0,0,0,.25);
      opacity: 0;
      pointer-events: none;
      transition: opacity .25s ease, transform .25s ease;
      z-index: 100000;
      text-align: center;
      font-size: 14px;
      line-height: 1.3;
    }
    #app-toast.show{ opacity: 1; transform: translateX(-50%) translateY(0); }
    #app-toast.is-warning{ border-left-color: #f59e0b; }
    #app-toast.is-error{ border-left-color: #ef4444; }
    #app-toast.is-success{ border-left-color: #22c55e; }

    /* Confirm modal */
    .confirm-overlay{
      position: fixed;
      inset: 0;
      background: rgba(15,23,42,.45);
      backdrop-filter: blur(3px);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 100000;
    }
    .confirm-dialog{
      width: 360px;
      background: #fff;
      border-radius: 12px;
      padding: 16px 16px 12px;
      box-shadow: 0 20px 60px rgba(0,0,0,.35);
    }
    .confirm-title{
      font-weight: 700;
      font-size: 16px;
      margin-bottom: 6px;
      color: #111827;
    }
    .confirm-text{
      font-size: 14px;
      color: #4b5563;
      margin-bottom: 14px;
    }
    .confirm-actions{
      display: flex;
      gap: 8px;
      justify-content: flex-end;
    }
    button.btn-secondary{ background:#64748b; }
    button.btn-secondary:hover{ background:#475569; }

    /* NUEVO: contenedor de la columna central */
    .center-col{
      display: flex;
      flex-direction: column;
      align-items: center;
    }


    .tb-group{
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding-right: 12px;
      border-right: 1px solid #e5e7eb;
    }
    .tb-group:last-child{ border-right: none; padding-right: 0; }

    .tb-label{
      font-size: 11px;
      color: #64748b;
      margin-right: 2px;
      letter-spacing: .02em;
	  background: #f1f5f9;
      color: #0f172a;
      border: 1px solid #e2e8f0;
      padding: 6px 6px;
      border-radius: 8px;
      line-height: 1;
      cursor: pointer;
      font-family: inherit;
	  
	  
    }

    .app-toolbar .btn{
      background: #f1f5f9;
      color: #0f172a;
      border: 1px solid #e2e8f0;
      padding: 6px 10px;
      border-radius: 8px;
      font-size: 11px;
      line-height: 1;
      cursor: pointer;
      font-family: inherit;
    }
    .app-toolbar .btn:hover{ background: #e2e8f0; }

    .app-toolbar .btn-icon{
      color: #0f172a;
      background: #fff;
      border: 1px solid #e2e8f0;
      width: 34px; height: 34px;
      border-radius: 8px;
      font-size: 20px;
      line-height: 1;
      display: inline-flex; align-items:center; justify-content:center;
      cursor: pointer;
    }
    .app-toolbar .btn-icon:hover{ background: #f8fafc; }




    .readout{
      min-width: 44px;
      text-align: center;
      font-variant-numeric: tabular-nums;
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      padding: 4px 8px;
      border-radius: 8px;
      font-size: 13px;
      color: #0f172a;
      line-height: 1.2;
    }

  

    .app-toolbar .color-input{
      width: 34px; height: 34px;
      border: 1px solid #e2e8f0;
      border-radius: 8px;
      padding: 0;
      background: #fff;
      cursor: pointer;
    }

    .app-toolbar .chk{
      display: inline-flex; align-items: center; gap: 6px;
      font-size: 11px;
	  color: #334155;
	  font-weight: 700;
    }

    /* Texto toolbar estados */
    .btn-icon[disabled],
    .btn[disabled],
    select[disabled],
    input[disabled]{
      opacity: 0.4;
      cursor: not-allowed;
    }

    .btn-icon.is-active,
    .btn.is-active{
      outline: 2px solid #0ea5e9;
      outline-offset: 2px;
    }

    @media (max-width: 900px){
      .app-toolbar{ gap: 10px; }
      .tb-group{ border-right: none; padding-right: 0; }
    }

    /* ==== Shapes sidebar ==== */
    .shape-side{
      display:flex;
      flex-direction: column;
      gap:4px;
      margin-left:8px;
    }

    .shape-title{
      font-size:12px;
      font-weight:700;
      color:#64748b;
      text-transform: uppercase;
      letter-spacing: .06em;
    }

  .shape-grid{
  display:grid;
  grid-template-columns: repeat(2, 45px); 
  grid-auto-rows: 45px;
  gap:8px;
}


    .shape-thumb{
      width:45px; height:45px;
      border:1px solid #e5e7eb;
      border-radius:8px;
      background:#fff;
      cursor:grab;
      display:flex;
      align-items:center;
      justify-content:center;
    }

    .shape-thumb.empty{
      visibility:hidden;
      cursor:default;
      background:transparent;
      border:1px solid transparent;
    }

    .shape-palette{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  align-items:center;
}

/* cuadraditos de color fijo */
.shape-swatch{
  width:15px;
  height:15px;
  border-radius:4px;
  border:1px solid #cbd5e1;
  cursor:pointer;
}

.shape-swatch.is-active{
  outline: 2px solid #1e293b;
  outline-offset: 2px;
}

/* botón redondo de selector personalizado */
.shape-picker-btn{
 position: relative;
  width: 22px;;
  height: 22px;
  border-radius:100%;
  border:4px solid #cbd5e1;
  cursor:pointer;
  background-color:#fff;
  
  
  


  /* 👇 acá va tu ícono de la rueda */
  background-image: url("../assets/palette.png"); 
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
 
  display:flex;
  align-items:center;
  justify-content:center;
}

/* input[type=color] que dispara el picker nativo: lo escondemos visualmente */
.shape-color-input {
  position: absolute;
  opacity: 0;
  cursor: pointer;

  width: 28px;   /* más ancho que la ruedita */
  height: 28px;  /* más alto que la ruedita */

  top: 810px;     /* lo subo un poquito */
  left: 1410px;    /* lo corro un poquito a la izquierda */

  border: none;
  background: none;
}

/* stack vertical de las 2 barras, centradas */
.toolbar-stack{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;        /* espacio entre las 2 barras */
  margin-bottom:12px;
}

/* barra en sí misma */
.app-toolbar{
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0,0,0,.06);
  width: max-content;
  max-width: 100%;
  margin-left: 15%;
}

/* grupos dentro de la barra */
.tb-group{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding-right:12px;
  border-right:1px solid #e5e7eb;
}
.tb-group:last-child{
  border-right:none;
  padding-right:0;
}

/* ya no necesitamos .up-toolbar */
.up-toolbar{
  display:none;
}

/* ===== Background Picker Modal ===== */


/* Tamaños configurables */
:root{
  --bg-modal-max-h: 380px;     /* altura máxima del modal */
  --bg-wheel-size: 110px;      /* tamaño de la ruedita */
  --bg-swatch-w: 56px;         /* ancho de cada swatch */
  --bg-swatch-h: 40px;         /* alto de cada swatch */
  --bg-grid-gap: 8px;          /* separación en la grilla */
}

.bg-modal-overlay{
  position: fixed; inset: 0;
  display: none; 
 align-items: center; 
 margin-left: 60%;
 margin-top:-20%;
  z-index: 1000; /* por encima del toast */
}
.bg-modal-overlay.show{ display: flex; }

.bg-modal{
  width: 180px; max-width: 48vw;
 max-height: var(--bg-modal-max-h);
  background: #fff; border-radius: 14px;
  box-shadow: 0 22px 70px rgba(0,0,0,.35);
  position: relative; padding: 14px 14px 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;           /* oculta desbordes si hubiera */
  padding: 14px 14px 10px;    /* un toque menos de padding */
}

.bg-close{
  position: absolute;
  top: 10px; 
  right: 10px;

  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;              /* que no meta desplazamiento */
  line-height: 1;          /* evita “subir/bajar” el glifo */
  font-size: 15px;         /* tamaño del ✕ */
  font-weight: 800;
  background: #ef4444;
  color: #fff;

  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}



.bg-title{
  margin: 0 0 12px 0; font-size: 14px; font-weight: 500; color: #0f172a;
}

.bg-color-grid{
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 2px; margin-bottom: 16px;
}


.bg-swatch{
  width: 20px; height: 20px; border-radius: 4px; border: 1px solid #e5e7eb; cursor: pointer;
  background: #000000;
}
.bg-swatch[data-color="#000000"]{ background: #000000; }
.bg-swatch[data-color="#D2052C"]{ background: #D2052C; }
.bg-swatch[data-color="#0E6F01"]{ background: #0E6F01; }
.bg-swatch[data-color="#0A71EB"]{ background: #0A71EB; }

.bg-swatch.transparent{
  background-color: transparent !important;
  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: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
}

.bg-wheel { 
  display:flex; 
  flex-direction:column; 
  align-items:center; 
 margin-left:70px;
 margin-bottom: -80px;
}

.bg-wheel-hit{
  position: relative;
  width: 110px;
  height: 110px;
}

.bg-wheel-hit img{
  position: absolute;
  inset: 0;
  width: 20%;
  height: 20%;
  user-select: none;
  pointer-events: none; /* la imagen NO intercepta clics */
}



/* el input ocupa toda el área y recibe el click */
.bg-hex-picker-native{
  position: absolute;
  inset: 0;
  width: 20%;
  height: 20%;
  opacity: 0;           /* invisible pero clickeable */
  cursor: pointer;
  border: 0;
  padding: 0;
  margin: 0;
  /* IMPORTANTE: NO uses display:none ni pointer-events:none */
}











/* Esto oculta al casillero de selección y al rótulo "transparent" */
.tb-group .chk { 
  display: none !important; 
}

/* Shapes sidebar: oculto por defecto, visible con la clase .is-open */
.shape-side { display: none; }
.shape-side.is-open { display: flex; }

/* Si tu sidebar de shapes usa otro id o clase, ajustá el selector arriba. */






/* Estilos del footer */

        footer {

            background-color: #535151;

            padding: 20px;

            color: #333;

            text-align: center;

            font-family: Arial, sans-serif;

            width: 100%;

            margin-top: 3%;

            position: relative;

            box-sizing: border-box;

        }



        .row {

            display: flex;

            justify-content: space-around;

            flex-wrap: wrap;

            max-width: 1000px;

            margin: 0 auto;

        }



        .col {

            margin: 10px;

        }



        /* Enlaces del footer */

        footer a {

			color: #E4E4E4;

            text-decoration: none;

            transition: color 0.3s ease;

        }



        footer a:hover {

        color: #FFFFFF;

        }





    /* Redes sociales ubicadas en el margen superior derecho del footer */

        .social-icons {

            position: absolute;

            top: 6vh;

            right: 1vw;

            display: flex;

            gap: 15px;

        }



        .social-icons a {

            display: inline-block;

            width: 40px;

            height: 40px;

            background-color: #333;

            color: white;

            border-radius: 50%;

            display: flex;

            justify-content: center;

            align-items: center;

            font-size: 18px;

            transition: background-color 0.3s ease;

        }



        .social-icons a:hover {

            background-color: #7B7B7B;

        }



        /* Copyright en el footer */

        .copyright {

            margin-top: 20px;

            font-size: 14px;

			font-weight: bold;

            color: #E4E4E4;

        }

		

		
 /* rotulos de iconos del footer*/

.caption-text-1 {
  font-size: 14px;
  color: #333;
  margin-left: 10%;
  margin-top: -30px;
}


.caption-text-2 {
  font-size: 14px;
  color: #333;
  margin-left: 20%;
  margin-top: -30px;
}

		

		

		 /* Logo footer*/

       .logo-footer img {

            max-width: 128px; /* Ajuste del tamaño del logo */

            height: auto;

			margin-top: 30px;

		



   }


@media screen and (orientation: landscape) and (max-width: 740px) and (max-height: 360px) {
  /* Canvas responsive solo en este tamaño */
  #canvas {
    width: 54vw !important;
    height: auto !important;
    max-height: 58vh !important; /* bajalo a 55vh/50vh si todavía no entra */
    display: block;
  }

  /* Catálogo: tipografías y grid más compactos */
  #catalogList li {
    font-size: 17px;
  }

 

  /* Header sin overflow (evitá 120%) */
  .header {
    height: 64px;
    width: 100%;
  }

  /* Toolbar: que no se desborde y quede más cerca del borde */
  .app-toolbar{
    margin-left: 1%;
    max-width: 58vw;
  }
  
    /* Catálogo: tipografías de categorias y subcategorias*/
   .catalog {
      grid-template-columns: 100px 120px;
    }

    #catalogList li {
      font-size: 11px;
    }

    #catalogList li:hover {
      background: #eef5ff;
    }

    #catalogList li.active {
      background: #dbe9ff;
      font-weight: 600;
    }

    .catalog-items img {
      width: 90px;
    }

    .catalog-items img:hover {
      transform: translateY(-2px);
    }
  
  .catalog-subcat-btn{
  font-size: 10px;   /* cambiá acá */
  line-height: 1.2;
}
  
  

  /* Redes sociales ubicadas en el margen superior derecho del footer */

        .social-icons {          
            top: 17vh;
            right: 35vw;

          

        }
  
  
  
}



/* Mobile: permitir drag con el dedo sin que haga scroll/zoom */
#canvas { touch-action: none; }
.catalog-items img, .shape-thumb { touch-action: none; }


#appRoot{ transform-origin: top left; }

body.force-landscape #appRoot{
  position: absolute;
  top: 0; left: 0;
  width: 100vh;
  height: 100vw;
  transform: rotate(90deg) translateY(-100%);
  overflow: hidden;
}

/* Leyenda en Canvas */
#canvas { touch-action: none; }

<style>
  #canvas-container {
    width: 100%;
    max-width: 900px;
    position: relative;
  }

  #canvas {
    width: 100%;
    height: auto;
    display: block;
    touch-action: none;
  }

  .canvas-hint {
    position: absolute;
    top: 55%;
    left: 60%;
    transform: translate(-50%, -50%);
    z-index: 5;
    pointer-events: none;
    text-align: center;
    font-family: 'Inter', 'Roboto', sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
    color: rgba(0, 0, 0, 0.35);
    max-width: 75%;
    user-select: none;
    opacity: 1;
    transition: opacity 0.6s ease;
  }

  .canvas-hint.hidden {
    opacity: 0;
  }

  @media (max-width: 768px) {
    .canvas-hint {
      font-size: 22px;
      max-width: 85%;
    }
  }
