/*
Theme Name: Formatos Dos
Author: Gustavo Troncoso
Description: Plantilla WordPress modular, responsive y administrable para proyectos editoriales y sitios de contenidos.
Version: 2.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: base-editorial-modular
*/
:root{--ink:#111820;--navy:#071d31;--red:#d92727;--muted:#687581;--line:#e5e8eb;--soft:#f3f5f7;--width:1440px}
*{box-sizing:border-box}body{margin:0;color:var(--ink);font:16px/1.5 Arial,Helvetica,sans-serif}a{color:inherit;text-decoration:none}a:hover{color:var(--red)}img{max-width:100%;height:auto;display:block}.bem-wrap{width:calc(100% - 48px);max-width:var(--width);margin-left:auto;margin-right:auto}
.bem-brandbar{background:linear-gradient(105deg,#fff,#edf0f3);border-bottom:1px solid var(--line)}.bem-brandbar-inner{min-height:112px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 0}.bem-brand{display:flex;align-items:center;gap:14px}.bem-brand-mark{width:12px;height:52px;background:var(--red);transform:skew(-14deg)}.bem-site-title{font-size:clamp(25px,3vw,39px);font-weight:900;line-height:1;margin:0;text-transform:uppercase;letter-spacing:-1px}.bem-tagline{margin:7px 0 0;color:var(--muted);font-size:11px;letter-spacing:1.2px;text-transform:uppercase}.bem-header-note{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:1px}
.bem-nav{background:var(--navy);color:white}.bem-nav-inner{min-height:50px}.bem-menu-toggle{display:none}.bem-menu{display:flex;flex-wrap:wrap;align-items:center;list-style:none;margin:0;padding:0}.bem-menu li{margin:0}.bem-menu a{display:block;padding:15px 16px;color:white;font-size:13px;font-weight:700;text-transform:uppercase}.bem-menu a:hover,.bem-menu .current-menu-item>a,.bem-menu .current_page_item>a{background:var(--red);color:white}
.bem-ticker{display:flex;align-items:stretch;margin:20px 0 24px;background:var(--soft)}.bem-ticker-label{background:var(--red);color:#fff;padding:10px 15px;font-size:12px;font-weight:800;text-transform:uppercase;white-space:nowrap}.bem-ticker-text{padding:9px 15px;font-size:14px;font-weight:700;display:flex;align-items:center}
.bem-category{display:inline-block;background:var(--red);color:#fff;padding:5px 9px;font-size:11px;font-weight:800;text-transform:uppercase;margin-bottom:10px}.bem-home-grid{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(260px,1fr);gap:18px}.bem-lead,.bem-side-card{position:relative;overflow:hidden;background:#183044;color:#fff}.bem-lead{min-height:430px}.bem-lead img,.bem-side-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.bem-lead:after,.bem-side-card:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(0,0,0,.82),rgba(0,0,0,.02) 78%)}.bem-lead-content,.bem-side-card-content{position:absolute;z-index:1;left:22px;right:20px;bottom:20px}.bem-lead h1{font-size:clamp(27px,3.2vw,42px);line-height:1.05;margin:0 0 8px}.bem-lead p{margin:0;color:#eee}.bem-side-stories{display:grid;grid-template-rows:repeat(3,1fr);gap:16px}.bem-side-card{min-height:128px}.bem-side-card:after{background:linear-gradient(90deg,rgba(0,0,0,.78),rgba(0,0,0,.03))}.bem-side-card-content{left:16px;bottom:14px}.bem-side-card h2{font-size:19px;line-height:1.12;margin:0}
.bem-editable{margin:22px auto}.bem-editable:empty{display:none}.bem-editable .widget{margin:0}.bem-editable img{max-width:100%}
.bem-news-section{margin:34px auto}.bem-section-heading{display:flex;justify-content:space-between;align-items:center;border-bottom:2px solid var(--ink);padding-bottom:9px;margin-bottom:18px}.bem-section-heading h1,.bem-section-heading h2{font-size:22px;text-transform:uppercase;margin:0}.bem-section-heading span{font-size:11px;color:var(--muted);text-transform:uppercase}.bem-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.bem-news-card img{width:100%;aspect-ratio:16/10;object-fit:cover;background:#e5e8eb}.bem-card-body{padding-top:9px}.bem-news-card h2,.bem-news-card h3{font-size:18px;line-height:1.15;margin:0 0 7px}.bem-news-card p{font-size:13px;color:var(--muted);margin:0}
.bem-site-footer{margin-top:42px;background:var(--navy);color:#fff;padding:27px 0}.bem-footer-inner{display:flex;justify-content:space-between;align-items:center;gap:20px}.bem-footer-title{font-weight:900;text-transform:uppercase;margin:0}.bem-footer-copy{font-size:12px;color:#cbd3dc;margin:5px 0 0}.bem-footer-menu{display:flex;flex-wrap:wrap;gap:15px;list-style:none;margin:0;padding:0}.bem-footer-menu a{font-size:12px;color:#fff}
.bem-post-header{margin:28px 0 18px}.bem-post-header h1{font-size:clamp(30px,4vw,48px);line-height:1.05;margin:8px 0}.bem-post-meta{font-size:12px;color:var(--muted)}.bem-post-featured{width:100%;max-height:620px;object-fit:cover;margin:20px 0}.bem-entry-content{max-width:850px;font-size:18px;line-height:1.75}
@media(max-width:760px){.bem-wrap{width:min(100% - 28px,var(--width))}.bem-brandbar-inner{min-height:78px;padding:11px 0}.bem-brand-mark{height:40px}.bem-site-title{font-size:25px}.bem-tagline,.bem-header-note{display:none}.bem-nav-inner{width:100%}.bem-menu-toggle{display:flex;justify-content:space-between;align-items:center;width:100%;padding:12px 14px;background:none;border:0;color:white;font-weight:700;text-transform:uppercase}.bem-menu-toggle span:last-child{font-size:23px}.bem-menu{display:none;flex-direction:column;align-items:stretch;padding:0 14px 10px}.bem-menu.is-open{display:flex}.bem-menu a{padding:11px 8px;border-top:1px solid #ffffff22}.bem-ticker{display:block;margin:14px 0 18px}.bem-ticker-label{display:block}.bem-ticker-text{font-size:13px}.bem-home-grid{grid-template-columns:1fr;gap:12px}.bem-lead{min-height:330px}.bem-lead-content{left:16px;right:16px;bottom:16px}.bem-lead h1{font-size:29px}.bem-side-stories{grid-template-columns:1fr 1fr;grid-template-rows:none;gap:10px}.bem-side-card{min-height:145px}.bem-side-card h2{font-size:16px}.bem-card-grid{grid-template-columns:1fr 1fr;gap:14px}.bem-news-card h2,.bem-news-card h3{font-size:16px}.bem-footer-inner{display:block}.bem-footer-menu{margin-top:15px}}
@media(max-width:430px){.bem-side-stories,.bem-card-grid{grid-template-columns:1fr}.bem-side-card{min-height:140px}.bem-lead{min-height:300px}}

/* Ajustes de ancho general y compatibilidad con temas/plugins del sitio */
html,body{width:100%;max-width:none;overflow-x:hidden}
#page,.site,.site-content,.content-area,main.site-main{width:100%;max-width:none}
.bem-custom-body{width:100%;max-width:none}
.bem-custom-body>*{max-width:100%}
.bem-editable{width:calc(100% - 48px);max-width:var(--width);margin:0 auto}
.bem-editable:empty{display:none}
.bem-admin-editor textarea{font-family:Consolas,monospace}
@media(max-width:760px){.bem-wrap,.bem-editable{width:calc(100% - 28px)}}
