/* ============================================
   PRADO FOX
   ============================================ */

@font-face {
  font-family: 'NeuLeon';
  src: url('assets/fonts/MGTNeuLeon-Bold.otf') format('opentype');
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'NeuLeon';
  src: url('assets/fonts/MGTNeuLeon-Regular.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}

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

:root {
  --white: #F0F0F0;
  --black: #1D1D1F;
  --gray:  #888;
  --font:  'NeuLeon', system-ui, sans-serif;
  --col:   260px;   /* columna base compartida entre secciones */
  --gap:   48px;    /* gap horizontal compartido */
}

html { scroll-behavior: auto; }

/* Modo oscuro por defecto; .is-light cambia todo al mismo tiempo */
body {
  font-family: var(--font);
  font-weight: 400;
  background: var(--black);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
  transition: background-color 0.8s ease, color 0.8s ease;
}

body.is-light {
  background: var(--white);
  color: var(--black);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---- NAV ---- */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  padding: 24px 32px;
  mix-blend-mode: difference;
  pointer-events: none;
}

nav a { pointer-events: all; }

.nav-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
}

/* ---- HERO ---- */

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

h1 {
  position: absolute;
  bottom: 32px;
  left: 24px;
  right: 24px;
  font-size: 27vw;
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.02em;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

.parallax-img {
  position: absolute;
  z-index: 2;
  will-change: transform;
}

/* Portadas */
.img-1 {
  top: 10vh;
  right: 8%;
  width: 150px;
}

.img-2 {
  top: 44vh;
  right: 12%;
  width: 100px;
}

/* Paisajes */
.img-3 {
  top: 8vh;
  left: 5%;
  width: 110px;
}

.img-4 {
  top: 30vh;
  right: 22%;
  width: 90px;
}

/* Foto de perfil */
.img-5 {
  top: 16vh;
  right: 34%;
  width: 120px;
}

.parallax-img img { width: 100%; display: block; }

/* ---- BIO ---- */

.bio-section {
  padding: 140px 32px 200px;
}

.bio-text {
  font-size: clamp(22px, 2.6vw, 38px);
  font-weight: 700;
  line-height: 1.35;
  max-width: 880px;
  /* color heredado del body — blanco en oscuro, negro en claro */
}

/* ---- LABELS (mismo formato que nav) ---- */

.section-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray);
  margin-bottom: 48px;
}

/* ---- MÚSICA ---- */

.music-section {
  padding: 140px 32px 140px;
}

.stream-links {
  display: flex;
  gap: var(--gap);
  margin-bottom: 100px;
  flex-wrap: wrap;
}

.stream-links a {
  font-size: 32px;
  font-weight: 700;
  /* color heredado del body */
  transition: opacity 0.2s;
}

.stream-links a:hover { opacity: 0.35; }

.covers {
  display: flex;
  gap: var(--gap);
  flex-wrap: wrap;
}

.cover-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: opacity 0.2s;
}

.cover-item:hover { opacity: 0.6; }

.cover-item img {
  width: var(--col);
  height: var(--col);
  object-fit: cover;
}

.cover-item span {
  font-size: 12px;
  font-weight: 400;
  color: var(--gray);
}

/* ---- PROYECTOS ---- */

.projects-section {
  padding: 0 32px 140px;
}

.project-list {
  display: flex;
  flex-direction: column;
}

.project-list a {
  display: flex;
  align-items: center;
  gap: var(--gap);
  padding: 36px 0;
  transition: opacity 0.2s;
}

.project-list a:hover { opacity: 0.4; }

.project-name {
  font-size: 32px;
  font-weight: 700;
  /* color heredado del body */
  min-width: var(--col);
  flex-shrink: 0;
}

.project-type {
  font-size: 14px;
  font-weight: 400;
  color: var(--gray);
  flex: 1;
}

/* Thumbnail móvil — oculto en desktop (hover:hover) */
.project-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  flex-shrink: 0;
  display: none;
}

.arrow {
  font-size: 22px;
  color: var(--gray);
  flex-shrink: 0;
}

/* ---- FOOTER ---- */

footer {
  padding: 40px 32px 0;
}

.footer-top {
  display: grid;
  grid-template-columns: var(--col) auto 1fr;
  column-gap: var(--gap);
  align-items: baseline;
}

.footer-top span,
.footer-top a {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray);
  transition: opacity 0.2s;
}

.footer-top a:hover { opacity: 0.5; }

.footer-phrase {
  font-size: clamp(56px, 11vw, 152px);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.02em;
  /* color heredado del body */
  margin-top: 80px;
  padding-bottom: 48px;
}

/* ---- CURSOR PREVIEW (solo desktop/hover) ---- */

@media (hover: hover) {
  .cursor-preview {
    position: fixed;
    top: 0;
    left: 0;
    width: 200px;
    height: 260px;
    pointer-events: none;
    z-index: 500;
    opacity: 0;
    transform: translate(-50%, -60%) scale(0.92);
    transition: opacity 0.2s ease, transform 0.2s ease;
    will-change: transform;
    overflow: hidden;
  }

  .cursor-preview.active {
    opacity: 1;
    transform: translate(-50%, -60%) scale(1);
  }

  .cursor-preview img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
  }
}

@media (hover: none) {
  .cursor-preview { display: none; }
  /* En táctil: mostrar thumbnail inline en cada fila de proyecto */
  .project-thumb { display: block; }
}

/* ---- RESPONSIVE ---- */

@media (max-width: 768px) {
  nav { padding: 20px; }
  .nav-label { font-size: clamp(20px, 5vw, 28px); }

  h1 { font-size: 21vw; bottom: 24px; left: 20px; right: 20px; }

  .img-1 { width: 110px; top: 8vh; right: 4%; }
  .img-2 { width: 80px; top: 44vh; right: 6%; }
  .img-3 { width: 80px; }
  .img-4 { width: 70px; }

  .bio-section { padding: 100px 20px 160px; }
  .bio-text { font-size: clamp(20px, 5vw, 28px); }

  .music-section { padding: 100px 20px; }
  .stream-links { gap: 24px; margin-bottom: 64px; }
  .stream-links a { font-size: 24px; }
  .covers { gap: 24px; }
  .cover-item img { width: 150px; height: 150px; }

  .projects-section { padding: 0 20px 100px; }
  .project-list a { gap: 16px; padding: 28px 0; }
  .project-name { font-size: 22px; min-width: 150px; }
  .project-thumb { width: 56px; height: 56px; }

  footer { padding: 32px 20px 0; }
  .footer-top {
    grid-template-columns: 150px auto;
    grid-template-rows: auto auto;
    column-gap: 24px;
    row-gap: 12px;
  }
  .footer-top span:last-child { grid-column: 1 / -1; }
  .footer-phrase { font-size: clamp(44px, 13vw, 100px); }
}
