

:root {
  --wormy:#E0B25B;
  --residue:#5D5139;
  --leaf:#97924E;
  --pig:#D88129;
  --font-color:#464137;
  --bg-alt:#f4ebd9;
  --font:"Brother 1816";
  --font-alt:"Brother 1816 Printed";
  font-size: 1.6rem;
  font-family:var(--font) ;
  color: var(--font-color);
}

/* 1. Use a more-intuitive box-sizing model */
*, *::before, *::after {
  box-sizing: border-box;
}

/* 2. Remove default margin */
*:not(dialog) {
  margin: 0;
}

/* 3. Enable keyword animations */
@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

body {
  /* 4. Increase line-height */
  line-height: 1.5;
  /* 5. Improve text rendering */
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

/* 6. Improve media defaults */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

/* 7. Inherit fonts for form controls */
input, button, textarea, select {
  font: inherit;
}

/* 8. Avoid text overflows */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* 9. Improve line wrapping */
p {
  text-wrap: pretty;
  font-size: 0.9rem;
}
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

/*
  10. Create a root stacking context
*/
#root, #__next {
  isolation: isolate;
}

/*
  NAV
*/

.nav-container {
  --height:90px;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: var(--height);
  overflow: hidden;
  z-index: 999;
}

body[data-nav_visibility="visible"] .nav-container::before {
    background-color: rgba(255 255 255 / 0.7) !important;
    backdrop-filter: blur(12px);
  
  }
  .nav-container::before {
    content: "";
    position: absolute;
    width: 98%;
    height: 90%;
    background: transparent;
    transition: background-color 300ms ease;
    border-radius: 42px;
  }

