@charset "utf-8";

/* 1. RESET Y BASE */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  font-family: "Helvetica Neue", Helvetica, Arial, "sans-serif";
  font-weight: 400;
  font-style: normal;
  color: #eeeeee;
  scroll-behavior: smooth;
  font-size: 15px;
  line-height: 1.4;
  background-color: black;
  transition: background-image 0.3s ease-in-out, background-size 0.3s ease-in-out;
}
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
::selection {
  background-color: black;
  color: #eeeeee;
}
::-webkit-scrollbar {
  display: none;
}

/* 2. TEXTO FIJO INFERIOR IZQUIERDA */
.bottom-bio {
  position: fixed;
  bottom: 0px;
  left: 0px;
  z-index: 2;
  color: #fff;
  background: none;
  border: none;
  font-size: 1.2rem;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s ease;
  pointer-events: none;
  display: block;
  cursor: default;
  letter-spacing: 0.13em !important;
  text-transform: uppercase;
  text-align:justify;
}
/* Visibilidad controlada por clase .show (añadida por JS) */
.bottom-bio {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s 5s ease; 
}
.bottom-bio.show {
  opacity: 0.6;
  pointer-events: auto;
  transition: opacity 1s 2s ease; 
}

/* 3. LOADING SCREEN */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background-color: black;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
  will-change: opacity;
}

#loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

#loading-screen img {
  width: 100%;
  height: auto;
  max-width: 300px;
  filter: blur(1px);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

@media (max-width: 600px) {
  #loading-screen img {
    max-width: 200px;
  }
}

/* Mobile: centrar solo el título activo del carrusel y ocultar el resto (<=600px) */
@media (max-width: 600px) {
  .carousel-titles {
    left: 0;
    right: 0;
    bottom: 6vw;
    display: block;
    width: 100%;
    pointer-events: none; /* por defecto no captar eventos, el activo sí */
    text-align: center;
  }
  /* Oculta el prefijo "LATEST" para dejar solo el título activo visible */
  .carousel-titles::before { display: none; }

  .carousel-titles ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  /* Por defecto ocultamos todos los items para mostrar solo el .active */
  .carousel-titles li {
    display: none !important;
    pointer-events: none !important;
    opacity: 0;
    transform: translateY(0);
  }

  /* El item activo se muestra centrado y con mayor tamaño */
  .carousel-titles li.active {
    display: block !important;
    pointer-events: auto !important;
    position: fixed;
    width: 100%;
    left: 50%;
    transform: translateX(-50%);
    bottom: 50%;
    z-index: 220;
    font-size: 1.7em;
    margin: 0;
    padding: 0;
    opacity: 1;
    line-height: 1;
    text-align: center;
    transition: opacity 0.25s ease, transform 0.25s ease;
    -webkit-font-smoothing: antialiased;
  }

  /* Alinea el link del título en columna y coloca el brand en la fila de abajo con la mitad de tamaño */
  .carousel-titles li.active .title-link {
    display: block;
    text-align: center;
  }

  .carousel-titles li.active .brand {
    display: block;
    font-size: 0.7em; /* aproximadamente la mitad perceptual respecto al título (2.2em) */
    opacity: 0.85;
    font-weight: 300;
    margin-top: 0.12em;
    letter-spacing: 0.05em;
    line-height: 1.1;
  }
}

/* PIJADAS BASE  */
/* 1. Selección  */
*, *::before, ::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* 2. Barra de scroll  */ ::-webkit-scrollbar {
  display: none;
}
/* 2. Barra de scroll  */
.info {
  margin: 0 auto;
  position: fixed;
  top: 50px;
  right: 3.5vw;
  z-index: 20;
  color: white;
  transition: color 0.3s ease;
  opacity: .7;
}

.home {
  margin: 0 auto;
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 45;
  font-size: 1.2rem;
  filter: blur(0.3px);
  mix-blend-mode: difference;
}

.home:hover ~ .hover-text {
  opacity: 0.8;
  transform: translateY(0);
  transition-delay: 0s;
}

.home:not(:hover) ~ .hover-text {
  opacity: 0;
  transition-delay: 1s;
}

.home:hover {
cursor: help;}

.hover-text {
  margin: 0 auto;
  position: fixed;
  z-index: 45;
  font-size: 1.2rem;
  filter: blur(0.3px);
  bottom: 20px;
  left: 20px;
  transform: none;
  color: white;
  opacity: 0;
  transition: opacity 1s ease-in-out 0.3s, transform 1s ease-in-out;
}

.home h1 {
  display: inline-block;
  color: white;
  filter: grayscale(1);
  opacity: 0.9;
  font-size: 1.2rem;
  font-weight: 400;
}

@media (min-width: 700px) {
  .home:hover ~ .hover-text {
    opacity: 0.8;
    transform: translateY(0);
    transition-delay: 0s;
  }
}

@media (max-width: 699px) {
  .hover-text {
    display: none;
  }
}


/* GALERIA VIDEOS */
.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 5px;
  padding: 5px 1vw;
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
  align-items: start;
}

.container.fade-out {
  opacity: 0;
}

