/* style.css */
body {
  margin: 0;
  font-family: 'Special Elite', monospace;
  background-color: #111;
  color: #eee;
  overflow-x: hidden;
}

h1, h2, h3, p, a, nav, button {
  font-family: 'Special Elite', monospace;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 10;
  padding: 1rem;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 0;
  margin: 0;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

.full-screen {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.background-image.hero {
  background: url('img/hero.jpg') no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}

.background-image.historia {
  background: url('img/fondo_historia.jpg') no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
}

.centered-text {
  text-align: center;
  color: #fff;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

.two-columns {
  display: flex;
  justify-content: space-around;
  padding: 5rem 2rem;
  flex-wrap: wrap;
  background-color: #1a1a1a;
  margin: 0;
}

.column {
  flex: 1 1 300px;
  margin: 1rem;
  text-align: center;
}

.column img {
  width: 100%;
  max-width: 300px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.overlay {
  background-color: rgba(0, 0, 0, 0.7);
  padding: 2rem;
  width: 100%;
}

.content-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.image-column img {
  width: 100%;
  max-width: 400px;
  border: 4px solid #333;
}

.text-column {
  max-width: 500px;
  color: #ccc;
  font-size: 1.2rem;
}

.text-column audio {
  width: 100%;
  margin-top: 1rem;
  filter: invert(1) brightness(0.9) contrast(1.2);
  border-radius: 6px;
}

#audio-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #222;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
  z-index: 1000;
}

@media screen and (max-width: 768px) {
  .two-columns {
    flex-direction: column;
    align-items: center;
  }

  .content-columns {
    flex-direction: column;
  }

  header nav ul {
    flex-direction: column;
    gap: 1rem;
  }
}

#hero h1 {
  font-size: 8rem;        /* ~64px */
  line-height: 1.1;
}

#hero p {
  font-size: 1.5rem;      /* ~24px */
  opacity: 0.9;
}

#galeria p {
  font-size: 1.2rem;      /* ~19px */
  margin-top: 0.5rem;
}

#historia .text-column p {
  font-size: 1.3rem;      /* ~21px */
  line-height: 1.6;
}

#historia audio {
  margin-top: 1rem;
}

nav a {
  font-size: 1rem;        /* ~16px */
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media screen and (max-width: 768px) {
  #hero h1 {
    font-size: 2.5rem;
  }

  #hero p {
    font-size: 1.2rem;
  }

  #galeria p,
  #historia .text-column p {
    font-size: 1rem;
  }

  nav a {
    font-size: 0.9rem;
  }
}

 /* Glitch overlay */
.glitch-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 0, 0, 0.3),
    rgba(255, 0, 0, 0.3) 2px,
    rgba(0, 255, 255, 0.3) 2px,
    rgba(0, 255, 255, 0.3) 4px
  );
  mix-blend-mode: screen;
  z-index: 999;
  opacity: 0;
  animation: none;
}

.glitch-overlay.active {
  opacity: 0.1;
  animation: glitch-flicker 0.3s infinite;
}

@keyframes glitch-burst {
  0% {
    opacity: 1;
    transform: scale(1.1) rotate(1deg);
    filter: hue-rotate(0deg) saturate(4) brightness(1.4) blur(1px);
  }
  25% {
    transform: translate(-10px, 6px) rotate(-1deg);
  }
  50% {
    transform: translate(10px, -6px) scale(1.05) rotate(2deg);
  }
  75% {
    transform: translate(-4px, 3px) rotate(-2deg);
  }
  100% {
    opacity: 0;
    transform: none;
    filter: none;
  }
}


.glitch-flash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 0, 0, 0.9),
    rgba(255, 0, 0, 0.9) 2px,
    rgba(100, 0, 0, 0.6) 2px,
    rgba(100, 0, 0, 0.6) 4px
  );
  z-index: 999;
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: 0;
}

.glitch-flash.active {
  animation: glitch-burst 0.8s steps(2, end) forwards;
}

@keyframes glitch-burst {
  0% {
    opacity: 1;
    transform: scale(1.2) rotate(2deg);
    filter: contrast(3) brightness(1.8) blur(1.5px) saturate(5);
  }
  15% {
    transform: translate(-15px, 10px) rotate(-2deg);
  }
  30% {
    transform: translate(12px, -12px) scale(1.15) rotate(3deg);
  }
  50% {
    transform: translate(-8px, 6px) scale(1.1);
  }
  70% {
    transform: translate(5px, -5px);
  }
  90% {
    transform: translate(-2px, 2px);
  }
  100% {
    opacity: 0;
    transform: none;
    filter: none;
  }
}

.kate-hover-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 300px;
}

.kate-hover-wrapper img {
  width: 100%;
  display: block;
  transition: opacity 0.6s ease;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.kate-hover-wrapper img.top-image {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 1;
  z-index: 2;
}

.kate-hover-wrapper:hover img.top-image {
  opacity: 0;
}

body.glitching::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: inherit;
  z-index: 998;
  pointer-events: none;
  mix-blend-mode: screen;
  filter: brightness(1.8) contrast(2) saturate(6) hue-rotate(-10deg)
          drop-shadow(4px 0 red);
  transform: translate(4px, -4px);
  opacity: 0.4;
}

.ghost-layer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 998;
  pointer-events: none;
  transform: translate(6px, -6px);
  filter: brightness(2) contrast(2.5) saturate(4) hue-rotate(-15deg);
  mix-blend-mode: screen;
  opacity: 0.4;
  overflow: hidden;
}

.ghost-layer.active {
  display: block;
  animation: ghost-glitch 0.8s ease;
}

@keyframes ghost-glitch {
  0% { transform: translate(6px, -6px); }
  50% { transform: translate(-4px, 4px); }
  100% { transform: translate(6px, -6px); }
}

.glitch-image {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 998;
  mix-blend-mode: screen;
  opacity: 0.4;
  filter: brightness(1.4) contrast(2.5) saturate(3) blur(0.5px);
  pointer-events: none;
}

.glitch-image.active {
  display: block;
  animation: glitch-fade 1s ease-out;
}

@keyframes glitch-fade {
  0% { opacity: 0.4; transform: scale(1.05)}
  50% { opacity: 0.6; transform: scale(1.1)}
  100% { opacity: 0; transform: scale(1.05)}
}