nav:not(:where(.navigation)) {
  width: 90%;
  height: 100%;
  transform: translateY(-100%);
  transition: transform 250ms ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

body[data-nav_visibility="visible"] nav:not(:where(.navigation)){
  transform: translateY(0);
}

body[data-is_nav_open="open"] nav {
  transform: translateY(0) !important;
}

nav .nav-logo {
  display: flex;
  gap: 0.2rem;
  height: 100%;
  box-sizing: border-box;
  padding: calc(var(--height)/100 *15) 0;
  align-items: center;
  width: fit-content;
  & img {
    display: block;
    height: 100%;
    width: fit-content;
    &:first-child {
      margin-right: 5%;
    }
  }
}

.nav-background {
  position: fixed;
  background-color: rgb(0 0 0 / 0.2);
  backdrop-filter: blur(24px);
  opacity: 0;
  width: 100vw;
  height: 100vh;
  inset: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
  & > div {
    width: 100%;
    height: 100%;
    position: relative;
    display: grid;
    place-items: center;
    & .nav-background-path {
      height: 100%;
      width: fit-content;
      stroke-width: 0;
    }
    & .nav-background-worm {
      width: 75px;
      height: fit-content;
      position: absolute;
    }
  }
}
body[data-is_nav_open="open"]  {
  overflow: hidden;
}
body[data-is_nav_open="open"] .nav-background {
  opacity: 1;
  pointer-events: all;
}
.nav-menu {
position: absolute;
right: 0;
top: 0;
}
.menu-button-container{
  --width: 40px;
  --padding: 6px;
  --cubic:cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  gap: 6px;
  position: relative;
  & > div {
    height: calc( var(--width) + (var(--padding) * 2) );
    width: calc( var(--width) + (var(--padding) * 2) );
      opacity: 0;

    &:nth-child(1){
      background-color: var(--leaf);
       
        transition: opacity 250ms 100ms var(--cubic), clip-path 300ms var(--cubic);
    }
    &:nth-child(2){
      background-color: var(--wormy);
      transition: opacity 375ms 125ms var(--cubic), clip-path 425ms var(--cubic);
    }
    &:nth-child(3){
      background-color: var(--pig);
      
      transition:opacity 500ms 250ms var(--cubic), clip-path 550ms var(--cubic);;
      
    }
  }
}

.menu-button-container:has(.menu-button:hover), body[data-is_nav_open="open"] .menu-button-container {
  & > div {
    opacity: 1 ;
    &:nth-child(1){
      background-color: var(--leaf);
       transition:opacity 500ms 250ms var(--cubic), clip-path 550ms var(--cubic);;
    }
    &:nth-child(2){
      background-color: var(--wormy);
      transition: opacity 375ms 125ms var(--cubic), clip-path 425ms var(--cubic);
    }
    &:nth-child(3){
      background-color: var(--pig);
      

       transition: opacity 250ms 100ms var(--cubic), clip-path 300ms var(--cubic);
    }
  }
  & .menu-button {
    rotate: 180deg;
    cursor: pointer;
    
    outline-offset: 3px;
  }
}

body[data-is_nav_open="open"] .nav-menu{
  scale: 1;
  opacity: 1;
  pointer-events: all;
  clip-path: inset(0% round 4px );
}
.nav-menu {
  --cubic:cubic-bezier(0.34, 1.56, 0.64, 1);;
  transition:opacity 150ms var(--cubic), scale 150ms var(--cubic),clip-path 250ms var(--cubic);
  position: fixed;
  position-anchor: --button;
  top: calc(20px + anchor(bottom));
  right: anchor(right);
  z-index: 99999;
  background-color: white;
  box-sizing: border-box;
  padding: 20px 10px;
  scale: 0.95;
  opacity: 0;
  pointer-events: none;
  clip-path: inset(10% round 12px );

  list-style: none;
  display: flex;
  flex-flow: column nowrap;
  width: min(90%,500px);
  gap: 6px;
  & a {
    border-radius: 4px;
    text-decoration: none;
    width: 100%;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: start;
    box-sizing: border-box;
    padding: 8px 12px;
    position: relative;
    text-transform: uppercase;
    color: var(--font-color);
    &:hover {
      &::before {
        opacity: 1;
        transform: scaleX(1) scaleY(1);
      }
    }
    &::before {
      display: block;
      width: 100%;
      height: 100%;
      background-color: var(--leaf);
      position: absolute;
      content: "";
      z-index: -1;
      inset: 0;
      border-radius: 4px;
      transform: scaleY(0.8) scaleX(0.98);
      opacity: 0;
      transition: opacuty 20ms ease,transform 150ms ease;
    }
    & div {
      box-sizing: border-box;
      padding: 12px;
      border-radius: 4px;
      background-color: var(--wormy);
      & svg {
        width: 36px;
        height: fit-content;
        display: block;
      }
      &:nth-child(4) {
        background-color: red;
      }
    }
    & span {
      font-size: 0.8rem;
    }
  }
}

.menu-button {
  anchor-name: --button;
  margin-left: var(--padding);
  outline:2px solid white;
  transition: rotate 300ms cubic-bezier(0.34, 1.56, 0.64, 1),outline-offset 300ms var(--cubic);
  
  --height: calc(var(--width) * 0.866);
  width: var(--width);
  height: var(--width);         
  border: unset;
  display: grid;
  place-items: center;
  box-sizing: content-box;
  padding: 6px;
  border-radius: 50%;
  background-color: white;

  /* Contenedor del triángulo */
  & > div {
    /* AQUÍ ESTÁ EL CAMBIO: Reducimos la caja al 60% para que los puntos se junten */
    width: calc(var(--width) * 0.5);
    height: calc(var(--height) * 0.5);
    
    position: relative;
    transform: translateY(-16.66%);

    /* Los 3 circulitos */
    & > div {
      --side: calc(var(--width) * 0.38); 
      position: absolute;
      width: var(--side);       
      height: var(--side);
      z-index: 10;
      background-color: white; 
      border-radius: 50%;  
      transform: translate(-50%, -50%);
    }

    /* POSICIONES IMPORTANTES */
    & > div:nth-child(1) { top: 0; left: 50%; background-color: var(--leaf); }       /* Punto de arriba */
    & > div:nth-child(2) { top: 100%; left: 100%; background-color: var(--wormy); }   /* Punto de abajo derecha */
    & > div:nth-child(3) { top: 100%; left: 0; background-color: var(--pig); }      /* Punto de abajo izquierda */
  }
}
.cta {
  box-sizing: border-box;
  padding: 0.4rem 1.4rem;
  background-color: var(--pig);
  width: fit-content;
  border-radius: 0.1rem;
  text-decoration:  none;
  text-transform: uppercase;
  font-size: clamp(0.65rem, 0.592rem + 0.256vw, 0.9rem);
  color: white;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  & span {
    position: relative;
    z-index: 2;
  }
  & > div {
    --easing:cubic-bezier(.95,.05,.8,.04);
    width: 200%;
    height: 200%;
    position: absolute;
    left: -50%;
    z-index: 0;
    top: -50%;
    transition: clip-path 600ms;
    transition-timing-function: var(--easing);
    clip-path:ellipse(32.45% 25.09% at 49.6% 100.88%);
    will-change: clip-path;
  }
  &:hover > div {
    clip-path: ellipse(50.04% 110.49% at 49.6% 100.88%);
    &.cta-bg-1 {
      transition-delay: 170ms;

    }
    &.cta-bg-2{
      transition-delay: 35ms;
    }
  }
  & .cta-bg-1 {
    transition-delay: 70ms;
    background-color: var(--leaf);
    z-index:2;
  }
  & .cta-bg-2{
    transition-delay: 170ms;
    background-color: var(--wormy);
    z-index: 1;
  }
}

.hero-wrapper {
  width: 100%;
  height: 100vh;
  position: relative;
 
}

.hero {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  height: 100vh; 
  
  box-sizing: border-box;
  padding: 8vh 5vw;
  padding-top: 4vh;
  display: flex;
  flex-flow: column nowrap;
  overflow: hidden;
}

.hero-header {
  width: 100%;
  height: 8vh;
  z-index: 10;
  margin-bottom: 2vh;
  display: flex;
  justify-content: space-between;
  align-items: center;
  & img {
    display: block;
     height: 100%;
      width: fit-content;
      object-fit: contain;
  }
  & div {
    height: 100%;
    display: flex;
    gap: 0.2rem;
  }
}

.hero-content {
  height: 100%;
  display: flex;
  flex-flow: column nowrap;
  justify-content: end;
  /* max-width: clamp(
    50vw, 
    calc(80vw - 30vw * tan(atan2(100vw - 1450px, 470px))), 
    80vw
  ); */
  max-width: 50%;
  position: relative;
  z-index: 10;
}

.hero-title {
  font-family:var(--font-alt);
  font-size: clamp(1rem, 0.769rem + 1.026vw, 2rem);
  line-height: 205%;
  text-transform: uppercase;
  
  &>h1:nth-child(1) {
    font-weight: 800;
  }
  &>h1:nth-child(2) {
    font-weight: 350;
    font-style: italic;
  }
  &>h1:nth-child(3) {
    font-weight: 500;
  }
}

.hero-content > p {
  margin: 4vh 0;
  max-width: 600px;
}

.hero-content > ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-flow: column nowrap;
  gap: 0.2rem;
  margin-bottom: 2.5vh;
  & > li {
    & h4 {
      font-family: var(--font-alt);
      font-weight: 400;
      font-size: 0.9rem;
    }
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    gap: 0.2rem;
    text-transform: uppercase;
  }
}

.hero-background {
  position: absolute;
  aspect-ratio: 1/1;
  /* height: clamp(
    70%, 
    calc(70% + 30% * tan(atan2(100vw - 1450px, 470px))), 
    100%
  ); */
  height: 100%;
  display: grid;
  right: 0;
  bottom: 0;
  grid-template-areas: 
  "b1 b2 b3 b4 b5 b6"
  "c1 c2 c3 c4 c5 c6"
  "d1 d2 d3 d4 d5 d6"
  "e1 e2 e3 e4 e5 e6"
  "f1 f2 f3 f4 f5 f6"
  "g1 g2 g3 g4 g5 g6"
;
}