.container.fade-in {
  opacity: 1;
}

.column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0px;
}
.post {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
img {
  width: 100%;
}
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: 0.5s;
  z-index: 1;
}

.post:hover .overlay {
  opacity: 1;
  cursor: none;
}

.gif {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: flex;
  position: absolute;
  z-index: 2;
  left: 0;
  top: 0;
}

.overlay h3 {
  font-size: 1.1rem;
  text-align: center;
  text-transform: none !important;
  opacity: 1;
  transition: 0.5s;
  color: white;
  z-index: 3;
  display: none;
  filter: difference;
}

/* Styling for the director line */
.overlay .director {
  font-size: 0.9rem;
  color: white;
  opacity: 0;
  margin-bottom: 5px;
  text-align: center;
  position: absolute;
  top: 50%;
    transform: translateY(10px);
  z-index: 3;
}

/* Cambiar referencias de .subtitle a .category */
.overlay .category {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: white;
  opacity: 0.7;
  text-align: center;
  position: absolute;
  top: 50%;
  z-index: 3;
}

.overlay .brand {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: white;
  opacity: 0.7;
  text-align: center;
  position: absolute;
  z-index: 3;
    display: none;

}

.overlay .brand-year {
font-size: 0.8rem;
text-transform: uppercase;
color: white;
opacity: 0.7;
text-align: center;
position: absolute;
top: 50%;
transform: translateY(10px);
display: none;
z-index: 3;
}

.overlay p {
  font-size: 1rem;
  position: absolute;
  opacity: .7;
  color: white;
  z-index: 3;
  text-transform: uppercase;
  display: none;
}
/* PROJECT */
.project-layout {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0px;
  padding: 0;
  margin: 70px 0 0;
  height: 100vh;
}

.video-container {
  flex: 3;
  max-width: 40%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  object-fit: contain;
  max-height: 80vh;
  margin: 0;
  padding: 0;
}


.project-info {
  flex: 1;
  color: white;
  text-align: left;
  margin: 0;
  padding: 0 0 50px 0;
  max-height: calc(80vh - 100px);
  overflow-y: auto;
  position: relative;
  mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

.project-header {
  position: sticky;
  top: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 50%,
    rgba(0,0,0,0) 100%
  );
  padding: 10px 0 30px 0;
  z-index: 3;
}

.project-info h1 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  opacity: 0.9;
}

.project-info p {
  font-size: 1rem;
  margin-bottom: 5px;
  opacity: 0.8;
}

.project-type {
  text-transform: uppercase;
}
.project-credits {
  margin-top: 20px;
  margin-bottom: 20px;
  margin-right: 20px;
  color: white;
  font-size: 0.5rem;
  line-height: 0;
}

.project-credits span {
  font-size: 0.9rem;
  line-height: 1;
  margin-bottom: 0px;
  text-transform: uppercase;
  opacity: 0.9;
}

.project-credits ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: auto auto;
  gap: 5px;
  text-transform: uppercase;
}

.project-credits li {
  display: contents; 
}

.project-credits li span {
  text-align: left;
  opacity: 0.8;
  text-transform: uppercase;
}


/* Ajuste para el diseño del reproductor de video */
.video {
  flex: 3 1 auto;
  align-self: auto;
  order: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
    padding: 0; 
  margin: 0; 
}

.video-wrap {
  width: 40%; 
  margin: 0 auto; 
  display: block;
  flex-grow: 1;
  flex-shrink: 1;
flex-basis: auto;
align-self: stretch;
padding: 0px;
margin-right: 10px;
}

.vimeo-player {
  position: relative;
  padding-top: 56.25%;
  height: 0;
  overflow: hidden;
  display: block;
  margin-top: 0;
  
}

.vimeo-player iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.project-credits {
  position: relative;
  color: white;
  font-size: 1rem;
  line-height: 1.6;
}

.project-credits h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  opacity: 0.9;
}

.project-credits ul {
  list-style: none;
  padding: 0;
}

.project-credits li {
  margin-bottom: 5px;
  opacity: 0.8;
}
/* Adjust layout for screens under 900px */
@media (max-width: 1200px) {

  .project-layout {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: auto;
    margin: 70px 0;
  }

  .video-container {
    max-width: 100%;
    flex: none;
    margin-bottom: 20px;
  }

  .project-info {
    padding-top: 20px;
    padding-bottom: 20px;
    width: 90%;
    text-align: left;
    margin: 0 auto;
    max-height: none;
    overflow-y: visible;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .project-credits {
    width: 90%;
    text-align: left;
  }
  .video-wrap {
    width: 100%;
    margin: 0 auto;
    display: block;
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: auto;
    align-self: stretch;
    padding: 0;
    margin: 0;
  }
}

/* Category Filter Styles */
.category-filter-container {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 20;
  padding: 0;
  margin: 0;
  width: auto;
  font-family: inherit;
  user-select: none;
}
.category-filter-btn {
  background: none;
  color: white;
  opacity: 0.8; 
  cursor: pointer;
  transition: opacity 0.5s ease;
  padding: 0;
  text-align: left;
  font-size: 1.15em;
  font-family: inherit;
  font-weight: 400;
  letter-spacing: 0.1em;
  cursor: pointer;
  border: none;
  border-radius: 0;
  margin-bottom: 0.2em;
  line-height: 1.2;
}
.category-filter-btn:hover {
  opacity: 0.4; 

}
.category-filter-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: auto;
  min-width: 100%;
  border-top: none;
  opacity: 0;
  transform: translateY(-0px);
  transition: opacity 0.35s ease-in-out, transform 0.35s ease-in-out;
  pointer-events: none;
}
.category-filter-container.open .category-filter-list,
.category-filter-container:hover .category-filter-list,
.category-filter-btn:focus + .category-filter-list {
  display: block !important;
  position: static;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  animation: filterFadeIn 0.35s ease-in-out;
}

