*,
*::after,
*::before {
  box-sizing: border-box;
}

:root {
  font-size: 16px;
  --page-padding: 1.5rem;

  --color-text: #023d72;
  --color-bg: white; /*#e1e1e1*/
  --color-link: #023d72;
  --color-link-hover: #005299;
  --color-bg-1: #9d9d9d;
  --color-bg-2: #c7c7c7;
  --color-bg-3: var(--color-bg-1);
  --color-bg-4: var(--color-bg-2);
  --color-bg-5: var(--color-bg-1);
  --color-bg-6: var(--color-bg-2);
}

body {
  margin: 0;
  color: var(--color-text);
  background-color: var(--color-bg);
  font-family: "area-variable", sans-serif;
  font-variation-settings: "slnt" 0, "wdth" 150, "wght" 500, "INKT" 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  overflow-x: hidden;
}

/* Page Loader */
.js .loading::before,
.js .loading::after {
  content: "";
  position: fixed;
  z-index: 5000;
}

.js .loading::before {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-bg);
}

.js .loading::after {
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px;
  border-radius: 50%;
  opacity: 0.4;
  background: var(--color-link);
  animation: loaderAnim 0.7s linear infinite alternate forwards;
}

@keyframes loaderAnim {
  to {
    opacity: 1;
    transform: scale3d(0.5, 0.5, 1);
  }
}

a {
  text-decoration: none;
  color: var(--color-link);
  outline: none;
  cursor: pointer;
}

a:hover {
  color: var(--color-link-hover);
  outline: none;
}

/* Better focus styles from https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible */
a:focus {
  /* Provide a fallback style for browsers
	 that don't support :focus-visible */
  outline: none;
  background: lightgrey;
}

a:focus:not(:focus-visible) {
  /* Remove the focus indicator on mouse-focus for browsers
	 that do support :focus-visible */
  background: transparent;
}

a:focus-visible {
  /* Draw a very noticeable focus style for
	 keyboard-focus on browsers that do support
	 :focus-visible */
  outline: 2px solid red;
  background: transparent;
}

.unbutton {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  cursor: pointer;
}

.unbutton:focus {
  outline: none;
}

.frame {
  padding: var(--page-padding);
  position: relative;
  display: grid;
  z-index: 1000;
  width: 100%;
  max-width: 900px;
  justify-items: start;
  font-size: 14px;
}

.frame--header {
  height: 200px;
  padding-left: 15px;
  background-size: auto 80%;
  background-position: 120% 50%;
  background-repeat: no-repeat;
  grid-template-areas: "title" "quick1" "quick2" "quick3" "quick4" "quick5" "quick6";
}

.frame--footer{
  padding: 5px;
  text-align: center;
}

.frame--footer span {
  margin-bottom: 5px;
}

.frame #cdawrap {
  justify-self: start;
}

.frame a {
  pointer-events: auto;
  line-height: 24px;
}

.frame li {
  list-style: none;
}

.frame__title {
  grid-area: title;
  font-size: 1rem;
  margin: 0;
  line-height: 24px;
}

.frame__heading {
  grid-area: heading;
  align-self: center;
  justify-self: start;
  width: min-content;
  display: flex;
  flex-direction: column;
  margin-top: 10vh;
}

.frame__heading h2 {
  margin: 0;
  line-height: 0.9;
  text-transform: uppercase;
  margin-left: -0.065em;
  font-size: clamp(2.5rem, 12vw, 7rem);
  letter-spacing: -0.105em;
  font-variation-settings: "slnt" 0, "wdth" 400, "wght" 900, "INKT" 400;
}

i {
  font-style: normal;
  font-variation-settings: "slnt" 0, "wdth" 100, "wght" 400, "INKT" 400;
}

.frame__heading p {
  margin: 0;
}

.frame__credits {
  grid-area: credits;
}

.frame__author {
  display: flex;
  gap: 1.5rem;
  grid-area: author;
}

