/* FONTS */
@font-face {
  font-family: 'Aubrey';
  src: url('./../fonts/Aubrey-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Instrument Serif';
  src: url('./../fonts/InstrumentSerif-Regular.ttf') format('truetype');
}

/* COMMON */
:root {
  --font-primary: 'Aubrey', Arial, Helvetica, sans-serif;
  --font-primary-bold: 'Aubrey', Arial, Helvetica, sans-serif;
  --font-secondary: 'Instrument Serif', Times New Roman, Times, serif;

  --color-text: #ffffff;
  --color-link: #000000;
  --color-link-hover: #000000;

  --form-input-color: #000000;
  --form-label-color: #ffffff;
  --form-label-active-color: #000000;
  --form-placeholder-color: #000000;
  --form-preguntas-question-color: #ffffff;
  --form-input-backgroud-color: white;
  --form-text-size: 16px;

  --color-primary: #8f2050;
  --color-primary-dark: #561c35;
  --color-primary-light: #cd1062;

  --color-secondary: #e2ba43;
  --color-secondary-dark: #9a7f2e;
  --color-secondary-light: #fcc00e;

  --color-tertiary: #666666;
  --color-tertiary-dark: #333333;
  --color-tertiary-light: #999999;

  --color-list-bg: #ffffff;
  --color-list-bg-light: #eeeeee;

  --color-admin-area-bg: #fafafa;
  --color-admin-area-bg-dark: #333333;
  --color-admin-area-border: #dddddd;
  --color-admin-area-button-bg: #fafafa;
  --color-admin-area-button-bg-hover: #ffffff;
  --color-admin-area-ok: #1ba2c0;
  --color-admin-area-ok-hover: #0fc2ea;
  --color-admin-area-ko: #c34a4a;
  --color-admin-area-ko-hover: #e63434;

  --padding-container-x: 120px;
  --padding-container-y: 120px;

  --max-width-container: 2250px;
  /* ¡Ojo! Cambiar también en los márgenes de los elementos de la cabecera y contacto */
  --max-width-container-semi-narrow: 1600px;
  --max-width-container-narrow: 1350px;
  --max-width-container-super-narrow: 900px;
  --max-width-container-ultra-narrow: 600px;

  --height-header-top-bar: 120px;
}

@media (max-width: 1200px) {
  :root {
    --padding-container-x: 80px;
    --padding-container-y: 80px;
  }
}

@media (max-width: 992px) {
  :root {
    --padding-container-x: 40px;
    --padding-container-y: 80px;

    --height-header-top-bar: 90px;
  }
}

@media (max-width: 420px) {
  :root {
    --padding-container-x: 30px;
    --padding-container-y: 60px;
  }
}

.hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

* {
  box-sizing: border-box;
  font-family: var(--font-primary);
  color: var(--color-text);
}

html {
  overflow-x: hidden;
  background-color: #141217;
}

body {
  position: relative;
}

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

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

strong,
b {
  font-family: var(--font-primary-bold);
  font-weight: 600;
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 0;
  font-weight: 300;
}

h1 {
  font-size: 48px;
}

h2 {
  font-size: 36px;
}

h3 {
  font-size: 28px;
}

@media (max-width: 992px) {
  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 26px;
  }

  h3 {
    font-size: 22px;
  }
}

p,
span,
a,
ul,
li,
summary,
details,
.button {
  font-size: 20px;
}

@media (max-width: 992px) {

  p,
  span,
  a,
  ul,
  li,
  summary,
  details,
  .button {
    font-size: 16px;
  }
}

p,
span,
ul,
li {
  color: var(--color-text);
}

i,
div span,
p span,
a span,
li span,
span span,
h1 span,
h2 span,
h3 span,
h4 span,
h5 span,
h6 span {
  font-size: inherit;
  font-family: inherit;
  font-weight: inherit;
  color: inherit;
}

figure {
  margin-bottom: 0px;
}

::selection {
  background-color: var(--color-primary-light);
  color: var(--color-primary-dark);
}

img {
  width: 100%;
  height: auto;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-user-select: none;
  user-select: none;
}

main {
  background-image: url(../img/road.jpg);
  background-size: 100%;
  background-position: top center;
}

