:root {
  --pink: #f7c8e0;
  --light-pink: #fff0f6;
  --accent: #000000;
  color-scheme: light;
}

/* cuerpo general */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  color: #333;
  background: url('imagenes/mapa2.jpg') center/cover fixed;
  overflow-x: hidden;
}

/* Header */
header {
  position: relative;
  top: 0;
  width: 100%;
  background: none;
  z-index: 1000;
}

/* Botones genéricos */
.button {
  background: rgba(255,255,255,0.6);
  color: #333;
  border: none;
  border-radius: 20px;
  padding: .5rem 1rem;
  font-weight: 500;
  backdrop-filter: blur(5px);
  transition: transform 0.2s ease, background-color 0.3s ease;
}
.button:hover {
  background-color: rgba(255,255,255,0.9);
  transform: scale(1.1);
  color: var(--accent);
}

/* Botón estilo Pokémon box */
.pkmn-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #333;
  line-height: 1;
  height: 50px;
  transition: transform .15s ease;
}
.pkmn-btn:hover { transform: scale(1.05); }

.pkmn-bg {
  height: 100%;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.2));
}
.pkmn-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 5px 12px;
  font-weight: 600;
  text-shadow: 0 1px 1px rgba(255,255,255,.6);
  pointer-events: none;
}
.pkmn-icon { object-fit: contain; }

/* otros html */
#other-body {
  background: rgb(255, 226, 206);
}

/* Video fondo header */
.header-video {  
  position: absolute;  
  inset: 0;  
  width: 100%;
  height: 100%;
  object-fit: cover;  
  pointer-events: none;  
  z-index: -1; 
}

/* Título cabecera */
.titulo-cabecera .titulo-link {
  text-decoration: none;
  font-family: 'Tangerine', cursive;
  font-size: 70px;
  color: rgba(255, 255, 255, 0.85);
  transition: transform 0.3s ease, color 0.3s ease;
  display: inline-block;
}
.titulo-cabecera .titulo-link:hover {
  color: var(--accent);
  transform: scale(1.1);
}

/* Video intro */
#pokemonintro {
  max-width: 50%;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  animation: scaleIn 0.5s ease-out forwards;
  transform: scale(0.8);
  opacity: 0;
}
@keyframes scaleIn {
  0% { transform: scale(0.8); opacity: 0; }
  50% { opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

/* Scroll indicator */
#scroll-indicator {
  position: fixed;
  top: 0;
  right: 0;
  width: 10%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
#scroll-thumb {
  position: absolute;
  left: 50%;
  transition: transform 0.01s ease-in-out;
  max-height: 5vh;
}

/* Cuenta atrás elegante */
.countdown .time-box {
  background: rgba(255, 255, 255, 1);
  border: 2px solid rgba(255, 170, 73, 0.6);
  border-radius: 15px;
  padding: 20px 25px;
  text-align: center;
  min-width: 100px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.countdown .time-box:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}
.countdown .number {
  display: block;
  font-size: 5rem;
  font-weight: bold;
  font-family: 'Tangerine', cursive, 'Segoe UI', sans-serif;
  color: #b87333;
  animation: fadeIn 0.8s ease-in-out;
}
.countdown .label {
  display: block;
  margin-top: 5px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #444;
  font-weight: 500;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px);}
  to { opacity: 1; transform: translateY(0);}
}

/* Sprites */
.sprite {
  width: 50px;  
  height: 50px;
  image-rendering: pixelated;
  background-repeat: no-repeat;
  background-size: 400% 100%;
  animation: walk-cycle 0.8s steps(1) infinite;
}
.sprite.elena { background-image: url("imagenes/elena_sprite.png"); }
.sprite.pepe  { background-image: url("imagenes/pepe_sprite.png"); }
@keyframes walk-cycle {
  0%   { background-position: 0 0; }
  25%  { background-position: -50px 0; }
  50%  { background-position: -100px 0; }
  75%  { background-position: -150px 0; }
  100% { background-position: -200px 0; }
}

/* Frase contador */
#frase_contador {
    margin-top: 20px;
    font-family: 'Tangerine';
    font-size: 70px;
    color: white;
}

/* ===========================
   RESPONSIVE AJUSTES MÓVIL
   =========================== */

/* Tablet (≈960px) */
@media (max-width: 992px) {
  .titulo-cabecera .titulo-link {
    font-size: 56px;
  }
  #pokemonintro {
    max-width: 70%;
  }
}

/* Móvil horizontal o mediano (≈640px) */
@media (max-width: 640px) {

  html {
    font-size: 16px;
  }

  .titulo-cabecera .titulo-link {
    font-size: 48px;
  }

  header {
    text-align: center;
  }

  /* Video más ancho y centrado */
  #pokemonintro {
    max-width: 90%;
    margin: 0 auto;
    display: block;
  }

  /* Botones */
  .pkmn-btn {
    height: 44px;
    font-size: 0.9rem;
  }
  .pkmn-content {
    font-size: 0.9rem;
    padding: 4px 10px;
  }

  /* Countdown más compacto */
  .countdown .time-box {
    padding: 15px 20px;
    min-width: 85px;
    border-radius: 12px;
  }
  .countdown .number {
    font-size: 3.5rem;
  }
  .countdown .label {
    font-size: 0.85rem;
  }

  /* Ajuste sprites */
  .sprite {
    width: 40px;
    height: 40px;
  }

  /* Frase más pequeña */
  #frase_contador {
    font-size: 50px;
    text-align: center;
    margin: 20px 10px;
  }

  /* Márgenes generales */
  body {
    background-attachment: scroll;
  }
}

/* Móvil pequeño (≤480px) */
@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  .titulo-cabecera .titulo-link {
    font-size: 40px;
  }

  .pkmn-btn {
    height: 42px;
    font-size: 0.85rem;
  }

  #pokemonintro {
    max-width: 100%;
    border-radius: 8px;
  }

  .countdown .number {
    font-size: 3rem;
  }

  #frase_contador {
    font-size: 36px;
  }
}