@charset "utf-8";

/* BASE */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: "Helvetica Neue", Helvetica, Arial, "sans-serif";
  font-weight: 400;
  font-style: normal;
  color: #111;
  background-color: #eeeeee;
  scroll-behavior: smooth;
  font-size: 15px;
  line-height: 1.4;
  transition: background-image 0.3s ease-in-out, background-size 0.3s ease-in-out;
}

/* SELECCIÓN */
::selection {
  background-color: #111;
  color: #eeeeee;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BARRA DE SCROLL */
::-webkit-scrollbar {
  display: none;
}

/* LOADING SCREEN */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99;
  background-color: #eeeeee;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 1s ease-in-out;
}
#loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}
#loading-screen img {
  width: 100%;
  height: auto;
  max-width: 300px;
  filter: blur(1px);
}

/* NAVIGATION */
nav a {
  text-decoration: none;
}
.info {
  margin: 0 auto;
  position: fixed;
  top: 50px;
  right: 3.5vw;
  z-index: 20;
  color: black;
  transition: color 0.3s ease;
  opacity: .7;
}
.home {
  margin: 0 auto;
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 120;
  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;
  bottom: 20px;
  left: 20px;
  transform: none;
  color: black;
  opacity: 0;
  transition: opacity 1s ease-in-out 0.3s, transform 1s ease-in-out;
}
.home h1 {
  display: inline-block;
  color: black;
  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;
  }
}

/* FILTER MENU */
.filter-menu {
  position: static;
  padding: 0px;
  z-index: 120;
}
.filter-menu select {
  padding: 5px;
  font-size: 14px;
}
.filter-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: left;
}
.filter-item {
  font-size: 1.2rem;
  color: black;
  opacity: 0.8;
  cursor: default !important; /* Solo el botón tendrá pointer */
  transition: opacity 0.3s ease;
  text-align: left;
  margin: 0;
  padding: 0;
  line-height: 1;
  text-decoration: none;
}
.filter-item:hover {
  opacity: 1;
  /* No cursor aquí */
}

