
/* ---------- BASE ---------- */
.hero::after{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, #0b1f3a 0%, #020509 60%, #000000 100%);
  color: #fff;
}

/* ---------- TOP BAR ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background: rgba(5, 10, 20, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0 20px;
  gap: 12px;
  z-index: 100;
}


.topbar__left{
  display: flex;
  align-items: left;
}

.topbar__logo{
  height: 70px;      /* ajuste fino recomendado */
  width: auto;
  object-fit: contain;
}


.Btn{
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.5px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}


.catalogShell{
  width: min(1600px, 92vw);
  margin: 40px auto 60px;
}

.catalogTop{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.breadcrumbs{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
}
.breadcrumbs a{
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.25);
}
.breadcrumbs span{
  color: rgba(255,255,255,0.55);
}

.catalogTools{
  display: flex;
  gap: 10px;
  align-items: center;
}

.catalogSearch, .catalogSelect{
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  outline: none;
}

.catalogGrid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.catalogCard{
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  transition: transform 180ms ease;
}
.catalogCard:hover{
  transform: translateY(-2px);
}

.catalogThumb{
  height: 170px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.catalogBody{
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.catalogTitle{
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.catalogMeta{
  font-size: 13px;
  color: rgba(255,255,255,0.75);
}

.catalogTag{
  display: inline-flex;
  width: fit-content;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.9);
}

/* Responsive */
@media (max-width: 1200px){
  .catalogGrid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px){
  .catalogTop{ flex-direction: column; align-items: stretch; }
  .catalogTools{ justify-content: space-between; }
  .catalogGrid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  .catalogGrid{ grid-template-columns: 1fr; }
}


/* ---------- WORKS / FOLDER CAROUSEL ---------- */
.worksPage{
  padding-top: 80px; /* para no quedar debajo de la topbar */
  min-height: 100vh;
}

.worksCarousel{
  width: min(1600px, 92vw);  /* anchoo carrusel*/
  margin: 40px auto 60px;
}

.worksViewport{
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
}

.worksTrack{
  display: flex;
  transition: transform 600ms ease;
  will-change: transform;
}

.workCard{
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 100px;
  padding: 18px;
  text-decoration: none;
  color: #fff;
  min-height: 660px; /* alto carrusel*/
}

.workThumb{
  border-radius: 16px;
  overflow: hidden;           /* FUNDAMENTAL */
  background-size: cover;     /* FUNDAMENTAL */
  background-position: center;
  background-repeat: no-repeat;
}

.workMeta{
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 6px;
}

.workMeta h2{
  font-size: 40px;
  margin-bottom: 10px;
}

.workMeta p{
  font-size: 25px;
  line-height: 1.5;
  color: rgba(255,255,255,0.80);
}

.worksArrows{
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 16px;
}

.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;
}

.arrowBtn:active{
  transform: scale(0.98);
}


/* Flechas */
.worksArrows{
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 12px;
}
.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;
}

.worksDots{
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.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);
}

/* Respeto accesibilidad */
@media (prefers-reduced-motion: reduce){
  .orbitRing{ transition: none; }
  .orbitRing .workCard{ transition: none; }
}

/* Mobile: lo bajamos a 2D simple */
@media (max-width: 900px){
  .orbitScene{ height: auto; perspective: none; }
  .orbitRing{ transform: none !important; }
  .orbitRing .workCard{
    position: static;
    transform: none !important;
    width: 100%;
    height: auto;
    margin: 14px 0;
    grid-template-columns: 1fr;
  }
}

/* Responsive */
@media (max-width: 900px){
  .workCard{
    grid-template-columns: 1fr;
  }
  .workMeta h2{
    font-size: 28px;
  }
}


/* ===== TRANSICIÓN TIPO iOS ===== */
.page-content {
  min-height: 100vh;
  opacity: 0;
  transform: translateX(-36px);
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.page-enter {
  opacity: 1;
  transform: translateX(0);
}

.page-leave-right {
  opacity: 0;
  transform: translateX(72px);
}



.catalogCard{
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03));
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.catalogCard:hover{
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.28);
  border-color: rgba(255,255,255,0.22);
}

.catalogThumb{
  height: 220px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.catalogBody{
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.catalogTitle{
  font-size: 20px;
  font-weight: 700;
}

.catalogMeta{
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 1.45;
}

/* ===== TRANSICIÓN TIPO iOS ===== */
.page-content{
  transform: translateX(0);
  opacity: 1;
}

.page-content.page-enter{
  animation: iosPageEnter 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.page-content.page-leave-right{
  animation: iosPageLeaveRight 0.55s cubic-bezier(0.65, 0, 0.35, 1) both;
  overflow: hidden;
}

@keyframes iosPageEnter{
  from{
    transform: translateX(-40px) scale(0.985);
    opacity: 0;
    filter: blur(8px);
  }
  to{
    transform: translateX(0) scale(1);
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes iosPageLeaveRight{
  from{
    transform: translateX(0) scale(1);
    opacity: 1;
    filter: blur(0);
  }
  to{
    transform: translateX(90px) scale(0.992);
    opacity: 0;
    filter: blur(8px);
  }
}


/**/
.workMeta{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8px 6px;
}

.workArrow{
  margin-top: 40px;
  position: relative;
  width: 82px;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  opacity: 0.72;
  transform: scale(0.96);
  transition: transform 0.28s ease, opacity 0.28s ease, filter 0.28s ease;
}

.workArrow__ring{
  position: absolute;
  inset: 0;
  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: all 0.28s ease;
}

/* 🔥 AJUSTE REALIZADO AQUÍ */
.workArrow__hand{
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  stroke: #fff;
  stroke-width: 2.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); /* ← CORRIDO 1px A LA IZQUIERDA */
  transition: transform 0.28s ease, filter 0.28s ease, opacity 0.28s ease;
  opacity: 0.92;
}

/* hover */
.workCard:hover .workArrow{
  opacity: 1;
  transform: scale(1);
  filter: brightness(1.04);
}

.workCard:hover .workArrow__ring{
  border-color: rgba(255,255,255,0.24);
}

.workCard:hover .workArrow__hand{
  transform: translate(-1px, 0) scale(1.06); /* ← mantiene el corrimiento */
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.42));
  opacity: 1;
}