/* Parada programada — estilos de la web.
   Imagen corporativa: rojo sobre blanco, letra gruesa en mayúsculas. */

:root {
  --rojo: #d00000;
  --rojo-oscuro: #a00000;
  --rojo-claro: #fbeaea;
  --tinta: #1c1c1e;
  --gris: #5a5a60;
  --linea: #e6e3df;
  --fondo: #f7f6f4;
  --blanco: #ffffff;
  --ancho: 46rem;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--fondo);
  color: var(--tinta);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

a { color: var(--rojo); }
a:hover { color: var(--rojo-oscuro); }

main {
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 2.25rem 1.25rem 3rem;
}

/* Títulos con el carácter del logotipo: gruesos y en mayúsculas */
h1, h2, .etiqueta {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

/* Cabecera y pie */

.cabecera {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.25rem;
  background: var(--blanco);
  border-bottom: 4px solid var(--rojo);
}

.marca { display: block; line-height: 0; }

.cabecera-feed {
  padding: 0.3rem 0.7rem;
  border: 2px solid var(--rojo);
  border-radius: 4px;
  color: var(--rojo);
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
}
.cabecera-feed:hover { background: var(--rojo); color: var(--blanco); }

.pie {
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  border-top: 1px solid var(--linea);
  color: var(--gris);
  font-size: 0.9rem;
}
.pie p { margin: 0.3rem 0; }

/* Patrocinio: el logotipo del patrocinador antes del pie, en todas las páginas */

.patrocinio {
  max-width: var(--ancho);
  margin: 0 auto 1.5rem;
  padding: 1.25rem;
  background: var(--blanco);
  border: 1px solid var(--linea);
  border-radius: 6px;
  text-align: center;
}
.patrocinio-texto {
  margin: 0 0 0.6rem;
  color: var(--gris);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.patrocinio-logo { display: inline-block; line-height: 0; }
.patrocinio-logo img { max-width: 100%; height: auto; }

.patrocinio-linea {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.25rem 0 1.5rem;
  color: var(--gris);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.patrocinio-linea a { line-height: 0; }
.reproductor + .patrocinio-linea { margin-top: -0.75rem; }

/* Vídeo: miniatura con botón de reproducir hasta que se pulsa (video.js) */
.video {
  aspect-ratio: 16 / 9;
  margin: 0 0 1.75rem;
  overflow: hidden;
  border-radius: 6px;
  background: var(--tinta);
}
.video a, .video iframe {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.video img { width: 100%; height: 100%; object-fit: cover; }
.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4.2rem;
  height: 2.9rem;
  border-radius: 0.8rem;
  background: var(--rojo);
  transform: translate(-50%, -50%);
  transition: background 0.15s;
}
.video-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  border-style: solid;
  border-width: 0.65rem 0 0.65rem 1.1rem;
  border-color: transparent transparent transparent var(--blanco);
  transform: translate(-50%, -50%);
}
.video a:hover .video-play { background: var(--rojo-oscuro); }

/* Portada */

.portada {
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
  margin-bottom: 2.75rem;
}
.portada h1 {
  margin: 0;
  font-size: 2.6rem;
  line-height: 1.05;
  color: var(--rojo);
}
.portada-subtitulo {
  margin: 0.4rem 0 1rem;
  color: var(--tinta);
  font-weight: 700;
}
.portada-logo { flex-shrink: 0; }

.suscribir a {
  display: inline-block;
  margin: 0.25rem 0.4rem 0.25rem 0;
  padding: 0.35rem 0.9rem;
  border-radius: 4px;
  background: var(--rojo);
  color: var(--blanco);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}
.suscribir a:hover { background: var(--rojo-oscuro); color: var(--blanco); }

.pie-suscribir a {
  margin-right: 0.6rem;
  font-weight: 700;
}

/* Lista de episodios */

.episodios h2 {
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--tinta);
  border-bottom: 3px solid var(--rojo);
  padding-bottom: 0.4rem;
}

/* Cada episodio es una etiqueta de bloqueo (LOTO): cabecera roja con el ojal
   del candado, cuerpo blanco y franja de seguridad roja y blanca abajo. */
.tarjeta {
  position: relative;
  display: block;
  padding: 0 1.25rem 1.6rem;
  margin: 0 0 1.1rem;
  overflow: hidden;
  background: var(--blanco);
  border: 2px solid var(--rojo);
  border-radius: 14px 14px 6px 6px;
  color: inherit;
  text-decoration: none;
}
.tarjeta:hover { background: var(--rojo-claro); color: inherit; }
.tarjeta .etiqueta {
  margin: 0 -1.25rem 0.9rem;
  padding: 0.6rem 1.25rem 0.6rem 3.1rem;
  background: var(--rojo);
  color: var(--blanco);
}
/* El ojal: un agujero con aro metálico por donde pasa el candado */
.tarjeta::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: 1.1rem;
  width: 1.2rem;
  height: 1.2rem;
  box-sizing: border-box;
  border: 3px solid #d4d4d8;
  border-radius: 50%;
  background: var(--fondo);
}
.tarjeta::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 0.5rem;
  background: repeating-linear-gradient(-45deg, var(--rojo) 0 0.6rem, var(--blanco) 0.6rem 1.2rem);
}
.tarjeta h3 { margin: 0.15rem 0 0.25rem; font-size: 1.2rem; color: var(--tinta); }
.tarjeta p { margin: 0; }

.etiqueta {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--rojo);
}

.invitado { color: var(--gris); font-weight: 700; }

/* Episodio */

.episodio h1 {
  margin: 0.3rem 0 0.4rem;
  font-size: 2.1rem;
  line-height: 1.12;
  color: var(--tinta);
}
.reproductor { width: 100%; margin: 1.25rem 0 1.5rem; accent-color: var(--rojo); }
.notas h2 {
  margin-top: 2.2rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--rojo);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: var(--tinta);
}
.notas h3 { font-size: 1.05rem; }
.volver { margin-top: 2.5rem; font-weight: 700; }

@media (max-width: 600px) {
  .portada { flex-direction: column; gap: 1rem; }
  .portada-logo { width: 88px; height: 88px; }
  .portada h1 { font-size: 2.1rem; }
  .episodio h1 { font-size: 1.65rem; }
}