.section {
  display: flex;
  justify-content: center;
}

.section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: var(--max-width-container);
  padding: var(--padding-container-y) var(--padding-container-x);
  margin: 0;
  z-index: 1;
}

.section .container>* {
  width: 100%;
}

.section.vertical .container .section-header {
  padding-inline: var(--padding-container-x);
}

@media (max-width: 992px) {
  .section.vertical .container .section-header {
    padding-top: var(--padding-container-y);
  }
}

.container.semi-narrow,
.semi-narrow {
  max-width: var(--max-width-container-semi-narrow);
}

.container.narrow,
.narrow {
  max-width: var(--max-width-container-narrow);
}

.container.super-narrow,
.super-narrow {
  max-width: var(--max-width-container-super-narrow);
}

.container.ultra-narrow,
.ultra-narrow {
  max-width: var(--max-width-container-ultra-narrow);
}

.button {
  display: inline-block;
  padding: 12px 40px;
  cursor: pointer;
  text-align: center;
  border-radius: 30px;
  transition: all 250ms ease-in-out;
}

.button:hover {
  transition: all 250ms ease-in-out;
}

.section .section-header {
  text-align: center;
}

.section .section-header:has(+ div) {
  margin-bottom: calc(var(--padding-container-y) / 2);
}

.section .section-title {
  font-family: var(--font-secondary);
}

.section .section-title:has(+ p) {
  margin-bottom: 20px;
}

.section p.section-text {
  margin-bottom: 0;
}

.section .section-text:has(+ .button) {
  margin-bottom: 40px;
}

.section.dark {
  background-color: var(--color-primary);
}

.section.light {
  background-color: white;
}

.section.dark .section-title {
  color: white;
}

.section.dark .section-text {
  color: white;
}

.section.light .section-title {
  color: var(--color-primary);
}

.section.light .section-text {
  color: var(--color-text);
}

.section.light .button {
  color: var(--color-primary);
  background-color: white;
  border: 1px solid var(--color-primary);
}

.section.light .button:hover {
  color: white;
  background-color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.section.dark .button {
  color: white;
  background-color: rgba(255, 255, 255, .2);
  border: 1px solid white;
}

.section.dark .button:hover {
  color: var(--color-primary);
  background-color: white;
  border: 1px solid white;
}

.section.light:has(+ .section.light).padding-y,
.section.dark:has(+ .section.dark).padding-y {
  padding-bottom: 0;
}

.section.vertical .section-header {
  text-align: left;
  margin-bottom: 0;
}

.section.vertical .container {
  flex-direction: row;
  align-items: stretch;
  padding: 0;
}

.section.vertical .container>* {
  padding: var(--padding-container-y) var(--padding-container-x);
}

.section.vertical .container .section-image {
  background-position: center center;
  background-size: cover;
}

@media (min-width: 992px) {
  .section.padding-y {
    padding-top: var(--padding-container-y);
    padding-bottom: var(--padding-container-y);
  }

  .section.vertical.flip .container {
    flex-direction: row-reverse;
  }

  .section.vertical .container>* {
    width: 50%;
  }

  .section.vertical.one-two .container>*:first-child {
    width: calc((100% / 3) * 1);
  }

  .section.vertical.one-two .container>*:nth-child(2) {
    width: calc((100% / 3) * 2);
  }

  .section.vertical.two-one .container>*:first-child {
    width: calc((100% / 3) * 2);
  }

  .section.vertical.two-one .container>*:nth-child(2) {
    width: calc((100% / 3) * 1);
  }
}

@media (max-width: 992px) {

  .section.vertical .container,
  .section.vertical.flip .container {
    flex-direction: column;
  }

  .section.vertical .container .section-image {
    aspect-ratio: 1 / 1;
  }
}

/* TOP BAR */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 8px;
  z-index: 100;
  text-decoration: none;
  transition: top 0.3s;
  font-size: 16px;
}

.skip-to-content:focus {
  top: 0;
}

.header-top-bar {
  position: absolute;
  display: flex;
  align-items: center;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--height-header-top-bar);
  z-index: 10;
}

.header-top-bar .header-nav>ul li {
  position: relative;
  display: flex;
  justify-content: center;
  text-align: center;
}

