/* =========================
    ESTILOS GENERALES
   ========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;

  scrollbar-color: #619f2b63 lightgreen;
}

body {
  display: flex;
  flex-direction: column;

  font-family: 'Roboto', sans-serif;
  background: #f5f5f5;
  color: aliceblue;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;

  background-image: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
    url("../media/bg-2.jpg");

  background-size: cover;
  background-position: center;

  filter: blur(1.5px);
  transform: scale(1.05);
}

html,
body {
  height: 100%;
}

main {
  flex: 1;
}

.container {
  width: 80%;
  margin: 1rem auto;
  background-color: #154e1dad;
  border: 0.1rem solid #bfeb44c6;

  /* box-shadow: 0px 0px 4rem #000000; */
  box-shadow: 0px 0px 0.75rem #b4de42bc;

  border-radius: 2rem;
  padding: 2rem;
}

.container__encogido {
  width: fit-content;
}

/* =========================
    HEADER / MENU
   ========================= */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  background-color: #161916;
  color: aliceblue;

  margin: 1.5rem;
  padding: 1.25rem 2.5rem;

  border: 0.1rem solid #bfeb44c6;
  box-shadow: 0px 0px 0.5rem #b4de42bc;
  border-radius: 1rem;
}

.brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: aliceblue;
}

.brand__logo:hover {
  animation: animacionGiro 2s infinite alternate ease-in-out;

}

.brand__logo {
  width: 16rem;
}

.site-nav {
  display: flex;
  flex-direction: row;

  color: aliceblue;
  text-decoration: none;
}

.site-nav a {
  display: flex;
  justify-content: center;

  padding: 1rem 2rem;
  margin-inline: 1.5rem;
  width: 13rem;

  background-image:
    linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
    url("../media/portal.png");
  background-size: 16rem;
  background-position: center;
  background-repeat: no-repeat;

  border: 0.15rem solid #bfeb44c6;
  border-radius: 10px;

  color: aliceblue;

  text-decoration: none;
  text-shadow: 1px 1px 10px #161916;

  transition: transform 0.15s ease, background-size 0.6s ease;
}

.site-nav a:hover {
  box-shadow: 0px 0px 0.5rem #b4de42;

  background-size: 22rem;
  transform: scale(1.05);
}

.site-nav a:active {
  background-size: 15rem;
  transform: scale(1);
}

/* =========================
    INDEX (tarjetas)
   ========================= */
.page-hero {
  display: flex;
  flex-direction: column;
  align-items: center;

  color: aliceblue;
  background-color: #161916;

  border: 0.1rem solid #bfeb44c6;
  box-shadow: 0px 0px 0.75rem #b4de42bc;

  border-radius: 1rem;

  padding: 1.25rem;
  margin-bottom: 2.5rem;
}

.page-hero__subtitle {
  font-size: 1.15rem;
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.861);
}

.contador {
  margin-top: 1rem;
  font-size: 1.25rem;
  color: gold;
}

.grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;

  gap: 6rem;
}

.card {
  display: flex;
  overflow: hidden;
  flex-direction: column;

  background: #161916;
  color: aliceblue;

  border: 0.15rem solid #bfeb44c6;
  border-radius: 1rem;
  box-shadow: 0px 0px 0.75rem #000000e8;

  width: 18rem;
  height: 28rem;

  transition: transform 0.3s ease;
}

.card:hover {
  animation: animacionFlotando 0.75s infinite alternate ease-in-out;
}

.card_header {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: flex-end;
}

.card img {
  width: 100%;
  height: 17rem;

  transition: transform 0.3s ease;
  margin-bottom: 0.25rem;
}

.card h2 {
  margin-inline: 0.25rem;
}

.card:hover img {
  transform: translateY(-14px) scale(1.1);
}

.card__meta {
  line-height: 25px;
  margin-bottom: 0.5rem;
  margin-inline: 1rem;

  color: rgba(255, 255, 255, 0.861);
}

.btn {
  display: flex;
  justify-content: center;

  margin-top: 1.25rem;
  padding: 10px 18px;

  background-color: #bfeb44c6;
  color: black;

  text-decoration: none;
  font-weight: 500;

  border: none;

  transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn:hover {
  background-color: #c2ee48;
  box-shadow: 0px 0px 0.5rem #a0c735;

  transform: translateY(-3px) scale(1.05);

  font-weight: 600;
}

.btn:active {
  transform: translateY(0px);
}

.card:has(.btn:hover) {
  border-color: #c2ee48;
  box-shadow: 0px 0px 0.5rem #a0c735;
}

.etiqueta {
  position: absolute;

  margin: 0.75rem;
  padding: 0.25rem 1.25rem;

  font-weight: 450;

  color: #ffffff;
  border: #161916 1px solid;
  border-radius: 0.5rem;

  font-size: small;
}

.vivo {
  background-color: #529001;

}

.muerto {
  background-color: #bb2828;
}

.card_body_header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;

  margin: 0.75rem 0.75rem;

}

