/* -----------------------------
   Base reset / defaults
------------------------------ */

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

html, body {
  height: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #0d0f10;
  color: #e2e4e5;
  line-height: 1.45;
}

/* -----------------------------
   Header
------------------------------ */

.site-header {
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 10;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1px 24px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 100px;
  width: auto;
}

.main-nav a {
  margin-left: 24px;
  text-decoration: none;
  color: #cfd3d6; /* blanco roto frío */
  font-size: 16px;
  font-weight: 400;
}

.main-nav a:hover {
  color: #ffffff;
}

/* -----------------------------
   Hero
------------------------------ */

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

  background-image: url("../img/backgroundbike.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  align-items: flex-end;
}

/* 
  Overlay documental / unix:
  - baja saturación
  - controla blancos del graffiti
  - no efecto cinematográfico
*/
.hero-overlay {
  position: absolute;
  inset: 0;

  /* Base oscura */
  background-color: rgba(10, 12, 18, 0.55);

  /* Procesamiento digital */
  backdrop-filter:
    saturate(120%)
    contrast(125%)
    brightness(85%)
    hue-rotate(-15deg);

  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    120deg,
    rgba(255, 0, 180, 0.15),
    rgba(0, 180, 255, 0.15)
  );

  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 2;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;

  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0.2) 0px,
    rgba(0,0,0,0.2) 1px,
    transparent 2px,
    transparent 3px
  );

  mix-blend-mode: multiply;
  opacity: 0.6;
  pointer-events: none;
  z-index: 1;
}




.hero-content {
  position: relative;
  z-index: 2;

  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px 48px;
}

/* -----------------------------
   Editorial line
------------------------------ */

.editorial-line {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: #a6abb0; /* gris metadata */
  letter-spacing: 0.6px;
  text-transform: lowercase;
}

/* -----------------------------
   Footer
------------------------------ */

.site-footer {
  background-color: #0d0f10;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}



.legal-nav a {
  margin-right: 16px;
  font-size: 11.5px;
  color: #6f7478;
  text-decoration: none;
}

.legal-nav a:hover {
  color: #9aa0a4;
}
.site-credit a {
  font-size: 11.5px;
  color: #6f7478;
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
}

.site-credit a:hover {
  color: #9aa0a4;
}


/* -----------------------------
   Responsive
------------------------------ */

@media (max-width: 768px) {

  .main-nav a {
    margin-left: 16px;
    font-size: 13px;
  }

  .editorial-line {
    font-size: 12px;
  }
}

@media (max-width: 768px) {

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

}


.gallery {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 24px 64px;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.gallery-item img {
  width: 100%;
  display: block;

  filter: grayscale(10%) contrast(105%);
  transition:
    filter 0.25s ease,
    transform 0.25s ease;
}

.gallery-item:hover img {
  filter: grayscale(0%) contrast(110%);
  transform: scale(1.02);
}


.modal {
  position: fixed;
  inset: 0;

  background: rgba(10, 12, 16, 0.85);

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;

  z-index: 9999; /* 👈 ESTA ES LA CLAVE */
}

/* cuando es target */
.modal:target {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #0d0f10;
  padding: 32px;
  max-width: 420px;
  width: 90%;

  border: 1px solid #1e2328;
}

.modal-content h2 {
  font-size: 16px;
  margin-bottom: 12px;
  font-weight: 500;
}

.modal-note {
  font-size: 13px;
  color: #9aa0a4;
  margin-bottom: 24px;
  font-family: 'JetBrains Mono', monospace;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn {
  text-align: center;
  padding: 12px;
  text-decoration: none;
  font-size: 13px;
  border: 1px solid #2a2f35;
}

.btn.primary {
  color: #e6e6e6;
}

.btn.secondary {
  color: #a6abb0;
}

.btn:hover {
  background: #15191d;
}


.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;

  text-decoration: none;
  font-size: 20px;
  color: #6f7478;

  cursor: pointer; /* 👈 */
  z-index: 20;
}
