/*
Theme Name: VMI Nexus
Theme URI: https://www.villamercedes.info
Author: FufiX
Description: Newsroom Premium para Villa Mercedes Info. Tecnología ProCom Digital.
Version: 0.2.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: vmi-nexus
*/
:root{--navy:#102037;--ink:#182338;--muted:#65748a;--line:#e5eaf0;--bg:#fff;--accent:#12a7cc}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.58 system-ui,-apple-system,'Segoe UI',sans-serif}a{color:inherit;text-decoration:none}a:hover{color:#087ca5}img{max-width:100%;height:auto}.wrap{max-width:1240px;margin:auto;padding:0 22px}.site-header{background:var(--navy);color:white;position:sticky;top:0;z-index:20;box-shadow:0 2px 10px #0002}.header-inner{display:flex;align-items:center;gap:22px;min-height:82px}.brand{display:flex;align-items:center;gap:12px;min-width:170px}.brand img{width:150px;max-height:64px;object-fit:contain}.brand-fallback{font-size:27px;font-weight:900}.header-tools{display:flex;align-items:center;gap:12px;margin-left:auto}.header-tools a,.header-tools button{color:white;background:#ffffff12;border:1px solid #ffffff35;padding:8px 11px;border-radius:7px;cursor:pointer;font:inherit}.main-nav{display:flex;flex-wrap:wrap;gap:17px;align-items:center;font-size:13px;font-weight:650}.main-nav a:hover{color:#6ce5d6}.rainbow{height:4px;background:linear-gradient(90deg,#03a6e0,#14a860,#f3d433,#ef8b30,#e33d58)}.breaking{background:#f5f8fb;border-bottom:1px solid var(--line);padding:9px 0;font-size:14px}.breaking strong{color:#bb2339;margin-right:12px}.section{margin:34px 0}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:2px solid var(--line);margin-bottom:20px;padding-bottom:9px}.section-head h2{font-size:23px;margin:0;line-height:1.2}.section-head a{font-size:13px;color:#56718d}.section-head:before{content:'';width:5px;height:26px;border-radius:5px;background:var(--section-color,#16a1c9)}.section-head h2{margin-right:auto}.featured-grid{display:grid;grid-template-columns:2fr 1fr;gap:20px}.featured-secondary{display:grid;gap:18px}.story{min-width:0}.story-image{display:block;aspect-ratio:16/9;overflow:hidden;border-radius:9px;background:#e7edf3}.story-image img{width:100%;height:100%;object-fit:cover;transition:transform .25s}.story-image:hover img{transform:scale(1.02)}.story h3{font-size:19px;line-height:1.28;margin:9px 0 5px}.story.main h3{font-size:30px}.story .excerpt{font-size:14px;color:var(--muted);margin:0}.story .meta{font-size:11px;text-transform:uppercase;color:#537f9d;font-weight:700;margin-top:9px}.story-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.ad-slot{background:#f1f4f7;border:1px dashed #c6d1dc;min-height:95px;display:flex;justify-content:center;align-items:center;text-align:center;margin:24px 0;border-radius:8px;overflow:hidden}.ad-slot.has-content{background:transparent;border:0;display:block;min-height:0}.ad-label{font-size:11px;letter-spacing:.12em;color:#7b8796}.vmi-live{margin:22px 0;border-radius:12px;background:#111d2d;color:white;padding:16px}.vmi-live h2{font-size:18px;margin:0 0 12px}.live-player{position:relative;aspect-ratio:16/9;background:#080d17;border-radius:8px;overflow:hidden;display:grid;place-items:center}.live-player button{border:0;border-radius:50px;background:#df263e;color:#fff;font-size:18px;padding:13px 24px;cursor:pointer}.live-player iframe{position:absolute;inset:0;width:100%;height:100%;border:0}.article-layout{max-width:860px;margin:40px auto;padding:0 22px}.article-title{font-size:clamp(32px,4.2vw,52px);line-height:1.13;letter-spacing:-.03em;margin:12px 0}.article-subtitle{font-size:21px;color:#56677a;line-height:1.5}.article-content{font-size:19px;line-height:1.8}.article-content p{margin:1.1em 0}.article-content img{border-radius:8px}.article-meta{font-size:13px;color:var(--muted);margin:15px 0 25px}.share-links{display:flex;gap:10px;flex-wrap:wrap;margin:28px 0}.share-links a{padding:8px 13px;background:#eef3f7;border-radius:6px;font-size:13px}.pagination{margin:25px 0}.site-footer{margin-top:60px;background:var(--navy);color:#d4e2ee}.footer-main{padding:38px 0 20px;display:grid;grid-template-columns:1fr 1fr;gap:24px}.footer-main h3{margin:0 0 8px;color:white}.footer-social,.footer-contacts{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0}.footer-social a,.footer-contacts a{display:inline-flex;align-items:center;padding:8px 12px;border:1px solid #ffffff30;border-radius:7px;font-size:13px}.footer-bottom{padding:18px 0;border-top:1px solid #ffffff25;text-align:center;font-size:12px;color:#a9bbcd}.footer-bottom a{color:#72e4d3;font-weight:700}.mobile-toggle{display:none}.screen-reader-text{position:absolute;left:-9999px}.skip-link:focus{left:10px;top:10px;background:white;color:black;z-index:99;padding:10px}.archive-title{margin:36px 0 22px}.empty-state{padding:28px;background:#f4f7fa;border-radius:8px}.footer-social a:hover,.footer-contacts a:hover{background:#ffffff18;color:white}@media(max-width:850px){.header-inner{min-height:64px;flex-wrap:wrap;gap:10px}.brand img{width:118px;max-height:45px}.mobile-toggle{display:inline-block!important}.main-nav{display:none;width:100%;order:3;padding:0 0 15px}.main-nav.is-open{display:flex}.header-tools{gap:6px}.header-tools a,.header-tools button{padding:6px 9px;font-size:12px}.featured-grid{grid-template-columns:1fr}.featured-secondary{grid-template-columns:1fr 1fr}.story-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.story.main h3{font-size:25px}.footer-main{grid-template-columns:1fr}}@media(max-width:540px){.wrap{padding:0 15px}.featured-secondary,.story-grid{grid-template-columns:1fr}.story h3{font-size:20px}.section{margin:25px 0}.section-head h2{font-size:21px}.article-content{font-size:17px}.article-subtitle{font-size:18px}.header-tools .radio-label{display:none}}

/* v0.1.1: buscador accesible y adaptación del encabezado */
.header-search{display:flex;align-items:center;gap:4px}.header-search input{width:118px;min-width:0;padding:9px 8px;border:1px solid #ffffff35;border-radius:7px;background:#ffffff12;color:#fff;font:inherit;font-size:12px}.header-search input::placeholder{color:#d5e0eb}.header-search button{font-size:18px;line-height:1}.header-search input:focus{width:180px;outline:2px solid #5fe4d0;outline-offset:2px}@media(max-width:1100px){.header-inner{flex-wrap:wrap;padding-top:10px;padding-bottom:10px}.main-nav{order:3;width:100%;justify-content:center}.header-tools{margin-left:auto}}@media(max-width:540px){.header-search input{width:78px}.header-search input:focus{width:110px}}

/* v0.2.0 — Newsroom Premium: encabezado compacto, lectura y grillas */
:root{--navy:#101e33;--ink:#152339;--line:#e4eaf1}
body{font-size:16px;line-height:1.55;overflow-wrap:break-word}
.site-header{top:0}.header-inner{max-width:1440px;min-height:70px;gap:18px;flex-wrap:nowrap;padding-top:8px;padding-bottom:8px}
.brand{min-width:0;flex:0 0 auto}.brand img{width:64px;max-height:52px}
.main-nav{flex:1;min-width:0;display:flex;flex-wrap:nowrap;gap:clamp(7px,1vw,17px);justify-content:center;align-items:center;font-size:clamp(11px,.85vw,13px);line-height:1.3}
.main-nav ul{display:flex;flex-wrap:nowrap;align-items:center;gap:clamp(7px,1vw,17px);padding:0;margin:0;list-style:none}
.main-nav li{list-style:none;margin:0;padding:0}.main-nav li::marker{content:''}
.main-nav a{white-space:nowrap;display:inline-block;padding:7px 0}.main-nav>a::before{content:none}
.header-tools{flex:0 0 auto;gap:8px;margin-left:0}.header-tools>a{white-space:nowrap;display:flex;align-items:center;gap:6px;font-size:13px;padding:9px 12px}
.header-search{margin:0}.header-search input{width:112px}.header-search input:focus{width:140px}
.section{margin:34px 0 40px}.section-head{margin-bottom:18px}.section-head h2{font-size:clamp(21px,2vw,26px);letter-spacing:-.02em}
.featured-grid{grid-template-columns:minmax(0,1.9fr) minmax(0,1fr);gap:20px}.featured-secondary{align-content:start;gap:18px}
.story{display:flex;flex-direction:column;min-width:0}.story-image{width:100%;aspect-ratio:16/9;flex:none}.story-image img{display:block}
.story h3{font-size:clamp(17px,1.45vw,21px);line-height:1.32;margin:9px 0 4px;font-weight:750;letter-spacing:-.012em;overflow-wrap:anywhere}
.story.main h3{font-size:clamp(26px,2.7vw,38px);line-height:1.15}.story .excerpt{font-size:15px;line-height:1.55}
.story-grid{column-gap:20px;row-gap:30px}.story-grid .story h3{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}
.story-grid .story .meta{margin-top:10px}.featured-secondary .story h3{font-size:18px}
.ad-slot.has-content{max-width:100%;overflow:hidden;margin:30px auto}.ad-slot iframe,.ad-slot img{max-width:100%}
.article-layout{max-width:850px}.article-layout figure{margin:24px 0}.article-layout figure img{width:100%;height:auto}
.article-content{overflow-wrap:anywhere}.article-content iframe{max-width:100%}.article-content table{display:block;max-width:100%;overflow-x:auto}
.footer-main{padding:38px 22px 28px}.footer-bottom{padding:18px 22px}.footer-social a,.footer-contacts a{transition:background .2s,border-color .2s}.footer-social a{min-height:42px}
.footer-social a:hover,.footer-contacts a:hover{border-color:#7ce2d4}
:focus-visible{outline:3px solid #22c9e8;outline-offset:3px}
@media(max-width:1280px){.header-inner{gap:12px}.main-nav{font-size:12px;gap:8px}.main-nav ul{gap:8px}.header-search input{width:85px}.header-search input:focus{width:115px}}
@media(max-width:1120px){.header-inner{min-height:66px;flex-wrap:nowrap;padding-top:8px;padding-bottom:8px}.main-nav{display:none;position:absolute;top:100%;left:0;right:0;width:100%;order:unset;background:#102037;padding:12px 22px 18px;box-shadow:0 10px 20px #0002;max-height:75vh;overflow-y:auto}.main-nav.is-open{display:flex;flex-direction:column;align-items:stretch;gap:0}.main-nav ul{flex-direction:column;align-items:stretch;gap:0}.main-nav a{display:block;padding:10px 8px;border-bottom:1px solid #ffffff20;white-space:normal}.mobile-toggle{display:inline-flex!important;align-items:center;justify-content:center}.header-tools{margin-left:auto}.brand img{width:64px}.header-search input{width:128px}.header-search input:focus{width:160px}}
@media(max-width:700px){.wrap{padding-left:16px;padding-right:16px}.featured-grid{grid-template-columns:1fr}.featured-secondary{grid-template-columns:repeat(2,minmax(0,1fr))}.story-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 14px}.story.main h3{font-size:28px}.footer-main{grid-template-columns:1fr}.article-title{font-size:clamp(29px,7vw,40px)}}
@media(max-width:520px){.header-inner{gap:8px}.brand img{width:49px;max-height:43px}.header-tools{gap:5px}.header-search input{width:90px;padding:8px 6px}.header-search input:focus{width:108px}.header-tools>a{font-size:12px;padding:8px}.radio-label{display:inline!important}.featured-secondary{grid-template-columns:1fr 1fr;gap:12px}.featured-secondary .story h3{font-size:15px}.story-grid{grid-template-columns:1fr 1fr}.story-grid .story h3{font-size:16px}.story-grid .story .meta{font-size:10px}.section{margin:26px 0}.footer-main{padding-top:28px}.footer-bottom{line-height:1.8}}
@media(max-width:370px){.header-search input{width:64px}.header-search input:focus{width:80px}.header-tools>a{font-size:11px}.story-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.story-image img{transition:none}}
