    body {
      margin: 0;
      display: flex;
      justify-content: center;
      align-items: center;
      background-color: #f0f0f0;
      font-family: sans-serif;
      flex-direction: column;
    }

    main {
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 100%;
    }

    h1 {
      margin: 10px 0;
      color: #333;
    }

    p {
      margin: 5px 0;
    }

    .bomba-container {
      display: flex;
      align-items: center;
      gap: 10px;
      margin: 10px 0;
    }

    .bomba {
      width: 30px;
      height: 30px;
      background-color: rgb(128, 128, 128);
      border: 2px solid #333;
      border-radius: 4px;
    }

    .botonera {
      display: flex;
      gap: 10px;
      margin: 10px 0;
    }

    .botonera button {
      padding: 8px 16px;
      cursor: pointer;
      border: none;
      border-radius: 5px;
      font-weight: bold;
      color: white;
    }

    .r {
      background-color: #cc4444;
    }

    .g {
      background-color: #44cc44;
    }

    .b {
      background-color: #4444cc;
    }

    #controls {
      display: flex;
      gap: 10px;
      margin: 10px 0;
    }

    #controls button {
      padding: 8px 16px;
      cursor: pointer;
      background-color: #666;
      color: white;
      border: none;
      border-radius: 5px;
    }

    #marco {
      border: 2px solid #999;
      padding: 20px;
      background-color: white;
      box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
      display: flex;
      flex-direction: column;
      align-items: center;
      margin: 10px 0;
    }

    #itemA {
      width: 400px;
      height: 400px;
      position: relative;
      background-color: rgb(255, 238, 175);
      margin-top: 10px;
      background-size: 20px 20px;
      background-image: none;
    }

    #cuadriculaBtn {
      padding: 10px 20px;
      cursor: pointer;
      background-color: #555;
      color: white;
      border: none;
      border-radius: 5px;
    }

    .cuadro {
      position: absolute;
      width: 20px;
      height: 20px;
      background-color: rgb(128, 128, 128);
    }

    #lazoCanvas {
      position: absolute;
      top: 0;
      left: 0;
      pointer-events: none;
      z-index: 1000;
    }

    .cuadro.select {
      outline: 2px dashed yellow;
    }

    /* Esto en tu CSS */
    .bomba {
      background-color: rgb(99, 99, 99);
      transition: background-color 0.15s linear;
      /* transicion suave */
    }


    .panel-derecho {
      display: flex;
      flex-direction: column;
      gap: 15px;
      min-width: 200px;
    }

    .save-section {
      display: flex;
      flex-direction: column;
      gap: 10px;
      padding: 15px;
      border: 2px solid #999;
      border-radius: 8px;
      background-color: white;
    }

    .save-section h3 {
      margin: 0 0 10px 0;
      color: #333;
      text-align: center;
    }

    .save-section input {
      padding: 8px;
      border: 1px solid #ccc;
      border-radius: 4px;
    }

    .save-section button {
      padding: 10px;
      cursor: pointer;
      border: none;
      border-radius: 5px;
      font-weight: bold;
      color: white;
    }

    .save-btn {
      background-color: #28a745;
    }

    .load-btn {
      background-color: #007bff;
    }

    .delete-btn {
      background-color: #dc3545;
    }

    .saved-list {
      max-height: 200px;
      overflow-y: auto;
      border: 1px solid #ddd;
      border-radius: 4px;
      background-color: #f9f9f9;
    }

    .saved-item {
      padding: 8px;
      border-bottom: 1px solid #eee;
      cursor: pointer;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .saved-item:hover {
      background-color: #e9ecef;
    }

    .saved-item.selected {
      background-color: #007bff;
      color: white;
    }

    .delete-item {
      background: #dc3545;
      color: white;
      border: none;
      border-radius: 3px;
      padding: 2px 6px;
      cursor: pointer;
      font-size: 12px;
    }
    
