/* Plantilla de páginas de texto (lib_texto.php, propuesta PaginaTexto del lienzo, 11-oct-2026) */
.tx { clear: both; background: #f0ede6; color: #0a0a0c; font-family: Inter, system-ui, sans-serif; text-transform: none; }
.tx-in { max-width: 1120px; margin: 0 auto; padding: 0 18px; }
.tx-cab { background: #0a0a0c; color: #fff; padding: 28px 0 26px; }
.tx-kicker { font-size: 11px; font-weight: 800; letter-spacing: 2px; color: rgba(255,255,255,.55); }
.tx .tx-h1 { margin: 6px 0 0 !important; font: 400 44px/.92 'Bebas Neue', Impact, sans-serif !important; letter-spacing: .5px; color: #fff !important; text-align: left !important; }
.tx-fecha { margin-top: 10px; font-size: 12.5px; color: rgba(255,255,255,.6); }
.tx-rejilla { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 18px; padding-bottom: 40px; }
.tx-principal { min-width: 0; max-width: 720px; }
.tx-resumen { padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid rgba(0,0,0,.07); }
.tx-resumen b { font-size: 10.5px; font-weight: 800; letter-spacing: 1.5px; color: #E4162B; }
.tx-resumen ul { margin: 8px 0 0; padding-left: 18px; font-size: 14px; line-height: 1.55; }
.tx-resumen li { margin-bottom: 4px; }
.tx-indice { padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid rgba(0,0,0,.07); }
.tx-indice b { display: block; margin-bottom: 6px; font: 400 18px/1 'Bebas Neue', Impact, sans-serif; letter-spacing: 1px; color: rgba(0,0,0,.55); }
.tx-indice ol { margin: 0; padding: 0; list-style: none; counter-reset: tx; display: grid; gap: 1px; }
.tx-indice li { counter-increment: tx; }
.tx-indice a { display: flex; gap: 10px; padding: 7px 8px; border-radius: 9px; color: #0a0a0c !important; text-decoration: none !important; font-size: 13px; font-weight: 600; line-height: 1.3; }
.tx-indice a::before { content: counter(tx); flex: 0 0 18px; font-weight: 800; color: #E4162B; }
.tx-indice a:hover { background: #f3f1ec; }
.tx-indice a.is-on { background: #fff4d6; }
/* El contenido de siempre, con tipografía de lectura */
.tx-cuerpo { margin-top: 20px; font-size: 15.5px; line-height: 1.68; color: rgba(0,0,0,.84); }
.tx-cuerpo .summary { display: none; }   /* índice antiguo de privacidad: lo sustituye el de la plantilla */
.tx-cuerpo section { margin: 0; }
.tx-cuerpo h1 { display: none; }
.tx .tx-cuerpo h2 { margin: 28px 0 8px !important; padding: 0; font: 400 26px/1.05 'Bebas Neue', Impact, sans-serif !important; letter-spacing: .6px; color: #0a0a0c !important;
  text-align: left !important; text-transform: none; scroll-margin-top: 90px; }
.tx .tx-cuerpo h3 { margin: 18px 0 6px !important; font-size: 16px !important; font-weight: 800; }
.tx-cuerpo p, .tx-cuerpo li { font-size: 15.5px !important; line-height: 1.68 !important; text-align: left !important; }
.tx-cuerpo p { margin: 0 0 12px !important; }
.tx-cuerpo ul, .tx-cuerpo ol { margin: 0 0 12px; padding-left: 20px; }
.tx-cuerpo a { color: #b8121f; text-decoration: underline; }
.tx-cuerpo table { width: 100%; border-collapse: collapse; margin: 6px 0 16px; font-size: 13px; background: #fff; border-radius: 12px; overflow: hidden; display: block; overflow-x: auto; }
.tx-cuerpo th, .tx-cuerpo td { padding: 9px 10px; border-bottom: 1px solid rgba(0,0,0,.07); text-align: left; vertical-align: top; }
.tx-cuerpo th { background: #faf8f4; font-size: 11px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: rgba(0,0,0,.55); }
.tx-cuerpo .small { font-size: 13px !important; color: rgba(0,0,0,.55); }
.tx-cta { position: relative; overflow: hidden; margin-top: 28px; padding: 18px; border-radius: 18px; background: #FFC72C; }
.tx-cta::before { content: ''; position: absolute; inset: 0; opacity: .14; background-image: repeating-linear-gradient(45deg, #0a0a0c 0 2px, transparent 2px 18px); pointer-events: none; }
.tx-cta > * { position: relative; }
.tx .tx-cta h2 { margin: 0 !important; font: 400 26px/1 'Bebas Neue', Impact, sans-serif !important; letter-spacing: .5px; color: #0a0a0c !important; text-align: left !important; }
.tx-cta p { margin: 6px 0 12px; font-size: 13.5px; font-weight: 600; line-height: 1.45; }
.tx-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 12px; background: #0a0a0c; color: #fff !important; text-decoration: none !important; font-size: 13px; font-weight: 800; }
.tx-mas { margin-top: 24px; }
.tx-mas b { font: 400 18px/1 'Bebas Neue', Impact, sans-serif; letter-spacing: 1px; color: rgba(0,0,0,.55); }
.tx-mas div { margin-top: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tx-mas a { padding: 12px; border-radius: 12px; background: #fff; border: 1px solid rgba(0,0,0,.07); color: #0a0a0c !important; text-decoration: none !important; font-size: 13px; font-weight: 700; }
.tx-mas a:hover { border-color: rgba(0,0,0,.2); }
@media (min-width: 960px) {
  .tx .tx-h1 { font-size: 56px !important; }
  .tx-rejilla { grid-template-columns: 260px minmax(0, 1fr); gap: 36px; padding-top: 26px; }
  .tx-lado { order: 0; }
  .tx-indice { position: sticky; top: 90px; }
  .tx-mas div { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 959px) {
  .tx-lado { order: 1; }   /* en el móvil, el índice después del resumen */
  .tx-principal { display: contents; }
  .tx-resumen { order: 0; } .tx-lado { order: 1; } .tx-cuerpo, .tx-cta, .tx-mas { order: 2; }
  .tx-rejilla { gap: 14px; }
  .tx-cuerpo { margin-top: 0; }
}
html.theme-dark .tx { background: #0f1115; color: #e8e8ea; }
html.theme-dark .tx-resumen, html.theme-dark .tx-indice, html.theme-dark .tx-mas a, html.theme-dark .tx-cuerpo table { background: #17191f; border-color: rgba(255,255,255,.08); color: #e8e8ea !important; }
html.theme-dark .tx-cuerpo, html.theme-dark .tx-indice a { color: rgba(255,255,255,.85) !important; }
html.theme-dark .tx .tx-cuerpo h2 { color: #fff !important; }
