body {
    background-color: #232323;
    font-variant-numeric: oldstyle-nums;
    text-align: center;
    background: linear-gradient(315deg, rgba(23,23,23,1) 3%, rgb(46, 39, 24) 38%, rgb(27, 24, 24) 75%, rgb(31, 7, 7) 98%);
    animation: gradient 15s ease infinite;
    background-size: 400% 400%;
    background-attachment: fixed;
}

@keyframes gradient {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

.wave {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 1000% 1000% 0 0;
    position: fixed;
    width: 200%;
    height: 12em;
    animation: wave 10s -3s linear infinite;
    transform: translate3d(0, 0, 0);
    opacity: 0.8;
    bottom: 0;
    left: 0;
    z-index: -1;
}

.wave:nth-of-type(2) {
    bottom: -1.25em;
    animation: wave 18s linear reverse infinite;
    opacity: 0.8;
}

.wave:nth-of-type(3) {
    bottom: -2.5em;
    animation: wave 20s -1s reverse infinite;
    opacity: 0.9;
}

@keyframes wave {
    2% {
        transform: translateX(1);
    }

    25% {
        transform: translateX(-25%);
    }

    50% {
        transform: translateX(-50%);
    }

    75% {
        transform: translateX(-25%);
    }

    100% {
        transform: translateX(1);
    }
}


main {
    max-width: 800px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    font-family: "itc-benguiat", serif;
    font-weight: 400;
    font-style: normal; 
    text-transform: uppercase;
    font-size: 3.3rem;
    letter-spacing: -0.02em;
    margin-block-start: 0.3em;
    margin-block-end: 0em;
    color: white;
}

h2 {
    font-family: "itc-benguiat", serif;
    font-weight: 400;
    /*font-style: normal; */
    text-transform: uppercase;
    letter-spacing: 0.02rem;
    text-align: center;
    color: white;
    line-height: 1;
    margin: 0;
     
}

p {
    font-family: "portada-text", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 0.9rem;
    text-align: left;
    line-height: 160%;
    color: white;
    letter-spacing: 0.03rem;
}

.rojo { 
    background-color: #cf2e2e;
    padding: 0.6em 1.4em;
    width: fit-content; 
    height: fit-content;
    border-radius: 9999px; 
    margin-top: 6%;
    margin-bottom: 1%;

}
h4 {
    font-family: "Source Sans 3", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: white;
    font-size: 1.3rem;
}

/* SECTION */

.cards-section {
  position: relative;
  overflow-y: hidden;

  -ms-overflow-style: none;  /* IE y Edge */
  scrollbar-width: none;  
}

.cards-sticky {
  position: sticky;
  top: 0;
  width: 80vw;
  margin: auto;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.cards-wrapper {
  display: flex;
  gap: 2rem;
  padding: 2rem;
  will-change: transform;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); /
}
.cards-section::-webkit-scrollbar {
    display: none;
}

/*nav lateral*/
.cards-indicator {
  position: fixed;
  right: 3%;
  top: 60%;
  transform: translateY(-50%);
  z-index: 20;
}

.cards-indicator ul {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

.cards-indicator li {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: none;
  border: 1px solid white;
  margin: 1rem 0;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cards-indicator li.active {
    background: #cf2e2e;
    border-color: white;
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(207, 46, 46, 0.5);
    z-index: -1;
}



/* CARD BASE */

.card {
  perspective: 1200px;
  flex: 0 0 auto;
  width: 320px;
  aspect-ratio: 4 / 5;
  cursor: pointer;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s ease;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.card.flipped .card-inner {
  transform: rotateY(180deg);
}


/* FACES */

.card-face {
  position: absolute;
  inset: 0;
  border-radius: 15px;
  overflow: hidden;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card-face {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
/* FRONT */

.card-front {
  background-size: cover;
  background-position: center;
  padding: 2rem;
  color: white;
}

.card-front h2 {
  margin: 0;
  font-size: 1.6rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.card-front h5 {
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  font-weight: 400;
  font-size: 1.3rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.8);

}

/* BACK */

.card-back {
  background: #111;
  color: white;
  padding: 1.5rem;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-back .text {
  text-align: left;
  font-size: 0.9rem;
  line-height: 1.4;
}

.back-img {
  text-align: center;
}

.card-back button {
  font-family: "itc-benguiat", serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02rem;
  line-height: 1;
  background: none;
  color: white;
  border: none;
  margin: 0;
  padding: 0;
  cursor: pointer;
}

.card-back button .rojo {
    display: inline-block;
    cursor: pointer;
}

.caption {
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

/* SCROLL HORIZONTAL SOLO DESKTOP */

@media (min-width: 768px) {
  .cards-section {
    overflow-x: auto;
  }

  .cards-wrapper {
    flex-direction: row;
  }
}

/* MOBILE STACK */
@media (max-width: 767px) {

  .cards-indicator {
    display: none;
  }

  .cards-sticky {
    position: relative;
    width: 100%;
    overflow: visible;
  }

  .cards-section {
    height: auto;
    overflow: visible;
  }

  .cards-wrapper {
    flex-direction: column;
    transform: none !important;
  }

  .card {
    width: 100%;
    width: 80vw;
    margin: 0 auto;
  }

  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.3rem;
  }
}
.gosh {
   animation: lights 4s linear infinite;
}

@keyframes lights {
  0% {
    color: var(--tx-color);
    text-shadow:
      0 0 1em hsla(346, 100%, 50%, 0.5),
      0 0 0.125em hsla(340, 100%, 60%, 0.6),
      -1em -0.125em 0.5em hsla(40, 100%, 60%, 0),
      1em 0.125em 0.5em hsla(200, 100%, 60%, 0);
  }
  
  30% { 
    color: var(--tx-color);
    text-shadow:
      0 0 1em hsla(0, 100%, 50%, 0.5),
      0 0 0.125em hsla(353, 100%, 60%, 0.6),
      -0.5em -0.125em 0.25em hsla(40, 100%, 60%, 0.4),
      0.5em 0.125em 0.25em hsla(200, 100%, 60%, 0.7);
  }
  
  40% { 
    color: var(--tx-color);
    text-shadow:
      0 0 1em hsla(343, 100%, 50%, 0.7),
      0 0 0.125em hsla(320, 100%, 90%, 0.6),
      -0.25em -0.125em 0.125em hsla(40, 100%, 60%, 0.3),
      0.25em 0.125em 0.125em hsla(200, 100%, 60%, 0.8);
  }
  
  70% {
    color: var(--tx-color);
    text-shadow:
      0 0 1em hsla(334, 100%, 50%, 0.8),
      0 0 0.125em hsla(347, 100%, 60%, 0.8),
      0.5em -0.125em 0.25em hsla(40, 100%, 60%, 0.4),
      -0.5em 0.125em 0.25em hsla(200, 100%, 60%, 0.8);
  }
  
  100% {
    color: var(--tx-color);
    text-shadow:
      0 0 1em hsla(350, 100%, 50%, 0.4),
      0 0 0.125em hsla(0, 100%, 60%, 0.6),
      1em -0.125em 0.5em hsla(40, 100%, 60%, 0),
      -1em 0.125em 0.5em hsla(200, 100%, 60%, 0);
  }
  
}

.masked-text {
  background-image: url('/Assets/efecto.jpg'); 
    background-size: 200%; /* Enlarged for smooth animation */
    background-position: 0 50%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: animate-background 5s infinite alternate linear;
}

@keyframes animate-background {
    0% {
        background-position: 0 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

.glitch {
  position: relative;
  animation: signalDrop 6s infinite;
  animation-delay: 0s;
}

@keyframes signalDrop {
  0%,
  20%,
  100% {
    opacity: 1;
    /*transform: translate(0, 0);*/
  }

  50% {
    opacity: 0;
  }

  80% {
    opacity: 0.5;
    /*transform: translate(1px, 0px);*/
  }

  91% {
    /*transform: translate(0px, 0px);*/
     opacity: 0.8;
  }
}

.spy {
  animation: shake 12s linear infinite;
}

@keyframes shake {
    15%, 40%, 100% {
        filter: blur(0.008em);
        color: white;
    }

    0%, 30%, 70% {
        filter: blur(0.06em);
        color: rgba(235, 91, 2, 0.2);
    }
}

.fire {
  animation: fuego 2s infinite alternate;
  color: #ffffff; /* Color base blanco para mejor contraste */
}

@keyframes fuego {
  0% {
    text-shadow: 
      0 -5px 8px #ff9900,
      0 -10px 15px #ff5500,
      0 -15px 25px #ff3300,
      0 -20px 35px #ff2200,
      0 -25px 45px #cc0000,
      2px 2px 10px rgba(255, 100, 0, 0.6),
      -2px -2px 10px rgba(255, 80, 0, 0.4);
  }
  
  25% {
    text-shadow: 
      0 -6px 10px #ffaa00,
      0 -13px 18px #ff6600,
      0 -18px 30px #ff4400,
      0 -23px 40px #ff3300,
      0 -28px 50px #dd2200,
      3px 1px 15px rgba(255, 120, 0, 0.8),
      -1px -3px 15px rgba(255, 90, 0, 0.6);
  }
  
  50% {
    text-shadow: 
      0 -8px 12px #ffbb00,
      0 -15px 22px #ff7700,
      0 -22px 38px #ff5500,
      0 -28px 48px #ff4400,
      0 -32px 55px #ee3300,
      4px -1px 20px rgba(255, 140, 0, 0.9),
      -3px 2px 20px rgba(255, 100, 0, 0.7);
  }
  
  75% {
    text-shadow: 
      0 -5px 9px #ffaa00,
      0 -12px 19px #ff6600,
      0 -19px 32px #ff4400,
      0 -24px 42px #ff3300,
      0 -29px 52px #dd2200,
      1px 3px 17px rgba(255, 120, 0, 0.8),
      -2px -2px 17px rgba(255, 90, 0, 0.6);
  }
  
  100% {
    text-shadow: 
      0 -5px 8px #ff9900,
      0 -10px 15px #ff5500,
      0 -15px 25px #ff3300,
      0 -20px 35px #ff2200,
      0 -25px 45px #cc0000,
      2px 2px 10px rgba(255, 100, 0, 0.6),
      -2px -2px 10px rgba(255, 80, 0, 0.4);
  }
}

.secret-title {
  font-size: clamp(2rem, 5vw, 4rem);
  position: relative;
  display: inline-block;
}