.content {
  padding: var(--page-padding);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.content--perspective {
  perspective-origin: 50% 0%;
  perspective: 1000px;
}

.text-large {
  font-size: clamp(3rem, 6vw, 5rem);
  max-width: 900px;
  margin: 0 0 0.85em 0;
  line-height: 1.2;
  font-variation-settings: "slnt" 0, "wdth" 100, "wght" 500, "INKT" 100;
}

.content--sticky {
  width: 100vw;
  position: sticky;
  top: 0;
  --offset: 0px;
  top: var(--offset);
  height: calc(100vh - var(--offset));
}

.content--grid,
.content--grid .content__inner {
  display: grid;
  overflow: hidden;
  grid-column-gap: 5vw;
  grid-row-gap: 2vh;
  align-content: center;
  grid-template-areas: "content-img" "content-title" "content-text";
  justify-items: center;
}

.content--grid:has(.content__inner) {
  display: block;
  padding: 0;
}

.content__inner {
  width: 100%;
  height: 100%;
  border-radius: 0 0 2rem 2rem;
}

.content--card {
  display: flex;
  flex-direction: column;
  align-content: center;
  width: 85vw;
  max-width: 900px;
  top: 10vh;
  margin: auto;
  text-align: center;
  padding: var(--page-padding);
  border: 1px solid #023d72;
  margin-top: 5vh;
  background-color: white;
  background-repeat: repeat-y;
}

.content--card-left{
  background-position: right;
  padding-right: calc(30px + var(--page-padding));
  background-image: url(../img/bandera.png);
}

.content--card-right{
  background-position: left;
  padding-left: calc(30px + var(--page-padding));
  background-image: url(../img/bandera-reves.png);
}

.content--card .content__title {
  font-size: clamp(1.5rem, 4vw, 3.5rem);
  text-shadow: none;
  color: #023d72;
}

.content--card .content__title i {
  display: block;
}

.content--card p {
  text-align: justify;
}

.content--card img {
  max-width: none;
  border: 1px solid #005299;
  border-radius: 1em;
}

.content--half {
  display: flex;
  flex-direction: column;
  gap: 3vh;
  text-align: center;
}

.content--half:nth-child(odd) {
  margin-left: auto;
}

.content__img {
  grid-area: content-img;
  width: 35%;
  max-width: 300px;
  height: auto;
}

.content__img--large {
  width: 100%;
  height: auto;
}

.content__img--small {
  height: 35%;
  width: auto;
}

.spacer {
  margin-top: 20vh;
}

.content__title {
  grid-area: content-title;
  line-height: 1;
  font-weight: normal;
  font-size: clamp(3rem, 6vw, 5rem);
  margin: 0;
  padding-bottom: 1rem;
  font-variation-settings: "slnt" 0, "wdth" 400, "wght" 900, "INKT" 400;
}

.content__text {
  margin: 0;
  max-width: 900px;
  grid-area: content-text;
  text-align: center;
  line-height: 1.5;
  padding: 2rem;
  backface-visibility: hidden;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 1rem;

  box-shadow: 0px 5px 6px 1px #333;
}

.content__text--narrow {
  max-width: 300px;
}

.content--heading {
	width: 100vw;
	height: 900px;
  }

.content--intro {
  padding-top: 10vh;
  padding-bottom: 10vh;
  z-index: 2;
}

.content--outro {
  padding-top: 5vh;
  padding-bottom: 5vh;
  background-color: lightskyblue;
}

.sticky-bg {
  background-repeat: no-repeat;
  background-position: top;
  background-size: 100vw auto;
}

.bg-1 {
  background-image: url(../img/nubes.jpg);
}
.bg-2 {
  background-image: url(../img/atardecer1.jpg);
}
.bg-3 {
  background-image: url(../img/parador.jpg);
}
.bg-4 {
	background-image: url(../img/pagoda.webp);
}
.bg-5 {
  background-image: url(../img/banquete.jpg);
}
.bg-6 {
  background-image: url(../img/salon.webp);
  background-position: bottom;
}


@media screen and (max-width: 600px) {
  .content__text {
    padding: 1rem;
  }  
}

@media screen and (max-width: 1440px) {
	.sticky-bg {
	    background-size: auto 100vh;
	}  
  }
  