/* ===== Reset y tipografía global ===== */
*{
  font-display: swap;
}

body {
font-family: sans-serif;
    background: #f9fafbfa url(../imagen/fondo.png) no-repeat center fixed;
    background-size: cover;
    padding: 0;
    margin: auto;
    background-blend-mode: color-burn;
}

p {
  line-height: 1.3em;
}

/* ===== Encabezados ===== */
h1 {
  font-size: 1.5em;
  font-weight: 600;
  text-decoration: inherit;
  text-shadow: 1px 1px #fff;
  text-align: center;
  margin-bottom: 1em;
}

h2, .bloque h2 {
  font-size: 1.2em !important;
  margin: 0 0 1em !important;
  color: #1c3a65;
}

h3, .bloque h3 {
  font-size: 1em !important;
  margin: 0 0 1em !important;
  color: #1c3a65;
}

#cacaTest h2 {
  font-size: 1.2em !important;
  margin-bottom: 0.5em !important;
}

/* ===== Contenedores y bloques ===== */
main {
  padding: 2rem;
  max-width: 750px;
  margin: auto;
}

.bloque, #inicio, #juego, #puntuaciones {
  background: #ffffffdb;
  padding: 2em;
  border-radius: 8px;
  border: 2px solid #1c3a65;
  margin-bottom: 1em;
}

.game-features, .cacas-features {
  margin-top: 0 !important;
  margin-bottom: 0.5em;
}

/* ===== Listas y tablas ===== */
ol {
  line-height: 1.6em;
}


li{
  padding-bottom:0.5em;
}

#puntuaciones ol {
  column-gap: 20px;
}

@media (min-width: 768px) {
  #puntuaciones ol {
    column-count: 2;
  }
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 40px;
}

th, td {
  border: 1px solid #ccc;
  padding: 12px;
}

th {
  background-color: #1c3a65;
  color: #fff;
}

td {
  background-color: #fff;
}

/* ===== Formularios ===== */
#inicio input {
  margin: 0.3rem 0;
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #1c3a65;
  border-radius: 0.5rem;
}

#cacaTest label {
  display: block !important;
  margin-bottom: 0.5em;
}

#cacaTest .question {
  margin-bottom: 1em;
}

/* ===== Botones ===== */
button {
  display: block;
  width: 100%;
  margin: 0.5rem 0;
  padding: 1rem;
  background-color: #1c3a65;
  color: white;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #f0f0f0;
}

#inicio button:hover,
#juego button:hover,
.bloque button:hover {
  background-color: #f4981b;
}

#footer button {
  margin: 0 !important;
}

/* ===== Logos e imágenes ===== */
#logo {
  width: 50px;
  height: auto;
  background: #ffffffdb;
  padding: 0.5em;
  border-radius: 8px;
  margin-right: 1em;
  border: 2px solid #1c3a65;
}

/* ===== Textos secundarios ===== */
.tiempo,
.situacionesSuperadas {
  margin-top: 1rem;
  color: #555;
  font-size: 0.9rem;
}

/* ===== Menús ===== */
.menu {
  position: relative;
  display: inline-block;
  margin-left: auto;
}

.menu-button {
  width: 100%;
  margin: 0.5em 0 0 0;
  background: #ffffffdb;
  border-radius: 8px;
  color: #1c3a65;
  text-align: left;
  border: 2px solid #1c3a65;
  cursor: pointer;
}

.menu-options {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  border: 2px solid #1c3a65;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 1000;
  min-width: 250px;
}

.menu-options.show,
.menu.show .menu-options {
  display: block;
}

.menu-options a {
  display: block;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: #333;
  transition: background 0.2s;
  border: 2px solid transparent;
  border-radius: 5px;
}

.menu-options a:hover {
  background-color: #f0f0f0;
  border-radius: 5px;
}

.menu-options a.active {
  background-color: #1c3a65;
  border: 2px solid #1c3a65;
  border-radius: 5px;
  color: #fff;
}

/* ===== Layouts flex ===== */
.top {
  display: flex;
  margin-bottom: 2em;
}

.fila-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: auto;
}

.fila-label span {
  width: 300px;
}

.indice {
  text-align: center;
  margin-bottom: 1em;
}

.indice a {
  margin-right: 0.5em;
}

/* ===== Barras de progreso ===== */
.barra {
  height: 20px;
  border-radius: 10px;
  background-color: #eee;
  margin-bottom: 5px;
  overflow: hidden;
}

.relleno {
  height: 100%;
  transition: width 0.3s ease;
}

.estres { background-color: #ff4d4d; }
.manu { background-color: #ffb84d; }
.paula { background-color: #4db8ff; }
.vila { background-color: #a64dff; }

/* ===== Botón mute ===== */
.mute-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #fff;
  border: none;
  border-radius: 50%;
  padding: 10px 15px;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  z-index: 9999;
  transition: background 0.3s;
  width: auto !important;
}

/* ===== Footer ===== */
#footer {
  background: #f9f9f9;
  padding: 2rem 2rem 1rem;
  font-family: Arial, sans-serif;
  color: #444;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
  text-align: center;
  margin-top: 2em;
  margin-bottom: 0;
  font-size: 0.9rem;
}

#footer section[aria-label="Sobre Apreton"] h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #222;
}

#footer section[aria-label="Sobre Apreton"] p {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.5;
}

.social-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 1rem auto;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 400px;
}

.social-list li {
  display: inline-block;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  color: #fff;
  transition: filter 0.3s ease;
}

.btn:hover,
.btn:focus {
  filter: brightness(0.9);
  outline: none;
}

.btn-twitter { background-color: #1DA1F2; }
.btn-whatsapp { background-color: #25D366; }
.btn-instagram { background-color: #E1306C; }

.instagram-message {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #666;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.legal-info {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: #888;
}

.legal-info a {
  color: #888;
  text-decoration: underline;
}

.legal-info a:hover,
.legal-info a:focus {
  color: #555;
  outline: none;
}
