/* ======================================================================= 
   VARS
   ======================================================================= */
:root {
  /*Colors 2024*/
  --color-warm-gray-1: #887E75;
  --color-warm-gray-2: #908884;
  --color-warm-gray-3: #A59E9B;
  --color-warm-gray-4: #BBB6B3;
  --color-warm-gray-5: #D2CDCB;
  --color-warm-gray-6: #E9E6E4;
  --color-warm-gray-7: #F5F2F1;
  --color-magenta: #C6007E;
  --color-navy-blue: #003B5C;
  --color-cyan: #008EAA;
  --color-melia-green: #5d7fa3;
  --color-green: #009C96;
  --color-green-nuevo: #c8c97b;
  --color-orange: #D65600;
  --color-yellow: #E8BE01;
  --color-negro-claro: #363636;
  --color-naranja-suave: #e9a579;
  --color-rojo-suave: #b86650;
  --color-footer-bg-color: #282630;
}



/* ======================================================================= 
   FONTS
   ======================================================================= */
  @font-face {
  font-family: 'Graphik Regular';
  src: url('../fonts/Graphik-Regular.ttf') format('truetype');
}
  @font-face {
  font-family: 'Graphik Bold';
  src: url('../fonts/Graphik-Bold.ttf') format('truetype');
}
  @font-face {
  font-family: 'Graphik ExtraLight';
  src: url('../fonts/Graphik-Extralight.otf') format('opentype');
}



/* ======================================================================= 
   GENERALS
   ======================================================================= */
html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth !important;
  box-sizing: border-box !important;
}

body {
  margin: 0 !important;
}

body,
main {
  font-family: 'Graphik Regular';
  background-color: #ffffff !important;
}

main {
  padding-top: 20px !important;
  padding-bottom: 0 !important;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}



/* ==========================
 	 Header
   ========================== */
header {
  position: sticky;
  top: 0;
  right: 0;
  z-index: 10;
  width: calc(100vw 17px);
  height: 75px;
  background-color: rgba(93, 127, 163, .3);
  background-image: url("../images/logo.png");
  background-size: 283px 43px;
  background-repeat: no-repeat;
  background-position: center center;
}

header.scrolled {
  background-color: rgba(93, 127, 163, 1);
  box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
}

/* ==========================
 	 Meliá VIP Section
   ========================== */
.logo-melia-vip {
  width: 200px;
  height: fit-content;
  object-fit: cover;
  object-position: center;
  padding: 35px;
  margin-bottom: 25px;
  border-radius: 3px;
  border: 1px solid #eaeaea;
}

.logo-melia-vip img {
  width: 100%;
  height: 100%;
}

/* ==========================
 	 Hero Section
   ========================== */
.hero {
  position: relative;
  top: -70px;
  min-height: 50vh;
  color: #fff;
  text-align: center;
}

.hero .background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-color: var(--color-warm-gray-1);
  z-index: -1;
}

.hero .background-image:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-warm-gray-1);
  opacity: 0.3;
  filter: blur(100px);
  /*background-color: linear-gradient(45deg, black, white);*/
}

.hero .zoomoutheader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero h1 {
  font-family: 'Graphik Bold', sans-serif;
  font-size: 7em;
  font-weight: 400;
  margin-top: 150px;
  margin-bottom: 0.3em;
  animation: appearing 3s ease-in-out;
}

.hero h2 {
  position: relative;
  font: normal 2em "Graphik Regular", sans-serif;
  margin-bottom: 40px;
}

