/* ====== TIPOGRAFÍAS VAMPÍRICAS ====== */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;900&family=UnifrakturCook:wght@700&family=IM+Fell+English+SC&display=swap');

/* ====== RESET ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ====== FONDO GÓTICO ====== */
body {
  font-family: 'Cinzel', serif;
  color: #e8e6e3;
  background: radial-gradient(circle at center, #080808 30%, #000 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  width: 100%;
  height: 100%;
  background: url('http://www.transparenttextures.com/patterns/snow.png');
  opacity: 0.10;
  animation: starsMove 15s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes starsMove {
  0% { background-position: 0 0; }
  100% { background-position: 500px 500px; }
}

/* Neblina roja suave */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle, rgba(120,0,0,0.25), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ====== PANTALLAS ====== */
.screen {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 20px;
  text-align: center;
  animation: fadeIn 1.2s ease;
  position: relative;
  z-index: 2;
}

.screen.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ====== TÍTULOS ====== */
.main-title { 
    font-family: 'UnifrakturCook', cursive; 
    font-size: clamp(2.5rem, 6vw, 4.2rem); 
    color: #0A0603; 
    text-shadow: 0 0 20px #280A0A, 0 0 40px #5c0000; 
    margin-bottom: 20px; 
    letter-spacing: 3px;
 }

 .content-title { 
    font-family: 'IM Fell English SC', serif; 
    font-size: clamp(2rem, 5vw, 3rem); 
    color: #d7c6c6; 
    text-shadow: 0 0 15px #7E475E; 
    margin-bottom: 30px;
}

/* ===== CONTENEDOR DE GOTAS ===== */
.blood-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 999;
}

/* ===== GOTAS DE SANGRE ===== */
.blood-drop {
  position: absolute;
  width: 8px;
  height: 15px;
  background: linear-gradient(#770000, #ff0000);
  border-radius: 50%;
  box-shadow: 0 0 10px #ff0000;
  animation: fallBlood 1.5s linear forwards;
}

@keyframes fallBlood {
  0%   { transform: translateY(-50px) scale(0.7); opacity: 1; }
  95%  { opacity: 1; }
  100% { transform: translateY(110vh) scale(1); opacity: 0; }
}

/* ===== TÍTULO ===== */
.vamp-title {
  position: relative;
  display: inline-block;
  text-shadow: 0 0 20px #ff0000;
  z-index: 10;
}

/* ===== IMPACTO Y TEMBLOR ===== */
@keyframes impactShake {
  0%   { transform: translate(0px, 0px) rotate(0deg); }
  20%  { transform: translate(-2px, 1px) rotate(-0.3deg); }
  40%  { transform: translate(2px, -1px) rotate(0.3deg); }
  60%  { transform: translate(-1.5px, 1px) rotate(-0.2deg); }
  80%  { transform: translate(1.5px, -1px) rotate(0.2deg); }
  100% { transform: translate(0px, 0px) rotate(0deg); }
}

.shake {
  animation: impactShake 0.25s ease;
}


/* ===== LETRAS SEPARADAS ===== */
.vamp-title span {
  position: relative;
  display: inline-block;
  transition: 0.3s;
}

/* ===== MANCHAS ROJAS EN LETRAS ===== */
.vamp-title span.stained {
  color: #4d0000;
  text-shadow: 0 0 20px #ff0000;
}

/* ===== CHORREO POR LETRA ===== */
.vamp-title span.stained::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 4px;
  height: 0px;
  background: linear-gradient(#770000, #ff0000);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: dripLetter 1s forwards;
}

@keyframes dripLetter {
  0%   { height: 0; opacity: 1; }
  50%  { height: 18px; }
  100% { height: 35px; opacity: 0; }
}

.letter {
  display: inline-block;
}

.space {
  display: inline-block;
  width: 0.5em; /* tamaño del espacio */
}

/* ====== TEXTOS ====== */
.silver-text {
  color: #dcdcdc;
  text-shadow: 0 0 8px #ffffff66;
}

.dark-text {
  color: #a30000;
  text-shadow: 0 0 10px #660000cc;
}

/* ====== BOTONES ====== */
.menu-button, .action-button, .author-btn {
  background: #0A0603;
  color: #E1CCB9;
  border: 1px solid #AE6578;
  border-radius: 10px;
  padding: 15px 25px;
  font-family: 'Cinzel', serif;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  backdrop-filter: blur(12px);
}

.menu-button:hover, .action-button:hover, .author-btn:hover {
  background: rgba(145, 0, 30, 0.9);
  box-shadow: 0 0 25px #b30000;
  transform: translateY(-3px);
}

/* ====== BOTÓN VOLVER ====== */
.back-button {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(120, 0, 0, 0.15);
  border: 1px solid #7c0000;
  border-radius: 8px;
  padding: 10px 20px;
  color: #f4f4f4;
  font-size: 1.1rem;
  cursor: pointer;
  backdrop-filter: blur(5px);
  transition: 0.3s;
}

.back-button:hover {
  background: rgba(160, 0, 0, 0.3);
  box-shadow: 0 0 20px #8b0000;
  transform: translateX(-5px);
}

/* ====== CUADROS DE PERSONAJES ====== */
.character-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 columnas */
  grid-auto-rows: auto;                 /* filas automáticas */
  gap: 18px;
  padding: 10px;
  margin-top: 20px;
}

.char-box {
  display: block;
  padding: 12px 15px;
  border: 1px solid #3c1b1b;
  background: linear-gradient(#1d0f0f, #0e0606);
  color: #d9d9d9;
  font-family: 'IM Fell English', serif;
  text-align: center;
  font-size: 1.1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s ease;
  box-shadow: 0 0 8px #00000070;
}

.char-box:hover {
  color: #fff;
  border-color: #a60000;
  box-shadow: 0 0 15px #a6000070, 0 0 25px #ff000030;
  background: linear-gradient(#2a0e0e, #0f0000);
  transform: translateY(-3px) scale(1.03);
}

.char-box:active {
  transform: scale(0.97);
}

/* ====== CUADROS DE INFORMACIÓN ====== */
.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 25px;
  padding: 20px;
}

.data-box {
  display: block;
  padding: 12px 15px;
  border: 1px solid #3c1b1b;
  background: linear-gradient(#1d0f0f, #0e0606);
  color: #d9d9d9;
  font-family: 'IM Fell English', serif;
  text-align: center;
  font-size: 1.1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s ease;
  box-shadow: 0 0 8px #00000070;
}

.data-box:hover {
  transform: translateY(-5px);
  border-color: #a30000;
  box-shadow: 0 0 25px #a30000;
}

.data-box strong {
  color: #ff3b3b;
  font-family: 'IM Fell English SC', serif;
  font-size: 1.2rem;
}

/* ====== BOTÓN INFO ====== */
.info-button {
  margin-top: 10px;
  background-color: #4d0000;
  color: white;
  padding: 10px 15px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
}

.info-button:hover {
  background-color: #8b0000;
  box-shadow: 0 0 15px #8b0000;
  transform: scale(1.08);
}

/* ====== PLAYLIST ====== */

.playlist-card {
  background: rgba(30, 0, 10, 0.75);
  border: 1px solid #8b0000;
  border-radius: 12px;
  padding: 15px;
  width: 320px;
  max-width: 100%;
  text-align: center;
  box-shadow: 0 0 10px rgba(139, 0, 0, 0.25);
  transition: transform .3s ease, box-shadow .3s ease;
}

/* Efecto de hover */
.playlist-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(163, 0, 0, 0.9);
}

/* Títulos */
.playlist-card h3 {
  color: #d6b1b1;
  margin-bottom: 10px;
  font-weight: 600;
}

/* Spotify iframe */
.spotify-embed {
  border-radius: 8px;
  width: 100%;
  height: 80px;
  border: none;
  margin-bottom: 12px;
}


/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .character-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .data-grid { grid-template-columns: 1fr; }
}
