.catalog-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.catalog-filter-label {
    display: grid;
    gap: 6px;
    color: rgba(255, 255, 255, 0.82);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.catalog-filter-select {
    min-width: min(320px, 82vw);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    color: #10243a;
    padding: 12px 42px 12px 14px;
    font: 700 0.9rem 'Space Grotesk', sans-serif;
    box-shadow: 0 12px 26px rgba(9, 34, 61, 0.2);
}

.listing-card.is-loading {
    min-height: 410px;
    background: linear-gradient(105deg, rgba(255,255,255,.72) 30%, rgba(228,236,245,.92) 45%, rgba(255,255,255,.72) 60%);
    background-size: 220% 100%;
    animation: mcc-skeleton 1.3s linear infinite;
}

@keyframes mcc-skeleton {
    to { background-position-x: -220%; }
}

.listing-thumb.has-image {
    background: #edf2f7;
    overflow: hidden;
}

.listing-thumb.has-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f7f9fc;
}

.listing-thumb.has-image-error::after {
    content: 'Vista previa no disponible';
    display: grid;
    min-height: 210px;
    place-items: center;
    color: #627386;
    font: 700 .8rem 'IBM Plex Mono', monospace;
}

.listing-card .listing-copy h3 {
    min-height: 2.35em;
    margin: 0;
    font-size: clamp(1.45rem, 2.1vw, 1.9rem);
    line-height: 1.08;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-transform: uppercase;
}

.catalog-load-more {
    display: block;
    margin: 28px auto 0;
    border: 1px solid rgba(22, 109, 191, 0.26);
    border-radius: 999px;
    background: #fff;
    color: #0f4f90;
    padding: 12px 22px;
    font: 700 .9rem 'Space Grotesk', sans-serif;
    box-shadow: 0 10px 24px rgba(18, 42, 66, 0.09);
    cursor: pointer;
}

.catalog-load-more[hidden] { display: none; }

.preset-author {
    margin: 14px 0 0;
    color: #31516e;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
}

.preset-author strong { color: #0f4f90; }

.card-actions button,
.card-actions a {
    border: 0;
    font: inherit;
    cursor: pointer;
}

.card-actions .preset-download {
    border-radius: 999px;
    background: #166dbf;
    color: #fff;
    padding: 12px 20px;
    font-weight: 700;
}

.card-actions .preset-details {
    background: transparent;
    color: #0f4f90;
    padding: 10px 0;
    font-weight: 700;
}

.publish-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.publish-step {
    min-height: 190px;
    padding: 24px;
    border: 1px solid rgba(22, 109, 191, 0.18);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 30px rgba(18, 42, 66, 0.07);
}

.publish-step-number {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    background: #166dbf;
    color: #fff;
    font-weight: 700;
}

.publish-step h3 { margin: 18px 0 8px; }
.publish-step p { margin: 0; color: #627386; line-height: 1.6; }

.platform-note {
    margin-top: 18px;
    padding: 18px 20px;
    border-left: 4px solid #166dbf;
    border-radius: 0 16px 16px 0;
    background: rgba(22, 109, 191, 0.08);
    color: #31516e;
}

.preset-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    place-items: center;
    padding: 20px;
    background: rgba(7, 18, 31, 0.68);
    backdrop-filter: blur(8px);
}

.preset-modal-overlay.is-open { display: grid; }

.preset-modal {
    width: min(620px, 100%);
    max-height: min(820px, 92vh);
    overflow: auto;
    border: 1px solid rgba(80, 168, 255, 0.36);
    border-radius: 28px;
    background: #fff;
    color: #10243a;
    box-shadow: 0 30px 90px rgba(0, 22, 48, 0.35);
}

.preset-modal-image {
    display: grid;
    min-height: 260px;
    place-items: center;
    background: #f0f4f8;
}

.preset-modal-image img {
    width: 100%;
    max-height: 390px;
    object-fit: contain;
}

.preset-modal-copy { padding: 26px; }
.preset-modal-copy h2 { margin: 8px 0 10px; font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.05; }
.preset-modal-copy p { color: #52677b; line-height: 1.65; }
.preset-modal-close { float: right; border: 0; background: #edf2f7; border-radius: 999px; width: 38px; height: 38px; cursor: pointer; }

.platform-toast {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 10020;
    width: min(430px, calc(100vw - 44px));
    padding: 18px 20px;
    border-radius: 18px;
    background: #10243a;
    color: #fff;
    box-shadow: 0 18px 50px rgba(0, 16, 36, 0.28);
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: .22s ease;
}

.platform-toast.is-visible { transform: none; opacity: 1; pointer-events: auto; }
.platform-toast.is-error { background: #7f1d1d; }
.platform-toast.is-success { background: #0f6a4d; }
.platform-toast a { color: #fff; text-decoration: underline; font-weight: 700; }

.footer-professional {
    align-items: center;
    gap: 24px;
}

.footer-professional small { max-width: 680px; line-height: 1.6; }

@media (max-width: 900px) {
    .publish-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .publish-steps { grid-template-columns: 1fr; }
    .catalog-filter-select { width: 100%; min-width: 0; }
}