@media (aspect-ratio < 1/1) {
  .hero-background{
    height: unset;
    width: 100%;
  }
  .hero-content {
    justify-content: start;
    margin-top: 8vh;
  }
}
.hero-background-item {
  width: 100%;
  height: 100%;
  
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero-background-item-1 {
  grid-area: g1;
  background-color: var(--wormy);
}

.hero-background-item-2 {
  grid-area: g2;
  
}

.hero-background-item-3 {
  grid-area: g3;
  background-image: url("./public/img/hero_8.webp");

}

.hero-background-item-4 {
  grid-area: g4;
  border-radius: 100%;
  background-color: var(--residue);
}

.hero-background-item-5 {
  grid-area: g5;
  background-color: var(--pig);
}

.hero-background-item-6 {
  grid-area: g6;
  background-image: url("./public/img/hero_3.webp");
}

.hero-background-item-8 {
  grid-area: f2;
  background-color: var(--leaf);
}

.hero-background-item-9 {
  grid-area: f3;
  background-image: url("./public/img/hero_6.webp");
}

.hero-background-item-10 {
  grid-area: f4;
  background-color: transparent;
}

.hero-background-item-11 {
  grid-area: f5;
  background-image: url("./public/img/hero_4.webp");
}

.hero-background-item-12 {
  grid-area: f6;
  background-color: rgb(128 128 128 / 0.2);
  border-radius: 100%;
}

.hero-background-item-13 {
  grid-area: e2;
  border-radius: 100%;
  background-color: var(--pig);
}

.hero-background-item-14 {
  grid-area: e3;
  background-color: transparent;
}

.hero-background-item-15 {
  grid-area: e4;
  background-image: url("./public/img/hero_7.webp");
}

.hero-background-item-16 {
  grid-area: e5;
  background-image: url("./public/img/hero_5.webp");
}

.hero-background-item-17 {
  grid-area: e6;
  background-image: url("./public/img/hero_2.webp");
}

.hero-background-item-18 {
  grid-area: d5;
  border-radius: 100%;
  background-color: var(--residue);
}

.hero-background-item-19 {
  grid-area: d6;
  border-radius: 100%;
  background-color: var(--wormy);
}
.hero-background-item-20 {
  grid-area: c6;
  background-image: url("./public/img/hero_1.webp");
}

section {
  --section-padding-y:8vh;
  --section-padding-x:5vw;
  width: 100%;
  height: fit-content;
  position: relative;
}
.section-content {
  margin: 0 auto;
  width: 100%;
  max-width: 1920px;
  box-sizing: border-box;
  padding: var(--section-padding-y)  var(--section-padding-x);
}

section:has( .intro) {
  background-color: var(--bg-alt);
  position: relative;
}


.intro-background {
  width: 100%;
  height: 100vh;
  position: absolute;
  left: 0;
  background-color: var(--bg-alt);
  
  top: -100vh;
  z-index: 10;
  will-change: clip-path;
}

.intro-logo {
  width: 100%;
  left: 0;
  display: grid;
  place-items: center;
  margin: 0 auto;
  position: absolute;
  
  z-index: 15;
  clip-path: none !important;
  & img {
    --side:min(80%,400px);;
    width: var(--side);
    height: var(--side);
    object-fit: contain;
  }
}

.intro-text {
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
  margin-top: 12vh;
  z-index: 10;
  & h2 {
    color: var(--residue);
    margin-top: 0.35rem;
  }
  & h5 {
    color:var(--leaf)
  }
  & p {
    max-width: 1200px;
    margin-top: 1.2rem;
  }
}

.title {
  font-size: clamp(1.2rem, 0.785rem + 1.846vw, 3rem);
  line-height: 100%;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--pig);
}

.subtitle {
  line-height: 130%;
  text-transform: uppercase;
  font-size: clamp(1rem, 0.942rem + 0.256vw, 1.25rem);
}

.pretitle {
  line-height: 130%;
  text-transform: uppercase;
  font-size: 1.1rem;
}

.timeline {
  --gap:140px;
  --padding:120px;
  max-width: 1400px;
  margin: 8vh auto;
  margin-bottom: 0;
  position: relative;
  box-sizing: border-box;
  padding: 220px 0;
}

.timeline-line-container {
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  display: grid;
  place-items: center;
}

.timeline-line {  
  height: 100%;
  width: var(--gap);
  
  position: relative;
  & .line-wrapper {
    height: 100%;
    width:100%;
    position: absolute;
    display: grid;
    place-items: center;

    & .lines {
      height: 100%;
      width: 2px;
      background-color: var(--wormy);
      position: relative;
      z-index:0;
      &::before {
        position: absolute;
        width: 21px;
        left: -9px;
        height: 21px;
        top: -10px;
        content:"";
        display: block;
        background-color: var(--wormy);
        border-radius: 100%;
      }
      &::after {
        position: absolute;
        width: 21px;
        left: -9px;
        height: 21px;
        bottom: -10px;
        content:"";
        display: block;
        background-color: var(--wormy);
        border-radius: 100%;
      }
    }
  }
}

.timeline-worm {
  --height:calc(var(--padding) * 1.8);
  height: var(--height);
  margin: 0 auto;
  position: sticky;
  top: calc(50vh - var(--height) / 2);
  z-index: 99;
}

.timeline-card.r-l {
  & .media {
    order: -1;
  }
  & .line {
    & hr {
      left: unset;
      right: 0;
    }
  }
  & .header {
    justify-content: end;
    & > h5:first-child {
      order: 2;
    }
    & > h5:last-child {
      text-align: end;
      
    }
  }
  & .dot, & .dot-background {
    right: unset;
    left: calc((var(--gap) / -2) - (var(--side) / 2));
  }
  & .info > h4 {
    text-align: right;
  }
  & .dot svg {
    transform: scaleX(-1) translateX(8%) !important;
  }
}

.timeline-card {
  --color:var(--pig);
  --color-bg:#edb883;
  box-sizing: border-box;
  padding: 6vh 0;
  display: flex;
  gap:var(--gap);
  height: fit-content;
  align-items: center;
  & > * {
    flex: 1 1;
  }
}

