/* Películas */
.imagen-trailer {
  display: block;
  width: 120px;
}

.contenedor {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 34px;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.detalle {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  max-height: calc(100vh - 240px);
  overflow: hidden;
}


.detalle-scroll {
  max-height: calc(100vh - 240px);
  padding-right: 18px;
  overflow: auto hidden;
  overflow-y: auto;
}

.detalle-scroll::-webkit-scrollbar,
.miniaturas::-webkit-scrollbar {
  width: 6px;
  height: 5px;
}

.detalle-scroll::-webkit-scrollbar-track,
.miniaturas::-webkit-scrollbar-track {
  background: transparent;
}

.detalle-scroll::-webkit-scrollbar-thumb,
.miniaturas::-webkit-scrollbar-thumb {
  border-radius: 20px;
  background: transparent;
}

.detalle-scroll::-webkit-scrollbar-thumb:hover,
.miniaturas::-webkit-scrollbar-thumb:hover {
  background: rgba(151, 171, 99, 0.35);
}

.detalle-contenido {
  display: flex;
  align-items: flex-start;
  gap: 95px;
}

.columna-poster {
  flex: 0 0 auto;
  transform: translateX(35px);
}

.portada-grande {
  display: block;
  width: 260px;
  height: auto;
}

.info {
  width: 390px;
}

.info h2 {
  margin: 0 0 8px;
  color: var(--color-text);
  font-size: 26px;
  font-weight: 300;
}

.info h3 {
  margin: 0 0 16px;
  color: var(--color-text);
  font-size: 24px;
  font-weight: 300;
}

.info p {
  margin: 0 0 34px;
  color: var(--color-text);
  font-size: 15px;
  line-height: 1.25;
}

.bloque-extra {
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.seccion {
  width: 100%;
}

.fila-seccion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: 100%;
  margin-bottom: 12px;
}

.fila-seccion h4,
.ventanas-bloque h4 {
  margin: 0;
  color: var(--color-text);
  font-size: 24px;
  font-weight: 300;
}

.trailer-fila {
  justify-content: flex-start;
  gap: 22px;
}

.logo-simple {
  display: block;
  width: 90px;
  height: auto;
}

.link-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.texto-simple {
  color: var(--color-text);
  font-size: 15px;
  line-height: 1;
}

.lista-info {
  margin: 0;
  padding-left: 18px;
}

.lista-info li {
  margin-bottom: 8px;
  color: var(--color-text);
  font-size: 14px;
  line-height: 1.35;
}

.ver-todo,
.volver-detalle {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--color-text);
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.ver-todo {
  font-size: 11px;
}

.volver-detalle {
  font-size: 12px;
}

.ver-todo:hover,
.volver-detalle:hover {
  color: var(--color-accent);
}

.preview-galeria {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 280px;
}

.preview-galeria img,
.galeria-completa img {
  display: block;
  width: 100%;
  height: auto;
}

.galeria-info {
  width: 430px;
}

.fila-galeria-titulo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.fila-galeria-titulo h2 {
  margin: 0;
  color: var(--color-text);
  font-size: 26px;
  font-weight: 300;
}

.galeria-completa {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: 14px;
}

.preview-resenas-lista,
.galeria-resenas-lista {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.resena-item {
  width: 100%;
}

.resena-logo {
  display: block;
  width: 115px;
  max-height: 48px;
  margin-bottom: 6px;
  object-fit: contain;
  object-position: left center;
}

.resena-titulo {
  display: block;
  margin-bottom: 4px;
  color: var(--color-text-strong);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.15;
  text-decoration: none;
}

a.resena-titulo:hover {
  color: var(--color-accent);
}

.resena-texto p {
  margin: 0 0 10px;
  color: var(--color-text-strong);
  font-size: 11px;
  line-height: 1.2;
}

.ventanas-bloque {
  width: 260px;
  margin-top: 36px;
}

.ventanas-bloque h4 {
  margin-bottom: 18px;
  font-size: 28px;
  line-height: 1;
  text-align: left;
}

.ventanas-logos {
  display: grid;
  grid-template-columns: repeat(2, 90px);
  align-items: center;
  justify-content: center;
  justify-items: center;
  gap: 18px;
  width: 100%;
  max-width: 240px;
}

.ventanas-logos > img,
.ventanas-logos > a,
.ventanas-logos > span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 42px;
}

.ventanas-logos > :only-child,
.ventanas-logos > :last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.ventanas-logos img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 90px;
  max-height: 42px;
  object-fit: contain;
  object-position: center center;
}

