:root {
  --black: #0a0a0a;
  --ink-black: #050505;
  --red: #e30613;
  --red-glow: #ff1f2e;
  --grey: #8a8a8a;
  --grey-light: #c9c9c9;
  --white: #f2f2f2;
  --font-display: "Bebas Neue", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
}

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

html, body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0.03em;
  margin-bottom: 1.2rem;
}

p { line-height: 1.6; color: var(--grey-light); max-width: 60ch; }

a { color: inherit; text-decoration: none; }

/* ---------- NAV ---------- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem;
  background: linear-gradient(to bottom, rgba(5,5,5,0.85), transparent);
}
.site-nav__brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  color: var(--white);
}
.site-nav__links {
  display: none;
  gap: 1.8rem;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
.site-nav__links a:hover { color: var(--red); }
@media (min-width: 800px) {
  .site-nav__links { display: flex; }
}
.lang-toggle {
  background: transparent;
  border: 1px solid var(--grey);
  color: var(--white);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  padding: 0.4rem 0.8rem;
  border-radius: 2px;
  cursor: pointer;
}
.lang-toggle:hover { border-color: var(--red); color: var(--red); }

/* ---------- INTRO / PRELOADER ---------- */
.intro {
  position: fixed; inset: 0; z-index: 999;
  background: var(--ink-black);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.intro.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.intro-media { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.intro-placeholder {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 8rem);
  color: var(--red);
  letter-spacing: 0.05em;
  text-shadow: 0 0 40px var(--red-glow);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:.6;} 50%{opacity:1;} }

/* ---------- EXPERIENCIA CINEMÁTICA ---------- */
.scroll-track { position: relative; width: 100%; background: var(--ink-black); }
.sticky-stage {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100vh;
  overflow: hidden;
  background: var(--ink-black);
}
#scrub-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.reveal-logo {
  position: absolute; bottom: 12%; left: 50%; transform: translateX(-50%);
  text-align: center; opacity: 0; transition: opacity 0.6s ease; pointer-events: none;
}
.reveal-logo.is-visible { opacity: 1; }
.reveal-logo__text {
  display: block; font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3.2rem); color: var(--white); letter-spacing: 0.08em;
}
.reveal-logo__sub {
  display: block; font-size: clamp(0.75rem, 1.4vw, 1rem);
  color: var(--red); letter-spacing: 0.35em; margin-top: 0.4em;
}
.scroll-hint {
  position: absolute; bottom: 4%; left: 50%; transform: translateX(-50%);
  font-size: 0.75rem; color: var(--grey); letter-spacing: 0.25em; opacity: 0.7;
}

/* ---------- SECCIONES GENERALES ---------- */
.section {
  padding: 6rem 1.5rem;
  position: relative; z-index: 1;
  background: var(--black);
}

/* QUIÉN SOY */
.section--about {
  display: flex; flex-direction: column; gap: 2.5rem; align-items: center;
  text-align: center;
}
.about__photo-img {
  width: 200px; height: 200px; border-radius: 50%;
  object-fit: cover; border: 1px solid #2a2a2a;
}
@media (min-width: 800px) {
  .section--about { flex-direction: row; text-align: left; gap: 4rem; max-width: 1000px; margin: 0 auto; }
}

/* ESTILOS */
.styles-grid {
  display: grid; gap: 2rem; grid-template-columns: 1fr;
  max-width: 1000px; margin: 0 auto;
}
@media (min-width: 800px) {
  .styles-grid { grid-template-columns: repeat(3, 1fr); }
}
.style-card {
  border: 1px solid #1c1c1c; padding: 2rem 1.5rem; border-radius: 2px;
}
.style-card__icon { font-size: 1.8rem; color: var(--red); margin-bottom: 0.8rem; }
.style-card h3 { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: 0.04em; margin-bottom: 0.6rem; }
.style-card p { font-size: 0.9rem; }

/* ESTUDIO */
.section--studio {
  display: flex; flex-direction: column; gap: 2.5rem; align-items: center; text-align: center;
}
.studio__image-placeholder {
  width: 100%; max-width: 900px; aspect-ratio: 16/10;
  border: 1px dashed var(--grey); display: flex; align-items: center; justify-content: center;
  color: var(--grey); font-size: 0.9rem; padding: 1rem; text-align: center;
}
.studio__location { margin-top: 1rem; font-size: 0.9rem; color: var(--grey-light); }
.section--studio { flex-direction: column-reverse; }
@media (min-width: 800px) {
  .section--studio { flex-direction: column-reverse; text-align: center; max-width: 1100px; margin: 0 auto; }
}

/* CURSO / TRAILER */
.section--course {
  text-align: center; max-width: 700px; margin: 0 auto;
}
.section--trailer {
  text-align: center; max-width: 960px; margin: 0 auto;
}
.trailer__embed {
  position: relative; width: 100%; aspect-ratio: 16/9;
  margin-top: 2rem; background: var(--ink-black); border: 1px solid #1c1c1c;
}
.trailer__embed iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.btn {
  display: inline-block; margin-top: 1.5rem; padding: 0.8rem 1.8rem;
  border-radius: 2px; font-size: 0.85rem; letter-spacing: 0.08em;
}
.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: var(--red-glow); }
.btn--outline { border: 1px solid var(--red); color: var(--red); }
.btn--outline:hover { background: var(--red); color: var(--white); }

/* CONTACTO */
.section--contact { text-align: center; max-width: 700px; margin: 0 auto; }
.contact__links {
  display: flex; flex-direction: column; gap: 0.8rem; margin-top: 2rem; align-items: center;
}
.contact__social { font-size: 0.95rem; border-bottom: 1px solid transparent; }
.contact__social:hover { color: var(--red); border-color: var(--red); }

/* FOOTER */
.site-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 2rem 1.5rem; font-size: 0.8rem; color: var(--grey);
  border-top: 1px solid #1c1c1c;
}
.site-footer a:hover { color: var(--red); }

/* ---------- CURSOR TINTA ---------- */
body { cursor: none; }
@media (pointer: coarse) {
  body { cursor: auto; }
}
a, button { cursor: none; }

/* ---------- PORTFOLIO (marquee) ---------- */
.section--portfolio { text-align: center; padding-left: 0; padding-right: 0; }
.section--portfolio h2, .section--portfolio > p { padding: 0 1.5rem; }
.marquee {
  overflow: hidden; width: 100%; margin-top: 2rem;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.marquee__track {
  display: flex; gap: 1.2rem; width: max-content;
  animation: marquee-left 40s linear infinite;
}
.marquee--reverse .marquee__track { animation-name: marquee-right; margin-top: 1.2rem; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marquee-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }

.marquee__tile { flex: 0 0 auto; width: 220px; }
.marquee__tile-img {
  width: 220px; height: 280px; object-fit: cover;
  border: 1px solid #1c1c1c; display: block;
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* ---------- SECCIÓN INTERACTIVA (dot grid) ---------- */
.section--interactive {
  position: relative; height: 60vh; min-height: 400px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 0;
}
#dotgrid-canvas { position: absolute; inset: 0; }
.interactive__text {
  position: relative; z-index: 2; text-align: center; pointer-events: none;
}
.interactive__text p { margin: 0 auto; }


@media (prefers-reduced-motion: reduce) {
  .intro-placeholder { animation: none; }
  html { scroll-behavior: auto; }
}
