body {
    background-image: url('../../media/backcomp.gif');
    background-repeat: repeat;
    background-size: min(40vw, 300px) auto;
    margin: 0;
    box-sizing: border-box;
    padding: 2vh 0;
    display: flex;
    flex-direction: column;
    max-height: 100%;
    min-height: 100vh;
    justify-content: space-between;
    align-items: center;

    
}



::-moz-selection { /* Para Firefox */
    color: white;
    background: rgb(245, 159, 0);
  }
  
  ::selection {
    color: white;
    background: rgb(245, 159, 0);
  }
  

.contenedor-blanco {
    margin-top: auto;
    margin-bottom: auto;
    font-family: 'Figtree', sans-serif;
    text-align: center;
    justify-content: center;
    align-content: center;
    background: white;
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 20px;
    padding-bottom: 20px;
    border-radius: clamp(0rem, 20vw, 6rem);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    max-width: 90%;
    width: 80rem;
    min-height: clamp(80%, 90vh, 52rem);
    position: relative;
    box-sizing: border-box;
    display: block;
    transition: min-height 0.3s ease-in-out, padding 0.3s ease-in-out;
    will-change: min-height;
}

@media (max-width: 780px) {
  .contenedor-blanco {
    align-content: flex-start;
    min-height: 80%;
    min-height: clamp(1rem, 100vw, 50rem);
  }
}

@media (orientation: portrait) {
  .contenedor-blanco {
    min-height: 90vh;
  }
}

.contenedor-interno {
  margin: 0 auto;
  padding-left: clamp(0vh, 5vw, 90vh);
  padding-right: clamp(0vh, 5vw, 90vh);
}

.contenedor-interno img {
    margin-bottom: -0.5rem;
}

.contenedor-interno p:first-of-type {
    margin-top: 0;
}

h1 {
    font-family: 'Jua', sans-serif;
    font-size: clamp(3vh, 8vw, 7vh);
    margin-bottom: 0vh;

}

.wave-text span {
    display: inline-block;
    animation: wave 1.8s ease-in-out infinite;
}

.wave-text span:nth-child(1) {
    animation-delay: 0s;
}
.wave-text span:nth-child(2) {
    animation-delay: -0.2s;
}
.wave-text span:nth-child(3) {
    animation-delay: -0.4s;
}
.wave-text span:nth-child(4) {
    animation-delay: -0.6s;
}
.wave-text span:nth-child(5) {
    animation-delay: -0.8s;
}

@keyframes wave {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(clamp(-1vh, 1.5vw, 2vh));
    }
}

h3 {
    font-size: clamp(1vh, 8vw, 3vh);
    margin-bottom: 2vh;
}

.trabajos-lista {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.trabajo {
  display: grid;
  grid-template-columns: 4fr 5fr; /* Left column twice as wide as right */
  gap: 0.8rem;
  max-width: 1200px;
  margin: 2rem auto;
  width: 100%;
}

@media (max-width: 768px) {
  .trabajo {
    grid-template-columns: 1fr;
  }

  .description-column {
    padding: 0;
  }
}

.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

.description-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: justify;
  padding: 1rem;
}

.break-url {
  overflow-wrap: break-word;
  word-break: break-all;
  font-size: 1.4vh;
  font-weight: 500;
  color: rgb(94, 94, 94);
  text-decoration: underline;
  margin-bottom: 1.2vh;
  transform-origin: left center;
  transition: color 0.2s ease, transform 0.2s ease;
}

.break-url:hover {
    font-weight: 700;
    color: rgb(228, 148, 0);
    transform: scale(1.1);
    text-decoration: none;
}

.link-group {
  margin-bottom: 2.2vh;
  display: flex;
  flex-direction: column;
}

.link-group a.break-url {
  margin-bottom: 0.4vh;
}

.link-group a.break-url:last-child {
  margin-bottom: 0;
}

hr {
  
  width: 60%;
  height: 0px;
  background-color: rgb(148, 148, 148);
}