/* Title Animation */
@keyframes appearing {
  0% {
    opacity: 0;
    transform: translateY(100%);
  }

  50% {
    opacity: 0.75;
    transform: translateY(-50%);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Subtitle Animation */
.reveal {
  position: relative;
  display: flex;
  font-size: 2em;
  font-family: Raleway, sans-serif;
  letter-spacing: 3px;
  text-transform: uppercase;
  white-space: pre;
}

.reveal span {
  opacity: 0;
  transform: scale(0);
  animation: fadeIn 2.4s forwards;
  animation-delay: 1s !important;
}

.reveal::before,
.reveal::after {
  position: absolute;
  content: "";
  top: 0;
  bottom: 0;
  width: 3px;
  height: 100%;
  background: #fff;
  opacity: 0;
  transform: scale(0);
}

.reveal::before {
  left: 50%;
  animation: slideLeft 1.5s 1.2s cubic-bezier(0.7, -0.6, 0.3, 1.5) forwards;
}

.reveal::after {
  right: 50%;
  animation: slideRight 1.5s 1.2s cubic-bezier(0.7, -0.6, 0.3, 1.5) forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideLeft {
  to {
    left: -6%;
    opacity: 1;
    transform: scale(0.9);
  }
}

@keyframes slideRight {
  to {
    right: -6%;
    opacity: 1;
    transform: scale(0.9);
  }
}


@media (max-width: 800px) {
  .hero {
    min-height: 600px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero h2 {
    font-size: 24px;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 40px;
  }

  .hero h2 {
    font-size: 20px;
  }
}

@media (max-width: 500px) {
  .hero h1 {
    font-size: 35px;
  }

  .hero h2 {
    font-size: 15px;
  }
}


@media (max-width: 400px) {
  .hero h1 {
    font-size: 30px;
  }

  .hero h2 {
    font-size: 12px;
  }
}


/* The outermost element*/
.header-wrapper {
  overflow: hidden;
  width: 100%;
  height: 75vh;
  text-align: center;
}

.zoominheader {
  width: 100vw;
  height: 75vh;
  text-align: center;
  background: rgba(0, 0, 0, 0.7) url("../images/hero-images/beach_1.jpg");
  background-blend-mode: darken;
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
  position: relative;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-animation: zoomin 60s ease-in infinite;
  animation: zoomin 60s ease-in infinite;
  transition: all .5s ease-in-out;
  overflow: hidden;
}

/* The innermost element*/
.zoomoutheader {
  width: 100vw;
  height: 75vh;
  text-align: center;
  background: none;
  -webkit-animation: zoomout 60s ease-in infinite;
  animation: zoomout 60s ease-in infinite;
  transition: all .5s ease-in-out;
  overflow: hidden;
}

/* Zoom in Keyframes */
@-webkit-keyframes zoomin {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.5);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes zoomin {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.5);
  }

  100% {
    transform: scale(1);
  }
}

/*End of Zoom in Keyframes */

/* Zoom out Keyframes */
@-webkit-keyframes zoomout {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(0.67);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes zoomout {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(0.67);
  }

  100% {
    transform: scale(1);
  }
}

/*End of Zoom out Keyframes */


/* ==========================
 	 Select-language Section
   ========================== */
section.select-language {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0px 100px;
  background-color: #fff;
}

@media (max-width: 1000px) {
  section.select-language {
    padding: 0;
  }
}

section.select-language h3.title {
  font-family: 'Graphik Bold';
  font-size: 23px;
  color: var(--color-melia-green);
  text-transform: uppercase;
  margin-bottom: 35px;
  text-align: center;
  -webkit-animation: fadeIn 2s ease-in-out 1 0s;
  -ms-animation: fadeIn 2s ease-in-out 1 0s;
  animation: fadeIn 2s ease-in-out 1 0s;
  font-weight: bold;
}

@-webkit-keyframes fadeIn {
  from {
    opacity: 0;
    -webkit-transform: translateY(30px);
  }

  to {
    opacity: 1;
    -webkit-transform: translateY(0px);
  }
}

@-ms-keyframes fadeIn {
  from {
    opacity: 0;
    -ms-transform: translateY(30px);
  }

  to {
    opacity: 1;
    -ms-transform: translateY(0px);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0px);
  }
}


section.select-language p {
  color: var(--color-warm-gray-3);
  max-width: 800px;
  text-align: center;
  margin-bottom: 35px;
  padding: 0 20px;
  line-height: 2;
  -webkit-animation: fadeIn 2s ease-in-out 1 0s;
  -ms-animation: fadeIn 2s ease-in-out 1 0s;
  animation: fadeIn 2s ease-in-out 1 0s;
}

hr {
  width: 1px;
  height: 2px;
  background-color: var(--color-melia-green);
  border: 0;
  margin-bottom: 80px;
  transition: all 1s;
}

hr.wide {
  width: 150px;
}


ul#flags {
  width: calc(100vw - 17px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding-left: 0;
}

ul#flags.visibled {
  -webkit-animation: fadeIn 2s ease-in-out 1 0s;
  -ms-animation: fadeIn 2s ease-in-out 1 0s;
  animation: fadeIn 2s ease-in-out 1 0s;
}

ul#flags li {
  flex-basis: 25%;
  aspect-ratio: 16 / 9;
  margin: 25px;
  border-radius: 3px;
  background-repeat: no-repeat;
  background-size: 35%;
  background-position: 50% 20%;
  background-origin: content-box;
  -moz-background-origin: content-box;
  background-color: var(--color-warm-gray-6);
  background-color: rgba(0, 93, 83, .1);
  display: flex;
  align-items: end;
  justify-content: center;
  transition: all 1s;
  position:  relative;
}

ul#flags li:hover,
ul#flags li:active {
  background-color: rgba(0, 93, 83, .2);
  box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;
}


ul#flags li a {
  position:  absolute;
  left:  0;
  right:  0;
  top:  0;
  bottom:  0;
  text-align:  center;
}

ul#flags li a span {
  color: var(--color-footer-bg-color);
  font-size: 1.1em;
  position:  absolute;
  bottom: 10px;
  left:  50%;
  transform: translateX(-50%);
}


@media (max-width: 1800px) {
  ul#flags li.language {
    flex-basis: 25%;
  }
}

@media (max-width: 1200px) {
  ul#flags li.language {
    flex-basis: 30%;
  }
}

@media (max-width: 800px) {
  ul#flags li.language {
    flex-basis: 45%;
  }
}

@media (max-width: 600px) {
  ul#flags li.language {
    flex-basis: 60%;
  }
}

@media (max-width: 400px) {
  ul#flags li.language {
    flex-basis: 80%;
  }
}



/* ==========================
 	 Footer
   ========================== */
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #fff;
  background-color: var(--color-footer-bg-color);
  padding: 60px 0;
  margin-top: 25px;
}

footer ul {
  display: flex;
  margin-bottom: 25px;
  font-size: 32px;
  padding-left: 0;
}

footer ul li {
  margin: 0 20px;
}

footer ul li:first-child {
  margin-left: 0;
}

footer ul li:last-child {
  margin-right: 0;
}

footer ul li a {
  color: var(--color-warm-gray-5);
  font-size: 1.2em;
}

footer ul li a:hover {
  color: #ffffff;
}


footer p {
  font-size: 14px;
  color: var(--color-warm-gray-3);
  margin-top: 30px;
}

footer p a {
  color: #fff;
}

footer p span {
  padding: 0 1em;
}

@media (max-width: 700px) {
  footer {
    padding: 80px 15px;
  }
}

@media (max-width: 570px) {
  footer p span {
    display: block;
    margin: 30px 0;
  }
}