* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  font-size: 100%;
  text-decoration: none;
  list-style: none;
  cursor: url(img/def.svg), auto;
}

html {
  background-color: #f9f5f1;
  scroll-behavior: smooth;
}

main {
  background-color: #f9f5f1;
}

a {
  cursor: url(img/def2.svg), auto;
}

@font-face {
  font-family: "Montreal-Book";
  src: url(font/PPNeueMontreal-Book.otf);
}

@font-face {
  font-family: "Montreal-Medium";
  src: url(font/PPNeueMontreal-Medium.otf);
}

@font-face {
  font-family: "PPEditorialNew-Ultralight";
  src: url(font/PPEditorialNew-Ultralight.otf);
}

/* header */

/* nav desktop*/

.nav {
  background-color: transparent;

  --img1: scale(1);
  --img2: scale(0);
}

.fixed-top {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

.header1 {
  display: flex;
  justify-content: space-between;
  margin: 2rem;
  font-family: "Montreal-Book", sans-serif;
  z-index: 2;
  opacity: 100;
}

ul.desk li a {
  color: #ff0d00;
  font-size: 1.25rem;
}

div.desk > ul {
  display: flex;
  flex-direction: row;
}

ul.desk li {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: end;
  padding-left: 1.25rem;
}

#vm22 {
  padding-right: 0;
  width: 4.25rem;
}

#vm22:hover ul {
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding-left: 0;
}

.blur-in {
  animation: blur-in 0.4s linear both;
}
@keyframes blur-in {
  0% {
    filter: blur(12px);
    opacity: 0;
  }
  60% {
    filter: blur(0);
    opacity: 1;
  }
}

ul.subnav {
  display: none;
  padding-right: 0;
  mix-blend-mode: difference;
}

ul.subnav li a {
  font-size: 1rem;
}

ul.subnav li {
  padding-top: 0.5rem;
}

/* nav mobile*/

.nav:has(.dropdown:target) {
  --img1: scale(0);
  --img2: scale(1);

  --clip: inset(0 0 0 0);
}

.nav__container {
  display: none;
  width: 100%;
  height: 100vh;
  margin: 0 auto;
  font-family: "Montreal-Medium";
  font-size: 4rem;
  padding: 3rem;
  z-index: 999;

  grid-template-columns: max-content max-content;
  grid-template-areas: "title img";
  justify-content: space-between;
  align-items: start;

  overflow: hidden;
}

.hglogo img {
  height: 3rem;
}

.nav__icon {
  height: 3rem;
}

.nav__menu {
  padding-top: 1.9rem;
  grid-area: img;
  position: relative;
  z-index: 10;

  transform: var(--img1);
}

.nav__menu--second {
  padding-top: 1.9rem;
  display: flex;
  justify-content: end;
  transform: var(--img2);
}

.dropdown {
  position: absolute;
  background-color: #ff0d00;
  width: 100%;
  max-width: 1000px;
  right: 0;
  top: 0;
  bottom: 0;
  padding: 4rem;

  display: grid;
  align-content: start;

  overflow-y: auto;

  clip-path: var(--clip, inset(0 0 100% 100%));
  transition: clip-path 0.5s;
}

li.dropdown__list {
  list-style: none;
  padding-bottom: 1rem;
}

.dropdown__link {
  color: #f9f5f1;
  text-decoration: none;

  display: flex;
  align-items: center;

  position: relative;
  background-color: transparent;
}

.dropdown__list:has(:checked) {
  --rows: 1fr;
  --rotate: rotate(180deg);
}

.dropdown__check {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.dropdown__arrow {
  transform: var(--rotate, 0);
  transition: 0.2s transform;
  height: 4rem;
}

.dropdown__content {
  display: grid;
  grid-template-rows: var(--rows, 0fr);
}

.dropdown__sub {
  overflow: hidden;
}

.dropdown__li a {
  font-family: "Montreal-Book";
  font-size: 3rem;
  list-style: none;
  padding: 1rem 0 0 0;
}

.dropdown__anchor {
  padding: 1em 0;
  display: block;
  color: #f9f5f1;
  text-decoration: none;
}

/* main */

/* section 1 */

.fondoinicio {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* background-image: url("img/fondo_inicio.png");
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position-x: center;
  background-size: cover;*/
}

.frase {
  width: max-content;
  padding: 11rem 3rem 1rem 3rem;
}

.flecha {
  display: block;
  padding-bottom: 11rem;
}

.sobremi {
  position: relative;
  z-index: 1;
}

.info {
  display: block;
  width: 100%;
  padding: 5.8rem;
  background-color: #ff0d00;
  font-size: 1.25rem;
  font-family: "Montreal-book";
  color: #f9f5f1;
}

h2 {
  font-family: "Montreal-Medium", sans-serif;
  font-size: 2.5rem;
  color: #f9f5f1;
}

div.bajada {
  display: flex;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  max-width: 63.9rem;
}

#nombre {
  padding-right: 1rem;
  margin-right: 1rem;
  border-right: 0.14rem solid #f9f5f1;
}

