/* Coproducciones — índice + fichas por espectáculo */

body.page-copro {
  font-family: var(--cc-font);
  color: var(--cc-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.page-copro #preloader,
body.page-copro #status {
  display: none !important;
}

body.page-copro .masthead {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--cc-border);
  padding: 12px 0 !important;
}

body.page-copro .masthead img {
  max-height: 48px;
  width: auto;
}

body.page-copro .mastfoot {
  border-top: 1px solid var(--cc-border);
  padding: 32px 0;
}

/* ── Contenedor ── */
.cc-copro {
  --cc-copro-max: 1140px;
  max-width: var(--cc-copro-max);
  margin: 0 auto;
  padding: calc(var(--cc-site-header-h, var(--cc-header-h, 72px)) + clamp(28px, 5vw, 48px)) clamp(16px, 4vw, 24px) clamp(56px, 8vw, 80px);
}

.cc-copro__head {
  margin-bottom: clamp(28px, 5vw, 40px);
}

.cc-copro__title {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--cc-black);
}

.cc-copro__sub {
  margin: 0;
  max-width: 52ch;
  font-size: 16px;
  line-height: 1.65;
  color: var(--cc-text-muted);
}

/* ── Índice de espectáculos ── */
.cc-copro__nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  list-style: none;
  margin: 0 0 clamp(48px, 8vw, 72px);
  padding: 0;
}

@media (min-width: 560px) {
  .cc-copro__nav {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cc-copro-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  background: var(--cc-bg);
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius-lg);
  overflow: hidden;
  box-shadow: var(--cc-shadow);
  transition: transform var(--cc-transition), box-shadow var(--cc-transition), border-color var(--cc-transition);
}

.cc-copro-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--cc-shadow-hover);
  border-color: rgba(0, 249, 207, 0.45);
  text-decoration: none;
  color: inherit;
}

.cc-copro-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--cc-bg-subtle);
  overflow: hidden;
}

.cc-copro-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.45s ease;
}

.cc-copro-card:hover .cc-copro-card__media img {
  transform: scale(1.04);
}

.cc-copro-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 180px;
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--cc-text-muted);
  background:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 8px,
      rgba(10, 10, 10, 0.025) 8px,
      rgba(10, 10, 10, 0.025) 16px
    ),
    var(--cc-bg-subtle);
}

.cc-copro-card__body {
  padding: clamp(16px, 3vw, 22px) clamp(18px, 3vw, 24px) clamp(20px, 3vw, 24px);
}

.cc-copro-card__tag {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cc-text-muted);
}

.cc-copro-card__title {
  margin: 0 0 4px;
  font-size: clamp(1.125rem, 2.5vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--cc-black);
}

.cc-copro-card__meta {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--cc-text-muted);
}

.cc-copro-card--soon {
  border-style: dashed;
  border-color: rgba(10, 10, 10, 0.14);
}

.cc-copro-card--soon:hover {
  border-color: var(--cc-accent);
}

/* ── Bloque por espectáculo ── */
.cc-copro-show {
  scroll-margin-top: calc(var(--cc-site-header-h, var(--cc-header-h, 72px)) + 20px);
  margin-bottom: clamp(56px, 10vw, 88px);
  padding-top: clamp(32px, 6vw, 48px);
  border-top: 1px solid var(--cc-border);
}

.cc-copro-show:first-of-type {
  border-top: none;
  padding-top: 0;
}

.cc-copro-show__label {
  margin-bottom: 20px;
}

/* Hero compacto por espectáculo */
body.page-copro .cc-copro-show .cc-show-hero {
  --cc-copro-hero-h: clamp(280px, 42vh, 460px);
  position: relative;
  height: var(--cc-copro-hero-h) !important;
  min-height: var(--cc-copro-hero-h) !important;
  margin-bottom: clamp(28px, 4vw, 40px);
  border-radius: var(--cc-radius-lg);
  overflow: hidden;
  background: #050505;
  isolation: isolate;
}

body.page-copro .cc-show-hero__track {
  position: absolute;
  inset: 0;
}

body.page-copro .cc-show-hero__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.75s ease, visibility 0.75s ease;
  z-index: 0;
  background: #050505;
}

body.page-copro .cc-show-hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

body.page-copro .cc-show-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

body.page-copro .cc-show-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    0deg,
    rgba(5, 5, 5, 0.92) 0%,
    rgba(5, 5, 5, 0.55) 38%,
    rgba(5, 5, 5, 0.15) 72%,
    rgba(5, 5, 5, 0) 100%
  );
}

body.page-copro .cc-show-hero__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(20px, 4vw, 32px);
  z-index: 4;
  padding: 0 clamp(20px, 4vw, 32px);
  pointer-events: none;
}

body.page-copro .cc-show-hero__title {
  margin: 0;
  font-size: clamp(1.65rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.65);
}

body.page-copro .cc-copro-show__subtitle {
  margin: 6px 0 0;
  font-size: clamp(0.95rem, 2vw, 1.125rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.82);
}

body.page-copro .cc-show-hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background var(--cc-transition);
}

body.page-copro .cc-show-hero__arrow:hover {
  background: rgba(255, 255, 255, 0.28);
}

body.page-copro .cc-show-hero__arrow--prev { left: 12px; }
body.page-copro .cc-show-hero__arrow--next { right: 12px; }

body.page-copro .cc-show-hero__dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 8px;
}