.timeline-card:has( .change-color) {
  --color:var(--leaf);
  --color-bg:#c6c176;
  & .dot .dot-svg-wrapper {
    & .after-worm {
      opacity: 0;
    }
    & .before-worm {
      opacity: 1;
      transform: translateX(0%) translateY(-5%) !important;
    }
  }
}

.timeline-card .media {
  min-height: 520px;
  aspect-ratio: 3/2;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  & video {
    position: absolute;
    width: 100%;
    height: 130%;
    top: -30%;
    transform: translateX();
    max-width: unset;
    object-fit: cover;
    aspect-ratio: unset !important;
  }
}

.timeline-card .text {
  &  .header {
    display: flex;
    align-items: end;
    gap: 0.6rem;
    & > h5:first-child {
      display: grid;
      place-items: center;
      font-size: 1.7rem;
      line-height: 80%;
      width: 2rem;
      height: 2rem;
      background-color: var(--color);
      transition: background-color 300ms ease;
      color: var(--bg-alt);
      aspect-ratio: 1/1;
    }
    & > h5:last-child {
      text-transform: uppercase;
      font-size: 0.98rem;
      color: var(--residue);
      line-height: 110%;
      padding-bottom: 0.25rem;
    } 
  }
  & .info {
    & h4 {
      font-size: clamp(1.4rem, 1.308rem + 0.41vw, 1.8rem);
      line-height: 100%;
      text-transform: uppercase;
      margin: 0.8rem 0;
      margin-top: 1.4rem;
      color: var(--leaf);
    }
  }
}

.dot .dot-svg-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  & svg {
    position: absolute;
    inset: 0;
     width: 72%;
  height: 72%;
  margin-left: 12%;
  margin-top: 12%;
    scale: 0.6;
    transform: translateX(10%);
    transition: opacity 600ms ease;
    & path {
        fill: var(--bg-alt);
       }
  }
  & .before-worm {
    opacity: 0;
  }
}


.timeline-card .line {
  
  --height:1px;
  --side: 50px;
  width: 100%;
  position: relative;
  height: var(--height);
  & hr {
    transition: border-color 300ms ease;
    width: calc(100% + (var(--gap) / 2));
    left: 0;
    top: 0;
    border:var(--height) solid var(--color);
    position: absolute;
  }
  & .dot {
    border-radius: 100%;
    position: absolute;
    width: var(--side);
    height: var(--side);
    right: calc((var(--gap) / -2) - (var(--side) / 2));
    top: calc((var(--height) / 2) - (var(--side) / 2));
    transition: background-color 300ms ease;
    background-color: var(--color);
    display: grid;
    place-items: center;
    background-clip: padding-box;
    z-index: 2;
    & svg {
      display: block;
    }
    
  }
  & .dot-background {
    border-radius: 100%;
    position: absolute;
    width: var(--side);
    height: var(--side);
    right: calc((var(--gap) / -2) - (var(--side) / 2));
    top: calc((var(--height) / 2) - (var(--side) / 2));
    background-color: var(--color-bg);
    scale: 1.15;
    z-index: 1;
    animation: pulse-radar 1.5s ease-out infinite;
  }
}

@keyframes pulse-radar {
  0% {
    scale: 1.15;
    opacity: 0.2;
  }
  20% {
    scale: 1.2;
    opacity: 0.8;
  }
  100% {
    scale: 1.6; 
    opacity: 0; 
  } 
}

.leaf {
  color: var(--leaf);
}

.timeline-comment {
  width: 100%;
  margin-top: 60px;
  margin-bottom: 25vh;
  & h2 {
    max-width: 1400px;
    text-align: center;
    margin: 0 auto;
  }
}

.title-lowercase {
      letter-spacing: -2%;
      font-weight: 400;
      text-transform: none;
      font-size: clamp(1.3rem, 0.792rem + 2.256vw, 3.5rem);
}

section:has(.members) {
  position: relative;
  overflow: visible;
  --background:var(--residue);
  padding-top: calc(var(--section-padding-y) / 2);
  padding-bottom: calc(var(--section-padding-y) * 4);
  background-color: var(--residue);
} 

.members-info {
  box-sizing: border-box;
  padding:var(--section-padding-y)  var(--section-padding-x);
  margin-bottom: 12vh;
  
  & h1 {
    text-transform: uppercase;
    
    
  }
  & h1:nth-child(2) {
      font-weight: 500;

      margin-top: 0.0rem !important;
      margin-bottom: 0.5rem !important;
    }
}
.members > h1 {
  padding-left: var(--section-padding-x);
}

.dark-font {
  color: var(--font-color);
  font-weight: 500;
}

.white-font {
  color: white;
  font-weight: 500;
}

.members-background {
  width: 100%;
  height: 100vh;
  position: absolute;
  z-index: 100;
  background-color: var(--background);
  top: calc(-100vh + var(--section-padding-y)/2);
}

.worm-container {
  width: 100%;
  height: 100%;
    overflow: hidden;
  display: flex;
  align-items: end;
  position: relative;
}
.worm-path {
  width: 100%;
  height: fit-content;
  stroke-width: 0;
}
.worm-scroll {
  transform-origin: center center;
  position: absolute;
  display: block;
  bottom: 40px;
  left: 0;
  margin: 0;
  width: min(20vw,400px);
  height: fit-content;
}

.members {
  box-sizing: border-box;
  padding-top: 12vh;
  min-height: 100vh;
  background: var(--background);
}

.section-content.members {
  padding-left: 0;
  padding-right: 0;
  max-width: 100%;
  background-color: var(--background);
}

