/* ═══════════════════════════════════════════════════════
   DarkDreams — Shared Styles
   ═══════════════════════════════════════════════════════ */

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

:root {
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  --gold: #c9a96e;
  --gold-dim: rgba(201,169,110,.4);
  --dark: #0a0a0a;
  --dark-mid: #111111;
  --light: #f5f0eb;
  --light-mid: #f2ede7;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--sans);
  color: #1a1a1a;
  background: var(--dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.1; }

/* ── Container ────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 6rem);
}

/* ── Placeholders ─────────────────────────────────── */
.img-placeholder {
  background: linear-gradient(135deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,.02) 100%);
  border: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  overflow: hidden;
  position: relative;
}

.img-placeholder--light {
  background: linear-gradient(135deg, rgba(0,0,0,.04) 0%, rgba(0,0,0,.02) 100%);
  border-color: rgba(0,0,0,.08);
  color: rgba(0,0,0,.25);
}

.img-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(255,255,255,.015) 20px, rgba(255,255,255,.015) 40px);
}

.img-placeholder--light::after {
  background: repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(0,0,0,.015) 20px, rgba(0,0,0,.015) 40px);
}

/* ── Scroll Reveal ────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.5s cubic-bezier(.25,.46,.45,.94),
              transform 1.5s cubic-bezier(.25,.46,.45,.94);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .15s; }
.reveal-delay-2 { transition-delay: .3s; }
.reveal-delay-3 { transition-delay: .45s; }

/* ── Site Navigation ──────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1.25rem 0;
  background: rgba(10,10,10,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: padding .4s;
}

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

.site-nav .logo {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--light);
  letter-spacing: .15em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color .3s;
}
.site-nav .logo:hover { color: var(--gold); }

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.site-nav ul li a {
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 500;
  color: var(--light);
  text-decoration: none;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: color .3s;
}
.site-nav ul li a:hover,
.site-nav ul li a.active { color: var(--gold); }

/* Hamburger button — oculto en desktop */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
  z-index: 110;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-hamburger { display: flex; }
  .site-nav {
    position: sticky;
  }
  .site-nav ul {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 1.5rem 0;
    background: #3b0a0a;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    z-index: 105;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .site-nav ul.open { opacity: 1; visibility: visible; }
  .site-nav ul li a { font-size: 1rem; }
}

@media (max-width: 520px) {
  .site-nav { padding: 1rem 0; }
  .site-nav .logo { font-size: .9rem; }
}

/* ── Footer ───────────────────────────────────────── */
.site-footer {
  background: #060606;
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0;
  border-top: 1px solid rgba(255,255,255,.04);
}

.site-footer a{
  background: #060606;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color .4s ease;
}

.site-footer a:hover {
  color: rgba(203, 176, 40, 0.8);
}

.site-footer .container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  text-align: center;
}

.site-footer .footer-brand {
  font-family: var(--serif);
  font-size: .85rem;
  font-weight: 700;
  color: rgba(245,240,235,.5);
  letter-spacing: .15em;
  text-transform: uppercase;
}

.site-footer .footer-copy {
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.site-footer .footer-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.site-footer .footer-links a {
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(245,240,235,.35);
  text-decoration: none;
  transition: color .3s;
}
.site-footer .footer-links a:hover { color: var(--gold); }

@media (max-width: 600px) {
  .site-footer .container {
    flex-direction: column;
    text-align: center;
  }
}

/* ── Section number label ─────────────────────────── */
.section-number {
  font-family: var(--serif);
  font-size: .85rem;
  font-weight: 400;
  letter-spacing: .25em;
  text-transform: uppercase;
  display: block;
  margin-bottom: .75rem;
}

/* ═══════════════════════════════════════════════════════
   HOME — Page-specific styles
   ═══════════════════════════════════════════════════════ */

/* ── Hero ──────────────────────────────────────── */
.home-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--dark);
  color: var(--light);
  overflow: hidden;
}

.home-hero__bg {
  position: absolute;
  inset: 0;
}

.home-hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(10,10,10,.5) 0%, rgba(10,10,10,.92) 70%);
}

.home-hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 2rem;
}

.home-hero__label {
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: white;
  padding-bottom: 10px;
  display: block;
}

.home-hero__title {
  font-size: clamp(3.5rem, 10vw, 9rem);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.02em;
  margin-bottom: 1.5rem;
}

.home-hero__title span {
  display: block;
  font-style: italic;
  font-weight: 400;
  font-size: .45em;
  letter-spacing: .05em;
  color: rgba(245,240,235,.45);
  margin-top: .4em;
}

.home-hero__subtitle {
  font-family: var(--sans);
  font-size: clamp(.9rem, 1.3vw, 1.15rem);
  font-weight: 300;
  line-height: 1.7;
  color: rgba(245,240,235,.5);
  max-width: 50ch;
  margin: 0 auto 2.5rem;
}

.home-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border: 1px solid var(--gold-dim);
  padding: .9em 2.2em;
  border-radius: 2px;
  transition: background .3s, color .3s, border-color .3s;
}
.home-hero__cta:hover {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}
.home-hero__cta svg {
  width: 14px;
  height: 14px;
  transition: transform .3s;
}
.home-hero__cta:hover svg { transform: translateX(3px); }

.home-hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
}
.home-hero__scroll span {
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgb(201 169 110);
}
.home-hero__scroll .line {
  width: 1px;
  height: 45px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: .3; transform: scaleY(.6); }
  50%      { opacity: 1;  transform: scaleY(1); }
}

/* ── About / Studio ───────────────────────────── */
.home-about {
  background: var(--light);
  color: #1a1a1a;
  padding: clamp(5rem, 12vh, 10rem) 0;
}

