
/* =========================================================
   CATÁLOGO TEC4 — VARIABLES Y BASE
   ========================================================= */

.catalog-page {
    --catalog-red: #e30613;
    --catalog-black: #080909;
    --catalog-muted: #686b6d;
    --catalog-border: #e3e4e2;
    background: #fff;
}

.catalog-page a {
    text-decoration: none;
}

.catalog-page button,
.catalog-page input {
    font: inherit;
}

.catalog-page button {
    cursor: pointer;
}

.catalog-page [hidden] {
    display: none !important;
}


/* =========================================================
   HERO DEL CATÁLOGO
   ========================================================= */

.catalog-hero {
    background: var(--catalog-black);
    color: #fff;
    overflow: hidden;
}

.catalog-hero-grid {
    min-height: 440px;
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    align-items: center;
    gap: 60px;
    padding-top: 55px;
    padding-bottom: 55px;
}

.catalog-hero-content {
    max-width: 610px;
    padding-bottom: 10px;
}

.catalog-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #ddd;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.catalog-eyebrow-line {
    display: inline-block;
    width: 30px;
    height: 2px;
    background: var(--catalog-red);
}

.catalog-hero h1 {
    max-width: 620px;
    margin: 25px 0 20px;
    font-size: clamp(43px, 5.3vw, 70px);
    line-height: 1.04;
    letter-spacing: -2.8px;
    font-weight: 800;
}

.catalog-hero h1 span {
    display: block;
    color: var(--catalog-red);
}

.catalog-hero-text {
    max-width: 480px;
    margin: 0;
    color: #b8babb;
    font-size: 15px;
    line-height: 1.85;
}

.catalog-hero-button {
    display: inline-flex;
    align-items: center;
    gap: 30px;
    margin-top: 30px;
    padding: 15px 19px;
    background: var(--catalog-red);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    transition: background .2s ease, gap .2s ease;
}

.catalog-hero-button:hover {
    background: #bd0610;
    gap: 38px;
}

.catalog-hero-button span {
    font-size: 18px;
    line-height: 1;
}


/* Imagen destacada */

.catalog-hero-visual {
    position: relative;
    min-height: 320px;
    height: 100%;
    max-height: 365px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(
            ellipse at center,
            #252728 0%,
            #111313 55%,
            #080909 100%
        );
    border: 1px solid #292b2c;
}

.catalog-hero-visual::before,
.catalog-hero-visual::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.catalog-hero-visual::before {
    inset: 16px;
    border: 1px solid #ffffff0d;
}

.catalog-hero-visual::after {
    width: 65%;
    height: 1px;
    left: 17.5%;
    bottom: 23%;
    background: #ffffff12;
}

.catalog-hero-visual img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    max-height: 365px;
    object-fit: contain;
    padding: 25px;
}

.catalog-visual-caption {
    position: absolute;
    z-index: 2;
    left: 20px;
    bottom: 18px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #c9caca;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.4px;
}

.catalog-caption-dot {
    width: 7px;
    height: 7px;
    background: var(--catalog-red);
    border-radius: 50%;
}

.catalog-hero-index {
    position: absolute;
    z-index: 2;
    top: 20px;
    right: 20px;
    color: #8e9192;
    font-size: 9px;
    letter-spacing: 1.2px;
}

.catalog-hero-bottom {
    border-top: 1px solid #ffffff1a;
}

.catalog-hero-bottom-inner {
    min-height: 53px;
    display: flex;
    align-items: center;
    gap: 17px;
    color: #aaa;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.catalog-bottom-separator {
    width: 4px;
    height: 4px;
    background: var(--catalog-red);
    transform: rotate(45deg);
}


/* =========================================================
   CABECERA DEL CATÁLOGO
   ========================================================= */

.catalog-section {
    padding: 85px 0 95px;
    scroll-margin-top: 100px;
}

.catalog-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 35px;
}

.catalog-section-kicker {
    color: var(--catalog-red);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.catalog-heading h2 {
    margin: 10px 0 10px;
    color: var(--catalog-black);
    font-size: clamp(30px, 3.6vw, 43px);
    line-height: 1.15;
    letter-spacing: -1.2px;
}

.catalog-heading p {
    max-width: 600px;
    margin: 0;
    color: var(--catalog-muted);
    font-size: 14px;
    line-height: 1.8;
}

.catalog-heading-mark {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    flex-shrink: 0;
    padding-bottom: 5px;
}

.catalog-heading-mark span:first-child {
    color: var(--catalog-red);
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -1px;
}

.catalog-heading-mark span:last-child {
    color: var(--catalog-black);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2px;
}


/* =========================================================
   BUSCADOR
   ========================================================= */

.catalog-search {
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 17px;
    padding: 0 20px;
    border: 1px solid #d7d8d6;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.catalog-search:focus-within {
    border-color: var(--catalog-red);
    box-shadow: 0 0 0 3px #e306130d;
}

.catalog-search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--catalog-red);
    font-size: 17px;
}

