:root {
  --duracion-encogimiento: 0.7s;
  --curva-encogimiento: cubic-bezier(0.65, 0, 0.35, 1);
}



/* ==========================================================
   HEADER
   ========================================================== */

.site-header {
  width: 100%;
  position: fixed;
  z-index: 21;
  overflow: hidden;
  height: auto;
  background-color: var(--color-white);
  padding: 0px 0; top: 0px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  transition:
    height var(--duracion-encogimiento) var(--curva-encogimiento),
    padding var(--duracion-encogimiento) var(--curva-encogimiento);

}


/* ==========================================================
   CONTENEDOR HEADER
   ========================================================== */

.site-header__container {
  width: 100%;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2%;
  box-sizing: border-box;
}


/* ==========================================================
   LOGO
   ========================================================== */

.site-header__logo {
  width: 100%;
  display: flex;
  justify-content: center;
  pointer-events: auto;
  margin-top: 1px;
  transition:
    width var(--duracion-encogimiento) var(--curva-encogimiento);
}

.site-header__logo-link {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateY(110%);
  padding-top: 32px;
  box-sizing: border-box;
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    padding-top var(--duracion-encogimiento) var(--curva-encogimiento);
}

.site-header__logo-link img {
  width: 70%;
  height: auto;
  max-height: 80vh;
  display: flex;
  transition:
    max-height var(--duracion-encogimiento) var(--curva-encogimiento),
    width var(--duracion-encogimiento) var(--curva-encogimiento);
}


/* ==========================================================
   ANIMACIÓN DEL LOGO
   ========================================================== */

/* Logo sube */
.site-header__logo-link--visible {
  transform: translateY(0);
}

/* Logo se achica */
.site-header__logo--shrunk {
  width: auto;
}

.site-header__logo-link--shrunk {
  padding-top: 0;
}

.site-header__logo-link--shrunk img {
  width: 100%;
  max-height: 20px;
}


/* ==========================================================
   NAV
   ========================================================== */
.site-header__navigation {
  display: none;
  opacity: 0;
  transition:
    opacity 0.3s ease-in-out;
}

/* Sin intro (segunda página de la visita): todo aparece al momento */
.sin-intro .site-header,
.sin-intro .site-header *,
.sin-intro .site-main,
.sin-intro footer {
  transition: none !important;
}




/* ==========================================================
   MAIN
   ========================================================== */

.site-main {
  width: 100%;
  height: auto;
  flex-shrink: 0;
  position: relative;
  z-index: 3;
  display: none;
  opacity: 0;
  transform: translateY(60px);
  transition:
    opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}


/* Main aparece */
.site-main--visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
}


/* Espacio cuando el header ya es fixed */
.site-main--finished {
  margin-top: 0px;
}


/* ==========================================================
   HEADER FIXED
   ========================================================== */

.site-header--fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
}






















/* ==========================================================
   MENU
   ========================================================== */
.site-header__navigation-group{display: flex; align-items: center;}
.site-header__navigation-group ul{display: flex; gap: 50px; align-items: center; transition: 0.5s; list-style:none; padding:0; margin:0;}
.site-header__navigation-group ul li a{ width: max-content; font-family: var(--font-regular); display: flex; align-items: center;
position: relative;font-size: 14px; line-height: 15px; letter-spacing: 2px; color: var(--color-black);
text-transform: uppercase;}


/*---------------------------------------*/
/* ---------- BOTONES HEADER ANIMACION*/
/*---------------------------------------*/

.animated-hover a::before,
.animated-hover li > a::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1.5px;
    top: 16px;
    background-color: var(--color-black);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease, width 0.3s ease;
}
.animated-hover a:hover::before,
.animated-hover li:hover a::before {
    transform: scaleX(1); width: 100%; transform-origin: left;}



@media (min-width:0px) and (max-width:720px){
  .animated-hover li > a::before {top: 28px;}
}
@media (min-width:0px) and (max-width:960px){
  .site-header__navigation-group ul{gap: 28px;}
}




/* Enlace activo: página actual */
.animated-hover li.current-menu-item > a::before,
.animated-hover li.current_page_item > a::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Mantener la animación al pasar el ratón */
.animated-hover a:hover::before,
.animated-hover li:hover > a::before {
    transform: scaleX(1);
    transform-origin: left;
}


