*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* Chrome, Safari, Edge */
::-webkit-scrollbar {
  display: none;
}

#lenis-wrapper,
#lenis-content {
  min-height: 100vh;
}

/* Lenis */
html.lenis {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}


/* =========================================
   TEXT REVEAL
========================================= */

html.js nav:not(.white-nav) ul li a,
html.js nav:not(.white-nav) .hour,
html.js nav:not(.white-nav) .contacto-nav-button p,
html.js .desktop-header h1,
html.js .desktop-header h2,
html.js .desktop-header h3,
html.js .desktop-header h4,
html.js .desktop-header h5,
html.js .desktop-header p {
  visibility: hidden;
}

html.js .desktop-header .header-main-info-container p {
  visibility: visible;
}

.text-reveal-line-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.22em;
  margin-bottom: -0.22em;
}

.text-reveal-line {
  display: block;
  will-change: transform;
}

.nav-reveal-line-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}

.nav-reveal-line {
  display: inline-block;
  will-change: transform;
}


/***************************** TEXT STYLES *****************************/

.paragraph{
  font-size: 15px;
  line-height: 15px;
  font-family: "Inter", sans-serif;
  font-weight: 400;
}
.bold{
  font-weight: 600;
}
.opacity-text{
  opacity: .7;
}
.medium-title{
  font-size: 3vw;
  line-height: 2.8vw;
  font-family: "Inter", sans-serif;
  font-weight: 400;
}
.big-title{
  font-size: 4.625vw;
  line-height: 3.7vw;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  letter-spacing: -.05vw;
}
.big-big-title{
  font-size: 6vw;
  line-height: 5vw;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  letter-spacing: -.05vw;
}
.h4-title{
  font-size: 3vw;
  line-height: 2.5vw;
  font-family: "Inter", sans-serif;
  font-weight: 400;
}
.h5-title{
  font-size: 2vw;
  line-height: 2vw;
  font-family: "Inter", sans-serif;
  font-weight: 400;
}
.huge-title{
  font-size: 12vw;
  line-height: 8vw;
  font-family: "Inter", sans-serif;
  font-weight: 400;
}

/***************************** GRID STYLES *****************************/

.grid{
  --columns: 12;
  --gap: 15px;
  --padding-x: 1.5%;
  --padding-y: 2.5%;

  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  width: 100%;
}

.grid-lines::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--padding-x);
  right: var(--padding-x);
  pointer-events: none;
  z-index: 3;

  --col-width: calc((100% - (11 * var(--gap))) / 12);
  --step: calc(var(--col-width) + var(--gap));

  background-image: repeating-linear-gradient(
    to right,
    var(--line-color) 0,
    var(--line-color) 1px,
    transparent 1px,
    transparent calc(var(--col-width) - 1px),
    var(--line-color) calc(var(--col-width) - 1px),
    var(--line-color) var(--col-width),
    transparent var(--col-width),
    transparent var(--step)
  );
}

.grid-white-lines{
  --line-color: rgba(255, 255, 255, 0.1);
}

.grid-black-lines{
  --line-color: rgba(0, 0, 0, 0.07);
}



/*********************************** NAV *********************************/

nav{
  z-index: 10;
  padding: 1.5%;
  width: 100%;
}

.nav{
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;
}

nav img{
  grid-column: 1 / 2;
}

nav ul{
  grid-column: 3 / 6;
}

nav ul li{
  display: inline;
  color: white;
}

nav ul li a{
  text-decoration: none;
  color: white;
}

.hour{
  grid-column: 9 / 11;
  color: white;
}

.contacto-nav-button{
  grid-column: 11 / 13;
  background-color: rgb(255, 204, 0);
  color: black;
  backdrop-filter: blur(10px);
  border-radius: 5px;
  padding: 3%;
  position: relative;
  bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cnb-inner{
  width: 7px;
  height: 7px;
  background-color: black;
  border-radius: 50%;
}

/*********************************** WHITE NAV *********************************/

.white-nav{
  background: white;
  padding: 1.5% 1.5% 1% 1.5%;
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  border-bottom: 1px solid black;
  z-index: 40;
  will-change: transform;
  pointer-events: none;
}

.white-nav img{
  grid-column: 1 / 2;
}

.white-nav ul{
  grid-column: 3 / 6;
}

.white-nav ul li{
  display: inline;
}

.white-nav .paragraph,
.white-nav ul li,
.white-nav .hour,
.white-nav a{
  color: black;
}

.white-nav .contacto-nav-button{
  background-color: rgb(255, 204, 0);
}
.white-nav .contacto-nav-button .paragraph{
  color: black;
}
.white-nav .cnb-inner{
  background-color: black;
}
.hmic-inner .cnb-inner{
  background-color: white;
}

/************************************************
   HEADER
************************************************/

.header-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;

  transform-origin: center center;
  will-change: transform;
  backface-visibility: hidden;
}

/* Estado inicial antes de que arranque GSAP */
html.js .hbg-img-container .header-img{
  transform: scale(1.3);
}

.desktop-header{
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
  padding: var(--padding-y) var(--padding-x);
}

.hbg-img-container{
  position: absolute;
  inset: 0;

  /* Evita que la imagen escalada salga del header */
  overflow: hidden;
}

.black-opacity{
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,0.2);
  z-index: 1;
}

.hero-content{
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  height: 100%;
  position: relative;
  z-index: 2;
}

.header-parallax-inner{
  position: absolute;
  left: 0;
  top: -10%;
  width: 100%;
  height: 120%;
  will-change: transform;
  backface-visibility: hidden;
}

.header-parallax-inner .header-img{
  width: 100%;
  height: 100%;
}

/* =========================================
   HEADER LEFT
========================================= */

