/*
Theme Name: CIOS Editorial
Theme URI: https://ciossalud.com/blog/
Author: CIOS
Description: Blog científico y de salud de CIOS. Diseño editorial con categorías, búsqueda y fichas de profesionales.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: cios-editorial
*/
:root{--ink:#14151a;--muted:#68707b;--line:#e6e7eb;--orange:#d96a2b;--pale:#f5f6f8;--max:1200px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#f5f6f8;color:var(--ink);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.55}
a{color:inherit;text-decoration:none}a:hover{color:var(--orange)}img{max-width:100%;height:auto}button,input{font:inherit}button{cursor:pointer}
.container{width:min(var(--max),calc(100% - 36px));margin:auto}
.site-header{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20}.admin-bar .site-header{top:32px}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:78px}.brand{display:flex;align-items:center;gap:12px}.brand img{width:145px;max-height:56px;object-fit:contain}.brand-label{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:#70747d;border-left:1px solid var(--line);padding-left:14px}
.nav{display:flex;gap:24px;align-items:center;font-weight:650;font-size:14px}.nav a:last-child{color:var(--orange)}.nav a:focus-visible,.btn:focus-visible,input:focus-visible{outline:3px solid #e9a77d;outline-offset:3px}
.hero{background:linear-gradient(120deg,#13151b 0%,#23252c 67%,#4a3026 100%);color:#fff;overflow:hidden;position:relative}.hero:after{content:"";position:absolute;width:380px;height:380px;right:-90px;top:-160px;border:1px solid rgba(242,132,68,.23);border-radius:50%;box-shadow:0 0 0 65px rgba(242,132,68,.045),0 0 0 135px rgba(242,132,68,.035);pointer-events:none}
.hero-inner{position:relative;z-index:1;padding:66px 0 64px}.eyebrow{font-size:12px;text-transform:uppercase;letter-spacing:.18em;color:#f2a16b;font-weight:750}.hero h1{font-size:clamp(38px,6vw,72px);letter-spacing:-.055em;line-height:1.04;max-width:780px;margin:14px 0 16px}.hero p{font-size:clamp(16px,2vw,19px);color:#d4d5da;max-width:670px;margin:0}.hero .accent{color:#f2a16b}
.main{padding:35px 0 80px}.toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:32px}.search-form{display:flex;flex:1 1 245px;max-width:400px;background:#fff;border:1px solid var(--line);border-radius:999px;overflow:hidden;min-height:45px}.search-form input{border:0;min-width:0;flex:1;padding:10px 17px;outline:0;background:transparent}.search-form button{border:0;background:var(--ink);color:#fff;border-radius:50%;width:38px;height:38px;margin:3px;font-size:20px}
.chips{display:flex;gap:8px;flex-wrap:wrap}.chip{border-radius:999px;padding:10px 15px;background:#fff;border:1px solid var(--line);font-size:12px;font-weight:750}.chip.active,.chip:hover{background:var(--ink);color:#fff;border-color:var(--ink)}
.section-label{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:12px 0 22px}.section-label h2{margin:0;font-size:22px;letter-spacing:-.025em}.section-label small{color:var(--muted)}
.posts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.post-card{background:#fff;border:1px solid #e9e9eb;border-radius:18px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 5px 18px rgba(15,18,25,.035);transition:transform .2s,box-shadow .2s}.post-card:hover{transform:translateY(-3px);box-shadow:0 12px 26px rgba(15,18,25,.09)}
.card-image{height:225px;background:linear-gradient(145deg,#25262c,#9b5939);display:block;position:relative;overflow:hidden}.card-image img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s}.post-card:hover .card-image img{transform:scale(1.025)}.image-placeholder{height:100%;display:grid;place-items:center;color:#f4d4c0;font-size:13px;letter-spacing:.15em;font-weight:800}
.category-pill{position:absolute;right:13px;top:13px;background:rgba(255,255,255,.94);border-radius:100px;padding:7px 12px;font-size:10px;font-weight:800;text-transform:uppercase;max-width:85%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.card-body{padding:22px 21px 20px;display:flex;flex-direction:column;flex:1}.post-meta{font-size:12px;color:var(--muted);margin-bottom:10px}.card-body h3{font-size:22px;letter-spacing:-.04em;line-height:1.2;margin:0 0 11px}.excerpt{font-size:14px;color:#606773;margin:0 0 23px}.author-line{display:flex;align-items:center;gap:11px;margin-top:auto;padding-top:17px;border-top:1px solid var(--line)}.avatar-circle{width:43px;height:43px;flex:0 0 43px;border-radius:50%;object-fit:cover;background:#e6e6e8;border:2px solid #fff;box-shadow:0 0 0 1px #e4e4e6}.author-name{font-size:13px;font-weight:800;display:block;line-height:1.25}.author-role{font-size:11px;color:var(--muted);display:block}.read-more{margin-left:auto;font-size:12px;font-weight:800;color:var(--orange);white-space:nowrap}
.pagination{margin-top:34px}.pagination .page-numbers{display:inline-flex;padding:8px 13px;background:#fff;border:1px solid var(--line);border-radius:9px;margin:0 3px 6px 0}.pagination .current{background:var(--ink);color:#fff}
.article-wrap{max-width:850px;margin:0 auto}.breadcrumb{font-size:13px;color:#68707b;margin-bottom:25px}.article{background:#fff;border-radius:20px;padding:clamp(24px,5vw,58px);border:1px solid var(--line)}.article .kicker{color:var(--orange);font-weight:800;font-size:12px;text-transform:uppercase;letter-spacing:.09em}.article h1{font-size:clamp(32px,5vw,52px);line-height:1.12;letter-spacing:-.05em;margin:15px 0 23px}.article .lead{color:#656b75;font-size:17px}.article-author{display:flex;align-items:center;gap:14px;padding:20px 0;margin:20px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.article-author .avatar-circle{width:60px;height:60px;flex-basis:60px}.article-featured{width:100%;max-height:480px;object-fit:cover;border-radius:13px;margin:0 0 28px}.article-content{font-size:17px;line-height:1.8;overflow-wrap:break-word}.article-content h2,.article-content h3{line-height:1.25;letter-spacing:-.025em;margin-top:1.6em}.article-content a{color:#bb5521;text-decoration:underline}.article-content blockquote{border-left:4px solid var(--orange);padding:5px 20px;background:#faf7f5;margin:30px 0}.article-content figure{margin:28px 0}.article-content img{border-radius:12px}.article-content ul,.article-content ol{padding-left:25px}.article-tags{display:flex;gap:8px;flex-wrap:wrap;margin-top:35px}.article-tags a{font-size:12px;border:1px solid var(--line);padding:7px 11px;border-radius:99px}
.empty{background:#fff;padding:35px;border-radius:15px}.footer{background:#18191d;color:#e5e6e9;padding:40px 0}.footer-inner{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}.footer p{margin:7px 0;color:#b2b4bc;font-size:13px}.footer a{color:#f4a06b}.screen-reader-text{position:absolute;clip:rect(1px,1px,1px,1px);width:1px;height:1px;overflow:hidden}
@media(max-width:950px){.posts{grid-template-columns:repeat(2,minmax(0,1fr))}.brand-label{display:none}}
@media(max-width:620px){.header-inner{min-height:70px}.brand img{width:115px}.nav{gap:12px;font-size:12px}.hero-inner{padding:45px 0}.posts{grid-template-columns:1fr}.card-image{height:225px}.main{padding-top:23px}.article{padding:24px 19px}.toolbar{align-items:stretch}.search-form{max-width:none;flex-basis:100%}}

/* Imagen destacada en el artículo */
.cios-featured-wrap{display:block!important;margin:4px 0 30px!important;width:100%;}
.cios-featured-wrap .article-featured{display:block!important;width:100%!important;height:auto!important;max-height:500px;object-fit:cover;border-radius:14px;}