.sound-button-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  justify-content: center;
  align-items: center;

}

a {
  text-decoration: none;
}

.sdbutton {
  font-weight: bold;
  color: white;
  border-radius: 9999px;
  cursor: pointer;
  height: 4rem;
  width: clamp(8rem, 50vw, 12rem);
  overflow: hidden;
  border: none;
  background-color: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  text-decoration: none;
  margin: 0 auto;
  transition: transform 0.15s ease;
}

.sdbutton .span-mother {
  display: flex;
  overflow: hidden;
}

.sdbutton:hover .span-mother {
  position: absolute;
}

.sdbutton:hover .span-mother span {
  transform: translateY(1.2em);
}

.sdbutton .span-mother span:nth-child(1) {
  transition: 0.2s;
}

.sdbutton .span-mother span:nth-child(2) {
  transition: 0.3s;
}

.sdbutton .span-mother span:nth-child(3) {
  transition: 0.4s;
}

.sdbutton .span-mother span:nth-child(4) {
  transition: 0.5s;
}

.sdbutton .span-mother span:nth-child(5) {
  transition: 0.6s;
}

.sdbutton .span-mother span:nth-child(6) {
  transition: 0.7s;
}

.sdbutton .span-mother span:nth-child(7) {
  transition: 0.8s;
}

.sdbutton .span-mother span:nth-child(8) {
  transition: 0.9s;
}

.sdbutton .span-mother span:nth-child(9) {
  transition: 1.1s;
}

.sdbutton .span-mother span:nth-child(10) {
  transition: 1.2s;
}

.sdbutton .span-mother span:nth-child(11) {
  transition: 1.3s;
}

.sdbutton .span-mother span:nth-child(12) {
  transition: 1.4s;
}


.sdbutton .span-mother2 {
  display: flex;
  position: absolute;
  overflow: hidden;
}

.sdbutton .span-mother2 span {
  transform: translateY(-1.2em);
}

.sdbutton:hover .span-mother2 span {
  transform: translateY(0);
}

.sdbutton .span-mother2 span {
  transition: 0.2s;
}

.sdbutton .span-mother2 span:nth-child(2) {
  transition: 0.3s;
}

.sdbutton .span-mother2 span:nth-child(3) {
  transition: 0.4s;
}

.sdbutton .span-mother2 span:nth-child(4) {
  transition: 0.5s;
}

.sdbutton .span-mother2 span:nth-child(5) {
  transition: 0.6s;
}

.sdbutton .span-mother2 span:nth-child(6) {
  transition: 0.7s;
}

.sdbutton .span-mother2 span:nth-child(7) {
  transition: 0.8s;
}

.sdbutton .span-mother2 span:nth-child(8) {
  transition: 0.9s;
}

.sdbutton .span-mother2 span:nth-child(9) {
  transition: 1.0s;
}

.sdbutton .span-mother2 span:nth-child(10) {
  transition: 1.1s;
}

.sdbutton .span-mother2 span:nth-child(11) {
  transition: 1.2s;
}

.sdbutton .span-mother2 span:nth-child(12) {
  transition: 1.3s;
}

.sdbutton:active {
  transform: scale(0.96);
}

