/* -------------------------------------------------
   Diseña Hackathon – Styles
   Palette:
     • Hot Pink    #FA0065
     • Cyan        #00EED0
     • Dark Navy   #0E0441
     • Deep Navy   #08032A
   ------------------------------------------------- */

/* =================================================
   KEYFRAMES
   ================================================= */

@keyframes glitch {
  0% {
    text-shadow: none;
    transform: translate(0);
  }

  20% {
    text-shadow: -3px 0 #00EED0, 3px 0 #FA0065;
    transform: translate(-2px, 0);
  }

  40% {
    text-shadow: 3px 0 #00EED0, -3px 0 #FA0065;
    transform: translate(2px, 0);
  }

  60% {
    text-shadow: -3px 0 #FA0065, 3px 0 #00EED0;
    transform: translate(-1px, 0);
  }

  80% {
    text-shadow: none;
    transform: translate(1px, 0);
  }

  100% {
    text-shadow: none;
    transform: translate(0);
  }
}

@keyframes floatUpDown {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(25px);
  }
}

@keyframes pulseGlowCyan {

  0%,
  100% {
    box-shadow: 0 0 20px #00EED0;
  }

  50% {
    box-shadow: 0 0 45px #00EED0, 0 0 80px rgba(0, 238, 208, 0.3);
  }
}

@keyframes pulseGlowPink {

  0%,
  100% {
    box-shadow: 0 0 20px #FA0065;
  }

  50% {
    box-shadow: 0 0 45px #FA0065, 0 0 80px rgba(250, 0, 101, 0.3);
  }
}

@keyframes scanline {
  0% {
    top: 0%;
  }

  100% {
    top: 100%;
  }
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes heroTitleIn {
  from {
    opacity: 0;
    transform: translateY(-25px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.65) translateY(30px);
  }

  70% {
    transform: scale(1.06) translateY(-5px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}


@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Bebas+Neue&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Space Mono', monospace;
  background-color: #FA0065;
  color: #ffffff;
  padding: 20px;
  margin: 0 auto;
  overflow-x: hidden;
  cursor: url('./cursor-default.svg') 2 2, auto;
}

.back-to-home {
  position: fixed;
  top: 30px;
  left: 30px;
  z-index: 1000;
  margin: 0;
  padding: 0;
}

.back-to-home a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #0E0441;
  color: #ffffff;
  text-decoration: none;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  padding: 10px 16px;
  border: 3px solid #ffffff;
  box-shadow: 4px 4px 0px #FA0065;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

a {
  cursor: url('./cursor-pointer.png') 2 2, auto;
}

.back-to-home a::before {
  content: "◀";
  font-size: 12px;
  transition: transform 0.2s ease;
}

.back-to-home a:hover {
  background-color: #FA0065;
  color: #ffffff;
  border-color: #00EED0;
  box-shadow: 2px 2px 0px #00EED0;
  transform: translate(2px, 2px);
}

.back-to-home a:hover::before {
  transform: translateX(-2px);
}

.back-to-home a:active {
  transform: translate(4px, 4px);
  box-shadow: 0px 0px 0px transparent;
}

.wrapper {
  padding: 30px;
  background-color: #0a0235;
  background-image: url("../img/bg-img/diseñahackathonbg.png");
}

/* =================================================
   HERO
   ================================================= */
.hero {
  background-color: #FA0065;
  min-height: 82vh;
  display: grid;
  /* Col 1: illustration (overflows naturally), Col 2: title */
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr auto;
  position: relative;
}

.hero * {
  cursor: url('./cursor-alt.png') 2 2, auto;
}

/* ── Illustration – left column, spans both rows ── */
.hero-illustration {
  grid-column: 1;
  grid-row: 1 / 3;
  /* stretches through title row AND tagline row */
  position: relative;
  z-index: 1;
}

.hero-illustration img {
  display: block;
  position: absolute;
  top: -7%;
  left: -10%;
  height: 125%;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: left top;
  animation: floatUpDown 5s ease-in-out infinite;
}

/* ── Title – right column, first row ── */
.hero-title-block {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 30px 20px 16px 0;
  z-index: 2;
}

.hero-title {
  font-family: 'Bebas Neue', 'Space Mono', monospace;
  font-size: clamp(4.5rem, 14vw, 10.5rem);
  color: #ffffff;
  line-height: 1.0;
  text-align: left;
  letter-spacing: 10px;
  animation: heroTitleIn 1.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-title:hover {
  animation: glitch 0.4s steps(1) infinite;
}

/* ── Tagline – right column, second row, pinned to bottom-right ── */
.tagline {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  height: 10vh;
  justify-content: flex-end;
  align-items: center;
  border-top: 2px solid rgba(255, 255, 255, 0.35);
  padding: 10px 20px 10px 0;
  z-index: 2;
}

.tagline-track {
  display: flex;
  white-space: nowrap;
}

.tagline-track span {
  font-family: 'Space Mono', monospace;
  font-size: 1.5rem;
  letter-spacing: 3px;
  color: #ffffff;
  text-transform: uppercase;
}

/* =================================================
   POPUP OVERLAY
   ================================================= */
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(8, 3, 42, 0.85); /* Semi-transparent deep navy */
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease;
}

.popup-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.overlay-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(250, 0, 101, 0.03) 2px,
    rgba(250, 0, 101, 0.03) 4px
  );
  z-index: 1;
}

