@charset "utf-8";
/* CSS Document */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  background: #fff;
  color: #222;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background-color: var(--background-color);
  color: var(--primary-color);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.5; /* Mejor legibilidad */
  display: flex;
  min-height: 100vh;
  flex-direction: column; 
}

/* Variables globales */
:root {
  --primary-color: #fff;
  --secondary-color: #000;
  --highlight-color: #262e91;
  --background-color: #000;
  --font-family: "Poppins", sans-serif;
  --font-size-base: 16px;
  --font-size-large: calc(1.5em + 1vw);
  --header-height: 20px;
  --container-padding: 0px;
  --logo-menu-spacing: 20px; /* Espaciado entre logo y menú */
}

html, body {
  margin: 0;
  padding: 0;
}
/* ====== CONTENEDOR PRINCIPAL ====== */

.container {
  flex: 1; 
  display: grid;
  grid-template-rows: auto 1fr; /* Asegura que el footer esté abajo */
  gap: var(--container-padding);
  width: 100%;
  min-height: 100vh; /* Evita que el footer se sobreponga si hay poco contenido */
  flex-shrink: 0; /* Evita que el footer se superponga */
}
/* ====== HEADER ====== */
.item.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: var(--background-color);
  color: var(--primary-color);
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.header .logo img {
  max-height: 60px;
  width: auto;
}

/* ====== BLOQUE DE CONTENIDO ====== */
.item.logo {
  flex: 1;
}

.item.logo img {
  height: 40px;
  width: auto;
  margin-right: var(--logo-menu-spacing);
}

.cuerpo {
  display: grid;
  grid-template-rows: auto;
  gap: 0px;
  min-height: 0;
}

.bloque_contenido_1 {
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* ====== BLOQUE POSTER A PANTALLA (cover) ====== */

.bloque_bk {
  display: flex;
  max-width: 100vw;
  overflow: hidden;
  transition: opacity .2s ease-in-out;
}
/* Padding responsivo del contenedor */
.bloque_bk2 { padding: 10px 26px 0; }
@media (min-width: 1024px) and (max-width: 1200px) {
  .bloque_bk2 { padding: 34px 36px 36px; }
}
@media (min-width: 480px) and (max-width: 1023px) {
  .bloque_bk2 { padding: 34px 24px 24px; }
}
@media (max-width: 479px) {
  .bloque_bk2 { padding: 16px; }
}

/* Capa que contiene la imagen y el gradiente */
._imgGradient {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* Gradiente encima de la imagen */
._imgGradient::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.35) 0%,
    rgba(0,0,0,0.25) 40%,
    rgba(0,0,0,0.55) 100%
  );
  pointer-events: none;
}

/* Imagen que cubre el fondo */
.poster.imagen_poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;             /* cubre sin deformar */
  display: block;
  z-index: -1;
  user-select: none;
  pointer-events: none;
}

/* Contenido superpuesto (texto, etc.) */
.contenidoBloque_0 {
  position: relative;
  z-index: 1;                    /* encima del gradiente */
  width: 100%;
  min-height: inherit;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: clamp(16px, 6vw, 64px);
  padding-right: clamp(16px, 6vw, 64px);
}

/* Contenedor del meta/título */
._metaContainer {
  display: flex;
  flex-direction: column;
  max-width: 720px;
}

/* Título dentro del bloque */
.titulo_prog {
  margin-bottom: 8px;
  font-size: calc(2.0em + 2.0vw);
  line-height: 1.05;
  text-shadow: 0.08em 0.08em 0.08em #000;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .15px;
  color: #fff;
}



/* ====== RESPONSIVE ====== */
@media (max-width: 992px) {
  .contenidoBloque_0 {
    justify-content: center;     /* centrado en tablets/móvil */
    text-align: center;
  }
  ._metaContainer { max-width: 90ch; }
}

@media (max-width: 600px) {
  .bloque_bk { min-height: 60vh; }
  .titulo_prog { font-size: calc(1.6em + 3vw); }
}
/**/
/* ===== Galería ===== */
.galeria {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
}

.galeria .miniatura {
  width: 180px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.galeria .miniatura:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

/* ===== Lightbox ===== */
#lightbox {
  display: none; /* Oculto por defecto */
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
}

#lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.8);
}

#lightbox:target {
  display: flex; /* Muestra el lightbox */
}

/* Botón de cierre */
#lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

#lightbox .close:hover {
  color: #ff4d4d;
}

/*
.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  padding: 20px;
}

.galeria img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.galeria img:hover {
  transform: scale(1.05);
  box-shadow: 0px 4px 15px rgba(0,0,0,0.3);
}

.lightbox {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  visibility: visible;
  opacity: 1;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}
*/
/*
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 20px;
  padding: 10px;
}

.galeria-grid img.miniatura {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.galeria-grid img.miniatura:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}


.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  inset: 0;
  background-color: rgba(0,0,0,0.85);
  text-align: center;
}

.modal-contenido {
  margin: auto;
  max-width: 85%;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 6px 25px rgba(0,0,0,0.6);
  animation: zoom 0.4s;
}

@keyframes zoom {
  from {transform: scale(0.7);}
  to {transform: scale(1);}
}


#caption {
  margin-top: 12px;
  font-size: 18px;
  color: #eee;
}


.cerrar {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 36px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}
.cerrar:hover {
  color: #ff4444;
}
*/
/* ====== FOOTER ====== */

footer {
  background-color: #1e1e1e;
  color: #fff;
  padding: 40px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  font-family: Arial, sans-serif;
}

footer a {
  color: #ffffff;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.item {
  box-sizing: border-box;
}

._foot1, ._foot2 {
  flex: 1 1 300px;
  margin-bottom: 30px;
}

._pie_bloque {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.p_b ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.p_b li {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.5;
}

.p_b li img {
  margin-right: 10px;
}

.centrado {
  display: flex;
  align-items: center;
}

._p_b2 {
  text-align: center;
}

.tit_pie1 {
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 15px;
}

.icoredes {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.icoredes img {
  width: 40px;
  height: 40px;
  transition: transform 0.2s ease;
}

.icoredes img:hover {
  transform: scale(1.1);
}

/* Responsive (opcional si lo deseas más compacto en móvil) */
@media (max-width: 600px) {
  ._pie_bloque {
    flex-direction: column;
  }

  .p_b li {
    font-size: 14px;
  }

  .icoredes {
    flex-wrap: wrap;
    gap: 10px;
  }
}