.track-controls {
  box-sizing: border-box;
  padding: 0 var(--section-padding-x);
  display: flex;
  justify-content: end;
  align-items: center;
  gap: 8px;
  margin-bottom: 50px;
  & button {
    --side:60px;
    display: grid;
    place-items: center;
    width: var(--side);
    height: var(--side);
    border: none;
    position: relative;
    background-color: var(--leaf);
    transition: clip-path 400ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
    clip-path: circle(100% at 50% 50%);
    & svg {
      position: relative;
      z-index: 20;
      width: 60%;
      transition: transform 200ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
      & path {
        fill: #4e4c28;
      }
    }
    &::before {
      position: absolute;
      z-index: 20;
      width: 100%;
      height: 100%;
      content:"";
      display: block;
      background-color: var(--leaf);
      opacity: 1;
      transition: transform 350ms ease, opacity 175ms ease;
      opacity: 0;
      transform: scaleX(0.85) scaleY(0.6);
    }
    &:not(.disabled):hover::before {
    transform: scaleX(1) scaleY(1);
    transition: transform 350ms ease, opacity 250ms ease;
    opacity: 1;
  }
  &:not(.disabled):hover {
    & svg {
      animation:aplastarBouncy 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 1;
      cursor: pointer;
    }
  }
  }
  
  & .disabled{
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
    clip-path: circle(50% at 50% 50%);
    transition: clip-path 200ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background-color: rgb(128 128 128 / 0.386);
  }
}

@keyframes aplastarBouncy {
  0% {
    /* Estado inicial: normal */
    transform: scaleX(1) scaleY(1);
  }
  
  40% {
    /* Tu deformación: se achata un poco (efecto de presión) */
    transform: scaleX(1.05) scaleY(0.85);
  }
  
  70% {
    /* EL TRUCO BOUNCY: rebota un poco hacia el lado contrario 
       antes de estabilizarse (se estira un pelín hacia arriba) */
    transform: scaleX(0.95) scaleY(1.07);
  }
  
  100% {
    /* Estado final: vuelve exactamente a la normalidad */
    transform: scaleX(1) scaleY(1);
  }
}

.track-container {
  width: 100%;
  height: fit-content;
  overflow-x: auto; /* Cambiamos hidden por auto */
  overflow-y: hidden;
  scroll-snap-type: x mandatory; /* Activamos el imán horizontal */
  scroll-behavior: smooth; /* Para que los botones se muevan suave */
  scroll-padding-left: 10px;
  cursor: grab; /* Muestra la manita abierta */
  /* Ocultar barra de scroll */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}
.track-container::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}
.track-container.dragging {
    cursor: grabbing; /* Muestra la manita cerrada */
}
.track-container.dragging * {
    user-select: none;
    pointer-events: none;
}

/* El track solo necesita ser un flex contenedor que ocupe lo que necesite */
.track {
  width: max-content; /* Importante para que no se encoja */
  display: flex;
  gap: 10px;
  padding: 0 10px;
  box-sizing: border-box;
}

.chico {
  & svg {
  height: 25% !important;
    top: 26.5% !important;
  }
}

.eez-csic-ucm {
  & svg {
  height: 23% !important;
    top: 28% !important;
  }
}
.csic-opacity {
  fill-opacity: 0.4;
}

.csic-hole {
  fill: var(--leaf) !important;
  fill-opacity: 1;
}

.member-card {
  --padding:20px;
  scroll-snap-align: start;
  text-decoration: none;
  width: 30vw;
  box-sizing: border-box;
  padding: 20px;
  min-height: 65vh;
  background-color: white;
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
  justify-content: end;
  position: relative;
  /* & > * {
    color: var(--font-color);
    & path {
      fill: var(--residue);
    }
  } */
   & > .footer {
    width: 100%;
    font-size: 0.6rem;
    width: 100%;
    opacity: 0.6;
   }
  & > h5 {
    
    order: -1;
    text-transform: uppercase;
    font-weight: 350;
    font-size: 0.63rem;
    width: 100%;
    text-align: left;
    letter-spacing: -2%;
    font-family: var(--font-alt);
    opacity: 0;
    pointer-events: none;
    display: none;
  }
  & > svg {
    top:30%;
    height: 15%;
    width: 100%;
    left: 0;
    right: 0;
    position: absolute;
    
  }
  & > h3 {
    min-height: 20%;
    text-transform:unset;
    font-weight: 400;
    text-align: left;
    width: 100%;
    font-weight: 350;
    padding-bottom: var(--padding);
  }
  background-color: var(--bg-alt);
  &:nth-child(3n + 1) {
    background-color: var(--pig);
    --color:color-mix(in srgb, var(--pig), black 65%);
    & > * {
      color:var(--color);
      & path {
        fill:var(--color);
      }
    }
  }
   &:nth-child(3n + 2) {
    background-color: var(--wormy);
    --color:color-mix(in srgb, var(--wormy), black 65%);
    & * {
      color:var(--color);
      & path {
        fill:var(--color);
      }
    }
  }
  &:nth-child(3n) {
    background-color: var(--leaf);
    --color:color-mix(in srgb, var(--leaf), black 65%);
    & > * {
      color:var(--color);
      & path {
        fill:var(--color);
      }
    }
  }
}

/* .hero canvas {
  width: 100%;
  height: 100%;
  position: fixed;
  inset: 0;
  z-index: 10;
  
    polygon(5% 45%, 95% 45%, 95% 95%, 5% 95%)
  
} */

section:has(.financing) {
  position: relative;
  overflow: visible;
  min-height: 100vh;
}

.financing-background {
    width: 100%;
    height: 130%;
    position: absolute;
    top: -30%;
    left: 0;
    /* background-image:url("./public/img/animated_background.avif"); */
    filter: brightness(60%);
    object-fit: cover;
    background-color: rgb(0 0 0 / 0.4);
    /* background-size: cover;
    background-position: center center;
    background-repeat: no-repeat; */
    z-index: -1;
  }

.financing {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto auto;
  gap: 42px 5vw;
  & > div:first-child {
    & p {
      margin-top: 0.8rem;
      max-width: 600px;
      color: white;
    }
  }
}

.financing-intro {
  grid-column: 1/2;
  grid-row: 1/-1;

  &:nth-child(2) {
    grid-row: 1/2;
  }
  &:nth-child(3) {
    grid-row: 2/3;
  }
  &:nth-child(4) {
    grid-row: 3/4;
  }
  &:nth-child(5) {
    grid-row: 4/5;
  }
}