/* SUB MENU DESPLEGABLE */
@media (min-width: 1200px) {
  .header-top-bar .header-nav ul li ul {
    position: absolute;
    top: 100%;
    max-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 10px 0 0;
    transition: max-height 300ms ease-in-out;
  }

  .header-top-bar .header-nav ul li:hover ul {
    max-height: 300px;
    transition: max-height 300ms ease-in-out;
  }

  .header-top-bar .header-nav ul li ul li {
    padding: 10px;
    white-space: nowrap;
  }
}

/* FIN SUB MENU DESPLEGABLE */

.header-top-bar .container {
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
  max-width: var(--max-width-container);
  padding-inline: var(--padding-container-x);
}

.header-top-bar .logo img {
  width: 100%;
  height: auto;
  max-width: 400px;
}

.header-top-bar .header-nav>ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 40px;
}

.header-top-bar .header-nav>ul li a {
  color: white;
  font-size: 20px;
  font-weight: 600;
}

@media (max-width: 1200px) {
  .header-top-bar .logo img {
    max-width: 200px;
  }

  .header-top-bar .header-nav ul li a {
    font-size: 18px;
  }
}

/* NAV MOBILE */
.nav-toggler-btn,
.nav-close-btn {
  display: none;
}

.backdrop {
  position: absolute;
  height: 100%;
  width: 100%;
  display: none;
  backdrop-filter: blur(0px);
  opacity: 0;
  z-index: 5;
  transition: opacity 300ms ease-in-out;
}

@media (max-width: 1200px) {
  html.mobile .backdrop {
    display: block;
    backdrop-filter: blur(3px);
    opacity: 1;
    transition: opacity 300ms ease-in-out;
  }

  html .header-nav {
    position: fixed;
    height: 100vh;
    right: -500px;
    top: 0;
    display: block;
    background-color: black;
    padding: var(--height-header-top-bar) 0 0 0;
    transition: right 300ms ease-in-out;
  }

  html.mobile .header-nav {
    right: 0;
    top: 0;
    transition: right 300ms ease-in-out;
  }

  .header-top-bar {
    height: var(--height-header-top-bar);
    padding: 0 0 0 var(--padding-x-container);
  }

  .header-top-bar .header-logo img {
    width: 200px;
  }

  .header-top-bar .header-nav ul {
    flex-direction: column;
    padding: 10px 0;
    gap: 0;
  }

  .header-top-bar .header-nav ul li {
    display: block;
    width: 100%;
  }

  .header-top-bar .header-nav ul li a {
    display: block;
    color: white;
    padding: 24px 60px 24px 30px;
    font-size: 18px;
    background-image: none;
    font-weight: 100;
  }

  .nav-toggler-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    height: 100%;
    aspect-ratio: 1/1;
  }

  .nav-toggler-btn img {
    width: 26px;
  }

  .nav-close-btn {
    display: flex;
    justify-content: right;
    align-items: center;
    width: 100%;
    height: 128px;
    position: absolute;
    padding: 0 var(--padding-container-x);
    top: 0;
    right: 0;
    aspect-ratio: 1/1;
    background-color: var(--color-primary);
  }

  .nav-close-btn img {
    width: 40px;
  }
}


/* MAIN HEADER */
.main-header {
  height: 900px;
  position: relative;
}

.main-header::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 300px;
  background: linear-gradient(to bottom, transparent 0%, #141217 100%);
  bottom: 0;
  left: 0;
  z-index: 1;
}

.main-header .container {
  position: relative;
  height: 100%;
}

.main-header .header-info {
  position: relative;
  display: flex;
  height: 100%;
  justify-content: center;
  align-items: center;
}

@media (min-width: 992px) {
  .main-header .header-info .title {
    position: absolute;
    text-align: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-secondary);
    font-size: 120px;
    z-index: 1;
  }
}

@media (max-width: 1600px) {
  .main-header .header-info .title {
    font-size: 100px;
  }
}

@media (max-width: 1400px) {
  .main-header .header-info .title {
    font-size: 80px;
  }
}

@media (max-width: 992px) {
  .main-header .header-info {
    flex-direction: column;
  }

  .main-header .header-info .title {
    position: relative;
    font-size: 30px;
    z-index: 1;
  }

}

