     :root {
                  --primary-color: #2c3e50;
                  --secondary-color: #3498db;
                  --accent-color: #e74c3c;
                  --light-gray: #ecf0f1;
                  --dark-gray: #7f8c8d;
                  --cell-size: 30px;
                  --cell-size-mobile: 22px;
              }

              * {
                  box-sizing: border-box;
              }

              body {
                  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
                  background-color: #f5f7fa;
                  color: #333;
                  line-height: 1.6;
                  margin: 0;
                  padding: 0;
              }

              .container {
                  display: flex;
                  flex-direction: column;
                  align-items: center;
                  max-width: 1000px;
                  margin: 0 auto;
                  padding: 20px;
                  width: 100%;
              }

              h1 {
                  text-align: center;
                  font-size: 2.5rem;
                  margin-bottom: 1.5rem;
                  color: var(--primary-color);
                  padding-bottom: 0.5rem;
                  border-bottom: 3px solid var(--secondary-color);
                  position: relative;
              }

              h1::after {
                  content: "";
                  position: absolute;
                  bottom: -6px;
                  left: 50%;
                  transform: translateX(-50%);
                  width: 80%;
                  height: 3px;
                  background-color: var(--accent-color);
              }

              .instructions {
                  background-color: white;
                  padding: 1.5rem;
                  border-radius: 8px;
                  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
                  margin-bottom: 2rem;
                  width: 100%;
                  max-width: 800px;
              }

              .crossword-grid {
                  display: grid;
                  grid-template-columns: repeat(12, var(--cell-size));
                  grid-template-rows: repeat(12, var(--cell-size));
                  gap: 1px;
                  margin: 1.5rem auto;
                  background-color: var(--dark-gray);
                  border: 2px solid var(--primary-color);
                  border-radius: 5px;
                  overflow: hidden;
              }

              .clues {
                  width: 100%;
                  max-width: 800px;
                  display: flex;
                  flex-wrap: wrap;
                  gap: 2rem;
                  margin: 2rem auto;
                  justify-content: center;
              }

              .controls {
                  display: flex;
                  gap: 15px;
                  margin-top: 1rem;
                  justify-content: center;
                  width: 100%;
              }


              .instructions h2 {
                  color: var(--primary-color);
                  margin-top: 0;
                  font-size: 1.3rem;
              }

              .container {
                  display: flex;
                  flex-direction: column;
                  align-items: center;
              }

              .images-container {
                  display: grid;
                  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
                  gap: 25px;
                  margin-bottom: 2.5rem;
                  width: 100%;
              }

              .image-item {
                  position: relative;
                  text-align: center;
                  transition: transform 0.3s ease;
                  cursor: pointer;
              }

              .image-item:hover {
                  transform: translateY(-5px);
              }

              .image-item img {
                  width: 100%;
                  height: auto;
                  border-radius: 10px;
                  border: 3px solid white;
                  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
                  transition: border-color 0.3s ease;
              }

              .image-item:hover img {
                  border-color: var(--secondary-color);
              }

              .image-item .image-label {
                  margin-top: 0.5rem;
                  font-weight: 600;
                  color: var(--primary-color);
              }

              .number-badge {
                  position: absolute;
                  background-color: rgb(0, 162, 255);
                  border: 2px solid var(--accent-color);
                  border-radius: 50%;
                  width: 26px;
                  height: 26px;
                  display: flex;
                  align-items: center;
                  justify-content: center;
                  font-weight: bold;
                  color: var(--accent-color);
                  bottom: -10px;
                  left: -10px;
                  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
              }

              .puzzle-container {
                  width: 100%;
                  display: flex;
                  flex-direction: column;
                  align-items: center;
                  margin-bottom: 2rem;
              }

              .crossword-grid {
                  display: grid;
                  grid-template-columns: repeat(12, var(--cell-size));
                  grid-template-rows: repeat(12, var(--cell-size));
                  gap: 1px;
                  margin: 1.5rem 0;
                  background-color: var(--dark-gray);
                  border: 2px solid var(--primary-color);
                  border-radius: 5px;
                  overflow: hidden;
              }

              .cell {
                  width: var(--cell-size);
                  height: var(--cell-size);
                  background-color: white;
                  display: flex;
                  align-items: center;
                  justify-content: center;
                  font-size: 1rem;
                  position: relative;
                  font-weight: bold;
              }

              .cell.black {
                  background-color: var(--primary-color);
              }

              .cell.highlight {
                  background-color: #fff9c4;
              }

              .cell.correct {
                  background-color: #d4edda;
              }

              .cell.incorrect {
                  background-color: #f8d7da;
              }

              .cell-number {
                  position: absolute;
                  top: 1px;
                  left: 2px;
                  font-size: 0.6rem;
                  font-weight: bold;
                  color: var(--accent-color);
              }

              .cell input {
                  width: 100%;
                  height: 100%;
                  border: none;
                  text-align: center;
                  font-size: 1rem;
                  font-weight: bold;
                  text-transform: uppercase;
                  background: transparent;
              }

              .cell input:focus {
                  outline: 2px solid var(--secondary-color);
                  background-color: #e3f2fd;
              }

              .controls {
                  display: flex;
                  gap: 15px;
                  margin-top: 1rem;
              }

              button {
                  padding: 0.6rem 1.2rem;
                  background-color: var(--secondary-color);
                  color: white;
                  border: none;
                  border-radius: 5px;
                  cursor: pointer;
                  font-weight: bold;
                  transition: background-color 0.3s;
              }

              button:hover {
                  background-color: #2980b9;
              }

              .check-btn {
                  background-color: #27ae60;
              }

              .check-btn:hover {
                  background-color: #219653;
              }

              .reset-btn {
                  background-color: var(--accent-color);
              }

              .reset-btn:hover {
                  background-color: #c0392b;
              }

              .hint-btn {
                  background-color: #9b59b6;
              }

              .hint-btn:hover {
                  background-color: #8e44ad;
              }

              .solve-btn {
                  background-color: #34495e;
              }

              .solve-btn:hover {
                  background-color: #2c3e50;
              }

              .clues {
                  width: 100%;
                  display: flex;
                  flex-wrap: wrap;
                  gap: 2rem;
                  margin-top: 2rem;
              }

              .clue-section {
                  flex: 1;
                  min-width: 300px;
              }

              .clue-section h3 {
                  color: var(--primary-color);
                  border-bottom: 2px solid var(--secondary-color);
                  padding-bottom: 0.5rem;
              }

              .clue-list {
                  list-style-type: none;
                  padding: 0;
              }

              .clue-list li {
                  margin-bottom: 0.8rem;
                  padding-left: 1.5rem;
                  position: relative;
                  cursor: pointer;
                  transition: background-color 0.2s;
                  border-radius: 4px;
                  padding: 6px 6px 6px 24px;
              }

              .clue-list li:hover {
                  background-color: #edf2f7;
              }

              .clue-list li.active {
                  background-color: #e3f2fd;
              }

              .clue-list li::before {
                  content: attr(data-number);
                  position: absolute;
                  left: 6px;
                  font-weight: bold;
                  color: var(--accent-color);
              }

              .feedback {
                  margin-top: 1.5rem;
                  padding: 1rem;
                  border-radius: 5px;
                  text-align: center;
                  font-weight: bold;
                  display: none;
              }

              .success {
                  background-color: #d4edda;
                  color: #155724;
                  display: block;
              }

              .error {
                  background-color: #f8d7da;
                  color: #721c24;
                  display: block;
              }

              .progress-container {
                  width: 100%;
                  background-color: var(--light-gray);
                  border-radius: 10px;
                  margin: 1rem 0;
                  overflow: hidden;
              }

              .progress-bar {
                  height: 20px;
                  background-color: var(--secondary-color);
                  width: 0%;
                  transition: width 0.5s ease;
                  border-radius: 10px;
                  position: relative;
              }

              .progress-text {
                  position: absolute;
                  right: 10px;
                  color: white;
                  font-weight: bold;
                  font-size: 0.8rem;
              }

              .timer {
                  margin-top: 1rem;
                  font-size: 1.2rem;
                  font-weight: bold;
                  color: var(--primary-color);
              }

              .celebration {
                  position: fixed;
                  top: 0;
                  left: 0;
                  width: 100%;
                  height: 100%;
                  display: none;
                  align-items: center;
                  justify-content: center;
                  background-color: rgba(0,0,0,0.7);
                  z-index: 1000;
              }

              .celebration-content {
                  background-color: white;
                  border-radius: 10px;
                  padding: 2rem;
                  text-align: center;
                  max-width: 90%;
                  animation: pop 0.5s;
              }

              @keyframes pop {
                  0% { transform: scale(0.8); opacity: 0; }
                  100% { transform: scale(1); opacity: 1; }
              }

              .celebration h2 {
                  color: var(--primary-color);
                  font-size: 2rem;
                  margin-bottom: 1rem;
              }

              .confetti {
                  position: absolute;
                  width: 10px;
                  height: 10px;
                  opacity: 0;
              }

              .hint-modal {
                  position: fixed;
                  top: 0;
                  left: 0;
                  width: 100%;
                  height: 100%;
                  background-color: rgba(0,0,0,0.7);
                  display: none;
                  justify-content: center;
                  align-items: center;
                  z-index: 1000;
              }

              .hint-content {
                  background-color: white;
                  padding: 2rem;
                  border-radius: 10px;
                  max-width: 90%;
                  position: relative;
              }

              .close-btn {
                  position: absolute;
                  top: 10px;
                  right: 10px;
                  background: none;
                  border: none;
                  font-size: 1.5rem;
                  cursor: pointer;
                  color: var(--dark-gray);
              }

              .close-btn:hover {
                  color: var(--accent-color);
              }

              @media (max-width: 768px) {
                  :root {
                      --cell-size: var(--cell-size-mobile);
                  }

                  h1 {
                      font-size: 2rem;
                  }

                  .images-container {
                      grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
                      gap: 15px;
                  }

                  .cell input {
                      font-size: 0.9rem;
                  }

                  .controls {
                      flex-direction: column;
                      width: 100%;
                  }

                  button {
                      width: 100%;
                  }
              }
              :root {
              --primary-color: #2041ff;
              --secondary-color: #6ea3ff;
              --accent-color: #ffffff;
              --light-color: #aff3ff;
              --success-color: #4caf50;
              --error-color: #f44336;
              --text-color: #000000;
              --white: #ffffff;
            }

            /* Estilos del Header mejorado */
            .header {
              position: fixed;
              top: 0;
              left: 0;
              right: 0;
              background: linear-gradient(
                135deg,
                var(--primary-color),
                var(--secondary-color)
              );
              padding: 0 10%;
              display: flex;
              align-items: center;
              justify-content: space-between;
              z-index: 1000;
              box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
              border-bottom: 2px solid #fff;
              transition: all 0.3s ease;
            }

            .header:hover {
              box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
            }

            .logo {
              font-size: 28px;
              font-family: "Montserrat", sans-serif;
              font-weight: 700;
              color: var(--white);
              text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
              letter-spacing: 1px;
            }

            .navigation ul {
              list-style: none;
              margin: 0;
              padding: 0;
            }

            .header .navigation ul li {
              float: left;
              position: relative;
            }

            .header .navigation ul li a {
              font-family: "Poppins", sans-serif;
              font-size: 16px;
              font-weight: 500;
              color: var(--white);
              text-decoration: none;
              padding: 22px 20px;
              display: block;
              transition: all 0.3s ease;
            }

            .header .navigation ul li a:hover {
              background-color: rgba(255, 255, 255, 0.733);
              transform: translateY(-2px);
            }

            .header .navigation ul li ul {
              position: absolute;
              right: 0;
              width: 220px;
              background: rgba(255, 255, 255, 0.589);
              border-radius: 0 0 8px 8px;
              box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
              display: none;
              overflow: hidden;
            }

            .header .navigation ul li ul li a {
              color: var(--text-color);
              padding: 12px 20px;
              font-size: 14px;
            }

            .header .navigation ul li ul li a:hover {
              background-color: var(--light-color);
              color: var(--primary-color);
            }

            .header .navigation ul li:hover > ul {
              display: initial;
              animation: fadeIn 0.3s ease-out;
            }

            #toggle,
            .header label {
              display: none;
              cursor: pointer;
            }

            .menu {
              width: 28px;
              height: 28px;
              filter: brightness(0) invert(1);
            }

            @media (max-width: 950px) {
              .header label {
                display: initial;
              }

              .header {
                padding: 15px 10%;
              }

              .header .navigation {
                position: absolute;
                top: 100%;
                left: 0;
                right: 0;
                background: var(--primary-color);
                display: none;
                border-radius: 0 0 12px 12px;
              }

              .header .navigation ul li {
                width: 100%;
              }

              .header .navigation ul li a {
                padding: 12px 20px;
              }

              .header .navigation ul li ul {
                position: relative;
                width: 100%;
                left: 0;
                background: rgba(255, 255, 255, 0.1);
              }

              .header .navigation ul li ul li a {
                padding-left: 30px;
              }

              #toggle:checked ~ .navigation {
                display: block;
                animation: slideDown 0.4s ease-out;
                     }
            }
       /* Estilos del cuerpo y fondo */
       body {
              font-family: "Poppins", sans-serif;
              background: linear-gradient(
                135deg,
                hsl(215, 100%, 86%),
                #3b97ff,
                #5c9bee
              );
              margin: 0;
              padding: 0;
              padding-top: 80px;
              min-height: 100vh;
              color: var(--text-color);
              background-size: 400% 400%;
              animation: gradientBG 15s ease infinite;
            }

            /* Animación de fondo */
            @keyframes gradientBG {
              0% {
                background-position: 0% 50%;
              }
              50% {
                background-position: 100% 50%;
              }
              100% {
                background-position: 0% 50%;
              }
            }

            /* Animaciones */
            @keyframes fadeIn {
              from {
                opacity: 0;
                transform: translateY(-10px);
              }
              to {
                opacity: 1;
                transform: translateY(0);
              }
            }

            @keyframes slideDown {
              from {
                opacity: 0;
                transform: translateY(-20px);
              }
              to {
                opacity: 1;
                transform: translateY(0);
              }
            }

            @keyframes pulse {
              0% {
                transform: scale(1);
              }
              50% {
                transform: scale(1.05);
              }
              100% {
                transform: scale(1);
              }
            }

            @keyframes bounce {
              0%,
              20%,
              50%,
              80%,
              100% {
                transform: translateY(0);
              }
              40% {
                transform: translateY(-15px);
              }
              60% {
                transform: translateY(-7px);
              }
            }