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: center;
    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;

}


h1 {
    font-family: 'Jua', sans-serif;
    font-size: clamp(3vh, 8vw, 7vh);
    margin-bottom: 2vh;
}

.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;
}

@keyframes wave {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(clamp(-1vh, 1.5vw, 2vh));
    }
}

p {
    text-align: left;
    padding-left: clamp(0vh, 10vw, 60vh);
    padding-right: clamp(0vh, 10vw, 60vh);
}

hr {
  
  width: 60%;
  height: 0px;
  background-color: rgb(148, 148, 148);
}


.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 2rem;
  align-items: stretch;

  padding-left: clamp(0vh, 4vw, 60vh);
  padding-right: clamp(0vh, 4vw, 60vh);

  width: 100%;
  box-sizing: border-box;
}

.card {
  width: 100%;
  height: 100%;
  max-width: 20em;
  min-width: 0;
  background-color: var(--card-color);


  
  border: 0.18em solid rgb(0, 0, 0);
  border-radius: clamp(0rem, 20vw, 3rem);

  justify-self: center;
  position: relative;
  text-align: center;

  box-shadow: 0px 0.8em 0 rgb(0, 0, 0);

  overflow: hidden;

  transition:
    transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1);

  cursor: pointer;

  z-index: 1;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;

  border-radius: inherit;

  background-image: radial-gradient(
    rgba(255, 255, 255, 0.262) 30%,
    transparent 0%
  );
  
  transform: rotate(45deg) scale(4);
  transform-origin: center;

  background-size: 2em 2em;

  opacity: 0;

  z-index: 0;

  transition:
    opacity 0.35s ease,
    background-position 0.8s linear;

  pointer-events: none;
}

@keyframes dots-slide {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 8em 0;
  }
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card-link:visited {
  color: inherit;
}

.card:hover {
  transform: rotate(-2deg) scale(1.02);
}
.card:hover::before {
  opacity: 1;
  animation: dots-slide 6s linear infinite;
}

.card .content {
  padding: clamp(3vh, 3.8vw, 4vh);
}

.cardtitle {
  width: max-content;
  margin-left: auto;
  margin-right: auto;
  white-space: nowrap;
  font-size: clamp(3vh, 6vw, 4vh);
  font-weight: bold;
  margin-bottom: 0.5em;
  white-space: nowrap;

}
@media (max-width: 700px) {
  .cardtitle {
    white-space: normal;
  }
}

.cardtext {
  font-size: clamp(1.6vh, 3.8vw, 2vh);
}

.card .cardtitle {
  display: block;
  transition: transform 0.2s ease-out;
  text-align: center;
}

.card:hover .cardtitle {
  transform: rotate(3deg) scale(1.1);
}

.card:active{
  transform: rotate(3deg) scale(0.9);
  opacity: 0.8; 
  
}


.centertext {
  text-align: center;
}


/* ---- BANNER DE ABAJO ---- */ 

.marqueeband {
  background-color: #2c2a25;
  
  margin: 1.5rem 0;
  padding: 1rem 0;

  width: calc(100% + 32px);
  
  margin-left: -16px;
  margin-right: -16px;
  
  min-height: 10rem;
  display: flex;
  align-items: center;
  
  overflow: hidden;

  box-sizing: border-box;
}

.marqueeband-track {
  display: flex;
  width: max-content;

  animation: ticker 30s linear infinite;
}

.marqueeband-text {
  display: flex;
  grid-template-columns: repeat(3, clamp(20ch, 25vw, 30rem));
  
  color: white;
  font-size: 1.1rem;
  font-weight: 300;
  text-align: center;
  padding: 0 2rem;
  flex-shrink: 0;
  align-items: center;


  gap: clamp(4rem, 4vw, 10rem);


}
.marqueeband-text > div {
  width: clamp(12rem, 25vw, 30rem);
}

.marqueeband-text span {
  text-align: center;

  padding: 0 2rem;

  box-sizing: border-box;

  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;

  min-width: 0;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.support-column {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.support-links {
  display: flex;
  justify-content: center;
  gap: 2.2rem;
}

.support-links a {
  color: white;
  text-decoration: none;
  font-weight: 600;
}

.support-links a:hover {
  text-decoration: underline;
}

.support-links a {
  color: inherit; /* para tenerlo del mismo que el texto */
  width: 40px; /* hace más grande el área clickable */
  transition: transform 0.2s ease;
}

.support-links a:hover {
  transform: scale(1.3);
  color: rgb(228, 148, 0);
}

.support-links svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}


/* ---- BANNER DE ABAJO (FIN) ---- */ 



.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;
  --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);
}