.ventanas-logos a {
  text-decoration: none;
}

.ventana-texto {
  display: inline-block;
  border: 1px solid #777777;
  padding: 5px 8px;
  color: var(--color-text);
  font-size: 15px;
  text-decoration: none;
}

.miniaturas {
  display: grid;
  grid-template-columns: repeat(3, 145px);
  align-content: start;
  gap: 18px;
  flex: 0 0 471px;
  width: 471px;
  max-width: 471px;
  max-height: calc(100vh - 240px);
  margin-top: 10px;
  padding-right: 0;
  padding-bottom: 28px;
  overflow-y: auto;
  overflow-x: visible;
  box-sizing: border-box;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

.miniaturas img {
  display: block;
  width: 145px;
  height: auto;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
}


.miniaturas img:hover {
  transform: scale(1.06);
}

.miniaturas img.activa {
  opacity: 0.45;
  outline: 2px solid #bcbcbc;
  filter: grayscale(35%);
}

.galeria-cuadrilatero {
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: start;
}

.galeria-cuadrilatero .premio-cuadrilatero-30 {
  order: 0;
  grid-column: 1;
  width: 100%;
  justify-self: center;
}

.galeria-cuadrilatero .premio-cuadrilatero-28 {
  order: 1;
  grid-column: 1 / -1;
  width: 34%;
  justify-self: center;
  margin-top: 8px;
}

.galeria-cuadrilatero .premio-cuadrilatero-29 {
  order: 2;
  grid-column: 1 / -1;
  width: 34%;
  justify-self: center;
  margin-top: -4px;
}

@media (min-width: 769px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  .contenedor {
    height: calc(100vh - var(--header-height-desktop));
    overflow: hidden;
  }
}

@media (min-width: 769px) and (max-width: 1100px) {
  .titulo-logo {
    font-size: 40px;
  }

  .detalle {
    width: 60%;
    max-height: calc(100vh - 200px);
  }

  .detalle-scroll {
    max-height: calc(100vh - 200px);
  }

  .detalle-contenido {
    gap: 30px;
  }

  .columna-poster {
    transform: none;
  }

  .portada-grande {
    width: 240px;
  }

  .info {
    width: auto;
  }

  .info h2 {
    font-size: 34px;
  }

  .info h3 {
    font-size: 28px;
  }

  .info p {
    font-size: 18px;
  }

  .lista-info li,
  .texto-simple {
    font-size: 16px;
  }

  .miniaturas {
    grid-template-columns: repeat(3, 120px);
    gap: 14px;
    width: calc((120px * 3) + (14px * 2) + 22px);
    max-width: calc((120px * 3) + (14px * 2) + 22px);
  }

  .miniaturas img {
    width: 120px;
  }
}

@media (max-width: 768px) {
  .contenedor {
    gap: 24px;
    padding: 20px 0 40px;
    overflow: visible;
  }

  .miniaturas {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    width: 100%;
    max-width: 100vw;
    gap: 8px;
    margin: 25px 0 0;
    padding: 0 12px 8px;
    overflow: auto hidden;
    line-height: 0;
    scroll-snap-type: none;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
  }

  .miniaturas::before {
    content: '';
    display: block;
    flex: 0 0 10px;
    width: 10px;
    height: 1px;
  }

  .miniaturas img {
    flex: 0 0 100px;
    width: 100px;
    height: 150px;
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: center center;
    background: var(--color-bg);
  }

  .miniaturas img:hover {
    transform: none;
  }

  .detalle {
    width: 100%;
    max-height: none;
    margin-top: 24px;
    padding: 0 18px;
    overflow: visible;
  }

  .detalle-scroll {
    max-height: none;
    padding-right: 0;
    padding-bottom: 40px;
    overflow: visible;
  }

  .detalle-contenido {
    display: grid;
    grid-template-columns: 125px minmax(0, 1fr);
    align-items: start;
    gap: 16px;
    width: 100%;
  }

  .columna-poster {
    transform: none;
  }

  .portada-grande {
    width: 120px;
    max-width: 120px;
    height: auto;
    object-fit: contain;
  }

  .info,
  .galeria-info {
    width: 100%;
    min-width: 0;
  }

  .info h2 {
    margin: 0;
    font-size: 18px;
  }

  .info h3 {
    margin: 4px 0 12px;
    font-size: 15px;
  }

  .info p,
  .lista-info li,
  .resena-texto p {
    padding-right: 0;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
  }

  .info p {
    margin-bottom: 18px;
    font-size: 12px;
    line-height: 1.35;
  }

  .bloque-extra {
    gap: 16px;
  }

  .fila-seccion {
    gap: 8px;
    margin-bottom: 7px;
  }

  .fila-seccion h4,
  .seccion h4 {
    margin-bottom: 7px;
    font-size: 12px;
  }

  .trailer-fila {
    gap: 10px;
  }

  .trailer-fila h4 {
    margin-bottom: 0;
  }

  .logo-simple {
    width: 58px;
  }

  .imagen-trailer {
    width: 60px;
  }

  .texto-simple,
  .lista-info li {
    font-size: 12px;
    line-height: 1.3;
  }

  .lista-info {
    padding-left: 12px;
  }

  .ver-todo,
  .volver-detalle {
    font-size: 10px;
  }

  .preview-galeria {
    max-width: 120px;
    gap: 5px;
  }

  .fila-galeria-titulo {
    margin-bottom: 12px;
  }

  .fila-galeria-titulo h2 {
    font-size: 18px;
  }

  .galeria-completa {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .preview-resenas-lista,
  .galeria-resenas-lista {
    gap: 14px;
  }

  .resena-logo {
    width: 75px;
    max-height: 34px;
    margin-bottom: 4px;
  }

  .resena-titulo {
    font-size: 9px;
  }

  .resena-texto p {
    font-size: 8.5px;
    line-height: 1.2;
  }

  .ventanas-bloque {
    width: 120px;
    margin-top: 18px;
  }

  .ventanas-bloque h4 {
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1;
  }

  .ventanas-logos {
    grid-template-columns: repeat(2, 42px);
    justify-content: center;
    justify-items: center;
    gap: 8px;
    max-width: 95px;
  }

  .ventanas-logos > img,
  .ventanas-logos > a,
  .ventanas-logos > span {
    width: 42px;
    height: 24px;
    min-height: 18px;
  }

  .ventanas-logos img {
    max-width: 42px;
    max-height: 24px;
  }

  .ventana-texto {
    padding: 3px 5px;
    font-size: 8px;
  }
}

@media (max-width: 380px) {
  .detalle {
    padding: 0 14px;
  }

  .detalle-contenido {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 12px;
  }

  .portada-grande {
    width: 96px;
    max-width: 96px;
  }

  .info h2 {
    font-size: 16px;
  }

  .info h3 {
    font-size: 14px;
  }

  .info p,
  .lista-info li,
  .texto-simple {
    font-size: 10px;
    line-height: 1.35;
  }

  .miniaturas {
    gap: 7px;
  }

  .miniaturas img {
    flex: 0 0 48px;
    width: 48px;
    height: 72px;
  }

  .ventanas-bloque {
    width: 96px;
  }

  .ventanas-logos {
    grid-template-columns: repeat(2, 39px);
    gap: 7px;
  }

  .ventanas-logos > img,
  .ventanas-logos > a,
  .ventanas-logos > span {
    width: 39px;
    height: 22px;
  }

  .ventanas-logos img {
    max-width: 39px;
    max-height: 22px;
  }
}
