/* ─────────────────────────────────────────────────────────────────────────────
   Contenido Neto — Casa Productora styles
   ───────────────────────────────────────────────────────────────────────────── */

/* ── Submenú ── */
#submenu {
  background: var(--black);
  color: var(--white);
  position: sticky;
  top: var(--nav-h);
  z-index: 90;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.submenu-inner {
  display: flex;
  align-items: center;
  height: 44px;
  gap: var(--gap);
}

.submenu-label {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,0.15);
  padding-right: var(--gap);
}

.submenu-links {
  display: flex;
  gap: 0;
  height: 100%;
}

.submenu-link {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 20px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  border-right: 1px solid rgba(255,255,255,0.1);
  transition: color 0.15s;
  position: relative;
}

.submenu-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: transparent;
  transition: 0.15s;
}

.submenu-link:hover { color: var(--white); }
.submenu-link.active { color: var(--white); }
.submenu-link.active::after { background: var(--white); }

/* ── Secciones ── */
.cp-section {
  padding: 64px 0;
  border-bottom: 1px solid var(--grid-line);
}

.cp-section-text {
  font-weight: 300;
  font-size: 16px;
  line-height: 1.8;
  color: #444;
  max-width: 640px;
  margin-bottom: 40px;
}

/* ── Grid de directores: 5 columnas máx, centrado ── */
.directors-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  max-width: calc(5 * 240px + 4 * 16px); /* 5 cols max = 1264px */
  margin: 0 auto;
}

.director-card {
  background: var(--white);
  border: 1px solid var(--grid-line);
  cursor: pointer;
  transition: background 0.12s;
  display: flex;
  flex-direction: column;
  flex: 0 0 240px;
  min-width: 0;
}

/* On narrow screens allow 2-column stacking */
@media (max-width: 540px) {
  .directors-grid { gap: 12px; max-width: 100%; }
  .director-card { flex: 0 0 calc(50% - 6px); }
}
.director-card:hover { background: var(--gray-1); }

.director-card-photo {
  aspect-ratio: 3/4;
  background: var(--gray-1);
  overflow: hidden;
}
.director-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.3s;
}
.director-card:hover .director-card-photo img { filter: grayscale(0%); }

.director-card-no-photo {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 32px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray-2);
  background: var(--gray-1);
}

.director-card-info {
  padding: 20px;
  border-top: 1px solid var(--grid-line);
}

.director-card-name {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.director-card-bio-preview {
  font-size: 13px;
  font-weight: 300;
  color: var(--gray-3);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Modal de director ── */
#director-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(2px);
  overflow-y: auto;
  padding: calc(var(--nav-h) + 44px) 0 40px;
}

#director-modal.open { display: flex; align-items: flex-start; justify-content: center; }

.dir-modal-inner {
  background: var(--white);
  width: 100%;
  max-width: 800px;
  margin: 0 var(--gap);
  position: relative;
  border: 1px solid var(--grid-line);
}

.dir-modal-close {
  position: absolute;
  top: 0; right: 0;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: var(--black);
  color: var(--white);
  border: none;
  font-size: 20px;
  z-index: 2;
  cursor: pointer;
}

.dir-modal-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
}

.dir-modal-photo {
  aspect-ratio: 3/4;
  background: var(--gray-1);
  overflow: hidden;
  border-right: 1px solid var(--grid-line);
}
.dir-modal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dir-modal-info {
  padding: 32px;
  overflow-y: auto;
}

.dir-modal-name {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.dir-modal-bio {
  font-weight: 300;
  font-size: 14px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 24px;
}

.dir-modal-projects-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-3);
  margin-bottom: 12px;
  border-top: 1px solid var(--grid-line);
  padding-top: 20px;
}

.dir-project-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dir-project-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--grid-line);
  transition: background 0.12s;
  text-decoration: none;
  color: inherit;
}
.dir-project-item:hover { background: var(--gray-1); }

.dir-project-thumb {
  width: 60px;
  height: 40px;
  background: var(--gray-2);
  overflow: hidden;
  flex-shrink: 0;
}
.dir-project-thumb img { width: 100%; height: 100%; object-fit: cover; }

.dir-project-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dir-project-meta {
  font-size: 12px;
  color: var(--gray-3);
  font-weight: 300;
}

.dir-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  border-top: 1px solid var(--grid-line);
  padding-top: 20px;
}

.dir-social a {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-3);
  border: 1px solid var(--gray-2);
  padding: 6px 14px;
  transition: 0.15s;
}
.dir-social a:hover { background: var(--black); color: var(--white); border-color: var(--black); }

/* ── Proyectos propios / Servicios ── */
.cp-projects-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 1px;
  overflow-x: auto;
  background: var(--grid-line);
  border: 1px solid var(--grid-line);
  scrollbar-width: thin;
  scrollbar-color: var(--gray-2) transparent;
}
.cp-projects-grid::-webkit-scrollbar { height: 3px; }
.cp-projects-grid::-webkit-scrollbar-thumb { background: var(--gray-2); }

.cp-project-card {
  flex-shrink: 0;
  width: 280px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  transition: background 0.12s;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.cp-project-card:hover { background: var(--gray-1); }

.cp-project-poster {
  aspect-ratio: 16/9;
  background: var(--gray-2);
  overflow: hidden;
}
.cp-project-poster img { width: 100%; height: 100%; object-fit: cover; }

.cp-project-info {
  padding: 20px;
  border-top: 1px solid var(--grid-line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cp-project-title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cp-project-meta {
  font-size: 12px;
  color: var(--gray-3);
  font-weight: 300;
}

.cp-project-desc {
  font-size: 13px;
  font-weight: 300;
  color: #555;
  line-height: 1.5;
  margin-top: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Botón "ver todos" */
.cp-show-more {
  display: block;
  margin: 24px auto 0;
  background: none;
  border: 2px solid var(--black);
  padding: 12px 40px;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: 0.15s;
}
.cp-show-more:hover { background: var(--black); color: var(--white); }

/* ── Placeholder vacío ── */
.cp-empty {
  min-width: 100%;
  padding: 60px;
  text-align: center;
  font-weight: 300;
  font-size: 14px;
  color: var(--gray-3);
}

/* ── Responsive ── */
@media (max-width: 700px) {
  .dir-modal-grid { grid-template-columns: 1fr; }
  .dir-modal-photo {
    aspect-ratio: 16/9;
    border-right: none;
    border-bottom: 1px solid var(--grid-line);
  }
  .submenu-label { display: none; }
  .submenu-link { padding: 0 12px; font-size: 11px; }
}