.home-about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: center;
}

.home-about__text .section-number { color: #8b7355; }

.home-about__text h2 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  margin-bottom: 1.5rem;
  color: #1a1a1a;
}

.home-about__text p {
  font-size: clamp(.92rem, 1.1vw, 1.05rem);
  line-height: 1.85;
  color: rgba(26,26,26,.65);
}

.home-about__text p + p { margin-top: 1.3em; }

.home-about__image {
  aspect-ratio: 4/5;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .home-about__grid { grid-template-columns: 1fr; }
  .home-about__image { max-height: 400px; }
}

/* ── Team ─────────────────────────────────────── */
.home-team {
  background: var(--dark-mid);
  color: #e8e0d6;
  padding: clamp(5rem, 12vh, 10rem) 0;
}

.home-team__header {
  text-align: center;
  margin-bottom: clamp(3rem, 6vh, 5rem);
}

.home-team__header .section-number { color: var(--gold); }

.home-team__header h2 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  color: #e8e0d6;
}

.home-team__header p {
  max-width: 48ch;
  margin: 1.2rem auto 0;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}

.home-team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.team-card {
  text-align: center;
}

.team-card__photo {
  aspect-ratio: 1/1;
  border-radius: 50%;
  width: 160px;
  margin: 0 auto 1.25rem;
  border: 2px solid rgba(201,169,110,.15);
  transition: border-color .4s;
}
.team-card:hover .team-card__photo { border-color: var(--gold); }

.team-card__name {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin-bottom: .25rem;
}

.team-card__role {
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── Projects Preview ─────────────────────────── */
.home-projects {
  background: #0e0e0e;
  color: var(--light);
  padding: clamp(5rem, 12vh, 10rem) 0;
}

.home-projects__header {
  text-align: center;
  margin-bottom: clamp(3rem, 6vh, 5rem);
}

.home-projects__header .section-number { color: var(--gold); }

.home-projects__header h2 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
}

.home-projects__header p {
  max-width: 48ch;
  margin: 1.2rem auto 0;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.project-card {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  text-decoration: none;
  color: var(--light);
  display: block;
  transition: transform .5s cubic-bezier(.25,.46,.45,.94);
}
.project-card:hover { transform: translateY(-6px); }

.project-card__img {
  aspect-ratio: 16/10;
  width: 100%;
  object-fit: cover;
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,.92) 0%, rgba(10,10,10,.15) 55%);
  transition: background .4s;
}
.project-card:hover .project-card__overlay {
  background: linear-gradient(to top, rgba(10,10,10,.95) 0%, rgba(10,10,10,.3) 55%);
}

.project-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  z-index: 2;
}

.project-card__tag {
  display: inline-block;
  font-size: .6rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid var(--gold-dim);
  padding: .3em .8em;
  border-radius: 2px;
  margin-bottom: .75rem;
  background-color: rgba(68, 68, 68, 0.6);
}

.project-card__title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  margin-bottom: .5rem;
}

.project-card__desc {
  font-size: .85rem;
  line-height: 1.6;
  color: rgb(218, 218, 218);
  max-width: 40ch;
}

.project-card__arrow {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.4);
  z-index: 2;
  transition: border-color .3s, color .3s, transform .3s;
}
.project-card:hover .project-card__arrow {
  border-color: var(--gold);
  color: var(--gold);
  transform: rotate(-45deg);
}
.project-card__arrow svg { width: 16px; height: 16px; }

.projects-cta {
  text-align: center;
  margin-top: 3rem;
}

.projects-cta a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  transition: color .3s;
}
.projects-cta a:hover { color: var(--light); }
.projects-cta a svg { width: 14px; height: 14px; }

@media (max-width: 700px) {
  .projects-grid { grid-template-columns: 1fr; }
}

/* ── Contact CTA ──────────────────────────────── */
.home-contact {
  background: var(--dark);
  color: var(--light);
  padding: clamp(5rem, 14vh, 10rem) 0;
  text-align: center;
}

.home-contact h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.home-contact p {
  max-width: 45ch;
  margin: 0 auto 2.5rem;
  font-size: .92rem;
  line-height: 1.7;
  color: rgba(245,240,235,.45);
}

.home-contact__btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 500;
  margin-top: 20px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dark);
  background: var(--gold);
  text-decoration: none;
  padding: 1em 2.5em;
  border-radius: 2px;
  transition: background .3s, transform .3s;
}
.home-contact__btn:hover {
  background: #d4b97a;
  transform: translateY(-2px);
}

.social-icon {
  color: var(--gold);
  display: inline-block;
  transition: color .3s, transform .3s;
}
.social-icon:hover {
  color: #d4b97a;
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════
   PROYECTOS — Page-specific styles
   ═══════════════════════════════════════════════════════ */

/* ── Page Hero ────────────────────────────────── */
.page-hero {
  background: var(--dark);
  color: var(--light);
  padding: clamp(6rem, 14vh, 10rem) 0 clamp(4rem, 8vh, 6rem);
  text-align: center;
}

.page-hero .section-number { color: var(--gold); }

.page-hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  margin-bottom: 1rem;
}

.page-hero p {
  max-width: 50ch;
  margin: 0 auto;
  font-size: clamp(.9rem, 1.1vw, 1.05rem);
  line-height: 1.7;
  color: rgba(245,240,235,.45);
}

/* ── Projects List ────────────────────────────── */
.projects-section {
  background: #0e0e0e;
  color: var(--light);
  padding: clamp(4rem, 8vh, 7rem) 0 clamp(5rem, 12vh, 10rem);
}

.project-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(3rem, 5vw, 6rem);
  align-items: center;
  margin-bottom: clamp(5rem, 10vh, 8rem);
}

