#dialog-text {
  white-space: pre-wrap;  
  display: inline-block;
  width: 100%;            
}

/* ===== Base ===== */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Press Start 2P', Arial, sans-serif;
  scroll-behavior: smooth;
  color: white;
  overflow-x: hidden;
  background: url("Images/bgsf.png") no-repeat center top fixed;
  background-size: cover;
}

.retro { font-family: 'Press Start 2P', cursive; }

/* ===== Hero (pantalla principal) ===== */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  text-align: center;
}

.arwing {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 75vw;
  transform: translate(-50%, -50%);
  z-index: 0;
  opacity: 0.85;
}

.logo {
  position: absolute;
  top: 1%;
  left: 50%;
  transform: translateX(-50%);
  width: 60vw;
  z-index: 2;
}

.foxteam {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 65vw;
  z-index: 2;
}

/* Texto presione start */
#start-text {
  position: absolute;
  bottom: 7%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5vw;
  cursor: pointer;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: colorPulse 0.6s infinite alternate;
  transition: transform .25s ease, color .25s ease;
}

#start-text:hover { 
  transform: translateX(-50%) scale(1.15); 
  color: white !important; 
}

#start-text .circle {
  display: inline-block;
  width: 1.5vw;
  height: 1.5vw;
  border-radius: 50%;
  background: red;
  margin: 0 8px 0 10px;
  vertical-align: middle;
  animation: circlePulse 0.6s infinite alternate;
  transition: all .2s ease;
}
#start-text:hover .circle { background: white !important; }

@keyframes colorPulse { 
  0% { color: red } 
  100% { color: white } 
}
@keyframes circlePulse { 
  0% { background: red } 
  100% { background: white } 
}

.copyright {
  position: absolute;
  bottom: 3%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.2vw;
  color: rgba(255,255,255,0.85);
  z-index: 2;
}

/* Contenedor del título */
.historia-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: black;                
  padding: 20px 0;
  border-bottom: 3px solid rgba(0, 200, 255, 0.7); 
  text-align: center;
  z-index: 10;
}

.section-header {
  width: 100%;
  background: black;
  padding: 20px 0;
  border-bottom: 3px solid rgba(0, 200, 255, 0.7);
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  margin: 0;
  font-family: 'Press Start 2P', cursive;
  font-size: 2.5vw;
  color: white;
}

