@font-face {
  font-family: 'LemonMilkBold';
  src: url('fonts/LEMONMILK-Bold.woff2') format('woff2'),
       url('fonts/LEMONMILK-Bold.woff') format('woff');
  font-weight: bold;
}
@font-face {
  font-family: 'LemonMilkLight';
  src: url('fonts/LEMONMILK-Light.woff2') format('woff2'),
       url('fonts/LEMONMILK-Light.woff') format('woff');
  font-weight: normal;
}
html, body {
  margin: 0;
  padding: 0;
  font-family: 'LemonMilkLight', sans-serif;
  scroll-behavior: smooth;
}

/* -------------------- LOGO GENERAL -------------------- */
.logo-wrapper {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: 800px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-fixed {
  position: absolute;
  max-width: 100%;
  max-height: 100%;
  transition: opacity 0.5s ease-in-out;
}

.logo-default {
  opacity: 1;
}

.logo-scrolled {
  opacity: 0;
}

/* -------------------- INDEX / HOME -------------------- */
.logo {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  height: 100px;
}

.container {
  display: flex;
  width: 100%;
  height: 100vh;
}

.slider-container {
  flex: 1;
  position: relative;
  overflow: hidden;
  filter: brightness(1);
  transition: filter 0.3s ease-in-out;
}

@media (hover: hover) {
  .slider-container:hover {
    filter: brightness(0.75);
  }
}

.slider-text {
  position: absolute;
  z-index: 2;
  font-size: clamp(40px, 10vw, 100px);
  font-family: 'LemonMilkBold', sans-serif;
  color: transparent;
  -webkit-text-stroke: 2.5px white;
  text-align: center;
  pointer-events: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-decoration: none;
}

.slide-track {
  display: flex;
  flex-direction: column;
  height: calc(100% * 24);
  animation: scrollUp 60s linear infinite;
}

.right-track {
  animation: scrollDown 60s linear infinite;
}

.slide-track img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
}

@keyframes scrollUp {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

@keyframes scrollDown {
  0% { transform: translateY(-50%); }
  100% { transform: translateY(0); }
}

/* -------------------- WORKS -------------------- */
.works-page {
  background: white;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(50%, 1fr));
  gap: 0;
  padding-top: 140px;
}

.work-item {
  position: relative;
  overflow: hidden;
  height: 50vh;
  cursor: pointer;
}

.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}

.overlay-text {
  position: absolute;
  bottom: -150px;
  opacity: 0;
  transition: bottom 1s ease, opacity 1.5s ease;
  width: 100%;
  padding: 30px;
  padding-bottom: 2px;
}

.overlay-left {
  text-align: left;
  left: 0;
}

.overlay-right {
  text-align: right;
  right: 0;
}

.work-title {
  font-family: 'LemonMilkBold', sans-serif;
  font-size: 2.5rem;
  color: transparent;
  -webkit-text-stroke: 2px white;
  margin: 0;
}

.work-description {
  font-family: 'LemonMilkLight', sans-serif;
  font-size: 1.1rem;
  color: white;
  margin-top: 3px;
}

.work-item:hover img {
  transform: scale(1.05);
  filter: brightness(0.75);
}

.work-item:hover .overlay-text {
  bottom: 10px;
  opacity: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 2s ease, transform 2s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}


/* -------------------- ENLACES ANTES DE FOOTER -------------------- */

.footer-top-nav-columns {
  display: flex;
  justify-content: center;
  gap: 200px;
  margin-top: 80px;
  margin-bottom: 30px;
  text-align: center;
}

.footer-top-nav-columns .footer-column a {
  font-family: 'LemonMilkBold', sans-serif;
  font-size: 3rem;
  color: transparent;
  -webkit-text-stroke: 1.2px black;
  text-decoration: none;
  letter-spacing: 1px;
}

/* Si hay solo una columna, centramos el bloque */
.footer-top-nav-columns.single-link {
  justify-content: center;
}

/* -------------------- LINEA ANTES DE FOOTER -------------------- */

.footer-divider {
  border: none;
  border-top: 1px solid black;
  margin: 0 auto 50px;
  width: 80%;
}




/* -------------------- FOOTER QUOTE ANIMACIÓN -------------------- */
.footer-quote {
  overflow: hidden;
  width: 80%;
  margin: 20px auto 40px;
  position: relative;
  height: 3.5rem;
}

.footer-quote span {
  position: absolute;
  white-space: nowrap;
  font-size: 3rem;
  font-family: 'LemonMilkLight', sans-serif;
  color: #ddd;
  animation: scrollLeft 25s linear infinite;
  left: 100%;
}

@keyframes scrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-370%); }
}



/* -------------------- FOOTER -------------------- */
.custom-footer {
  background: white;
  text-align: center;
  padding: 90px 90px 15px;
  font-family: 'LemonMilkLight', sans-serif;
}

