/* produccion_contenidos/estilos/css/ver-programa.css
   Página de detalle de un programa (ver_programa.html).
   Solo afecta a esa página: todas las clases empiezan con "vp-". */

.vp-pagina {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.25rem 0.5rem 1.5rem;
  overflow: hidden;
  /* clip recorta igual que hidden pero no deja que el contenedor se desplace por dentro
     (con hidden, al saltar a #galeria la página quedaba corrida y el título tapado) */
  overflow: clip;
  isolation: isolate;
}

/* Manchas decorativas suaves en las esquinas, como en la referencia */
.vp-pagina::before,
.vp-pagina::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.vp-pagina::before {
  width: 280px;
  height: 280px;
  top: -110px;
  right: -90px;
  background: radial-gradient(circle at 30% 30%, rgba(37, 99, 235, 0.18), rgba(37, 99, 235, 0));
}

.vp-pagina::after {
  width: 300px;
  height: 300px;
  bottom: -120px;
  left: -100px;
  background: radial-gradient(circle at 70% 70%, rgba(225, 29, 72, 0.16), rgba(225, 29, 72, 0));
}

/* Botón volver */
.vp-volver {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 8px;
  background: var(--color-primario);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(122, 16, 48, 0.25);
  transition: transform 0.2s ease, background 0.2s ease;
}

.vp-volver:hover {
  background: var(--color-primario-oscuro);
  color: #fff;
  transform: translateX(-3px);
}

/* Título */
.vp-titulo-fila {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 1rem 0 0.9rem;
}

.vp-titulo {
  position: relative;
  margin: 0;
  padding-bottom: 12px;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 2.2rem;
  line-height: 1.1;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  color: #1f2347;
}

.vp-titulo::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 150px;
  height: 5px;
  border-radius: 10px;
  background: linear-gradient(90deg, #E11D48, #2563EB);
}

/* Banner: la foto completa (sin recortar) sobre una copia difuminada de sí misma */
.vp-banner {
  position: relative;
  height: 320px;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, #1f2347, #7A1030);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}

.vp-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--foto);
  background-size: cover;
  background-position: center;
  filter: blur(22px) brightness(0.9);
  transform: scale(1.15);
}

.vp-banner img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.vp-banner-vacio {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  text-align: center;
  padding: 1rem;
}

/* Tarjetas de información */
.vp-card {
  height: 100%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(31, 35, 71, 0.08);
  border-radius: 12px;
  padding: 1.25rem 1.4rem;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.06);
}

.vp-pildora-horario {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 6px;
  margin-bottom: 0.9rem;
  border-radius: 8px;
  background: rgba(225, 29, 72, 0.09);
  color: #BE123C;
  font-weight: 700;
  font-size: 0.95rem;
}

.vp-icono-circulo {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #BE123C;
  color: #fff;
  font-size: 1.1rem;
}

.vp-icono-circulo.azul { background: #1D4ED8; }

.vp-descripcion {
  margin: 0;
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.65;
}

.vp-card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 0.9rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #1f2347;
}

.vp-contacto-linea {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #1f2347;
  font-weight: 700;
}

.vp-contacto-linea .icono {
  font-size: 1.6rem;
  color: #25D366;
}

.vp-contacto-etiqueta {
  margin: 0 0 6px;
  color: #6b7280;
  font-size: 0.85rem;
}

/* Presentador: foto redonda + nombre */
.vp-presentador {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0.9rem;
  padding: 8px 14px 8px 8px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(29, 78, 216, 0.08), rgba(29, 78, 216, 0));
  width: fit-content;
  max-width: 100%;
}

.vp-presentador-foto {
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  border: 3px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12), 0 4px 10px rgba(0, 0, 0, 0.15);
}

.vp-presentador-etiqueta {
  display: block;
  color: #1D4ED8;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.vp-presentador-nombre {
  display: block;
  color: #1f2347;
  font-family: 'Poppins', sans-serif;
  font-size: 1.08rem;
  line-height: 1.25;
}

