
/* ---------- BASE ---------- */
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body{
  height: 100%;
}

html{
  scroll-behavior: smooth;
  overflow: hidden;
}

body{
  font-family: "Montserrat", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size-adjust: 0.52;
  color: #fff;
  background: linear-gradient(180deg, #06152a 0%, #04101f 45%, #02070f 100%);
  background-attachment: fixed;
  overflow: hidden;
}


/* ---------- CONTENIDO ---------- */

.page-content{
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;

  transform: translateX(0);
  opacity: 1;
  backface-visibility: hidden;
  overflow: hidden;
}

.page-content.page-enter{
  animation: pageEnter 0.24s ease-out both;
}

.page-content.page-leave-right{
  animation: pageLeave 0.2s ease-in both;
  overflow: hidden;
}

.page-content.page-leave-folder{
  animation: folderLeaveRight 0.34s cubic-bezier(0.32, 0.72, 0, 1) both;
  overflow: hidden;
  pointer-events: none;
}

.page-content.page-leave-left{
  animation: pageLeaveLeft 0.30s cubic-bezier(0.32, 0.72, 0, 1) both;
  overflow: hidden;
  pointer-events: none;
}

@keyframes pageEnter{
  from{
    transform: translate3d(0, 8px, 0);
    opacity: 0;
  }
  to{
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}

@keyframes pageLeave{
  from{
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
  to{
    transform: translate3d(0, 8px, 0);
    opacity: 0;
  }
}

@keyframes folderLeaveRight{
  from{
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
  }
  to{
    transform: translate3d(96px, 0, 0) scale(0.985);
    opacity: 0;
  }
}

@keyframes pageLeaveLeft{
  from{
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
  }
  to{
    transform: translate3d(-96px, 0, 0) scale(0.985);
    opacity: 0;
  }
}

/* ---------- WORKS FULLSCREEN ---------- */
.worksPage{
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;

  padding: 0;
  margin: 0;

  overflow: hidden;
}

.worksCarousel{
  width: 100%;
  height: 100vh;
  height: 100dvh;

  margin: 0;
  padding: 0;

  display: flex;
  align-items: stretch;
}

.worksViewport{
  width: 100%;
  height: 100%;

  overflow: hidden;

  border-radius: 0;
  border: none;

  background: rgba(255,255,255,0.04);

  position: relative;
}

.worksTrack{
  height: 100%;
  display: flex;

  transition: transform 600ms ease;
  will-change: transform;
}

.workCard{
  flex: 0 0 100%;

  width: 100%;
  height: 100%;
  min-height: 0;

  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.9fr);

  gap: clamp(18px, 2vw, 48px);

  padding:
    clamp(82px, 8vh, 130px)
    clamp(18px, 4vw, 70px)
    clamp(72px, 9vh, 110px);

  text-decoration: none;
  color: #fff;

  align-items: stretch;
  overflow: hidden;
}

.workThumb{
  width: 100%;
  height: auto;
  max-height: 100%;
  max-width: min(100%, calc(177.78dvh - 426px));
  aspect-ratio: 16 / 9;
  align-self: center;
  justify-self: center;

  min-height: 0;

  border-radius: 16px;
  overflow: hidden;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.workMeta{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;
  padding: 8px 6px;
}

.workMeta h2{
  font-size: clamp(28px, 3vw, 50px);
  margin-bottom: 10px;
}

.workMeta p{
  font-size: clamp(16px, 1.6vw, 28px);
  line-height: 1.5;
  color: rgba(255,255,255,0.80);
}

/* ---------- FLECHA CENTRAL ---------- */
.workArrow{
  margin-top: 40px;
  position: relative;

  width: 88px;
  height: 88px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  opacity: 0.72;
  transform: scale(0.96);

  transition: transform 0.24s ease, opacity 0.24s ease, filter 0.24s ease;
}

.workArrow::before{
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 150, 255, 0.20), transparent 66%);
  opacity: 0;
  filter: blur(2px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.workArrow__ring{
  position: absolute;
  inset: 3px;

  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.16);

  background: radial-gradient(
    circle at 30% 28%,
    rgba(255,255,255,0.14),
    rgba(255,255,255,0.06) 38%,
    rgba(255,255,255,0.03) 62%,
    rgba(255,255,255,0.01) 100%
  );

  box-shadow:
    inset 0 1px 2px rgba(255,255,255,0.16),
    inset 0 -10px 18px rgba(0,0,0,0.22),
    0 8px 24px rgba(0,0,0,0.28);

  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);

  transition: inset 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.workArrow__hand{
  position: relative;
  z-index: 1;

  width: 42px;
  height: 42px;

  stroke: #fff;
  stroke-width: 4.6;
  fill: none;

  stroke-linecap: round;
  stroke-linejoin: round;

  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.34));

  transform: translate(-1px, 0);
  transition: transform 0.24s ease, filter 0.24s ease, opacity 0.24s ease, stroke 0.24s ease;

  opacity: 0.92;
}