.botones-columnas {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

button {
  /* Variables */
  --button_radius: 1.75em;
  --button_color: #ffffff;
  font-size: 14px;
  font-family: 'Figtree', sans-serif;
  font-weight: bold;
  border: none;
  cursor: pointer;
  border-radius: var(--button_radius);
  background: var(--button_outline_color);
}

/* From Uiverse.io by Voxybuns (edited) */ 
.button-link {
  all: unset; 
  --button_radius: 1.75em;
  --button_color: #ffffff;
  --button_outline_color: #000000;
  font-size: 14px;
  font-family: 'Figtree', sans-serif;
  font-weight: bold;
  border-radius: var(--button_radius);
  background: var(--button_outline_color);
  cursor: pointer;
  display: inline-block;
}

.button-link .button_top {
  display: block;
  box-sizing: border-box;
  border: clamp(2px, 0.6vw, 3px) solid var(--button_outline_color);
  border-radius: var(--button_radius);
  padding: 0.75em 1.5em;
  background: var(--button_color);
  color: var(--button_outline_color);
  transform: translateY(-0.2em);
  transition: transform 0.1s ease;
  min-width: 124px;
}

.button-link:hover .button_top {
  transform: translateY(-0.44em);
}

.button-link:active .button_top {
  transform: translateY(0);
}

.redes {
  display: flex;
  justify-content: center; 
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.redes a {
  color: inherit; /* para tenerlo del mismo que el texto */
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;  /* Optional: makes click area bigger and consistent */

  transition: transform 0.2s ease;
}

.redes a:hover {
  transform: scale(1.3);
  color: rgb(228, 148, 0);
}

.redes svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.dlband {
  background-color: #25292c;
  margin: 1.5rem 0;
  padding-top: 1rem;
  padding-bottom: 7.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  width: calc(100% + 32px);
  margin-left: -16px;
  margin-right: -16px;
  box-sizing: border-box;
}

.dlband-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 100%;
}

.dlband-text {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  color: white;
  font-size: 1.1rem;
  font-weight: 300;
  text-align: center;
  margin-bottom: 1.5rem;
}

.dlbutton {
  --stone-50: #ffffff;
  --stone-800: #25292c;
  --yellow-400: #ffb049;

  font-family: "Fustat", sans-serif;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  line-height: 1;
  font-size: 1rem;
  border-radius: 1rem;
  outline: 2px solid transparent;
  outline-offset: 6px;
  color: var(--stone-50);
 
 /* averigua por que hay una sombra negra y luego quita esta nota */
  padding-right: 1rem;
  padding-left: 1rem;
 /* averigua por que hay una sombra negra y luego quita esta nota */

  &::before {
    content: "";
    position: absolute;
    z-index: 0;
    height: 200%;
    max-height: 100px;
    aspect-ratio: 1;
    margin: auto;
    background: white;
    clip-path: polygon(
      100% 50%,
      91.48% 56.57%,
      97.55% 65.45%,
      87.42% 69.07%,
      90.45% 79.39%,
      79.7% 79.7%,
      79.39% 90.45%,
      69.07% 87.42%,
      65.45% 97.55%,
      56.57% 91.48%,
      50% 100%,
      43.43% 91.48%,
      34.55% 97.55%,
      30.93% 87.42%,
      20.61% 90.45%,
      20.3% 79.7%,
      9.55% 79.39%,
      12.58% 69.07%,
      2.45% 65.45%,
      8.52% 56.57%,
      0% 50%,
      8.52% 43.43%,
      2.45% 34.55%,
      12.58% 30.93%,
      9.55% 20.61%,
      20.3% 20.3%,
      20.61% 9.55%,
      30.93% 12.58%,
      34.55% 2.45%,
      43.43% 8.52%,
      50% 0%,
      56.57% 8.52%,
      65.45% 2.45%,
      69.07% 12.58%,
      79.39% 9.55%,
      79.7% 20.3%,
      90.45% 20.61%,
      87.42% 30.93%,
      97.55% 34.55%,
      91.48% 43.43%
    );

    animation: star-rotate 8s linear infinite;
    opacity: 0.1;
  }

  & > div {
    padding: 2px;
    border-radius: 1rem;
    background-color: var(--yellow-400);
    transform: translate(-4px, -4px);
    transition: all 150ms ease;
    box-shadow:
      0.5px 0.5px 0 0 var(--yellow-400),
      1px 1px 0 0 var(--yellow-400),
      1.5px 1.5px 0 0 var(--yellow-400),
      2px 2px 0 0 var(--yellow-400),
      2.5px 2.5px 0 0 var(--yellow-400),
      3px 3px 0 0 var(--yellow-400),
      0 0 0 2px var(--stone-800),
      0.5px 0.5px 0 2px var(--stone-800),
      1px 1px 0 2px var(--stone-800),
      1.5px 1.5px 0 2px var(--stone-800),
      2px 2px 0 2px var(--stone-800),
      2.5px 2.5px 0 2px var(--stone-800),
      3px 3px 0 2px var(--stone-800),
      3.5px 3.5px 0 2px var(--stone-800),
      4px 4px 0 2px var(--stone-800),
      0 0 0 4px var(--stone-50),
      0.5px 0.5px 0 4px var(--stone-50),
      1px 1px 0 4px var(--stone-50),
      1.5px 1.5px 0 4px var(--stone-50),
      2px 2px 0 4px var(--stone-50),
      2.5px 2.5px 0 4px var(--stone-50),
      3px 3px 0 4px var(--stone-50),
      3.5px 3.5px 0 4px var(--stone-50),
      4px 4px 0 4px var(--stone-50);



    & > div {
      position: relative;
      pointer-events: none;
      border-radius: calc(1rem - 2px);
      background-color: var(--stone-800);

      &::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 1rem;
        opacity: 0.1;
        background-image: radial-gradient(
            rgb(255 255 255 / 80%) 20%,
            transparent 20%
          ),
          radial-gradient(rgb(255 255 255 / 100%) 20%, transparent 20%);
        background-position:
          0 0,
          4px 4px;
        background-size: 8px 8px;
        mix-blend-mode: hard-light;
        box-shadow: inset 0 0 0 1px var(--stone-800);
        animation: dots 0.4s infinite linear;
        transition: opacity 150ms ease;
      }

      & > div {
        position: relative;
        display: flex;
        align-items: center;
        padding: 0.75rem 1.25rem;
        gap: 0.25rem;
        filter: drop-shadow(0 -1px 0 var(--stone-800));

        &:hover {
          filter: drop-shadow(0 -1px 0 rgba(255, 255, 255, 0.1));
        }


      }
    }
  }
}

