/* GENERAL STYLES */

@font-face {
    font-family: 'Nimbus Bold';
    src: url('../fonts/NimbusSansDOT-BoldExte.eot');
    src: url('../fonts/NimbusSansDOT-BoldExte.eot') format('embedded-opentype'),
        url('../fonts/NimbusSansDOT-BoldExte.woff2') format('woff2'),
        url('../fonts/NimbusSansDOT-BoldExte.woff') format('woff'),
        url('../fonts/NimbusSansDOT-BoldExte.ttf') format('truetype'),
        url('../fonts/NimbusSansDOT-BoldExte.svg#NimbusSansDOT-BoldExte') format('svg');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nimbus Regular';
    src: url('../fonts/NimbusSansDOT-ReguExte.eot');
    src: url('../fonts/NimbusSansDOT-ReguExte.eot?#iefix') format('embedded-opentype'),
        url('../fonts/NimbusSansDOT-ReguExte.woff2') format('woff2'),
        url('../fonts/NimbusSansDOT-ReguExte.woff') format('woff'),
        url('../fonts/NimbusSansDOT-ReguExte.ttf') format('truetype'),
        url('../fonts/NimbusSansDOT-ReguExte.svg#NimbusSansDOT-ReguExte') format('svg');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

:root {
    --bold: 'Nimbus Bold';
    --regular: 'Nimbus Regular';
}


:root {
    --bg: #EAE7E2;
    --black: #000000;
    --yellow: #ffc600;
    --white: #fff;
    --grey: #efefef;
  }
  html {
    font-size: 10px;
    cursor: url('../images/cursor.svg'), auto;	
    
  }

  body {
    font-size: 2rem;
    background-color: var(--bg);
    overflow-x: hidden;
    margin: 0;
    height: 100%;
    width: 100%;
  }

  fieldset {
    border-color: rgba(0,0,0,0.1);
    border-width: 1px;
  }

  button {
    color: white;
    border: 0;
    padding: 0.6rem 1rem;
    transition: all 0.2s;
  }

  button:hover {
    --cast: 4px;
  }


  /* Scrollbar Styles */
  /* body::-webkit-scrollbar {
    width: 12px;
  }
  html {
    scrollbar-width: thin;
    scrollbar-color: var(--bg) var(--white);
  }
  body::-webkit-scrollbar-track {
    background: var(--white);
  }
  body::-webkit-scrollbar-thumb {
    background-color: var(--bg) ;
    border-radius: 6px;
    border: 3px solid var(--white);
  } */



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

  .tilt {
    transform: rotate(-2deg);
    position: relative;
    display: inline-block;
  }

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cursor {
    opacity: 0;
    width: 40px;
    height: 40px;
    border: solid 1px white;
    border-radius: 50%;
    position: absolute;
    transition-duration: 200ms;
    transition-timing-function: ease-out;
}

@media (max-width: 768px) {
    html {
        font-size: 7px;
      }
}





  html, body {
    font-family: var(--bold);
    color: var(--black);
    line-height: .9;
    height: 100%;
  }
  p, li {
    letter-spacing: 0.5px;
  }
  h1,h2,h3,h4,h5,h6,p {
    font-weight: normal;
    margin: 0;
    padding: 0;
  }

  figure {
    margin: 0;
    padding: 0;
  }

  h1 {
    font-size: 6rem;
    text-align: center;

  }


  h2 {
    font-size: 5rem;
  }
  h3 {
    font-size: 4rem;
  }

  h4 {
    font-size: 2.1rem;
    @media (max-width: 768px) {
      font-size: 3rem;
  }
  }
  p {
    font-family: var(--regular);
  }
  strong, b {
    font-family: var(--bold);
  }
  a {
    color: var(--black);
    /* Chrome renders this weird with this font, so we turn it off */
    text-decoration: none;
  }
  a:hover {
    color: black;
  }
  mark, .mark {
    background: var(--yellow);
    padding: 0 2px 2px 2px;
    margin: 0;
    display: inline;
    line-height: 1;
  }

  .center {
    text-align: center;
  }

  .tilt {
    transform: rotate(-2deg);
  }

  



  /* NAV */
  nav {
    width: 500px;
    height: 100vh;
    position: fixed;
    z-index: 1;
    bottom: 0;
    left: -500px;
    border-right: solid 1px black;
    transform: translateX(0);
    transition: all ease-in-out 350ms;
  }
  .navOpen {
    transform: translateX(100%);
  }

  @media (max-width: 768px) {
    nav {
        width: 250px;
        left: -250px;
      }
  }
  nav ul {
    margin-top: 20px;
    margin-left: 20px;
    padding: 0;
    list-style: none;
  }

  nav ul li {
    margin-bottom: 15px;
  }

  nav ul li a {
    font-size: 5rem;
  }
  nav ul li a:hover {
    text-decoration: underline;
  }
  nav span.logo {
    position: absolute;
    right: -132px;
    bottom: 95px;
    cursor: pointer;
    transform: rotate(-90deg);
    font-size: 3.8rem;
  }
  @media (max-width: 768px) {
    nav span.logo {
        font-size: 2.8rem;
    right: -65px;
    bottom: 65px;
      }
  }
  nav .cerrar {
    position: absolute;
    width: 40px;
    height: 40px;
    top: 20px;
    right: 10px;
    cursor: pointer;
  }
  @media (max-width: 768px) {
    nav .cerrar {
        width: 20px;
        height: 20px;
      }
  }

  nav .cerrar .linea {
    width: 100%;
    height: 1px;
    margin-bottom: 20px;
    background-color: black;
    position: absolute;
    top: 50%;
  }

  nav .cerrar .linea:nth-child(1) {
    transform: rotate(45deg);
  }
  
  nav .cerrar .linea:nth-child(2) {
    transform: rotate(-45deg);
  }

  nav ul.lang {
    display: flex;
    position: absolute;
    bottom: 30px;
    right: 30px;
  }

  nav ul.lang li:first-child {
    margin-right: 20px;
  }

  nav ul.lang li a {
    font-size: 2rem;
    text-transform: capitalize;
  }

  nav ul li.current-lang a {
    text-decoration: underline;
  }

  /* Main */


  main {
    width: 100vw;
    height: 100%;
    position: relative;
    z-index: 0;
    top: 0;
    left: 0;
    transition: left ease-in-out 350ms;
    padding-left: 100px;
    padding-top: 25px;
    padding-bottom: 25px;
    padding-right: 25px;
    box-sizing: border-box;
  }

  .mainOpen {
      left: 500px;
  }

  @media (max-width: 768px) {
      main {
          padding-left: 50px;
      }
    .mainOpen {
        left: 250px;
        padding-left: 50px;
    }
  }

  /* Home */

  section#home {
    background-position: bottom center;
    background-repeat: repeat-y;
    background-size: cover;
    width: 100%;
    height: calc(100vh - 50px);
    position: relative;
    z-index: 0;
    box-sizing: border-box;
  }
  section#home h1 {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--bg);
  }
  section#home a {
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 1;
  }

  /* About */

  section#about {
    width: 100%;
  }
  section#about section {
    position: absolute;
    left: 50%;
    top: 100px;
    transform: translateX(-50%);
    width: 60%;
    margin: 0 auto;
  }
  section#about .pageName {
    position: absolute;
    top: 25px;
    left: 35px;
  }
  section#about p {
    font-family: var(--regular);
    font-size: 4rem;
  }
  section#about a {
    font-size: 5rem;
    font-family: var(--bold);
  }

  section#about a:hover {
    text-decoration: underline;
  }

  /* Past residents */

  section#past-residents {
      width: 100%;
  }

  section#past-residents .lista {
    position: absolute;
    left: 50%;
    top: 200px;
    transform: translateX(-50%);
    width: 60%;
    margin: 0 auto;
  }

  @media (max-width: 768px) {
    section#past-residents .lista {
        width: 75%;
    }
    section#past-residents .lista ul {
        margin-top: 100px;
      }
  }

  section#past-residents .lista h4 {
      margin-bottom: 50px;
  }

  section#past-residents .pageName {
    position: absolute;
    top: 25px;
    left: 35px;
  }

  section#past-residents p {
    font-family: var(--regular);
    font-size: 3.5rem;
  }

  section#past-residents a {
    font-size: 3.5rem;
  }

  section#past-residents a:hover {
    text-decoration: underline;
  }
  section#past-residents ul li .resident-image {
    position: absolute;
    top: -150px;
    right: 0;
    width: 60%;
  }

  section#past-residents ul li a {
    font-family: var(--regular);
    font-size: 1.5rem; 
  }

  section#past-residents ul li figure {
        display: none;
    }



  .show {
      display: block !important;
  }
  @media (max-width: 768px) {
    section#past-residents ul li a {
        font-size: 2rem;
    }
    ul li {
        margin-bottom: 5px;
    }
  }

  section#past-residents ul li figcaption span {
    font-family: var(--regular);
    margin-left: 25px;
  }

  section#past-residents ul li figcaption {
      margin-top: 15px;
      font-size: 1.3rem;
  }

  /* Past Resident Post */

  section#past-residents {
      width: 100%;
  }

  section#past-residents section {
    position: absolute;
    left: 50%;
    top: 100px;
    transform: translateX(-50%);
    width: 60%;
    margin: 0 auto;
    margin-bottom: 100px;
  }

  @media (max-width: 768px) {
    section#past-residents section {
        width: 75%;
    }
  }
  section#past-residents section .grid {
     margin-top: 50px;
    margin-bottom: 50px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
    grid-gap: 50px;
    height: 100%;
  }

  section#past-residents section .grid img {
      align-self: center;
  }

  section#past-residents .pageName {
    position: absolute;
    top: 25px;
    left: 35px;
  }
  section#past-residents .titulo {
    text-align: center;
  }
  section#past-residents .info {
    margin-bottom: 100px;
  }
  section#past-residents p {
    font-size: 1.5rem;
  }

  @media (max-width: 768px) {
    section#past-residents p {
        font-size: 2.5rem;
    }
  }

  section#past-residents section .buttons {
      width: 40px;
      position: absolute;
      top: 0;
      right: 0;
}