/* Solo el botón tiene pointer y hover */
.filter-btn {
  display: inline-block;
  width: auto !important;
  max-width: max-content;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: none;
  border: none;
  box-sizing: border-box;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.filter-btn:hover {
  opacity: 1;
}
.filter-item.active {
  opacity: .3;
}
.filter-item[data-filter="all"] {
  font-weight: bold;
}
.filter-item[data-filter="archive"] {
  font-style: normal;
  opacity: 0.6;
}
.filter-item.active[data-filter="archive"] {
  font-style: italic;
}
.filter-item.active[data-filter="director"] {
 opacity: 0.8;
}

/* GALLERY */
.container {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 5px 1vw;
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
  align-items: stretch;
}
.column {
  width: 100%;
  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: #eeeeee;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: 0.5s;
}
.post:hover .overlay {
  opacity: 0.95;
  cursor: pointer;
}
.gif {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: flex;
  position: absolute;
  z-index: -3;
}
.overlay h3 {
  font-size: 1.1rem;
  text-align: center;
  text-transform: uppercase;
  opacity: 1;
  transition: 0.5s;
  color: #111;
  z-index: 3;
}
.overlay .director {
  font-size: 0.9rem;
  color: #111;
  opacity: 0;
  margin-bottom: 5px;
  text-align: center;
  position: absolute;
  top: 50%;
  transform: translateY(10px);
  z-index: 3;
}
.overlay .category {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #111;
  opacity: 0.7;
  text-align: center;
  position: absolute;
  top: 50%;
  z-index: 3;
}
.overlay .brand {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #111;
  opacity: 0.7;
  text-align: center;
  position: absolute;
  z-index: 3;
}
.overlay .brand-year {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #111;
  opacity: 0.7;
  text-align: center;
  position: absolute;
  top: 50%;
  transform: translateY(10px);
  z-index: 3;
}
.overlay p {
  font-size: 1rem;
  position: absolute;
  opacity: .7;
  color: #111;
  z-index: 3;
}
.overlay-images {
  position: absolute;
  bottom: 30px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 5;
}
.overlay-images img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

/* MODAL */
.modal {
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  z-index: 40;
}
.modal-content {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
  display: flex;
  align-items: stretch;
  flex-direction: column;
  padding-top: 10vh;
}
.close {
  cursor: pointer;
  text-align: center;
  margin: 0 auto;
  position: fixed;
  top: 50px;
  right: 3.5vw;
  z-index: 20;
  color: white;
  transition: color 0.3s ease;
  opacity: .7;
}
.modal h2 {
  font-size: 1.5rem;
  margin: 0;
  opacity: .9;
}
.modal p {
  font-size: 1rem;
  margin: 0;
  opacity: .7;
}
.project-title {
  position: fixed;
  bottom: 50px;
  left: 3.5vw;
  display: flex;
  flex-direction: column;
}
.project-subtitle {
  position: fixed;
  bottom: 30px;
  left: 3.5vw;
  display: flex;
  flex-direction: column;
}
.project-technical-data {
  position: fixed;
  bottom: 30px;
  right: 3.5vw;
  display: flex;
  flex-direction: column;
  text-align: right;
}
.vimeo-player{
  position: relative;
  padding-top: 70%;
  height: 0;
  overflow: hidden;
  display: block;
  flex-grow: 3;
  flex-shrink: 1;
  flex-basis: auto;
  align-self: auto;
  order: 0;
}
.vimeo-player iframe{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
}

/* 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: 120;
  background: linear-gradient(to top, rgba(238, 238, 238, .3), rgba(238, 238, 238, 0));
  pointer-events: none;
}
.footer a {
  text-decoration: none;
  position: relative;
  color: #111;
  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;
}

/* PROJECT PAGE */
.project-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #eeeeee;
  color: #111;
  overflow: hidden;
}
.video-container {
  width: 90vw;
  height: 80vh;
  background-color: #eeeeee;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 100px;
  padding: 0;
  z-index: 20;
}
.video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
}
.project-info {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #111;
  text-align: center;
}
.project-info h1 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  opacity: 0.9;
  text-align: left;
  width: 100%;
}
.project-info p {
  font-size: 0.9rem;
  margin-bottom: 5px;
  opacity: 0.7;
  text-align: left;
  width: 100%;
}
.project-info .back-link {
  position: fixed;
  bottom: 20px;
  font-size: 0.9rem;
  color: #111;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s ease;
  text-align: center;
}
.project-info .back-link:hover {
  opacity: 1;
}

/* FADE-IN ANIMATION */
@keyframes fadeInUp {
  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: 1rem;
  border-collapse: separate;
  text-transform: uppercase;
  table-layout: auto;
  margin-left: 20px;
  margin-right: 20px;
  z-index: 2;
  counter-reset: rowNumber;
    filter: blur(0.1px);

}
.archive-table th,
.archive-table td {
  margin: 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;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.archive-table:hover tr:not(:hover) {
  opacity: 0.5;
  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: #111;
}
.archive-table tr:nth-child(n+10) td:first-child::before {
  content: counter(rowNumber);
}
@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;
  }
}
@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 (max-width: 600px) {
  .overlay {
    opacity: 0;
    visibility: hidden;
    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;
  }
}

/* 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);
}

.main-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 50vw;
  min-width: 320px;
  background: #eeeeee;
  color: #111;
  display: flex;
  flex-direction: column;
  gap: 0px;
  justify-content: space-between;
  padding: 10px 10px 30px 20px;
  position: fixed; 
}

.sidebar-content {
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.sidebar-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 5px;
  letter-spacing: 1px;
}

.sidebar-role {
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 30px;
}

.sidebar-links {
  position: fixed;
  bottom: 30px;
  left: 20px;
  right: 40px;
  margin-top: 0;
  font-size: 1.2rem;
  opacity: 0.8;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.sidebar-links a {
  text-decoration: none;
  color: #111;
  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;
}
.sidebar-links a:hover {
  opacity: 1;
}

.projects-column {
  margin-left: auto;
  margin-right: 0;
  flex: none;
  width: 65vw;
  max-width: 60vw;
  min-width: 320px;
  padding: 2px 2px 40px 20px;
  background: #eeeeee;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* PROJECT CARD INFO */
