/* Estilos generales de la pagina*/
html {
    scroll-behavior: smooth;
    /* Deja lugar para el header fijo al saltar a una sección */
    scroll-padding-top: calc(var(--alto-header, 140px) + 16px);
    font-size: 17px;
}

body {
    margin: 0px;
    padding: 0px;
    background-color: #9c3bc1;
    font-size: 1rem;
    font-family: Arial, Helvetica, sans-serif;
} 


/* ===== HEADER (mantiene tus colores originales) ===== */
header {
  background-color: #161ed2; /* 🚫 NO SE TOCA */
  padding: 10px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: padding 0.3s ease;
}

/* Header compacto al hacer scroll: logo más chico para no tapar el contenido */
header.compacto {
  padding: 6px 0;
}
header.compacto img {
  width: 150px;
  padding: 0;
  margin: 0 auto;
}


/* LOGO */
header img {
  width: 220px;
  max-width: 90%;
  height: auto;
  display: block;
  margin: 0 auto 15px auto;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
  transition: transform 0.4s ease, filter 0.4s ease;
}
header img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.4));
}

/* NAV MENU */
header nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
  padding: 0 10px 10px 10px;
  margin: 0;
}

header nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  position: relative;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

header nav ul li a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -3px;
  left: 0;
  background: #00ff90;
  transition: width 0.3s ease;
}

header nav ul li a:hover::after {
  width: 100%;
}

header nav ul li a:hover {
  color: #00ff90;
  text-shadow: 0 0 8px #00ff90;
}

/* ===== IMAGEN PRINCIPAL ===== */
.img-fluid {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  margin: 0;
  padding: 0;
  border: none;
  vertical-align: middle;
}

/* --- SECCIONES GENERALES --- */
main {
  padding: 60px 8%;
}

h2 {
  color: #00ff90;
  text-align: center;
  font-size: 2.2rem;
  text-shadow: 0 0 10px #00ff90, 0 0 20px #00ff90;
  margin-bottom: 40px;
  animation: fadeIn 1s ease-in-out;
}

#h3 {
    color: white;
}


/* ==== EFECTOS GENERALES ==== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0px); }
}

/* ==== INTRODUCCION ==== */
.contenedor-parrafo {
  background-color: #111222;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 0 25px rgba(0, 255, 160, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 40px;
}
.contenedor-parrafo:hover {
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(0, 255, 180, 0.4);
}

.parrafo-introductorio {
  color: #d3d3d3;
  text-align: justify;
  font-size: 1.1rem;
}

.imagenes-introductorias {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

.img-introduccion {
  width: 300px;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0, 255, 200, 0.3);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  animation: float 4s ease-in-out infinite;
}
.img-introduccion:hover {
  transform: scale(1.08);
  box-shadow: 0 0 25px rgba(0, 255, 200, 0.7);
}

/* ==== GALERIA ==== */
.galeria-personajes {
  background-color: #0f111d;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 0 30px rgba(0, 255, 160, 0.15);
  animation: fadeUp 1s ease;
}

.galeria-personajes div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

.carta-personaje {
  background-color: #1a1c29;
  border: 2px solid #00ff90;
  border-radius: 15px;
  overflow: hidden;
  width: 220px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.carta-personaje:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 0 25px rgba(0, 255, 144, 0.8);
}

#img-galeria {
  width: 100%;
  height: 250px;
  object-fit: cover;
  filter: brightness(0.9);
  transition: filter 0.3s ease;
}
.carta-personaje:hover #img-galeria {
  filter: brightness(1);
}

#descripcion {
  padding: 12px;
  color: #bfffd6;
  font-weight: 500;
}

/* ==== CAPITULOS ==== */
#Capitulos-Destacados ul {
  display: flex;
  flex-direction: column;
  gap: 50px;
  list-style: none;
}

#Capitulos-Destacados li {
  background-color: #141623;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 0 25px rgba(0, 255, 180, 0.15);
  transition: all 0.3s ease;
  animation: fadeUp 0.8s ease;
}
#Capitulos-Destacados li:hover {
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(0, 255, 180, 0.35);
}

#img-capitulos {
  width: 100%;
  border-radius: 10px;
  margin: 10px 0;
  transition: transform 0.4s ease;
}
#Capitulos-Destacados li:hover #img-capitulos {
  transform: scale(1.03);
}

#parrafos-capitulos {
  color: #ffffff;
}

/* ==== TEMPORADAS ==== */
.temporadas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 35px;
  color: white;
}

.temporada {
  width: 340px;
  background-color: #181a28;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 0 25px rgba(0, 255, 160, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.temporada:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 30px rgba(0, 255, 144, 0.45);
}

#img-temporadas {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}
.temporada:hover #img-temporadas {
  transform: scale(1.04);
}

/* ==== VIDEOS ==== */
.video-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.video {
  background-color: #10111b;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 0 25px rgba(0, 255, 160, 0.2);
  width: 480px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.video:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 30px rgba(0, 255, 160, 0.5);
}

iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  border: none;
}

/* ==== FORMULARIO ==== */
#Formulario form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  background-color: #0f101a;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(0, 255, 160, 0.15);
  width: 70%;
  margin: 0 auto;
}

#controls {
  color: #00ff90;
  font-weight: bold;
}