/* ===== Historia ===== */
.historia {
  position: relative;
  height: 100vh;
  width: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Planeta */
.planet {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20vw;
  transform: translate(-50%, -50%);
  z-index: 0;
  opacity: 0.6;
}

/* Pepper */
.pepper {
  position: absolute;
  bottom: 50%;
  left: 17%;
  width: 18vw;
  z-index: 2;
  transform: perspective(800px) rotateY(28deg);
  transform-origin: center;
  box-shadow: 0 0 80px 40px rgba(0,200,255,0.6);
}

/* Starfox */
.starfox {
  position: absolute;
  bottom: 31%;
  right: 15%;
  width: 22vw;
  z-index: 2;
}

/* Texto del diálogo */
.dialog {
  position: absolute;
  top: 73%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1350px;
  min-height: 140px;
  background: rgba(0, 0, 0, 0);
  padding: 25px;
  border-radius: 12px;
  font-family: 'Press Start 2P', cursive;
  font-size: 1.2vw;
  color: white;
  text-align: left;
  line-height: 1.5;
  overflow: hidden;
}

/* ===== Sinopsis ===== */
.sinopsis {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  min-height: 80vh;
  padding: 60px 40px;
  background: rgba(0,0,0,0.6);
  color: white;
}

.sinopsis-content {
  flex: 1;
  max-width: 600px;
  font-family: 'Press Start 2P', cursive;
  font-size: 1.1vw;
  line-height: 1.8;
  text-align: left;
}

.sinopsis-content .highlight {
  margin-top: 25px;
  font-size: 1.3vw;
  color: #00c8ff;
  text-shadow: 0 0 10px rgba(0,200,255,0.8);
}

.logo-equipo-container {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.logo-equipo {
  max-width: 200px;
  height: auto;
}

.sinopsis-poster {
  flex: 0.5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sinopsis-poster img {
  max-width: 100%;
  height: auto;
  border: 4px solid #00c8ff;
  box-shadow: 0 0 30px rgba(0,200,255,0.6);
  border-radius: 12px;
}

/* ===== Personajes ===== */
.personajes {
  padding: 80px 40px;
  background: rgba(0,0,0,0.7);
  color: white;
}

.personaje {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 80px;
}

.personaje.invertido {
  flex-direction: row-reverse;
}

.personaje-img {
  width: 25%;
  max-width: 300px;
}

.personaje-info {
  flex: 1;
  font-family: 'Press Start 2P', cursive;
  font-size: 1vw;
  line-height: 1.6;
}

.personaje-info h3 {
  margin-bottom: 15px;
  font-size: 1.5vw;
  color: #00c8ff;
  text-shadow: 0 0 10px rgba(0,200,255,0.8);
}

/* Transmisión */
.transmision {
  display: flex;
  align-items: center;
  margin-top: 20px;
}

.avatar {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-right: 15px;
  filter: none;
}

.dialog-box {
  background: rgba(0, 50, 120, 0.8);
  border: 2px solid #00c8ff;
  border-radius: 8px;
  padding: 10px 15px;
  min-height: 120px;
  display: flex;
  align-items: center;
  font-size: 0.9vw;
  width: 500px;
  box-shadow: 0 0 15px rgba(0,200,255,0.5);
}

.dialog-box p {
  margin: 0;
  white-space: pre-wrap;
}

.personaje.greatfox {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.greatfox-container {
  margin: 30px 0;
}

.greatfox-big {
  max-width: 80%;
  height: auto;
}

.personaje.greatfox .personaje-info {
  font-size: 1vw;
  max-width: 800px;
  margin-bottom: 20px;
}

.personaje.greatfox .transmision {
  justify-content: center;
}

/* ===== Gameplay ===== */
.gameplay {
  padding: 80px 40px;
  background: rgba(0,0,0,0.7);
  color: white;
}

.gameplay-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 40px 0;
  gap: 40px;
}

.gameplay-item.reverse {
  flex-direction: row-reverse;
}

.gameplay-text {
  flex: 1;
  font-family: 'Press Start 2P', cursive;
  font-size: 1vw;
  line-height: 1.6;
}

.gameplay-text h3 {
  color: #00c8ff;
  margin-bottom: 15px;
  text-shadow: 0 0 10px rgba(0,200,255,0.8);
}

.gameplay-media {
  flex: 1;
  text-align: center;
}

.gameplay-media img {
  max-width: 100%;
  border: 4px solid #00c8ff;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,200,255,0.6);
  background: rgba(0,0,0,0.5);
}

/* ===== Tips & Secretos ===== */
.tips {
  padding: 80px 40px;
  background: rgba(0,0,0,0.7);
  color: white;
  text-align: left;
}

.tips-content {
  max-width: 1100px;
  margin: 0 auto;
  font-family: 'Press Start 2P', cursive;
  font-size: 1vw;
  line-height: 1.6;
}

.routes-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  margin: 40px 0;
}

.routes-container img {
  max-width: 100%;
  height: auto;
  border: 4px solid #00c8ff;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 200, 255, 0.6);
}

.routes-table img {
  max-width: 60%;
}

.routes-table, .routes-map {
  flex: 1;
  text-align: center;
}

.map-caption {
  margin-top: 8px;
  font-size: 0.9rem;
  opacity: 0.8;
}

.miyamoto-text {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px auto;
  font-family: 'Press Start 2P', cursive;
  line-height: 1.6;
}

.miyamoto-text h3 {
  color: #00c8ff;
  margin-bottom: 15px;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin: 30px auto;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== Development ===== */
.development {
  padding: 80px 40px;
  background: rgba(0,0,0,0.7);
  color: white;
  text-align: left;
  font-family: 'Press Start 2P', cursive;
}

.development-content {
  max-width: 1100px;
  margin: 0 auto;
  font-size: 1vw;
  line-height: 1.6;
}

.development-content p {
  margin-bottom: 30px;
}

.creadores {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.creador {
  text-align: center;
  max-width: 200px;
}

.creador img {
  width: 100%;
  border: 4px solid #00c8ff;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,200,255,0.6);
  margin-bottom: 12px;
}

.creador p {
  font-size: 1vw;
  color: #00c8ff;
  text-shadow: 0 0 10px rgba(0,200,255,0.8);
}

.review {
  padding: 80px 40px;
  background: rgba(0,0,0,0.7);
  color: white;
  font-family: 'Press Start 2P', cursive;
}

.review-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}

.review-text {
  flex: 1;
  font-size: 1vw;
  line-height: 1.6;
}

.review-image {
  flex: 0.5;
  display: flex;
  justify-content: center;
}

.review-image img {
  max-width: 100%;
  height: auto;
  border: 4px solid #00c8ff;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,200,255,0.6);
}

.review-transmision {
  justify-content: center;
  margin-top: 40px;
}
.review-transmision .dialog-box {
  width: 550px;
  min-height: 120px;
}

.footer {
  text-align: center;
  font-family: 'Press Start 2P', cursive;
  font-size: 0.7vw;
  color: rgba(255,255,255,0.7);
  padding: 15px 0;
  background: rgba(0,0,0,0.6);
  border-top: 2px solid #00c8ff;
}

.footer a {
  color: #00c8ff;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {

  /* Hero */
  .arwing { width: 120vw; top: 30%; }
  .foxteam { width: 100vw; top: 15%; }
  .pepper { width: 35vw; left: 3%; top: 18%; }
  .starfox { width: 40vw; right: 5%; top: 20%; }
  .planet { width: 50vw; top: 30% }

  /* Texto inicio */
  .dialog { font-size: 3vw; width: 90%; top: 40% }
  #start-text { font-size: 3vw; bottom: 48%; }
  #start-text .circle { width: 3vw; height: 3vw; }
  .copyright { font-size: 2vw; bottom: 46%; }

  /* Sinopsis */
  .sinopsis {
    flex-direction: column;
    text-align: center;
  }
  .sinopsis-content {
    font-size: 3vw;
    text-align: center;
  }
  .sinopsis-content .highlight { font-size: 3.5vw; }
  .sinopsis-poster { margin-top: 30px; }
  .sinopsis-poster img { width: 80%; }

  /* Personajes */
  .personaje { flex-direction: column; text-align: center; }
  .personaje.invertido { flex-direction: column; }
  .personaje-img { width: 60%; margin-bottom: 20px; }
  .personaje-info { font-size: 3vw; }
  .personaje-info h3 { font-size: 4vw; }
  .avatar { width: 80px; height: 80px; margin: 0 auto 10px; }
  .dialog-box { min-height: 80px; font-size: 2.5vw; width: 100%; }

  .personaje.greatfox { margin-bottom: 40px; }
  
  .gameplay-item,
  .gameplay-item.reverse {
    flex-direction: column;
    text-align: center;
  }
  .gameplay-text {
    margin-bottom: 20px;
    font-size: 3vw;
  }
  .gameplay-text h3 {
    font-size: 4vw;
  }
  
  .tips-content {
    font-size: 3vw;
    line-height: 1.8;
  }
  
  /* Rutas */
  .routes-container, 
  .routes-table, 
  .routes-map {
    font-size: 3vw;
  }
  
  .map-caption {
    font-size: 2.5vw;
  }

  /* Miyamoto */
  .miyamoto-text {
    font-size: 3vw;
    margin: 0 auto 20px auto;
  }
  .miyamoto-text h3 { font-size: 4vw; }

  /* Video */
  .video-container { margin: 20px auto; }
  
  .development-content {
    font-size: 3vw;
  }

  .creador p {
    font-size: 3.5vw;
  }

  .creador img {
    width: 80%;
  }

  .development {
    padding: 60px 20px;
  }
  
  .review-content {
    flex-direction: column;
    align-items: center;
  }
  
  .review-text {
    font-size: 3vw;
    line-height: 1.8;
  }

  .review-text, .review-image {
    width: 90%;
  }

  .transmision {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .dialog-box {
    width: 95%;
    min-height: 100px;
    font-size: 3vw;
  }

  .greatfox-container {
    margin: 20px auto;
  }
  
  .footer {
    font-size: 2.5vw;
    padding: 10px 0;
  }

}