@keyframes filterFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.category-filter-list li {
  font-size: 1.2rem;
  color: white;
opacity: 0.8;
cursor: pointer;
transition: opacity 0.3s ease;
text-align: left;
margin: 0 0 5px 0;
padding: 0;
line-height: 1;
text-decoration: none;
letter-spacing: 0.1em;
  animation-delay: var(--filter-fade-delay, 0s);
}

/* Delay para cada elemento de la lista (máximo 10 categorías) */
.category-filter-list li:nth-child(1) { --filter-fade-delay: 0.05s; }
.category-filter-list li:nth-child(2) { --filter-fade-delay: 0.12s; }
.category-filter-list li:nth-child(3) { --filter-fade-delay: 0.19s; }
.category-filter-list li:nth-child(4) { --filter-fade-delay: 0.26s; }
.category-filter-list li:nth-child(5) { --filter-fade-delay: 0.33s; }
.category-filter-list li:nth-child(6) { --filter-fade-delay: 0.40s; }
.category-filter-list li:nth-child(7) { --filter-fade-delay: 0.47s; }
.category-filter-list li:nth-child(8) { --filter-fade-delay: 0.54s; }
.category-filter-list li:nth-child(9) { --filter-fade-delay: 0.61s; }
.category-filter-list li:nth-child(10) { --filter-fade-delay: 0.68s; }
.category-filter-list li.selected,
.category-filter-list li:hover {
  opacity: 1;
  background: none;
}
.category-filter-container:hover .category-filter-btn {
  opacity: 0.4 !important;
}
body.category-filter-open .category-filter-btn {
  opacity: 0.2 !important;
}
body.category-filter-open.archive-view .category-filter-container:hover .category-filter-list {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}


/* FOOTER  */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: right;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 5px;
  opacity: 0.9;
  padding: 20px;
  z-index: 10;
  background: linear-gradient(to top, rgba(0, 0, 0, .3), rgba(0, 0, 0, 0));
  pointer-events: none; 
}
.footer a {
  text-decoration: none;
  position: relative;
  color: white;
  opacity: 0.8;
  font-size: 1.2rem; 
  transition: opacity 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  margin: 0; 
  padding: 0; 
  line-height: 1; 
  pointer-events: auto; 
}

.footer a:hover {
  opacity: 1; 
}

/* FOOTER 2  */
.footer2 {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: right;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 5px;
  opacity: 0.9;
  padding: 20px;
  z-index: 10;
  background: linear-gradient(to top, rgba(0, 0, 0, .08), rgba(0, 0, 0, 0));
  pointer-events: none;
  
}

.footer2 a {
  text-decoration: none;
  position: relative;
  color: black;
  opacity: 0.8;
  font-size: 1.2rem;
  transition: opacity 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  margin: 0;
  padding: 0;
  line-height: 1;
  pointer-events: auto;
  mix-blend-mode: difference;
}

.footer2 a:hover {
  opacity: 1;
}



/* Fade-in Animation */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Fade-in Animation */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-fade-in {
  opacity: 0;
  animation: fadeInUp 0.7s ease forwards;
}


/* Archive Table */
.archive-table {
  background-color: transparent; 
  border-spacing: 0; 
  margin-top: 50px; 
  width: 95%;
  font-size: 1.1rem;
  border-collapse: separate;
  text-transform: uppercase;
  table-layout: auto;
  margin-left: 60px;
  padding-right: 20px;
  z-index: 2;
  counter-reset: rowNumber; 
}
.archive-table th,
.archive-table td {
  padding: 0px 10px;
  text-align: left;
  word-wrap: break-word;
  overflow:scroll;
  text-overflow: ellipsis;
  flex: 0 0 auto;
}

.archive-table tr {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.5s ease;
  cursor: pointer;
  counter-increment: rowNumber;
}

.archive-table tr.row-fade-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 3s ease, transform 2s ease;


}

.archive-table tr:hover {
  opacity: 1;
  filter: blur(0px);
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;

}

.archive-table:hover tr:not(:hover) {
  opacity: 0.5;
  filter: blur(0.5px);
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.row-fade-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 5s ease, transform 5s ease;
}

.archive-table tr td:first-child::before {
  content: "0" counter(rowNumber);
  display: inline-block;
  text-align: left;
  margin-right: 10px;
  color: #ffffff;
}

