/* ============================================
   FICHA DE LIBRO (resumen) — libros.html y podcast.html
   Mismo aspecto que las fichas de formaciones
   ============================================ */
.fl-modal{
  position: fixed;
  padding: 0;
  border: 0;
  width: min(1100px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  background: transparent;
  overflow: visible;
}
.fl-modal::backdrop{ background: rgba(16,13,15,.72); backdrop-filter: blur(3px); }
.fl-modal[open]{ animation: flIn .25s ease; }
@keyframes flIn{ from{ opacity: 0; transform: translateY(16px); } to{ opacity: 1; transform: none; } }
body.fl-abierta{ overflow: hidden; }

.fl-caja{
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--bg-cream);
  border-top: 3px solid var(--orange);
}
.fl-cerrar{
  position: absolute;
  top: 0; right: 0;
  z-index: 2;
  width: 52px; height: 52px;
  border: 0;
  background: var(--bg-dark);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.fl-cerrar:hover{ background: var(--orange); }

/* Cabecera: portada + título */
.fl-head{ display: grid; grid-template-columns: 220px 1fr; background: var(--bg-dark); color: var(--text-cream); }
.fl-portada{ padding: 28px 0 28px 36px; }
.fl-portada img{ width: 100%; height: auto; box-shadow: 0 12px 30px rgba(0,0,0,.45); }
.fl-tit{ display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 28px 70px 28px 36px; }
.fl-kicker{ font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); font-weight: 500; }
.fl-tit h2{ font-size: clamp(24px, 2.4vw, 34px); font-weight: 200; line-height: 1.15; }
.fl-sub{ font-size: 16px; font-style: italic; color: var(--text-muted-light); }

/* Cuerpo: texto + columna lateral */
.fl-cuerpo{ display: grid; grid-template-columns: 1fr 320px; gap: 44px; padding: 36px; }
.fl-texto{ font-size: 15.5px; line-height: 1.7; color: var(--text-muted-dark); }
.fl-texto p{ margin-bottom: 14px; }
.fl-texto strong{ font-weight: 600; color: var(--text-dark); }
.fl-texto h3{ font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: var(--text-dark); margin: 28px 0 10px; }
.fl-texto ul, .fl-texto ol{ margin: 0 0 18px; padding-left: 20px; }
.fl-texto li{ margin-bottom: 6px; }
.fl-intro{ font-size: 17px; color: var(--text-dark); }
.fl-golpe{ font-weight: 500; color: var(--text-dark); border-left: 3px solid var(--orange); padding-left: 14px; }
.fl-nota{ font-size: 14px; font-style: italic; }

.fl-lado{ display: flex; flex-direction: column; gap: 22px; align-self: start; position: sticky; top: 0; }
.fl-audio p{ font-size: 13.5px; color: var(--text-muted-dark); margin-bottom: 10px; }
.fl-audio b{ color: var(--text-dark); font-weight: 500; }
.fl-audio iframe{ display: block; width: 100%; height: 80px; border: 0; border-radius: 12px; }
.fl-comprar{ display: flex; flex-wrap: wrap; gap: 12px; }
.fl-comprar .btn-outline{ color: var(--text-dark); }
.fl-lado .link-arrow{ font-size: 14px; color: var(--orange); }

/* Enlace «Leer resumen» en las tarjetas de libros.html */
.book-resumen{
  align-self: flex-start;
  margin: -6px 0 16px;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font);
  font-size: 14px;
  color: var(--orange);
  cursor: pointer;
}
.book-resumen:hover{ text-decoration: underline; }

@media (max-width: 860px){
  .fl-modal{ width: 100vw; max-width: 100vw; max-height: 100vh; margin: 0; }
  .fl-caja{ max-height: 100vh; }
  .fl-head{ grid-template-columns: 110px 1fr; }
  .fl-portada{ padding: 20px 0 20px 20px; }
  .fl-tit{ padding: 20px 60px 20px 18px; }
  .fl-cuerpo{ grid-template-columns: 1fr; gap: 28px; padding: 24px 20px 32px; }
  .fl-lado{ position: static; }
}