.project-row:last-child { margin-bottom: 0; }

.project-row--reverse .project-row__image { order: 2; }
.project-row--reverse .project-row__text  { order: 1; }

.project-row__image {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
}

.project-row__image-inner {
  aspect-ratio: 16/10;
  transition: transform .6s cubic-bezier(.25,.46,.45,.94);
}

.project-row__image:hover .project-row__image-inner {
  transform: scale(1.03);
}

.project-row__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,.5) 0%, transparent 40%);
  pointer-events: none;
}

.video-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,10,10,.6) 0%,
    transparent 40%
  );
  pointer-events: none;
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.project-row__text .project-tag {
  display: inline-block;
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201,169,110,.3);
  padding: .35em .9em;
  border-radius: 2px;
  margin-bottom: 1.2rem;
}

.project-row__text h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 1rem;
}

.project-row__text .project-summary {
  font-size: 16px;
  line-height: 1.8;
  color: rgb(255, 255, 255);
  margin-block: 1lh;
}

.project-row__text .project-meta {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.project-meta dt {
  font-size: .6rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgb(190, 190, 190);
  margin-bottom: .2rem;
}

.project-meta dd {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--gold);
}

.project-row__text .project-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border: 1px solid rgba(201,169,110,.3);
  padding: .85em 2em;
  border-radius: 2px;
  transition: background .3s, color .3s, border-color .3s;
}
.project-link:hover {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}
.project-link svg {
  width: 14px;
  height: 14px;
  transition: transform .3s;
}
.project-link:hover svg { transform: translateX(3px); }

@media (max-width: 768px) {
  .project-row { grid-template-columns: 1fr; }
  .project-row--reverse .project-row__image { order: 0; }
  .project-row--reverse .project-row__text  { order: 0; }
}

/* ── Divider ──────────────────────────────────── */
.project-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,169,110,.15), transparent);
  margin-bottom: clamp(5rem, 10vh, 8rem);
}

/* ═══════════════════════════════════════════════════════
   BIPBOTLOVE — Artbook styles
   Warm, playful palette vs Nieveroja's dark/cold
   ═══════════════════════════════════════════════════════ */

:root {
  --bbl-bg: #0d0b14;
  --bbl-fg: #f0e8df;
  --bbl-accent: #e8734a;
  --bbl-accent2: #f4b942;
  --bbl-soft: #2a1f3d;
  --bbl-warm: #fdf5ec;
  --bbl-dark-warm: #1a1520;
}

/* ── BBL Hero ──────────────────────────────────────── */
.bbl-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  background: var(--bbl-bg);
  color: var(--bbl-fg);
  overflow: hidden;
}

.bbl-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
  font-size: 1rem;
}

.bbl-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,11,20,.95) 0%, rgba(13,11,20,.35) 40%, rgba(13,11,20,.1) 100%);
}

.bbl-hero__content {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(4rem, 10vh, 8rem);
}

.bbl-hero__label {
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--bbl-accent);
  margin-bottom: 3rem;
  display: block;
}

.bbl-hero__title {
  font-size: clamp(3rem, 9vw, 7.5rem);
  font-weight: 900;
  line-height: .95;
  margin-bottom: 1.5rem;
  max-width: 12ch;
}

.bbl-hero__subtitle {
  font-family: var(--serif);
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  max-width: 40ch;
  color: rgba(240,232,223,.6);
}

.bbl-hero__scroll {
  position: absolute;
  bottom: 2rem;
  right: clamp(1.5rem, 5vw, 6rem);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}
.bbl-hero__scroll span {
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(240,232,223,.35);
  writing-mode: vertical-rl;
}
.bbl-hero__scroll .line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--bbl-accent), transparent);
  animation: bblPulse 2s ease-in-out infinite;
}
@keyframes bblPulse {
  0%, 100% { opacity: .3; transform: scaleY(.6); }
  50%      { opacity: 1;  transform: scaleY(1); }
}

/* ── BBL Story ─────────────────────────────────────── */
.bbl-story {
  background: var(--bbl-warm);
  color: #1a1a1a;
  padding: clamp(5rem, 12vh, 10rem) 0;
}

.bbl-story__header {
  text-align: center;
  margin-bottom: clamp(3rem, 6vh, 6rem);
}

.bbl-story__header .section-number { color: var(--bbl-accent); }

.bbl-story__header h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  color: #1a1a1a;
}

.bbl-story__grid {
  display: grid;
  grid-template-columns: 1fr 2.2fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.bbl-story__side {
  aspect-ratio: 3/4;
  border-radius: 2px;
  position: sticky;
  top: 6rem;
}

.bbl-story__text {
  font-size: clamp(.95rem, 1.1vw, 1.1rem);
  line-height: 1.85;
  color: rgba(26,26,26,.7);
}

.bbl-story__text p + p { margin-top: 1.5em; }


.bbl-story__divider {
  width: 60px;
  height: 1px;
  background: var(--bbl-accent);
  margin: 2rem auto;
  opacity: .5;
}

@media (max-width: 900px) {
  .bbl-story__grid { grid-template-columns: 1fr; }
  .bbl-story__side { display: none; }
}

/* ── BBL Characters ───────────────────────────────── */
.bbl-chars {
  background: var(--bbl-dark-warm);
  color: var(--bbl-fg);
  padding: clamp(5rem, 12vh, 10rem) 0;
}

.bbl-chars__header {
  text-align: center;
  margin-bottom: clamp(4rem, 8vh, 7rem);
}

.bbl-chars__header .section-number { color: var(--bbl-accent2); }

.bbl-chars__header h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--bbl-fg);
}

