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

html,
body {
  min-height: 100%;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: #0a0a0a;
  color: #f3f3f3;
  overflow-x: hidden;
}

/* =========================
   HEADER
========================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 30;
  padding: 1.4rem 2rem;
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-left {
  display: flex;
  gap: 1.6rem;
}

.nav-left a,
.nav-right a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.nav-left a:hover,
.nav-right a:hover {
  color: rgba(255, 255, 255, 1);
}

.home-link {
  opacity: 0.6;
  white-space: nowrap;
}

/* =========================
   HERO
========================= */

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image: url("./assets/foto1.jpg");
  background-size: cover;
  background-position: 72% center;
  background-repeat: no-repeat;
  filter: grayscale(100%) contrast(1.05) brightness(0.38);
  z-index: 1;
  overflow: hidden;
}

/* glitch sutil en imagen */

.hero-media::before,
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-size: cover;
  background-position: inherit;
  background-repeat: no-repeat;
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.hero-media::before {
  transform: translate(2px, 0);
  filter: contrast(1.15) brightness(0.55) sepia(1) hue-rotate(-35deg) saturate(2);
}

.hero-media::after {
  transform: translate(-2px, 0);
  filter: contrast(1.15) brightness(0.55) sepia(1) hue-rotate(180deg) saturate(2);
}

.hero:hover .hero-media::before,
.hero:hover .hero-media::after {
  opacity: 0.12;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10, 10, 10, 0.96) 0%,
    rgba(10, 10, 10, 0.88) 34%,
    rgba(10, 10, 10, 0.62) 58%,
    rgba(10, 10, 10, 0.28) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 12rem 2rem 3rem 2rem;
  max-width: 760px;
}

.eyebrow {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.74);
  margin-bottom: 1rem;
}

/* =========================
   TITULO
========================= */

h1 {
  position: relative;
  display: inline-block;
  font-size: clamp(3rem, 5vw, 5.2rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.92;
  max-width: 6ch;
  color: rgba(255, 255, 255, 0.92);
  transition: opacity 0.2s ease;
}

h1:hover {
  opacity: 0.85;
  animation: subtleInterference 0.22s ease;
}

@keyframes subtleInterference {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-0.5px, 0.5px); }
  40% { transform: translate(0.5px, -0.5px); }
  60% { transform: translate(-0.35px, 0.35px); }
  80% { transform: translate(0.35px, -0.35px); }
  100% { transform: translate(0, 0); }
}

/* =========================
   TEXTO
========================= */

.subtitle {
  margin-top: 2.2rem;
  max-width: 30rem;
  font-size: clamp(1rem, 1.2vw, 1.08rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.74);
}

/* =========================
   LINKS HERO
========================= */

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  margin-top: 3rem;
}

.hero-links a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 1rem;
  position: relative;
  padding-bottom: 0.15rem;
}

.hero-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.55);
  transform: scaleX(0.35);
  transform-origin: left;
  transition: transform 0.25s ease, background 0.25s ease;
}

.hero-links a:hover::after {
  transform: scaleX(1);
  background: rgba(255, 255, 255, 0.95);
}

/* =========================
   PAGINAS INTERNAS
========================= */

.page {
  padding: 10rem 2rem 4rem 2rem;
  max-width: 800px;
}

.page h1 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  margin-bottom: 1.5rem;
}

.page p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.75);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 980px) {
  .hero-media {
    background-position: 68% center;
    filter: grayscale(100%) contrast(1.05) brightness(0.32);
  }

  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(10, 10, 10, 0.88) 0%,
      rgba(10, 10, 10, 0.72) 40%,
      rgba(10, 10, 10, 0.9) 100%
    );
  }

  .hero-content {
    max-width: 100%;
    padding: 8rem 1.5rem 2.5rem 1.5rem;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(3rem, 8vw, 5.5rem);
  }

  .subtitle {
    max-width: 32rem;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 1rem 1rem;
  }

  .top-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .nav-left {
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
  }

  .hero-content {
    padding: 7rem 1rem 2rem 1rem;
  }

  h1 {
    font-size: clamp(2.6rem, 8vw, 4.2rem);
  }

  .subtitle {
    margin-top: 1.25rem;
    max-width: 100%;
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .hero-links {
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
  }
}
