/* Catalogos de PrintDepot: [fia_catalogos]. Se carga solo en la pagina que usa el shortcode. Usa los tokens de studio.css. */
.st-cg.st-page { align-items: stretch; }
.st-cg > .st-lab, .st-cg > .st-btn { align-self: flex-start; }
.st-cg [hidden] { display: none !important; }
.st-cg-vacio { margin: 0; color: var(--st-calido); font-size: 17px; }

/* Buscador */
.st-cg-label { display: block; margin: 0 0 8px; font-weight: 600; color: var(--st-calido); }
.st-cg-campo { position: relative; display: flex; align-items: center; }
.st-cg-q { box-sizing: border-box; width: 100%; min-height: 54px; padding: 0 104px 0 20px; border: 1.5px solid var(--st-borde); border-radius: 999px; background: var(--st-grafito); color: var(--st-hueso); font-family: var(--st-texto); font-size: 16px; }
.st-cg-q::placeholder { color: var(--st-atenuado); }
.st-cg-q:focus { border-color: var(--st-naranja); outline: none; }
.st-cg-limpiar { position: absolute; right: 8px; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--st-linea); color: var(--st-hueso); font-family: var(--st-texto); font-size: 14px; font-weight: 600; cursor: pointer; }
.st-cg-limpiar:hover { color: var(--st-naranja); }

/* Filtros (marca y, si el JSON trae indice, seccion) */
.st-cg-filtros { display: grid; gap: 14px; }
.st-cg-fila { display: flex; align-items: center; gap: 12px; min-width: 0; }
.st-cg-fila-t { flex: none; font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--st-atenuado); }
.st-cg-pills { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.st-cg-pill { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 8px 0 18px; border: 1.5px solid var(--st-borde); border-radius: 999px; background: transparent; color: var(--st-hueso); font-family: var(--st-texto); font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: border-color 150ms, background 150ms, color 150ms; }
.st-cg-pill:hover { border-color: var(--st-naranja); }
.st-cg-pill-n { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px; background: var(--st-linea); color: var(--st-calido); font-size: 12px; font-weight: 700; }
.st-cg-pill[aria-pressed="true"] { background: var(--st-naranja); border-color: var(--st-naranja); color: var(--st-tinta); }
.st-cg-pill[aria-pressed="true"] .st-cg-pill-n { background: var(--st-tinta); color: var(--st-naranja); }
.st-cg-pill:disabled { opacity: 0.4; cursor: default; }

.st-cg-solo { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--st-naranja); border-radius: 14px; }
.st-cg-solo-t { flex: 1 1 200px; font-weight: 600; }
.st-cg-solo .st-btn { min-height: 44px; padding: 0 18px; font-size: 14px; }
.st-cg-estado { margin: 0; min-height: 1.4em; color: var(--st-atenuado); font-size: 15px; }