.bbl-chars__header p {
  max-width: 48ch;
  margin: 1.2rem auto 0;
  font-size: .92rem;
  line-height: 1.7;
  color: rgba(240,232,223,.4);
}

.bbl-char-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
  margin-bottom: clamp(4rem, 10vh, 8rem);
}
.bbl-char-card:last-child { margin-bottom: 0; }

.bbl-char-card--reverse .bbl-char-card__image { order: 2; }
.bbl-char-card--reverse .bbl-char-card__text  { order: 1; }

.bbl-char-card__image {
  aspect-ratio: 3/4;
  border-radius: 2px;
}

.bbl-char-card__text h3 {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  margin-bottom: .25rem;
}

.bbl-char-card__text .char-role {
  font-family: var(--sans);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--bbl-accent2);
  margin-bottom: 1.5rem;
}

.bbl-char-card__text .char-desc {
  font-size: .95rem;
  line-height: 1.8;
  color: white;
}

.bbl-char-card__text .char-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.06);
}
.bbl-char-card__text .char-stats dt {
  font-size: .65rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(240,232,223,.3);
  margin-bottom: .25rem;
}
.bbl-char-card__text .char-stats dd {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--bbl-accent2);
}

@media (max-width: 768px) {
  .bbl-char-card { grid-template-columns: 1fr; }
  .bbl-char-card--reverse .bbl-char-card__image { order: 0; }
  .bbl-char-card--reverse .bbl-char-card__text  { order: 0; }
}

/* ── BBL Scenes Gallery ───────────────────────────── */
.bbl-scenes {
  background: #2d1a3e;
  color: var(--bbl-fg);
  padding: clamp(5rem, 12vh, 10rem) 0;
}

.bbl-scenes__header {
  text-align: center;
  margin-bottom: clamp(3rem, 6vh, 6rem);
}

.bbl-scenes__header .section-number { color: var(--bbl-accent); }

.bbl-scenes__header h2 {
  font-size: clamp(2rem, 5vw, 4rem);
}

.bbl-scenes__gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 1rem;
}

.bbl-scene-item {
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  min-height: 200px;
  transition: transform .5s cubic-bezier(.25,.46,.45,.94);
}
.bbl-scene-item:hover { transform: scale(1.015); }

.bbl-scene-item:nth-child(1) {
  grid-column: 1 / 7;
  grid-row: 1 / 3;
  min-height: 400px;
}
.bbl-scene-item:nth-child(2) {
  grid-column: 7 / 13;
  grid-row: 1 / 2;
}
.bbl-scene-item:nth-child(3) {
  grid-column: 7 / 13;
  grid-row: 2 / 3;
}
.bbl-scene-item:nth-child(4) {
  grid-column: 1 / 5;
  grid-row: 3 / 4;
}
.bbl-scene-item:nth-child(5) {
  grid-column: 5 / 13;
  grid-row: 3 / 4;
  min-height: 280px;
}

.bbl-scene-item__label {
  position: absolute;
  bottom: 1rem;
  left: 1.25rem;
  font-family: var(--serif);
  font-size: .85rem;
  font-style: italic;
  color: rgba(255,255,255,.65);
  pointer-events: none;
}

@media (max-width: 768px) {
  .bbl-scenes__gallery {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 200px;
  }
  .bbl-scene-item:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
    min-height: 200px;
  }
  .bbl-scene-item:nth-child(1) {
    grid-column: 1 / -1;
    min-height: 260px;
  }
}

/* ── BBL Process ──────────────────────────────────── */
.bbl-process {
  background: var(--bbl-warm);
  color: #1a1a1a;
  padding: clamp(5rem, 12vh, 10rem) 0;
}

.bbl-process__header {
  text-align: center;
  margin-bottom: clamp(3rem, 6vh, 5rem);
}

.bbl-process__header .section-number { color: var(--bbl-accent); }

.bbl-process__header h2 {
  font-size: clamp(2rem, 5vw, 4rem);
}

.bbl-process__intro {
  max-width: 60ch;
  margin: 0 auto clamp(3rem, 6vh, 5rem);
  text-align: center;
  font-size: .95rem;
  line-height: 1.8;
  color: rgba(26,26,26,.55);
}

.bbl-process__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.bbl-process__card {
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 3px;
  overflow: hidden;
  transition: transform .4s ease, box-shadow .4s ease;
}
.bbl-process__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,.08);
}

.bbl-process__card-img {
  aspect-ratio: 16/10;
}

.bbl-process__card-body {
  padding: 1.5rem;
}

.bbl-process__card-body h4 {
  font-size: 1.1rem;
  margin-bottom: .5rem;
}

.bbl-process__card-body p {
  font-size: .85rem;
  line-height: 1.7;
  color: rgba(26,26,26,.5);
}

.bbl-process__card-body .tag {
  display: inline-block;
  margin-top: 1rem;
  font-size: .65rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--bbl-accent);
  border: 1px solid rgba(232,115,74,.25);
  padding: .3em .8em;
  border-radius: 2px;
}

/* ── BBL Finale ───────────────────────────────────── */
.bbl-finale {
  background: var(--bbl-bg);
  color: var(--bbl-fg);
  padding: clamp(5rem, 12vh, 10rem) 0;
}

.bbl-finale__header {
  text-align: center;
  margin-bottom: clamp(3rem, 6vh, 5rem);
}

.bbl-finale__header .section-number { color: var(--bbl-accent2); }

.bbl-finale__header h2 {
  font-size: clamp(2rem, 5vw, 4rem);
}

.bbl-finale__header p {
  max-width: 45ch;
  margin: 1rem auto 0;
  font-size: .92rem;
  line-height: 1.7;
  color: var(--light);
}

