@import url('https://fonts.googleapis.com/css2?family=Belgrano&family=Bricolage+Grotesque:opsz,wght@12..96,200..800&display=swap');

body,
* {
  margin: 0;
  padding: 0;
}

/* Estilos base para móviles */
body {
  background-color: #121212;
  color: white;
  font-family: 'Segoe UI', sans-serif;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.2) 0%, rgba(0, 0, 0, 0.05) 100%),
    url('https://www.transparenttextures.com/patterns/paper-fibers.png');
  box-shadow: inset 0 -20px 30px rgba(0, 0, 0, 0.1);
}

hr.especial {
  border: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, #ff4500, #ffd700, #ff4500, transparent);
  margin: 10px auto;
  width: 95%;
}

/*/////////////////////////////////////////////////////////////////////////////////////////////////*/

.texto {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 400;
  font-style: normal;
  text-align: justify;
  padding: 0px 10px;
}

.texto h4 {
  font-family: "Belgrano", serif;
  font-weight: 400;
  font-style: normal;
  text-align: center;
  margin: 5px;
}

.texto h2,
.texto h1 {
  font-family: "Belgrano", serif;
  font-weight: bold;
  text-align: center;
  text-transform: uppercase;
  margin: 5px;
}

.columnas {
  column-count: 2;
  column-gap: 20px;
}

/*/////////////////////////////////////////////////////////////////////////////////////////////////*/

.cinta-policial {
  background: #ffd700;
  color: #000;
  font-family: 'Arial Black', sans-serif;
  padding: 12px 0;
  margin: 40px -10%;
  transform: rotate(-3deg);
  border-top: 3px solid #000;
  border-bottom: 3px solid #000;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  display: flex;
}

.cinta-policial-izq {
  background: #ffd700;
  color: #000;
  font-family: 'Arial Black', sans-serif;
  padding: 12px 0;
  margin: 40px -10%;
  transform: rotate(3deg);
  border-top: 3px solid #000;
  border-bottom: 3px solid #000;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  display: flex;
}

.cinta-scroll {
  display: flex;
  width: fit-content;
  animation: scroll-infinito 5s linear infinite;
}

.cinta-scroll span {
  white-space: nowrap;
  padding-right: 10px;
  font-size: 1.1rem;
}

