@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700&family=Rock+Salt&display=swap');

body, p, li, div, span, td, th, a, blockquote {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif !important;
  line-height: 1.75;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Cinzel", "Georgia", serif !important;
  margin-top: 1.4em;
  margin-bottom: 0.6em;
  letter-spacing: 0.03em;
}

body:has(.tema-inicio) h1 {
  font-family: "Rock Salt", cursive !important;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

img {
  border-radius: 12px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem auto;
}

html:has(.tema-inicio),
body:has(.tema-inicio),
body:has(.tema-inicio) main,
body:has(.tema-inicio) article,
body:has(.tema-inicio) section {
  background-color: #d95d18 !important;
}
body:has(.tema-inicio) *,
body:has(.tema-inicio) *::before,
body:has(.tema-inicio) *::after {
  color: #ffffff !important;
}

html:has(.tema-impacto),
body:has(.tema-impacto),
body:has(.tema-impacto) main,
body:has(.tema-impacto) article,
body:has(.tema-impacto) section {
  background-color: #163a5f !important;
}
body:has(.tema-impacto) *,
body:has(.tema-impacto) *::before,
body:has(.tema-impacto) *::after {
  color: #ffffff !important;
}

html:has(.tema-cronologia),
body:has(.tema-cronologia),
body:has(.tema-cronologia) main,
body:has(.tema-cronologia) article,
body:has(.tema-cronologia) section {
  background-color: #121215 !important;
}
body:has(.tema-cronologia) *,
body:has(.tema-cronologia) *::before,
body:has(.tema-cronologia) *::after {
  color: #ffffff !important;
}

html:has(.tema-akatsuki),
body:has(.tema-akatsuki),
body:has(.tema-akatsuki) main,
body:has(.tema-akatsuki) article,
body:has(.tema-akatsuki) section {
  background-color: #6b0f1a !important;
}
body:has(.tema-akatsuki) *,
body:has(.tema-akatsuki) *::before,
body:has(.tema-akatsuki) *::after {
  color: #ffffff !important;
}

html:has(.tema-clanes),
body:has(.tema-clanes),
body:has(.tema-clanes) main,
body:has(.tema-clanes) article,
body:has(.tema-clanes) section {
  background-color: #1b4332 !important;
}
body:has(.tema-clanes) *,
body:has(.tema-clanes) *::before,
body:has(.tema-clanes) *::after {
  color: #ffffff !important;
}

html:has(.tema-jutsu),
body:has(.tema-jutsu),
body:has(.tema-jutsu) main,
body:has(.tema-jutsu) article,
body:has(.tema-jutsu) section {
  background-color: #3c1642 !important;
}
body:has(.tema-jutsu) *,
body:has(.tema-jutsu) *::before,
body:has(.tema-jutsu) *::after {
  color: #ffffff !important;
}

html:has(.tema-kages),
body:has(.tema-kages),
body:has(.tema-kages) main,
body:has(.tema-kages) article,
body:has(.tema-kages) section {
  background-color: #4a2c18 !important;
}
body:has(.tema-kages) *,
body:has(.tema-kages) *::before,
body:has(.tema-kages) *::after {
  color: #ffffff !important;
}

.insignia {
  display: inline-block;
  padding: 4px 12px;
  margin: 0 6px 6px 0;
  font-size: 0.85rem;
  font-weight: bold;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.18) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.7) !important;
  color: #ffffff !important;
  vertical-align: middle;
}

.barra-botones {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.barra-botones a {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.18) !important;
  border: 1.5px solid #ffffff !important;
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: bold;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.barra-botones a:hover {
  background-color: rgba(255, 255, 255, 0.35) !important;
  transform: translateY(-2px);
}

.contenedor-video {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 2rem auto;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.contenedor-video iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}