/* Rutinas Vitales 2.1 - Mejoras
   Tablas adaptables, accesibilidad, cajas de contenido, fuentes y autor. */

/* ===== Accesibilidad ===== */
.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute!important;width:1px;word-wrap:normal!important}
.screen-reader-text:focus,.skip-link:focus{background:#fff;clip:auto!important;clip-path:none;color:var(--green);display:block;font-weight:700;height:auto;left:8px;top:8px;padding:12px 18px;width:auto;z-index:100000;border-radius:8px;box-shadow:0 2px 12px #0003;text-decoration:none}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,.rv-table-wrap:focus-visible{outline:2px solid var(--green);outline-offset:2px}

/* ===== Tablas ===== */
/* Causa del "Dí / a": el texto del artículo permitía partir palabras en cualquier punto.
   En las tablas se desactiva y se deja partir solo entre palabras. */
.rv-table-outer{margin:1.6em 0;max-width:100%}
.rv-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%;border:1px solid var(--border);border-radius:12px;background:#fff}
.entry-content table,.page-article table{width:100%;margin:0;border-collapse:collapse;font-size:.95rem;line-height:1.55;font-weight:400;overflow-wrap:normal;word-break:normal;hyphens:manual}
.entry-content th,.entry-content td,.page-article th,.page-article td{padding:12px 14px;text-align:left;vertical-align:top;border-bottom:1px solid var(--border);overflow-wrap:normal;word-break:normal}
.entry-content th:not(:first-child),.entry-content td:not(:first-child){min-width:140px}
.entry-content th:first-child,.entry-content td:first-child{min-width:4.5em;font-weight:700;color:var(--green)}
.entry-content th{background:var(--soft);color:var(--green);font-weight:700;border-bottom:2px solid var(--green)}
.entry-content tbody tr:nth-child(even) td{background:#f9fbf8}
.entry-content tbody tr:hover td{background:#f1f6ef}
.entry-content tr:last-child td{border-bottom:0}
.entry-content figure.wp-block-table{margin:0}
.entry-content figure.wp-block-table figcaption{padding:8px 4px 0;font-size:.85rem;color:var(--muted,#657168)}
.rv-table-outer.is-scrollable::after{content:"Desliza para ver toda la tabla \2192";display:block;margin-top:6px;text-align:right;font-size:.78rem;color:var(--muted,#657168)}
@media(max-width:620px){
.entry-content table{font-size:.9rem}
.entry-content th,.entry-content td{padding:10px 11px}
.entry-content th:not(:first-child),.entry-content td:not(:first-child){min-width:150px}
}

/* ===== Cajas de contenido (Gutenberg: Avanzado > Clase CSS adicional) ===== */
.entry-content .rv-quick-answer{margin:1.4em 0;padding:16px 18px;border-left:4px solid var(--green);background:var(--cream,#f4f6ef);border-radius:8px}
.entry-content .rv-warning{margin:1.4em 0;padding:16px 18px;border-left:4px solid #c98a1b;background:#fff8e8;border-radius:8px}
.entry-content .rv-quick-answer>:first-child,.entry-content .rv-warning>:first-child{margin-top:0}
.entry-content .rv-quick-answer>:last-child,.entry-content .rv-warning>:last-child{margin-bottom:0}

/* ===== Caja de fuentes (se crea sola con un H2 "Fuentes") ===== */
.rv-sources{margin:2em 0 1em;padding:18px 20px;border:1px solid var(--border);border-radius:12px;background:#fbfcfa}
.entry-content .rv-sources h2{margin:0 0 10px;font-size:1.25rem}
.rv-sources ul,.rv-sources ol{margin:0;padding-left:20px;font-size:.9rem;line-height:1.6;color:#526359}
.rv-sources li{margin:0 0 8px;overflow-wrap:anywhere}

/* ===== Autor: nombre, cargo, revisión y enlace ===== */
.rv-author-card .rv-author-name{font:700 1.45rem/1.25 Georgia,serif;color:var(--green);margin:0 0 4px}
.rv-author-card .rv-author-role{margin:0 0 8px;font-size:.92rem;font-weight:600;color:#3d4d44}
.rv-author-card .rv-author-reviewed{margin:10px 0 0;font-size:.88rem}
.rv-author-card .rv-author-more{margin:10px 0 0;font-size:.92rem;font-weight:700}
@media(max-width:620px){.rv-author-card .rv-author-name{font-size:1.2rem}}

/* ===== Pequeños ajustes ===== */
.entry-content img{max-width:100%;height:auto}
.entry-content ul,.entry-content ol{padding-left:1.4em}
@media print{.header,.footer,.rv-share,.related,#rv-top,#rv-progress,.rv-author-card{display:none!important}.article{border:0;box-shadow:none}}

/* ===== Recuadro del autor en "Sobre nosotros" [rv_sobre_autor] ===== */
.rv-sobre-card{display:flex;align-items:center;gap:32px;margin:32px 0;padding:32px;background:var(--cream,#f4f6ef);border:1px solid var(--border);border-radius:16px}
.rv-sobre-main{display:flex;align-items:center;gap:32px;flex:1 1 auto;min-width:0}
.rv-sobre-foto{width:220px;height:220px;flex:0 0 220px;object-fit:cover;object-position:center top;border-radius:50%;border:6px solid #fff;box-shadow:0 4px 18px #203f3328;margin:0}
.rv-sobre-foto-vacia{display:flex;align-items:center;justify-content:center;background:var(--green);color:#fff;font:700 3rem Georgia,serif}
.rv-sobre-copy{min-width:0}
.rv-sobre-card .rv-sobre-nombre{font:700 1.5rem/1.25 Georgia,serif;color:var(--green);margin:0 0 2px}
.rv-sobre-card .rv-sobre-cargo{margin:0 0 12px;font-size:.95rem;font-weight:600;color:#3d4d44}
.rv-sobre-card .rv-sobre-titulo{font:700 1.2rem/1.3 Georgia,serif;color:var(--green);margin:0 0 8px;padding:0;border:0}
.rv-sobre-card .rv-sobre-texto{margin:0 0 16px;color:#526359}
.entry-content .rv-sobre-btn{color:#fff;text-decoration:none;display:inline-block}
.rv-sobre-aviso{flex:0 0 190px;padding-left:24px;border-left:1px solid #c9d3c9;font-size:.9rem;line-height:1.6;color:#526359}
@media(max-width:820px){
  .rv-sobre-card{flex-direction:column;align-items:stretch;gap:20px;padding:24px}
  .rv-sobre-main{flex-direction:column;text-align:center;gap:20px}
  .rv-sobre-foto{width:200px;height:200px;flex-basis:200px}
  .rv-sobre-aviso{flex-basis:auto;padding:16px 0 0;border-left:0;border-top:1px solid #c9d3c9;text-align:center}
}
