@font-face {
  font-family: alliance;
  src: url(/assets/fonts/AllianceNo1-Medium.woff2);
}
@font-face {
  font-family: alliance-b;
  src: url(/assets/fonts/AllianceNo1-Bold.woff2);
}
@font-face {
  font-family: nunito-b;
  src: url(/assets/fonts/Nunito-Bold.woff2);
}
:root {
  /* COLORS */
  --grey-blue-00: hsl(220, 36%, 97%);
  --grey-blue-10: #dce0ec;
  --grey-blue-20: hsl(227, 30%, 85%);
  --grey-blue-30: #b4b9cc;
  --grey-blue-40: #8e96ae;
  --grey-blue-50: hsl(226, 15%, 50%);
  --grey-blue-60: hsl(227, 14%, 39%);
  --grey-blue-70: #282f40;
  --grey-blue-80: hsl(220, 32%, 15%);
  --grey-blue-85: hsl(222, 33%, 10%);
  --blue-dark-90: #0b111e;

  --green-link: #70ffde;

  --dark00-opa-10: hsla(222, 100%, 98%, 0.1);
  --dark00-opa-20: hsla(222, 100%, 98%, 0.2);
  --dark90-opa-10: hsla(221, 78%, 7%, 0.1);
  --dark90-opa-20: hsla(221, 78%, 7%, 0.2);

  --grad-light-green: -webkit-linear-gradient(-70deg, #a2facf 0%, #64acff 100%);
  /* --grad-purple-red: -webkit-linear-gradient(-70deg, #9369c9 0%, #4b7de0 100%); */
  --grad-purple-red: -webkit-linear-gradient(129deg, #fd60ac, #ffa679);
  --grad-purple-blue: -webkit-linear-gradient(129deg, #dc79ff, #256bfa);
  --grad-orange-red: -webkit-linear-gradient(-70deg, #ff7170 0%, #ffe57f 100%);
  --clr-link-light: hsl(344, 100%, 70%);
  --clr-link-dark: hsl(338, 100%, 46%);
  --clr-pink: hsl(341, 100%, 60%);
  --grad-red: radial-gradient(
    circle at center,
    hsl(338, 100%, 55%),
    hsl(338, 100%, 57%),
    hsl(341, 100%, 61%),
    hsl(344, 100%, 65%)
  );

  --filter: blur(0.5rem);
}

/* !RESET PRO */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none;
  }
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  vertical-align: baseline;
}

img {
  display: block;
  max-width: 100%;
  width: 100%;
}
a {
  display: block;
  text-decoration: none;
}
p a {
  display: inline;
  color: var(--green-link);
}
li {
  list-style: none;
}
html {
  scroll-behavior: smooth;
}

h1,
h2,
h3,
p,
a {
  display: block;
  color: inherit;
  background-color: transparent;
  color: inherit;
}
::selection {
  background-color: hsla(227, 48%, 87%, 0.75);
  color: var(--blue-dark-90);
}
:is(.btn, .city-card):active {
  transform: scale(0.98);
}
svg {
  width: 100%;
  display: block;
}

body {
  position: relative;
  min-width: 300px;
  color: white;
  font-size: 1.15rem;
  font-family: alliance, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  font-smooth: antialiased;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: white;
}
@media screen and (min-width: 550px) {
  body {
    background: var(--blue-dark-90);
  }
}
::-webkit-scrollbar {
  width: 0.9rem;
}
::-webkit-scrollbar-thumb {
  background: var(--grey-blue-40);
  border-radius: 1rem;
  border: 2px solid var(--blue-dark-90);
}

/* !CLASSES RESET */
.title {
  font-size: clamp(2.3rem, 10vw, 2.6rem);
  font-family: alliance-b, sans-serif;
  font-weight: 500;
  line-height: 1.1;
}
.subtitle {
  font-size: clamp(1.8rem, 10vw, 2.2rem);
  font-family: alliance-b, sans-serif;
  font-weight: 500;
  line-height: 1.25;
}
.cta-txt,
.txt {
  color: var(--grey-blue-30);
}
.cta-txt {
  font-size: 1.4rem;
  line-height: 1.5;
}
.small {
  font-size: 1rem;
  color: var(--grey-blue-40);
}
.grey {
  color: var(--grey-blue-20);
}
.link {
  text-decoration: underline;
}

/* !BTNS */
.btn {
  padding: 0.6rem 1.1rem;
  border-radius: 0.75rem;
  text-align: center;
  transition: transform 0.2s ease-in-out;
  user-select: none;
}
.btn-sec:hover {
  background-color: var(--dark00-opa-20);
}
.btn-prime {
  background-size: 200%;
  background-image: var(--grad-red);
  transition: transform 0.2s, background 0.5s ease-in-out;
  background-position: left;
}
.btn-prime:hover {
  background-position: right;
}

/* !GRADIENTS */
.grad-txt-pr,
.grad-txt-or,
.grad-txt-bg {
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  -webkit-box-decoration-break: clone;
}
.grad-txt-bg {
  background-image: var(--grad-light-green);
}
.grad-txt-or {
  background-image: var(--grad-orange-red);
}
.grad-txt-pr {
  background-image: var(--grad-purple-red);
}

/* !HEADER SEC++++++++++++++++++++++++++++++++++++++*/
.logo-cont {
  position: fixed;
  top: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5rem 1rem;
  display: grid;
  grid-auto-flow: column;
  justify-content: center;
  align-items: center;
  gap: 0.3rem;
  border-radius: 2rem;
  z-index: 1;
}
.logo-txt {
  font-family: nunito-b;
  font-size: 1.2rem;
  color: var(--clr-link-dark);
  transition: color 0.3s;
}
.logo-svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: var(--clr-link-dark);
  transition: transform 0.3s ease-in-out, fill 0.3s;
}
@media screen and (min-width: 390px) {
  .logo-cont {
    top: 1.4rem;
  }
  @media screen and (min-width: 420px) {
    .logo-cont {
      top: 1.6rem;
    }
  }
}
@media screen and (min-width: 550px) {
  .logo-cont {
    position: absolute;
  }
  .logo-txt {
    color: var(--clr-link-light);
  }
  .logo-svg {
    fill: var(--clr-link-light);
  }
}
@media screen and (min-width: 1000px) {
  .logo-cont {
    padding: 1.5rem 1rem;
    /* !HOVER */
  }
  .logo-cont:hover .logo-txt {
    color: var(--grey-blue-00);
  }
  .logo-cont:hover svg {
    transform: rotate(180deg);
    fill: var(--grey-blue-00);
  }
}

/* !HERO SEC ++++++++++++++++++++++++++++++++++++++++*/
.hero-sec {
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 24rem 0 0;
}
.hero-sec::after {
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: calc(100% - 30rem);
  background-color: var(--blue-dark-90);
  z-index: 1;
}

/* BACKGROUND IMG */
.hero-sec::before {
  content: "";
  position: fixed;
  display: block;
  top: 0;
  left: 0;
  width: 100%;
  height: 25rem;
  background-image: url(/assets/img/touri-grey.webp);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center -1rem;
  z-index: -1;
}

.hero-txt-cont {
  position: relative;
  top: -2rem;
  padding: 0 1rem 3rem;
  max-width: 520px;
  text-align: center;
  z-index: 10;
}
.hero-txt-cont::before {
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120%;
  z-index: -1;
  background-image: linear-gradient(
    to top,
    #040d21 80%,
    #040d21d6 86%,
    #040d2165 94%,
    #040d2100 100%
  );
}
h1 {
  position: relative;
  font-size: clamp(2.8rem, 10vw, 4.2rem);
  font-family: alliance-b, sans-serif;
  font-weight: 600;
  line-height: 1.1;
  padding-bottom: 1rem;
  letter-spacing: -0.03em;
}
.hero-txt {
  position: relative;
  padding-bottom: 1.5rem;
}
.hero-btns-cont {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1rem;
}

/* MEDIA QUERIES HERO */
@media screen and (min-width: 550px) {
  .hero-sec {
    padding-top: 6rem;
  }
  .hero-sec::before {
    position: fixed;
    display: block;
    height: 100vh;
    background-image: linear-gradient(112deg, #040d21, #040d21c4, #040d2100),
      url(/assets/img/ft3.webp);
    background-position: 75% top;
    z-index: -1;
  }
  .hero-txt-cont {
    width: 75%;
    padding-left: 8%;
    text-align: left;
  }
  .hero-txt-cont::before {
    display: none;
  }
  .hero-btns-cont {
  }
  .hero-sec::after,
  .hero-txt-cont::before,
  .hero-txt-cont::after {
    display: none;
  }
}
@media screen and (min-width: 1000px) {
  .hero-sec {
    height: 100vh;
  }
  .hero-txt-cont {
    margin-left: 10%;
    backdrop-filter: var(--filter);
    -webkit-backdrop-filter: var(--filter);
    background-color: var(--dark00-opa-10);
    border-radius: 1rem;
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    text-align: left;
  }
}

/* !CITIES SEC+++++++++++++++++++++++++++ */
.cities-sec {
  position: relative;
  padding: 3rem 0 3rem;
  background-color: white;
  z-index: 10;
}
.cities-title {
  padding-left: 1rem;
  color: var(--grey-blue-70);
}
.city-cards-cont {
  padding: 1.5rem 0 0;
  display: flex;
  overflow-x: scroll;
  overflow-y: hidden;

  scroll-snap-type: x mandatory;
  scroll-padding-left: 1rem;
  scroll-padding-right: 1rem;
  scrollbar-width: none;
}
.city-cards-cont::after {
  content: "///";
  position: relative;
  left: 0;
  top: 0;
  display: block;
  width: 2rem;
  height: 2rem;
  color: transparent;
  z-index: 100;
}
.city-cards-cont::-webkit-scrollbar {
  display: none;
}
.city-card {
  position: relative;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  min-width: 16rem;
  width: 16rem;
  height: 18rem;
  display: grid;
  align-items: end;
  margin-left: 1rem;
  border-radius: 1rem;
  transition: transform 0.15s ease-in-out, color 0.3s;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.city-card::before,
.city-card::after {
  content: "";
  position: absolute;
  display: block;
  bottom: 0;
  left: 0;
  width: 100%;
  border-radius: 1rem;
}
.city-card::before {
  height: 100%;
  background-color: var(--dark90-opa-20);
  transition: opacity 0.3s;
  opacity: 0;
}
.city-card::after {
  height: 5rem;
  background-image: linear-gradient(
    to top,
    hsla(221, 78%, 7%, 0.5),
    hsla(221, 78%, 7%, 0.5),
    hsla(221, 78%, 7%, 0)
  );
  transition: height 0.3s;
}
.city-card:nth-child(1) {
  background-image: url(/assets/img/milan.jpg);
}
.city-card:nth-child(2) {
  background-image: url(/assets/img/florencia.jpg);
}
.city-card:nth-child(3) {
  background-image: url(/assets/img/paris.jpg);
}
.city-card:nth-child(4) {
  background-image: url(/assets/img/mallorca-catedral.jpg);
}
.city-card:nth-child(5) {
  background-image: url(/assets/img/londres.jpg);
  background-image: url(/assets/img/madrid.jpg);
}
.city-card:nth-child(6) {
  background-image: url(/assets/img/caceres.jpg);
}
.city-card:nth-child(7) {
}
.city-card > span {
  padding: 0.5rem;
  text-align: center;
  z-index: 10;
  transition: color 0.3s;
}

@media screen and (min-width: 1000px) {
  .cities-title {
    /* padding-left: 0; */
    width: 80%;
    margin-left: auto;
    margin-right: auto;
  }
  .city-cards-cont {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1.2rem;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .city-card {
    scroll-padding-left: 0;
    min-width: 0;
    width: auto;
    margin-left: 0;
  }
  .city-card::after {
    height: 5.25rem;
  }
  .city-card span {
    padding-bottom: 0.7rem;
  }
  .city-card:hover {
    transform: rotate(1deg) scale(1.03);
  }
  .city-card:hover > span {
    /* transform: scale(1.05); */
    color: var(--clr-link-light);
  }
}

/* !FAQ SEC+++++++++++++++++++++++++++++++++ */
.faq-sec {
  position: relative;
  padding: 3rem 1rem;
  /* background-color: var(--grey-blue-85); */
  background-color: var(--grey-blue-00);
  z-index: 100;
}
.faq-main-title {
  color: var(--blue-dark-90);
  padding-bottom: 1rem;
}
.faq-conts {
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
}
.faq-cont {
  position: relative;
  transition: padding 0.3s;
}

.faq-cont.open {
  padding-bottom: 1.5rem;
}

.faq-cont:nth-of-type(1)::before,
.faq-cont::after {
  content: "";
  position: absolute;
  display: block;
  width: 100%;
  height: 1px;
  left: 0;
  display: block;
  background: var(--grey-blue-10);
}

.faq-cont:nth-of-type(1)::before {
  top: 0;
}
.faq-cont::after {
  bottom: 0;
}

.faq-title {
  padding: 1.25rem 0;
  display: grid;
  grid-auto-flow: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 1.3rem;
  color: var(--grey-blue-70);
  transition: color 0.3s;
}

.open > .faq-title {
  color: var(--grey-blue-40);
}
.faq-title * {
  pointer-events: none;
}
.faq-title > svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: var(--grey-blue-70);
  stroke-width: 0.65rem;
  stroke-linecap: round;
  transition: transform 0.3s;
}
.open > .faq-title > svg {
  transform: rotate(180deg);
  stroke: var(--grey-blue-40);
}
.faq-txt {
  overflow: hidden;
  transition: height 0.3s;
  color: var(--grey-blue-70);
  display: grid;
  gap: 1.5rem;
}
.faq-txt.hide {
  height: 0;
}

/* !ARTICLES SEC */
.articles-sec {
  position: relative;
  padding: 3rem 0;
  background-color: var(--blue-dark-90);
  z-index: 10;

  /* padding-left: 10%;
  padding-right: 10%; */
}
.articles-title {
  padding-left: 1rem;
  padding-right: 1rem;
}
.articles-cont {
  padding: 1rem;
}
.article {
  position: relative;
  width: 100%;
  max-width: 26rem;
  height: 18rem;
  background-image: url(/assets/img/comer-en-milan-card.jpg);
  background-size: cover;
  background-position: center center;
  border-radius: 1rem;
  display: grid;
  align-items: flex-end;
}
.article-card-title {
  font-family: alliance-b, sans-serif;
  font-size: 1.7rem;
  line-height: 1.2;
}
.article::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6rem;
  background-image: linear-gradient(
    to top,
    hsla(221, 78%, 7%, 0.7),
    hsla(221, 78%, 7%, 0.5),
    hsla(221, 78%, 7%, 0)
  );
}
.article span {
  position: relative;
  padding: 1rem;
  z-index: 10;
  /* display: block; */
  /* font-famy */
}

@media screen and (min-width: 1000px) {
  .articles-sec {
    display: grid;
    place-items: center;
  }
}

/* !FOOTER */
footer {
  padding: 2rem 1rem;
  background-color: var(--grey-blue-70);
  display: grid;
  gap: 1rem;
}
footer.small {
  color: var(--grey-blue-20);
}
footer span {
  font-size: 0.9rem;
}

@media screen and (min-width: 1000px) {
  footer {
    padding-left: 10%;
    padding-right: 10%;
  }
}