.popup-box {
  position: relative;
  z-index: 2;
  background-color: rgba(14, 4, 65, 0.95);
  border: 2px solid #FA0065;
  border-radius: 4px;
  padding: 48px 40px;
  max-width: 600px;
  width: 90%;
  text-align: center;
  box-shadow: 0 0 30px rgba(250, 0, 101, 0.25), inset 0 0 60px rgba(250, 0, 101, 0.05);
  animation: popIn 0.8s ease both, pulseGlowPink 3s ease-in-out infinite;
}

.popup-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: transparent;
  border: none;
  color: #FA0065;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

.popup-close:hover {
  transform: scale(1.2);
  color: #00EED0;
}

.consigna-context {
  margin-bottom: 30px;
}

.consigna-context h2 {
  font-family: 'Space Mono', monospace;
  font-size: clamp(1.4rem, 4vw, 2.5rem);
  color: #00EED0;
  letter-spacing: 3px;
  font-weight: 700;
  margin-bottom: 12px;
}

.consigna-context p {
  font-family: 'Space Mono', monospace;
  font-size: clamp(0.9rem, 1.8vw, 1.25rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.btn-consigna {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #FA0065;
  color: #ffffff;
  text-decoration: none;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  text-transform: uppercase;
  padding: 16px 32px;
  border: 3px solid #00EED0;
  box-shadow: 6px 6px 0px #00EED0;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: url('./cursor-pointer.png') 2 2, auto;
  text-align: center;
  animation: pulseGlowPink 3s ease-in-out infinite;
}

.btn-consigna:hover {
  transform: translate(2px, 2px);
  box-shadow: 4px 4px 0px #00EED0;
  background-color: #00EED0;
  color: #0a0235;
  border-color: #FA0065;
  animation: none;
}

.btn-consigna:active {
  transform: translate(6px, 6px);
  box-shadow: 0px 0px 0px transparent;
}

/* =================================================
   PARTICIPATE SECTION
   ================================================= */
.participate {
  padding: 0 20px;
  margin: 20px auto;
}

.participate-box {
  border: 2px solid #FA0065;
  border-radius: 4px;
  padding: 24px 22px;
  background-color: #0a0235;
  box-shadow: 0 0 20px #FA0065;
  animation: pulseGlowPink 3s ease-in-out infinite;
  transition: transform 0.3s ease;
  margin: 40px auto;
}


.participate-title {
  font-family: 'Space Mono', monospace;
  font-size: clamp(1rem, 3.5vw, 2.25rem);
  color: #FA0065;
  text-align: center;
  letter-spacing: 2px;
  margin-bottom: 22px;
  font-weight: 700;
}

.participate-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.participate-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: clamp(0.9rem, 1.8vw, 1.25rem);
  line-height: 1.55;
  color: #ffffff;
  transition: transform 0.2s ease;
}

.participate-list li:hover {
  transform: translateX(8px);
}

.participate-list li .arrow {
  color: #FA0065;
  font-weight: 700;
  flex-shrink: 0;
  font-size: 1rem;
  margin-top: 1px;
  display: inline-block;
  transition: transform 0.2s ease, color 0.2s ease;
}

.participate-list li:hover .arrow {
  transform: scale(1.5);
  color: #00EED0;
}

.cyan {
  color: #00EED0;
  font-weight: 700;
}

.pink {
  color: #FA0065;
  font-weight: 700;
}

/* =================================================
   DESCRIPTION SECTION
   ================================================= */
.description {
  padding: 0 20px;
  margin: 50px auto;
  background-image: url(../img/bg-img/bolabrillo.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.description h1 {
  font-family: 'Space Mono', monospace;
  font-size: clamp(1rem, 3.5vw, 2.25rem);
  color: #fff;
  text-align: center;
  letter-spacing: 2px;
  margin-bottom: 22px;
  font-weight: 700;
}

.description h1 span {
  color: #00EED0;
}

.description h2 {
  font-family: 'Space Mono', monospace;
  font-size: 3rem;
  color: #fff;
  text-align: center;
  letter-spacing: 2px;
  margin-bottom: 22px;
  font-weight: 700;
  background-color: #FA0065;
  width: fit-content;
  margin: 0 auto 22px auto;
  padding: 0 15px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: transform 0.7s ease, letter-spacing 0.7s ease, color 0.7s ease;
}

.description h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 150%;
  height: 100%;
  background-color: #00EED0;
  transform: skewX(25deg) translateX(-120%);
  z-index: -1;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.description h2:hover {
  transform: scale(1.06);
  letter-spacing: 8px;
  color: #0a0235;
}

.description h2:hover::before {
  transform: skewX(25deg) translateX(-10%);
}

.description h3 {
  font-family: 'Space Mono', monospace;
  font-size: 3rem;
  background-color: #00EED0;
  color: #0a0235;
  width: fit-content;
  text-align: center;
  letter-spacing: 2px;
  margin-bottom: 22px;
  font-weight: 700;
  padding: 0 15px;
  margin: 0 auto 10px;
}

.description p {
  font-family: 'Space Mono', monospace;
  font-size: 30px;
  color: #fff;
  text-align: center;
  letter-spacing: 2px;
  margin-bottom: 22px;
  font-weight: 700;
  width: 80%;
  margin: 0 auto;
}

/* =================================================
   DATES SECTION
   ================================================= */
.dates {
  padding: 0 20px;
  margin: 20px auto;
  background-image: url(../img/bg-img/bolabrillo.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.dates h1 span {
  color: #00EED0;
}

.dates-box {
  border: 2px solid #00EED0;
  border-radius: 4px;
  padding: 24px 22px;
  background-color: #0a0235;
  box-shadow: 0 0 20px #00EED0;
  animation: pulseGlowCyan 3s ease-in-out infinite;
  transition: transform 0.3s ease;
}


.dates-title {
  font-family: 'Space Mono', monospace;
  font-size: clamp(1rem, 3.5vw, 2.25rem);
  color: #00EED0;
  text-align: center;
  letter-spacing: 2px;
  margin-bottom: 22px;
  font-weight: 700;
}

.dates-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dates-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: clamp(0.9rem, 1.8vw, 1.25rem);
  line-height: 1.55;
  color: #ffffff;
  transition: transform 0.2s ease;
}

.dates-list li:hover {
  transform: translateX(8px);
}

.dates-list li .arrow {
  color: #FA0065;
  font-weight: 700;
  flex-shrink: 0;
  font-size: 1rem;
  margin-top: 1px;
}


/* =================================================
   REGISTER / QR SECTION
   ================================================= */
.register {
  background-color: #FA0065;
  padding: 28px 22px;
}

.register-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.register-text {
  flex: 1;
  min-width: 0;
}

.register-title {
  font-family: 'Bebas Neue', 'Space Mono', monospace;
  font-size: clamp(2rem, 5vw, 4rem);
  color: #ffffff;
  line-height: 1.05;
  letter-spacing: 4px;
  margin: 0;
  animation: heroTitleIn 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.register a {
  text-decoration: none;
  font-family: 'Space Mono', monospace;
  font-size: clamp(0.7rem, 1.5vw, 1rem);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 12px;
  display: block;
}

.register a span {
  color: #0E0441;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.register-sub {
  font-family: 'Space Mono', monospace;
  font-size: clamp(0.7rem, 1.5vw, 1rem);
  letter-spacing: 2px;
  color: #00EED0;
  text-transform: uppercase;
  font-weight: 700;
}

.qr-wrapper {
  flex-shrink: 0;
  width: clamp(140px, 20vw, 300px);
  height: clamp(140px, 20vw, 300px);
  background-color: #ffffff;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.qr-wrapper:hover {
  transform: scale(1.08);
  box-shadow: 0 0 30px rgba(0, 238, 208, 0.6);
}

.qr-wrapper::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #00EED0, transparent);
  animation: scanline 2s linear infinite;
  z-index: 2;
  pointer-events: none;
}

#qr-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* =================================================
   SCROLL REVEAL – base state (JS toggles .is-visible)
   ================================================= */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1.1s ease, transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =================================================
   FOOTER BAR
   ================================================= */
.footer-bar {
  background-color: #0E0441;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 14px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.footer-bar p {
  font-family: 'Space Mono', monospace;
  font-size: clamp(0.65rem, 1.5vw, 1rem);
  letter-spacing: 2px;
  color: #ffffff;
  text-transform: uppercase;
  text-align: center;
}

.footer-accent {
  position: absolute;
  right: 18px;
  bottom: 6px;
  display: flex;
  gap: 5px;
}

.footer-accent::before,
.footer-accent::after {
  content: '';
  display: block;
  width: 10px;
  height: 22px;
  background-color: #00EED0;
  border-radius: 2px;
  animation: pulseGlowCyan 2s ease-in-out infinite;
}

.footer-accent::after {
  animation-delay: 0.5s;
}

/* =================================================
   RESPONSIVE – Tablet  (≤ 768px)
   ================================================= */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .wrapper {
    padding: 16px;
  }

  .hero {
    /* Single column, image as background via pseudo-element */
    min-height: 75vw;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    position: relative;
  }

  /* Hide the <img> element – image becomes a pseudo-element background */
  .hero-illustration {
    display: none;
  }

  /* Faded image as hero background */
  .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("../img/core-img/imgDiseñaHackathon.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left center;
    opacity: 0.25;
    z-index: 0;
  }

  /* Title: full width, right-aligned, on top of faded image */
  .hero-title-block {
    grid-column: 1;
    grid-row: 1;
    justify-content: flex-end;
    align-items: center;
    padding: 30px 20px 16px 20px;
    z-index: 2;
  }

  .hero-title {
    font-size: clamp(3.5rem, 18vw, 7rem);
    text-align: right;
  }

  /* Tagline: full width, right-aligned */
  .tagline {
    grid-column: 1;
    grid-row: 2;
    justify-content: flex-end;
    padding: 10px 20px;
    z-index: 2;
  }

  .tagline span {
    font-size: clamp(0.6rem, 2.5vw, 0.9rem);
    letter-spacing: 2px;
  }

  .participate {
    padding: 0 8px;
    margin: 50pcpx auto;
  }

  .participate-box {
    padding: 18px 14px;
  }

  .register {
    padding: 20px 14px;
  }

  .back-to-home {
    top: 20px;
    left: 20px;
  }

  .back-to-home a {
    font-size: 12px;
    padding: 8px 12px;
    border-width: 2px;
    box-shadow: 3px 3px 0px #FA0065;
  }

  .description h2 {
    font-size: 2.2rem;
  }

  .description h3 {
    font-size: 2.2rem;
  }

  .description p {
    font-size: 1.5rem;
    width: 95%;
  }
}

/* =================================================
   RESPONSIVE – Mobile  (≤ 480px)
   ================================================= */
@media (max-width: 480px) {
  body {
    padding: 8px;
  }

  .wrapper {
    padding: 10px;
  }

  .hero {
    min-height: 85vw;
  }

  .hero::before {
    background-position: left top;
    opacity: 0.2;
    /* slightly more faded on small screens */
  }

  .hero-title {
    font-size: clamp(3rem, 22vw, 5.5rem);
  }

  .participate-list li {
    font-size: 0.88rem;
  }

  .register-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .register-title {
    text-align: center;
  }

  .qr-wrapper {
    width: 130px;
    height: 130px;
    align-self: center;
    margin-top: 15px;
  }

  .description h2 {
    font-size: 1.8rem;
  }

  .description h3 {
    font-size: 1.8rem;
  }

  .description p {
    font-size: 1.2rem;
    width: 100%;
  }

  .footer-bar p {
    font-size: 0.6rem;
    letter-spacing: 1px;
  }

  .footer-accent {
    display: none;
  }

  .back-to-home {
    top: 10px;
    left: 10px;
  }

  .back-to-home a {
    font-size: 11px;
    padding: 6px 10px;
    border-width: 2px;
    box-shadow: 2px 2px 0px #FA0065;
  }
}

.cyan {
  color: #00EED0;
  font-weight: 700;
}

.pink {
  color: #FA0065;
  font-weight: 700;
}