.catalog-search input {
    width: 100%;
    min-width: 0;
    height: 60px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--catalog-black);
    font-size: 14px;
}

.catalog-search input::placeholder {
    color: #999c9c;
}

.catalog-search-shortcut {
    flex-shrink: 0;
    color: #999c9c;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
}


/* =========================================================
   FILTROS DE CATEGORÍA
   ========================================================= */

.catalog-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 34px;
    margin-bottom: 14px;
}

.catalog-filter-header > span {
    color: #4f5253;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.3px;
}

.catalog-clear-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    border: 0;
    background: transparent;
    color: #777a7a;
    font-size: 11px;
    transition: color .2s ease;
}

.catalog-clear-filter:hover {
    color: var(--catalog-red);
}

.catalog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 35px;
}

.catalog-filters button {
    min-height: 39px;
    padding: 9px 14px;
    border: 1px solid #dedfdd;
    background: #fff;
    color: #414445;
    font-size: 11px;
    font-weight: 700;
    transition:
        color .2s ease,
        border-color .2s ease,
        background .2s ease;
}

.catalog-filters button:hover {
    border-color: var(--catalog-red);
    color: var(--catalog-red);
}

.catalog-filters button.active {
    border-color: var(--catalog-red);
    background: var(--catalog-red);
    color: #fff;
}


/* =========================================================
   CONTADOR DE RESULTADOS
   ========================================================= */

.catalog-results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 17px 0;
    margin-bottom: 10px;
    border-top: 1px solid var(--catalog-border);
    border-bottom: 1px solid var(--catalog-border);
}

.catalog-results-bar p {
    margin: 0;
    color: #56595a;
    font-size: 12px;
}

.catalog-results-bar p strong {
    color: var(--catalog-black);
}

.catalog-results-label {
    color: #9a9d9d;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
}


/* =========================================================
   TARJETAS DE PRODUCTO
   ========================================================= */

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

.catalog-product {
    min-width: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e6e4;
    background: #fff;
    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}

.catalog-product:hover {
    transform: translateY(-4px);
    border-color: #c9caca;
    box-shadow: 0 15px 35px #0000000b;
}

.catalog-product-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 0.91;
    padding: 20px;
    overflow: hidden;
    background: #f5f5f3;
    border-bottom: 1px solid #ebebea;
}

.catalog-product-image::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--catalog-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}

.catalog-product:hover .catalog-product-image::after {
    transform: scaleX(1);
}

.catalog-product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform .3s ease;
}

.catalog-product:hover .catalog-product-image img {
    transform: scale(1.045);
}

.catalog-product-number {
    position: absolute;
    top: 13px;
    left: 14px;
    z-index: 1;
    color: #969999;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
}

.catalog-product-category {
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 12px;
    padding: 5px 8px;
    background: #f8e9e9;
    color: #b50812;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .45px;
    text-transform: uppercase;
}

.catalog-product-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 19px 17px 17px;
}

.catalog-product h3 {
    margin: 0 0 10px;
    color: var(--catalog-black);
    font-size: 16px;
    line-height: 1.4;
    font-weight: 800;
}

.catalog-product-description {
    flex: 1;
    margin: 0 0 20px;
    color: #727575;
    font-size: 12px;
    line-height: 1.75;
}

.catalog-product-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    padding-top: 13px;
    border-top: 1px solid #e8e8e6;
    color: var(--catalog-black);
    font-size: 11px;
    font-weight: 800;
    transition: color .2s ease;
}

.catalog-product-link span {
    color: var(--catalog-red);
    font-size: 17px;
    transition: transform .2s ease;
}

.catalog-product-link:hover {
    color: var(--catalog-red);
}

.catalog-product-link:hover span {
    transform: translateX(4px);
}


/* =========================================================
   SIN RESULTADOS
   ========================================================= */

.catalog-empty {
    padding: 70px 20px;
    text-align: center;
    border: 1px dashed #d5d6d4;
    background: #fafaf9;
}

.catalog-empty-icon {
    display: inline-flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    background: #f8e9e9;
    color: var(--catalog-red);
    font-size: 20px;
}

.catalog-empty h3 {
    margin: 0 0 8px;
    color: var(--catalog-black);
    font-size: 21px;
}

.catalog-empty p {
    margin: 0 0 20px;
    color: var(--catalog-muted);
    font-size: 13px;
}

.catalog-empty button {
    padding: 12px 17px;
    border: 0;
    background: var(--catalog-red);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.catalog-empty button:hover {
    background: #bd0610;
}


/* =========================================================
   BANDA DE ASESORAMIENTO
   ========================================================= */

.catalog-contact-strip {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: 65px;
    padding: 30px;
    border-left: 3px solid var(--catalog-red);
    background: #f5f5f3;
}

.catalog-contact-symbol {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--catalog-black);
    color: #fff;
    font-size: 21px;
}

.catalog-contact-copy {
    flex: 1;
}