@media (max-width: 768px) {
  section#past-residents section .buttons {
    top: -75px;
    right: -40px;
}
}

section#past-residents section .buttons svg {
      transition: fill 350ms ease-in-out;
}

  section#past-residents section .buttons svg:hover {
    fill: #000000;
    cursor: pointer;
    transition: fill 350ms ease-in-out;
  }

  section#past-residents section .carousel {
      display: none;
    margin-top: 50px;
    margin-bottom: 50px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  section#past-residents section .carousel img {
      max-height: 80vh;
      width: auto;
      max-width: 100%;
      margin: 0 auto;
  }

  section#past-residents section .carousel .owl-nav button {
      border: none;
  }

  section#past-residents section .carousel .owl-nav button:focus {
    outline: none;
}

  section#past-residents section .carousel .owl-nav button.owl-prev {
    position: absolute;
    top: 50%;
    left: -61px;
    transform: translateY(-50%);
  }

  section#past-residents section .carousel .owl-nav button.owl-next {
    position: absolute;
    top: 50%;
    right: -61px;
    transform: translateY(-50%);
  }

  @media (max-width: 768px) {
    section#past-residents section .carousel .owl-nav button.owl-prev {
      left: 5px;
    }
  
    section#past-residents section .carousel .owl-nav button.owl-next {
      right: 5px;
    }
  }

  /* Upcomming */

  section#upcoming {
      width: 100%;
  }

  section#upcoming section {
    position: absolute;
    left: 50%;
    top: 200px;
    transform: translateX(-50%);
    width: 60%;
    margin: 0 auto;
  }

  @media (max-width: 768px) {
    section#upcoming section {
        width: 75%;
    }
  }

  section#upcoming .pageName {
    position: absolute;
    top: 25px;
    left: 35px;
  }
  section#upcoming p {
    font-family: var(--regular);
    font-size: 1.5rem;
  }
  section#upcoming a {
    font-size: 3.5rem;
  }

  section#upcoming a:hover {
    text-decoration: none;
  }
  section#upcoming ul li a {
    font-family: var(--regular);
    font-size: 1.5rem;
  }
  section#upcoming article {
    margin-bottom: 70px;
  }
  section#upcoming article h3 {
    margin-top: 10px;
  }

  /* Contact */

  section#contacto {
      width: 100%;
  }

  section#contacto section {
    position: absolute;
    padding-bottom: 100px;
    left: 50%;
    top: 200px;
    transform: translateX(-50%);
    width: 60%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 3fr;
    grid-gap: 20px;
  }

  @media (max-width: 768px) {
    section#contacto section {
        width: 75%;
        grid-template-columns: 1fr;
        grid-gap: 50px;
    }
  }

  section#contacto .pageName {
    position: absolute;
    top: 25px;
    left: 35px;
  }
  section#contacto p {
    font-family: var(--regular);
    font-size: 1.5rem;
    
  }
  @media (max-width: 768px) {
    section#contacto p {
        font-size: 2.5rem;
    }
  }
  section#contacto a {
    font-family: var(--regular);
    font-size: 1.5rem;
  }
  @media (max-width: 768px) {
    section#contacto a {
        font-size: 2.5rem;
    }
  }
  section#contacto a:hover {
    text-decoration: underline;
  }

  section#contacto ul li a {
    font-family: var(--regular);
    font-size: 1.5rem;
  }
  section#contacto .izquierda {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  section#contacto .iconos {
    display: flex;
  }
  @media (max-width: 768px) {
    section#contacto .iconos {
        margin-top: 50px;
    }
  }
  section#contacto .insta {
    width: 20px;
    margin-right: 20px;
  }
  section#contacto .face {
    width: 20px;
  }
  section#contacto .mapa iframe {
    width: 100%;
  }