/* Public movie pages. Kept separate from the management interface. */
.public-film {
  color: #00122d;
  background: #f6f8fd;
  /* El pie separa su contenido del blanco de la página; aquí ya lo hace este
     fondo, así que absorbemos ese hueco en lugar de dejarlo en blanco. */
  margin-bottom: calc(var(--vc-footer-gap) * -1);
  padding: 30px 0 calc(56px + var(--vc-footer-gap));
  font-family: var(--vc-font);
  font-size: 14px;
  line-height: 1.65;
}
.pd-container { width: min(1320px, 100% - 64px); margin: 0 auto; }
.pd-film-layout { display: grid; grid-template-columns: minmax(200px, 280px) minmax(0, 1fr); gap: 42px; align-items: start; }
.public-film .pd-poster { display: block; width: 100%; margin: 0; overflow: hidden; border-radius: 16px; background: transparent; box-shadow: 0 10px 28px rgb(0 18 45 / 12%); }
.public-film .pd-poster img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; }
.pd-poster-empty { background: #e2ebfa; aspect-ratio: 2 / 3; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 16px; text-align: center; padding: 20px; color: #337ccb; }
.pd-poster-empty ion-icon { font-size: 48px; }
.pd-film-content { min-width: 0; }
.public-film .pd-eyebrow { margin: 0 0 9px; color: #2c68aa; font-size: 12px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; }
.pd-film-heading h1 { margin: 0 0 18px; color: #00122d; font-family: var(--vc-font); font-size: clamp(28px, 3vw, 44px); font-weight: 700; line-height: 1.15; letter-spacing: -.8px; overflow-wrap: anywhere; }
.pd-facts { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.pd-facts li { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; line-height: 1.4; }
.pd-facts .pd-age, .pd-facts .pd-format { border: 1px solid #d4dfef; border-radius: 5px; padding: 5px 8px; background: white; font-size: 12px; font-weight: 700; }
.pd-facts .pd-format { background: #e6effc; color: #1e558f; border-color: #c8dcf7; }
.pd-facts .pd-format-3d { background: #00122d; color: white; border-color: #00122d; }
.pd-facts .pd-genre { color: #52627a; }
.pd-facts .pd-genre::before { content: "·"; margin-right: 3px; color: #91a0b4; }
.pd-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.public-film .pd-button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 54px; padding: 15px 28px; border: 1px solid transparent; border-radius: 999px; font-family: inherit; font-size: 15px; font-weight: 700; letter-spacing: .1px; line-height: 1.4; text-align: center; text-decoration: none; transition: background .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease; }
.public-film .pd-button-primary { color: white; background: #00122d; box-shadow: 0 3px 12px rgb(0 18 45 / 28%); }
.public-film .pd-button-primary:hover { background: #18528c; transform: translateY(-1px); box-shadow: 0 7px 20px rgb(0 18 45 / 34%); }
.public-film .pd-button-secondary { color: #00122d; background: white; border-color: #cedbeb; box-shadow: 0 1px 3px rgb(0 18 45 / 10%); }
.public-film .pd-button-secondary:hover { background: #e6effc; border-color: #337ccb; transform: translateY(-1px); box-shadow: 0 6px 16px rgb(0 18 45 / 16%); }
.pd-button ion-icon { flex: 0 0 auto; font-size: 22px; }
.public-film a:focus-visible { outline: 3px solid #00a8f0; outline-offset: 4px; }
.pd-information { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(220px, 1fr); gap: 32px; margin-top: 32px; padding-top: 27px; border-top: 1px solid #dce5f1; }
.pd-information h2 { margin: 0 0 12px; color: #00122d; font-family: inherit; font-size: 17px; font-weight: 600; letter-spacing: -.3px; }
.pd-copy { color: #47556d; font-size: 14px; line-height: 1.85; }
.pd-copy p + p { margin-top: 13px; }
.pd-credits dl { margin: 0; }
.pd-credits dl > div + div { margin-top: 14px; }
.pd-credits dt { color: #6b788b; font-size: 12px; font-weight: 600; }
.pd-credits dd { margin: 3px 0 0; color: #273c59; font-size: 13px; line-height: 1.7; }
.pd-schedule-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; }
.pd-film-summary { position: sticky; top: 100px; min-width: 0; }
.pd-film-summary .pd-poster { align-self: start; }
.pd-summary-content { padding-top: 20px; }
.pd-summary-content h1 { margin: 0 0 12px; color: #00122d; font-family: inherit; font-size: 23px; font-weight: 700; line-height: 1.3; letter-spacing: -.6px; overflow-wrap: anywhere; }
.pd-summary-content .pd-facts { margin-bottom: 14px; gap: 6px; }
.public-film .pd-text-link { display: inline-flex; align-items: center; gap: 6px; color: #285f9e; font-size: 12px; font-weight: 500; line-height: 1.5; }
.public-film .pd-text-link:hover { color: #00122d; text-decoration: underline; }
.pd-summary-content .pd-text-link { display: flex; width: fit-content; min-height: 38px; }
/* Acciones secundarias: mismo lenguaje de pastilla, un punto por debajo del
   botón principal para que no le compitan. */
.public-film .pd-button-compact { min-height: 44px; padding: 11px 18px; font-size: 13px; font-weight: 600; }
.public-film .pd-button-compact ion-icon { font-size: 18px; }
.pd-summary-actions { display: grid; gap: 8px; justify-items: stretch; margin-top: 16px; }
.public-film .pd-button-compact { white-space: nowrap; }
.pd-sessions { min-width: 0; }
.pd-sessions-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.pd-sessions-heading h2 { color: #00122d; font-family: var(--vc-display); font-size: 34px; font-weight: 400; line-height: 1.05; letter-spacing: .6px; }
.pd-sessions-heading .pd-eyebrow { margin-bottom: 5px; }
.pd-sessions-heading > .pd-text-link { flex-shrink: 0; min-height: 40px; }
/* Cine y día son los dos filtros que de verdad se usan aquí: el espectador ya
   sabe qué quiere ver y solo necesita cuándo y dónde. Van en pastillas, a un
   toque, y en móvil se quedan fijas bajo la cabecera. */
.pd-filters { display: grid; gap: 14px; margin-bottom: 18px; padding: 16px 18px; border: 1px solid #dde5f1; border-radius: 15px; background: white; }
.pd-filter { display: grid; gap: 8px; min-width: 0; }
.pd-filter__label { color: #6b788b; font-size: 12px; font-weight: 700; letter-spacing: .3px; }
.pd-chips-wrap { position: relative; min-width: 0; }
.pd-chips { display: flex; flex-wrap: wrap; gap: 7px; min-width: 0; }
/* Degradado y flecha solo cuando la tira se sale: si cabe todo, no molestan. */
.pd-chips-wrap::before,
.pd-chips-wrap::after { content: ""; position: absolute; top: 0; bottom: 0; width: 44px; pointer-events: none; opacity: 0; transition: opacity .18s ease; }
.pd-chips-wrap::before { left: 0; background: linear-gradient(90deg, white 22%, rgb(255 255 255 / 0%)); }
.pd-chips-wrap::after { right: 0; background: linear-gradient(270deg, white 22%, rgb(255 255 255 / 0%)); }
.pd-chips-wrap[data-inicio="true"]::before { opacity: 1; }
.pd-chips-wrap[data-mas="true"]::after { opacity: 1; }
.pd-chip { min-height: 42px; padding: 9px 16px; border: 1px solid #dce5f1; border-radius: 999px; background: #f6f8fd; color: #41516a; font-family: inherit; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background .16s ease, border-color .16s ease, color .16s ease; }
.pd-chip:hover { border-color: #337ccb; background: white; }
.pd-chip[aria-pressed="true"] { background: #00122d; border-color: #00122d; color: white; }
.pd-chip:focus-visible { outline: 3px solid #00a8f0; outline-offset: 3px; }
.pd-filters-hint { margin: 0 0 20px; color: #6b788b; font-size: 13px; }
.pd-filters-hint strong { color: #273c59; font-weight: 700; }

.pd-cinema-sessions { padding: 21px 22px 12px; border: 1px solid #dde5f1; border-radius: 15px; background: white; }
.pd-cinema-sessions + .pd-cinema-sessions { margin-top: 20px; }
.pd-cinema-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.pd-cinema-label { display: flex; align-items: center; gap: 5px; margin: 0; color: #687790; font-size: 12px; }
.pd-cinema-label span { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.pd-cinema-label .pd-cinema-label__pelicula { display: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-cinema-label ion-icon { flex-shrink: 0; color: #337ccb; font-size: 15px; }
.pd-cinema-heading h3 { margin: 3px 0 0; color: #00122d; font-family: var(--vc-display); font-size: 28px; font-weight: 400; line-height: 1.1; letter-spacing: .5px; white-space: nowrap; }
/* Comprar entradas se repite en cada cine: es una acción de tarjeta, no el
   botón principal de la página, así que va un punto por debajo. */
.public-film .pd-buy { flex-shrink: 0; min-height: 46px; padding: 12px 20px; font-size: 14px; }
.public-film .pd-buy ion-icon { font-size: 19px; }
.pd-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 10px; align-items: stretch; }
.pd-day { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; min-width: 0; padding: 14px; border: 1px solid #e0e7f2; border-radius: 9px; background: #f6f8fd; }
.pd-day h4 { color: #233c5b; font-family: inherit; font-size: 13px; font-weight: 600; line-height: 1.5; }
.pd-sessions[data-dia-unico="true"] .pd-day h4 { display: none; }
.pd-sessions[data-dia-unico="true"] .pd-day-information:not(:has(.pd-promotion)) { display: none; }
.pd-day.pd-day-promo { background: var(--vc-green-soft); border-color: var(--vc-green-line); box-shadow: inset 3px 0 0 var(--vc-green); }
.pd-day.pd-day-promo .pd-promotion, .pd-day.pd-day-promo .pd-promotion strong { color: var(--vc-green-ink); }
.pd-day.pd-day-promo .pd-time { border-color: var(--vc-green-line); color: var(--vc-green-ink); }
.pd-day.pd-day-promo .pd-time:hover { background: var(--vc-green-soft); border-color: var(--vc-green); }
.pd-day.pd-day-preview { border-color: #9abce8; background: #e8f2ff; }
.pd-promotion { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; margin: 5px 0 0; color: #2b6299; font-size: 12px; font-weight: 500; line-height: 1.55; }
.pd-promotion strong { color: #164c83; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pd-promotion-preview { font-weight: 700; }
.pd-times { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; }
.pd-time { display: flex; align-items: center; justify-content: center; min-width: 64px; min-height: 44px; padding: 8px 13px; border: 1px solid #ccdbed; border-radius: 999px; background: white; color: #00122d; font-size: 15px; font-weight: 700; line-height: 1.4; font-variant-numeric: tabular-nums; transition: border-color .16s ease, background .16s ease; }
.pd-time:hover { border-color: #337ccb; background: #eaf4ff; }
.pd-time-past { border-color: #e1e6ed; background: #f0f2f6; color: #737f8e; text-decoration: line-through; }
.pd-cinema-more { min-height: 44px; margin-top: 7px; }
.pd-empty-state { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 32px; border: 1px solid #dce5f1; border-radius: 15px; background: white; }
.pd-empty-state > ion-icon { font-size: 32px; color: #337ccb; }
.pd-empty-state h3 { color: #00122d; font-size: 21px; font-weight: 600; }
.pd-empty-state p { color: #52627a; }
@media (max-width: 1000px) {
  .pd-film-layout { grid-template-columns: 230px minmax(0, 1fr); gap: 28px; }
  .pd-information { grid-template-columns: 1fr; gap: 26px; }
  .pd-credits dl { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 25px; }
  .pd-credits dl > div + div { margin-top: 0; }
  .pd-schedule-layout { grid-template-columns: 180px minmax(0, 1fr); gap: 24px; }
  .pd-sessions-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .pd-sessions-heading h2 { font-size: 30px; }
  .pd-cinema-sessions { padding: 18px 16px 10px; }
  .pd-filters { position: sticky; top: var(--vc-header-h); z-index: 20; gap: 9px; margin-inline: -32px; padding: 10px 32px 12px; border: 0; border-bottom: 1px solid #dde5f1; border-radius: 0; box-shadow: 0 6px 12px rgb(0 18 45 / 6%); }
  .pd-filter { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; }
  .pd-filter__label { font-size: 11px; text-transform: uppercase; letter-spacing: .9px; }
  .pd-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
  .pd-chips::-webkit-scrollbar { display: none; }
  .pd-chip { flex: 0 0 auto; min-height: 40px; padding: 8px 14px; scroll-snap-align: start; }
  .pd-filters-hint { margin: 14px 0 16px; font-size: 12px; }
  .pd-days { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
}
@media (max-width: 700px) {
  .public-film { padding-top: 16px; padding-bottom: 36px; }
  .pd-container { width: calc(100% - 32px); }
  .pd-filters { margin-inline: -16px; padding-inline: 16px; }
  .pd-film-layout { grid-template-columns: 108px minmax(0, 1fr); gap: 20px; }
  .public-film .pd-poster { border-radius: 10px; }
  .pd-film-content { display: contents; }
  .pd-film-heading { align-self: center; }
  .pd-film-heading h1 { margin-bottom: 12px; font-size: 26px; letter-spacing: -.75px; }
  .public-film .pd-eyebrow { font-size: 12px; letter-spacing: .8px; }
  .pd-facts { gap: 6px; }
  .pd-facts li { font-size: 12px; }
  .pd-facts .pd-genre { font-size: 12px; }
  .pd-facts .pd-age, .pd-facts .pd-format { padding: 4px 6px; font-size: 12px; }
  .pd-actions { margin-top: 18px; gap: 9px; }
  .public-film .pd-button { flex: 1 1 100%; padding: 13px 18px; font-size: 14px; min-height: 50px; }
  .pd-button ion-icon { font-size: 20px; }
  .pd-information { grid-column: 1 / -1; margin-top: 3px; padding-top: 22px; gap: 24px; }
  .pd-copy { font-size: 14px; line-height: 1.8; }
  .pd-information h2 { font-size: 16px; }
  .pd-schedule-layout { display: block; }
  .pd-film-summary { position: static; display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 14px 16px; margin-bottom: 25px; align-items: start; }
  .pd-film-summary .pd-poster { grid-area: 1 / 1; }
  .pd-summary-content { grid-area: 1 / 2; }
  /* Los botones cruzan las dos columnas: si van junto al título dejan un
     hueco muerto bajo el cartel. */
  .pd-summary-actions { grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); }
  .pd-summary-content { padding-top: 0; }
  .pd-summary-content h1 { font-size: 23px; margin-bottom: 10px; }
  .pd-summary-content .pd-facts { margin-bottom: 6px; }
  .pd-summary-content .pd-text-link { display: inline-flex; margin-right: 12px; min-height: 32px; font-size: 12px; }
  .pd-summary-actions { gap: 8px; margin-top: 0; }
  .public-film .pd-button-compact { padding: 10px 12px; font-size: 12.5px; }
  /* En móvil el rótulo útil es de qué película son estas sesiones. */
  .pd-cinema-label .pd-cinema-label__cadena { display: none; }
  .pd-cinema-label .pd-cinema-label__pelicula { display: inline-flex; }
  .pd-cinema-heading { flex-direction: column; align-items: stretch; gap: 12px; }
  .public-film .pd-buy { width: 100%; }
  .pd-chips-wrap::before, .pd-chips-wrap::after { width: 40px; }
  .pd-sessions-heading { flex-direction: row; align-items: center; gap: 10px; margin-bottom: 14px; }
  .pd-sessions-heading h2 { font-size: 26px; }
  .pd-sessions-heading > .pd-text-link { flex-shrink: 1; text-align: right; font-size: 12px; }
  .pd-cinema-sessions { padding: 16px 12px 7px; border-radius: 12px; }
  .pd-cinema-heading { gap: 10px; margin-bottom: 15px; }
  .pd-cinema-heading h3 { font-size: 25px; }
  .pd-cinema-label { font-size: 12px; }
  .pd-days { grid-template-columns: 1fr; gap: 7px; }
  .pd-day { display: grid; grid-template-columns: minmax(105px, .95fr) minmax(0, 1.3fr); align-items: center; gap: 10px; padding: 11px 10px; }
  .pd-sessions[data-dia-unico="true"] .pd-day { grid-template-columns: auto minmax(0, 1fr); }
  .pd-day h4 { font-size: 12px; }
  .pd-promotion { font-size: 12px; line-height: 1.5; }
  .pd-promotion strong { font-size: 12px; }
  .pd-times { justify-content: flex-end; gap: 5px; }
  .pd-time { min-width: 50px; min-height: 33px; padding: 5px 7px; font-size: 13px; }
  .pd-cinema-more { font-size: 12px !important; }
  .pd-empty-state { padding: 23px; }
}
@media (max-width: 380px) {
  .pd-film-layout { grid-template-columns: 90px minmax(0, 1fr); gap: 14px; }
  .pd-film-heading h1 { font-size: 23px; }
  .pd-credits dl { grid-template-columns: 1fr; }
  .pd-cinema-heading h3 { font-size: 23px; }
  .pd-day { grid-template-columns: minmax(95px, 1fr) minmax(0, 1.25fr); padding: 10px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .public-film .pd-button { transition: none; }
  .public-film .pd-button:hover { transform: none; }
}