@keyframes animacionFlotando {
  to {
    transform: translateY(-5px);
  }
}

@keyframes animacionGiro {
  from {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(-2deg) scale(1.03);
  }

  to {
    transform: rotate(0deg);
  }
}

.tarjeta-favorito:has(.btn:hover) {
  border-color: gold;
  box-shadow: 0px 0px 0.5rem gold;
}

.tarjeta-favorito {
  border: 0.15rem solid gold;
  box-shadow: 0px 0px 0.25rem gold;
}

.tarjeta-favorito h2 {
  color: gold;
}

.tarjeta-favorito .btn {
  background-color: gold;
}

.btn-favo {
  padding: 0.75rem;

  background: url("../media/fav-icon.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;

  text-decoration: none;
  font-weight: 500;

  border: none;

  background-size: cover;
}

.btn__detalle {
  transition: all 0.15s;
}

.btn__detalle:hover {
  font-size: large;
  transform: translateY(-3px) scale(1.01);
}

/* =========================
    DETALLE
   ========================= */

.detail {
  display: flex;
  flex-direction: column;
  gap: 3rem;

  min-height: auto;

  border: 0.1rem solid #bfeb44c6;
  box-shadow: 0px 0px 0.5rem #070901bc;

  height: 100%;

  border-radius: 2rem;
  background-color: #161916;
  padding: 3rem 2rem;
}

.detail__encogido {
  width: fit-content;
}

.detail__top {
  display: flex;
  gap: 1.5rem;
}

.detail__info {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;

  background-color: #191b1d;

  width: 100%;
  padding: 2rem;

  border-radius: 1rem;

  border: #a0c735 1px solid;
  box-shadow: 0px 0px 0.25rem #b4de42bc;

  color: aliceblue;
}

.detail__esconder {
  display: none;
}

.detail img {
  width: 25rem;
  height: 25rem;
  border-radius: 1rem;
}

.detail h1 {
  margin-bottom: 10px;
}

.detail ul {
  margin-top: 10px;

  list-style: none;
}

.btn__proponer {
  display: flex;
  justify-content: center;

  padding: 10px 18px;
  margin-top: 1rem;

  background-color: #bfeb44c6;
  color: black;

  text-decoration: none;
  font-weight: 500;

  border-radius: 16px;
  border: none;

  transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn__proponer:hover {
  background-color: #c2ee48;
  box-shadow: 0px 0px 0.5rem #a0c735;

  transform: translateY(-3px);

  font-weight: 500;
}

.btn__proponer:active {
  transform: translateY(0);
}

.boton__largo {
  display: flex;
  justify-content: center;

  padding: 10px 18px;

  width: 100%;

  background-color: #bfeb44c6;
  color: black;

  text-decoration: none;
  font-size: 1rem;

  border-radius: 16px;
  border: none;

  transition: background-color 0.2s ease, transform 0.15s ease;
}

.boton__largo:hover {
  background-color: #c2ee48;
  box-shadow: 0px 0px 0.5rem #a0c735;

  transform: translateY(-3px);

  font-weight: 600;
}

.boton__largo:active {
  transform: translateY(0px);
}

/* =========================
    CONTRIBUIR (formulario)
   ========================= */
.contribuir {
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  background-color: #161916;
  border: 0.1rem solid #bfeb44c6;

  padding: 2rem;

  border: #a0c735 1px solid;
  border-radius: 1rem;
  box-shadow: 0px 0px 1rem #000000be;

  color: aliceblue;
}

.form input,
.form select,
.form textarea {
  padding: 8px;
  margin: 10px 0px;
  width: 100%;

  background-color: #161916;
  color: aliceblue;

  border: 1px solid #bfeb44c6;
  border-radius: 6px;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border: 1px solid #bfeb44;
  box-shadow: 0 0 6px #bfeb44;
}

.form__radio {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 1rem 1.5rem;

  width: 4rem;
}

.form__fieldset {
  border: #b4de42 1px solid;
}

.form__legend {
  margin-left: 1rem;
}

.btn_form {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 100%;
  height: 2.75rem;
  margin-top: 2rem;


  background-color: #bfeb44c6;
  color: black;

  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 600;

  border-radius: 16px;
  border: none;

  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn_form:hover {
  background-color: #c2ee48;
  box-shadow: 0px 0px 0.5rem #a0c735;

  transform: translateY(-5px);

}

.btn_form:active {
  transform: translateY(0);
}

/* =========================
    SOBRE NOSOTROS
   ========================= */

.about {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;

  background-color: #161916;
  border: 0.1rem solid #bfeb44c6;

  padding: 2.5rem;

  border-radius: 1rem;
  box-shadow: 0px 0px 1rem #000000be;

  color: aliceblue;
}

.about__text {
  font-size: 1.15rem;
}

.about__title {
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.861);
}

.about__list {
  padding: 2rem;
  width: 100%;

  font-size: 1.15rem;

  background-color: #191b1d;
  box-shadow: 0px 0px 0.5rem #b4de42bc;

  border: 0.1rem solid #bfeb44c6;
  border-radius: 1rem;
}

.about__list ol {
  list-style-type: decimal;
  list-style-position: inside;
}

li {
  margin-block: 1rem;
}

.team {
  display: flex;
  flex-direction: column;
  align-items: center;

  padding: 3rem 1rem;
  margin-top: 2rem;

  width: 100%;
  height: 100%;

  background-color: #191b1d;
  box-shadow: 0px 0px 0.5rem #b4de42bc;

  border: 0.1rem solid #bfeb44c6;
  border-radius: 1rem;
}

.about__subtitle {
  margin-bottom: 1rem;
}

.team__members {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: center;
  gap: 5rem;
  margin: 1rem;
  animation: animacionFlotando 1s infinite alternate linear;
}

.team__member {
  display: flex;
  flex-direction: column;
  align-items: center;

  width: 12rem;

  background: #161916;

  border: 0.15rem solid #bfeb44c6;
  box-shadow: 0px 0px 0.75rem #000000bc;

  border-radius: 1rem;
}

.about p {
  margin: 1rem;
}

/* =========================
    BUSCAR PERSONAJES
   ========================= */

.busqueda {
  display: flex;
  flex-direction: column;
  gap: 1rem;

  border: 0.1rem solid #bfeb44c6;
  box-shadow: 0px 0px 0.5rem #070901bc;

  height: 40.5rem;

  border-radius: 2rem;
  background-color: #161916;
  padding: 1.5rem 2rem;
}

.busqueda__titulo {
  text-align: center;
  white-space: nowrap;
}

.busqueda__imagen {
  margin: 1rem;
  height: 15rem;
  width: 15rem;
}

.busqueda__info {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;

  background-color: #191b1d;

  width: fit-content;
  min-width: auto;
  padding: 2rem;
  gap: 0.25rem;

  border-radius: 1rem;

  border: #a0c735 1px solid;
  box-shadow: 0px 0px 0.25rem #b4de42bc;

  color: aliceblue;
}

#error-busqueda {
  color: lightcoral;
  font-weight: 600;
  font-size: 0.85rem;
}

.aleatorio {
  display: flex;
  flex-direction: column;
  align-items: center;

  background-color: #161916;
  margin-top: 1rem;
}

.aleatorio h2 {
  margin-bottom: 1rem;
}

.episodios {
  min-width: 27rem;
  margin-left: 2rem;
  padding-inline: 1rem;
  overflow-x: auto;
}

.episodios li {
  margin: 0rem;
}

.buscador {
  display: flex;
  flex-direction: row;
}

.container__busqueda {
  display: flex;
  flex-direction: column;
}

.episodios h2 {
  position: absolute;
  margin-bottom: 1.5rem;
  background-color: #161916b1;
  box-shadow: 0px 0px 2rem #161916;
}

#resultado-episodios {
  margin-top: 3.50rem;
}

.estilo__barra input,
.estilo__barra select,
.estilo__barra textarea {
  margin-bottom: 1.25rem;
}

/* =========================
    FOOTER
   ========================= */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;

  background-color: #161916;
  color: aliceblue;

  margin-top: 1.25rem;
  padding: 0.75rem;
}

.site-footer a {
  color: aliceblue;
  margin: 0 1rem;
  text-decoration: none;
}

.site-footer a:hover {
  color: #a0c735;
  text-decoration: none;
}

.site-footer__link img {
  width: 30px;
  height: 30px;
}