.catalogo-productos {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin: 32px auto 24px auto;
  padding: 0 0 18px 0;
  max-width: 980px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.titulo-catalogo {
  background: #e0e0e0;
  color: #222;
  font-weight: bold;
  border-radius: 6px 6px 0 0;
  padding: 10px 20px;
  font-size: 1.1em;
  text-align: left;
}

.img-catalogo-centro {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 0 8px 0;
}
.img-catalogo-centro img {
  max-width: 200px;
  max-height: 110px;
  border-radius: 4px;
  border: 1px solid #ddd;
  background: #f9f9f9;
}

.tabla-catalogo {
  margin: 0 auto;
  border-collapse: separate;
  border-spacing: 0;
  width: 97%;
  background: #fff;
  font-size: 1em;
  border-radius: 0 0 6px 6px;
}

.tabla-catalogo th, .tabla-catalogo td {
  text-align: center;
  padding: 10px 12px;
  border-bottom: 1px solid #e4e4e4;
}

.tabla-catalogo th {
  background: #f5f5f5;
  font-size: 1em;
  font-weight: bold;
  border-bottom: 2px solid #ccc;
}

.tabla-catalogo tr:last-child td {
  border-bottom: none;
}

.tabla-catalogo th.col-espesor, .tabla-catalogo td.col-espesor {
  background: #f0f0f0;
  font-weight: bold;
  color: #222;
  min-width: 70px;
  border-right: 1px solid #ccc;
}

/* Columnas por marca: todas neutras */
.tabla-catalogo th[class^="col-"], .tabla-catalogo td[class^="col-"] {
  border-left: 1px solid #ccc;
  border-right: 1px solid #ccc;
  background: #fafafa;
  color: #444;
}

/* Vínculos de código */
.tabla-catalogo .codigo-link {
  color: #3366bb;
  font-weight: bold;
  text-decoration: underline;
}

@media (max-width: 700px) {
  .catalogo-productos { max-width: 98vw; }
  .tabla-catalogo { font-size: 0.94em; }
  .img-catalogo-centro img { max-width: 90vw; }
}

/* Tarjetas */
.lista-tarjetas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-start;
  padding: 18px;
}