.main-header .header-info .title::before,
.main-header .header-info .title::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
}

.main-header .header-info .title::before {
  top: 0px;
  background: linear-gradient(to right, transparent 0%, #ffffff 20%, rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, 0) 65%, #ffffff 80%, transparent 100%);
}

.main-header .header-info .title::after {
  bottom: 0px;
  background: linear-gradient(to right, transparent 0%, #ffffff 20%, #ffffff 80%, transparent 100%);
}

.main-header .header-info .img-servant {
  max-width: 900px;
  padding: var(--padding-container-y) var(--padding-container-x);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.main-header .header-info .img-servant.active {
  opacity: 1;
}

@media (max-width: 992px) {
  .main-header .header-info .img-servant {
    max-width: 500px;
  }
}

/* WALKER */
.walker {
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.walker img {
  width: 100%;
  height: auto;
  max-width: 200px;
}

@media (max-width: 992px) {
  .walker img {
    max-width: 100px;
  }
}


/* WALKER ANIMATIONS */

/* Section 1 */
@keyframes walk-sec-1 {
  0% {
    top: -30%;
    left: 20%;
  }

  100% {
    top: 130%;
    left: 80%;
  }
}

.section-1.active .walker {
  animation: walk-sec-1 7s linear forwards;
}

/* Section 2 */
@keyframes walk-sec-2 {
  0% {
    top: -30%;
    left: 50%;
  }

  100% {
    top: 130%;
    left: 60%;
  }
}

.section-2.active .walker {
  animation: walk-sec-2 8s linear forwards;
}

/* Section 3 */
@keyframes walk-sec-3 {
  0% {
    top: -30%;
    left: 40%;
  }

  100% {
    top: 130%;
    left: 65%;
  }
}

.section-3.active .walker {
  animation: walk-sec-3 6s linear forwards;
}

/* SECTIONS */
.frame {
  height: 100dvh;
  position: relative;
  overflow: hidden;
}

section.frame::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 300px;
  background: linear-gradient(to top, #14121700 0%, #141217 100%);
  top: 0;
  left: 0;
  z-index: 1;
}

.section.frame::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 300px;
  background: linear-gradient(to bottom, #14121700 0%, #141217 100%);
  bottom: 0;
  left: 0;
  z-index: 1;
}

section.section-road .container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

@media (max-width: 992px) {
  section.section-road .container {
    display: flex;
  }

  section.section-road.flipped .container {
    display: flex;
    flex-direction: column-reverse;
  }
}

section.section-road .container .section-header,
section.section-road .container .section-spacer,
section.section-road .container .section-content {
  width: 100%;
  max-width: 100%;
  text-align: left;
}

h2.section-title {
  font-size: 60px;
}

p.section-text {
  font-size: 26px;
  line-height: 1.4;
}

@media (max-width: 992px) {
  h2.section-title {
    font-size: 32px;
  }

  p.section-text {
    font-size: 18px;
  }
}

/* SECTION 1 */

/* SECTION 2 */
.section-cards {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 0;
}

.section-cards img {
  width: 180px;
  height: auto;
  position: relative;
  filter: drop-shadow(-5px 15px 10px rgba(0, 0, 0, 0.4));
  transform-origin: bottom center;
  transition: transform 0.3s ease-out, filter 0.3s ease-out;
}

.section-cards img:not(:first-child) {
  margin-left: -110px;
}

.section-cards img:nth-child(1) {
  transform: translateY(30px) rotate(-16deg);
  z-index: 1;
}

.section-cards img:nth-child(2) {
  transform: translateY(10px) rotate(-8deg);
  z-index: 2;
}

.section-cards img:nth-child(3) {
  transform: translateY(0) rotate(0deg);
  z-index: 3;
}

.section-cards img:nth-child(4) {
  transform: translateY(10px) rotate(8deg);
  z-index: 2;
}

.section-cards img:nth-child(5) {
  transform: translateY(30px) rotate(16deg);
  z-index: 1;
}

.section-cards img:hover {
  transform: translateY(-30px) rotate(0deg) scale(1.15) !important;
  z-index: 10 !important;
  cursor: pointer;
  filter: drop-shadow(0px 25px 15px rgba(0, 0, 0, 0.6));
}