.bbl-video {
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.bbl-video::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(255,255,255,.01) 20px, rgba(255,255,255,.01) 40px);
  pointer-events: none;
}

.bbl-play-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid rgba(232,115,74,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .3s, transform .3s;
  z-index: 1;
  background: none;
  color: var(--bbl-accent);
}
.bbl-play-btn:hover {
  border-color: var(--bbl-accent);
  transform: scale(1.08);
}
.bbl-play-btn svg { width: 28px; height: 28px; margin-left: 4px; }

.bbl-video-label {
  position: absolute;
  bottom: 1.25rem;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(240,232,223,.25);
}

/* ── BBL Back link ────────────────────────────────── */
.back-link {
  text-align: center;
  padding: 3rem 0;
  background: var(--bbl-bg);
}
.back-link a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--bbl-accent);
  text-decoration: none;
  transition: color .3s;
}
.back-link a:hover { color: var(--bbl-fg); }
.back-link a svg { width: 14px; height: 14px; }

/* ═══════════════════════════════════════════════════════
   SIDE NAV — Fixed vertical navigation
   ═══════════════════════════════════════════════════════ */

.side-nav {
  position: fixed;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%) translateX(-100px);
  z-index: 50;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  height: 80vh;
  max-height: 600px;
  padding: 1.5rem 0.75rem;
  background: var(--red-dark);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 50px;
  border: 1px solid rgba(200, 200, 200, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
}

.side-nav.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

.side-nav a {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #bbb;
  text-decoration: none;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0.7;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.side-nav a:hover {
  opacity: 1;
  color: #fff;
}

.side-nav a.active {
  transform: rotate(180deg) scale(1.3);
  opacity: 1;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

@media (max-width: 1410px) {
  .side-nav {
    display: none !important;
  }
}

/* ═══════════════════════════════════════════════════════
   NIEVEROJA — Artbook styles
   ═══════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Leander';
  src: url('../fonts/Leander.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --hero-bg: #0a0a0a;
  --hero-fg: #f5f0eb;
  --lore-bg: #f5f0eb;
  --lore-fg: #1a1a1a;
  --lore-accent: #8b7355;
  --char-bg: #111111;
  --char-fg: #e8e0d6;
  --char-accent: #3b0a0a;
  --env-bg: #1b2a3a;
  --env-fg: #dce6ef;
  --env-accent: #4a90b8;
  --bts-bg: #f2ede7;
  --bts-fg: #222222;
  --bts-accent: #7a6e5d;
  --final-bg: #080808;
  --final-fg: #d4cdc4;
  --final-accent: #c9a96e;
  --red-dark: #3b0a0a;
  --red-light: #987777;
  --mono: 'Inconsolata', monospace;
}

/* Leander para títulos en Nieveroja */
#hero h1,
#lore h2,
#characters h2,
#characters .char-name,
#environments h2,
#process h2,
#process .process__card h4,
#finale h2 {
  font-family: 'Leander', var(--serif);
}

/* Inconsolata para textos no-título en Nieveroja */
#hero p,
#hero span,
#lore p,
#lore span.section-number,
#characters p,
#characters span,
#characters .char-desc,
#characters .char-role,
#environments p,
#environments span,
#process p,
#process span,
#process .process__card p,
#process .process__card .tag,
#finale p,
#finale span {
  font-family: var(--mono);
}

/* ── NV Hero ─────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: var(--hero-bg);
  color: var(--hero-fg);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.hero__bg-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
  font-size: 1rem;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,10,10,.95) 0%,
    rgba(10,10,10,.4) 40%,
    rgba(10,10,10,.15) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-top: 16rem;
  padding-bottom: clamp(2rem, 5vh, 4rem);
}

.hero__label {
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgb(240, 240, 240);
  margin-bottom: 1rem;
  display: block;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.hero__title {
  font-size: clamp(3rem, 9vw, 8rem);
  font-weight: 900;
  line-height: .95;
  margin-bottom: 1.5rem;
  max-width: 10ch;
}

.hero__subtitle {
  font-family: var(--serif);
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  max-width: 38ch;
  color: var(--light-mid);
}

.hero__scroll-cue {
  position: absolute;
  bottom: 2rem;
  right: clamp(1.5rem, 5vw, 6rem);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}
.hero__scroll-cue span {
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--char-accent);
  writing-mode: vertical-rl;
}
.hero__scroll-cue .line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--char-accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ── NV Lore ─────────────────────────────────────── */
#lore {
  background: var(--lore-bg);
  color: var(--lore-fg);
  padding: clamp(5rem, 12vh, 10rem) 0;
}
@media (max-width: 768px) {
  #lore { padding-top: 2rem; }
}

.lore__header {
  text-align: center;
  margin-bottom: clamp(3rem, 6vh, 6rem);
}

.lore__header h2 {
  font-size: clamp(2rem, 5vw, 4rem);
}

.lore__grid {
  display: grid;
  grid-template-columns: 1fr 2.2fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.lore__side-img {
  aspect-ratio: 3/4;
  border-radius: 2px;
  position: sticky;
  top: 6rem;
}

.lore__text {
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  line-height: 1.85;
  color: black;
  grid-column: 1 / -1;
  max-width: 65ch;
  margin: 0 auto;
}

.lore__text p + p { margin-top: 1.5em; }


.lore__divider {
  width: 60px;
  height: 1px;
  background: var(--lore-accent);
  margin: 2rem auto;
  opacity: .5;
}

@media (max-width: 900px) {
  .lore__grid {
    grid-template-columns: 1fr;
  }
  .lore__side-img { display: none; }
}

/* ── NV Characters ───────────────────────────────── */
#characters {
  background: var(--char-bg);
  color: var(--char-fg);
  padding: clamp(5rem, 12vh, 10rem) 0;
}