.financing-card {
  grid-column: 2/-1;
  color: white;
  & .header {
    display: flex;
    
    & div:first-child {
      width: 60px;
      height: 60px;
      margin: 2px;
      margin-right: 10px;
      display: grid;
      place-items: center;
      background-color: transparent;
      border-radius: 2px;
      
      & svg {
        width: 35px;
        height: fit-content;
        
      }
    }
    & div:last-child {
      line-height: 100%;
      & > * {
        font-weight: 400;
      }
      
    }
  }

  & .text {
    font-size: 0.7rem;
    font-weight: 300;
    opacity: 0.8;
    max-width: 600px;
  }  

  &:nth-child(5) {
    & .header{
      & > div:first-child {
        background-color: #FFCE00;
        & svg {
          transform: translateY(-4%);
        }
      }
    }
  }
  &:nth-child(4) {
    & .header{
      & > div:first-child {
        background-color: #001C85;
        & svg {
          
        }
      }
    }
  }
  &:nth-child(3) {
    & .header{
      & > div:first-child {
        background-image: url("./public/img/europe_spain.svg");
        background-size: cover;
        & svg {
          display: none;
        }
      }
    }
  }
  &:nth-child(2) {
    & .header{
      & > div:first-child {
        background-image: url("./public/img/logo_rotation.svg");
        background-size: 75% 75%;
        background-position: center center;
        background-repeat:  no-repeat;
        border-radius: 100%;
        background-color: white;
        & svg {
          display: none;
        }
      }
    }
  }
}

.news {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
}

.news-title {
  grid-column: 1/-1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px 5vw;
  margin-bottom: 5vh;
  flex-flow: row wrap;
  & h1 {
    font-weight: 300;
  hyphens: auto;
  line-height: 130%;
  font-size: clamp(1.2rem, 1.108rem + 0.41vw, 1.6rem);
  margin-bottom: 5%;
  }
}

.news-card {
  width: 100%;
  background-color: var(--bg-alt);
  overflow: hidden;
  border-radius: 8px;
  text-decoration: none;
  color: var(--font-color);
  & .img-container {
    width: 100%;
    aspect-ratio: 1/0.95;
    overflow: hidden;
    position: relative;
    &:hover img {
      scale: 1.06;
    }
    & img {
      position: absolute;
      top: -30%;
      left: 0;
      width: 100%;
      height: 130%;
      transition: scale 180ms 160ms ease;
      object-fit: cover;
    }
  }
  & .news-card-content {
    box-sizing: border-box;
    padding: 20px;
    display: flex;
    flex-flow: column nowrap;
    gap: 20px;
    margin: 0;
    & h3 {
      font-weight: 400;
      margin: 0;
      line-height: 130%;
    }
  }

  & .meta {
    font-weight: 200;
    font-size: 0.55rem;
    text-transform: uppercase;
    position: relative;
    & > svg {
      position: absolute;
      height: 80%;
      width: fit-content;
      position: absolute;
      right: 0;
      top: 10%;
      right: 0;
      transform: translateX(20%);
      opacity: 0;
      transition: opacity 200ms ease, transform 200ms ease;
      fill: var(--font-color);
    }
  }

  &:hover .meta svg {
    transform: translateX(0%);
    opacity: 0.8;
  }
}

footer {
  width: 100%;
  height: fit-content;
  box-sizing: border-box;
  
}

.footer-wrapper {
 
  position: relative;
  display: grid;
  min-height: 100vh;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr auto;
  box-sizing: border-box;
  padding: 36px;
  gap: 20px;
  overflow: hidden;
  &::before {
    content: "";
    width: 100%;
    height: 100%;
    z-index: -1;
    display: block;
    /* background-image: url("./public/img/footer.avif"); */
    background-color: var(--bg-alt);
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
  
    position: absolute;
    
  }
}

.legal-links {
  width: 100%;
  grid-column: 1/-1;
  grid-row-end: -2/-1;
  border-top: 1px solid rgb(0 0 0 / 0.4);
  padding-top: 16px;
  & ul {
    display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: end;
  list-style: none;
  padding: 0;
  gap: 0px 4px;
  & >li {
    display: block;
    height: fit-content;
    line-height: 1;
  }
  & > li:first-child{
    margin-right: auto;
  }
  & a {
    text-transform: uppercase;
    font-size: 0.5rem;
    text-decoration: none;
   color: var(--font-color);
    opacity: 0.9;
    &:hover {
      text-decoration: underline;
    }
  }
  }
}

.social-links {
  grid-row: 1/3;
  grid-column: 1/2;
  padding: 5vh 0;
  display: flex;
  flex-flow: column nowrap;
  justify-content: space-between;
  & > img {
    width: 40%;
    margin: auto;
    height: fit-content;
  }
}
.socials {
  list-style: none;
  display: flex;
  width: 100%;
  height: fit-content;
  gap: 2.3%;
  & a {
    text-decoration: none;
  }
  & img {
    height: 24px;
    width: fit-content;
    
  }
}

footer .links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-column: 2/3;
  grid-row: 1/2;
  box-sizing: border-box;
  padding-top: 12vh;
 
  display: grid;
  grid-template-columns: 1fr 1fr;
  & ul {
    list-style: none;
    font-size: 0.7rem;
    
    display: flex;
    flex-flow: column nowrap;
    gap: 0.15rem;
  }
  & h3 {
    font-weight: 300;
    opacity: 0.5;
    margin-bottom: 0.4rem;
  }
  & a {
    text-decoration: none;
    color: var(--font-color);
    font-weight: 300;
    &:hover {
      text-decoration: underline;
    }
  }
}

.slogan {
  grid-column: 2/3;
  grid-row: 2/3;
  font-size: clamp(1rem, 0.977rem + 0.103vw, 1.1rem);
  line-height: 170%;
  display: flex;
  align-items: center;
  
  
  & h1 {
    font-weight: 400 !important;
  }
}

/* =========================================
   SECCIÓN DE ACTUALIZACIONES (HORIZONTALES)
   ========================================= */

.updates-container {
  display: flex;
  flex-flow: column nowrap;
  gap: 2.4rem;
  width: 100%;
}