/* Si los números tienen más de una cifra, elimina el 0 inicial */
.archive-table tr:nth-child(n+10) td:first-child::before {
  content: counter(rowNumber);
}

/* Adaptación para pantallas menores a 600px */
@media (max-width: 600px) {
  .archive-table {
    display: flex;
    flex-direction: column;
  }

  .archive-table tr {
    display: flex;
    flex-direction: row;
  }

  .archive-table td:nth-child(4) {
    order: 1;
  }

  .archive-table td:nth-child(2) {
    order: 2;
  }

  .archive-table td:nth-child(5),
  .archive-table td:nth-child(3),
  .archive-table td:nth-child(1) {
    display: none;
  }

  .archive-table td {
    display: table-cell;
    text-align: left;
    font-size: 1rem;
  }
}

/* Adaptación para pantallas entre 601px y 900px */
@media (max-width: 900px) and (min-width: 601px) {
  .archive-table {
    display: flex;
    flex-direction: column;
  }

  .archive-table tr {
    display: flex;
    flex-direction: row;
  }

  .archive-table td:nth-child(4) {
    order: 1 !important;
  }

  .archive-table td:nth-child(2) {
    order: 2 !important;
    width: 240px;
  }

  .archive-table td:nth-child(5) {
    order: 3 !important;
  }

  .archive-table td:nth-child(3),
  .archive-table td:nth-child(1) {
    display: none !important;
  }

  .archive-table td {
    display: table-cell !important;
    text-align: left;
    font-size: 1rem;
  }
}

/* Media query for screens smaller than 600px */
@media (max-width: 600px) {
  .overlay {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s ease,0.5s ease;
  }
  .post.overlay-visible .overlay {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.7s ease, visibility 0.7s ease, 0.5s ease;
  }
  .overlay .gif {
    z-index: 2;
  }
  .overlay h3,
  .overlay p {
    display: block;
    z-index: 3;
    filter: difference;
  }
  .overlay h3,
  .overlay .brand-year {
    display: block !important;
    z-index: 3;
    opacity: 1;
    font-size: 1.7rem; 
    mix-blend-mode: difference; 
    color: white; 
  }
  .overlay p:not(.brand-year) {
    display: none !important;
  }
  .slideshow-image {
    width: 100px;
    height: auto;
    max-width: 100px;
    object-fit: contain;
  }
}

/* Lazy Image */
.lazy-image {
  opacity: 0;
  transform: scale(0.95); 
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.lazy-image.fade-in {
  opacity: 1;
  transform: scale(1); 
}

/* Landing Section */
.full {
  width: 100%;
  background-size: cover;
  display: block;
  height: 100vh;
  margin: auto;
  top: 0;
  overflow: hidden;
  position: relative;
  clip-path: inset(0); /* Asegura que el contenido no se desborde */
}

.full.hidden {
  display: none; 
}

.full-inner {
  width: 100%;
  height: 100vh;
  vertical-align: middle;
  display: table-cell;
  overflow: hidden;
}

.video-back {
  position: absolute;
  background: black;
  object-fit: cover;
  object-position: center center;
  width: 100%;
  height: 100%;
  right: 0;
  top: 0;
  left: 0;
  z-index: 3;
  overflow: hidden;
  outline: 3px solid black;
}

.content {
  max-width: 300px;
  margin: auto;
  text-align: center;
  position: relative;
  filter: blur(1px);
}

.content:hover {
  filter: blur(100px);
  transition-duration: 10s;
  transition-delay: 0.05s;
  transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.down {
  color: #eeeeee;
  position: absolute;
  bottom: 20px;
  font-weight: 350;
  align-content: center;
  left: 0;
  right: 0;
}

.down a {
  color: white; 
  translate: -3px;
  text-decoration: none; 
  font-size: 1rem; 
  font-weight: 400; 
  opacity: 0.8; 
  transition: opacity 0.3s ease, transform 0.3s ease; 
}

.down a:hover {
  opacity: 1; 
  transform: translateY(-5px);
}

.arrow {
  border: solid #eeeeee;
  border-width: 0 3px 3px 0;
  display: inline-block;
  padding: 3px;
  position: relative;
  transform: rotate(45deg);
  animation: up-down 1.5s ease-in-out infinite alternate;
}

@keyframes up-down {
  0% {
    transform: translateY(0) rotate(45deg);
  }
  100% {
    transform: translateY(10px) rotate(45deg);
  }
}

/* Reduce down-arrow scale on small screens to visually match the "+" toggle above */
@media (max-width: 600px) {
  .static-arrow {
    transform: scale(0.7);
    display: none;
  }
}

/* Ocultar elementos inicialmente */
.header, .filter-menu, .footer, .home {
  opacity: 0; 
  visibility: hidden; 
  transition: opacity 0.5s ease, visibility 0.5s ease; 
}

/* Mostrar elementos al desplazarse */
.show-on-scroll {
  opacity: 1; 
  visibility: visible; 
}

/* Ajustes para pantallas menores a 600px: mantener el landing visible y más amigable */
@media (max-width: 600px) {
  /* Antes se ocultaba completamente el landing (.full { display: none }).
     Ahora lo mantenemos visible en móvil pero con cambios para evitar overflow
     y mejorar la experiencia (altura automática si el contenido lo necesita). */
  .full {
    display: block;
    height: 100vh; /* mantiene el efecto de pantalla completa en móviles */
    overflow: hidden; /* evita scroll inesperado dentro del landing */
  }
  /* keep bottom-bio usable on mobile: reduce its visual weight pero no ocultarlo totalmente */
  .bottom-bio.show {
    opacity: 0.6;
  }
}

/* Back Button */
.back-button {
  position: fixed;
  top: 20px;
  left: 20px;
  font-size: 1rem;
  color: white;
  text-decoration: none;
  background: transparent;
  border: none;
  z-index: 100;
  opacity: 0.8; 
  transition: opacity 0.3s ease; 
}

.back-button:hover {
  opacity: 1; 
}

/* Cursor Title */
#cursor-title {
  mix-blend-mode: difference;
  text-align: center; 
  display: block;
  min-width: 120px;
  pointer-events: none;
  white-space: nowrap;
  overflow: visible;
}

#cursor-title .brand {
  text-transform: uppercase;
}