div.info div.text {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
  gap: 1rem;
}

div.info div.text p {
  line-height: 157.5%;
  margin-bottom: 0.5rem;
}

div.info1 {
  max-width: 80%;
  margin: auto;
}

.profilepic {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  width: 72dvw;
  margin: auto;
  font-family: "Montreal-book";
  color: #ff0d00;
  font-size: 2.5rem;
}

.profilepic picture img {
  width: 100%;
}

.skills {
  display: flex;
  flex-direction: column;
  width: 100%;
  flex-wrap: wrap;
  background-color: #f9f5f1;
  align-content: center;
  justify-content: center;
}

.skills h2 {
  font-family: "Montreal-medium";
  color: #ff0d00;
  padding-bottom: 1rem;
}


.skills ul li {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.point {
  padding-left: 3rem;
}

/* section 2 */

.porfolio {
  display: grid;
  grid-template-columns: repeat(12, 10dvw);
  grid-template-rows: repeat(12, 14dvw);
  gap: 1rem;
  width: 95dvw;
  z-index: 1;
  padding: 2rem;
  margin: auto;
  align-items: start;
  background-image: url("img/TITLE.png");
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position-x: center;
  background-size: contain;
}

.porfolio div a {
  display: flex;
  object-fit: cover;
  width: 100%;
}

.porfolio div a img {
  width: 100%;
}

#piki {
  grid-area: 3 / 1 / 5 / 3;
}

#bondi {
  grid-area: 3 / 3 / 6 / 5;
}

#hdm {
  grid-area: 3 / 7 / 5 / 9;
}

#historia {
  grid-area: 6 / 1 / 8 / 4;
  display: flex;
  flex-direction: column;
  font-family: "Montreal-book";
  color: #ff0d00;
  font-size: 2rem;
}

#historia ul li {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding-bottom: 1rem;
}

#historia h2 {
  font-family: "Montreal-medium";
  color: #ff0d00;
  padding-bottom: 1rem;
}

#paisaje {
  grid-area: 6 / 5 / 8 / 9;
}

#naranja {
  grid-area: 9 / 1 / 12 / 3;
}

#cronicas {
  grid-area: 9 / 3 / 10 / 5;
}

#dormir {
  grid-area: 9 / 7 / 13 / 9;
}

.bajadita {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  font-family: "Montreal-Book", sans-serif;
  color: #ff0d00;
  font-size: 1rem;
  padding-top: 0.5rem;
}

/* section 3 */

.contacto {
  display: block;
  height: 50rem;
  width: 100%;
  padding: 5.8rem;
  font-size: 2.5rem;
  color: #ff0d00;
  font-family: "Montreal-book";
  background-image: url("img/TITLE2.png");
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position-x: center;
  background-size: contain;
}

.contacto div {
  display: flex;
  flex-direction: column;
  width: 100%;
  flex-wrap: wrap;
  padding: 8rem;
  align-content: center;
  justify-content: center;
}

.contacto div a {
  color: #ff0d00;
}

.scrolling-text {
  background-color: #ff0d00;
  font-family: "PPEditorialNew-Ultralight", serif;
  color: #f9f5f1;
  width: 100%;
  overflow: hidden;
}

.scrolling-text p {
  animation: scrolling-text 15s linear infinite;
  white-space: nowrap;
  font-size: 2.5rem;
  margin: 0;
  padding: 1rem;
  padding-bottom: 0.5rem;
}

@keyframes scrolling-text {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* media */

@media screen and (max-width: 1000px) {
  .hglogo {
    padding-top: 2rem;
    height: 5rem;
  }

  .header1 {
    display: none;
    opacity: 0;
  }

  .nav__container {
    display: grid;
  }

  .porfolio {
    display: flex;
    flex-direction: column;
    align-items: normal;
    z-index: 1;
    gap: 4rem;
    padding-top: 10rem;
  }

  .bajadita {
    font-size: 2rem;
    padding-top: 1rem;
  }

  .frase {
    padding: 25rem 0 4rem 0;
  }

  .flecha {
    padding: 0 3rem 35rem 3rem;
  }

  h2 {
    font-size: 3rem;
  }

  p {
    font-size: 2rem;
  }

  .skills {
    padding: 8rem;
    padding-bottom: 1rem;
    padding-top: 8rem;
    margin-bottom: 8rem ;
  }

  .info {
    font-size: 2rem;
  }
}
