/* Enlace "Limpiar" variaciones */
.reset_variations{
  display:inline-block;
  margin-top:8px;
  font-size:13px;
  font-weight:500;
  color:#1f2937;              /* negro suave */
  text-decoration:underline;
  cursor:pointer;
  transition:color .2s ease, opacity .2s ease;
}

/* Hover / focus */
.reset_variations:hover,
.reset_variations:focus{
  color:#2e7d32;              /* verde principal */
  text-decoration:none;
  opacity:0.95;
}

/* Estado deshabilitado */
.reset_variations[style*="hidden"],
.reset_variations.disabled{
  pointer-events:none;
  opacity:0.4;
  text-decoration:none;
}

/* Accesibilidad */
.reset_variations:focus-visible{
  outline:2px solid rgba(46,125,50,.45);
  outline-offset:2px;
}


/*Estilos de metodo de envio*/
/* Contenedor principal de métodos de envío */
ul#shipping_method {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Estilo para cada fila de envío */
ul#shipping_method li {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 8px;
    background-color: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* Efecto hover para guiar al usuario */
ul#shipping_method li:hover {
    background-color: #f0f0f0;
    border-color: #d1d1d1;
}

/* El input radio */
ul#shipping_method input[type="radio"] {
    margin-right: 12px !important;
    cursor: pointer;
}

/* El texto de la etiqueta */
ul#shipping_method label {
    cursor: pointer;
    font-weight: 500;
    color: #333;
    width: 100%;
    margin-bottom: 0 !important;
}

/* Resaltar el precio */
ul#shipping_method .woocommerce-Price-amount {
    font-weight: bold;
    color: #222;
    float: right; /* Mueve el precio a la derecha para mayor claridad */
}

/* Estilo cuando la opción está seleccionada (opcional pero recomendado) */
ul#shipping_method li:has(input:checked) {
    background-color: #f0f9f0; /* Fondo verde muy claro */
    border-color: #4caf50;     /* Borde verde corporativo */
}

/*QUitar los temas por defecto de los posts del blog*/
/* -------------------------------
   1. Oculta botones de compartir (Sharedaddy)
----------------------------------*/
.sharedaddy,
.sharedaddy .sd-block {
    display: none !important;
}

/* -------------------------------
   2. Oculta likes de posts (Jetpack)
----------------------------------*/
.sharedaddy.sd-like,
.jetpack-likes-widget-wrapper {
    display: none !important;
}

/* -------------------------------
   3. Oculta likes de comentarios (Jetpack)
----------------------------------*/
.jetpack-comment-likes-widget-wrapper,
.comment-likes-widget-placeholder,
.comment-likes {
    display: none !important;
}

/* -------------------------------
   4. Solo aplicar en posts individuales (opcional)
----------------------------------*/
.single .sharedaddy,
.single .sharedaddy.sd-like,
.single .jetpack-likes-widget-wrapper,
.single .jetpack-comment-likes-widget-wrapper,
.single .comment-likes-widget-placeholder,
.single .comment-likes {
    display: none !important;
}





/*Quitar descripciones de categorias*/
/* Oculta la descripción corta bajo el precio */
/* Oculta la descripción de categorías en Blocksy */
.archive .page-description {
    display: none !important;
}


/* Fondo blanco y bordes redondeados a cada producto */
ul.products li.product {
    background: #ffffff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.07);
    overflow: hidden; /* Evita que algo sobresalga */
}

/* Asegura que el contenido interno respete los bordes */
ul.products li.product figure,
ul.products li.product img {
    border-radius: 10px;
}

/* Espacio entre tarjetas */
ul.products li.product {
    margin-bottom: 20px;
}





/*Categorias*/