/* Iniciales cuando todavía no hay foto */
.vp-avatar-iniciales {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1D4ED8, #BE123C);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}

.vp-presentador-foto.vp-avatar-iniciales { font-size: 1.5rem; }

/* Redes del programa: tarjetitas con botón Seguir (versión chica de las del footer) */
.vp-redes { display: flex; flex-direction: column; gap: 8px; }

.vp-red-card {
  --red: #1f2347;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(31, 35, 71, 0.1);
  border-left: 4px solid var(--red);
  border-radius: 12px;
  background: #fff;
  color: #1f2347;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vp-red-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  color: #1f2347;
}

.vp-red-facebook  { --red: #1877F2; }
.vp-red-instagram { --red: #E4405F; }
.vp-red-youtube   { --red: #FF0000; }

.vp-red-icono {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 1rem;
}

.vp-red-instagram .vp-red-icono {
  background: #E4405F;   /* color oficial de Instagram, liso */
}

.vp-red-datos {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}

.vp-red-datos strong { font-size: 0.88rem; }

.vp-red-datos span {
  overflow: hidden;
  color: #6b7280;
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vp-red-seguir {
  flex-shrink: 0;
  padding: 4px 11px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  transition: filter 0.2s ease;
}

.vp-red-card:hover .vp-red-seguir { filter: brightness(1.12); }

.vp-vacio {
  margin: 0;
  color: #9ca3af;
  font-size: 0.88rem;
}

/* Galería */
.vp-galeria-cabecera {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1rem;
}

.vp-galeria-titulo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #1f2347;
}

.vp-galeria { scroll-margin-top: 80px; }   /* al saltar a #galeria no queda bajo la barra */

.vp-galeria-cuenta {
  padding: 2px 10px;
  border-radius: 12px;
  background: rgba(190, 18, 60, 0.1);
  color: #BE123C;
  font-size: 0.8rem;
  font-weight: 700;
}

.vp-modo-presentador {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
  font-size: 0.82rem;
  font-weight: 700;
}

.vp-btn-soy-presentador {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px dashed rgba(127, 127, 127, 0.5);
  border-radius: 8px;
  color: #1D4ED8;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
}

.vp-btn-soy-presentador:hover { background: rgba(29, 78, 216, 0.08); color: #1D4ED8; }

/* ---- Publicar (solo presentador) ---- */
.vp-publicar {
  display: flex;
  gap: 12px;
  margin-bottom: 1.2rem;
  padding: 12px;
  border: 1px solid rgba(31, 35, 71, 0.1);
  border-radius: 12px;
  background: #f8fafc;
}

.vp-publicar-avatar,
.vp-pub-avatar {
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
}

.vp-publicar-avatar { width: 46px; height: 46px; font-size: 1.1rem; }

.vp-publicar-cuerpo { flex: 1; min-width: 0; }

.vp-publicar textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  max-height: 220px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  font-size: 0.95rem;
  resize: none;
  outline: none;
  transition: border-color 0.2s ease;
}

.vp-publicar textarea:focus { border-color: rgba(127, 127, 127, 0.6); }

.vp-publicar-preview {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin-top: 10px;
}

.vp-publicar-preview img,
.vp-publicar-preview video {
  display: block;
  max-width: 100%;
  max-height: 240px;
  border-radius: 10px;
  background: #000;
}

.vp-preview-quitar {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 1;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
}

.vp-publicar-acciones {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.vp-adjuntar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 7px 14px;
  border-radius: 12px;
  background: rgba(22, 163, 74, 0.1);
  color: #15803d;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.vp-adjuntar:hover { background: rgba(22, 163, 74, 0.18); }

.vp-contador { margin-left: auto; color: #9ca3af; font-size: 0.75rem; }

.vp-btn-publicar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(90deg, #BE123C, #1D4ED8);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  transition: filter 0.2s ease;
}

.vp-btn-publicar:hover { filter: brightness(1.1); }
.vp-btn-publicar:disabled { opacity: 0.75; }

/* ---- Publicaciones ---- */
.vp-galeria-grilla {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1rem;
  align-items: start;
}

.vp-pub {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(31, 35, 71, 0.08);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.vp-pub:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1); }

.vp-pub-cabecera {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}

.vp-pub-avatar { width: 36px; height: 36px; font-size: 0.9rem; }

.vp-pub-autor { display: flex; flex: 1; flex-direction: column; min-width: 0; line-height: 1.2; }

.vp-pub-autor strong {
  overflow: hidden;
  color: #1f2347;
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vp-pub-autor small { color: #9ca3af; font-size: 0.74rem; }

.vp-pub-borrar { margin: 0; }

.vp-pub-borrar button {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #9ca3af;
  transition: background 0.2s ease, color 0.2s ease;
}

.vp-pub-borrar button:hover { background: rgba(220, 38, 38, 0.1); color: #dc2626; }

.vp-pub-media {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: #0f172a;
}

.vp-pub-media img,
.vp-pub-media video {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

button.vp-pub-media { cursor: zoom-in; }
.vp-pub-media video { object-fit: contain; background: #000; }

.vp-pub-texto {
  margin: 0;
  padding: 10px 14px 0;
  color: #374151;
  font-size: 0.92rem;
  line-height: 1.55;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

/* Publicación de solo texto: el mensaje en grande, sobre color */
.vp-pub-mensaje .vp-pub-texto {
  margin: 0 12px;
  padding: 1.1rem 1.2rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #1f2347, #7A1030);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
}

.vp-pub-pie { padding: 8px 10px 10px; }

.vp-me-gusta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #4b5563;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.vp-me-gusta:hover { border-color: #e11d48; color: #e11d48; }

.vp-me-gusta.activo {
  border-color: transparent;
  background: rgba(225, 29, 72, 0.1);
  color: #e11d48;
}

.vp-me-gusta .icono { font-size: 1.05rem; }
.vp-me-gusta.latido .icono { animation: latido 0.45s ease; }

@keyframes latido {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.vp-galeria-vacia {
  padding: 2.2rem 1rem;
  border: 2px dashed rgba(31, 35, 71, 0.12);
  border-radius: 12px;
  color: #6b7280;
  text-align: center;
}

.vp-galeria-vacia .icono { font-size: 2.4rem; color: #BE123C; }
.vp-galeria-vacia p { margin: 0.5rem 0 0; }

@media (max-width: 576px) {
  .vp-titulo { font-size: 1.6rem; }
  .vp-banner { height: 210px; }
  .vp-publicar { padding: 10px; gap: 8px; }
  .vp-publicar-avatar { display: none; }
  .vp-contador { display: none; }
  .vp-btn-publicar { margin-left: auto; }
  .vp-galeria-grilla { grid-template-columns: 1fr; }
}