* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', sans-serif;
 
  min-height: 100vh;
  color: #ffffff;
  
}
header {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #28333d;
    padding: 10px 20px;  
}
.pixquifoto {
    width: 50px;  
    height: auto;
    border-radius: 8px;
}
nav {
  background-color: #04980e;
  padding: 10px 0;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
}

nav ul li {
  display: inline;
}

nav .button {
  background-color: #1a3c5938;
  color: white;
  border: none;
  padding: 10px 20px;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

nav .button:hover {
  background-color: #024506;
}
main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 30px 70px;
  background-image: url(/cultura/img/fondo\ principal.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.juego {
  background-color: rgba(255, 255, 255, 0.25); 
  backdrop-filter: blur(10px); 
  border-radius: 12px;
  padding: 20px;
  width: 400px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
  color: #fff; 
}

.juego:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  
}

.juego img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  margin-bottom: 15px;
  background-color: #ecf0f138;
  border-radius: 8px;
  image-rendering: pixelated;
}

.juego h2 {
  color: #1a3c59;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.juego p {
  color: #ffffff;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.btn-jugar {
  background-color: #0cab21a0;
  color: white;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  justify-content: center; 
  align-items: center;
}

.btn-jugar:hover {
  background-color: #052902;
}
footer {
  background-color: #28333d;
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 14px;
}
#chat-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  cursor: pointer;
}

#chat-box {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 300px;
  background-color: white;
  border: 2px solid #1a3c59;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hidden {
  display: none;
}

#chat-header {
  background-color: #1a3c59;
  color: white;
  padding: 10px;
  font-weight: bold;
}

#chat-messages {
  padding: 10px;
  flex-grow: 1;
  overflow-y: auto;
}

.bot-message {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.pixqui-avatar {
  width: 30px;
  height: 30px;
  margin-right: 10px;
}

.mensaje-burbuja {
  background-color: #e0f2ff;
  padding: 8px 12px;
  border-radius: 12px;
}

#user-input {
  border: none;
  border-top: 1px solid #ccc;
  padding: 10px;
  outline: none;
}
@media (max-width: 600px) {
  header h1 {
    font-size: 1.6rem;
  }

  .pixquifoto {
    width: 60px;
    top: 10px;
    left: 10px;
  }

  main {
    padding: 20px 15px;
    gap: 20px;
  }

  .juego {
    padding: 15px;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
}
