* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: radial-gradient(circle at center, #e9dfd0, #c5b29c 70%, #a6927b);
  color: #2b1b10;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
      user-select: none;

}

.crucigrama, 
.crucigrama .celda {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}


.menu {
  background: linear-gradient(90deg, #b99363, #8a6844);
  padding: 0;
  position: fixed;
  top: 0;
  width: 100%;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index:150;
  box-shadow: 0 6px 22px rgba(0,0,0,0.38);
}

.menu ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
}

.menu ul li {
  list-style: none;
}

.menu ul li a {
  text-decoration: none;
  color: #1c130c;
  font-weight: 700;
  font-size: 1.15em;
  padding: 8px 14px;
  border-radius: 10px;
  transition: 0.25s ease;
}

.menu ul li a:hover {
  background: #1c130c;
  color: #f7ebd9;
  letter-spacing: 1px;
}

.menu ul li:first-child a:hover {
  background: transparent !important;
  color: inherit !important;
}

.logo-menu {
  width: 55px;
  height: 55px;
  object-fit: contain;
  vertical-align: middle;
  margin-top: -5px;
  transition: transform .25s ease;
  filter: drop-shadow(0 0 12px rgba(140, 95, 52, 0.55));
}

.menu ul li:first-child:hover .logo-menu {
  transform: scale(1.15);
}


header {
  text-align: center;
  padding: 130px 20px 60px;
  background: radial-gradient(circle at top, #e3c6a3, #b28b62 85%);
  color: #2b1b10;
  border-bottom: 6px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.32);
  width: 100%;
}

.crucigrama, .celda, body, html {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
}

header h1 {
  font-size: 3em;
  font-weight: 900;
  width: fit-content;
  margin: 0 auto;
  letter-spacing: 2px;
  white-space: nowrap;
  overflow: hidden;
  border-right: 4px solid #2e2013;
  animation: typing 3s steps(25), blink 0.7s step-end infinite;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}
@keyframes blink {
  50% { border-color: transparent; }
}

.subtitulo {
  margin-top: 18px;
  font-size: 1.2em;
  opacity: 0.95;
  color: #3b2815;
}

.lista-palabras {
  margin-top: 25px;
  display: inline-block;
  background: linear-gradient(145deg, #fff4df, #f0e1c9);
  border-radius: 16px;
  padding: 18px 25px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25), inset 0 0 20px rgba(146, 108, 64, 0.15);
  border: 1px solid rgba(0,0,0,0.1);
  font-size: 1em;
  line-height: 1.6;
  color: #2e2013;
}

#progreso {
  margin-top: 15px;
  font-size: 1.1em;
  font-weight: bold;
}

.botones {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}

button,
.volver {
  background: linear-gradient(90deg, #8b542b);
  color: #fff8ed;
  border: none;
  padding: 10px 22px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1em;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  transition: all 0.25s ease;
}

button:hover,
.volver:hover {
  background: #2b1b10;
  color: #ffffff;
  transform: scale(1.05);
}

.area-central {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 50px;
  width: 90%;
  max-width: 1300px;
  margin: 50px auto 80px;
  flex-wrap: nowrap;
}

.juego {
  background: linear-gradient(145deg, #fff4df, #f0e1c9);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.28), inset 0 0 25px rgba(146,108,64,0.25);
  border: 1px solid rgba(0,0,0,0.1);
  flex: 0 0 620px;
}

.crucigrama {
  display: grid;
  grid-template-columns: repeat(12, 40px); 
  grid-auto-rows: 40px;
  gap: 4px;                                 
  background: #3a2e24;
  padding: 12px;                             
  border-radius: 14px;
  width: fit-content;
  height: fit-content;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  margin: 0 auto;
}

.def-card.tachada {
  text-decoration: line-through;
  opacity: 0.55;
  background: #d0e8d0;
}


.celda {
  width: 35px;
  height: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fdf8f1;
  color: #3b2b1f;
  font-weight: bold;
  font-size: 17px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.celda:hover {
  background-color: #e8cfa6;
  transform: scale(1.1);
}

.celda.seleccionada {
  background: radial-gradient(circle, #b8935c, #8a6b46);
  color: #fff;
}

.celda.correcta {
  background: radial-gradient(circle, #5dbb63, #3d8c40);
  color: #fff;
}

.definiciones {
  background: linear-gradient(145deg, #fff4df, #f0e1c9);
  border: 1.5px solid rgba(0,0,0,0.15);
  padding: 25px;
  border-radius: 20px;
  width: 400px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  flex-shrink: 0;
}

.definiciones h2 {
  text-align: center;
  color: #452811;
  margin-bottom: 18px;
  font-size: 1.8rem;
  font-weight: 800;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.2);
}

.def-card {
  background: #f8f3ea;
  border-left: 6px solid #8d5b2f;
  padding: 10px 14px;
  margin: 10px 0;
  border-radius: 10px;
  font-size: 0.95em;
  line-height: 1.4;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  transition: all 0.25s ease;
}

.def-card:hover {
  background: #e8dbc2;
  transform: scale(1.02);
}

@media (max-width: 1200px) {
  .area-central {
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
  }

  .juego, .definiciones {
    flex: 0 0 auto;
    width: 90%;
    max-width: 600px;
  }
}