/* Subcategorías en móvil */
/* === Subcategorías de productos === */
.subcategorias-grid {
  display: flex;
  flex-wrap: wrap;        /* permite varias filas */
  gap: 6px;               /* espacio entre items */
  justify-content: center;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.subcategorias-grid li {
  margin: 0;
}

.subcategorias-grid li a {
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  text-decoration: none;
  color: #555;
  border-radius: 4px;
  background: #f4f4f4;
  transition: all 0.3s ease;
  display: inline-block;
}

.subcategorias-grid li a:hover {
  color: #fff;
  background: #222f24;
}

/* === Responsive móvil === */
@media (max-width: 768px) {
  .subcategorias-grid {
    gap: 4px;
    margin: 10px 0;
    justify-content: center;
  }

  .subcategorias-grid li a {
    font-size: 12px;
    padding: 3px 6px;
  }
}



.ct-footer .ct-widget {
	--theme-content-spacing: 1em;
}
/* Ocultar hero section solo en página de productos (Shop body.woocommerce-shop
) 
 .hero-section {
  display: none !important;
}

*/


/* Hero de la página de tienda (Products) */
body.woocommerce-shop .hero-section {
  background: transparent !important; /* sin color, sin imagen */
  min-height: 0px;                  /* altura mínima */
  padding: 0px 0;
	margin:  0px;
	/* espacio arriba/abajo */
	background: #222f24 !important;
  
}

body.woocommerce-shop .hero-section img {
  display: none !important;           /* oculta la imagen del hero */
}


/* Hero en páginas de categorías de producto */
body.tax-product_cat .hero-section {
  background: #222f24 !important; /* mismo estilo que en shop */
  min-height: 0px;
  padding: 0px 0;
}

body.tax-product_cat .hero-section img {
  display: none !important;
}

/* Categorías de proyectos */
.product-cat {
  display: flex;
  flex-wrap: wrap;
  gap: 6px; /* menos espacio entre opciones */
  justify-content: center;
  margin: 20px 0;
}

/* Enlaces del menú */
.product-cat a {
  flex: 0 0 auto;           /* que el tamaño se ajuste al contenido */
  text-align: center;
  padding: 0;               /* quitar padding */
  background: none;         /* quitar fondo */
  border-radius: 0;         /* quitar bordes redondeados */
  text-decoration: none;
  color: #c0c0c0;           /* color del texto */
  font-weight: 600;
  font-size: 18px;
  transition: all 0.3s ease;
}

/* Hover */
.product-cat a:hover {
  color: #fff;           /* cambia el color al pasar el mouse */
}
// Opciones de menu de productos
.product-cat {
  width: 1222%;
  max-width: 1220%;
  margin: 0 auto;
}

.product-cat a {
  text-decoration: none;
  color: #777;              /* gris por defecto */
  background: none;         /* sin fondo */
  padding: 8px 12px;
  border-radius: 4px;       /* opcional, suaviza bordes si luego quieres fondo */
  transition: all 0.3s ease;
  font-weight: 500;
}

.product-cat a:hover {
  color: #fff;              /* texto blanco en hover */
  background: none;         /* sigue sin fondo */
}
/* Responsive: ocultar menú en móviles */
@media (max-width: 768px) {
	.entry-header.ct-container-narrow {
    padding-top: 1px;   /* reduce el espacio arriba */
    padding-bottom: 1px; /* reduce el espacio abajo */
    min-height: auto;     /* elimina alturas mínimas */
  }
}

.entry-header.ct-container-narrow {
  max-width: 100% !important; /* ocupa todo el ancho disponible */
  width: 100% !important;
}

//menu productos prueba

.product-cat {
display: flex;
flex-wrap: wrap;
gap: 6px;
justify-content: center;
margin: 20px 0;
width: 100%;
max-width: 1220%;
}


.product-cat a,
.product-cat button {
flex: 0 0 auto;
text-align: center;
text-decoration: none;
color: #777;
background: none;
padding: 8px 12px;
border-radius: 4px;
transition: all 0.3s ease;
font-weight: 600;
font-size: 18px;
border: none;
cursor: pointer;
}


.product-cat a:hover,
.product-cat button:hover {
color: #fff;
background: none;
}


/* Dropdown */
.dropdown {position:relative}
.dropdown-menu {
position:absolute;
top:calc(100%);
left:0;
min-width:180px;
background:#fff;
border-radius:0px;
padding:0.5rem;
list-style:none;
display:none;
z-index:40;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {display:block}


.dropdown-menu a {
display:block;
padding:6px 10px;
border-radius:4px;
text-decoration:none;
color:#000;
font-size:16px;
transition: all 0.3s ease;
}
.dropdown-menu a:hover,
.dropdown-menu a:focus,
.dropdown-menu a:active {
color:green; /* letras verdes en hover/click */
background:#f4f4f4;
}


/* Responsive */
@media (max-width: 768px) {

	
.site-logo-container img.default-logo {
    max-width: 180px; /* más pequeño en móvil */
    height: auto;
    max-height: 60px; /* altura máxima específica */
    padding-bottom: 5px; /* separa del contenido siguiente */
  }
	
	
}
@media (max-width: 768px) {
  .product-cat {
    gap: 0px 6px;   /* menos espacio vertical (2px) y horizontal (6px) */
    margin: 8px 0;  /* menos margen arriba/abajo del bloque */
  }

  .product-cat a,
  .product-cat button {
    font-size: 13px;     
    padding: 0px 6px;    /* menos padding vertical = menos altura de fila */
    line-height: 1.2;    /* compacta aún más las líneas */
  }

  .dropdown-menu a {
    font-size: 12px;
    padding: 0px 5px;    /* menos padding en subcategorías */
    line-height: 1.2;
  }

  .dropdown-menu {
    min-width: 140px;      /* dropdown más estrecho en móvil */
    padding: 0.25rem;      /* menos padding interno */
  }

  .dropdown-menu a {
    font-size: 12px;       /* letras más pequeñas dentro del desplegable */
    padding: 0px 6px;      /* menos espacio vertical */
  }
}


//arreglar footer colors
/* FOOTER — fondo claro */
.ct-footer {
  background: #f8f8f8 !important;
  color: #222222 !important;
  padding: 24px 0;
}
.ct-footer p,
.ct-footer .ct-footer-copyright,
.ct-footer .wp-block-group p,
.ct-footer h4 {
  color: #222222 !important;
}

/* Enlaces */
.ct-footer a {
  color: #145214 !important; /* verde oscuro legible en fondo claro */
  text-decoration: none;
}
.ct-footer a:hover,
.ct-footer a:focus {
  color: #0a3d09 !important;
  text-decoration: underline;
  outline: 3px solid rgba(10,61,9,0.12);
  outline-offset: 2px;
}

.ct-footer svg { fill: currentColor !important; }

/* Texto legible */
.ct-footer p { font-size: 15px; line-height: 1.4; }

.ct-footer a:focus-visible { outline: 3px solid #ffbf47; outline-offset: 3px; }

@media (max-width: 768px) {
  .ct-footer { padding: 20px 12px; }
  .ct-footer p { font-size: 14px; }
}


/* === Estilos para subcategorías solo en móviles === */
@media (max-width: 768px) {
  .subcategorias-grid {
    display: flex;
    flex-wrap: wrap;       /* que bajen en varias filas */
    gap: 4px;              /* muy poco espacio entre ellas */
    justify-content: center;
    margin: 10px 0;        /* menos margen arriba/abajo */
    padding: 0;
    list-style: none;
  }

  .subcategorias-grid li {
    margin: 0;             /* quitar márgenes */
  }

  .subcategorias-grid a {
    font-size: 12px;       /* texto más pequeño */
    font-weight: 500;
    padding: 3px 6px;      /* compacto */
    text-decoration: none;
    color: #666;
    border-radius: 3px;
    transition: color 0.2s ease;
  }

  .subcategorias-grid a:hover {
    color: #000;           /* más visible en hover */
  }
}

/*Menu lateral * */

:root{
  --unused: 0;
}

.sb-menu-open{
  background:#222;
  color:#fff;
  padding:8px 10px;
  border-radius:6px;
  border: none;
  cursor: pointer;
  display: none;
  z-index: 11000;
}

.sb-panel{
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 86%;
  max-width: 360px;
  background: #fff;
  transform: translateX(-110%);
  transition: transform 0.28s ease;
  z-index: 10000;
  box-sizing: border-box;
  overflow: hidden;           /* el scroll queda dentro de .sb-panel-inner */
  box-shadow: 8px 0 20px rgba(0,0,0,0.08);
  border-right: 1px solid rgba(0,0,0,0.04);
}

.sb-panel.open{
  transform: translateX(0);
}

/* FORZAR overlay a cubrir viewport */
.sb-overlay{
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0,0,0,0.35) !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease;
  z-index: 9990 !important; /* sube si hay elementos encima */
  pointer-events: none;      /* evitar clicks cuando cerrado */
}

/* activo */
.sb-overlay.open{
  opacity: 1;
  visibility: visible;
  pointer-events: auto; /* permite click para cerrar */
}


.sb-panel-inner{
  height: 100% !important;
  max-height: 100% !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  padding: 1rem;
  box-sizing: border-box;
}

@media (max-width: 420px){
  .sb-panel{ top: 4rem; }
  .sb-panel-inner{ max-height: calc(100vh - 4rem); }
}

.sb-panel .sb-cat,
.sb-panel .sb-cat ul,
.sb-panel .sb-sub{
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.sb-panel a{
  text-decoration: none !important;
  color: inherit !important;
}

.sb-sub[hidden]{ display: none !important; }

.sb-cat > li,
.sb-cat-item{
  margin-bottom: .35rem;
}

.cat-head,
.summary-head {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.cat-link,
summary a {
  flex: 1 1 auto;
  display: block;
  padding: .55rem .6rem;
  background: #e9f5e9;
  color: #08310a !important;
  border-radius: 6px;
  font-weight: 600;
  text-align: right;
}

.cat-toggle,
.summary-toggle {
  background: transparent;
  border: 0;
  padding: .35rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.toggle-icon,
.details-arrow {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: .5rem;
  border-right: 2.5px solid #333;
  border-bottom: 2.5px solid #333;
  transform: rotate(-45deg);
  transition: transform .18s ease;
  flex-shrink: 0;
}
.cat-toggle[aria-expanded="true"] .toggle-icon,
details[open] .details-arrow {
  transform: rotate(45deg);
}

summary::-webkit-details-marker,
summary::marker { display: none; }

.sb-sub{
  margin-top: .4rem;
  padding: 0;
}

.sb-sub li{
  background: #ffffff;
  border: 1px solid #000000;
  border-radius: 6px;
  margin: .35rem 0;
  padding: .45rem .6rem;
}

.sb-sub li a{
  display: block;
  color: #111111 !important;
  text-decoration: none !important;
  text-align: right;
  font-weight: 500;
}

@media (max-width: 768px){
  .sb-menu-open { display: inline-block !important; }
}


@media (max-width:420px){
  .toggle-icon, .details-arrow { width:12px; height:12px; }
  .cat-link { padding: .45rem .5rem; font-size: 14px; }
  .sb-sub li { padding: .4rem .45rem; }
}
/* layout de la cabecera de cada ítem */
.cat-head {
  display: flex;
  align-items: center;
  gap: .5rem;
  width: 100%;
}

/* enlace ocupa el espacio disponible y puede reducirse correctamente */
.cat-link {
  flex: 1 1 auto;
  min-width: 0;              /* CRUCIAL para evitar overflow que empuja el botón */
  display: block;
  text-decoration: none !important;
  padding: .5rem .6rem;
  box-sizing: border-box;
  /* mantiene tu estilo visual (ajusta si hace falta) */
  background: #e9f5e9;
  color: #08310a !important;
  border-radius: 6px;
  text-align: right;
}

/* botón toggle a la derecha — aseguramos que esté siempre encima y clicable */
.cat-toggle {
  background: transparent;
  border: none;
  padding: .35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;                /* por encima del enlace si llegara a solaparse */
  margin-left: 0.25rem;
}

/* icono/chevron */
.toggle-icon {
  display: inline-block;
  font-size: 16px;
  line-height: 1;
  transform: rotate(0);
  transition: transform .18s ease;
}

/* rotación cuando el toggle está abierto */
.cat-toggle[aria-expanded="true"] .toggle-icon {
  transform: rotate(180deg);
}

/* asegurar que el enlace no capture clicks del botón (si hubiera stacking) */
.cat-link {
  position: relative;
  z-index: 1;
}

/* sublist: mantiene oculto si hidden y scrolleable después */
.sb-sub[hidden] { display: none !important; }
.sb-sub { margin-top: .4rem; padding: 0; }

/* item de subcategoria */
.sb-sub li {
  padding: .45rem .6rem;
  background: #ffffff;
  border: 1px solid #000000;
  border-radius: 6px;
  margin: .35rem 0;
}

/* evitar que las cajas se rompan en línea (flex) */
.cat-head, .cat-link, .cat-toggle { -webkit-tap-highlight-color: transparent; }

/* pequeño ajuste si el botón aún queda muy pegado en ciertos themes */
.cat-toggle { padding: .45rem .5rem; }

/* Layout básico para que no haya solapamientos */
.cat-head {
  display: flex;
  align-items: center;
  gap: .5rem;
  width: 100%;
}

/* El enlace ocupa el espacio disponible y puede encoger (min-width:0) */
.cat-link {
  flex: 1 1 auto;
  min-width: 0;
  display: block;
  padding: .5rem .6rem;
  background: #e9f5e9;     /* color categoría */
  color: #08310a;
  border-radius: 6px;
  text-decoration: none !important;
  text-align: right;       /* texto a la derecha */
  box-sizing: border-box;
  z-index: 1;
  position: relative;
}

/* Botón toggle siempre a la derecha, no se solapa con el enlace */
.cat-toggle {
  flex: 0 0 auto;
  background: transparent;
  border: none;
  padding: .4rem .5rem;
  cursor: pointer;
  z-index: 2;
  line-height: 1;
  font-size: 16px;
}

/* Icono gira cuando está abierto */
.cat-toggle[aria-expanded="true"] {
  transform: rotate(180deg);
  transition: transform .18s ease;
}

/* Sublista: fondo blanco y borde fino negro (según tu anterior petición) */
.sb-sub {
  margin-top: .4rem;
  padding: 0;
  list-style: none;
}

.sb-sub li {
  background: #ffffff;
  border: 1px solid #000000;
  border-radius: 6px;
  margin: .35rem 0;
  padding: .45rem .6rem;
}

.sb-sub li a {
  display: block;
  color: #111111 !important;
  text-decoration: none !important;
  text-align: right;
  font-weight: 500;
}

/* Asegurar que hidden realmente oculta (por compatibilidad) */
.sb-sub[hidden] { display: none !important; }

/* Opcional: estilos responsivos para móviles (si quieres) */
@media (max-width: 768px) {
  .cat-link { font-size: 15px; }
  .cat-toggle { font-size: 18px; padding: .35rem .45rem; }
}

/* --- layout básico para el ejemplo --- */
.cat-head {
  display: flex;
  align-items: center;
  gap: .5rem;
  width: 100%;
}

/* enlace ocupa el espacio disponible y puede encoger */
.cat-link {
  flex: 1 1 auto;
  min-width: 0;               /* evita que el enlace empuje el botón */
  display: block;
  padding: .5rem .6rem;
  background: #e9f5e9;
  color: #08310a !important;
  border-radius: 6px;
  text-align: right;
  font-weight: 600;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  text-decoration: none !important;
}

/* botón toggle siempre a la derecha y clicable */
.cat-toggle {
  flex: 0 0 auto;
  background: transparent;
  border: none;
  padding: .35rem .45rem;
  cursor: pointer;
  z-index: 2; /* por encima del enlace si hubiera stacking */
  font-size: 16px;
  line-height: 1;
}

/* rotación visual cuando abierto */
.cat-toggle[aria-expanded="true"] {
  transform: rotate(180deg);
  transition: transform .18s ease;
}

/* sublista */
.sb-sub { margin-top: .4rem; padding: 0; list-style: none; }
.sb-sub[hidden] { display: none !important; }
.sb-sub li {
  padding: .45rem .6rem;
  background: #fff;
  border: 1px solid #000;
  border-radius: 6px;
  margin: .35rem 0;
}
.sb-sub li a { display:block; text-decoration:none !important; color:#111 !important; text-align:right; }

/* Asegura que el área del toggle sea táctil en móviles */
@media (max-width: 768px) {
  .cat-toggle { padding: .5rem; }
}

/* 1) Forzar texto del menú lateral a la izquierda */
.sb-panel .cat-link,
.sb-panel .sb-sub li a,
.sb-panel summary a,
.sb-panel .cat-head .cat-link,
.sb-panel .sb-sub a {
  text-align: left !important;
}

/* Asegurar que el enlace no colapse el toggle (mantener z-index) */
.sb-panel .cat-link { z-index: 1; }

/* Estilo definitivo para el botón de la home */

#home-product-menu {
  display: inline-block !important;
  width: 140px !important; 
  padding: 8px 10px !important;
  font-size: 16px !important;
  border-radius: 6px !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
  margin-left: 1em !important; 
}

.sb-menu-open{
  display: inline-block !important;
  z-index: 999999999 !important;
  visibility: visible !important;
}
.sb-panel{
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(360px, 86%);
  max-width: 360px;
  transform: translateX(-110%);
  transition: transform .28s ease, visibility 0s linear .28s;
  visibility: hidden;
  z-index: 99999999999 !important;
  box-sizing: border-box;
}

/* cuando el JS añade la clase .open se muestra */
.sb-panel.open{
  transform: translateX(0);
  visibility: visible;
  transition: transform .28s ease;
}
/* overlay mínimo (ocultar/mostrar con .open) */
.sb-overlay{
  position: fixed;
  inset: 0;                /* top/right/bottom/left: 0 */
  background: rgba(0,0,0,.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, visibility 0s linear .18s;
  z-index: 10990;
}
.sb-overlay.open{
  opacity: 1;
  visibility: visible;
}

/* evita scroll del body cuando el panel está abierto */
body.sb-open{ overflow: hidden; }

@media (min-width: 769px) {
  .sb-panel {
    top: 10rem !important; /* usa la altura del header que quieras */
    height: calc(100vh - 10rem) !important;
    z-index: 12000 !important; /* por si el header tiene z-index alto */
  }

  
}

/* SOLO móviles */
@media (max-width: 768px) {

    /* Página tienda (todos los productos) */
    body.post-type-archive-product {
        background-color: #f0f0f0;
    }

    /* Páginas de categorías de productos */
    body.tax-product_cat {
        background-color: #f0f0f0;
    }

}

@media (max-width: 768px) {
	.ct-container-full {
		background-color: #dddddd
	}
}

/* 1) Layout: columna izquierda ajustada al contenido, contenido principal flexible */
.blog-layout{
  display: grid !important;
  grid-template-columns: max-content 1fr; /* la primera columna toma el ancho del contenido */
  gap: 28px;
  align-items: start;
  justify-content: start;     /* asegurar alineación a la izquierda */
  margin: 30px 0 !important;
  padding: 20px;
  box-sizing: border-box;
}

/* 2) Forzar que el sidebar ocupe la primera columna y no se estire */
.blog-layout > .blog-sidebar{
  grid-column: 1 / 2 !important; /* siempre en la columna izquierda */
  width: auto !important;         /* NO forzar 100% ni un width fijo */
  max-width: none !important;
  min-width: 0 !important;
  justify-self: start !important; /* pegar a la izquierda de su celda */
  box-sizing: border-box;
}

/* 3) Asegurar que el contenido principal respete la columna y pueda colapsar */
.blog-layout > .blog-content{
  grid-column: 2 / 3 !important;
  min-width: 0;
  width: 100%;
}

/* 4) Evitar reglas del tema que fuerzan width:100% o grid-column:1/-1 en aside/div */
.blog-sidebar,
.entry-content .blog-sidebar,
.entry-content > .blog-layout .blog-sidebar{
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  grid-column: 1 / 2 !important;
}

/* 5) Sticky interno y estilo visual (opcional) */
.blog-sidebar-inner{ position: sticky; top: 20px; }

/* 6) Mobile: colapsa a 1 columna y sidebar pasa arriba (ocupa 100% en móvil) */
@media (max-width: 900px){
  .blog-layout{
    grid-template-columns: 1fr !important;
    padding: 12px;
  }
  .blog-layout > .blog-sidebar{
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-bottom: 12px;
  }
  .blog-sidebar-inner{ position: static; top: auto; }
}

.grid-4{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:24px;
  justify-items:center;
}

@media (max-width:1024px){
  .grid-4{
    grid-template-columns:repeat(2,1fr);
  }
}

@media (max-width:480px){
  .grid-4{
    grid-template-columns:1fr;
  }
}