/* Tarjetas */
.st-cg-lista { display: grid; grid-template-columns: 1fr; gap: 20px; }
.st-cg-simple { margin: 0; padding-left: 20px; color: var(--st-calido); line-height: 1.8; }
.st-cg-simple a { color: var(--st-naranja); text-decoration: underline; }
.st-cg-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--st-linea); border-radius: 18px; background: var(--st-grafito); }
.st-cg-portada { position: relative; aspect-ratio: 4 / 3; background: var(--st-linea); overflow: hidden; border-radius: 17px 17px 0 0; }
.st-cg-portada img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.st-cg-portada-t { display: none; }
.st-cg-portada-texto { display: flex; align-items: flex-end; padding: 20px; background: linear-gradient(135deg, var(--st-naranja), #c2410c); }
.st-cg-portada-texto .st-cg-portada-t { display: block; font-family: var(--st-display); font-weight: 900; font-size: 28px; line-height: 0.95; letter-spacing: -0.03em; text-transform: uppercase; color: var(--st-tinta); }
.st-cg-card-cuerpo { display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; padding: 20px; }
.st-cg-titulo { margin: 0; font-family: var(--st-display); font-weight: 700; font-size: 22px; line-height: 1.1; letter-spacing: -0.02em; color: var(--st-hueso); }
.st-cg-meta { margin: 0; color: var(--st-calido); font-size: 15px; }
.st-cg-acciones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.st-cg-acciones .st-btn { min-height: 46px; padding: 0 18px; font-size: 14px; }

/* Enviar: popover en escritorio, hoja inferior en celular */
.st-cg-env { position: relative; display: flex; }
.st-cg-env-b { flex: 1 1 auto; cursor: pointer; background: transparent; font-family: var(--st-texto); }
.st-cg-env-b:hover, .st-cg-env-b[aria-expanded="true"] { border-color: var(--st-naranja); }
.st-cg-env-panel { position: absolute; top: calc(100% + 6px); left: 0; z-index: 50; display: flex; flex-direction: column; gap: 2px; min-width: 230px; padding: 6px; border: 1px solid var(--st-borde); border-radius: 14px; background: var(--st-fondo); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55); }
.st-cg-env-t { display: none; margin: 0; padding: 6px 12px 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--st-atenuado); }
.st-cg-env-op { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; color: var(--st-hueso); font-family: var(--st-texto); font-size: 15px; font-weight: 600; text-align: left; text-decoration: none; cursor: pointer; }
.st-cg-env-op:hover, .st-cg-env-op:focus { background: var(--st-linea); color: var(--st-naranja); outline: none; }
.st-cg-env-op:focus-visible { box-shadow: inset 0 0 0 2px var(--st-naranja); }
.st-cg-env-aviso { position: absolute; bottom: calc(100% + 6px); left: 0; z-index: 51; width: max-content; max-width: min(320px, 80vw); padding: 6px 12px; border-radius: 999px; background: var(--st-naranja); color: var(--st-tinta); font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.st-cg-env-aviso:empty { display: none; }

/* Paginas encontradas (solo con indice) */
.st-cg-paginas { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; padding-top: 12px; border-top: 1px solid var(--st-linea); }
.st-cg-paginas-t { padding-top: 9px; font-size: 13px; font-weight: 600; color: var(--st-atenuado); }
.st-cg-paginas-lista { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 200px; min-width: 0; }
.st-cg-pag { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid var(--st-borde); border-radius: 999px; color: var(--st-hueso); font-size: 14px; }
.st-cg-pag:hover { border-color: var(--st-naranja); color: var(--st-naranja); }
.st-cg-pag-linea { color: var(--st-atenuado); font-size: 13px; }
.st-cg-mas { min-height: 36px; padding: 0 12px; border: 0; background: transparent; color: var(--st-naranja); font-family: var(--st-texto); font-size: 14px; font-weight: 600; text-decoration: underline; cursor: pointer; }
.st-cg-nada { display: grid; gap: 14px; justify-items: center; padding: 32px 18px; border: 1px dashed var(--st-borde); border-radius: 18px; text-align: center; color: var(--st-calido); }
.st-cg-nada p { margin: 0; }

@media (min-width: 640px) { .st-cg-lista { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .st-cg-lista { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) {
    .st-cg-fila { flex-direction: column; align-items: stretch; gap: 6px; }
    .st-cg-acciones .st-btn { flex: 1 1 100%; }
    .st-cg-env { flex: 1 1 100%; }
    .st-cg-env-panel { position: fixed; top: auto; right: 0; bottom: 0; left: 0; z-index: 100001; min-width: 0; padding: 10px 12px calc(14px + env(safe-area-inset-bottom, 0px)); border-width: 1px 0 0; border-radius: 18px 18px 0 0; box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.6); }
    .st-cg-env-t { display: block; }
    .st-cg-env-op { min-height: 52px; font-size: 16px; }
    .st-cg-titulo { font-size: 20px; }
}

/* Visor integrado (escritorio) */
.st-cg-bloqueo, .st-cg-bloqueo body { overflow: hidden; }
.st-cg-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 3vh 3vw; background: rgba(14, 15, 18, 0.85); }
.st-cg-modal[hidden] { display: none; }
.st-cg-modal-caja { display: flex; flex-direction: column; width: min(1100px, 100%); height: 100%; overflow: hidden; border: 1px solid var(--st-linea); border-radius: 18px; background: var(--st-grafito); }
.st-cg-modal-barra { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 14px; background: var(--st-fondo); color: var(--st-hueso); }
.st-cg-modal-titulo { flex: 1 1 240px; min-width: 0; margin: 0; font-family: var(--st-display); font-weight: 700; font-size: 16px; line-height: 1.1; text-transform: uppercase; }
.st-cg-modal-nav { display: flex; align-items: center; gap: 8px; }
.st-cg-modal-pos { min-width: 110px; text-align: center; font-size: 14px; color: var(--st-calido); }
.st-cg-modal-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; padding: 0 14px; border: 1.5px solid var(--st-borde); border-radius: 999px; background: transparent; color: var(--st-hueso); font-family: var(--st-texto); font-size: 14px; font-weight: 600; cursor: pointer; }
.st-cg-modal-btn:hover { border-color: var(--st-naranja); color: var(--st-hueso); }
.st-cg-modal-btn:disabled { opacity: 0.4; cursor: default; }
.st-cg-modal-btn[hidden] { display: none; }
.st-cg-modal-cerrar { background: var(--st-naranja); border-color: var(--st-naranja); color: var(--st-tinta); }
.st-cg-modal-cerrar:hover { color: var(--st-tinta); }
.st-cg-modal-cuerpo { flex: 1 1 auto; min-height: 0; background: var(--st-linea); }
.st-cg-modal-marco { display: block; width: 100%; height: 100%; border: 0; }