/* ==========================================================
   BURGER
   ========================================================== */
 .site-header__burger {
    width: 25px; 
    height: 25px; 
    display: none; 
    position: relative; 
    cursor: pointer; 
    z-index: 2;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.site-header__burger-line {
    width: 25px; 
    min-height: 1.5px;
    background-color: var(--color-black); 
    transition: transform 0.4s ease, margin 0.4s ease, background-color 0.4s ease; 
    border-radius: 2px; 
    transform-origin: center;
}
.site-header__burger-line:last-child {
    margin-top: 6px;
}
.site-header__burger--active .site-header__burger-line:first-child {
    margin-bottom: -2px;
    transform: rotate(45deg);
}
.site-header__burger--active .site-header__burger-line:last-child {
    margin-top: 0;
    transform: rotate(-45deg);
}
.site-header__burger:hover .site-header__burger-line:first-child, 
.site-header__burger:hover .site-header__burger-line:last-child {
    background-color: var(--color-black);
}

@media (min-width:0px) and (max-width:790px){
  .site-header__burger{ display: flex;}
  .u-hidden-mobile{display: none;}
}








    
/*me/*menú dropdown*/
.site-mobile-menu__panel{width:100%; height:100%; position:fixed; overflow: hidden; background-color: var(--color-white); mix-blend-mode:none !important; top:-100%; transition: 0.6s; z-index: 20; overflow-y: scroll !important; display:flex; align-content:space-between; flex-wrap:wrap;}
.site-mobile-menu__container{width: 100%; height: 100%; min-height: 600px; overflow: hidden; position: relative; display: flex; align-content: space-between; flex-wrap: wrap; padding: 100px 5% 50px 5%;}

.site-mobile-menu__group{height: auto; position:relative; width: 100%; display: flex; flex-wrap: wrap;}
.site-mobile-menu__group ul{margin-bottom:30px; width: 100%;}
.site-mobile-menu__group ul li{width: max-content;}
.site-mobile-menu__group ul li a{color: var(--color-black); position: relative; font-size:30px; line-height: 50px; font-family: var(--font-light); text-transform: uppercase;}
.site-mobile-menu__group:nth-child(2) ul li a{font-size:24px; line-height: 36px;  font-family: var(--font-light); text-transform: lowercase; color: var(--color-black); display: flex; align-items: center;}

.site-mobile-menu__group .linea-ins {
    position: relative;
    left: 0;
    width: 10px;
    height: 2px;
    background-color: var(--color-black);
    transition: transform 0.3s ease;
    margin: 0px 4px;
}


/*------------------MENU -MOBILE ANIMACION*/
/*hover boton*/
.site-mobile-menu__group ul li > a::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1.5px;
    background-color: var(--color-black);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease, width 0.3s ease;
    top: 35px;
}

/*hover boton - inferior*/
.site-mobile-menu__group:nth-child(2) ul li > a::before {top:35px; height: 1.5px;}
.site-mobile-menu__group ul li:hover a::before {
    transform: scaleX(1);
    width: 100%;
    transform-origin: left;
    bottom: 10px;
}






/*---------------------------------------*/
/* MENÚ MOBILE - ENLACE ACTIVO */
/*---------------------------------------*/

/* Enlace de la página actual */
.site-mobile-menu__group li.current-menu-item > a::before,
.site-mobile-menu__group li.current_page_item > a::before,
.site-mobile-menu__group li.current-menu-ancestor > a::before,
.site-mobile-menu__group li.current_page_ancestor > a::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Segundo grupo: mantener su posición */
.site-mobile-menu__group:nth-child(2) li.current-menu-item > a::before,
.site-mobile-menu__group:nth-child(2) li.current_page_item > a::before,
.site-mobile-menu__group:nth-child(2) li.current-menu-ancestor > a::before,
.site-mobile-menu__group:nth-child(2) li.current_page_ancestor > a::before {
    top: 30px;
}

/* Primer grupo */
.site-mobile-menu__group:first-child li.current-menu-item > a::before,
.site-mobile-menu__group:first-child li.current_page_item > a::before,
.site-mobile-menu__group:first-child li.current-menu-ancestor > a::before,
.site-mobile-menu__group:first-child li.current_page_ancestor > a::before {
    top: 35px;
}







/*animación menu dropdown*/
    .site-mobile-menu__panel--open{top:0%;}

/* -------------------------------------SCREEN OVERLAY*/
    .site-mobile-menu__overlay{display:none; opacity:0; cursor:pointer; transition:0.9s; top: 0px; position: absolute; width: 100vw; height: 100vh; background-color: var(--color-black);}
    .site-mobile-menu__overlay--visible{display:block; opacity: 0.85; transition:0.9s;}

/* -------------------------------------STOP SCROLL -> CLIK IN THE BURGER*/
    body.has-open-mobile-menu {
    overflow: hidden;
}

    @media (min-width:0px) and (max-width:790px){
        .site-header__burger{margin-left: 16px; display: flex;}
        .u-hidden-mobile{display: none;}
    }