.project-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 10px;
  margin-bottom: 10px;
  padding: 0 5px;
}
.project-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #111;
  margin: 0;
  text-transform: uppercase;
  line-height: 1.2;
}
.project-card-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px 14px 12px 14px;
    z-index: 2;
    margin: 0;
    box-sizing: border-box;
  }
  .project-card-info .project-card-title,
  .project-card-info .project-card-description,
  .project-card-info .project-card-director,
  .project-card-info .project-card-brand-year {
    color: #eeeeee !important;
    text-align: left;
    opacity: 1;
  }

@media (max-width: 900px) {
  .post {
    position: relative;
    overflow: hidden;
  }
  .project-card-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px 14px 12px 14px;
    z-index: 2;
    margin: 0;
    box-sizing: border-box;
  }
  .project-card-info .project-card-title,
  .project-card-info .project-card-description,
  .project-card-info .project-card-director,
  .project-card-info .project-card-brand-year {
    color: #eeeeee !important;
    text-align: left;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    opacity: 0.8;
  }
  .sidebar-title,
  .sidebar-role,
  .sidebar-links a,
  .filter-menu,
  .filter-list,
  .filter-item {
    color: #eeeeee;
    mix-blend-mode: difference;
  }
  .sidebar {
    position: fixed;
    width: 100%;
    min-width: unset;
    border-right: none;
    flex-direction: row;
    align-items: center;
    padding: 10px 10px 30px 20px;
    z-index: 100;
    background-color: transparent;
  }
  
  .projects-column {
    margin-left: 0;
    padding: 0px;
    max-width: 100vw;
    width: 100vw;
  }
  .main-layout {
    flex-direction: column;
  }
  .sidebar-links {
    position: fixed;
    left: unset;
    right: unset;
  }
   #fullscreen-popup .popup-title {
    color: #111 !important;
    opacity: 1;
  }
}

/* FULLSCREEN POPUP */
#fullscreen-popup {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  background: #eeeeee;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
#fullscreen-popup.active {
  opacity: 1;
  pointer-events: auto;
}
#fullscreen-popup .popup-title {
  position: fixed;
  top: 10px;
  left: 20px;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 0;
  color: #111;
  z-index: 10001;
}
#fullscreen-popup .popup-links {
   position: fixed;
    bottom: 30px;
    left: 20px;
    right: 40px;
    margin-top: 0;
    font-size: 1.2rem;
    opacity: 0.8;
    display: flex
;
    flex-direction: column;
    gap: 5px;
  z-index: 10001;
}
#fullscreen-popup .popup-links a {
  color: #111;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s;
}
#fullscreen-popup .popup-links a:hover {
  opacity: 1;
}
#close-popup {
  position: fixed;
  top: 10px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2.5rem;
  color: #111;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  z-index: 10001;
}
#close-popup:hover {
  opacity: 1;
}
#fullscreen-popup.active ~ .main-layout .sidebar {
  opacity: 0;
  pointer-events: none;
}
#sidebar-title:hover,
#fullscreen-popup .popup-title:hover {
  cursor: pointer;
}
.filter-btn {
  display: inline-block;
  width: auto !important;
  max-width: max-content;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: none;
  border: none;
  box-sizing: border-box;
}

.links-bottom-fixed {
  position: fixed;
  left: 20px;
  right: 40px;
  bottom: 30px;
  margin-top: 0;
  font-size: 1.2rem;
  opacity: 0.8;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 10001;
}
#fullscreen-popup .popup-bio {
  display: block;
  margin: 50px 50px 0 20px; 
  max-width: 100vw;
  font-size: 2.2rem;
  color: #111;
  opacity: 0.85;
  z-index: 10001;
}