.catalog-contact-copy > span {
    color: var(--catalog-red);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.catalog-contact-copy h3 {
    margin: 6px 0;
    color: var(--catalog-black);
    font-size: 19px;
    line-height: 1.4;
}

.catalog-contact-copy p {
    margin: 0;
    color: var(--catalog-muted);
    font-size: 12px;
}

.catalog-contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-shrink: 0;
    padding: 14px 17px;
    background: var(--catalog-red);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    transition: background .2s ease;
}

.catalog-contact-button:hover {
    background: #bd0610;
}

.catalog-contact-button span {
    font-size: 17px;
}


/* =========================================================
   RESPONSIVE: TABLET
   ========================================================= */

@media (max-width: 1000px) {
    .catalog-hero-grid {
        grid-template-columns: 1fr 0.8fr;
        gap: 30px;
    }

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

    .catalog-product-content {
        padding: 16px 14px;
    }

    .catalog-product h3 {
        font-size: 15px;
    }

    .catalog-contact-strip {
        flex-wrap: wrap;
    }

    .catalog-contact-copy {
        min-width: 60%;
    }

    .catalog-contact-button {
        margin-left: 78px;
    }
}


/* =========================================================
   RESPONSIVE: MÓVIL
   ========================================================= */

@media (max-width: 700px) {
    .catalog-hero-grid {
        grid-template-columns: 1fr;
        gap: 35px;
        padding-top: 48px;
        padding-bottom: 35px;
    }

    .catalog-hero h1 {
        font-size: clamp(42px, 10vw, 58px);
        letter-spacing: -1.8px;
    }

    .catalog-hero-text {
        font-size: 14px;
    }

    .catalog-hero-visual {
        min-height: 260px;
        max-height: 310px;
    }

    .catalog-hero-visual img {
        max-height: 310px;
    }

    .catalog-hero-bottom-inner {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding-top: 12px;
        padding-bottom: 12px;
        font-size: 8px;
        letter-spacing: .8px;
    }

    .catalog-section {
        padding: 58px 0 65px;
        scroll-margin-top: 75px;
    }

    .catalog-heading {
        align-items: flex-start;
        margin-bottom: 25px;
    }

    .catalog-heading h2 {
        font-size: 32px;
    }

    .catalog-heading p {
        font-size: 13px;
    }

    .catalog-heading-mark {
        display: none;
    }

    .catalog-search {
        min-height: 58px;
        gap: 12px;
        padding: 0 14px;
    }

    .catalog-search input {
        height: 56px;
        font-size: 12px;
    }

    .catalog-search-shortcut {
        display: none;
    }

    .catalog-filter-header {
        align-items: flex-start;
        margin-top: 27px;
    }

    .catalog-filter-header > span {
        font-size: 9px;
        line-height: 1.6;
    }

    .catalog-clear-filter {
        font-size: 10px;
        white-space: nowrap;
    }

    .catalog-filters {
        gap: 7px;
        margin-bottom: 27px;
    }

    .catalog-filters button {
        min-height: 36px;
        padding: 8px 11px;
        font-size: 10px;
    }

    .catalog-results-label {
        font-size: 8px;
        letter-spacing: .7px;
    }

    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin-top: 15px;
    }

    .catalog-product-image {
        aspect-ratio: 1 / 1;
        padding: 12px;
    }

    .catalog-product-number {
        top: 8px;
        left: 9px;
        font-size: 8px;
    }

    .catalog-product-content {
        padding: 13px 11px;
    }

    .catalog-product-category {
        margin-bottom: 9px;
        padding: 4px 6px;
        font-size: 8px;
        letter-spacing: 0;
    }

    .catalog-product h3 {
        font-size: 13px;
        line-height: 1.4;
    }

    .catalog-product-description {
        margin-bottom: 15px;
        font-size: 11px;
        line-height: 1.6;
    }

    .catalog-product-link {
        gap: 7px;
        padding-top: 11px;
        font-size: 10px;
    }

    .catalog-contact-strip {
        align-items: flex-start;
        gap: 15px;
        margin-top: 45px;
        padding: 21px 16px;
    }

    .catalog-contact-symbol {
        width: 43px;
        height: 43px;
        font-size: 17px;
    }

    .catalog-contact-copy {
        min-width: 0;
    }

    .catalog-contact-copy h3 {
        font-size: 16px;
    }

    .catalog-contact-copy p {
        font-size: 11px;
    }

    .catalog-contact-button {
        width: 100%;
        margin-left: 0;
    }
}


/* =========================================================
   RESPONSIVE: MÓVIL PEQUEÑO
   ========================================================= */

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

    .catalog-product {
        display: grid;
        grid-template-columns: 42% 1fr;
    }

    .catalog-product-image {
        height: 100%;
        min-height: 210px;
        aspect-ratio: auto;
        border-right: 1px solid #ebebea;
        border-bottom: 0;
    }

    .catalog-product-content {
        padding: 15px 12px;
    }

    .catalog-product h3 {
        font-size: 14px;
    }

    .catalog-product-description {
        font-size: 11px;
    }

    .catalog-results-label {
        display: none;
    }
}

.catalog-product-categories {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.catalog-product-category {
    display: inline-flex;
    align-items: center;
}