@keyframes scroll-infinito {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/*/////////////////////////////////////////////////////////////////////////////////////////////////*/

header {
  background-color: black;
}

header h1 {
  text-align: center;
  font-size: 1.8rem;
  color: #80ff00;
  text-shadow: 0 0 10px #ff4500;
  padding-top: 10px;
}

/*/////////////////////////////////////////////////////////////////////////////////////////////////*/
.nav-game {
  padding: 10px 0;
  margin: auto;
}

.nav-game ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-game li {
  display: inline-block;
}

.nav-game a {
  text-decoration: none;
  color: #ccc;
  font-weight: bold;
  padding: 8px;
}

.nav-game a:active,
.nav-game a:hover,
.nav-game a:focus {
  color: #80ff00;
  text-shadow: 0 0 8px #ff4500;
}

/*/////////////////////////////////////////////////////////////////////////////////////////////////*/

.container-periodico {
  overflow: hidden;
  display: flex;
  justify-content: center;
  padding: 5px;
}

.container-periodico img {
  width: 100%;
  max-width: 600px;
  opacity: 0;
  transform: translateX(-100%);
  animation: entradaConParones 1.5s ease-out forwards;
}

@keyframes entradaConParones {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/*/////////////////////////////////////////////////////////////////////////////////////////////////*/

.container-personajes {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 20px 20px;
}

.personaje-card {
  background-color: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.6);
  border-radius: 12px;
  overflow: hidden;

  transition: max-height 0.5s cubic-bezier(0, 1, 0, 1), background 0.3s;
  max-height: 80px;
}

.personaje-card[open] {
  max-height: 1000px;
  transition: max-height 0.8s ease-in-out;
  background-color: rgba(0, 0, 0, 0.8);
  border-color: #ffffff;
}

summary {
  padding: 15px;
  list-style: none;
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  height: 50px;
}

summary::-webkit-details-marker {
  display: none;
}

.avatar {
  height: 100%;
  width: 50px;
  border-radius: 50%;
  margin-right: 15px;
  border: 2px solid #ffffff;
}

.avatar-izq {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-left: 15px;
  border: 2px solid #ffffff;
}

.nombre-izq {
  font-size: 1.2rem;
  font-weight: bold;
  flex-grow: 1;
  text-align: end;
}

.nombre {
  font-size: 1.2rem;
  font-weight: bold;
  flex-grow: 1;
}

.flecha,
.flecha-izq {
  transition: transform 0.3s ease;
  color: #ffffff;
}

.personaje-card[open] .flecha {
  transform: rotate(90deg);
}

.personaje-card[open] .flecha-izq {
  transform: rotate(-90deg);
}

.contenido {
  padding: 20px;
  border-top: 1px solid #333;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.contenido p {
  margin-bottom: 5px;
}

.personaje-card[open] .contenido {
  opacity: 1;
}

.full-img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

/*/////////////////////////////////////////////////////////////////////////////////////////////////*/

.relaciones h2 {
  margin: 0px;
  text-align: center;
  font-weight: bold;
}

.relaciones .imgs {
  display: flex;
  gap: 10px;
  justify-content: space-around;
  align-items: flex-start;
  margin: auto;
  flex-wrap: wrap;
  font-size: 20px;
  margin: 5px;
}

.relaciones .imgs .bien,
.relaciones .imgs .mal {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.relaciones-mal img {
  border: 3px solid red;
}

.relaciones-bien img {
  border: 3px solid #80ff00;
}

.avatar-relacion {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #80ff00;
}

.avatar-relacion:active {
  transform: scale(1.2);
}

/*/////////////////////////////////////////////////////////////////////////////////////////////////*/

.informacion {
  background: #3d2b1f;
  padding: 5px;
  background-image: repeating-linear-gradient(90deg, transparent, transparent 50px, rgba(0, 0, 0, 0.1) 50px, rgba(0, 0, 0, 0.1) 51px);
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.8);
  border-radius: 2%;
  margin: 5px;
  color: rgb(190, 190, 190);
}

/*/////////////////////////////////////////////////////////////////////////////////////////////////*/

.pistas {
  display: grid;
  grid-template-columns: repeat(2, minmax(80px, 1fr));
  padding: 10px;
  justify-content: center;
  justify-items: center;
  gap: 10px;
}

.card-pista {
  width: 150px;
  height: 150px;
  perspective: 1000px;
  cursor: pointer;
  position: relative;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.card-pista.is-flipped .card-inner {
  transform: rotateY(180deg);
  animation: destelloDescubrimiento 0.8s ease-out forwards;
}

.card-front,
.card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 15px;
  border: 1px solid #333;
  overflow: hidden;
}

.card-front {
  background-color: #1a1a1a;
  z-index: 2;
}

.card-back {
  background-color: #2a2a2a;
  transform: rotateY(180deg);
  border-color: #ff4500;
  overflow: hidden;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.card-back p {
  color: #ffd700;
  font-size: 0.6rem;
  text-align: center;
  font-family: sans-serif;
  font-weight: bold;
  margin: 0px 5px;
}

.card-pista img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

@keyframes destelloDescubrimiento {
  0% {
    box-shadow: 0 0 0px #ffd700;
    border-radius: 15px;
  }

  50% {
    box-shadow: 0 0 20px #ffd700;
    border-radius: 15px;
  }

  100% {
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    border-radius: 15px;
  }
}

/*/////////////////////////////////////////////////////////////////////////////////////////////////*/

.zona-secreta {
  text-align: center;
  margin: 30px;
  background: linear-gradient(to bottom, transparent, #000);
}

#btn-misterio {
  background-color: #000000;
  /* Rojo oscuro sangre */
  color: rgb(0, 0, 0);
  border: 2px solid #ffff00;
  padding: 15px 30px;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}

#btn-misterio:hover {
  background-color: #ffff00;
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.8);
}

#btn-misterio i {
  margin-right: 10px;
}

/*/////////////////////////////////////////////////////////////////////////////////////////////////*/

footer {
  text-align: center;
  margin-top: 5px;
  padding: 5px;
  background-color: black;
  color: #666;
}