.dlbutton:hover > div {
  transform: translate(0, 0);
  background-color: #2ec3ae;
  box-shadow:
    0 0 0 0 var(--yellow-400),
    0 0 0 0 var(--yellow-400),
    0 0 0 0 var(--yellow-400),
    0 0 0 0 var(--yellow-400),
    0 0 0 0 var(--yellow-400),
    0 0 0 0 var(--yellow-400),
    0 0 0 2px var(--stone-800),
    0 0 0 2px var(--stone-800),
    0 0 0 2px var(--stone-800),
    0 0 0 2px var(--stone-800),
    0 0 0 2px var(--stone-800),
    0 0 0 2px var(--stone-800),
    0 0 0 2px var(--stone-800),
    0 0 0 2px var(--stone-800),
    0 0 0 2px var(--stone-800),
    0 0 0 4px var(--stone-50),
    0 0 0 4px var(--stone-50),
    0 0 0 4px var(--stone-50),
    0 0 0 4px var(--stone-50),
    0 0 0 4px var(--stone-50),
    0 0 0 4px var(--stone-50),
    0 0 0 4px var(--stone-50),
    0 0 0 4px var(--stone-50),
    0 0 0 4px var(--stone-50);
}

.dlbutton:active {
  transform: scale(0.96);
}

@keyframes star-rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes dots {
  0% {
    background-position:
      0 0,
      4px 4px;
  }
  100% {
    background-position:
      8px 0,
      12px 4px;
  }
}

@media (prefers-color-scheme: dark) {
  .button {
    &:active,
    &:focus-visible {
      outline-color: var(--yellow-400);
    }
  }
}

.spintext {
  color: #8b70d0;
  position: absolute;
  inset: 0%;
  animation: text-rotation 14s linear infinite;

  
  font-size: 1.3rem;
  font-weight: 500;
  text-align: center;
  margin-bottom: 1.5rem;

  > span {
    position: absolute;
    transform: rotate(calc(15.5deg * var(--index)));
    inset: -5.1em;
  }
}


@keyframes text-rotation {
  to {
    rotate: 360deg;
  }

