/*=================RESET CSS=================*/

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

a {
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  width: 100%;
  height: auto;
}

/*=================VARIABLES=================*/

:root {
  --header-height: 4.5rem;
  --hue: 32;
  /* COLORS */
  --base-color: hsl(var(--hue) 90% 50%);
  --base-color-second: hsl(var(--hue) 65% 88%);
  --base-color-alt: hsl(var(--hue) 57% 53%);
  --title-color: hsl(var(--hue) 41% 10%);
  --text-color: hsl(0 0% 35%);
  --text-color-light: hsl(0 0% 98%);
  --body-color: hsl(0 0% 98%);

  /*  FONT SIZE */

  --title-font-size: 1.875rem;
  --subtitle-font-size: 1rem;

  --title-font: 'Poppins', sans-serif;
  --body-font: 'DM Sans', sans-serif;
}

/*=================BASES=================*/

html {
  scroll-behavior: smooth;
}

body {
  font: 400 1rem var(--body-font);
  color: var(--text-color);
  background: var(--body-color);
  -webkit-font-smoothing: antialiased;
}

.title {
  font: 700 var(--title-font-size) var(--title-font);
  color: var(--title-color);
}

.button {
  display: inline-flex;
  align-items: center;

  background-color: var(--base-color);
  color: var(--text-color-light);

  height: 3.5rem;
  padding: 0 2rem;
  border-radius: 0.25rem;

  font: 500 1rem var(--body-font);
  transition: background 0.3s;
}

.button:hover {
  background-color: var(--base-color-alt);
}

.divider-1 {
  height: 1px;
  background: linear-gradient(
    270deg,
    hsla(var(--hue), 36%, 57%, 1),
    hsla(var(--hue), 65%, 88%, 0.34)
  );
}

.divider-2 {
  height: 1px;
  background: linear-gradient(
    270deg,
    hsla(var(--hue), 65%, 88%, 0.34),
    hsla(var(--hue), 36%, 57%, 1)
  );
}

/*=================LAYOUT=================*/

.container {
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}

.grid {
  display: grid;
  gap: 2rem;
}

.section {
  padding: calc(5rem + var(--header-height)) 0;
}

.section .title {
  margin-bottom: 1rem;
}

.section .subtitle {
  font-size: var(--subtitle-font-size);
}

.section header {
  margin-bottom: 4rem;
}

.section header strong {
  color: var(--base-color);
}

#header {
  border-bottom: 1px solid var(--text-color);
  margin-bottom: 2rem;
  display: flex;

  width: 100%;
  position: fixed;

  top: 0;
  left: 0;

  z-index: 100;

  background-color: var(--base-color);
}

#header.scroll {
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.308);
}

/*========= LOGO =========*/

.logo img {
  height: auto;
  width: 7.5rem;
  transition: 0.15s;
}

.logo img:hover {
  width: 8.5rem;
}

.logo-alt img {
  height: auto;
  width: 8rem;
  transition: 0.15s;
}

.logo-alt img:hover {
  transform: translateY(-10px);
}

/* ========= NAVIGATION ========= */

nav {
  height: var(--header-height);
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
}

nav ul li {
  text-align: center;
}

nav ul li a {
  transition: color 0.2s;
  position: relative;
  color: var(--title-color);
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--base-color);
}

nav ul li a::after {
  content: '';
  width: 0%;
  height: 2px;
  background: var(--base-color);

  position: absolute;
  left: 0;
  bottom: -1.5rem;

  transition: width 0.2s;
}

nav ul li a:hover::after,
nav ul li a.active::after {
  width: 100%;
}

nav .menu {
  opacity: 0;
  visibility: hidden;

  top: -20rem;
  transition: 0.2s;
}

nav .menu ul {
  display: none;
}

/* MOSTRAR MENU*/

nav.show .menu {
  opacity: 1;
  visibility: visible;

  background: var(--body-color);

  height: 100vh;
  width: 100vw;

  position: fixed;
  top: 0;
  left: 0;

  display: grid;
  place-content: center;
}

nav.show .menu ul {
  display: grid;
}

nav.show ul.grid {
  gap: 4rem;
}

/*  TOGGLE MENU   */

.toggle {
  color: var(--base-color);
  font-size: 1.5rem;
  cursor: pointer;
}

nav .icon-close {
  visibility: hidden;
  opacity: 0;

  position: absolute;
  top: -1.5rem;
  right: 1.5rem;

  transition: 0.2s;
}

nav.show .icon-close {
  visibility: visible;
  opacity: 1;
  top: 1.5rem;
}

/* ========= ABOUT ========= */

#about {
  background: white;
}

#about .container {
  margin: 0;
}

#about .image {
  position: relative;
}

#about .image::before {
  content: '';
  height: 100%;
  width: 100%;
  background: var(--base-color-second);
  position: absolute;
  top: -8.3%;
  left: -33%;
  z-index: 0;
}

#about .image img {
  position: relative;
}

#about .image img,
#about .image::before {
  border-radius: 0.25rem;
}

#about .text {
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}

/* ========= EPISODES ========= */

.cards.grid {
  gap: 2rem;
}

.card {
  padding: 3.625rem 2rem;
  box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.08);
  border-bottom: 0.25rem solid var(--base-color);
  border-radius: 0.25rem 0.25rem 0 0;
  text-align: center;
}

.card p {
  font-size: 1.5rem;
  margin-top: 1rem;
}

.card i {
  display: block;
  margin-bottom: 1.5rem;
  font-size: 3rem;
  color: var(--base-color);
}

.card .title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.card iframe {
  width: 100%;
  height: 14rem;
}

