/* Adaptación de la identidad al sistema editorial de Dipromin. */
.navbar-brand .custom-logo { width: 480px; height: auto; }
.mg-nav-widget-area .navbar-header { min-width: 0; }
.unveil-footer-brand img { width: 255px; margin-left: 0; }
.hero-news-picker { background: #0e2f0ded; }
.home-inline-ad { background-color: #103710; }
.home-inline-ad-copy strong, .home-inline-ad-cta { color: #d8f4d7; }
.home-inline-ad-copy strong > span { color: #9ac63b; }
.mg-menu-full .sticky-brand img { width: 190px; }
.proposal-article { max-width: 860px; margin: 45px auto; padding: 0 24px; }
.proposal-article h1 { font-size: clamp(30px,4vw,48px); line-height:1.15; letter-spacing:-1px; }
.proposal-article p { font-size: 18px; line-height:1.8; color:#264925; margin: 22px 0; }
.proposal-article .article-image { width:100%; max-height:520px; object-fit:cover; margin: 20px 0; }
.proposal-article .article-date { font-size:14px; color:#538152; }
.proposal-article .article-source { font-size:14px; border-top:1px solid #c5dfc5; padding-top:20px; }
.proposal-article a { text-decoration:underline; text-underline-offset:4px; }
@media(max-width:767px){.navbar-brand .custom-logo{width:min(340px,90vw)}.unveil-footer-brand img{width:240px}.proposal-article{margin-top:28px}.proposal-article p{font-size:17px}}

.new-banner-slot { padding:0!important; background:transparent!important; }
.new-banner-slot a { min-height:250px; border:1px dashed #72a671; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:14px; text-align:center; color:#185117; background:#e5f4e5; padding:24px; }
.new-banner-slot[data-banner-size="300 × 600"] a { min-height:400px; }
.new-banner-slot span { font-size:11px; letter-spacing:2px; }
.new-banner-slot strong { font-size:25px; }
.new-banner-slot small { font-size:16px; }
.new-banner-slot b { font-size:13px; border-bottom:1px solid; padding-bottom:5px; }
.home-inline-ad::before { background:linear-gradient(110deg,#134012,#1b5a1a 50%,#0e300d); }
.home-inline-ad-copy strong > span { color:#a9e4a8!important; }
body .mg-posts-sec-post h4.title a { display:block; max-height:none; overflow:visible; -webkit-line-clamp:unset; }
@media(max-width:767px){
 body .unveil-hero .mg-blog-post h4.title, body .hero-lede { max-width:calc(100vw - 48px)!important; }
 body .unveil-hero .mg-blog-post h4.title a { white-space:normal; }
}
body article.mg-posts-sec-post h4.title { height:auto!important; max-height:none!important; overflow:visible!important; }
/* Noticias internas: misma plantilla de lectura que el nuevo Dipromin. */
body #content.dipromin-article-layout { padding-top:0!important; }
body .dipromin-article-main .elementor-widget-theme-post-content :is(li,blockquote,td,figcaption) { font-size:17px; line-height:1.85; color:#506050; }
body .dipromin-article-main .elementor-widget-theme-post-content h2 { font-family:var(--font-display); font-size:25px; line-height:1.3; margin:30px 0 16px; }
body .dipromin-article-main .elementor-widget-theme-post-content ul { padding-left:24px; }
body .dipromin-article-main .elementor-widget-theme-post-content li { margin-bottom:14px; }
@media(max-width:767px){body .dipromin-article-main .elementor-widget-theme-post-content :is(li,blockquote,td,figcaption){font-size:16px;line-height:1.8}}

.mg-menu-full .navbar-toggler-icon { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='white' stroke-linecap='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E")!important; }
.mg-menu-full .navbar-toggler .close { color:white!important; }
/* Espacio breve entre la paginación de portada y las noticias relacionadas. */
body:has(#homemain) #content.container-fluid { padding-bottom:0!important; }
body:has(#homemain) #content .mg-posts-sec { margin-bottom:0!important; }
body:has(#homemain) .more-sector-news { margin-top:28px!important; }
body:has(#homemain) article.mg-posts-sec-post p .excerpt-read-more { display:inline; white-space:nowrap; color:#337e32; font-weight:650; }
@media(max-width:767px){body:has(#homemain) .more-sector-news{margin-top:24px!important}}
/* Páginas de servicio: sistema editorial Dipromin en azul Agronline. */
body #content.advertising-page { padding-top:0; padding-bottom:0; }
.advertising-page .ad-button,.advertising-page .ad-contact { background:#26442c; border-color:#26442c; }
.advertising-page .ad-button-light { background:#9ac63b; border-color:#9ac63b; }
.advertising-page .ad-service p,.advertising-page .advertising-intro p { color:#59675b; }
.advertising-page .ad-service p { font-size:16px; }
body #content.utility-page { max-width:1320px; margin:0 auto; padding:36px 32px 0; }
.utility-page > .container-fluid { padding:0; }
.utility-layout { display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:28px; margin:0; align-items:start; }
.utility-main,.utility-aside { min-width:0; }
.utility-card { padding:36px; background:white; }
.utility-breadcrumb { display:flex; gap:6px; font-size:14px; color:#64745d; margin-bottom:34px; }
.utility-card h1 { font-family:var(--font-display); font-size:clamp(32px,3.5vw,48px); font-weight:750; line-height:1.12; letter-spacing:-1.6px; color:#24392b; margin:16px 0 22px; }
.utility-lede { font-size:18px; line-height:1.75; color:#59675b; margin-bottom:30px; }
.utility-card .utility-contact { margin:0; padding:0; border:0; box-shadow:none; }
.utility-card .utility-contact .contact-channel:first-child { border-top:1px solid #d7dfcf; }
.utility-contact .contact-whatsapp { background:#26442c; }
.utility-crosslink { padding:26px; margin-top:32px; background:#eff3e8; border-left:3px solid #688f34; }
.utility-crosslink h2 { font-size:23px; line-height:1.3; letter-spacing:-.5px; }
.utility-crosslink p { font-size:16px; line-height:1.7; color:#59675b; }
.utility-crosslink a,.subscription-external { color:#337e32; text-decoration:underline; text-underline-offset:4px; font-weight:650; }
.subscription-frame { overflow:hidden; height:480px; width:100%; border:1px solid #d7dfcf; background:white; }
.subscription-frame iframe { position:relative; top:-80px; width:100%; height:560px; border:0; }
.subscription-help { font-size:14px; color:#638b62; line-height:1.6; margin:20px 0 10px; }
.subscription-external { font-size:14px; }
@media(max-width:991px){.utility-layout{grid-template-columns:minmax(0,1fr) 280px;gap:20px}.utility-card{padding:28px}}
@media(max-width:767px){body #content.utility-page{padding:24px 24px 0}.utility-layout{display:block}.utility-aside{margin:28px auto 0;max-width:420px}.utility-card{padding:24px 20px}.utility-card h1{font-size:34px;letter-spacing:-1px}.utility-lede{font-size:17px}.utility-breadcrumb{margin-bottom:26px}.utility-crosslink{padding:20px}.subscription-frame{height:520px}.subscription-frame iframe{height:600px}}
.utility-main .utility-contact .contact-channel small { font-size:14px; }
.utility-main .utility-contact .contact-channel strong { font-size:18px; }
.utility-main .utility-contact .contact-whatsapp { font-size:16px; padding:16px; }
.ad-services .ad-interest { font-size:13px; }
/* Categorías: archivo editorial del nuevo Dipromin, con la identidad azul. */
.archive-intro h1 { color:#24392b; }
.archive-intro p { color:#59675b; }
.archive-list-content article.mg-posts-sec-post p .excerpt-read-more { display:inline; white-space:nowrap; color:#337e32; font-weight:650; }
.archive-list-content + .more-sector-news { margin-top:28px!important; }
/* Revisión móvil: navegación accesible desde el primer pantallazo y áreas táctiles amplias. */
@media(max-width:991px){
 .mg-menu-full { position:sticky!important; top:0; left:auto; right:auto; visibility:visible!important; opacity:1!important; transform:none!important; pointer-events:auto!important; transition:none; }
 .mg-menu-full .m-header { min-height:52px; }
 .mg-menu-full .navbar-toggler,.mg-menu-full .search-trigger { min-width:44px; min-height:44px; }
 .mg-menu-full .mobilehomebtn { min-height:44px; }
 .mg-menu-full .navbar-nav > li > a { min-height:44px; display:flex; align-items:center; }
 .mg-menu-full .navbar-collapse { max-height:calc(100dvh - 68px); overscroll-behavior:contain; }
 .mg-headwidget .mg-social .header-social-link { width:44px; height:44px; }
 .unveil-footer .footer-social-links a { min-height:44px; }
 .unveil-footer-grid > nav > a,.unveil-footer-grid > div:not(:first-child) > a { min-height:44px; display:flex; align-items:center; margin-bottom:4px; }
 .unveil-footer .footer-cta { min-height:48px; }
 .hero-navigation button { width:44px; height:44px; }
 .pagination .page-numbers { min-width:44px; min-height:44px; }
 .ad-service .ad-interest { min-height:44px; display:inline-flex; align-items:center; justify-content:center; }
 .ta_upscr { min-width:44px; min-height:44px; }
}
@media(max-width:359px){
 .mg-menu-full .m-header { gap:10px; }
 .mg-menu-full .mobilehomebtn,.mg-menu-full .mobilehomebtn img { width:132px; }
 .utility-page .utility-contact .contact-channel strong { font-size:16px; overflow-wrap:anywhere; }
}
.subscription-form { padding:28px; margin:26px 0 0; background:#eff3e8; border:1px solid #cce6cc; }
.subscription-field { display:flex; flex-direction:column; gap:9px; margin-bottom:22px; }
.subscription-field label { font-size:16px; line-height:1.5; color:#185117; font-weight:650; }
.subscription-field input { width:100%; min-width:0; min-height:48px; border:1px solid #8bbc8a; border-radius:3px; padding:12px 14px; font-family:var(--font-body); font-size:16px; color:#185117; background:white; box-sizing:border-box; }
.subscription-field input:focus-visible { outline:2px solid #688f34; outline-offset:2px; }
.subscription-form button { min-height:48px; padding:14px 22px; border:1px solid #26442c; border-radius:3px; background:#26442c; color:white; font-family:var(--font-body); font-size:16px; font-weight:650; white-space:normal; line-height:1.4; max-width:100%; }
.subscription-form button:hover { background:#1b5a1a; }
.subscription-honeypot { position:absolute; left:-10000px; width:1px; height:1px; overflow:hidden; }
.unveil-footer { scroll-margin-top:80px; }
@media(max-width:767px){.subscription-form{padding:20px 16px}.subscription-form button{width:100%}.subscription-field label{font-size:16px}}
/* Móviles y tablets: mostrar el menú únicamente después de superar la cabecera. */
@media(max-width:1024px){
 .mg-menu-full { position:fixed!important; top:0; left:0; right:0; visibility:hidden!important; opacity:0!important; transform:translateY(-110%)!important; pointer-events:none!important; transition:transform .22s ease,opacity .22s ease,visibility .22s; }
 .mg-menu-full.is-mobile-sticky { visibility:visible!important; opacity:1!important; transform:translateY(0)!important; pointer-events:auto!important; }
}
@media(prefers-reduced-motion:reduce){.mg-menu-full{transition:none!important}}
