*, *::before, *::after { box-sizing: border-box; padding: 0; margin: 0; }
html { scroll-behavior: smooth; }
::selection { background: var(--accent); color: #fff; }

:root {
  --bg: #0d0d0f;
  --text: #f3f0e9;
  --muted: #b9b6ad;
  --border: #161619;
  --accent: #7c3aed;
  --font: "Manrope", sans-serif;
  --font-display: "Roboto Slab", serif;
}

h1, h2, h3, h4 { font-family: var(--font-display); }
p { font-size: 1rem; font-weight: 500; line-height: 1.65; letter-spacing: 0; color: var(--muted); margin: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 300;
  line-height: 1.4;
  overflow-x: hidden;
  cursor: none;
}

a { text-decoration: none; color: inherit; cursor: none; transition: color 0.5s; }
a:hover { text-decoration: none; color: #7c3aed; }
li { list-style: none; cursor: none; }
button, span { cursor: none; }

/* CURSOR */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #F1F1F1;
  mix-blend-mode: difference;
  pointer-events: none;
  transform: translate(-50%,-50%) scale(1);
  transition: transform .05s ease-out;
  z-index: 9999;
  will-change: transform;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 3rem;
  padding: 1.2rem 2rem;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(12px);
  transition: transform .4s ease;
}
.nav--hidden { transform: translateY(-100%); }
.nav-logo { font-size: 1.15rem; font-weight: 400; letter-spacing: -0.01em; font-family: var(--font-display); }
.nav-logo b { font-weight: 700; }
.nav-logo b .logo-punto { font-weight: 400; }
.nav-links { display: flex; gap: 2rem; font-size: 0.88rem; font-weight: 500; }
.nav-links a { transition: color 0.5s; }
.nav-links a:hover { color: #7c3aed; }
.nav-email { font-size: 0.88rem; font-weight: 500; color: var(--text); transition: color 0.5s; margin-left: auto; }
.nav-email:hover, .nav-email a:hover { color: #7c3aed; }

/* FOOTER */
footer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 2rem;
  border-top: 1px solid var(--border);
}
.footer-col {
  padding: 2.5rem 2rem;
}
.footer-brand { font-size: 1.1rem; font-weight: 400; font-family: var(--font-display); display: block; margin-bottom: 1rem; }
.footer-brand b { font-weight: 700; }
.footer-brand b .logo-punto { font-weight: 400; }
.footer-col h4 {
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1rem;
}
.footer-col ul li { font-size: 0.85rem; color: var(--muted); padding: 0.2rem 0; transition: color 0.5s; }
.footer-col ul li a { color: var(--muted); transition: color 0.5s; }
.footer-col ul li a:hover { color: #7c3aed; text-decoration: none; }
.footer-col ul li:hover { color: #7c3aed; }

/* REVEAL */
.reveal { opacity: 0; transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.fade-bottom { transform: translateY(40px); }
.reveal.active { opacity: 1; transform: none; }

/* ══════ PÁGINAS DE PROYECTO ══════ */

/* HERO */
.proyecto-hero { padding: 12rem 2rem 5rem; }
.proyecto-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--font);
  display: block;
  margin-bottom: 1.5rem;
}
.proyecto-titulo {
  font-size: clamp(2.6rem, 6vw, 6rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

/* META */
.proyecto-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  margin-top: 4rem;
}
.proyecto-meta h4 {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--font);
  margin-bottom: 0.75rem;
}
.proyecto-meta span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  font-family: var(--font);
}

/* GRID DE MEDIOS */
.proyecto-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 2rem 4rem;
}
.proyecto-media img,
.proyecto-media video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}
.media-full { grid-column: span 2; }

/* BLOQUES DE TEXTO */
.proyecto-texto {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: 2.5rem;
  padding: 6rem 0;
  align-items: start;
}
.proyecto-texto h2 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
  max-width: 20ch;
}
.proyecto-texto-cuerpo { max-width: 40.5rem; }
.proyecto-texto-cuerpo p + p { margin-top: 1.25rem; }
.proyecto-texto-cuerpo strong { color: var(--text); font-weight: 600; }

/* PREMIOS */
.proyecto-premios { margin-top: 2rem; }
.proyecto-premios p {
  padding: 0.6rem 0;
  color: var(--text);
}

/* SIGUIENTE PROYECTO */
.proyecto-next {
  padding: 6rem 2rem 8rem;
  display: flex;
  justify-content: flex-end;
}
.proyecto-next a {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
}
.proyecto-next-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--font);
  margin-bottom: 0.9rem;
}
.proyecto-next-titulo {
  display: block;
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-family: var(--font-display);
  transition: color 0.4s ease;
}
.proyecto-next a:hover .proyecto-next-titulo { color: #7c3aed; }

.proyecto-next-img {
  flex-shrink: 0;
  width: clamp(5rem, 7vw, 7rem);
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  display: block;
}
.proyecto-next-img img,
.proyecto-next-img video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.proyecto-next a:hover .proyecto-next-img img,
.proyecto-next a:hover .proyecto-next-img video { transform: scale(1.06); }

/* RESPONSIVE */
@media (max-width: 900px) {
  footer { grid-template-columns: 1fr 1fr; }
  .proyecto-texto { grid-template-columns: 1fr; gap: 2rem; padding: 4rem 0; }
  .proyecto-meta { gap: 2.5rem; }
}
@media (max-width: 600px) {
  .nav-email { display: none; }
  footer { grid-template-columns: 1fr 1fr; }
  .footer-col { padding: 1.5rem 1rem; }
  .proyecto-hero { padding: 9rem 1.5rem 3rem; }
  .proyecto-media { grid-template-columns: 1fr; padding: 0 1.5rem 3rem; }
  .media-full { grid-column: span 1; }
  .proyecto-texto { grid-column: span 1; }
  .proyecto-next { padding: 4rem 1.5rem 5rem; }
}
