:root {
    --catalog-bg: #f6f7f9;
    --catalog-surface: #fff;
    --catalog-ink: #111318;
    --catalog-muted: #737b88;
    --catalog-line: #e0e4e9;
}

body.catalog-download-page {
    min-width: 0;
    margin: 0;
    padding-top: 60px;
    background: var(--catalog-bg);
    color: var(--catalog-ink);
    font-family: "Montserrat", Arial, sans-serif;
}

.catalog-download-page *, .catalog-download-page *::before, .catalog-download-page *::after { box-sizing: border-box; }

body.catalog-download-page .cab1 .content,
body.catalog-download-page .cab2 .content {
    width: min(1180px, calc(100% - 32px)) !important;
    max-width: 100%;
}

.catalog-page {
    position: relative;
    width: min(1180px, calc(100% - 48px)) !important;
    min-height: 540px;
    margin: 38px auto 70px !important;
}

.catalog-hero {
    position: relative;
    display: flex;
    align-items: center;
    gap: 25px;
    min-height: 220px;
    margin-bottom: 24px;
    padding: 42px 46px;
    overflow: hidden;
    border: 1px solid #252b34;
    border-radius: 28px;
    background: radial-gradient(circle at 88% 15%, rgba(255,255,255,.11), transparent 28%), linear-gradient(135deg, #111419, #242b35);
    box-shadow: 0 24px 60px rgba(17,20,25,.16);
    color: #fff;
}

.catalog-hero::after {
    content: "";
    position: absolute;
    right: -85px;
    bottom: -120px;
    width: 310px;
    height: 310px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 50%;
    box-shadow: 0 0 0 42px rgba(255,255,255,.025), 0 0 0 90px rgba(255,255,255,.018);
    pointer-events: none;
}

.catalog-hero__icon {
    position: relative;
    z-index: 1;
    display: grid;
    flex: 0 0 76px;
    width: 76px;
    height: 76px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 22px;
    background: rgba(255,255,255,.09);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
    font-size: 29px;
    backdrop-filter: blur(12px);
}

.catalog-hero__copy { position: relative; z-index: 1; max-width: 720px; }
.catalog-eyebrow { display: block; margin-bottom: 9px; color: #e0ba78; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.catalog-hero h1 { margin: 0; color: #fff; font-size: clamp(31px, 4.4vw, 52px); font-weight: 750; line-height: 1.05; letter-spacing: -.05em; }
.catalog-hero p { max-width: 690px; margin: 14px 0 0; color: #c9cfd7; font-size: 14px; line-height: 1.7; }

.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.catalog-card {
    --card-color: #516176;
    --card-soft: #eef1f5;
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 300px;
    padding: 23px;
    overflow: hidden;
    border: 1px solid var(--catalog-line);
    border-radius: 22px;
    background: var(--catalog-surface);
    box-shadow: 0 10px 30px rgba(20,25,34,.055);
    color: var(--catalog-ink);
    text-decoration: none !important;
    transition: border-color .22s ease, box-shadow .28s ease, transform .28s cubic-bezier(.22,1,.36,1);
}

.catalog-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--card-color); }
.catalog-card--txt { --card-color: #526b8c; --card-soft: #edf2f8; }
.catalog-card--xls { --card-color: #21875a; --card-soft: #eaf6ef; }
.catalog-card--pdf { --card-color: #d6474f; --card-soft: #fff0f1; }

.catalog-card:hover, .catalog-card:focus-visible {
    border-color: #cbd2da;
    box-shadow: 0 23px 50px rgba(20,25,34,.13);
    color: var(--catalog-ink);
    outline: none;
    transform: translateY(-6px);
}

.catalog-card__icon { display: grid; width: 54px; height: 54px; margin-bottom: 27px; place-items: center; border-radius: 16px; background: var(--card-soft); color: var(--card-color); font-size: 22px; }
.catalog-card__content { display: flex; flex-direction: column; }
.catalog-card__meta { margin-bottom: 8px; color: var(--card-color); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.catalog-card__content strong { color: var(--catalog-ink); font-size: 19px; font-weight: 750; line-height: 1.2; letter-spacing: -.025em; }
.catalog-card__description { margin-top: 10px; color: var(--catalog-muted); font-size: 12px; line-height: 1.65; }

.catalog-card__action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 43px;
    margin-top: auto;
    padding: 6px 7px 6px 13px;
    border: 1px solid #e2e5e9;
    border-radius: 13px;
    background: #f6f7f9;
    color: #273142;
    font-size: 10px;
    font-weight: 750;
}

.catalog-card__action i { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 9px; background: #171a20; color: #fff; font-size: 10px; transition: transform .2s ease, background .2s ease; }
.catalog-card:hover .catalog-card__action i, .catalog-card:focus-visible .catalog-card__action i { background: var(--card-color); transform: translate(2px,-2px); }

.catalog-help { display: flex; align-items: flex-start; gap: 13px; margin-top: 20px; padding: 18px 20px; border: 1px solid var(--catalog-line); border-radius: 16px; background: rgba(255,255,255,.7); color: var(--catalog-muted); }
.catalog-help > i { margin-top: 2px; color: #606b7a; font-size: 18px; }
.catalog-help div { display: flex; flex-direction: column; gap: 4px; }
.catalog-help strong { color: var(--catalog-ink); font-size: 12px; }
.catalog-help span { font-size: 11px; line-height: 1.55; }

html[data-theme="dark"] body.catalog-download-page { --catalog-bg: #101318; --catalog-surface: #191d23; --catalog-ink: #f2f4f7; --catalog-muted: #9da5b1; --catalog-line: #303741; }
html[data-theme="dark"] .catalog-card__action, html[data-theme="dark"] .catalog-help { border-color: #343b45; background: #22272f; }
html[data-theme="dark"] .catalog-card__action { color: #edf1f5; }
html[data-theme="dark"] .catalog-card__action i { background: #f1f3f6; color: #171a20; }

@media (max-width: 900px) {
    .catalog-page { width: min(100% - 32px, 720px) !important; margin-top: 25px !important; }
    .catalog-hero { min-height: 0; padding: 34px; border-radius: 23px; }
    .catalog-grid { grid-template-columns: 1fr; }
    .catalog-card { display: grid; grid-template-columns: 60px minmax(0,1fr); min-height: 0; padding: 20px; }
    .catalog-card__icon { grid-row: 1 / span 2; margin: 0; }
    .catalog-card__content { padding-left: 13px; }
    .catalog-card__action { grid-column: 1 / -1; margin-top: 18px; }
}

@media (max-width: 600px) {
    body.catalog-download-page { padding-top: 0; }
    body.catalog-download-page .cab1 .content,
    body.catalog-download-page .cab2 .content { width: calc(100% - 20px) !important; }
    body.catalog-download-page .cab1 .right { max-width: calc(100% - 150px); padding-inline: 4px !important; }
    .catalog-page { width: calc(100% - 20px) !important; margin: 14px auto 42px !important; }
    .catalog-hero { display: block; margin-bottom: 13px; padding: 25px 22px 28px; border-radius: 20px; }
    .catalog-hero__icon { width: 52px; height: 52px; margin-bottom: 24px; border-radius: 15px; font-size: 20px; }
    .catalog-hero h1 { font-size: 31px; }
    .catalog-hero p { font-size: 12px; line-height: 1.65; }
    .catalog-grid { gap: 11px; }
    .catalog-card { grid-template-columns: 48px minmax(0,1fr); padding: 17px; border-radius: 17px; }
    .catalog-card__icon { width: 46px; height: 46px; border-radius: 13px; font-size: 18px; }
    .catalog-card__content strong { font-size: 16px; }
    .catalog-card__description { font-size: 11px; }
    .catalog-help { margin-top: 13px; padding: 15px; }
}

@media (prefers-reduced-motion: reduce) { .catalog-card, .catalog-card__action i { transition: none; } }

/* Modulo destacado del catalogo privado en el home. */
.catalog-home-module {
    position: relative;
    isolation: isolate;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    width: 100%;
    margin: 22px 0 30px;
    padding: 25px 28px;
    overflow: hidden;
    border: 1px solid #dde2e9;
    border-radius: 24px;
    background: linear-gradient(120deg, #fff 0%, #f5f7fa 58%, #edf1f6 100%);
    box-shadow: 0 18px 48px rgba(20, 25, 34, .1);
    color: #171a20 !important;
    font-family: "Montserrat", Arial, sans-serif;
    text-decoration: none !important;
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.catalog-home-module:before {
    content: "";
    position: absolute;
    z-index: -1;
    right: -85px;
    top: -120px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 102, 49, .14), rgba(139, 102, 49, 0) 68%);
}

.catalog-home-module:hover {
    border-color: #c7ced8;
    box-shadow: 0 24px 60px rgba(20, 25, 34, .15);
    transform: translateY(-3px);
}

.catalog-home-module__visual {
    position: relative;
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    border-radius: 21px;
    background: #171a20;
    color: #fff;
    box-shadow: 0 14px 30px rgba(20, 25, 34, .2);
    font-size: 25px;
}

.catalog-home-module__visual > span {
    position: absolute;
    right: -7px;
    bottom: -7px;
    display: grid;
    width: 29px;
    height: 29px;
    place-items: center;
    border: 4px solid #f6f7f9;
    border-radius: 50%;
    background: #b8883f;
    color: #fff;
    font-size: 10px;
}

.catalog-home-module__copy { display: flex; min-width: 0; flex-direction: column; gap: 5px; }
.catalog-home-module__copy > small { color: #8b6631; font-size: 9px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.catalog-home-module__copy > small i { margin-right: 5px; }
.catalog-home-module__copy > strong { color: #171a20; font-size: clamp(19px, 2vw, 27px); font-weight: 800; line-height: 1.15; }
.catalog-home-module__copy > span:not(.catalog-home-module__formats) { max-width: 650px; color: #6f7783; font-size: 12px; line-height: 1.55; }
.catalog-home-module__formats { display: flex; gap: 6px; margin-top: 4px; }
.catalog-home-module__formats b { padding: 4px 8px; border: 1px solid #dfe3e9; border-radius: 999px; background: rgba(255,255,255,.7); color: #5e6672; font-size: 8px; font-weight: 800; letter-spacing: .05em; }
.catalog-home-module__action { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 13px; background: #171a20; color: #fff; font-size: 11px; font-weight: 750; white-space: nowrap; }
.catalog-home-module__action i { transition: transform .2s ease; }
.catalog-home-module:hover .catalog-home-module__action i { transform: translateX(3px); }

html[data-theme="dark"] .catalog-home-module { border-color: #303741; background: linear-gradient(120deg, #1d2229, #15191f); color: #f2f4f7 !important; }
html[data-theme="dark"] .catalog-home-module__copy > strong { color: #f2f4f7; }
html[data-theme="dark"] .catalog-home-module__copy > span:not(.catalog-home-module__formats) { color: #aab1bc; }
html[data-theme="dark"] .catalog-home-module__formats b { border-color: #363d47; background: #252b34; color: #c7ccd4; }
html[data-theme="dark"] .catalog-home-module__visual > span { border-color: #171b21; }

@media (max-width: 720px) {
    .catalog-home-module { grid-template-columns: auto minmax(0, 1fr); gap: 17px; margin: 16px 0 23px; padding: 20px; border-radius: 20px; }
    .catalog-home-module__visual { width: 58px; height: 58px; border-radius: 17px; font-size: 20px; }
    .catalog-home-module__visual > span { width: 25px; height: 25px; border-width: 3px; }
    .catalog-home-module__copy > strong { font-size: 18px; }
    .catalog-home-module__copy > span:not(.catalog-home-module__formats) { font-size: 10px; }
    .catalog-home-module__action { grid-column: 1 / -1; justify-content: center; width: 100%; box-sizing: border-box; }
}

@media (max-width: 430px) {
    .catalog-home-module { align-items: start; gap: 14px; padding: 17px; }
    .catalog-home-module__visual { width: 50px; height: 50px; border-radius: 15px; font-size: 18px; }
    .catalog-home-module__copy > strong { font-size: 16px; }
    .catalog-home-module__copy > span:not(.catalog-home-module__formats) { display: none; }
}
