 body {
  margin: 0;
  font-family: 'Cinzel', serif;
  background-color: #fffef9;
}

.encabezado {
  text-align: center;
  padding: 20px;
  background-color: #fffef9;
  border-bottom: 2px solid #ccc;
}

.logo {
  width: 120px;
  margin-bottom: 10px;
}

.encabezado h1 {
  font-size: 2.5rem;
  color: #2a8736;
  margin: 10px 0;
}

.descripcion {
  font-size: 1.1rem;
  color: #444;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
  text-align: center;
  font-style: italic;
  background: #fffef9;
  border-left: 4px solid #2a8736;
  padding: 10px 15px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.escena-juego {
  padding: 20px;
  text-align: center;
}

.contador {
  font-size: 2rem;
  color: #2a8736;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px #fff8e1;
}

.camino {
  position: relative;
  height: 400px; /* antes 250px, ahora más alto */
  background-image: url('imagenes/playaysol.gif');
  background-size: cover; /* se adapta al ancho */
  background-position: center;
  border: 2px solid #ccc;
  margin-bottom: 20px;
  animation: moverCamino 15s linear infinite; /* más lento para mapa grande */
}


@keyframes moverCamino {
  from { background-position: 0 0; }
  to { background-position: 100% 0; }
}

#personaje {
  position: absolute;
  left: 5%;
  bottom: 10px;
  width: 140px; /* más grande */
  transition: left 0.5s ease;
}

#camioneta {
  position: absolute;
  right: 5%;
  bottom: 10px;
  width: 180px; /* más grande */
}


/* Barra de progreso */
.progreso {
  width: 80%;
  height: 20px;
  background: #eee;
  border-radius: 10px;
  margin: 20px auto;
  overflow: hidden;
}

#barra {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #2a8736, #27ae60);
  transition: width 0.5s ease;
}

/* Animación del contador */
@keyframes salto {
  0% { transform: scale(1); color: #2a8736; }
  50% { transform: scale(1.4); color: #d35400; text-shadow: 0 0 12px #f1c40f; }
  100% { transform: scale(1); color: #2a8736; text-shadow: 1px 1px 3px #fff8e1; }
}

.animar {
  animation: salto 0.5s ease;
}

/* Confeti */
.confeti {
  position: absolute;
  top: 0;
  width: 10px;
  height: 10px;
  background: #f1c40f;
  animation: caerConfeti 3s ease-out forwards;
}

@keyframes caerConfeti {
  0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

/* Mensajes motivacionales */
.mensaje {
  font-size: 1.2rem;
  color: #d35400;
  margin-top: 15px;
  font-weight: bold;
}
.pulseras-visual {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.pulsera-icono {
  display: inline-block;
  width: 25px;
  height: 25px;
  background: #d35400;
  border-radius: 50%;
  box-shadow: 0 0 5px #f1c40f;
}
button {
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(135deg, #2a8736, #27ae60); /* verde institucional */
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, background 0.3s ease;
  margin-top: 15px;
}

button:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #27ae60, #2ecc71);
}

button:active {
  transform: scale(0.95);
  background: linear-gradient(135deg, #1e8449, #27ae60);
}
@media (max-width: 768px) {
  .camino {
    height: 250px; /* más compacto en mobile */
  }

  #personaje {
    width: 90px;
    left: 2%;
  }

  #camioneta {
    width: 120px;
    right: 2%;
  }

  .contador {
    font-size: 1.5rem;
  }

  button {
    font-size: 1rem;
    padding: 10px 20px;
  }
}
/* Animación de salto */
#personaje.saltando {
  animation: salto 0.8s ease;
}
@keyframes salto {
  0% { bottom: 0; }
  50% { bottom: 80px; }
  100% { bottom: 0; }
}

/* Enemigos */
.enemigo {
  position: absolute;
  bottom: 0;
  width: 80px;
}

/* Pulseras dentro del camino */
.pulsera-item {
  position: absolute;
  width: 40px;
  cursor: pointer;
}

/* Score arcade retro */
.score-arcade {
  font-family: 'Press Start 2P', monospace;
  color: #f1c40f;
  font-size: 20px;
  margin-top: 10px;
}

.footer-artesanal {
  background: #2a8736; /* verde institucional */
  color: #fff;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  border-top: 4px solid #27ae60;
  font-family: 'Dancing Script', cursive;
}

.footer-artesanal p {
  margin: 0;
  font-size: 1rem;
}

.footer-artesanal .redes {
  margin-top: 10px;
}

.footer-artesanal .redes a {
  color: #fff;
  margin: 0 12px;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease, transform 0.2s ease;
}

.footer-artesanal .redes a:hover {
  color: #f1c40f; /* dorado artesanal */
  transform: scale(1.1);
}
