/* estilos.css */
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

body {
  margin: 0;
  font-family: 'Orbitron', monospace;
  background-color: #0a0a0a;
  color: #e0e0e0;
  overflow-x: hidden;
}

h1, p, a {
  text-align: center;
  margin: 1rem auto;
  max-width: 90%;
}

.contenido, .fragmento {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 2s ease-in;
}


/*palabra oculta fragmento 2*/

.hover-reveal {
  color: #ddd;
  border-bottom: 1px dashed #666;
  cursor: pointer;
}

#revealBox {
  position: fixed;
  bottom: 100px;
  right: 500px;
  background: rgba(30, 30, 30, 0.95);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  display: none;
  max-width: 300px;
  font-size: 14px;
}

/* From Uiverse.io by andrew-demchenk0 */ 
.glitch {
  position: relative;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  letter-spacing: 5px;
  z-index: 1;
  animation: shift 1s ease-in-out infinite alternate;
}

.glitch:before,
.glitch:after {
  display: block;
  content: attr(data-glitch);
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0.8;
}

.glitch:before {
  animation: glitch 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
  color: #8b00ff;
  z-index: -1;
}

.glitch:after {
  animation: glitch 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse both infinite;
  color: #00e571;
  z-index: -2;
}

@keyframes glitch {
  0% {
    transform: translate(0);
  }

  20% {
    transform: translate(-3px, 3px);
  }

  40% {
    transform: translate(-3px, -3px);
  }

  60% {
    transform: translate(3px, 3px);
  }

  80% {
    transform: translate(3px, -3px);
  }

  to {
    transform: translate(0);
  }
}

@keyframes shift {
  0%, 40%, 44%, 58%, 61%, 65%, 69%, 73%, 100% {
    transform: skewX(0deg);
  }

  41% {
    transform: skewX(10deg);
  }

  42% {
    transform: skewX(-10deg);
  }

  59% {
    transform: skewX(40deg) skewY(10deg);
  }

  60% {
    transform: skewX(-40deg) skewY(-10deg);
  }

  63% {
    transform: skewX(10deg) skewY(-5deg);
  }

  70% {
    transform: skewX(-50deg) skewY(-20deg);
  }

  71% {
    transform: skewX(10deg) skewY(-10deg);
  }
}


/* Clases temáticas */
.pantalla-negra {
  background: #000;
  color: #0ff;
}

