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: #f59f00;
  }
  
  ::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;
}

/* TABS_____________________________________________________________ */


/* COLUMNAS */
.category {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.left,
.right {
  display: flex;
  justify-content: center;
  align-items: center;
}
.left { 
  flex-basis: 50%;  
  max-width: 50%;
}
.right { 
  flex-basis: 50%; 
  max-width: 50%;
}

  @media (max-width: 480px) {  /* Para hacer que se pasen a filas si la pantalla es más pequeña que XXX */
  .category {
    flex-direction: column;
    gap: 1rem;
  }

  .left,
  .right {
    max-width: 100%;
    flex-basis: 100%;
  }
}

/* Fading effect takes 1 second - Go from zero to full opacity */
.tabcontent {
  animation: fadeEffect 1s; 
}

@keyframes fadeEffect {
  from {opacity: 0;}
  to {opacity: 1;}
}



/* Style the buttons that are used to open the tab content */
.sdbutton {
  font-weight: bold;
  font-size: clamp(0.88rem, 6vw, 1em);
  color: rgb(0, 0, 0);
  border-radius: 9999px;
  cursor: pointer;
  height: 3.5em;
  width: clamp(8rem, 50vw, 10rem);
  overflow: hidden;
  border: none;
  background-color: #ddd;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  text-decoration: none;
  margin: 0 auto;
  transition: transform 0.15s ease;
}

.sdbutton .span-mother,
.sdbutton .span-mother2 {
  white-space: nowrap;
}


/* BUTTON ANIMATION ________________________________________________ */
.sdbutton .span-mother {
  display: flex;
  overflow: hidden;
}

.sdbutton:hover:not(.active) .span-mother {
  position: absolute;
}

.sdbutton:hover:not(.active) .span-mother span {
  transform: translateY(1.4em);
}

.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.3s;
}


.sdbutton .span-mother2 {
  display: flex;
  position: absolute;
  overflow: hidden;
}

.sdbutton .span-mother2 span {
  transform: translateY(-1.4em);
}

.sdbutton:hover:not(.active) .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.92);
}


/* Change background color of buttons on hover */
.tab button:hover {
  background-color: #f59f00;
  color: #000000;
}


/* Create an active/current tablink class */
.tab button.active {
  background-color: #000000;
  color: #ffffff;
}

/* Style the tab content */
.tabcontent {
  display: none;
}

.trabajos-lista {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.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;
  }
}

lite-youtube {
  width: 100%;
  height: 100%;
  display: block;
}

.video-container-reel {
  position: relative;
  width: min(86%, 600px);
  aspect-ratio: 16 / 9;
  max-height: 320px;
  margin: 0 auto;
  display: block;
  overflow: hidden;
}

.video-container-reel iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  
}

.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;
}

a.Beastieball {
    color: rgb(0, 0, 0);
    text-decoration: underline;
    display: inline-block;
}

a.Beastieball:hover {
    color: rgb(228, 148, 0);
    font-weight: 600;
    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);
}



a {
  text-decoration: none;
}


.botones-columnas {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* BOTONES links _________________________________ */ 
button {
  /* Variables */
  --button_radius: 1.75em;
  --button_color: #ffffff;
  --button_outline_color: #000000;
  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);
}