.update-card {
  display: flex;
  flex-flow: row nowrap;
  width: 100%;
  min-height: 200px; /* <--- CÁMBIALO AQUÍ A TU GUSTO */
  background-color: var(--bg-alt); 
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: var(--font-color); 
  transition: background-color 200ms ease;
  min-height: 55vh;
}

/* 2. Le hemos quitado el maldito min-height a este contenedor */
.update-card .img-container {
  --gsap-elastic: linear(
    0, 1.089 12.5%, 1.214 18.3%, 1.161 24.2%, 0.984 31.6%, 0.905 38.3%,
    0.932 45%, 1.011 53.3%, 1.026 60%, 1.009 68.3%, 0.992 76.6%,
    0.997 83.3%, 1.002 91.6%, 1
  );
  width: 35%; 
  position: relative;
  overflow: hidden;
  clip-path: circle(100% at 50% 50%);
  transition: clip-path 1500ms var(--gsap-elastic);
}

.update-card .img-container img {
  position: absolute;
  top: 0%;
  left: 0;
  width: 100%;
  height: 125%;
  object-fit: cover;
  transition: scale 180ms ease;
}

.update-card .update-card-content {
  box-sizing: border-box;
  padding: 40px; /* Ojo: este padding también suma altura si el texto es muy largo */
  display: flex;
  flex-flow: column nowrap;
  justify-content: space-between;
  gap: 20px;
  width: 65%;
}

/* Efecto hover en la imagen igual que en .news-card[cite: 1] */
.update-card:hover .img-container {
  clip-path: circle(45% at 50% 50%);
  transition: clip-path 500ms var(--gsap-elastic);
}
.update-card:hover .img-container img {
  scale: 1.35 !important;
}


.update-card .update-card-content h3 {
  font-weight: 400;
  margin: 0;
  line-height: 130%;
  font-size: clamp(1.2rem, 1.108rem + 0.6vw, 1.8rem); /* Texto responsivo */
}

