/*
 * v1.39.33 · Posición única para todos los banners de las secciones del menú.
 * La referencia es Inicio: 46 px superiores, 12 px laterales, ancho máximo
 * de 1580 px y 20 px de separación inferior.
 */
:root{
  --kd-menu-banner-top:46px;
  --kd-menu-banner-side:12px;
  --kd-menu-banner-bottom:20px;
  --kd-menu-banner-max:1580px;
}

/* El área principal usa la misma retícula lateral que Inicio. */
html body main#primary:is(
  .kd-explore-template-main,
  .kd-bancoteca-template-main,
  .kd-founders-template-main,
  .kd-directory-template-main,
  .kd-strains-template-main,
  .kd-shorts-template-main,
  .kd-questions-template-main,
  .kd-contests-template-main,
  .kd-growers-template-main,
  .kd-seeds-template-main,
  .kd-breeders-template-main,
  .kd-nutrients-template-main,
  .kd-equipment-template-main,
  .kd-feed-template-main,
  .kd-blog-template-main,
  .kd-growshops-template-main
){
  box-sizing:border-box!important;
  width:100%!important;
  margin:0!important;
  padding-top:0!important;
  padding-right:var(--kd-menu-banner-side)!important;
  padding-left:var(--kd-menu-banner-side)!important;
  overflow-x:hidden!important;
  overflow-x:clip!important;
}

/* v1.40.565: el banner de los perfiles de empresa usa EXACTAMENTE la misma
 * retícula que Inicio y Diarios. El main deja de aportar su padding vertical
 * legado y el motor publicitario recibe aquí el mismo top/side/max/bottom. */
html body main#primary.kd-company-template-main{
  box-sizing:border-box!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin-left:0!important;
  margin-right:0!important;
  padding-top:0!important;
  padding-left:var(--kd-menu-banner-side)!important;
  padding-right:var(--kd-menu-banner-side)!important;
}

html body main#primary.kd-company-template-main > .kd-ad-engine{
  position:relative!important;
  left:auto!important;
  box-sizing:border-box!important;
  display:block!important;
  width:100%!important;
  max-width:var(--kd-menu-banner-max)!important;
  margin-top:var(--kd-menu-banner-top)!important;
  margin-right:auto!important;
  margin-bottom:var(--kd-menu-banner-bottom)!important;
  margin-left:auto!important;
  padding:0!important;
  transform:none!important;
}

/* El shell de cada sección empieza exactamente en la misma línea que Inicio. */
html body main#primary.kd-explore-template-main > .kd-explore-home,
html body main#primary.kd-bancoteca-template-main > .kd-bancoteca-shell,
html body main#primary.kd-founders-template-main > .kd-founders-page,
html body main#primary.kd-directory-template-main > .kd-diaries-explorer,
html body main#primary.kd-strains-template-main > .kd-strains-app,
html body main#primary.kd-shorts-template-main > .kd-shorts-app,
html body main#primary.kd-questions-template-main > .kd-questions-app,
html body main#primary.kd-contests-template-main > .kd-contests-shell,
html body main#primary.kd-growers-template-main > .kd-growers-shell,
html body main#primary.kd-seeds-template-main > .kd-seeds-shell,
html body main#primary.kd-breeders-template-main > .kd-breeders-shell,
html body main#primary.kd-nutrients-template-main > .kd-nutrients-shell,
html body main#primary.kd-equipment-template-main > .kd-equipment-shell,
html body main#primary.kd-feed-template-main > .kd-social-feed,
html body main#primary.kd-blog-template-main > .kd-blog-shell,
html body main#primary.kd-growshops-template-main > .kd-growshops-shell{
  box-sizing:border-box!important;
  width:100%!important;
  max-width:var(--kd-menu-banner-max)!important;
  margin-top:0!important;
  margin-right:auto!important;
  margin-left:auto!important;
  padding-top:var(--kd-menu-banner-top)!important;
  transform:none!important;
}

/* El banner ocupa la misma columna, ancho y separación inferior que en Inicio. */
html body main#primary :is(
  .kd-explore-home,
  .kd-diaries-explorer,
  .kd-strains-app,
  .kd-shorts-app,
  .kd-questions-app,
  .kd-contests-shell,
  .kd-growers-shell,
  .kd-seeds-shell,
  .kd-breeders-shell,
  .kd-nutrients-shell,
  .kd-equipment-shell,
  .kd-social-feed,
  .kd-blog-shell,
  .kd-growshops-shell
) > :is(.kd-section-banner-frame,.kd-sponsored-section-hero-frame,.kd-home-promo-rotator,.kd-growshops-hero){
  position:relative!important;
  left:auto!important;
  box-sizing:border-box!important;
  display:block!important;
  width:100%!important;
  max-width:var(--kd-menu-banner-max)!important;
  margin:0 auto var(--kd-menu-banner-bottom)!important;
  padding:0!important;
  transform:none!important;
}

/* Novedades conserva su contenido editorial más estrecho; solo el banner usa 1580 px. */
html body main#primary.kd-feed-template-main > .kd-social-feed > .kd-feed-layout{
  box-sizing:border-box!important;
  width:100%!important;
  max-width:1360px!important;
  margin-right:auto!important;
  margin-left:auto!important;
}

@media(max-width:960px){
  :root{
    --kd-menu-banner-top:18px;
    --kd-menu-banner-side:14px;
    --kd-menu-banner-bottom:18px;
  }
}

@media(max-width:760px){
  :root{
    --kd-menu-banner-top:10px;
    --kd-menu-banner-side:8px;
    --kd-menu-banner-bottom:14px;
  }
}
