@font-face {
  font-family: "Marker";
  src: url("../fonts/PermanentMarker.ttf");
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-semibold.otf" ) format("opentype");
  font-display: swap;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}
body {
  margin: 0;
  background: #17152d;
  color: #fff8ed;
  font-family: Manrope, system-ui, sans-serif;
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
.site-header {
  position: absolute;
  z-index: 50;
  inset: 0 0 auto;
  height: 82px;
  padding: 0 clamp(20px, 5vw, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(#101326b8, transparent);
}
.brand {
  display: flex;
  align-items: center;
  min-width: 145px;
}
.brand-fallback {
  font-family: "Permanent Marker", cursive;
  font-size: 1.35rem;
}
.brand-fallback span {
  color: #c18aff;
}
.brand-logo {
  max-width: 145px;
  max-height: 58px;
  object-fit: contain;
}
.brand-logo:not([hidden]) + .brand-fallback {
  display: none;
}
.desktop-nav {
  display: flex;
  gap: clamp(18px, 3vw, 42px);
  font-size: 0.86rem;
}
.desktop-nav a {
  opacity: 0.82;
  padding: 12px 0;
  position: relative;
}
.desktop-nav a:hover,
.desktop-nav a.active {
  opacity: 1;
  color: #e0a7ff;
}
.desktop-nav a.active:after {
  content: "";
  position: absolute;
  height: 3px;
  background: #b96cff;
  bottom: 0;
  left: 0;
  right: 0;
  border-radius: 3px;
}
.menu-toggle {
  display: none;
  border: 0;
  background: none;
  padding: 10px;
}
.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  margin: 5px;
  background: #fff;
}

.hero {
  position: relative;
  isolation: isolate;
  height: 83svh;
  min-height: 920px;
  overflow: hidden;
  background: #29254c;
}
.hero-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  will-change: transform;
}
.layer-sky {
  z-index: 1;
  background: url("../img/b-cielo-despejado.png") center bottom/cover no-repeat;
}
.layer-clouds {
  z-index: 2;
}
.layer-mountains {
  z-index: 3;
}
.layer-city {
  z-index: 4;
}
.layer-logo {
  z-index: 6;
}
.layer-character {
  z-index: 13;
}
.layer-cornice {
  z-index: 10;
}

.layer-mountains:before,
.layer-city:before {
  content: "";
  position: absolute;
  inset: 0;
  background: center bottom/contain no-repeat;
}

.layer-clouds:before {
  content: "";
  position: absolute;
  inset: 0;
  background: center top/contain no-repeat;
}
.layer-clouds:before {
  
  background-image: url("../img/b-nubes.png");
  width: 110%;
  transform: translate3d(var(--cloud-x, 0), var(--cloud-y, 0), 0);
  
}
.layer-mountains:before {
  background-image: url("../img/b-montanas.png");
}
.layer-city:before {
  background-image: url("../img/b-ciudad.png");
}
.layer-logo,
.layer-character,
.layer-cornice {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.layer-logo img {
  width: min(42vw, 620px);
  max-height: 45vh;
  object-fit: contain;
  margin-bottom: 33%;
  left: 65%;
}
.layer-character img {
  width: min(48vw, 680px);
  max-height: 78vh;
  object-fit: contain;
  object-position: center bottom;
  margin-left: -7%;
}
.layer-cornice img {
  width: 100%;
  max-height: 83vh;
  object-fit: contain;
  object-position: left bottom;
  align-self: flex-end;
  /* margin-left: -30%; */
}
.hero-atmosphere,
.hero-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-atmosphere {
  z-index: 5;
  background:
    radial-gradient(
      ellipse at 68% 47%,
      rgba(255, 224, 159, 0.24),
      transparent 20%
    ),
    linear-gradient(
      to bottom,
      transparent 48%,
      rgba(255, 157, 123, 0.1) 67%,
      rgba(15, 17, 39, 0.18)
    );
  mix-blend-mode: screen;
}
.hero-vignette {
  z-index: 20;
  background:
    linear-gradient(
      90deg,
      #080b1c59,
      transparent 30%,
      transparent 70%,
      #080b1c40
    ),
    linear-gradient(
      0deg,
      #080b1cbf,
      transparent 27%,
      transparent 82%,
      #080b1c40
    );
}
.hero-side-note {
  position: absolute;
  z-index: 25;
  top: 48%;
  writing-mode: vertical-rl;
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  line-height: 1.8;
  color: #d8c7f5;
  opacity: 0.72;
  pointer-events: none;
}
.note-left {
  left: 2%;
  transform: rotate(180deg);
}
.note-right {
  right: 2%;
}
.scroll-cue {
  position: absolute;
  z-index: 30;
  bottom: 3%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  font-size: 0.72rem;
  animation: cue 2.4s ease-in-out infinite;
}
.mouse {
  width: 22px;
  height: 35px;
  border: 1.5px solid #fff;
  border-radius: 15px;
  display: block;
  position: relative;
}
.mouse i {
  position: absolute;
  top: 7px;
  left: 9px;
  height: 6px;
  width: 2px;
  background: #fff;
  border-radius: 2px;
  animation: wheel 1.6s infinite;
}
@keyframes cue {
  50% {
    transform: translate(-50%, 8px);
  }
}
@keyframes wheel {
  to {
    transform: translateY(10px);
    opacity: 0;
  }
}

.chapter {
  min-height: 570px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 100px 5vw;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(35px, 7vw, 100px);
  position: relative;
}
.chapter:before {
  content: "";
  position: absolute;
  height: 1px;
  left: 8%;
  right: 8%;
  top: 0;
  background: linear-gradient(90deg, transparent, #ffffff25, transparent);
}
.intro-chapter,
.projects-chapter,
.gallery-chapter {
  max-width: none;
  padding-left: max(5vw, calc((100vw - 1180px) / 2));
  padding-right: max(5vw, calc((100vw - 1180px) / 2));
}
.intro-chapter {
  background: #171a31;
}

/* para seccion de presentación clara */
.chapterl {
  
  min-height: 570px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 100px 5vw;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(35px, 7vw, 100px);
  position: relative;

}
.chapterl:before {
  content: "";
  position: absolute;
  height: 1px;
  left: 8%;
  right: 8%;
  top: 0;
  background: linear-gradient(90deg, transparent, #ffffff25, transparent);
}

.intro-chapterl {
  max-width: none;
  padding-left: max(5vw, calc((100vw - 1180px) / 2));
  padding-right: max(5vw, calc((100vw - 1180px) / 2));
  
}
.intro-chapterl {
  background: #f4ffe0;
}
.chapterl-art {
  min-height: 390px;
  display: grid;
  place-items: center;
}
.chapterl h2{
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.12;
  margin: 15px 0 20px;
  letter-spacing: -0.05em;
  color: #171a31;
}
.chapterl h2 em {
  font-style: normal;
  color: #ff6600;
}
.chapterl p {
  color: #171a31;
  line-height: 1.8;
}
.chapterl a {
  color: white;
}
.reveall {
  opacity: 0;
  transform: translateY(35px);
  transition: 0.8s;
}
.reveall.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveall a {
  font:
    clamp(1rem, 1vw, 0.5rem) "Permanent Marker",
    cursive;
  
}
.reveall h2 {
  font:
    clamp(2rem, 2vw, 2rem) "Permanent Marker",
    cursive;
}
.chapterl-copy {
  max-width: 530px;
}
.eyebrowl {
  color: #d18dff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  
}

.subidor1{
  position: relative;
  top: -153px;
  
}
.subidor2{
  position: relative;
  top: -183px;
  
}



.projects-chapter {
  background: #171a31;
}
.gallery-chapter {
  background: linear-gradient(0deg, #244e79, #3c7da2 60%, #a5d4df);
}
.chapter-art {
  min-height: 390px;
  display: grid;
  place-items: center;
}
.art-placeholder {
  width: 100%;
  min-height: 370px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  /* border: 2px dashed #ffffff45;
  background: linear-gradient(145deg, #27294a, #121629);
  border-radius: 42% 42% 12px 12px; */
  padding: 25px;
}
.art-placeholder span {
  font:
    clamp(1.5rem, 3vw, 2.5rem) "Permanent Marker",
    cursive;
}
.art-placeholder small {
  opacity: 0.7;
  margin-top: 10px;
}

.art-placeholder img {
  width: 100%;
}
.chapter-copy {
  max-width: 530px;
}
.eyebrow {
  color: #d18dff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  
}
.chapter h2,
.contact-chapter h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.12;
  margin: 15px 0 20px;
  letter-spacing: -0.05em;
}
.chapter h2 em {
  font-style: normal;
  color: #ff7b00;
}
.chapter p,
.contact-chapter p {
  color: #d0d1df;
  line-height: 1.8;
}






.brush-button {
  display: inline-block;
  margin-top: 18px;
  padding: 14px 25px;
  color: #17152d;
  font-weight: 800;
  clip-path: polygon(3% 8%, 97% 0, 100% 85%, 5% 100%, 0 25%);
}
.blue {
  background: #090244;
}

.bluet {
  color: #090244;
}
.purple {
  background: #8032c9;
}

.purplet {
  color: #8032c9;
}
.mint {
  background: #a6f2c6;
}

.mintt {
  color: #a6f2c6;
}

.pink {
  background: #ff079c;
}
.pinkt {
  color: #ff079c;
}
.gallery-samples {
  min-height: 350px;
  position: relative;
}
.gallery-frame {
  position: absolute;
  width: 48%;
  height: 65%;
  display: grid;
  place-items: center;
  background: #f5eee1;
  color: #27304c;
  border: 8px solid #fffaf0;
  box-shadow: 0 15px 40px #08172c55;
  font-family: "Permanent Marker", cursive;
}
.frame-one {
  top: 4%;
  left: 5%;
  transform: rotate(-8deg);
}
.frame-two {
  top: 17%;
  right: 3%;
  transform: rotate(7deg);
}
.frame-three {
  bottom: 0;
  left: 29%;
  transform: rotate(-2deg);
  z-index: 2;
}
.contact-chapter {
  min-height: 580px;
  padding: 100px max(5vw, calc((100vw - 1180px) / 2));
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  background: linear-gradient(#12152a, #080d1c);
}
.night-placeholder {
  min-height: 360px;
  background: linear-gradient(#332d60, #e4779a 58%, #11172a 59%);
}
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 5vw;
  background: #070a14;
  color: #aeb2c8;
  font-size: 0.8rem;
}


.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: 0.8s;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal a {
  font:
    clamp(1rem, 1vw, 0.5rem) "Permanent Marker",
    cursive;
}

.reveal h2 {
  font:
    clamp(2rem, 2vw, 2rem) "Permanent Marker",
    cursive;
}



/* =========================================================
   TRANSICIÓN ORGÁNICA DEL HERO
   ========================================================= */

.hero {
    position: relative;
    overflow: hidden;
}

/*
   La transición se coloca encima de la parte inferior
   del Hero.
*/
.hero-transition {
    position: absolute;
    left: 0;
    bottom: -83px;

    width: 100%;
    height: 180px;

    z-index: 50;

    pointer-events: none;
}

/*
   El SVG ocupa todo el ancho aunque la pantalla
   tenga una proporción diferente.
*/
.hero-transition svg {
   

    width: 100%;
    height: 100%;
    
}

/*
   Este color debe ser el mismo que el fondo
   de la sección "Sobre mí".
*/
.hero-transition path {
    fill: #f4ffe0;
}

.hero-transition::before {
    content: "";

    position: absolute;
    left: 0;
    top: 0;

    width: 100%;
    height: 100%;

    pointer-events: none;

    filter: blur(8px);
    opacity: 0.18;
}
/* =========================================================
   TRANSICIÓN ORGÁNICA DEL CHAPTERL
   ========================================================= */

.chapterl {
    position: relative;
    overflow: hidden;
}
/*
   Tansicion a  Proyetos 
*/
.chapterl-transition {
    position: absolute;
    left: 0;
    bottom: -83px;

    width: 100%;
    height: 180px;

    z-index: 50;

    pointer-events: none;
}

/*
   El SVG ocupa todo el ancho aunque la pantalla
   tenga una proporción diferente.
*/
.chapterl-transition svg {
   

    width: 100%;
    height: 100%;
    
}

/*
   Este color debe ser el mismo que el fondo
   de la sección "Sobre mí".
*/
.chapterl-transition path {
    fill: #171a31;
}

.chapterl-transition::before {
    content: "";

    position: absolute;
    left: 0;
    top: 0;

    width: 100%;
    height: 100%;

    pointer-events: none;

    filter: blur(8px);
    opacity: 0.18;
}

/* =========================================================
   TRANSICIÓN ORGÁNICA DE GALERIA
   ========================================================= */

.chapterll {
    position: relative;
    overflow: hidden;
}
/*
   Tansicion a  Proyetos 
*/
.chapterll-transition {
    position: absolute;
    left: 0;
    bottom: -83px;

    width: 100%;
    height: 180px;

    z-index: 50;

    pointer-events: none;
}

/*
   El SVG ocupa todo el ancho aunque la pantalla
   tenga una proporción diferente.
*/
.chapterll-transition svg {
   

    width: 100%;
    height: 100%;
    
}

/*
   Este color debe ser el mismo que el fondo
   de la sección "Sobre mí".
*/
.chapterll-transition path {
    fill: #12152a;
}

.chapterll-transition::before {
    content: "";

    position: absolute;
    left: 0;
    top: 0;

    width: 100%;
    height: 100%;

    pointer-events: none;

    filter: blur(8px);
    opacity: 0.18;
}



/* =========================================================
   TRANSICIÓN ORGÁNICA DE PROYECTOS
   ========================================================= */

.chapter {
    position: relative;
    overflow: hidden;
}
/*
   Tansicion a  Proyetos 
*/
.chapter-transition {
    position: absolute;
    left: 0;
    bottom: -83px;

    width: 100%;
    height: 180px;

    z-index: 50;

    pointer-events: none;
}

/*
   El SVG ocupa todo el ancho aunque la pantalla
   tenga una proporción diferente.
*/
.chapter-transition svg {
   

    width: 100%;
    height: 100%;
    
}

/*
   Este color debe ser el mismo que el fondo
   de la sección "Sobre mí".
*/
.chapter-transition path {
    fill: #a5d4df;
}

.chapter-transition::before {
    content: "";

    position: absolute;
    left: 0;
    top: 0;

    width: 100%;
    height: 100%;

    pointer-events: none;

    filter: blur(8px);
    opacity: 0.18;
}


/* =========================================================
   MEDIA
   ========================================================= */


@media (max-width: 760px) {
  .site-header {
    height: 70px;
    padding: 0 18px;
  }
  .desktop-nav {
    display: none;
    position: absolute;
    top: 65px;
    left: 12px;
    right: 12px;
    padding: 18px;
    border: 1px solid #ffffff25;
    border-radius: 15px;
    background: #111326f2;
    backdrop-filter: blur(12px);
    flex-direction: column;
    gap: 8px;
  }
  .desktop-nav.open {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
  .hero {
    min-height: 400px;
  }
  .layer-logo img {
    width: 65vw;
    max-height: 30vh;
    margin-bottom: 62%;
  }
  .layer-character img {
    width: 78vw;
    max-height: 62vh;
    margin-left: -15%;
  }
  .layer-cornice img {
    width: 133%;
    max-height: 33vh;
  }
  .hero-side-note {
    display: none;
  }
  .scroll-cue {
    left: 74%;
    font-size: 0.68rem;
  }
  .chapter,
  .intro-chapter,
  .projects-chapter,
  .gallery-chapter,
  .contact-chapter {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 70px 7vw;
    min-height: auto;
  }
 
  .intro-chapterl {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 70px 7vw;
    min-height: auto;
  }
  .chapter-art,
  .gallery-samples {
    min-height: 280px;
  }
  .art-placeholder {
    min-height: 280px;
  }
  .site-footer {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }

  .reveall {
    opacity: 1;
    transform: none;
  }
}