.glitch2 {
  background: linear-gradient(90deg, #0a0a0a 50%, #111 50%);
  background-size: 4px 4px;
  animation: scanlines 0.3s infinite linear;
}

.sensorial {
  background: radial-gradient(circle, #223 0%, #000 100%);
  color: #eee;
}

.incompleto {
  background-color: #100010;
  color: rgb(230, 195, 195);
}

.final {
  background-color: #000;
  color: #fff;
  font-style: italic;
}

/* Estilos de texto específicos */
.texto-glitch {
  color: #0ff;
  text-shadow: 1px 0 red, -1px 0 blue;
  animation: glitch 1s infinite;
}

.texto-error {
  color: #ff5050;
  font-weight: bold;
}

.alerta {
  cursor: pointer;
  color: #f0f;
  text-transform: uppercase;
  animation: parpadeo 0.8s infinite;
}

.tachado {
  text-decoration: line-through;
  color: #888;
}

.voz {
  color: #66f;
  font-style: italic;
}

.grito {
  color: red;
  font-weight: bold;
  font-family: 'Orbitron';
  animation: parpadeo 0.8s infinite;
}

.fragmento-perdido {
  color: #aaa;
  font-style: italic;
  opacity: 0.6;
}

/* From Uiverse.io by KapeParaguay */ 
.buttonpro {
  --btn-default-bg: black;
  --btn-padding: 15px 20px;
  --btn-hover-bg: green;
  --btn-transition: 0.3s;
  --btn-letter-spacing: 0.1rem;
  --btn-animation-duration: 1.2s;
  --btn-shadow-color: rgb(242, 243, 244);
  --btn-shadow: 0 2px 10px 0 var(--btn-shadow-color);
  --hover-btn-color: #7241ff;
  --default-btn-color: #fff;
  --font-size: 16px;
  --font-weight: 600;
  --font-family: Menlo, Roboto Mono, monospace;
  border-radius: 6em;
}

/* button settings 👆 */

.buttonpro {
  box-sizing: border-box;
  padding: var(--btn-padding);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--default-btn-color);
  font: var(--font-weight) var(--font-size) var(--font-family);
  background: var(--btn-default-bg);
  cursor: pointer;
  transition: var(--btn-transition);
  overflow: hidden;
  box-shadow: var(--btn-shadow);
  border-radius: 6em;
  border: 2px solid #2a2b3a;
}

.buttonpro span {
  letter-spacing: var(--btn-letter-spacing);
  transition: var(--btn-transition);
  box-sizing: border-box;
  position: relative;
  background: inherit;
}

.buttonpro span::before {
  box-sizing: border-box;
  position: absolute;
  content: "";
  background: inherit;
}

.buttonpro:focus {
  scale: 1.09;
}
.buttonpro:hover,
.buttonpro:focus {
  background: var(--btn-default-bg);
  box-shadow: 0px 0px 10px 0px rgba(255, 96, 68, 0.7);
  border: 2px solid rgb(255, 21, 0);
}

.buttonpro:hover span,
.buttonpro:focus span {
  color: rgb(141, 12, 9);
}

.buttonpro:hover span::before,
.buttonpro:focus span::before {
  animation: chitchat linear both var(--btn-animation-duration);
}

@keyframes chitchat {
  0% {
    content: "#";
  }

  5% {
    content: ".";
  }

  10% {
    content: "^{!-0";
  }

  15% {
    content: "-!17-%";
  }

  20% {
    content: "#$_(#";
  }

  25% {
    content: "№:0:=$";
  }

  30% {
    content: "#{+.!#=)";}35%{content: "@}-?/%&¡";
  }

  40% {
    content: "?{4@%¡(/)";
  }

  45% {
    content: "=.,^!-?¡&%¿7";
  }

  50% {
    content: "?2@%%$)";
  }

  55% {
    content: "\;1}]#&&(";
  }

  60% {
    content: "?{%:%=)(#$";
    right: 0;
  }

  65% {
    content: "|{f[4";
    right: 0;
  }

  70% {
    content: "{4%0%";
    right: 0;
  }

  75% {
    content: "'1_0<";
    right: 0;
  }

  80% {
    content: "{0%";
    right: 0;
  }

  85% {
    content: "]>'";
    right: 0;
  }

  90% {
    content: "4";
    right: 0;
  }

  95% {
    content: "2";
    right: 0;
  }

  100% {
    content: "";
    right: 0;
  }
}



/* Animaciones */
@keyframes glitch {
  0% { transform: skew(0.5deg); }
  20% { transform: translate(1px, -1px); }
  40% { transform: translate(-1px, 1px); }
  60% { transform: skew(-0.5deg); }
  80% { transform: translate(1px, 1px); }
  100% { transform: none; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(1rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scanlines {
  0% { background-position: 0 0; }
  100% { background-position: 0 4px; }
}

@keyframes parpadeo {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* From Uiverse.io by dominic_2084 */ 
.container-loader {
  display: flex;
  flex-wrap: wrap;
  place-content: center;
  position: relative;


.loader-text-superior {
  font-family: 'Orbitron';
  position: absolute;
  top: 150px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
  font-size: 1.5rem;
  color: #fff;
  pointer-events: none;
}
  .loader2 {
    position: absolute;
    width: 300px;
    height: 300px;
    position: relative;
    transform-style: preserve-3d;
    transform: perspective(500px) rotateX(60deg);

    @media (width <= 1111px) {
      zoom: 0.7;
    }

    .aro {
      position: absolute;
      inset: calc(var(--s) * 10px);
      border: 1px solid white;
      background-color: #fff2;
      clip-path: polygon(0 100%, 50% 0, 100% 100%);
      animation: up_and_down 3s infinite ease-in-out both;
      animation-delay: calc(var(--s) * -0.1s);
    }
  }
}

@keyframes up_and_down {
  0%,
  100% {
    transform: translateZ(-100px);
  }
  50% {
    transform: translateZ(100px);
  }
}


/*flecha*/

/* From Uiverse.io by benjimich */ 
.button {
  position:fixed;
  right: 20px;
  bottom:20px;
  cursor: pointer;
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  width: 70px;
  gap: 4px;
}

.button:hover {
  animation: move 2s infinite ease;
}

@keyframes move {
  0% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(20px);
  }

  100% {
    transform: translateX(0);
  }
}

.round {
  width: 6px;
  height: 6px;
  background: #d9dee2;
  border-radius: 50%;
}

.line {
  display: flex;
  gap: 4px;
}

.two {
  transform: translateX(10px);
}

.three {
  transform: translateX(20px);
}

.four {
  transform: translateX(30px);
}

.five {
  transform: translateX(20px);
}

.six {
  transform: translateX(10px);
}

/* From Uiverse.io by Botwe-Felix5820 */ 
.buttonend {
 height: 3em;
 width: 8em;
 border: none;
 border-radius: 10em;
 background: #515558;
 font-size: 17px;
 color: #ffffff;
 font-family: inherit;
 font-weight: 500;
}

.buttonend:hover {
 animation: shake3856 0.3s linear infinite both;
}

@keyframes shake3856 {
 0% {
  -webkit-transform: translate(0);
  transform: translate(0);
 }

 20% {
  -webkit-transform: translate(-2px, 2px);
  transform: translate(-2px, 2px);
 }

 40% {
  -webkit-transform: translate(-2px, -2px);
  transform: translate(-2px, -2px);
 }

 60% {
  -webkit-transform: translate(2px, 2px);
  transform: translate(2px, 2px);
 }

 80% {
  -webkit-transform: translate(2px, -2px);
  transform: translate(2px, -2px);
 }

 100% {
  -webkit-transform: translate(0);
  transform: translate(0);
 }
}


/*tarjeta*/

.centro {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* From Uiverse.io by 00Kubi */ 
.card {
  width: 300px;
  height: 220px;
  background-color: rgb(255, 255, 255);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 30px;
  gap: 13px;
  position: relative;
  overflow: hidden;
  box-shadow: 2px 2px 20px rgba(0, 0, 0, 0.062);
}

.logo-tarjeta {
  width: 70px;
  height: 30px;
  object-fit: contain;
  display: block;
  margin: 25px auto 0px auto;
}

.cookieHeading {
  margin-top: 10px;
  font-size: 1.2em;
  font-weight: 800;
  color: rgb(26, 26, 26);
}

.cookieDescription {
  margin-top: 5px;
  margin-bottom: 10px;
  text-align: center;
  font-size: 0.7em;
  font-weight: 600;
  color: rgb(99, 99, 99);
}

.cookieDescription a {
  --tw-text-opacity: 1;
  color: rgb(59 130 246);
}

.cookieDescription a:hover {
  -webkit-text-decoration-line: underline;
  text-decoration-line: underline;
}

.buttonContainer {
  margin-bottom: 30px;
  display: flex;
  gap: 20px;
  flex-direction: row;
}

.acceptButton {
  width: 80px;
  height: 30px;
  background-color: #3a5997;
  transition-duration: .2s;
  border: none;
  color: rgb(241, 241, 241);
  cursor: pointer;
  font-weight: 600;
  border-radius: 20px;
  box-shadow: 0 4px 6px -1px #7252e7, 0 2px 4px -1px #977ef3;
  transition: all .6s ease;
}

.declineButton {
  width: 80px;
  height: 30px;
  background-color: #dadada;
  transition-duration: .2s;
  color: rgb(46, 46, 46);
  border: none;
  cursor: not-allowed;
  font-weight: 600;
  border-radius: 20px;
  box-shadow: 0 4px 6px -1px #bebdbd, 0 2px 4px -1px #bebdbd;
  transition: all .6s ease;
}

.declineButton:hover {
  background-color: #ebebeb;
  box-shadow: 0 10px 15px -3px #bebdbd, 0 4px 6px -2px #bebdbd;
  transition-duration: .2s;
}

.acceptButton:hover {
  background-color: #9173ff;
  box-shadow: 0 10px 15px -3px #977ef3, 0 4px 6px -2px #977ef3;
  transition-duration: .2s;
}

/*Loader fragmento 3*/

/* From Uiverse.io by DevVaradPatil */ 
.cssloader-container {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  min-height: unset;
}

.cssloader {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(45deg, transparent, transparent 40%, #e5f403);
  animation: glow 2s linear infinite;
}
@keyframes glow {
  0% {
    transform: rotate(0deg);
    filter: hue-rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
    filter: hue-rotate(360deg);
  }
}
.cssloader::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  background: #212121;
  border-radius: 50%;
  z-index: 1000;
}
.cssloader::after {
  content: "";
  position: absolute;
  top: 0px;
  left: 0px;
  right: 0px;
  bottom: 0px;
  background: linear-gradient(45deg, transparent, transparent 40%, #e5f403);
  border-radius: 50%;
  z-index: 1000;
  z-index: 1;
  filter: blur(30px);
}

/*modulo emocional*/

/* From Uiverse.io by JkHuger */ 
@keyframes typing {
  from {
    width: 0;
}

}

@keyframes blink-caret {
  50% {
    border-color: transparent;
  }
}

.animation {
  color: #593cff;
  font: bold 200% 'Neotriad', monospace;
  border-right: .1em solid black;
  width: 31ch;
  margin: 2em 2em;
  white-space: nowrap;
  overflow: hidden;
  animation: typing 3s steps(31, end), blink-caret .5s step-end infinite alternate;
}

/*fuentes*/

@font-face {
  font-family: 'Orbitron';
  src: url('fuentes/Orbitron-VariableFont_wght.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Neotriad';
  src: url('fuentes/NeotriadFree-1jzAg.otf') format('truetype');
  font-weight: normal;
  font-style: normal;
}