/* =============================================
   PROYECTO.CSS — Subpages de proyectos
   ============================================= */

/* NAV */
.project-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 64px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.85), transparent);
  transition: background 0.3s;
}

.project-nav.scrolled {
  background: rgba(0,0,0,0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.6);
}

.project-nav .nav-brand {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f0f0f0;
  text-decoration: none;
}

.project-nav .nav-brand span { color: #e8c96b; }

.back-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.2s;
}

.back-btn:hover { color: #e8c96b; }
.back-btn::before { content: '←'; font-size: 1rem; }

.nav-contact-link {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-contact-link:hover { color: #e8c96b; }


/* HERO */
.project-hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  background-size: cover;
  background-position: center 20%;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.project-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(17,17,17,1) 0%,
    rgba(0,0,0,0.5) 40%,
    rgba(0,0,0,0.15) 100%
  ),
  linear-gradient(
    to right,
    rgba(0,0,0,0.75) 0%,
    transparent 65%
  );
}

.project-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 5% 5rem;
  display: flex;
  align-items: flex-end;
  gap: 3rem;
  width: 100%;
}

.project-poster {
  flex-shrink: 0;
  width: 180px;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 25px 70px rgba(0,0,0,0.9);
  border: 1px solid rgba(255,255,255,0.08);
}

.project-info { flex: 1; max-width: 680px; }

.project-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: #e8c96b;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.project-title {
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.6rem;
  color: #fff;
}

.project-meta {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.2rem;
  letter-spacing: 0.05em;
}

.project-desc {
  font-size: 0.98rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 560px;
}

.project-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.platform-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 3px;
  color: rgba(255,255,255,0.65);
}


/* TRAILER */
.trailer-section {
  background: #0a0a0a;
  padding: 5rem 5%;
}

.section-heading {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #e8c96b;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.1);
  max-width: 200px;
}

.video-container {
  max-width: 960px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}

.video-container video {
  width: 100%;
  display: block;
  background: #000;
}

.video-container iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: none;
}


/* FILMSHEET SECTIONS (cast/crew) */
.filmsheet-section {
  position: relative;
  min-height: 480px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.filmsheet-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(3px);
}

.filmsheet-content {
  position: relative;
  z-index: 2;
  padding: 5rem 5%;
  width: 100%;
  max-width: 1100px;
}

.filmsheet-content .section-heading { margin-bottom: 2rem; }

.cast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem 3rem;
}

.cast-item {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 0.75rem;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease,
              border-color 0.25s, background 0.25s, padding 0.25s;
  border-radius: 4px;
  padding: 0.5rem 0.6rem 0.75rem;
  cursor: default;
}

.cast-item:hover {
  background: rgba(255,255,255,0.05);
  border-bottom-color: rgba(232,201,107,0.4);
  transform: translateX(6px) !important;
}

.cast-item.item-visible {
  opacity: 1;
  transform: translateY(0);
}

.cast-actor {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  display: block;
  transition: color 0.2s;
}

.cast-item:hover .cast-actor { color: #e8c96b; }

.cast-role {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}

.cast-item:hover .cast-role { color: rgba(255,255,255,0.75); }

.crew-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem 3rem;
}

.crew-item {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0.5rem 0.6rem 0.75rem;
  border-radius: 4px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease,
              border-color 0.25s, background 0.25s;
  cursor: default;
}

.crew-item:hover {
  background: rgba(255,255,255,0.05);
  border-bottom-color: rgba(232,201,107,0.4);
  transform: translateX(6px) !important;
}

.crew-item.item-visible {
  opacity: 1;
  transform: translateY(0);
}

.crew-role {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e8c96b;
  display: block;
  margin-bottom: 0.2rem;
}

.crew-name {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  transition: color 0.2s;
}

.crew-item:hover .crew-name { color: #fff; }


/* AWARDS */
.awards-section {
  padding: 4rem 5%;
  background: #111;
}

.awards-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 700px;
}

.awards-list li {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  padding-left: 1.75rem;
  position: relative;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease,
              color 0.2s, padding-left 0.2s;
  border-radius: 4px;
  padding-right: 0.5rem;
  cursor: default;
}

.awards-list li:hover {
  color: #fff;
  padding-left: 2.25rem;
}

.awards-list li.item-visible {
  opacity: 1;
  transform: translateY(0);
}

.awards-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: #e8c96b;
}


/* FOOTER */
.project-footer {
  padding: 2rem 5%;
  background: #000;
  text-align: center;
  font-size: 0.75rem;
  color: #444;
  letter-spacing: 0.05em;
}


/* RESPONSIVE */
@media (max-width: 768px) {
  .project-hero-content {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 3rem;
    gap: 1.5rem;
  }

  .project-poster {
    width: 120px;
  }

  .project-title { font-size: 2rem; }

  .cast-grid, .crew-grid {
    grid-template-columns: 1fr;
  }

  .project-nav .nav-brand { display: none; }
}