.update-card .meta {
  font-weight: 200;
  font-size: 0.65rem;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.update-card .meta > svg {
  height: 14px;
  width: fit-content;
  transform: translateX(-15px); /* Empieza desplazado a la izquierda */
  opacity: 0;
  transition: opacity 200ms ease, transform 200ms ease;
  fill: var(--font-color);
}

/* Efecto hover de la flecha/svg[cite: 1] */
.update-card:hover .meta > svg {
  transform: translateX(0%);
  opacity: 0.8;
}

.single-header {
  width: 100%;
  height: 55vh;
  position: relative;
  overflow: hidden;
  & img {
    height: 125%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
  }
}

.single-wrapper {
  max-width: 1600px;
  box-sizing: border-box;
  padding: var(--section-padding-y) var(--section-padding-x);
  margin: auto;
  display: grid;
  
}

.single-content  {
  max-width: 1150px;
  margin: 0 auto;
  width: 100%;
  min-width: 0;
  & h1 {
    margin: 2rem 0;
  }
  & h2 {
    margin-top: 2.4rem;
    margin-bottom:1.35rem;
    color: var(--residue);
  }
  & h3 {
    margin-top: 1.85rem;
    margin-bottom:1.1rem;
  }
  & a {
    color: var(--leaf);
  }
  & p {
    margin: 0.6rem 0;
    font-size: 0.9rem;
  }
  & ul {
    margin-top: 1.4rem;
    display: flex;
    flex-flow: column nowrap;
    gap: 0.4rem;
    font-size: 0.8rem;
  }
  & hr {
    margin: 3rem 0;
  }
}

.navigation  {
  margin-top: 6rem;
  & .next, & .prev {
    width: fit-content;
    height: 100%; box-sizing: border-box;
    border-radius: 16px;
    padding-left: 0.65rem;
  padding-right: 0.65rem;
  }
  & .current {
    opacity: 0.5;
  }
}
.nav-links > * {
  background-color: var(--font-color);
  color: white;
  border-radius: 100%;
  padding: 0.35rem;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 0.35rem;
}

.page-numbers:not(:where(.next, .prev)) {
  display: grid;
  place-items: center;
  --side: 1.5rem;
  width: var(--side);
  height: var(--side);
  box-sizing: unset;
  
}




@media screen and (width < 1440px) {
  .timeline-card.r-l {
    & .media {
      order:unset !important;
    }
    & .line {
      & hr {
        left: 0;
        right: unset;
      }
    }
    & .header {
      justify-content: start;
      & > h5:first-child {
        order: 0;
      }
      & > h5:last-child {
        text-align: start;
        
      }
    }
    & .dot, & .dot-background {
      right: calc((var(--gap) / -2) - (var(--side) / 2));
      left: unset;
    }
    & .info > h4 {
      text-align: left;
    }
    & .dot svg {
      transform: translateX(8%) !important;
    }
  }
  .timeline-card {
    display: grid;
    grid-template-columns: 2fr 1fr;
    & .media {
      grid-column: 2/-1;
      width: 100%;
      aspect-ratio: 2/2.5;
      min-height: unset !important;
      margin-bottom: auto;
    }
  }

  .timeline-line-container {
    grid-template-columns: 2fr var(--gap) 1fr;
    & .timeline-line {
      grid-column: 2/3;
    }
  }

  .member-card {
    width: 45vw !important;
  }

  .news {
    grid-template-columns: 1fr 1fr;
    & > a:last-child {
      display: none;
    }
  }
}


@media screen and (width < 1000px) {
  .update-card {
    flex-flow: column nowrap; /* Pasa a estar en vertical[cite: 1] */
  }

  .update-card .img-container {
    width: 100%; /* Ahora la imagen ocupa todo el ancho */
    aspect-ratio: 16/9; /* Proporción panorámica para que no sea muy alta */
    min-height: unset;
  }

  .update-card .update-card-content {
    width: 100%; /* El texto también ocupa todo el ancho */
    padding: 24px;
  }

  .footer-wrapper  {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto auto auto;
    gap: 36px;
    & > * {
      grid-column: unset !important;
      grid-row: unset !important;
      margin: unset !important;
    }
    & .slogan {
      margin-top: 36px;
    }
    & .socials {
      margin-top: 5vh;
    }
  }
  .members-info {
    margin-bottom: 0vh;
  }
  .member-card {
    width: 70vw !important;
  }
  .timeline {
    --gap:100px;
  }
  .timeline-card {
    grid-template-columns: 1fr var(--gap);
    grid-template-rows: auto auto;
    gap: 24px 0px;
    align-items: start;
    & .media {
      grid-column: 1/2;
      grid-row: 1/2;
      aspect-ratio: unset;
      width: 100%;
      height: 520px;
    }

    & .text {
      grid-column: 1/2;
      grid-row: 2/3;
    }
  }
  .timeline-line-container {
   grid-template-columns: minmax(0, 1fr) var(--gap);
    & .timeline-line {
      grid-column: 2/3;
    }
  }

  nav .nav-logo {
  display: flex;
  gap: 0.2rem;
  height: 100%;
  box-sizing: border-box;
  padding: calc(var(--height)/100 *15) 0;
  align-items: center;
  width: fit-content;
  & img:nth-child(2), & img:nth-child(3) {
    height: 60%;
  }
}
.menu-button-container > div {
  display: none;
}

.hero-content {
  max-width: unset;
  height: fit-content;
  margin: auto 0;
}
.hero-background {
  opacity: 0.6;
}

.financing {
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto auto auto;
  & > div {
    grid-column: 1/-1;
    grid-row: unset !important;
    &:first-child {
      margin-bottom: 80px;
    }
  }
}
.news {
    grid-template-columns: 1fr;
    gap: 32px;
    & > a:last-child {
      display: block;
    }
    & > a:first-child {
      margin-top: 32px;
    }
    & > a {
      max-width: 700px;
      margin: 0 auto;
      padding-bottom: 38px;
    }
  }

  .slogan {
    margin-top: 80px !important;
    margin-bottom: 40px !important;
    & h1 {
      font-size: clamp(1.4rem, 1.262rem + 0.615vw, 2rem);
      line-height: 115%;
    }
  }
  .legal-links ul {
    justify-content: space-between;
  }
}


@media screen and (width < 700px) {
  .slogan {
    margin-top: 80px !important;
    margin-bottom: 40px !important;
    & h1 {
      text-align: center;
    }
  }
  .member-card {
    width: 92vw !important;
    min-height: 80vh;
  }

  .hero-header {
    height: 5vh !important;
  }
nav .nav-logo img {
  height: fit-content;
  width: 16vw;
  &:first-child{
    width: 35vw;
  }
  
}
  .footer-wrapper .links {
    margin-bottom: 2rem !important;
    & ul{
    padding: 0;
   
  }
  }
  .hero-content > ul {
  & > li {
    & h4 {
      font-size: 0.6rem;
    }
  }
}
.hero-content > p {
  font-size: 0.75rem !important;
}

.hero-header {
  height: 80px !important;
  
  & > img {
    height: fit-content !important;
    width: 45% !important;
  }
  & div {
    height: 100%;
    width: 45%;
    & img {
      &:first-child {
        width: 23%;
      }
      &:last-child {
        width: 75%;
      }
    }
  }


  
}
.nav-logo {
  padding:calc(var(--height)/100 *7.5) 0 !important;
  & img {
    height: fit-content !important;
    
    &:nth-child(1) {
      flex: 1 1 40%;
      margin: 0 !important;
    }
    &:nth-child(2) {
      float: 1 1 5% !important;
      max-height: 40%;
    }
    &:nth-child(3) {
      flex: 1 1 30%;
    }
  }
}
  
  .menu-button-container {
    --width:34px;
    --padding:4px;

  }
.hero-title {
  font-size: clamp(0.82rem, 0.548rem + 1.21vw, 2rem) !important;
  margin-top: 5%;
}


.member-card {
    & > svg {
       
        width: 75%;
        left: 12.5%;
       
    }
}

}


@media screen and (width < 500px) {

  .timeline-card .line {
    --side:30px !important;
  }

  .footer-wrapper {
    grid-template-rows: 395px auto auto auto;
    & .socials {
      margin-top: 0;
      & img {
        width: 32px !important;
      }
    }
    & .social-links img {
      width: 60%;
    }
  }

  .member-card {
    width: 88vw !important;
    min-height: 90vh;
    & > svg {
      width: 80%;
      left: 10%;
    }
  }

  footer .links {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: center;
    padding-top: 4vh;
    gap: 2rem;
  }
 
  
  .timeline-card .text .info h4,
  .timeline-card .text .header h5 {
    hyphens: auto;
  }
  .timeline {
    --gap:25px;
  }
  .timeline-card .text {
  & .header {
    & > h5:last-child{
       font-size: 0.8rem !important;
       text-transform: none;
       padding-right: calc(var(--gap) / 2.2);
    }
     & > h5:first-child{
      width: 1.3rem;
      height: 1.3rem;
       font-size: 0.9rem !important;
    }
  }
  & .info h4 {
    font-size: 0.9rem;
  }
}
  .timeline-card {
    & .media {
      height: 340px;
      & img {
        width: 95%;
      }
    }
    }
}


.page-loader {
  width: 100%;
  height: 100%;
  position: fixed;
  z-index: 99999999999999999999999;
  display: flex;
  justify-content: center;
  align-items: center;
  & > canvas {
    width: 100%;
    height: 100%;
    background-color: var(--bg-alt);
    position: absolute;
    inset: 0;
  } & > svg {
      width: 55vw;
      max-width: 300px;
      position: relative;
      z-index: 10;
      height: fit-content;
      animation: rotate-page-loader 4s ease-out 0s infinite;
      transition: opacity 100ms ease;   
      margin: auto;
  }
}


body[data-loaded="false"] {
  pointer-events: none !important;

}
body[data-loaded="true"] {
 overflow: visible;
 & .page-loader {
  pointer-events: none;
  & svg {
    animation-play-state: paused !important;
    opacity: 0 !important;
  }
 }
}
body{
  overflow: hidden;
}

@keyframes rotate-page-loader {
  to {
    rotate:360deg;
  }
}