input, select, textarea {
  padding: 10px;
  border: 2px solid #00ff90;
  border-radius: 10px;
  background: #1c1e2d;
  color: white;
  font-size: 1rem;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

input:focus, select:focus, textarea:focus {
  box-shadow: 0 0 15px #00ff90;
  transform: scale(1.02);
  outline: none;
}

#registro {
  background-color: #00ff90;
  color: #101010;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
#registro:hover {
  background-color: #14ffb2;
  transform: scale(1.05);
  box-shadow: 0 0 25px #00ff90;
}

/* ==== FOOTER MEJORADO ==== */
.footer {
  background-color: #111222;
  color: #e1e1e1;
  padding: 50px 8% 30px;
  border-top: 2px solid #00ff90;
  box-shadow: 0 -4px 25px rgba(0, 255, 144, 0.15);
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  text-align: left;
}

/* LOGO Y DESCRIPCIÓN */
.footer-logo {
  flex: 1 1 250px;
  text-align: center;
}
.footer-logo img {
  width: 180px;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 8px rgba(0, 255, 160, 0.4));
}
.footer-logo p {
  font-size: 0.95rem;
  color: #bfffd6;
  margin-top: 5px;
}

/* SECCIONES DE ENLACES */
.footer-links, .footer-contacto {
  flex: 1 1 180px;
}
.footer-links h4,
.footer-contacto h4 {
  color: #00ff90;
  font-size: 1.1rem;
  margin-bottom: 15px;
  text-shadow: 0 0 8px #00ff90;
}
.footer-links ul,
.footer-contacto ul {
  list-style: none;
  padding: 0;
}
.footer-links ul li,
.footer-contacto ul li {
  margin-bottom: 10px;
}
.footer-links ul li a,
.footer-contacto ul li a {
  color: #e1e1e1;
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
.footer-links ul li a:hover,
.footer-contacto ul li a:hover {
  color: #00ff90;
  text-shadow: 0 0 8px #00ff90;
}

/* PARTE INFERIOR */
.footer-bottom {
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid rgba(0, 255, 144, 0.2);
  padding-top: 15px;
  font-size: 0.9rem;
  color: #a8a8a8;
}
.footer-bottom span {
  color: #00ff90;
  font-weight: bold;
}



/* ==== RESPONSIVE UNIFICADO ==== */

/* 📱 Móviles pequeños (hasta 480px) */
@media (max-width: 480px) {
  body {
    font-size: 0.95rem;
  }

  main {
    padding: 30px 4%;
  }

  h2 {
    font-size: 1.6rem;
  }

  /* Header */
  header {
    padding: 8px 0 12px;
  }

  header img {
    width: 160px;
    margin-bottom: 10px;
  }

  header nav ul {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  header nav ul li a {
    font-size: 0.85rem;
  }

  .img-fluid {
    height: auto;
    max-height: 400px;
    object-fit: contain;
  }

  /* Contenido */
  .img-introduccion,
  .carta-personaje,
  .temporada {
    width: 90%;
  }

  /* Formulario */
  #Formulario form {
    width: 90%;
  }

  /* Footer */
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links,
  .footer-contacto {
    margin-top: 20px;
  }

  footer {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
}

/* 📱 Tablets y pantallas medianas (481px a 768px) */
@media (max-width: 768px) {
  h2 {
    font-size: 1.8rem;
  }

  main {
    padding: 40px 5%;
  }

  .contenedor-parrafo {
    padding: 25px;
  }

  .video {
    width: 90%;
  }

  #Formulario form {
    width: 90%;
  }

  /* Header */
  header img {
    width: 180px;
    margin-top: 10px;
  }

  header nav ul {
    gap: 12px;
    flex-wrap: wrap;
  }

  header nav ul li a {
    font-size: 0.9rem;
  }

  /* Footer */
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links,
  .footer-contacto {
    margin-top: 20px;
  }
}

/* 💻 Laptops y pantallas medianas (769px a 1024px) */
@media (max-width: 1024px) {
  main {
    padding: 40px 5%;
  }

  .temporadas,
  .galeria-personajes div {
    gap: 20px;
  }

  header img {
    max-width: 200px;
  }
}


header img {
  transition: width 0.3s ease, padding 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* ===== Ajustes de header en celulares ===== */
@media (max-width: 768px) {
  /* El menú pasa a una sola fila deslizable para que el header no ocupe media pantalla */
  header nav ul {
    flex-direction: row !important;
    flex-wrap: nowrap;
    justify-content: flex-start !important;
    overflow-x: auto;
    gap: 6px !important;
    padding: 0 12px !important;
    scrollbar-width: none;
  }
  header nav ul::-webkit-scrollbar { display: none; }
  header nav ul li { flex: none; }
  header nav ul li a { white-space: nowrap; padding: 8px 10px; }
  header.compacto img { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  header, header img { transition: none; }
}

/* El formulario no se sale de la pantalla en celulares */
#Formulario form,
#Formulario input,
#Formulario select,
#Formulario textarea {
  box-sizing: border-box;
  max-width: 100%;
}
@media (max-width: 480px) {
  #Formulario form { padding: 24px 18px; }
  #Formulario textarea { width: 100%; }
}

/* Las listas de capítulos quedan centradas (sin la sangría por defecto de <ul>) */
#Capitulos-Destacados ul {
  padding-left: 0;
}