#cursor-title strong {
  font-size: 1.0em;
  letter-spacing: 0.02em;
}

/* About Link */
.about-link {
  display: block !important;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
  color: #fff;
  font-size: 1.2rem;
    letter-spacing: 0.1em;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s cubic-bezier(0.25,0.46,0.45,0.94);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  pointer-events: auto;
  background: none;
}
.about-link:hover {
  opacity: 1;
}

/* Elimina la dependencia de show-on-scroll para about-link */
.about-link.show-on-scroll {
  display: block !important;
}

body.project-page .about-link {
  display: block !important;
}

/* About Popup */
.about-popup {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  background: #eeeeee;
  color: #181818;
  overflow-y: auto;
  animation: fadeIn 0.5s;
  opacity: 0;
}

.about-popup.open {
  display: block;
  opacity: 1;
}

.about-popup::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  pointer-events: none;
  opacity: 1;
}



.about-popup-content {
  max-width: 100%;
  margin-top: 10px;
}

.about-popup-content,
.about-popup-content p,
.about-popup-content .bio,
.about-popup-content .bio-nyàs,
.about-popup-content .bio-based {
  font-size: 2.7rem;
  color: #181818;
  line-height: 1;
  text-align: left;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  background: transparent;
  position: relative;
  z-index: 10;
}