.characters__header {
  text-align: center;
  margin-bottom: clamp(4rem, 8vh, 8rem);
}
.characters__header .section-number { color:  rgb(212, 212, 212); }
.characters__header h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--char-fg);
}
.characters__header p {
  max-width: 50ch;
  margin: 1.5rem auto 0;
  font-size: .95rem;
  line-height: 1.7;
  color: rgba(232,224,214,.8);
}

.character-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(2rem, 5vw, 6rem);
  margin-bottom: clamp(4rem, 10vh, 8rem);
}
.character-card__image { width: 42%; flex-shrink: 0; }
.character-card__text  { flex: 1; }

.character-card:last-child { margin-bottom: 0; }

.character-card--reverse .character-card__image { order: 2; }
.character-card--reverse .character-card__text  { order: 1; }

.character-card__image {
  aspect-ratio: 3/4;
  border-radius: 2px;
  object-fit: cover;
  border: 1px solid rgb(155, 155, 155);
}

.character-card__text .char-name {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  margin-bottom: .25rem;
}

.character-card__text .char-role {
  font-family: var(--sans);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--char-accent);
  margin-bottom: 1.5rem;
}

.character-card__text .char-desc {
  font-size: .95rem;
  line-height: 1.8;
  color: white;
}

.character-card__text .char-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
.char-stats dt {
  font-size: .65rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(232,224,214,.35);
  margin-bottom: .25rem;
}
.char-stats dd {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--char-accent);
}

@media (max-width: 768px) {
  .character-card {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 1rem;
  }
  .character-card__text {
    display: contents;
  }
  .character-card__text .char-name {
    order: 1;
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
    padding-bottom: 0;
  }
  .character-card__image { order: 2; width: 60%; display: block; margin: 0 auto; }
  .character-card__text .char-role { order: 3; }
  .character-card__text .char-desc {
    order: 4;
    hyphens: auto;
    -webkit-hyphens: auto;
    word-break: break-word;
    text-align: justify;
  }
  .character-card--reverse .character-card__image { order: 2; }
}

/* ── NV Process Gallery Modal ─────────────────────── */

.gallery-hint {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: white;
  background: rgba(78, 4, 4, 0.8);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 2;
}

.process__card:hover .gallery-hint {
  opacity: 1;
}

.process__card {
  cursor: pointer;
}

.process-gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.process-gallery-modal.active {
  opacity: 1;
  visibility: visible;
}

.process-gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.process-gallery-content {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 1200px;
  max-height: 85vh;
  background: var(--dark-mid);
  border-radius: 8px;
  border: 1px solid rgba(200, 200, 200, 0.15);
  padding: 2rem;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform 0.4s ease;
}

.process-gallery-modal.active .process-gallery-content {
  transform: scale(1);
}

.process-gallery-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(200, 200, 200, 0.15);
  color: #ccc;
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-gallery-close:hover {
  background: #ccc;
  color: var(--dark);
}