.buttons a {
  justify-content: center;
}

.buttons a i {
  padding: 0 1rem;
  font-size: 2rem;
}

/* ========= TESTIMONIALS ========= */

#testimonials {
  background: white;
}

#testimonials .container {
  margin-left: 0;
  margin-right: 0;
}

#testimonials header {
  margin-bottom: 0;
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}

#testimonials blockquote {
  padding: 2rem;
  box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.08);
  border-radius: 0.25rem;
}

#testimonials blockquote p {
  position: relative;
  text-indent: 1.875rem;

  margin-bottom: 1.5rem;
  color: var(--title-color);
}

#testimonials blockquote p span {
  font: 700 2.5rem 'serif';

  position: absolute;
  top: -0.375rem;
  left: -1.875rem;

  color: var(--base-color);
}

#testimonials cite {
  display: flex;
  align-items: center;
  font-style: normal;
}

#testimonials cite img {
  width: 2rem;
  height: 2rem;
  object-fit: cover;
  clip-path: circle();
  margin-right: 0.5rem;
}

/* ========= SWIPER ========= */

.swiper-slide {
  height: auto;
  padding: 4rem 1rem;
}

.swiper-pagination {
  position: static;
}

.swiper-pagination-bullet {
  width: 0.75rem;
  height: 0.75rem;
}

.swiper-pagination-bullet-active {
  background: var(--base-color);
}

/* ========= SUPPORT ========= */

#support {
  background: white;
}

#support .button {
  justify-content: center;
}

#support .button > i {
  color: white;
  font-size: 2rem;
  margin-right: 1rem;
  margin-bottom: 0;
}

.premiums {
  grid-template-columns: 1fr;

}

.partners {
  grid-template-columns: 1fr 1fr;
}

.premiums.grid,
.partners.grid {
  align-items: center;
}

.master img {
  max-width: 30rem;
}

.premiums img,
.partners img {
  max-width: 15rem;  
}

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

footer {
  background: var(--base-color);
}

footer.section {
  padding: 4rem 0;
}

footer .logo {
  display: inline-block;
  margin-bottom: 1.5rem;
}

footer .brand p {
  color: var(--text-color-light);
  margin-bottom: 0.75rem;
}

footer i {
  font-size: 2rem;
  color: var(--text-color-light);
}

footer .social {
  grid-auto-flow: column;
  width: fit-content;
}

footer .social a {
  transition: 0.3s;
  display: inline-block;
}

footer .social a:hover {
  transform: translateY(-8px);
}

/* BACK TO TOP BUTTON */
.back-to-top {
  background: var(--base-color);
  color: var(--text-color-light);

  position: fixed;
  right: 1rem;
  bottom: 1rem;

  padding: 0.5rem;
  clip-path: circle();

  font-size: 1.5rem;
  line-height: 0;

  visibility: hidden;
  opacity: 0;

  transition: 0.3s;
  transform: translateY(100%);
}

.back-to-top.show {
  visibility: visible;
  opacity: 1;

  transform: translateY(0%);
}

/* ========= RESPONSIVITY ========= */

/*  BREAKPOINTS
/* - extralarge devices: 1200 > x */
@media (min-width: 1200px) {
  /*----LAYOUT----*/

  .container {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
  }

  .section {
    padding: 10rem 0;
  }

  .section header,
  #testimonials header {
    max-width: 32rem;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .button {
    height: 3.125rem;
  }

  /*----NAVIGATION----*/

  nav .menu {
    opacity: 1;
    visibility: visible;
    top: 0;
  }

  nav .menu ul {
    display: flex;
    gap: 2rem;
  }

  nav ul li a {
    color: var(--title-color);
  }

  nav .menu ul li a.title {
    font: 400 1rem white var(--body-font);
    -webkit-font-smoothing: antialiased;
  }

  nav .menu ul li a.title.active {
    font-weight: bold;
    -webkit-font-smoothing: auto;
  }

  nav ul li a:hover,
  nav ul li a.active {
    color: white;
  }

  nav ul li a::after {
    content: '';
    width: 0%;
    height: 2px;
    background: white;

    position: absolute;
    left: 0;
    bottom: -1.5rem;

    transition: width 0.2s;
  }

  nav .icon-menu {
    display: none;
  }

  main {
    margin-top: var(--header-height);
  }

  /*----ABOUT----*/

  #about .container {
    grid-auto-flow: column;
    margin: 0 auto;
  }

  /*----EPISODES----*/

  .cards {
    grid-template-columns: 1fr 1fr;
  }

  .card {
    padding-left: 3rem;
    padding-right: 3rem;
  }

  .card iframe {
    height: 16rem;
  }

  .buttons {
    width: 100%;
    justify-content: space-around;
  }

  /*----TESTIMONIALS----*/

  #testimonials .container {
    margin-left: auto;
    margin-right: auto;
  }

  /*----STORE----*/

  #store .cards {
    grid-template-columns: 1fr;
  }

  .pics img {
    max-width: 30rem;
  }

  /*----SUPPORT----*/

  #support .grid {
    justify-items: center;
  }

  #support .cards {
    grid-template-columns: 1fr;
  }

  .premiums {
    grid-template-columns: 1fr;

  }

  .partners {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .master a img {
    max-width: 30rem;
  }

  .premiums a img {
    max-width: 15rem;
  }

  /*----FOOTER----*/

  footer.section {
    padding: 3.75rem 0;
  }

  footer .container {
    grid-auto-flow: column;
    align-items: center;
    justify-content: space-between;
  }

  footer .logo {
    font-size: 2.25rem;
  }
}