.bio p,
.bio-nyàs p,
.bio-based p {
  z-index: 1000;

}
.about-popup-content ::selection { background: black; color: #eeeeee; }
.about-popup-content a {
  color: black;
  text-decoration: none;
  opacity: 0.8;
  font-size: inherit;
  transition: opacity 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-popup-content a:hover {
  opacity: 1;
}

.about-popup-content .foto-nyas {
  position: fixed !important;
  z-index: 1 !important;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.about-popup-content .foto-nyas img {
  max-width: 400px;
  max-height: 400px;
  object-fit: contain;
  width: 100%;
  height: auto;
  display: block;
  margin-top: 20px;
  margin-bottom: 0;
  margin-right: 0;
  pointer-events: auto;
  /* Solo la imagen es arrastrable */
}

.about-popup-content .footer2 {
  z-index: 110;
  position: fixed;
}

.about-popup-content .footer2 {
  position: fixed;
  background: none;
  color: #181818;
  padding: 20px;
  margin-top: 2em;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  opacity: 0.9;

}

.about-popup-content .footer2 a {
  color: black;
  opacity: 0.8;
  font-size: 1.2rem;
  mix-blend-mode: difference;
  pointer-events: auto;
  text-decoration: none;
  transition: opacity 0.2s cubic-bezier(0.25,0.46,0.45,0.94);
}

.about-popup-content .footer2 a:hover {
  opacity: 1;
}
.bio,.bio-based {
 pointer-events: none;
}


.close-about {
  position: absolute;
  top: 20px; right: 30px;
  font-size: 2.5rem;
  background: none;
  border: none;
  color: #181818;
  opacity: 0.7;
  cursor: pointer;
  z-index: 2100;
  transition: opacity 0.2s;
}
.close-about:hover {
  opacity: 1;
}

.about-close, .about-popup .about-close, .about-popup .about-link.about-close {
  color: black !important;
  background: none;
  border: none;
  font-size: 1.2em;
  font-family: inherit;
  z-index: 4000;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none !important;
  display: inline-block;
}
.about-close:hover, .about-popup .about-close:hover {
  opacity: 1;
  text-decoration: none !important;
}

/* Toggle SVG sizing (applies generally) */
.about-link .about-toggle-svg {
  width: 1.2em;
  height: 1.2em;
  vertical-align: middle;
  display: inline-block;
}

/* Utility: hide text visually but keep it for screen readers */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Asegura que el botón close esté por encima de la imagen y el fondo */
.about-popup-content { position: relative; z-index: 10; }

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Media query for screens smaller than 600px */
@media (max-width: 600px) {

  .about-popup-content{
   margin-top: 50px;

  }
  .about-popup-content,
  .about-popup-content p,
  .about-popup-content .bio,
  .about-popup-content .bio-nyàs,
  .about-popup-content .bio-based {
    font-size: 1.3rem;
    line-height: 1.2;

  }
  .about-popup-content .footer2 a {
    position: relative;
    background: none;
    color: black;
    opacity: 1;
   
  }
  .about-popup-content .footer2 {
    position: fixed;
    width: 100%;
    align-items: flex-end;
    margin-top: 20px;
    padding-top: 20px;
    background: none;
    text-align: right;
  }
    .about-popup-content .foto-nyas {
    position: relative !important;
    width: 100%;
    margin-top: 20px;
    padding: 0;
        -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
  }
}

  /* Mobile: mostrar sólo "+" en lugar de "+ INFO" para el toggle (<=600px) */
  @media (max-width: 600px) {
    /* Oculta visualmente el texto original pero lo deja accesible para lectores de pantalla */
    .about-link {
      color: transparent !important;
    }

    /* Hide the textual label visually on mobile (we'll use the SVG plus instead) */
    .about-link {
      color: transparent !important;
    }

    /* Default color for the SVG plus on mobile */
    .about-link .about-toggle-svg {
      color: #fff !important;
    }

    /* When open, force a contrasting color so the X is visible */
    .about-link.about-close {
      color: black !important;
    }
    .about-link.about-close .about-toggle-svg {
      color: black !important;
    }
  }

  /* Toggle SVG styling + animation (mobile) */
  @media (max-width: 600px) {
    /* Ensure the SVG scales and inherits color */
    .about-link .about-toggle-svg {
      width: 1.2em;
      height: 1.2em;
      vertical-align: middle;
      display: inline-block;
      transition: transform 270ms cubic-bezier(.2,.9,.3,1);
      will-change: transform;
      color: #fff; /* default plus color */
    }

    /* Lines inside the SVG are centered; transition their transform/opacity */
    .about-link .about-toggle-line {
      transition: transform 270ms cubic-bezier(.2,.9,.3,1), opacity 220ms ease;
      transform-origin: 12px 12px; /* center of the 24x24 viewBox */
      opacity: 1;
    }

    /* Default: plus shape (horizontal + vertical) - no transforms needed */
    .about-link .about-toggle-line-h {
      transform: rotate(0deg);
    }
    .about-link .about-toggle-line-v {
      transform: rotate(0deg);
    }

    /* When the toggle has .about-close, morph the plus into an X by rotating both lines
       by the same angle (45deg). The horizontal line rotates to 45deg and the vertical
       line (originally 90deg) rotates to 135deg (i.e. 90+45) forming an X without overlap. */
    .about-link.about-close .about-toggle-line-h,
    .about-link.about-close .about-toggle-line-v {
      transform: rotate(45deg);
    }

    /* subtle pop on open to emphasize the X */
    .about-link.about-close .about-toggle-svg {
      transform: scale(1.02);
    }

    /* Ensure when closed state is active the svg color matches the .about-close color we forced */
    .about-link.about-close .about-toggle-svg {
      color: black !important;
    }
  }



/* Ultimos Proyectos Hidden */
.ultimos-proyectos-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 3s ease !important;
}

.slideshow-container {
  width: 100vw;
  max-width: 100vw;
  position: relative;
  display: flex;
  overflow-x: auto;
  gap: 5px;
  padding: 20px 0 10px 0;
  background: transparent;
  scroll-behavior: smooth;
  scrollbar-width: none;
  box-sizing: border-box; 
  z-index: 2;
}
.slideshow-container::-webkit-scrollbar {
  display: none;
}
.slideshow-image {
  height: 200px;           
  width: auto;            
  object-fit: contain;    
  flex-shrink: 0;
  transition: transform 0.2s;
}
@media (max-width: 600px) {
  .slideshow-container {
    display: none;
  }
  .slideshow-image {
    width: 150px;
    height: auto;
    max-width: 150px;
    object-fit: contain;
  }
}

/* Improve touch/drag UX */
.slideshow-container {
  -webkit-overflow-scrolling: touch; /* smoother scroll on iOS */
  touch-action: pan-y; /* allow vertical page scroll while enabling horizontal dragging */
  cursor: grab;
}
.slideshow-container:active {
  cursor: grabbing;
}
.slideshow-image {
  -webkit-user-drag: none;
  user-select: none;
}

.latest-projects-titles {
  position: absolute;
  left: 2vw;
  bottom: 2vw;
  z-index: 10; 
  color: #fff;
  font-family: inherit;
  pointer-events: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0;
  transition: opacity 1.2s ease 4s; 
}
.latest-projects-titles.visible {
  opacity: 0.8;
}
.latest-projects-titles ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.latest-projects-titles li {
  font-size: 3em;
  margin-bottom: -0.3em;
  cursor: pointer;
  pointer-events: auto;
  transition: opacity 0.3s ease;
}

.latest-projects-titles li:hover {
  opacity: 0.7;
}
@media (max-width: 1200px) {
  .latest-projects-titles {
    font-size: 0.8em;
    left: 4vw;
    bottom: 4vw;
  }
}
@media (max-width: 900px) {
.latest-projects-titles .brand {
  display: none;
}
}

.latest-label {
  font-size: 1em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  opacity: 0.7;
  pointer-events: none;
  user-select: none;
}
@media (max-width: 600px) {
  .latest-label {
    font-size: 1em;
    margin-bottom: 1em;
  }
}

.latest-projects-titles .brand {
  font-size: 1em;
  opacity: 0.8;
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-left: 0.1em;
}

/* Static Arrow */
.static-arrow {
  position: fixed; /* fijada al viewport para garantizar visibilidad */
  right: 2vw;
  bottom: 2vw;
  z-index: 120;
  pointer-events: none; /* permitir interacción con slides debajo; cambia a 'auto' si necesitas clic en la flecha */
}
.arrow-icon {
  display: inline-block;
  width: 38px;
  height: 48px;
  opacity: 0.8;
  vertical-align: middle;
}
.arrow-icon {
  width: 38px;
  height: 48px;
  fill: none;
  stroke: white;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.arrow-icon line {
  stroke: white;
  stroke-width: 3;
  stroke-linecap: round;
}
.arrow-icon polyline {
  fill: none;
  stroke: white;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Botón de trabajo en la esquina superior izquierda */
.work-button {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1002;
  color: #fff;
  background: none;
  border: none;
  font-size: 1.2rem;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s ease;
  pointer-events: auto;
  display: block;
  cursor: pointer;
}
body.category-filter-open .category-filter-btn {
  opacity: 0.4 !important;
}
.work-button:hover {
  opacity: 1;
}
  /* Evita despliegue por hover en modo archivo */
    body.archive-view .category-filter-container:hover .category-filter-list {
      display: none !important;
    }

/* Texto fijo en la parte inferior izquierda */
.fixed-bottom-left-text {
  position: fixed;
}
/* Duplicate .fixed-bottom-left-text definition removed and consolidated above */
body:not(.landing) .work-button,
body .work-button:not(:not(.show-on-scroll)) {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Unifica estilo de botones/links principales sin cambiar color */
.about-link,
.back-button,
.close-about,
.about-close,
.about-popup .about-close,
.filter-item {
  font-size: 1.2rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.13em !important;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  font-weight: 400 !important;
  text-decoration: none !important;
  background: none !important;
  border: none !important;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s;
  display: inline-block;
}

.latest-label {
  font-size: 1em !important;
  text-transform: uppercase !important;
  letter-spacing: 0.13em !important;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  font-weight: 400 !important;
  text-decoration: none !important;
  background: none !important;
  border: none !important;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s;
  display: inline-block;
}

.work-button:hover,
.about-link:hover,
.back-button:hover,
.close-about:hover,
.about-close:hover,
.about-popup .about-close:hover,
.filter-item:hover,
.latest-label:hover {
  opacity: 1;
  text-decoration: none !important;
}

.landing-actions {
  opacity: 1;
  pointer-events: none;
}
.landing-actions.visible {
  opacity: 1;
  pointer-events: auto;

}
.landing-actions.hidden {
  display: block;
}


/* --- NYÀS Center Logo --- */
.logo-link {
  position: fixed;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  z-index: 1003;
  opacity: 0;
  pointer-events: none;
  transition: all 0.5s ease;
  mix-blend-mode: difference;
}

.logo-link.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Ocultar el logo en modo archivo */
body.archive-view .logo-link {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden;
}

.logo-link:hover .nyas-center-logo {
  opacity: 0.7;
  transform: scale(0.95);
}

.nyas-center-logo {
  width: 75px;
  transition: opacity 0.3s ease, transform 0.3s ease;
  mix-blend-mode: difference;
}

/* Mobile overrides: centrar logo en la parte superior en pantallas pequeñas y ocultar el filtro de categoría */
@media (max-width: 600px) {
  /* Alineamos el logo a la izquierda en móvil y reducimos ligeramente su escala */
  .logo-link {
    display: block !important;
    position: fixed !important;
    left: 20px !important;
    top: 20px !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 1003 !important;
    mix-blend-mode: normal !important; /* evita mezcla extraña en móvil */
  }
  .logo-link .nyas-center-logo {
    width: 48px !important; /* ligeramente más pequeño en móvil */
    height: auto !important;
    display: block;
    transform: scale(0.96); /* escala sutil para reducir visualmente el logo */
    transition: transform 0.25s ease, width 0.25s ease;
  }

  /* Ocultar completamente el filtro de categoría en móvil */
  .category-filter-container {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}
.custom-footer {
  width: 100vw;
  margin: 0;
  padding: 20px 0;
  background: linear-gradient(to top, rgba(0,0,0,.08), rgba(0,0,0,0));
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  max-width: 100vw;
  padding: 0 20px;
  box-sizing: border-box;
}

.footer-info {
  color: #fff;
  font-size: 1.2rem;
  opacity: 0.8;
  line-height: 1.4;
  text-align: left;
}

.footer-socials {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  text-align: right;
}

.footer-socials a {
  color: #fff;
  text-decoration: none;
  opacity: 0.8;
  font-size: 1.2rem;
  transition: opacity 0.2s;
  line-height: 1.2;
}

    .footer-socials a:hover {
      opacity: 1;
    }

@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .footer-right {
    width: 100%;
  }
}
    .footer-socials a:hover {
      opacity: 1;
    }

@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .footer-right {
    width: 100%;
  }
}

/* --- SLIDE HORIZONTAL LANDING --- */
.horizontal-slide {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  touch-action: none;
  contain: strict;
  clip-path: inset(0); /* Asegura que el contenido no se desborde */
  perspective: 1px; /* Crea un nuevo contexto de apilamiento */
}
.slide-wrapper {
  position: absolute;
  display: flex;
  flex-direction: column;
  transition: transform 0.7s cubic-bezier(.77,0,.175,1);
  width: 100vw;
  height: 400vh;
  top: 0;
  left: 0;
}
.slide {
  position: relative;
  width: 100vw;
  height: 100vh;
  flex-shrink: 0;
  cursor: pointer;
  overflow: hidden;
}
.slide-bg {
  position: absolute;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 1;
  left: 0;
  top: 0;
}
.slide {
  /* Prevent clicks on the slide background/content itself; navigation lives on the title link */
  pointer-events: none;
}
.slide .slide-bg,
.slide video,
.slide img {
  pointer-events: none; /* ensure media doesn't capture clicks */
}
.slide .slide-title-box {
  pointer-events: auto; /* allow interactions inside the title box */
}
.slide .slide-title-box .title-link {
  pointer-events: auto; /* the link should be interactive */
  cursor: pointer;
  color: inherit;
  text-decoration: none; /* remove underline */
  display: inline-flex;
  align-items: baseline;
}
.slide .slide-title-box .title-link:focus,
.slide .slide-title-box .title-link:hover {
  text-decoration: none; /* explicitly keep no underline on hover/focus */
}
.slide-title-box {
  position: absolute;
  left: -20px;
  bottom: 1vw;
  z-index: 2;
  padding: 0em 1em;
  border-radius: 0.6em;
  color: #fff;
  text-align: left;
  font-size: 3em;
  font-family: inherit;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0em;
  opacity: 0.8;
  display: flex;
  align-items: center;
}

.slide-title {
  font-weight: 800;
  letter-spacing: 0em;
  text-transform: uppercase;
  display: inline;
}
.slide-brand {
  font-size: 1em;
  opacity: 0.8;
  font-weight: 300;
  margin-left: 0.3em;
  display: inline;
}


@media (max-width: 900px) {
  .slide-title-box {
    flex-direction: column;
    align-items: flex-start;
  }
  .slide-title {
    display: block;
  }
  .slide-brand {
    display: block;
    margin-left: 0;
    margin-top: -0.3em;
  }
}

/* Carousel titles overlay (fixed over the landing slides) */
.carousel-titles {
  position: absolute;
  left: 2vw;
  bottom: 1vw;
  z-index: 50;
  color: #fff;
  pointer-events: none;
  font-family: inherit;
  text-transform: uppercase;
  mix-blend-mode: difference;
}
.carousel-titles::before {
  content: "LATEST";
  display: block;
  font-size: 1.2em;
  font-weight: 400;
  letter-spacing: 0.13em;
  opacity: 0.8;
  margin-bottom: 0em;
  color: #fff;
  pointer-events: none;
}
.carousel-titles ul {
  list-style: none;
  margin: 0;
  padding: 0;
  /* Allow clicks on the dynamically generated list */
  pointer-events: auto;
}
.carousel-titles li {
  font-weight: 800;
  font-size: 2.8em;
  margin-bottom: -0.3em;
  opacity: 0.35;
  transform: translateX(0);
  transition: opacity 0.35s ease, transform 0.35s ease;
  display: flex;
  align-items: baseline;
  pointer-events: auto;
}
.carousel-titles .title-link {
  pointer-events: auto; /* make sure the anchor is clickable */
  color: inherit;
  text-decoration: none; /* remove underline */
  display: inline-flex;
  align-items: baseline;
}
.carousel-titles .title-link:hover,
.carousel-titles .title-link:focus {
  text-decoration: none; /* keep no underline */
}
.carousel-titles li .brand {
  font-weight: 300;
  font-size: 1em;
  margin-left: 0.3em;
  opacity: 0.7;
  letter-spacing: 0.05em;
}
.carousel-titles li.active {
  opacity: 1;
}
@media (max-width: 900px) {
  .carousel-titles li { font-size: 2.8em; }
  .carousel-titles li .brand { display: none; }
}

@media (max-width: 600px) {
  /* ocultar el prefijo "LATEST" en móviles */
  .carousel-titles::before,
  .latest-projects-titles::before,
  .latest-projects-titles .latest-label {
    display: none !important;
    content: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

/* Ocultar sección de proyectos en móvil para simplificar la landing */
@media (max-width: 600px) {
  #proyectos,
  .container#proyectos {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
}