.process-gallery-title {
  font-family: 'Leander', var(--serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #fff;
  margin-bottom: 1.5rem;
  padding-right: 3rem;
}

.process-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.process-gallery-item {
  aspect-ratio: 16/10;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(200, 200, 200, 0.1);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.process-gallery-item:hover {
  transform: translateY(-4px);
  border-color: #ccc;
}

.process-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.process-gallery-item:hover img {
  transform: scale(1.05);
}

/* ── Process Lightbox ──────────────────────────────── */

.process-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.process-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.process-lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.process-lightbox-content {
  position: relative;
  z-index: 2;
  width: 90%;
  height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.process-lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border: none;
  background: rgba(200, 200, 200, 0.15);
  color: #ccc;
  font-size: 2rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.process-lightbox-close:hover {
  background: #ccc;
  color: var(--dark);
  transform: rotate(90deg);
}

.process-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  border: none;
  background: rgba(200, 200, 200, 0.15);
  color: #ccc;
  font-size: 2.5rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.process-lightbox-nav:hover {
  background: #ccc;
  color: var(--dark);
}

.process-lightbox-prev {
  left: 2rem;
}

.process-lightbox-next {
  right: 2rem;
}

.process-lightbox-counter {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--sans);
  font-size: 0.9rem;
  color: #ccc;
  background: rgba(10, 10, 10, 0.8);
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  letter-spacing: 0.1em;
}

@media (max-width: 768px) {
  .process-lightbox-nav {
    width: 45px;
    height: 45px;
    font-size: 1.8rem;
  }
  
  .process-lightbox-prev {
    left: 1rem;
  }
  
  .process-lightbox-next {
    right: 1rem;
  }
  
  .process-lightbox-close {
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
  
  .process-lightbox-counter {
    font-size: 0.75rem;
    bottom: 1rem;
  }
}

@media (max-width: 768px) {
  .process-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
  }
  
  .process-gallery-content {
    width: 95%;
    padding: 1.5rem;
  }
  
  .gallery-hint {
    font-size: 0.5rem;
    padding: 0.3rem 0.6rem;
  }
}

/* ── NV Environments ─────────────────────────────── */
#environments {
  background: #252525;
  color: rgb(222, 222, 222);
  padding: clamp(5rem, 12vh, 10rem) 0;
}

.env__header {
  text-align: center;
  margin-bottom: clamp(3rem, 6vh, 6rem);
}
.env__header .section-number { color: var(--env-accent); }
.env__header h2 {
  font-size: clamp(2rem, 5vw, 4rem);
}
.env__header p {
  max-width: 50ch;
  margin: 1.5rem auto 0;
  font-size: .95rem;
  line-height: 1.7;
  color: rgba(220,230,239,.8);
}

/* ── Environments Gallery Base ──────────────────── */

.env__gallery {
  width: 100%;
  box-sizing: border-box;
}

/* ── Environments Desktop Gallery ──────────────────── */

.env__gallery--desktop {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 1rem;
}

.env__gallery--desktop .env__item {
  border-radius: 4px;
  min-height: 200px;
  transition: transform .5s cubic-bezier(.25,.46,.45,.94);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.env__gallery--desktop .env__item:hover {
  transform: scale(1.015);
}

.env__gallery--desktop .env__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.env__gallery--desktop .env__item:nth-child(1) {
  grid-column: 1 / 8;
  grid-row: 1 / 3;
  min-height: 420px;
}
.env__gallery--desktop .env__item:nth-child(2) {
  grid-column: 8 / 13;
  grid-row: 1 / 2;
  min-height: 200px;
}
.env__gallery--desktop .env__item:nth-child(3) {
  grid-column: 8 / 13;
  grid-row: 2 / 3;
  min-height: 200px;
}
.env__gallery--desktop .env__item:nth-child(4) {
  grid-column: 1 / 5;
  grid-row: 3 / 5;
  min-height: 360px;
}
.env__gallery--desktop .env__item:nth-child(5) {
  grid-column: 5 / 13;
  grid-row: 3 / 4;
  min-height: 260px;
}
.env__gallery--desktop .env__item:nth-child(6) {
  grid-column: 5 / 9;
  grid-row: 4 / 5;
  min-height: 200px;
}
.env__gallery--desktop .env__item:nth-child(7) {
  grid-column: 9 / 13;
  grid-row: 4 / 5;
  min-height: 200px;
}

/* Asegurar que el contenedor de imagen tenga altura */
.env__gallery--desktop .env__item {
  display: flex;
  flex-direction: column;
  background: rgba(20, 30, 40, 0.8);
}

.env__gallery--desktop .env__item img {
  flex: 1;
  min-height: 0;
}

.env__item-label {
  position: absolute;
  bottom: 1rem;
  left: 1.25rem;
  font-family: var(--serif);
  font-size: .85rem;
  font-style: italic;
  color: rgba(255,255,255,.9);
  background: rgba(0,0,0,.5);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  pointer-events: none;
  z-index: 2;
}

.env__item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.env__item:hover .env__item-overlay {
  opacity: 1;
}

.env__item-overlay p {
  color: rgba(255,255,255,.9);
  font-size: 0.9rem;
  margin: 0;
}

/* ── Environments Mobile Carousel ────────────────── */

.env__gallery--mobile {
  padding: 0;
  width: 100%;
}

.env__carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.env__track {
  display: flex;
  will-change: transform;
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
  touch-action: pan-y pinch-zoom;
}

.env__slide {
  flex: 0 0 100%;
  width: 100%;
  box-sizing: border-box;
  padding: 0 0.75rem;
}

.env__slide-image {
  aspect-ratio: 4/3;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.env__slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
}

.env__slide-info {
  text-align: center;
  padding: 1.25rem 0.5rem 0.5rem;
}

.env__slide-info h4 {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--env-accent);
  margin-bottom: 0.4rem;
}

.env__slide-info p {
  font-size: 0.88rem;
  color: rgba(220,230,239,.75);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.env__slide-counter {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--env-accent);
  background: rgba(74,144,184,.12);
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
}

.env__nav {
  position: absolute;
  top: calc(50% - (var(--env-nav-offset, 2.5rem)));
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 1px solid rgba(74,144,184,.4);
  background: rgba(27,42,58,.85);
  color: var(--env-accent);
  font-size: 1.4rem;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s, border-color .25s, opacity .25s;
  backdrop-filter: blur(4px);
}

.env__nav:hover {
  background: var(--env-accent);
  border-color: var(--env-accent);
  color: #0a0a0a;
}

.env__nav:disabled {
  opacity: .3;
  pointer-events: none;
}

.env__nav--prev { left: 0.4rem; }
.env__nav--next { right: 0.4rem; }

.env__indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.2rem;
  padding-bottom: 0.5rem;
}

.env__dot {
  width: 8px;
  height: 8px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  cursor: pointer;
  transition: background .3s, transform .3s;
  padding: 0;
}

.env__dot.active {
  background: var(--env-accent);
  transform: scale(1.3);
}

/* ── Environments Lightbox ───────────────────────── */

.env-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.env-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.env-lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 20, 0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  transition: opacity 0.5s ease;
}

.env-lightbox-content {
  position: relative;
  z-index: 2;
  width: 92%;
  max-width: 1400px;
  height: 90vh;
  display: flex;
  flex-direction: column;
  background: rgba(20, 25, 35, 0.6);
  border-radius: 12px;
  border: 1px solid rgba(201, 169, 110, 0.15);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(201, 169, 110, 0.1);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.env-lightbox.active .env-lightbox-content {
  transform: scale(1);
}

.env-lightbox-img {
  width: 100%;
  flex: 1;
  object-fit: contain;
  padding: 1rem;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 1;
  transform: scale(1);
}

.env-lightbox-info {
  text-align: center;
  padding: 1.5rem 2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 100%);
}

.env-lightbox-info h3 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: #fff;
  margin-bottom: 0.1rem;
  text-shadow: 0 2px 20px rgba(200, 200, 200, 0.2);
}

.env-lightbox-info p {
  font-size: 1rem;
  color: rgba(220,230,239,.7);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.env-lightbox-counter {
  position: absolute;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--sans);
  font-size: 0.85rem;
  color: #000000;
  background: rgb(197 197 197 / 87%);
  border: 1px solid rgba(200, 200, 200, 0.15);
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  letter-spacing: 0.15em;
  font-weight: 500;
}