.workCard:hover .workArrow,
.workCard:focus-visible .workArrow,
.workCard:active .workArrow{
  opacity: 1;
  transform: scale(1.03);
  filter: brightness(1.08);
}

.workCard:hover .workArrow::before,
.workCard:focus-visible .workArrow::before,
.workCard:active .workArrow::before{
  opacity: 0.9;
  transform: scale(1.06);
}

.workCard:hover .workArrow__ring,
.workCard:focus-visible .workArrow__ring,
.workCard:active .workArrow__ring{
  inset: 0;
  border-color: rgba(104, 204, 255, 0.72);
  background:
    radial-gradient(circle at 34% 24%, rgba(255,255,255,0.16), transparent 28%),
    radial-gradient(circle at 50% 56%, rgba(24, 132, 255, 0.24), rgba(11, 29, 48, 0.72) 62%, rgba(6, 15, 28, 0.90) 100%);
  box-shadow:
    inset 0 1px 2px rgba(255,255,255,0.26),
    inset 0 -12px 22px rgba(0,0,0,0.26),
    0 0 0 1px rgba(75, 177, 255, 0.24),
    0 14px 30px rgba(0,0,0,0.32),
    0 0 36px rgba(37, 156, 255, 0.42);
}

.workCard:hover .workArrow__hand,
.workCard:focus-visible .workArrow__hand,
.workCard:active .workArrow__hand{
  width: 46px;
  height: 46px;
  stroke: #8ed8ff;
  stroke-width: 4.9;
  transform: translate(-1px, 0) scale(1.08);
  filter:
    drop-shadow(0 0 8px rgba(126, 211, 255, 0.66))
    drop-shadow(0 7px 14px rgba(0,0,0,0.40));
  opacity: 1;
}
/* ---------- CONTROLES ---------- */
.worksArrows{
  position: absolute;
  left: 50%;
  bottom: 22px;

  transform: translateX(-50%);

  display: flex;
  gap: 14px;
  justify-content: center;

  z-index: 20;
}

.arrowBtn{
  width: 54px;
  height: 44px;

  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);

  background: rgba(255,255,255,0.08);
  color: #fff;

  cursor: pointer;
  font-size: 20px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.arrowBtn:hover,
.arrowBtn:focus-visible,
.arrowBtn.is-pressed{
  background:
    radial-gradient(circle at 50% 0%, rgba(144, 221, 255, 0.24), transparent 64%),
    rgba(26, 58, 90, 0.56);
  border-color: rgba(150, 224, 255, 0.68);
  color: #fff;
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(126,211,255,0.22),
    0 0 18px rgba(70,177,255,0.26),
    0 6px 18px rgba(0,0,0,0.20),
    inset 0 1px 0 rgba(255,255,255,0.14);
}

.arrowBtn:active{
  transform: scale(0.96);
  background:
    radial-gradient(circle at 50% 0%, rgba(126, 211, 255, 0.18), transparent 62%),
    rgba(20, 42, 66, 0.48);
  border-color: rgba(126, 211, 255, 0.58);
  box-shadow:
    0 0 0 1px rgba(126,211,255,0.16),
    0 0 14px rgba(70,177,255,0.20),
    0 4px 16px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.12);
}