body.page-copro .cc-show-hero__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background var(--cc-transition), border-color var(--cc-transition);
}

body.page-copro .cc-show-hero__dot.is-active,
body.page-copro .cc-show-hero__dot:hover {
  background: var(--cc-accent);
  border-color: var(--cc-accent);
}

body.page-copro .cc-show-hero__scroll {
  display: none;
}

/* Contenido de ficha (reutiliza patrón show) */
body.page-copro .cc-show-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 56px);
  margin-top: 0;
  margin-bottom: 48px;
}

body.page-copro .cc-show-info__col p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--cc-text);
  margin-bottom: 1.25em;
}

body.page-copro .cc-show-section-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cc-text-muted);
  margin: 28px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--cc-border);
}

body.page-copro .cc-show-section-title:first-child {
  margin-top: 0;
}

body.page-copro .cc-show-ficha {
  background: rgba(10, 10, 10, 0.035);
  border: 1px solid rgba(10, 10, 10, 0.06);
  border-radius: var(--cc-radius-lg);
  padding: clamp(20px, 3vw, 28px) clamp(20px, 3vw, 32px);
}

body.page-copro .post-side-link {
  list-style: none;
  padding: 0;
  margin: 0;
}

body.page-copro .post-side-link li {
  padding: 10px 0;
  border-bottom: 1px solid var(--cc-border);
  font-size: 14px;
  line-height: 1.6;
  color: var(--cc-text);
}

body.page-copro .post-side-link li:last-child {
  border-bottom: none;
}

body.page-copro .post-side-link li strong {
  color: var(--cc-black);
  font-weight: 600;
}

body.page-copro .cc-show-media {
  margin-bottom: 48px;
}

body.page-copro .cc-show-media__title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cc-text-muted);
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--cc-border);
}

body.page-copro .cc-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

body.page-copro .cc-gallery--photos {
  grid-template-columns: repeat(4, 1fr);
}

body.page-copro .cc-gallery--photos .fancybox:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

body.page-copro .cc-gallery .fancybox {
  display: block;
  border-radius: var(--cc-radius);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--cc-bg-subtle);
  line-height: 0;
  box-shadow: var(--cc-shadow);
  transition: transform var(--cc-transition), box-shadow var(--cc-transition);
}

body.page-copro .cc-gallery .fancybox:hover {
  transform: translateY(-2px);
  box-shadow: var(--cc-shadow-hover);
}

body.page-copro .cc-gallery .matimg {
  width: 100% !important;
  max-width: none !important;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.page-copro .cc-gallery--press {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

body.page-copro .cc-gallery--press .fancybox {
  aspect-ratio: 4 / 3;
}

body.page-copro .cc-videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

body.page-copro .cc-videos iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: var(--cc-radius);
  display: block;
  box-shadow: var(--cc-shadow);
}

/* Programación del festival */
.cc-copro-program {
  display: grid;
  gap: clamp(24px, 4vw, 32px);
}

.cc-copro-program__month {
  background: var(--cc-bg-subtle);
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius-lg);
  padding: clamp(18px, 3vw, 24px) clamp(20px, 3vw, 28px);
}

.cc-copro-program__heading {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--cc-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cc-black);
}

.cc-copro-program__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.cc-copro-program__item {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  background: var(--cc-bg);
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius);
}

.cc-copro-program__when {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cc-text-muted);
}

.cc-copro-program__what {
  font-size: 15px;
  line-height: 1.55;
  color: var(--cc-text);
}

.cc-copro-program__badge {
  display: inline-block;
  margin-top: 4px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cc-black);
  background: rgba(0, 249, 207, 0.22);
  border-radius: 999px;
  width: fit-content;
}

.cc-copro-program__item--free {
  border-color: rgba(0, 249, 207, 0.35);
}

.cc-copro-gacetilla {
  margin-top: 8px;
  margin-bottom: 0;
}

.cc-copro-gacetilla .cc-btn {
  font-size: 12px;
  padding: 12px 20px;
}

/* Placeholder próximo espectáculo */
.cc-copro-show--placeholder {
  border-top: 1px dashed rgba(10, 10, 10, 0.12);
}

.cc-copro-soon {
  text-align: center;
  padding: clamp(40px, 8vw, 64px) clamp(24px, 5vw, 40px);
  background: var(--cc-bg-subtle);
  border: 1px dashed rgba(10, 10, 10, 0.12);
  border-radius: var(--cc-radius-lg);
}

.cc-copro-soon__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: rgba(0, 249, 207, 0.12);
  color: var(--cc-black);
  font-size: 1.75rem;
  font-weight: 300;
  line-height: 1;
}

.cc-copro-soon h2 {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
  color: var(--cc-black);
}

.cc-copro-soon p {
  margin: 0 auto;
  max-width: 42ch;
  font-size: 15px;
  line-height: 1.65;
  color: var(--cc-text-muted);
}

@media (max-width: 768px) {
  body.page-copro .cc-show-info {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  body.page-copro .cc-gallery--photos {
    grid-template-columns: repeat(2, 1fr);
  }

  body.page-copro .cc-gallery--photos .fancybox:first-child {
    grid-column: span 2;
    grid-row: span 1;
  }

  body.page-copro .cc-show-info__col p,
  body.page-copro .post-side-link li {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-copro .cc-show-hero__slide {
    transition: none;
  }

  .cc-copro-card:hover {
    transform: none;
  }
}