.footer-logo {
  text-align: center;
  margin-bottom: 20px;
}

.footer-logo img {
  max-width: 100px;
  height: auto;
}

.footer-address,
.footer-contact {
  font-size: 0.9rem;
  color: black;
  line-height: 1.5;
  margin-bottom: 30px;
}

.footer-address p,
.footer-address .mobile-address,
.footer-contact a,
.footer-social-inline {
  margin: 5px 0;
  display: block;
}

.footer-address .mobile-address {
  display: none;
}

.footer-contact a {
  color: black;
  text-decoration: none;
  margin-top: 12px;
  line-height: 1.2;
}

.phone-line {
  display: block;
  margin-top: 2px;
  line-height: 1.2;
}

.footer-social-inline {
  font-size: 0.8rem;
  font-family: 'LemonMilkLight', sans-serif;
  color: black;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.footer-social-inline a {
  color: black;
  text-decoration: none;
  white-space: nowrap;
}

.footer-legal {
  font-size: 0.6rem;
  color: #999;
  font-family: 'LemonMilkLight', sans-serif;
  margin: 20px 0 0;
  text-align: center;
}

.footer-legal a {
  color: #999;
  text-decoration: none;
  margin: 0 4px;
  display: inline;
  white-space: nowrap;
}

.custom-footer {
  padding-bottom: 100px;
}



/* -------------------- LOCOMOTIVE SCROLL ANIMACIONES -------------------- */
[data-scroll] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 2s ease, transform 2s ease;
}

[data-scroll].is-inview {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------- BOTON VOLVER AL TOP -------------------- */

.scroll-to-top {
  position: fixed;
  bottom: 40px;
  right: 30px;
  width: 40px;
  height: 40px;
  background-color: black;
  color: white;
  font-size: 22px;
  font-family: 'LemonMilkBold', sans-serif;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

.scroll-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}



/* -------------------- RESPONSIVE -------------------- */
@media (max-width: 768px) {
  .logo,
  .logo-fixed {
    height: 60px;
  }

  .logo-wrapper {
    height: 60px;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    justify-content: center;
  }

  .logo-scrolled {
    display: none;
  }

  .container {
    flex-direction: column;
  }

  .slide-track {
    flex-direction: row;
    height: 100%;
    width: calc(100% * 24);
    animation: scrollHorizontal 60s linear infinite;
  }

  .right-track {
    animation: scrollHorizontalRev 60s linear infinite;
  }

  .slide-track img {
    width: 100vw;
    height: 50vh;
  }

  @keyframes scrollHorizontal {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }

  @keyframes scrollHorizontalRev {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
  }

  .works-grid {
    grid-template-columns: 1fr;
    padding-top: 70px;
  }

  .work-item {
    height: 50vh;
  }

  .overlay-text {
    bottom: -100px;
    opacity: 0;
    transition: opacity 0.5s ease, bottom 0.5s ease;
    padding: 0px;
    text-align: center;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .overlay-left,
  .overlay-right {
    text-align: center;
    left: 0;
    right: 0;
  }

  .work-title {
    font-size: 1.5rem;
    color: white;
    -webkit-text-stroke: 0px white;
    word-break: break-word;
  }

  .work-description {
    font-size: 0.7rem;
    word-break: break-word;
  }


  .footer-top-nav-columns {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 20px !important;
    margin-top: 60px;
    margin-bottom: 30px;
  }

  .footer-top-nav-columns .footer-column a {
    font-size: 1.8rem;
    -webkit-text-stroke: 0.8px black;
  }

.footer-top-nav-columns .footer-column {
  width: 100%;
  text-align: center;
}


  .footer-logo img {
    max-width: 100px;
  }

  .footer-address p.desktop-address {
    display: none;
  }

  .footer-address .mobile-address {
    display: block;
    font-size: 0.8rem;
    line-height: 1.2;
    margin-bottom: 8px;
    padding-bottom: 6px;
    text-align: center;
    white-space: normal;
  }

  .footer-address,
  .footer-contact,
  .footer-logo {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
  }

  .footer-contact a {
    display: block;
    font-size: 0.8rem;
    margin-top: 8px;
  }

  .phone-line {
    display: block;
    font-size: 0.8rem;
    margin-top: 8px;
  }

  .footer-social-inline {
    font-size: 0.8rem;
    margin-top: 3px;
    gap: 20px;
  }

  .footer-quote span {
    font-size: 2rem;
  }

  .footer-legal {
    text-align: center;
    font-size: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
  }

  .footer-legal span {
    display: block;
    white-space: nowrap;
    color: #999;
  }

  .footer-legal a {
    display: inline;
    white-space: nowrap;
    color: #999;
    text-decoration: none;
    margin: 0 3px;
  }
}