.header-left-content{
  grid-column: 1 / 7;
  align-self: end;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.main-title{
  color: white;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 5vw;
  line-height: 4vw;
  letter-spacing: -.1vw;
  margin-bottom: 20vh;
}

.header-description{
  color: white;
  width: 24vw;
}


/* =========================================
   HEADER SMALL PROJECT CARD
========================================= */

.header-main-info-container{
  grid-column: 10 / 13;
  align-self: end;
  height: 140px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  position: relative;
  padding: 10px;
}

.hmic-image-container{
  width: 120px;
  height: 120px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-main-info-container p{
  width: 70%;
  color: white;
}

.hmic-image-container img{
  width: 110%;
}

.hmic-inner{
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hmic-inner-inner{
  display: flex;
  align-items: center;
  opacity: .5;
}

.hmic-inner-inner .cnb-inner{
  margin-right: 10px;
}

.hmic-inner .cnb-inner{
  background-color: white;
}

/********************************* FIRST SECTION *********************************/

.home-first-section{
  width: 100%;
  padding: 5% 1.5%;
  border-bottom: 1px solid black;
  position: relative;
}

.home-first-section::after{
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: .5px;
  background: rgba(0, 0, 0, 0.8);
  z-index: 4;

  --usable-width: calc(100% - (2 * var(--padding-x)));
  --col-width: calc((var(--usable-width) - (11 * var(--gap))) / 12);

  left: calc(
    var(--padding-x) +
    (7 * var(--col-width)) +
    (6 * var(--gap))
  );
}

.hfs-image-container{
  grid-column: 1 / 4;
  position: relative;
  height: 70vh;
  overflow: hidden;
}
.hfs-image-container img{
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  position: relative;
  right: auto;
}
.hfs-first-content{
  grid-column: 8 / 13;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 70vh;
}
.hfs-first-content .title{
  margin-top: 10vh;
}
.hfs-first-content .description{
  width: 23vw;
}

/********************************* SECOND SECTION *********************************/

.home-second-section{
    width: 100%;
    padding: 5% 1.5%;
}

.home-second-section h3:nth-child(1) {
  grid-column: 4 / 13;
}
.home-second-section h3:nth-child(2) {
  grid-column: 1 / 13;
}
.hss-info-content{
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1 / 13;
  margin-top: 6%;
}
.hss-info-content p:nth-child(1) {
  grid-column: 1 / 3;
}
.hss-info-content p:nth-child(2) {
  grid-column: 7 / 9;
}
.hss-info-content p:nth-child(3) {
  grid-column: 10 / 13;
}

/********************************* THIRD SECTION *********************************/

.home-third-section{
    width: 100%;
    padding: 0% 1.5% 5% 1.5%;
    border-bottom: 1px solid black;
}
.home-projects-container{
  position: relative;
}
.hpc-image-container{
  position: relative;
  width: 100%;
  overflow: hidden;
}
.hpc-image-container img{
  width: 100%;
}
.hpc-1{
  grid-column: 1 / 9;
}
.hpc-2{
  grid-column: 9 / 13;
}
.hpc-title-arrow{
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hpc-title-arrow img{
  width: 60px;
}
.hpc-info-container{
  margin-top: 20px;
}
.home-projects-container h4{
  margin-top: 20px;
}
.home-projects-container h5{
  margin-top: 10px;
}

/********************************* FOURTH SECTION *********************************/

/************************************************

   PROJECT IMAGE HOVER

************************************************/

/*
  Contenedor/máscara principal
*/

.hpc-image-container{
  position: relative;
  overflow: hidden;
}


/*
  El enlace ocupa exactamente
  todo el contenedor de la imagen
*/

.hpc-image-container > a{
  position: relative;

  display: block;

  width: 100%;
  height: 100%;

  overflow: hidden;
}


/*
  IMAGEN ORIGINAL
*/

.hpc-image-container > a > img.hpc-project-main-image{
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  will-change: transform, filter;

  backface-visibility: hidden;

  transform-origin: center center;
}


/*
  SEGUNDA IMAGEN

  inset: 0 + margin: auto
  la centra perfectamente tanto
  horizontal como verticalmente.

  NO usamos translate porque GSAP
  anima transform: scale().
*/

.hpc-image-container > a > img.hpc-project-hover-image{
  position: absolute;

  inset: 0;
  margin: auto;

  width: 60%;
  height: 60%;

  object-fit: cover;
  object-position: center;

  z-index: 2;
  pointer-events: none;

  /* Cerrada exactamente en el centro */
  clip-path: polygon(
    50% 0%,
    50% 0%,
    50% 100%,
    50% 100%
  );

  -webkit-clip-path: polygon(
    50% 0%,
    50% 0%,
    50% 100%,
    50% 100%
  );

  will-change: clip-path;
  backface-visibility: hidden;
}

/************************************************

   PROJECT CURSOR BUTTON

************************************************/

.project-cursor-button{
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  min-width: 250px;
  padding: 12px;
  background-color: rgb(255, 204, 0);
  color: black;
  backdrop-filter: blur(10px);
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  white-space: nowrap;
  will-change: transform, opacity;
}

.project-cursor-button .paragraph{
  color: black;
}

.project-cursor-button .cnb-inner{
  width: 7px;
  height: 7px;

  flex-shrink: 0;

  background-color: black;

  border-radius: 50%;
}

/* =========================================================
   PROJECT INACTIVE OUTLINE
========================================================= */

.hpc-image-container::after{
  content: "";

  position: absolute;
  inset: 0;

  border: 1px solid black;

  opacity: 0;

  pointer-events: none;

  z-index: 5;

  transition:
    opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}


.hpc-image-container.is-project-outline::after{
  opacity: 0.5;
}




.home-fourth-section{
  width: 100%;
  padding: 5% 1.5% 8% 1.5%;
  position: relative;
  border-bottom: 1px solid black;
}
.home-fourth-section .smart-title{
  grid-column: 1 / 3;
  margin-bottom: 50px;
}
.hfs-cards-item-container{
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1 / 13;
  height: 100vh;
  align-items: start;
  position: relative;
}
.hfs-item-container{
  padding: 5%;
  border: 1px solid black;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  position: relative;
  background-color: black;
  will-change: transform;
  color: white;
}
.hfs-info-container{
  margin-top: 130px;
}
.hfs-info-container p{
  margin-top: 30px;
}
.hfs-item-1{
  grid-column: 1 / 5;
}
.hfs-item-2{
  grid-column: 5 / 9;
}
.hfs-item-3{
  grid-column: 9 / 13;
}
.hfs-icon-container{
  width: 30px;
  display: flex;
  justify-content: space-between;
}
.hfs-icon{
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hfs-icon img{
  width: 65%;
  /* opacity: .8; */
}

/********************************* FIFTH SECTION *********************************/

.home-fifth-section{
  width: 100%;
  padding: 5% 1.5%;
  position: relative;
}

.hfifs-left-info-container{
  grid-column: 1 / 8;
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1 / 8;
  align-content: space-between;
  min-height: 110vh;
}

.hfifs-first-content-inner{
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
}

.hfifs-first-content-inner .smart-title{
  grid-column: 1 / 3;
}

.hfifs-first-content-inner .title{
  grid-column: 1 / 6;
  margin-top: 10vh;
}

.hfifs-image-container{
  grid-column: 8 / 13;
  position: relative;
  height: 110vh;
}

.hfifs-image-container img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hfifs-bottom-info{
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1 / -1;
  align-self: end;
}

.hfifs-bottom-info .description{
  grid-column: 1 / 4;
}

.hfifs-button{
  grid-column: 6 / 8;
  background-color: rgb(0,0,0);
  color: white;
  backdrop-filter: blur(10px);
  border-radius: 5px;
  padding: 10px;
  position: relative;
  bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 40px;
  align-self: end;
}

/********************************* FOOTER ************************************/

footer{
  width: 100%;
  padding: 5% 1.5% 0 1.5%;
  background: black;
  position: relative;
  color: white;
}

.inner-footer-top{
  width: 100%;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  position: relative;
  height: 150vh;
}

.ift-left{
  grid-column: 1 / 6;
  position: relative;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding-bottom: 5%;
}

.ift-left-bottom{
  width: 50%;
}

.ift-left-bottom .paragraph{
  margin-top: 30px;
}

.ift-left img{
  position: absolute;
  top: calc(-1 * 5.8vw);
  left: 50%;
  transform: translateX(-53%);
  width: 100%;
}

.ift-right{
  grid-column: 6 / 13;
  position: relative;
  min-height: 70vh;
  display: grid;
  grid-template-columns: subgrid;
  grid-template-rows: auto 1fr;
}

.ift-right-top{
  grid-column: 1 / -1;
  position: relative;
  padding: 4rem 0 4rem 0;
}

.ift-right-bottom{
  grid-column: 1 / -1;
  position: relative;
  min-height: 220px;
  display: grid;
  grid-template-columns: subgrid;
  padding-top: 20%;
}

.ift-rb-top{
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
}

.ift-rb-top-top{
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  align-items: end;
}

.ift-rb-top-top > .h4-title{
  grid-column: 1 / 6;
}

.contacta-container{
  grid-column: 1 / 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: .5;
  border-bottom: 1px solid white;
  width: 100%;
  padding-bottom: 5px;
  align-self: start;
}

.contacta-container img{
  width: 60px;
  margin: 20px 0 0 30px;
}

.ift-rb-top-bottom{
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  margin-top: 3rem;
  align-items: start;
}

.rb-top-1{
  grid-column: 1 / 3;
}

.rb-top-2{
  grid-column: 5 / 6;
}

.rb-top-3{
  grid-column: 6 / 8;
}

.top-opacity-text{
  margin-bottom: 30px;
}

.rb-top-1 .paragraph:not(.top-opacity-text),
.rb-top-2 .paragraph:not(.top-opacity-text),
.rb-top-3 .paragraph:not(.top-opacity-text){
  margin-bottom: 4px;
}

.footer-main-title{
  color: white;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 5vw;
  line-height: 4vw;
  letter-spacing: -.1vw;
  width: 80%;
}

.ift-left::after{
  content: "";
  position: absolute;
  top: calc(-1 * 5vw);
  right: 0;
  width: 1px;
  height: calc(100% + 5vw);
  background: rgba(255,255,255,0.8);
  z-index: 2;
}

.ift-right-top::after{
  content: "";
  position: absolute;
  left: calc(-1 * var(--gap));
  right: calc(-1 * var(--padding-x));
  bottom: 0;
  height: 1px;
  background: rgba(255,255,255,0.8);
  z-index: 2;
}

.ift-right::before{
  content: "";
  position: absolute;
  top: calc(-1 * 5vw);
  left: calc(-1 * var(--gap));
  right: calc(-1 * var(--padding-x));
  height: 1px;
  background: rgba(255,255,255,0.8);
  z-index: 2;
}

.footer-inner-bottom{
  height: auto;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  padding: 10px 0;
  position: relative;
}

.footer-inner-bottom::before{
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 1px;
  background: rgba(255,255,255,0.8);
  z-index: 2;
}

/* =========================================================
   FOOTER LOGO
========================================================= */

.footer-logo-svg{
  grid-column: 1 / 13;

  display: block;

  width: 100%;
  height: auto;

  overflow: hidden;

  pointer-events: none;
}


.footer-logo-letter{
  fill: #fafafa;

  transform-box: fill-box;

  transform-origin:
    center center;

  will-change:
    transform,
    opacity;
}

.ift-rb-bottom{
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  align-items: end;
  padding-bottom: 5%;
}
.rb-bottom-1{
  grid-column: 1 / 4;
}
.rb-bottom-2{
  grid-column: 5 / 7;
}
.border-bottom{
  border-bottom: 1px solid white;
}
.p-margin-bottom{
  margin-bottom: 4px;
}

/* =========================================================
   FOOTER UNDERLINE REVEAL
========================================================= */

.contacta-container,
footer .border-bottom{
  position: relative;

  /*
    Conservamos el espacio que ocupaba
    el borde original.
  */
  border-bottom: 1px solid transparent;

  /*
    GSAP animará este valor.
  */
  --footer-line-scale: 0;
}


/*
  Línea real visual.

  Como es un pseudo-elemento,
  SplitText jamás puede modificarla.
*/

.contacta-container::after,
footer .border-bottom::after{
  content: "";

  position: absolute;

  left: 0;
  bottom: -1px;

  width: 100%;
  height: 1px;

  background-color:
    currentColor;

  transform:
    scaleX(
      var(--footer-line-scale)
    );

  transform-origin:
    left center;

  pointer-events: none;

  will-change:
    transform;

  z-index: 2;
}



/* =========================================================
   REDUCED MOTION
========================================================= */

@media (
  prefers-reduced-motion: reduce
){

  .contacta-container,
  footer .border-bottom{
    --footer-line-scale: 1;
  }

}


/********************************* PROJECTS PAGE *********************************/

.projects-page-section{
  width: 100%;
  padding: 5% 1.5%;
  position: relative;
}

.projects-section-top-info{
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  align-items: start;
  margin-bottom: 1rem;
  margin-top: 30vh;
}

.projects-section-top-info h2{
  color: black;
  grid-column: 1 / 4;
  grid-row: 1;
  margin-bottom: 0;
}

.projects-nav .paragraph,
.projects-nav ul li a{
  color: black;
}

.projects-section-top-info .number{
  grid-column: 8 / 9;
  grid-row: 1;
  align-self: start;
}

.projects-section-top-info .description{
  grid-column: 10 / 13;
  grid-row: 1;
  align-self: start;
}

.all-projects-container{
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  margin-top: 2rem;
}

.all-projects-container .hpc-1{
  grid-column: 1 / 9;
}

.all-projects-container .hpc-2{
  grid-column: 9 / 13;
}

.all-projects-container .hpc-3{
  grid-column: 1 / 5;
}

.all-projects-container .hpc-4{
  grid-column: 8 / 13;
}

.hpc-image-container-3{
  height: 50vh;
}

.all-projects-container .hpc-5{
  grid-column: 2 / 6;
}

.hpc-image-container-5{
  height: 50vh;
}

.all-projects-container .hpc-6{
  grid-column: 6 / 13;
}


/********************************* SINGLE PROJECT PAGE *********************************/

/* =========================================================
   SINGLE PROJECT HEADER
========================================================= */

.s-p-header-title{
  grid-column: 1 / 9;

  align-self: end;

  display: flex;

  justify-content: space-between;

  align-items: flex-end;

  color: white;
}
/* =========================================================
   NEXT PROJECT CARD
========================================================= */

.next-project-card{
  grid-column: 10 / 13;

  align-self: end;

  text-decoration: none;

  cursor: pointer;

  overflow: hidden;

  transform:
    scale(1);

  transform-origin:
    center;

  will-change:
    transform;

  transition:
    transform 0.6s
    cubic-bezier(0.16, 1, 0.3, 1);
}


.next-project-card:hover{
  transform:
    scale(1.025);
}


/*
  Al hacer click se contrae un poco
  para reforzar la sensación de botón.
*/

.next-project-card:active{
  transform:
    scale(0.99);
}


.next-project-card .hmic-inner{
  flex: 1;

  min-width: 0;
}


.next-project-card .next-project-name{
  width: 100%;
  font-size: 20px;
}
.numero-sp{
  font-size: 15px;
  opacity: .5;
  position: relative;
  bottom: 6px;
}

.next-project-card .hmic-image-container img{
  width: 100%;
  height: 100%;

  object-fit: cover;

  transform: scale(1);

  transition:
    transform 0.8s
    cubic-bezier(0.16, 1, 0.3, 1);
}


.next-project-card:hover
.hmic-image-container img{
  transform:
    scale(1.08);
}


/*
  Movimiento sutil del punto.
*/

.next-project-card .cnb-inner{
  transition:
    transform 0.6s
    cubic-bezier(0.16, 1, 0.3, 1);
}


.next-project-card:hover
.cnb-inner{
  transform:
    translateX(5px);
}

.s-p-header-title .main-title{
  margin: 0;
}
.s-p-header-title .main-title{
  margin: 0;
}
.single-project-first-section{
  width: 100%;
  padding: 15% 1.5%;
  position: relative;
}
.single-project-first-section .medium-title{
  grid-column: 5 / 13;
}
.single-project-first-section .paragraph{
  grid-column: 1 / 4;
}

.s-p-imgs-div{
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  margin-top: 2rem;
}
.single-project-imgs{
  width: 100vw;
  padding: 0 1.5%;
}
.sp-projects-container{
  position: relative;
  overflow: hidden;
}
.sp-projects-container img{
  width: 100%
}

.sp-pr-cn-1{
  grid-column: 1 / 13;
}

/* =========================================================
   SINGLE PROJECT — PREVIOUS / NEXT
========================================================= */

.single-project-pagination{
  grid-column: 1 / -1;

  width: 100%;

  box-sizing: border-box;

  min-height: 320px;

  /*
    Igualamos el margen lateral
    del resto de la web.
  */
  padding:
    12%
    1.5%
    5%
    1.5%;

  background-color: white;

  align-items: start;
}



/* =========================================================
   LINKS
========================================================= */

.sp-pagination-link{
  color: black;

  text-decoration: none;

  display: grid;

  grid-template-columns:
    subgrid;

  grid-template-rows:
    auto
    1fr;

  align-items: end;

  position: relative;

  cursor: pointer;
}


/*
  Bloque izquierdo.
*/

.sp-pagination-prev{
  grid-column:
    1 / 6;
}


/*
  Bloque derecho.
*/

.sp-pagination-next{
  grid-column:
    8 / 13;
}



/* =========================================================
   LABEL
========================================================= */

.sp-pagination-label{
  grid-row: 1;

  margin-bottom: 10px;
}


/*
  El texto de anterior comienza
  exactamente donde empieza la imagen.
*/

.sp-pagination-prev
.sp-pagination-label{
  grid-column:
    1 / 5;

  text-align: left;
}


/*
  El de siguiente llega hasta
  el extremo derecho del grid.
*/

.sp-pagination-next
.sp-pagination-label{
  grid-column:
    2 / 6;

  text-align: right;
}



/* =========================================================
   IMAGE
========================================================= */

.sp-pagination-image{
  position: relative;

  overflow: hidden;

  width: 100%;

  aspect-ratio:
    1.8 / 1;

  align-self: end;
}


/*
  ANTERIOR

  Ahora ocupa 2 columnas,
  antes ocupaba 3.
*/

.sp-pagination-prev
.sp-pagination-image{
  grid-column:
    1 / 3;

  grid-row:
    2;
}


/*
  SIGUIENTE

  También ocupa únicamente
  las dos últimas columnas.
*/

.sp-pagination-next
.sp-pagination-image{
  grid-column:
    4 / 6;

  grid-row:
    2;
}


.sp-pagination-image img{
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  object-position: center;

  transform:
    scale(1);

  will-change:
    transform;

  transition:
    transform 0.8s
    cubic-bezier(
      0.16,
      1,
      0.3,
      1
    );
}



/* =========================================================
   PROJECT INFO
========================================================= */

.sp-pagination-info{
  grid-row:
    2;

  align-self:
    end;

  min-width:
    0;
}



/*
  IZQUIERDA

  Imagen:
  columnas 1 — 2

  Información:
  columnas 3 — 4
*/

.sp-pagination-prev
.sp-pagination-info{
  grid-column:
    3 / 5;

  padding-left:
    0;

  text-align:
    left;
}



/*
  DERECHA

  Dejamos libre únicamente la primera
  columna del bloque derecho.

  Información:
  columnas 2 — 3

  Imagen:
  columnas 4 — 5

  Por tanto información e imagen
  quedan inmediatamente consecutivas.
*/

.sp-pagination-next
.sp-pagination-info{
  grid-column:
    2 / 4;

  padding-right:
    0;

  text-align:
    right;
}



/* =========================================================
   NUMBER
========================================================= */

.sp-pagination-number{
  margin-bottom:
    8px;
}


.sp-pagination-next
.sp-pagination-number{
  text-align:
    right;
}



/* =========================================================
   TITLE
========================================================= */

.sp-pagination-title{
  margin: 0;

  color: black;

  font-family:
    "Inter",
    sans-serif;

  font-weight:
    400;

  font-size:
    clamp(
      38px,
      3vw,
      58px
    );

  line-height:
    0.88;

  letter-spacing:
    -0.06em;
}


.sp-pagination-prev
.sp-pagination-title{
  text-align:
    left;
}


.sp-pagination-next
.sp-pagination-title{
  text-align:
    right;
}



/* =========================================================
   HOVER
========================================================= */

.sp-pagination-link:hover
.sp-pagination-image img{
  transform:
    scale(1.045);
}



/* =========================================================
   REDUCED MOTION
========================================================= */

@media (
  prefers-reduced-motion: reduce
){

  .sp-pagination-image img{
    transition:
      none;
  }

}

/* =========================================================
   /* =========================================================
   PROJECT PAGINATION — PRECISE HOVER AREA
========================================================= */

/*
  El enlace sigue siendo el elemento semántico/clicable,
  pero su caja completa NO captura el ratón.
*/

.sp-pagination-link{
  pointer-events: none;
}


/*
  Solo la imagen y la información activan
  realmente el hover.

  Así las zonas vacías del grid ya no
  disparan la animación.
*/

.sp-pagination-image,
.sp-pagination-info{
  pointer-events: auto;
  cursor: pointer;
}


/*
  Ajustamos además la caja de información
  al tamaño real del texto.

  De esta forma tampoco tenemos una gran
  zona invisible dentro de sus columnas.
*/

.sp-pagination-prev
.sp-pagination-info{
  justify-self: start;

  width: max-content;
  max-width: 100%;
}


.sp-pagination-next
.sp-pagination-info{
  justify-self: end;

  width: max-content;
  max-width: 100%;
}



/* =========================================================
   PROJECT PAGINATION — LOOP TEXT
========================================================= */

.sp-pagination-number,
.sp-pagination-title{
  width: 100%;
}



/* =========================================================
   MASK
========================================================= */

.sp-pagination-roll-mask{
  position: relative;

  display: block;

  width: 100%;

  overflow: hidden;

  margin: 0;
  padding: 0;
}



/*
  Las dos líneas del nombre se apilan
  con una separación REAL.

  Antes estaban prácticamente tocándose.
*/

.sp-pagination-title{
  display: flex;

  flex-direction: column;

  gap: 0.005em;
}


.sp-pagination-title-line-mask{
  display: block;

  width: 100%;

  margin: 0;
}



/* =========================================================
   TRACK
========================================================= */

.sp-pagination-roll-track{
  display: flex;

  flex-direction: column;

  width: 100%;

  margin: 0;
  padding: 0;

  transform:
    translate3d(
      0,
      0,
      0
    );

  will-change:
    transform;
}



/* =========================================================
   ITEMS
========================================================= */

.sp-pagination-roll-item{
  display: block;

  width: 100%;

  flex:
    0 0 auto;

  box-sizing: border-box;

  white-space: nowrap;

  margin-left: 0;
  margin-right: 0;
}



/* =========================================================
   NUMBER
========================================================= */

.sp-pagination-number{
  margin-bottom: 8px;
}


.sp-pagination-number-roll-item{
  line-height: 15px;

  /*
    Aire para la propia máscara.
  */

  padding-bottom: 3px;

  /*
    Separación entre original y copia.
  */

  margin-bottom: 6px;
}



/* =========================================================
   TITLE
========================================================= */

.sp-pagination-title-roll-item{
  line-height: 0.88;

  /*
    Damos un poco más de respiración
    arriba y abajo.

    Esto evita cortes en descendentes.
  */

  padding-top: 0.035em;
  padding-bottom: 0.13em;

  /*
    Esta es la distancia entre:

    Casa original
    Casa copia

    No modifica la separación entre
    Casa y Serena.
  */

  margin-bottom: 0.20em;
}



/* =========================================================
   ALIGNMENTS
========================================================= */

.sp-pagination-prev
.sp-pagination-roll-item{
  text-align: left;
}


.sp-pagination-next
.sp-pagination-roll-item{
  text-align: right;
}



/* =========================================================
   COPY
========================================================= */

.sp-pagination-roll-copy{
  pointer-events: none;
}



/* =========================================================
   IMAGE
========================================================= */

.sp-pagination-image img{
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  transform:
    scale(1);

  transform-origin:
    center center;

  will-change:
    transform;

  /*
    El zoom ya NO se anima desde CSS.

    GSAP controla imagen y texto
    exactamente con el mismo timing.
  */

  transition: none;
}



/* =========================================================
   REDUCED MOTION
========================================================= */

@media (
  prefers-reduced-motion: reduce
){

  .sp-pagination-roll-track{
    transform:
      none !important;
  }

}

/* =========================================================
   PROJECT PAGINATION — CLOSING TEXT
========================================================= */

.sp-pagination-closing-text{
  grid-column: 1 / 4;
  margin: 0 0 40% 0;
}


/*
  Los enlaces pasan explícitamente
  a la segunda fila.
*/

.sp-pagination-prev,
.sp-pagination-next{
  grid-row: 2;
}

/**************************** IMAGENES NOGAL ******************************/

.sp-pr-cn-2{
  grid-column: 1 / 5;
}
.sp-pr-cn-3{
  grid-column: 8 / 13;
}
.sp-pr-cn-4{
  grid-column: 1 / 3;
}
.sp-pr-cn-2-1{
  grid-column: 3 / 6;
}
.sp-pr-cn-3-1{
  grid-column: 8 / 13;
}
.sp-double-text{
  grid-column: 5 / 13;
  padding: 0 0 15vh 0;
}

/**************************** IMAGENES SERENA ******************************/

.sp-pr-cn-7{
  grid-column: 1 / 5;
}
.sp-pr-cn-8{
  grid-column: 5 / 8;
}
.sp-pr-cn-9{
  grid-column: 11 / 13;
}
.sp-double-text-pt{
  padding-top: 15vh;
}
.sp-pr-cn-10{
  grid-column: 5 / 13;
}

/**************************** IMAGENES LINEA ******************************/

.sp-pr-cn-11{
  grid-column: 1 / 7;
}
.sp-pr-cn-12{
  grid-column: 9 / 13;
}
.sp-pr-cn-13{
  grid-column: 1 / 7;
}
.sp-pr-cn-14{
  grid-column: 9 / 13;
}

/**************************** IMAGENES AMBAR ******************************/

.sp-pr-cn-15{
  grid-column: 1 / 4;
}
.sp-pr-cn-16{
  grid-column: 7 / 9;
}
.sp-pr-cn-17{
  grid-column: 9 / 13;
}
.sp-pr-cn-18{
  grid-column: 1 / 7;
}
.sp-pr-cn-19{
  grid-column: 10 / 13;
}

/**************************** IMAGENES LADERA ******************************/

.sp-pr-cn-4-1{
  grid-column: 1 / 7;
}


/********************************************* EQUIPO ***************************************************/


.header-main-title{
  margin-bottom: 0;
}
.estudio-first-section{
  width: 100%;
  padding: 15% 1.5% 10% 1.5%;
  position: relative;
}
.estudio-first-section p{
  grid-column: 1 / 4;
}
.estudio-first-section .h3-container{
  grid-column: 6 / 13;
  position: relative;
}
.estudio-first-section .h3-container h3{
  width: 100%;
}
.estudio-img-2{
  grid-column: 1 / 7;
}
.estudio-p-2{
  grid-column: 8 / 11;
}
.n-e-right-text{
  grid-column: 9 / 13;
  text-align: right;
  margin-bottom: 10%;
}
.n-e-left-text{
  grid-column: 1 / 3;
}
.n-e-center-text{
  grid-column: 6 / 7;
}
.equipo-title{
  padding-top: 10%;
}
.equipo-hero-content{
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  position: relative;
  padding-bottom: 50px;
}
.member-container{
  position: relative;
}
.member-container img{
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.member-container-1{
  grid-column: 1 / 4;
}
.member-container-2{
  grid-column: 4 / 7;
  position: relative;
  top: 60px;
}
.member-container-3{
  grid-column: 7 / 10;
  position: relative;
  top: 90px;
}
.member-container-4{
  grid-column: 10 / 13;
}
.equipo-section{
  background-color: black;
  color: white;
}
.member-info{
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
}
.puesto{
  opacity: .5;
}
.equipo-hero-last-container{
  padding-bottom: 10%;
}
.estudio-personas{
  grid-column: 1 / 7;
  margin-bottom: 30px;
}
.detras-texto{
  grid-column: 9 / 13;
}
.bottom-estudio-info{
  padding: 10% 0;
}
.bottom-estudio-info .hfifs-button{
  background-color: rgb(255, 204, 0);
  color: black;
  grid-column: 10 / 13;
}
.bottom-estudio-info .description{
  grid-column: 5 / 9;
}




/* =========================================================
   PAGE TRANSITION
========================================================= */

html.is-transitioning,
html.is-transitioning body {
  overflow: hidden;
}

html.is-transitioning body {
  pointer-events: none;
}


/* Página que sale */

@keyframes page-move-out {

  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0.4;
    transform: translateY(-35%);
  }

}


/* Página que entra */

@keyframes page-move-in {

  from {
    clip-path: polygon(
      0% 100%,
      100% 100%,
      100% 100%,
      0% 100%
    );
  }

  to {
    clip-path: polygon(
      0% 100%,
      100% 100%,
      100% 0%,
      0% 0%
    );
  }

}


::view-transition-old(root) {

  animation:
    1.5s
    cubic-bezier(0.87, 0, 0.13, 1)
    both
    page-move-out;

}


::view-transition-new(root) {

  animation:
    1.5s
    cubic-bezier(0.87, 0, 0.13, 1)
    both
    page-move-in;

}



/* =========================================================
   MICRO INTERACTIONS
========================================================= */


/* =========================================================
   NAV TEXT ROLL
========================================================= */

.micro-nav-link{
  position: relative;

  display: inline-block;

  vertical-align: top;

  white-space: nowrap;

  text-decoration: none;

  overflow: visible;
}


/*
  Área invisible de hover.

  Aumenta la zona sensible sin añadir
  padding ni cambiar la geometría del nav.
*/

.micro-nav-link::before{
  content: "";

  position: absolute;

  top: -11px;
  bottom: -11px;

  left: -3px;
  right: -3px;

  z-index: 0;
}


/*
  La máscara visible sigue midiendo
  exactamente una línea.
*/

.micro-nav-text-mask{
  position: relative;

  z-index: 1;

  display: inline-block;

  height: 15px;

  line-height: 15px;

  overflow: hidden;

  vertical-align: top;

  white-space: nowrap;
}


.micro-nav-text-track{
  display: flex;

  flex-direction: column;

  width: max-content;

  transform:
    translate3d(
      0,
      0,
      0
    );

  will-change: transform;

  transition:
    transform 0.55s
    cubic-bezier(0.16, 1, 0.3, 1);
}


.micro-nav-text-line{
  display: block;

  flex: 0 0 15px;

  height: 15px;

  line-height: 15px;

  white-space: nowrap;

  color: inherit;
}


.micro-nav-link:hover
.micro-nav-text-track,

.micro-nav-link:focus-visible
.micro-nav-text-track{
  transform:
    translate3d(
      0,
      -15px,
      0
    );
}



/* =========================================================
   BUTTON BASE
========================================================= */

.micro-interaction-button{
  position: relative;

  overflow: hidden;

  isolation: isolate;

  cursor: pointer;
}


/*
  Máscara de color del botón.
*/

.micro-interaction-button::before{
  content: "";

  position: absolute;
  inset: 0;

  z-index: 0;

  background-color:
    var(--micro-mask-color);

  transform:
    translate3d(
      0,
      101%,
      0
    );

  pointer-events: none;

  will-change: transform;

  transition:
    transform 0.6s
    cubic-bezier(0.16, 1, 0.3, 1);
}


.micro-interaction-button:hover::before,
.micro-interaction-button:focus-visible::before{
  transform:
    translate3d(
      0,
      0,
      0
    );
}



/* =========================================================
   BUTTON TEXT ROLL
========================================================= */

.micro-button-text-mask{
  position: relative;

  z-index: 1;

  display: block;

  height: 15px;

  line-height: 15px;

  overflow: hidden;

  flex-shrink: 0;
}


.micro-button-text-track{
  display: flex;

  flex-direction: column;

  width: max-content;

  transform:
    translate3d(
      0,
      0,
      0
    );

  will-change: transform;

  transition:
    transform 0.55s
    cubic-bezier(0.16, 1, 0.3, 1);
}


.micro-button-text-line{
  display: block;

  flex: 0 0 15px;

  height: 15px;

  line-height: 15px;

  margin: 0;

  white-space: nowrap;
}


/*
  La copia NO lleva .paragraph.

  Así evitamos que reglas como:

  .white-nav .contacto-nav-button .paragraph

  puedan pisar su color.
*/

.micro-button-text-copy{
  font-size: 15px;
  line-height: 15px;

  font-family: "Inter", sans-serif;

  font-weight: 400;
}


.micro-interaction-button:hover
.micro-button-text-track,

.micro-interaction-button:focus-visible
.micro-button-text-track{
  transform:
    translate3d(
      0,
      -15px,
      0
    );
}



/* =========================================================
   BUTTON DOT
========================================================= */

.micro-interaction-button
> .cnb-inner{
  position: relative;

  z-index: 2;

  flex-shrink: 0;

  will-change:
    transform,
    background-color;

  transition:
    transform 0.55s
      cubic-bezier(0.16, 1, 0.3, 1),

    background-color 0.35s
      ease;
}


.micro-interaction-button:hover
> .cnb-inner,

.micro-interaction-button:focus-visible
> .cnb-inner{
  transform:
    translate3d(
      -6px,
      0,
      0
    )
    scale(1.45);
}



/* =========================================================
   CONTACT BUTTON
   amarillo -> negro
========================================================= */

.contacto-nav-button{
  --micro-mask-color:
    rgb(0, 0, 0);
}


/*
  Original
*/

.contacto-nav-button
.micro-button-text-original{
  color:
    rgb(0, 0, 0);
}


/*
  Copia de hover
*/

.contacto-nav-button
.micro-button-text-copy{
  color:
    rgb(255, 204, 0);
}


/*
  Punto normal
*/

.contacto-nav-button
> .cnb-inner{
  background-color:
    rgb(0, 0, 0);
}


/*
  Punto hover
*/

.contacto-nav-button.micro-interaction-button:hover
> .cnb-inner,

.contacto-nav-button.micro-interaction-button:focus-visible
> .cnb-inner{
  background-color:
    rgb(255, 204, 0);
}



/* =========================================================
   WHITE NAV CONTACT BUTTON
========================================================= */

/*
  Estas reglas son deliberadamente
  específicas para que el CSS antiguo
  de .white-nav no pueda pisarlas.
*/

.white-nav
.contacto-nav-button
.micro-button-text-original{
  color:
    rgb(0, 0, 0);
}


.white-nav
.contacto-nav-button
.micro-button-text-copy{
  color:
    rgb(255, 204, 0);
}


.white-nav
.contacto-nav-button
> .cnb-inner{
  background-color:
    rgb(0, 0, 0);
}


.white-nav
.contacto-nav-button.micro-interaction-button:hover
> .cnb-inner,

.white-nav
.contacto-nav-button.micro-interaction-button:focus-visible
> .cnb-inner{
  background-color:
    rgb(255, 204, 0);
}



/* =========================================================
   BLACK HFIFS BUTTON
   negro -> amarillo
========================================================= */

.hfifs-button{
  --micro-mask-color:
    rgb(255, 204, 0);
}


/*
  Texto normal blanco
*/

.hfifs-button
.micro-button-text-original{
  color:
    rgb(255, 255, 255);
}


/*
  Texto nuevo negro
*/

.hfifs-button
.micro-button-text-copy{
  color:
    rgb(0, 0, 0);
}


/*
  Punto normal blanco
*/

.hfifs-button
> .cnb-inner{
  background-color:
    rgb(255, 255, 255);
}


/*
  Punto nuevo negro
*/

.hfifs-button.micro-interaction-button:hover
> .cnb-inner,

.hfifs-button.micro-interaction-button:focus-visible
> .cnb-inner{
  background-color:
    rgb(0, 0, 0);
}



/* =========================================================
   ESTUDIO YELLOW HFIFS BUTTON
   amarillo -> negro
========================================================= */

.bottom-estudio-info
.hfifs-button{
  --micro-mask-color:
    rgb(0, 0, 0);
}


/*
  Texto normal negro
*/

.bottom-estudio-info
.hfifs-button
.micro-button-text-original{
  color:
    rgb(0, 0, 0);
}


/*
  Texto hover amarillo
*/

.bottom-estudio-info
.hfifs-button
.micro-button-text-copy{
  color:
    rgb(255, 204, 0);
}


/*
  Punto normal negro
*/

.bottom-estudio-info
.hfifs-button
> .cnb-inner{
  background-color:
    rgb(0, 0, 0);
}


/*
  Punto hover amarillo.

  Lo hacemos explícito para evitar
  cualquier conflicto con .hfifs-button.
*/

.bottom-estudio-info
.hfifs-button.micro-interaction-button:hover
> .cnb-inner,

.bottom-estudio-info
.hfifs-button.micro-interaction-button:focus-visible
> .cnb-inner{
  background-color:
    rgb(255, 204, 0);
}



/* =========================================================
   PROJECT ARROWS
========================================================= */

.hpc-title-arrow img{
  will-change: transform;

  transition:
    transform 0.6s
    cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================================
   FOOTER CONTACT ARROW
========================================================= */

.contacta-container img{
  will-change: transform;

  transition:
    transform 0.6s
    cubic-bezier(0.16, 1, 0.3, 1);
}


.contacta-container:hover img{
  transform:
    translate3d(
      10px,
      0,
      0
    );
}



/* =========================================================
   REDUCED MOTION
========================================================= */

@media (
  prefers-reduced-motion: reduce
){

  .micro-nav-text-track,

  .micro-button-text-track,

  .micro-interaction-button::before,

  .micro-interaction-button
  > .cnb-inner,

  .hpc-title-arrow img,

  .contacta-container img{
    transition-duration:
      0.01ms !important;
  }

}




html,
body {
  overflow-x: clip;
}

img,
svg {
  max-width: 100%;
}


/* =========================================================
   TOUCH DEVICES
========================================================= */

@media (hover: none), (pointer: coarse) {

  .project-cursor-button,
  .hpc-project-hover-image {
    display: none !important;
  }

  .hpc-image-container::after {
    display: none;
  }

  .next-project-card:hover,
  .next-project-card:active {
    transform: none;
  }

  .next-project-card:hover .hmic-image-container img,
  .sp-pagination-link:hover .sp-pagination-image img {
    transform: none;
  }

  .micro-nav-link:hover .micro-nav-text-track,
  .micro-nav-link:focus-visible .micro-nav-text-track,
  .micro-interaction-button:hover .micro-button-text-track,
  .micro-interaction-button:focus-visible .micro-button-text-track {
    transform: translate3d(0, 0, 0);
  }

  .micro-interaction-button:hover::before,
  .micro-interaction-button:focus-visible::before {
    transform: translate3d(0, 101%, 0);
  }

  .micro-interaction-button:hover > .cnb-inner,
  .micro-interaction-button:focus-visible > .cnb-inner {
    transform: none;
  }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

  .grid {
    --columns: 8;
    --gap: 12px;
    --padding-x: 2.5%;
    --padding-y: 3%;

    grid-template-columns:
      repeat(8, minmax(0, 1fr));
  }

  .grid-lines::before {
    --col-width:
      calc(
        (100% - (7 * var(--gap))) / 8
      );

    --step:
      calc(
        var(--col-width) + var(--gap)
      );
  }


  /* TEXT */

  .paragraph {
    font-size: 14px;
    line-height: 15px;
  }

  .medium-title {
    font-size:
      clamp(30px, 4vw, 46px);

    line-height: .98;

    letter-spacing:
      -.035em;
  }

  .big-title {
    font-size:
      clamp(42px, 6vw, 68px);

    line-height: .9;

    letter-spacing:
      -.055em;
  }

  .big-big-title {
    font-size:
      clamp(54px, 8vw, 88px);

    line-height: .88;

    letter-spacing:
      -.055em;
  }

  .h4-title {
    font-size:
      clamp(28px, 4vw, 44px);

    line-height: .94;
  }

  .h5-title {
    font-size:
      clamp(22px, 2.8vw, 32px);

    line-height: 1;
  }


  /* NAV */

  nav {
    padding:
      2.25% 2.5%;

    align-items:
      start;
  }

  nav img,
  .white-nav img {
    grid-column:
      1 / 2;

    max-width:
      100%;
  }

  nav ul,
  .white-nav ul {
    grid-column:
      3 / 5;
  }

  .hour,
  .white-nav .hour {
    grid-column:
      6 / 8;
  }

  .contacto-nav-button,
  .white-nav .contacto-nav-button {
    grid-column:
      8 / 9;

    bottom:
      7px;

    padding:
      9px;
  }


  /* HEADER */

  .desktop-header {
    height:
      100svh;

    min-height:
      650px;

    padding:
      var(--padding-y)
      var(--padding-x);
  }

  .header-left-content {
    grid-column:
      1 / 6;
  }

  .main-title,
  .footer-main-title {
    font-size:
      clamp(52px, 7vw, 78px);

    line-height:
      .86;

    letter-spacing:
      -.055em;
  }

  .main-title {
    margin-bottom:
      16vh;
  }

  .header-description {
    width:
      min(42vw, 390px);
  }

  .header-main-info-container,
  .next-project-card {
    grid-column:
      6 / 9;

    height:
      126px;
  }

  .hmic-image-container {
    width:
      106px;

    height:
      106px;

    flex:
      0 0 106px;
  }

  .s-p-header-title {
    grid-column:
      1 / 6;
  }


  /* HOME FIRST */

  .home-first-section {
    padding:
      8% 2.5%;
  }

  .home-first-section::after {
    display:
      none;
  }

  .hfs-image-container {
    grid-column:
      1 / 4;

    height:
      62vh;

    min-height:
      520px;
  }

  .hfs-image-container img {
    right:
      12%;
  }

  .hfs-first-content {
    grid-column:
      4 / 9;

    height:
      62vh;

    min-height:
      520px;
  }

  .hfs-first-content
  .description {
    width:
      min(42vw, 420px);
  }


  /* HOME SECOND */

  .home-second-section {
    padding:
      8% 2.5%;
  }

  .home-second-section
  h3:nth-child(1) {
    grid-column:
      3 / 9;
  }

  .home-second-section
  h3:nth-child(2) {
    grid-column:
      1 / 9;
  }

  .hss-info-content {
    grid-column:
      1 / 9;

    margin-top:
      8%;
  }

  .hss-info-content
  p:nth-child(1) {
    grid-column:
      1 / 3;
  }

  .hss-info-content
  p:nth-child(2) {
    grid-column:
      4 / 6;
  }

  .hss-info-content
  p:nth-child(3) {
    grid-column:
      6 / 9;
  }


  /* HOME PROJECTS */

  .home-third-section {
    padding:
      0 2.5% 8%;
  }

  .hpc-1 {
    grid-column:
      1 / 6;
  }

  .hpc-2 {
    grid-column:
      6 / 9;
  }

  .hpc-title-arrow img,
  .contacta-container img {
    width:
      48px;
  }


  /* HOME CARDS */

  .home-fourth-section {
    padding:
      8% 2.5% 10%;
  }

  .home-fourth-section
  .smart-title {
    grid-column:
      1 / 3;
  }

  .hfs-cards-item-container {
    grid-column:
      1 / 9;

    min-height:
      82vh;

    height:
      auto;
  }

  .hfs-item-container {
    min-height:
      82vh;

    height:
      82vh;

    padding:
      6%;
  }

  .hfs-item-1 {
    grid-column:
      1 / 4;
  }

  .hfs-item-2 {
    grid-column:
      4 / 7;
  }

  .hfs-item-3 {
    grid-column:
      7 / 9;
  }

  .hfs-info-container {
    margin-top:
      80px;
  }


  /* HOME FIFTH */

  .home-fifth-section {
    padding:
      8% 2.5%;
  }

  .hfifs-left-info-container {
    grid-column:
      1 / 5;

    min-height:
      90vh;
  }

  .hfifs-first-content-inner
  .smart-title {
    grid-column:
      1 / 3;
  }

  .hfifs-first-content-inner
  .title {
    grid-column:
      1 / 5;
  }

  .hfifs-image-container {
    grid-column:
      5 / 9;

    height:
      90vh;
  }

  .hfifs-bottom-info
  .description {
    grid-column:
      1 / 4;
  }

  .hfifs-button {
    grid-column:
      4 / 5;

    min-width:
      0;
  }


  /* PROJECTS PAGE */

  .projects-page-section {
    padding:
      7% 2.5%;
  }

  .projects-section-top-info {
    grid-column:
      1 / 9;

    margin-top:
      24vh;
  }

  .projects-section-top-info h2 {
    grid-column:
      1 / 4;
  }

  .projects-section-top-info
  .number {
    grid-column:
      5 / 6;
  }

  .projects-section-top-info
  .description {
    grid-column:
      6 / 9;
  }

  .all-projects-container {
    grid-column:
      1 / 9;
  }

  .all-projects-container
  .hpc-1 {
    grid-column:
      1 / 6;
  }

  .all-projects-container
  .hpc-2 {
    grid-column:
      6 / 9;
  }

  .all-projects-container
  .hpc-3 {
    grid-column:
      1 / 4;
  }

  .all-projects-container
  .hpc-4 {
    grid-column:
      5 / 9;
  }

  .all-projects-container
  .hpc-5 {
    grid-column:
      2 / 5;
  }

  .all-projects-container
  .hpc-6 {
    grid-column:
      5 / 9;
  }

  .hpc-image-container-3,
  .hpc-image-container-5 {
    height:
      46vh;
  }


  /* SINGLE PROJECT */

  .single-project-first-section {
    padding:
      14% 2.5%;
  }

  .single-project-first-section
  .paragraph {
    grid-column:
      1 / 3;
  }

  .single-project-first-section
  .medium-title {
    grid-column:
      4 / 9;
  }

  .single-project-imgs {
    padding:
      0 2.5%;
  }

  .s-p-imgs-div {
    grid-column:
      1 / 9;
  }

  .sp-pr-cn-1 {
    grid-column:
      1 / 9;
  }

  .sp-pr-cn-2,
  .sp-pr-cn-7,
  .sp-pr-cn-15 {
    grid-column:
      1 / 4;
  }

  .sp-pr-cn-3,
  .sp-pr-cn-10,
  .sp-pr-cn-19 {
    grid-column:
      5 / 9;
  }

  .sp-pr-cn-4 {
    grid-column:
      1 / 3;
  }

  .sp-pr-cn-2-1 {
    grid-column:
      2 / 4;
  }

  .sp-pr-cn-3-1 {
    grid-column:
      5 / 9;
  }

  .sp-pr-cn-8 {
    grid-column:
      4 / 6;
  }

  .sp-pr-cn-9 {
    grid-column:
      7 / 9;
  }

  .sp-pr-cn-11,
  .sp-pr-cn-13,
  .sp-pr-cn-18,
  .sp-pr-cn-4-1 {
    grid-column:
      1 / 5;
  }

  .sp-pr-cn-12,
  .sp-pr-cn-14,
  .sp-pr-cn-17 {
    grid-column:
      6 / 9;
  }

  .sp-pr-cn-16 {
    grid-column:
      5 / 7;
  }

  .sp-double-text {
    grid-column:
      3 / 9;
  }

  .single-project-pagination {
    padding:
      12% 2.5% 6%;
  }

  .sp-pagination-closing-text {
    grid-column:
      1 / 3;

    margin-bottom:
      28%;
  }

  .sp-pagination-prev {
    grid-column:
      1 / 5;
  }

  .sp-pagination-next {
    grid-column:
      5 / 9;
  }


  /* ESTUDIO */

  .estudio-first-section {
    padding:
      14% 2.5% 10%;
  }

  .estudio-first-section p {
    grid-column:
      1 / 3;
  }

  .estudio-first-section
  .h3-container {
    grid-column:
      4 / 9;
  }

  .estudio-img-2 {
    grid-column:
      1 / 5;
  }

  .estudio-p-2 {
    grid-column:
      6 / 9;
  }

  .n-e-left-text {
    grid-column:
      1 / 3;
  }

  .n-e-center-text {
    grid-column:
      4 / 5;
  }

  .n-e-right-text {
    grid-column:
      5 / 9;
  }

  .equipo-hero-content {
    grid-column:
      1 / 9;
  }

  .member-container-1 {
    grid-column:
      1 / 3;
  }

  .member-container-2 {
    grid-column:
      3 / 5;
  }

  .member-container-3 {
    grid-column:
      5 / 7;
  }

  .member-container-4 {
    grid-column:
      7 / 9;
  }

  .estudio-personas {
    grid-column:
      1 / 5;
  }

  .detras-texto {
    grid-column:
      6 / 9;
  }

  .bottom-estudio-info
  .description {
    grid-column:
      3 / 6;
  }

  .bottom-estudio-info
  .hfifs-button {
    grid-column:
      6 / 9;
  }


  /* FOOTER TABLET */

  footer {
    padding:
      7% 2.5% 0;
  }

  .inner-footer-top {
    grid-column:
      1 / 9;

    height:
      125vh;
  }

  .ift-left {
    grid-column:
      1 / 4;
  }

  .ift-right {
    grid-column:
      4 / 9;
  }

  .ift-left-bottom {
    width:
      72%;
  }

  .ift-right-top,
  .ift-right-bottom,
  .ift-rb-top,
  .ift-rb-top-top,
  .ift-rb-top-bottom,
  .ift-rb-bottom {
    grid-column:
      1 / -1;
  }

  .ift-rb-top-top
  > .h4-title {
    grid-column:
      1 / 5;
  }

  .contacta-container {
    grid-column:
      1 / 4;
  }

  .rb-top-1 {
    grid-column:
      1 / 2;
  }

  .rb-top-2 {
    grid-column:
      3 / 4;
  }

  .rb-top-3 {
    grid-column:
      4 / 6;
  }

  .rb-bottom-1 {
    grid-column:
      1 / 4;
  }

  .rb-bottom-2 {
    grid-column:
      4 / 6;
  }

  .footer-inner-bottom,
  .footer-logo-svg {
    grid-column:
      1 / 9;
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

  .grid {
    --columns: 4;
    --gap: 10px;
    --padding-x: 4vw;
    --padding-y: 4vw;

    grid-template-columns:
      repeat(4, minmax(0, 1fr));
  }

  .grid-lines::before {
    left:
      var(--padding-x);

    right:
      var(--padding-x);

    --col-width:
      calc(
        (100% - (3 * var(--gap))) / 4
      );

    --step:
      calc(
        var(--col-width) + var(--gap)
      );
  }


  /* TEXT */

  .paragraph {
    font-size:
      13px;

    line-height:
      14px;
  }

  .medium-title {
    font-size:
      clamp(29px, 8vw, 42px);

    line-height:
      .96;

    letter-spacing:
      -.045em;
  }

  .big-title {
    font-size:
      clamp(38px, 11vw, 58px);

    line-height:
      .9;

    letter-spacing:
      -.06em;
  }

  .big-big-title {
    font-size:
      clamp(48px, 14vw, 72px);

    line-height:
      .87;

    letter-spacing:
      -.065em;
  }

  .h4-title {
    font-size:
      clamp(27px, 8vw, 38px);

    line-height:
      .93;
  }

  .h5-title {
    font-size:
      clamp(21px, 6vw, 28px);

    line-height:
      .95;
  }

  .micro-nav-text-mask,
  .micro-button-text-mask {
    height:
      14px;

    line-height:
      14px;
  }

  .micro-nav-text-line,
  .micro-button-text-line {
    flex-basis:
      14px;

    height:
      14px;

    line-height:
      14px;
  }

  .micro-button-text-copy {
    font-size:
      13px;

    line-height:
      14px;
  }


  /* NAV */

  nav,
  .white-nav {
    padding:
      4vw;

    align-items:
      start;
  }

  nav > img,
  nav > a:first-child,
  .white-nav > img,
  .white-nav > a:first-child {
    grid-column:
      1 / 2;

    grid-row:
      1;
  }

  nav > a:first-child img,
  .white-nav > a:first-child img,
  nav > img,
  .white-nav > img {
    width:
      100%;

    max-width:
      56px;
  }

  nav ul,
  .white-nav ul {
    grid-column:
      2 / 4;

    grid-row:
      1;
  }

  .hour,
  .white-nav .hour {
    display:
      none;
  }

  .contacto-nav-button,
  .white-nav .contacto-nav-button {
    grid-column:
      4 / 5;

    grid-row:
      1;

    width:
      100%;

    min-width:
      0;

    bottom:
      6px;

    padding:
      8px;

    gap:
      8px;
  }

  .contacto-nav-button
  .cnb-inner {
    width:
      6px;

    height:
      6px;
  }


  /* HEADER */

  .desktop-header {
    height:
      100svh;

    min-height:
      620px;

    padding:
      var(--padding-y)
      var(--padding-x);
  }

  .hero-content {
    grid-column:
      1 / 5;

    grid-template-columns:
      subgrid;

    grid-template-rows:
      1fr auto auto;

    align-content:
      end;

    row-gap:
      18px;
  }

  .header-left-content {
    grid-column:
      1 / 5;

    grid-row:
      2;

    align-self:
      end;

    gap:
      18px;
  }

  .main-title,
  .footer-main-title {
    font-size:
      clamp(46px, 13vw, 68px);

    line-height:
      .87;

    letter-spacing:
      -.065em;
  }

  .main-title {
    margin-bottom:
      0;
  }

  .header-description {
    width:
      78%;

    max-width:
      330px;
  }

  .header-main-info-container {
    grid-column:
      1 / 5;

    grid-row:
      3;

    width:
      100%;

    height:
      104px;

    margin-top:
      12px;

    padding:
      8px;

    border-radius:
      8px;
  }

  .hmic-image-container {
    width:
      88px;

    height:
      88px;

    flex:
      0 0 88px;

    border-radius:
      7px;
  }

  .header-main-info-container p {
    width:
      100%;
  }

  .s-p-header-title {
    grid-column:
      1 / 5;

    grid-row:
      2;
  }

  .s-p-header-title
  .main-title {
    max-width:
      82%;
  }


  /* NEXT PROJECT EN HEADER */

  .next-project-card {
    display:
      flex;

    grid-column:
      1 / 5;

    grid-row:
      3;

    width:
      100%;

    height:
      104px;

    margin-top:
      12px;
  }

  .header-parallax-inner {
    top:
      -5%;

    height:
      110%;
  }


  /* HOME FIRST */

  .home-first-section {
    padding:
      14vw 4vw;

    row-gap:
      14vw;
  }

  .hfs-image-container {
    grid-column:
      1 / 5;

    height:
      58svh;

    min-height:
      420px;
  }

  .hfs-image-container img {
    width:
      100%;

    height:
      100%;

    right:
      auto;

    object-fit:
      cover;
  }

  .hfs-first-content {
    grid-column:
      1 / 5;

    height:
      auto;

    min-height:
      0;

    gap:
      14vw;
  }

  .hfs-first-content
  .title {
    margin-top:
      8vw;
  }

  .hfs-first-content
  .description {
    width:
      auto;

    margin-left:
      calc(25% + 5px);

    max-width:
      70%;
  }


  /* HOME SECOND */

  .home-second-section {
    padding:
      16vw 4vw;

    row-gap:
      0;
  }

  .home-second-section h3:nth-child(1),
.home-second-section h3:nth-child(2) {
  grid-column: 1 / 5;
  width: 100%;
  max-width: none;
  justify-self: stretch;
  text-align: left;
}

  .hss-info-content {
    grid-column:
      1 / 5;

    margin-top:
      16vw;

    row-gap:
      10vw;
  }

  .hss-info-content
  p:nth-child(1) {
    grid-column:
      1 / 3;
  }

  .hss-info-content
  p:nth-child(2) {
    grid-column:
      1 / 5;
  }

  .hss-info-content
  p:nth-child(3) {
    grid-column:
      1 / 5;

    max-width:
      86%;
  }


  /* HOME PROJECTS */

  .home-third-section {
    padding:
      0 4vw 16vw;

    row-gap:
      14vw;
  }

  .home-third-section
  .hpc-1 {
    grid-column:
      1 / 5;
  }

  .home-third-section
  .hpc-2 {
    grid-column:
      2 / 5;
  }

  .hpc-image-container,
  .hpc-image-container-3,
  .hpc-image-container-5 {
    height:
      auto;
  }

  .hpc-image-container img {
    display:
      block;

    width:
      100%;

    height:
      auto;
  }

  .hpc-info-container {
    margin-top:
      12px;
  }

  .home-projects-container h4 {
    margin-top:
      14px;
  }

  .home-projects-container h5 {
    margin-top:
      6px;
  }

  .hpc-title-arrow img {
    width:
      40px;
  }


  /* HOME CARDS */

  .home-fourth-section {
    padding:
      16vw 4vw;
  }

  .home-fourth-section
  .smart-title {
    grid-column:
      1 / 3;

    margin-bottom:
      10vw;
  }

  .hfs-cards-item-container {
    grid-column:
      1 / 5;

    display:
      grid;

    grid-template-columns:
      subgrid;

    height:
      auto;

    min-height:
      0;
  }

  .hfs-item-container,
  .hfs-item-1,
  .hfs-item-2,
  .hfs-item-3 {
    grid-column:
      1 / 5;

    height:
      auto;

    min-height:
      50svh;

    padding:
      7vw 5vw;

    transform:
      none !important;
  }

  .hfs-item-container
  + .hfs-item-container {
    margin-top:
      12px;
  }

  .hfs-info-container {
    margin-top:
      22vw;
  }

  .hfs-icon img {
    width:
      52%;
  }


  /* HOME FIFTH */

  .home-fifth-section {
    padding:
      16vw 4vw;

    row-gap:
      14vw;
  }

  .hfifs-left-info-container {
    grid-column:
      1 / 5;

    min-height:
      0;

    row-gap:
      16vw;
  }

  .hfifs-first-content-inner {
    grid-column:
      1 / 5;
  }

  .hfifs-first-content-inner
  .smart-title {
    grid-column:
      1 / 3;
  }

  .hfifs-first-content-inner
  .title {
    grid-column:
      1 / 5;

    margin-top:
      10vw;
  }

  .hfifs-bottom-info {
    grid-column:
      1 / 5;

    row-gap:
      10vw;
  }

  .hfifs-bottom-info
  .description {
    grid-column:
      1 / 4;
  }

  .hfifs-button {
    grid-column:
      3 / 5;

    width:
      100%;

    height:
      42px;

    bottom:
      0;
  }

  .hfifs-image-container {
    grid-column:
      1 / 5;

    height:
      70svh;

    min-height:
      480px;
  }


  /* PROJECTS PAGE */

  .projects-page-section {
    padding:
      12vw 4vw 16vw;
  }

  .projects-section-top-info {
    grid-column:
      1 / 5;

    margin-top:
      20vh;

    row-gap:
      10vw;
  }

  .projects-section-top-info h2 {
    grid-column:
      1 / 4;

    grid-row:
      1;
  }

  .projects-section-top-info
  .number {
    grid-column:
      4 / 5;

    grid-row:
      1;

    justify-self:
      end;
  }

  .projects-section-top-info
  .description {
    grid-column:
      2 / 5;

    grid-row:
      2;
  }

  .all-projects-container {
    grid-column:
      1 / 5;

    margin-top:
      14vw;

    row-gap:
      14vw;
  }

  .all-projects-container
  .home-projects-container,

  .all-projects-container
  .hpc-1,

  .all-projects-container
  .hpc-2,

  .all-projects-container
  .hpc-3,

  .all-projects-container
  .hpc-4,

  .all-projects-container
  .hpc-5,

  .all-projects-container
  .hpc-6 {
    grid-column:
      1 / 5;
  }

  .all-projects-container:nth-of-type(even)
  .home-projects-container:nth-child(2),

  .all-projects-container
  .hpc-2,

  .all-projects-container
  .hpc-4 {
    margin-left:
      calc(25% + 5px);
  }


  /* SINGLE PROJECT INTRO */

  .single-project-first-section {
    padding:
      24vw 4vw 18vw;

    row-gap:
      14vw;
  }

  .single-project-first-section
  .paragraph {
    grid-column:
      1 / 4;
  }

  .single-project-first-section
  .medium-title {
    grid-column:
      1 / 5;
  }


  /* SINGLE PROJECT GALLERY */

  .single-project-imgs {
    width:
      100%;

    padding:
      0 4vw;
  }

  .s-p-imgs-div {
    grid-column:
      1 / 5;

    row-gap:
      8vw;

    margin-top:
      8vw;
  }

  .s-p-imgs-div
  > .sp-projects-container,

  .sp-pr-cn-1,
  .sp-pr-cn-2,
  .sp-pr-cn-3,
  .sp-pr-cn-4,
  .sp-pr-cn-2-1,
  .sp-pr-cn-3-1,
  .sp-pr-cn-4-1,
  .sp-pr-cn-7,
  .sp-pr-cn-8,
  .sp-pr-cn-9,
  .sp-pr-cn-10,
  .sp-pr-cn-11,
  .sp-pr-cn-12,
  .sp-pr-cn-13,
  .sp-pr-cn-14,
  .sp-pr-cn-15,
  .sp-pr-cn-16,
  .sp-pr-cn-17,
  .sp-pr-cn-18,
  .sp-pr-cn-19 {
    grid-column:
      1 / 5 !important;
  }

  .s-p-imgs-div:has(
    > .sp-projects-container
    + .sp-projects-container
  )
  > .sp-projects-container {
    grid-column:
      1 / 4 !important;
  }

  .s-p-imgs-div:has(
    > .sp-projects-container
    + .sp-projects-container
  )
  > .sp-projects-container:nth-child(even) {
    grid-column:
      2 / 5 !important;
  }

  .s-p-imgs-div:has(
    > .sp-projects-container
    + .sp-projects-container
  )
  > .sp-projects-container:nth-child(n + 2) {
    margin-top:
      4vw;
  }

  .sp-projects-container img {
    display:
      block;

    width:
      100%;

    height:
      auto;
  }

  .sp-double-text,
  .sp-double-text-pt {
    grid-column:
      1 / 5;

    padding:
      14vw 0 16vw;
  }

  .sp-double-text-pt {
    padding-top:
      14vw;
  }


  /* PROJECT PAGINATION */

  .single-project-pagination {
    grid-column:
      1 / 5;

    padding:
      24vw 4vw 16vw;

    row-gap:
      12vw;
  }

  .sp-pagination-closing-text {
    grid-column:
      1 / 5;

    grid-row:
      1;

    max-width:
      86%;

    margin:
      0 0 12vw 0;
  }

  .sp-pagination-prev,
  .sp-pagination-next {
    grid-column:
      1 / 5;

    grid-template-columns:
      repeat(
        4,
        minmax(0, 1fr)
      );

    column-gap:
      var(--gap);
  }

  .sp-pagination-prev {
    grid-row:
      2;
  }

  .sp-pagination-next {
    grid-row:
      3;

    margin-top:
      8vw;
  }

  .sp-pagination-prev
  .sp-pagination-label,

  .sp-pagination-next
  .sp-pagination-label {
    grid-column:
      1 / 5;

    text-align:
      left;
  }

  .sp-pagination-prev
  .sp-pagination-image {
    grid-column:
      1 / 3;
  }

  .sp-pagination-prev
  .sp-pagination-info {
    grid-column:
      3 / 5;
  }

  .sp-pagination-next
  .sp-pagination-info {
    grid-column:
      1 / 3;

    justify-self:
      start;

    text-align:
      left;
  }

  .sp-pagination-next
  .sp-pagination-image {
    grid-column:
      3 / 5;
  }

  .sp-pagination-next
  .sp-pagination-number,

  .sp-pagination-next
  .sp-pagination-title,

  .sp-pagination-next
  .sp-pagination-roll-item {
    text-align:
      left;
  }

  .sp-pagination-title {
    font-size:
      clamp(34px, 10vw, 48px);
  }


  /* ESTUDIO */

  .estudio-first-section {
    padding:
      24vw 4vw 18vw;

    row-gap:
      14vw;
  }

  .estudio-first-section p {
    grid-column:
      1 / 4;
  }

  .estudio-first-section
  .h3-container {
    grid-column:
      1 / 5;
  }

  .estudio-img-2 {
    grid-column:
      1 / 5;
  }

  .estudio-p-2 {
    grid-column:
      2 / 5;

    margin-top:
      10vw;
  }

  .equipo-title {
    padding-top:
      20vw;
  }

  .n-e-left-text {
    grid-column:
      1 / 3;
  }

  .n-e-center-text {
    grid-column:
      4 / 5;

    justify-self:
      end;
  }

  .n-e-right-text {
    grid-column:
      1 / 5;

    text-align:
      left;

    margin:
      12vw 0 14vw;
  }


  /* TEAM */

  .equipo-hero-content {
    grid-column:
      1 / 5;

    grid-template-columns:
      subgrid;

    row-gap:
      9vw;

    padding-bottom:
      12vw;
  }

  .member-container-1,
  .member-container-3 {
    grid-column:
      1 / 3;
  }

  .member-container-2,
  .member-container-4 {
    grid-column:
      3 / 5;
  }

  .member-container-2,
  .member-container-3 {
    top:
      0;
  }

  .member-container-2,
  .member-container-4 {
    margin-top:
      10vw;
  }

  .member-info {
    align-items:
      flex-start;

    gap:
      8px;

    padding-top:
      5px;
  }

  .member-info .puesto {
    text-align:
      right;
  }

  .equipo-hero-last-container {
    padding-bottom:
      20vw;
  }

  .estudio-personas {
    grid-column:
      1 / 5;

    margin-bottom:
      10vw;
  }

  .detras-texto {
    grid-column:
      2 / 5;

    margin-bottom:
      10vw;
  }

  .bottom-estudio-info {
    grid-column:
      1 / 5;

    padding:
      18vw 0;

    row-gap:
      12vw;
  }

  .bottom-estudio-info
  .description {
    grid-column:
      1 / 4;
  }

  .bottom-estudio-info
  .hfifs-button {
    grid-column:
      3 / 5;
  }


  /* FOOTER MOBILE */

  footer {
    padding:
      0 4vw 0;
  }

  .inner-footer-top {
    grid-column:
      1 / 5;

    height:
      auto;

    min-height:
      0;

    row-gap:
      16vw;
  }

  .ift-left {
    grid-column:
      1 / 5;

    min-height:
      0;

    padding-bottom:
      12vw;

    justify-content:
      flex-start;
  }

  .ift-left::after {
    display:
      none;
  }


  /*
    El logo deja de ser absoluto en móvil.

    De esta forma:
    - empieza exactamente en el borde superior
    - no depende de la altura del viewport
    - nunca puede solaparse con el texto
  */

  .ift-left img {
    position:
      relative;

    top:
      -5px;

    left:
      auto;

    transform:
      none;

    align-self:
      center;

    display:
      block;

    width:
      82%;

    margin:
      0;
  }

  .ift-left-bottom {
    width:
      72%;

    margin-top:
      10vw;
  }

  .ift-right {
    grid-column:
      1 / 5;

    min-height:
      0;

    grid-template-columns:
      repeat(
        4,
        minmax(0, 1fr)
      );

    column-gap:
      var(--gap);
  }

  .ift-right::before {
    left:
      0;

    right:
      0;

    top:
      0;
  }

  .ift-right-top {
    grid-column:
      1 / 5;

    padding:
      14vw 0;
  }

  .ift-right-top::after {
    left:
      0;

    right:
      0;
  }

  .footer-main-title {
    width:
      100%;
  }

  .ift-right-bottom {
    grid-column:
      1 / 5;

    grid-template-columns:
      repeat(
        4,
        minmax(0, 1fr)
      );

    column-gap:
      var(--gap);

    padding-top:
      16vw;
  }

  .ift-rb-top,
  .ift-rb-top-top,
  .ift-rb-top-bottom,
  .ift-rb-bottom {
    grid-column:
      1 / 5;

    grid-template-columns:
      repeat(
        4,
        minmax(0, 1fr)
      );

    column-gap:
      var(--gap);
  }

  .ift-rb-top-top
  > .h4-title {
    grid-column:
      1 / 5;
  }

  .contacta-container {
    grid-column:
      1 / 5;

    margin-top:
      8vw;
  }

  .contacta-container img {
    width:
      42px;
  }

  .ift-rb-top-bottom {
    margin-top:
      12vw;

    row-gap:
      10vw;
  }

  .rb-top-1 {
    grid-column:
      1 / 3;
  }

  .rb-top-2 {
    grid-column:
      3 / 4;
  }

  .rb-top-3 {
    grid-column:
      4 / 5;
  }

  .top-opacity-text {
    margin-bottom:
      16px;
  }

  .ift-rb-bottom {
    padding:
      16vw 0 12vw;

    row-gap:
      10vw;
  }

  .rb-bottom-1 {
    grid-column:
      1 / 3;
  }

  .rb-bottom-2 {
    grid-column:
      3 / 5;
  }

  .footer-inner-bottom,
  .footer-logo-svg {
    grid-column:
      1 / 5;
  }

  .footer-inner-bottom {
    padding:
      8px 0;
  }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

  .grid {
    --padding-x:
      4.5vw;

    --gap:
      8px;
  }

  nav,
  .white-nav {
    padding:
      4.5vw;
  }

  nav ul,
  .white-nav ul {
    grid-column:
      2 / 4;
  }

  .contacto-nav-button,
  .white-nav
  .contacto-nav-button {
    padding:
      7px;
  }

  .contacto-nav-button
  .micro-button-text-copy,

  .contacto-nav-button
  .micro-button-text-original {
    font-size:
      12px;
  }

  .header-description {
    width:
      90%;
  }

  .header-main-info-container {
    height:
      96px;
  }

  .hmic-image-container {
    width:
      80px;

    height:
      80px;

    flex-basis:
      80px;
  }

  .hfs-image-container {
    height:
      52svh;
  }

  .hfifs-image-container {
    height:
      62svh;

    min-height:
      420px;
  }

  .member-info {
    display:
      block;
  }

  .member-info
  .puesto {
    text-align:
      left;

    margin-top:
      3px;
  }

  .sp-pagination-title {
    font-size:
      clamp(31px, 9.5vw, 42px);
  }

}
/* =========================================================
   FIRST VISIT PRELOADER
========================================================= */

.site-preloader{
  position: fixed;
  inset: 0;
  z-index: 9999;

  width: 100%;
  height: 100svh;

  padding:
    var(--padding-y)
    var(--padding-x);

  background:
    #050505;

  color:
    #f5f5f2;

  overflow: hidden;

  align-items: end;

  will-change:
    clip-path;
}


/*
  El loader solo existe visualmente cuando
  el script del <head> ha confirmado que es
  la primera visita al index.
*/

html:not(.has-first-preloader)
.site-preloader{
  display: none;
}


html.has-first-preloader,
html.has-first-preloader body{
  overflow: hidden;
}


html.has-first-preloader body{
  pointer-events: none;
}


.site-preloader::after{
  content: "";

  position: absolute;
  left: 0;
  bottom: 0;

  width: 100%;
  height: 1px;

  background:
    rgba(255,255,255,.18);

  pointer-events: none;
}


.preloader-brand{
  grid-column: 1 / 7;

  display: flex;
  align-items: flex-end;

  overflow: visible;

  font-family: "Inter", sans-serif;

  font-size: clamp(58px, 8vw, 150px);
  line-height: 1;

  font-weight: 500;

  /* IMPORTANTE:
     ya no usamos letter-spacing negativo
     porque cada letra está dentro de su
     propia máscara y podía cortar el glifo */
  letter-spacing: 0;

  white-space: nowrap;
}


.preloader-letter-mask{
  display: inline-block;

  overflow: hidden;

  /*
    Damos aire real alrededor del glifo
    para que no se corte ni arriba,
    ni abajo, ni lateralmente.
  */
  padding:
    .08em
    .035em
    .12em
    .035em;

  margin-top:
    -.08em;

  margin-bottom:
    -.12em;
}


/*
  Reproducimos el tracking negativo
  desplazando las máscaras entre sí,
  en lugar de deformar la caja tipográfica.
*/
.preloader-letter-mask:not(:last-child){
  margin-right: -.075em;
}


/*
  Especialmente importante para la S.
*/
.preloader-letter-mask:last-child{
  padding-right: .14em;
}


.preloader-letter{
  display: block;

  line-height: 1;
  letter-spacing: 0;

  will-change: transform;
}

.preloader-label-mask{
  grid-column: 7 / 10;

  align-self: end;

  overflow: hidden;

  padding-bottom:
    2px;
}


.preloader-label{
  display: block;

  font-family:
    "Inter",
    sans-serif;

  font-size:
    15px;

  line-height:
    15px;

  font-weight:
    400;

  opacity:
    .6;

  will-change:
    transform;
}


.preloader-counter{
  grid-column: 10 / 13;

  align-self: end;
  justify-self: end;

  overflow: hidden;

  font-family:
    "Inter",
    sans-serif;

  font-size:
    clamp(48px, 6vw, 110px);

  line-height:
    .82;

  font-weight:
    400;

  letter-spacing:
    -.06em;

  font-variant-numeric:
    tabular-nums;
}


.preloader-counter-number{
  display: block;

  will-change:
    transform;
}


.preloader-progress{
  position: absolute;

  left:
    var(--padding-x);

  right:
    var(--padding-x);

  bottom:
    18px;

  height:
    1px;

  background:
    rgba(255,255,255,.14);

  overflow: hidden;
}


.preloader-progress-line{
  display: block;

  width: 100%;
  height: 100%;

  background:
    #f5f5f2;

  transform:
    scaleX(0);

  transform-origin:
    left center;

  will-change:
    transform;
}

html.has-first-preloader .preloader-letter,
html.has-first-preloader .preloader-label{
  visibility: hidden;
}


@media (max-width: 1100px){

  .preloader-brand{
    grid-column:
      1 / 5;
  }

  .preloader-label-mask{
    grid-column:
      5 / 7;
  }

  .preloader-counter{
    grid-column:
      7 / 9;
  }

}


@media (max-width: 767px){

  .site-preloader{
    align-content:
      end;

    row-gap:
      18px;
  }

  .preloader-brand{
    grid-column:
      1 / 5;

    font-size:
      clamp(52px, 18vw, 90px);
  }

  .preloader-label-mask{
    grid-column:
      1 / 3;

    grid-row:
      2;
  }

  .preloader-counter{
    grid-column:
      3 / 5;

    grid-row:
      2;

    font-size:
      clamp(42px, 14vw, 72px);
  }

  .preloader-progress{
    bottom:
      12px;
  }

}


@media (prefers-reduced-motion: reduce){

  .preloader-progress-line{
    transform:
      scaleX(1);
  }

}

.preloader-brand{
  overflow: visible;
  padding-right: .12em;
}

.preloader-letter-mask:last-child{
  padding-right: .08em;
  margin-right: -.08em;
}