/* Páginas de bifurcación (selección de series)*/
:root {
  --black: #222;
  --text-muted: #555;
  --card-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  --tri-blue: #2563c7;
}

/*Base*/
html {
  overflow-x: hidden;
}

body {
  background-color: #fff;
  font-family: var(--text-reg);
  color: #222;
}

.shape {
  position: absolute;
  display: none;
}


/* Hero Apertura */
.serie-hero {
  position: relative;
  overflow: hidden;
  padding: 10px 0 0;
  min-height: 280px;
}

/* Wrapper centrado */
.serie-hero_inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0px;
  position: relative;
  z-index: 2;
}

/*Texto izquierdo*/
.serie-hero_text {
  flex: 0 0 auto;
  max-width: 460px;
}

.serie-hero_pretitle {
  font-family: var(--text-bold);
  color: var(--red);
  font-size: 1.15em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.serie-hero_title {
  font-family: var(--text-bold);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.08;
  margin: 0 0 18px;
  color: #111;
}

.serie-hero_desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 390px;
  margin: 0;
}

/* Imagen del personaje*/
.serie-hero_visual {
  flex: 0 0 auto;
  position: relative;
  width: 360px;
  min-width: 220px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.serie-hero_character {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
  /* Imagen sobre el triángulo */
  margin-bottom: 0;
  margin-top: 0;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.12));
}


/* Cards Series -grid */
#main_content {
  position: relative;
}

.serie-series {
  padding: 0 0 70px;
  position: relative;
}

.serie-series_inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

/* Grid 2x2 */
.serie-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 650px) {
  .serie-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Card individual */
.serie-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  box-shadow: var(--card-shadow);
  display: flex;
  gap: 4px;
  padding: 14px 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.serie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.13);
  border-color: #d0d0d0;
  z-index: 2;
}

/* Área de texto (izquierda de la card)*/
.serie-card_body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 15px 10px;
}

.serie-card_title {
  font-family: var(--text-bold);
  font-size: 1.5rem;
  color: #111;
  margin: 0 0 25px;
  line-height: 1.2;
  padding: 0 10px;
}

.serie-card_desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 20px;
  flex: 1;
}

/* Enlace/botón "View resources" */
.serie-card_link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--red);
  color: #fff !important;
  font-family: var(--text-semibold);
  font-size: 1.1rem;
  text-decoration: none;
  border: 0;
  padding: 10px 20px;
  border-radius: 50px;
  cursor: pointer;
  margin-top: 0;
  align-self: flex-start;
  box-shadow: 0 4px 12px rgba(218, 27, 44, 0.25);
  transition: all 0.25s ease;
  width: 100%;
  max-width: 300px;
  min-height: 56px;
  text-align: center;
}

.serie-card_link .serie-arrow {
  display: inline-block;
  font-size: 1.05rem;
  color: #fff;
  transition: transform 0.2s ease;
}

.serie-card:hover .serie-card_link,
.serie-card_link:hover {
  background-color: var(--reddark-effect);
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(218, 27, 44, 0.35);
  transform: translateY(-2px);
}

.serie-card:hover .serie-arrow,
.serie-card_link:hover .serie-arrow {
  transform: translateX(4px);
}

/*Área de imagen (derecha de la card) */
.serie-card_img-wrap {
  flex: 0 0 auto;
  width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.serie-card_img {
  width: 100%;
  height: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}

/* Badge "NEW" en esquina de la imagen 
.serie-card_badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 46px;
  height: 46px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  font-family: var(--text-bold);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(218,27,44,0.4);
}*/

/*Focus accesible*/
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--black) !important;
  outline-offset: 2px !important;
}

/* Adaptaciones */
@media (max-width: 1030px) {
  .serie-card {
    flex-direction: column;
    padding: 20px 20px 24px;
  }

  .serie-card_body {
    display: contents;
  }

  .serie-card_title {
    margin-bottom: 10px;
    order: 1;
  }

  .serie-card_desc {
    order: 2;
    margin-bottom: 5px;
  }

  .serie-card_img-wrap {
    order: 3;
    width: 100%;
    max-width: 220px;
    align-self: center;
    margin-bottom: 10px;
    margin-top: auto;
  }

  .serie-card_img {
    max-width: 220px;
  }

  .serie-card_link {
    order: 4;
    align-self: center;
    margin-top: 5px;
    margin-bottom: 10px;
  }
}

@media (max-width: 650px) {
  .serie-hero_inner {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 0;
  }

  .serie-hero_visual {
    width: 300px;
    align-self: center;
  }
}

@media (max-width: 650px) {
  .serie-hero_inner {
    max-width: 460px;
  }
}

/*Min width*/
@media(min-width: 450px) {
  .serie-hero_visual {
    align-self: center;
    margin-top: 0;
    width: 400px;
  }

  .serie-hero_character {
    max-width: 100%;
  }
}

@media(min-width: 650px) {
  .serie-hero_visual {
    width: 345px;
  }
}

@media(min-width: 750px) {
  .serie-hero_visual {
    align-self: self-end;
    margin-top: 0;
  }

  .serie-card {
    max-width: initial;
  }
}

@media(min-width:895px) {
  .serie-hero_inner {
    gap: 0;
  }

  .serie-hero_visual {
    width: 440px;
  }

  .serie-hero_character {
    width: 80%;
    max-width: initial;
  }
}

@media(min-width:1030px) {
  .serie-card_link {
    font-size: 1.05rem;
  }

  /* ─── Sticky footer ────────────────────────────────────────────────────────
     Cuando las cards son horizontales y hay poco contenido el pie puede quedar
     "en el aire". Se fuerza body a ocupar toda la ventana y main a crecer para
     empujar el footer hasta el fondo.
  ────────────────────────────────────────────────────────────────────────── */
  body {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
  }

  #main_content {
    flex: 1 0 auto;
  }
}

@media(min-width: 1150px) {
  .serie-hero_character {
    max-width: 430px;
  }
}

@media(min-width: 1200px) {
  .serie-card_img-wrap {
    width: 210px;
  }

  .serie-card_body {
    padding: 15px 15px 15px 10px;
  }

  .serie-card_link {
    max-width: 270px;
  }
}

@media(min-width: 1300px) {
  .serie-hero_visual {
    width: 500px;
  }

  .serie-hero_character {
    max-width: 84%;
  }
}

@media(min-width: 1400px) {
  .serie-hero_visual {
    width: 520px;
  }

  .serie-hero_character {
    max-width: 88%;
  }
}