.tarjeta-catalogo {
  flex: 0 1 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fdfdfd;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
  padding: 14px 8px 10px 8px;
  min-height: 255px;
  box-sizing: border-box;
  transition: box-shadow 0.17s;
}
.tarjeta-catalogo:hover {
  box-shadow: 0 0 6px 1px rgba(0, 0, 0, 0.06);
}
.tarjeta-catalogo a {
  font-weight: bold;
  color: #2a5aa0;
  text-decoration: underline;
  font-size: 0.95em; /* antes: 1.02em */
  margin-bottom: 6px;
  margin-top: 2px;
}
.tarjeta-catalogo img {
  width: 100px;  /* antes: 70px */
  height: 140px; /* antes: 100px */
  object-fit: contain;
  margin-bottom: 6px;
}
.tarjeta-catalogo .descripcion {
  font-size: 0.96em;
  color: #333;
  margin-bottom: 3px;
  text-align: center;
}
.tarjeta-catalogo .precio {
  font-weight: bold;
  color: #222;
  font-size: 0.95em; /* antes: 1.05em */
  margin-top: 5px;
}
.tarjeta-catalogo .unidad {
  font-size: 0.85em; /* antes: 0.93em */
  color: #666;
  margin-bottom: 0;
}
.articulo-publicado {
  background: white;
  padding: 30px;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contenido-articulo p {
  line-height: 1.6;
  margin-bottom: 1em;
}



/* =========================
   Catálogo tipo Explorer
   ========================= */

.catalogo-shell{
  display:flex;
  gap:14px;
  align-items:stretch;
  min-height: calc(100vh - 180px); /* ajustá según tu header/footer */
}

/* Panel izquierdo */
.catalogo-left{
  width: 320px;
  min-width: 260px;
  max-width: 420px;
  background:#fff;
  border:1px solid #d7dbe6;
  border-radius:12px;
  overflow:hidden;
}

.catalogo-left__top{
  padding:12px;
  border-bottom:1px solid #e7eaf2;
  background: linear-gradient(#f7f8fb, #ffffff);
}

.catalogo-title{
  font-size:14px;
  font-weight:700;
  margin-bottom:8px;
  color:#1f2a44;
}

.catalogo-search{
  width:100%;
  box-sizing:border-box;
  padding:10px 10px;
  border:1px solid #d7dbe6;
  border-radius:10px;
  outline:none;
  font-size:14px;
  background:#fff;
}

/* Panel derecho */
.catalogo-right{
  flex:1;
  background:#fff;
  border:1px solid #d7dbe6;
  border-radius:12px;
  overflow:hidden;
  min-width: 0;
}

.catalogo-right__bar{
  padding:10px 12px;
  border-bottom:1px solid #e7eaf2;
  background: linear-gradient(#f7f8fb, #ffffff);
}

.catalogo-right__crumb{
  font-size:13px;
  color:#42506d;
}

.catalogo-view{
  padding:14px;
}

/* =========================
   TreeView (look Explorer)
   ========================= */

.tree{ padding:8px 6px 10px 6px; }
.tree-root, .tree-children{ list-style:none; margin:0; padding-left:0; }

.tree-node{ position:relative; }
.tree-node.is-hidden{ display:none; }

.tree-row{
  width:100%;
  display:flex;
  align-items:center;
  gap:8px;
  padding:6px 8px;
  border:0;
  background:transparent;
  text-align:left;
  cursor:pointer;
  border-radius:8px;
  font-size:13px;
  color:#1f2a44;
}

/* Selección azul tipo Windows */
.tree-row.is-active{
  background:#2b66d9;
  color:#fff;
}
.tree-row.is-active .tree-label{ color:#fff; }

/* Hover suave */
.tree-row:hover{
  background:#eef3ff;
}

/* Twisty (triangulito) */
.tree-twisty{
  width:14px;
  height:14px;
  display:inline-block;
  position:relative;
  flex:0 0 14px;
}
.tree-twisty::before{
  content:"";
  position:absolute;
  top:50%;
  left:4px;
  transform:translateY(-50%) rotate(0deg);
  width:0;
  height:0;
  border-style:solid;
  border-width:5px 0 5px 7px;
  border-color:transparent transparent transparent #3a4663;
}

/* Cuando está abierto, gira */
.tree-node.is-open > .tree-row .tree-twisty::before{
  transform:translateY(-50%) rotate(90deg);
}

/* Spacer para hojas */
.tree-spacer{
  width:14px;
  height:14px;
  display:inline-block;
  flex:0 0 14px;
}

/* Iconos (folder/file) en CSS para que sea consistente */
.tree-icon{
  width:16px;
  height:16px;
  display:inline-block;
  flex:0 0 16px;
  background-size:16px 16px;
  background-repeat:no-repeat;
  background-position:center;
}

/* Folder SVG inline (data URI) */
.tree-node.is-folder > .tree-row .tree-icon{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23f0c14b' d='M1.5 4.5A1.5 1.5 0 0 1 3 3h3l1 1h6A1.5 1.5 0 0 1 14.5 5.5v6A1.5 1.5 0 0 1 13 13H3A1.5 1.5 0 0 1 1.5 11.5v-7z'/%3E%3Cpath fill='%23e2aa3a' d='M1.5 6h13v1H1.5z'/%3E%3C/svg%3E");
}

/* File icon */
.tree-icon.file{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23cfd6e6' d='M3 1.5h6l4 4V14a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V2.5a1 1 0 0 1 1-1z'/%3E%3Cpath fill='%23aeb7cc' d='M9 1.5V6h4z'/%3E%3C/svg%3E");
}

/* children: oculto por default */
.tree-children{
  display:none;
  margin-left:18px;
  padding-left:12px;
  position:relative;
}

/* líneas guía del árbol (estilo viejo) */
.tree-children::before{
  content:"";
  position:absolute;
  left:4px;
  top:0;
  bottom:8px;
  width:1px;
  background:#cfd6e6;
}

.tree-children .tree-node::before{
  content:"";
  position:absolute;
  left:4px;
  top:16px;
  width:12px;
  height:1px;
  background:#cfd6e6;
}

/* mostrar hijos cuando está abierto */
.tree-node.is-open > .tree-children{ display:block; }

/* =========================
   Paneles (derecha)
   ========================= */
.cat-panel{ display:none; }
.cat-panel.is-active{ display:block; }

/* Responsive */
@media (max-width: 980px){
  .catalogo-shell{ flex-direction:column; }
  .catalogo-left{ width:100%; max-width:none; }
}