.env-lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(200, 200, 200, 0.1);
  color: #ccc;
  font-size: 1.6rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(200, 200, 200, 0.15);
}

.env-lightbox-close:hover {
  background: #ccc;
  color: var(--dark);
  transform: scale(1.1) rotate(90deg);
  border-color: #ccc;
}

.env-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border: none;
  background: rgba(200, 200, 200, 0.1);
  color: #ccc;
  font-size: 2rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(200, 200, 200, 0.15);
}

.env-lightbox-nav:hover {
  background: #ccc;
  color: var(--dark);
  transform: translateY(-50%) scale(1.15);
  border-color: #ccc;
  box-shadow: 0 5px 25px rgba(200, 200, 200, 0.2);
}

.env-lightbox-prev {
  left: 1.5rem;
}

.env-lightbox-next {
  right: 1.5rem;
}

/* Transición suave de imagen al navegar */
.env-lightbox-img {
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  .env-lightbox-content {
    height: 75vh;
  }
  
  .env-lightbox-nav {
    width: 45px;
    height: 45px;
    font-size: 1.8rem;
  }
  
  .env-lightbox-prev {
    left: 1rem;
  }
  
  .env-lightbox-next {
    right: 1rem;
  }
  
  .env-lightbox-close {
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
  
  .env-lightbox-info h3 {
    font-size: 1.4rem;
  }
}

/* ── NV Process / Behind the Scenes ──────────────── */
#process {
  background: rgb(196, 196, 196);
  color: var(--bts-fg);
  padding: clamp(5rem, 12vh, 10rem) 0;
}

.process__header {
  text-align: center;
  margin-bottom: clamp(3rem, 6vh, 6rem);
}
.process__header .section-number { color: var(--bts-accent); }
.process__header h2 {
  font-size: clamp(2rem, 5vw, 4rem);
}

.process__intro {
  max-width: 60ch;
  margin: 0 auto clamp(3rem, 6vh, 5rem);
  text-align: center;
  font-size: .95rem;
  line-height: 1.8;
  color: rgba(34,34,34,.6);
}

.process__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 1024px) {
  .process__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .process__grid {
    grid-template-columns: 1fr;
  }
}

.process__card {
  background: rgba(255,255,255,.6);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 3px;
  overflow: hidden;
  transition: transform .4s ease, box-shadow .4s ease;
}
.process__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,.08);
}

.process__card-img-wrapper {
  position: relative;
  aspect-ratio: 16/10;
  width: 100%;
  overflow: hidden;
}

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

.process__card-img-wrapper .gallery-hint {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
}

.process__card-body {
  padding: 1.5rem;
}

.process__card-body h4 {
  font-size: 1.15rem;
  margin-bottom: .5rem;
}

.process__card-body p {
  font-size: .85rem;
  line-height: 1.7;
  color: rgb(0, 0, 0);
}

.process__card-body .tag {
  display: none;
  margin-top: 1rem;
  font-size: .65rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: black;
  border: 1px solid rgb(0, 0, 0);
  padding: .3em .8em;
  border-radius: 2px;
}

/* ── NV Final Showcase ───────────────────────────── */
#finale {
  background: var(--final-bg);
  color: var(--final-fg);
  padding: clamp(5rem, 12vh, 10rem) 0;
}

.finale__header {
  text-align: center;
  margin-bottom: clamp(3rem, 6vh, 5rem);
}
.finale__header .section-number { color: var(--final-accent); }
.finale__header h2 {
  font-size: clamp(2rem, 5vw, 4rem);
}
.finale__header p {
  max-width: 45ch;
  margin: 1.5rem auto 0;
  font-size: .95rem;
  line-height: 1.7;
  color: var(--light);
}

.video-wrapper {
  max-width: 960px;
  margin: 0 auto clamp(4rem, 8vh, 7rem);
  aspect-ratio: 16/9;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.video-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg, transparent, transparent 20px,
    rgba(255,255,255,.01) 20px, rgba(255,255,255,.01) 40px
  );
  pointer-events: none;
}

.play-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid rgba(201,169,110,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .3s, transform .3s;
  z-index: 1;
  background: none;
  color: var(--final-accent);
}
.play-btn:hover {
  border-color: var(--final-accent);
  transform: scale(1.08);
}
.play-btn svg {
  width: 28px;
  height: 28px;
  margin-left: 4px;
}

.video-label {
  position: absolute;
  bottom: 1.25rem;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(212,205,196,.3);
}

/* Credits */
.credits {
  text-align: center;
}

.credits h3 {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 400;
  font-style: italic;
  margin-bottom: 3rem;
  color: rgba(212,205,196,.5);
}

.credits__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.credit-item dt {
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(212,205,196,.3);
  margin-bottom: .4rem;
}
.credit-item dd {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--final-fg);
}

.credits__footer {
  margin-top: clamp(3rem, 6vh, 5rem);
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.04);
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(212,205,196,.2);
}

.credits__btn {
  display: inline-block;
  padding: .65em 2em;
  border: 1px solid white;
  color: white;
  text-decoration: none;
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background .25s, color .25s, border-color .25s;
}

.credits__btn:hover {
  background: white;
  color: #0a0a0a;
  border-color: white;
}

.back-to-projects a {
  transition: color .25s, gap .25s;
}

.back-to-projects a:hover {
  color: #942929 !important;
}

/* ── Section transition band ──────────────────────── */
.section-transition {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--char-accent), transparent);
  opacity: .15;
}

/* ── Smooth section color transitions ─────────────── */
section {
  transition: background-color .6s ease;
}