.worksEdge{
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(54px, 5.5vw, 104px);
  z-index: 18;

  border: 0;
  background: transparent;
  color: rgba(224,228,234,0.78);

  display: grid;
  place-items: center;

  cursor: pointer;
  opacity: 0;
  transition: opacity 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.worksEdge--prev{
  left: 0;
  background: linear-gradient(90deg, rgba(185,190,198,0.14), rgba(185,190,198,0.05) 42%, transparent);
}

.worksEdge--next{
  right: 0;
  background: linear-gradient(270deg, rgba(185,190,198,0.14), rgba(185,190,198,0.05) 42%, transparent);
}

.worksEdge span{
  width: clamp(26px, 2.3vw, 40px);
  height: clamp(26px, 2.3vw, 40px);
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.36));
  opacity: 0.92;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.worksEdge--prev span{
  transform: rotate(-45deg) translateX(4px);
}

.worksEdge--next span{
  transform: rotate(135deg) translateX(4px);
}

.worksEdge:hover,
.worksEdge:focus-visible{
  opacity: 1;
  color: rgba(238,241,245,0.88);
}

.worksEdge--prev:hover,
.worksEdge--prev:focus-visible{
  background: linear-gradient(90deg, rgba(204,208,214,0.24), rgba(204,208,214,0.10) 48%, transparent);
}

.worksEdge--next:hover,
.worksEdge--next:focus-visible{
  background: linear-gradient(270deg, rgba(204,208,214,0.24), rgba(204,208,214,0.10) 48%, transparent);
}

.worksEdge--prev:hover span,
.worksEdge--prev:focus-visible span{
  transform: rotate(-45deg) translate(-2px, -2px);
}

.worksEdge--next:hover span,
.worksEdge--next:focus-visible span{
  transform: rotate(135deg) translate(-2px, -2px);
}

.worksDots{
  margin-top:10px;
  position: absolute;
  left: 50%;
  bottom: 82px;

  transform: translateX(-50%);

  display: flex;
  justify-content: center;
  gap: 10px;

  z-index: 20;
}

.worksDots span{
  width: 12px;
  height: 12px;

  border-radius: 50%;

  background: rgba(255,255,255,0.35);

  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}

.worksDots span.active{
  background: #ffffff;
  transform: scale(1.3);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px){
  .workCard{
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, auto) auto;
    align-content: center;

    gap: 20px;

    padding:
      clamp(74px, 10dvh, 96px)
      clamp(14px, 4vw, 28px)
      clamp(92px, 13dvh, 118px);
  }

  .workThumb{
    width: 100%;
    height: auto;
    max-height: min(60dvh, 520px);
    max-width: min(100%, 693px, 80dvh);
    aspect-ratio: 4 / 3;
  }

  .workMeta{
    justify-content: flex-start;
  }

  .workMeta h2{
    font-size: clamp(24px, 7vw, 34px);
  }

  .workMeta p{
    font-size: clamp(14px, 4vw, 18px);
  }

  .workArrow{
    margin-top: clamp(14px, 3dvh, 22px);
    width: clamp(56px, 14vw, 68px);
    height: clamp(56px, 14vw, 68px);
  }

  .workArrow__hand{
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 520px){
  .topbar{
    gap: 4px;
    padding: 0 4px;
  }

  .topbar__logo{
    height: 38px;
  }

  .Btn{
    font-size: 9px;
    padding: 5px 6px;
  }

  .workCard{
    gap: 14px;
    padding:
      clamp(56px, 8dvh, 70px)
      14px
      clamp(72px, 10dvh, 92px);
  }

  .workThumb{
    max-height: min(58dvh, 430px);
    max-width: min(100%, 430px, 58dvh);
    aspect-ratio: 1 / 1;
    border-radius: 12px;
  }

  .workMeta h2{
    font-size: clamp(21px, 6vw, 28px);
    margin-bottom: 8px;
  }

  .workMeta p{
    font-size: clamp(13px, 3.7vw, 16px);
    line-height: 1.35;
  }

  .workArrow{
    margin-top: 12px;
  }

  .worksDots{
    bottom: 72px;
  }

  .worksArrows{
    bottom: 16px;
  }

  .worksEdge{
    width: 46px;
  }
}

/* ---------- ACCESIBILIDAD ---------- */
@media (prefers-reduced-motion: reduce){
  .worksTrack,
  .workArrow,
  .workArrow::before,
  .workArrow__ring,
  .workArrow__hand,
  .worksEdge,
  .worksEdge span,
  .worksDots span{
    transition: none;
  }

  .page-content.page-enter,
  .page-content.page-leave-right,
  .page-content.page-leave-folder,
  .page-content.page-leave-left{
    animation: none;
  }
}









