

/* =========================================================
   PARTE 08.2 - CATÁLOGO Y DETALLE DE PRODUCTO MODERNIZADOS
========================================================= */

.catalog-header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.catalog-back {
    min-height: 40px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    border-radius: 11px;
    border: 1px solid #dce7f2;
    background: #fff;
    color: #315c84;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
}

.catalog-modern-hero {
    padding: 58px 0 54px;
    color: #fff;
    background:
        radial-gradient(circle at 83% 20%, rgba(9, 207, 219, .30), transparent 26%),
        linear-gradient(135deg, #073765 0%, #075ba5 60%, #0878c4 100%);
}

.catalog-modern-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 35px;
    align-items: center;
}

.catalog-modern-copy h1 {
    max-width: 700px;
    margin: 7px 0 10px;
    font-size: clamp(38px, 5vw, 56px);
    line-height: 1.02;
    letter-spacing: -.035em;
}

.catalog-modern-copy p {
    max-width: 670px;
    margin: 0;
    color: rgba(255,255,255,.86);
    font-size: 15px;
}

.catalog-modern-badge {
    width: 150px;
    height: 150px;
    display: grid;
    place-items: center;
    text-align: center;
    border-radius: 24px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.17);
    backdrop-filter: blur(8px);
}

.catalog-modern-badge span,
.catalog-modern-badge small {
    display: block;
}

.catalog-modern-badge span {
    font-size: 48px;
    line-height: 1;
    font-weight: 900;
}

.catalog-modern-badge small {
    max-width: 90px;
    margin-top: -24px;
    color: rgba(255,255,255,.8);
    font-size: 11px;
}

.catalog-modern-main {
    padding: 38px 0 54px;
    background:
        linear-gradient(180deg, #f8fcff 0%, #ffffff 40%);
}

.catalog-modern-toolbar {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.modern-filter {
    margin-bottom: 0;
}

.catalog-count {
    flex: 0 0 auto;
    color: #6b8299;
    font-size: 12px;
    font-weight: 700;
}

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

.modern-product-card {
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #dfe9f2;
    box-shadow: 0 10px 28px rgba(19, 68, 115, .06);
    transition:
        transform .22s ease,
        box-shadow .22s ease;
}

.modern-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 38px rgba(19, 68, 115, .11);
}

.modern-product-image {
    position: relative;
    height: 235px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        linear-gradient(180deg, #f9fcfe, #f3f8fb);
}

.modern-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform .22s ease;
}

.modern-product-card:hover .modern-product-image img {
    transform: scale(1.035);
}

.featured-pill {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 9px;
    border-radius: 999px;
    background: linear-gradient(135deg, #087ce9, #09becb);
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.modern-product-body {
    padding: 17px;
}

.modern-product-category {
    display: inline-block;
    color: #04a9bb;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.modern-product-body h3 {
    margin: 7px 0 7px;
    color: #0b3d74;
    font-size: 17px;
    line-height: 1.25;
}

.modern-product-body h3 a {
    text-decoration: none;
}

.modern-product-body p {
    min-height: 36px;
    margin: 0;
    color: #6a7f95;
    font-size: 12px;
    line-height: 1.5;
}

.modern-product-bottom {
    margin-top: 15px;
    padding-top: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid #edf2f7;
}

.modern-product-bottom strong {
    color: #0871d6;
    font-size: 16px;
}

.modern-product-bottom a {
    color: #0871d6;
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
}

.modern-empty-state {
    padding: 70px 25px;
    text-align: center;
    border-radius: 22px;
    border: 1px solid #e0eaf3;
    background: #fff;
    box-shadow: 0 10px 30px rgba(19,68,115,.06);
}

.modern-empty-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    color: #0a7ddf;
    font-size: 30px;
    background: #eef8ff;
}

.modern-empty-state h2 {
    margin: 0 0 8px;
    color: #0b3c73;
}

.modern-empty-state p {
    max-width: 520px;
    margin: 0 auto 20px;
    color: #6b8198;
    font-size: 13px;
}

.catalog-contact-strip {
    padding: 22px 0 26px;
    background: #fff;
}

.catalog-contact-inner {
    min-height: 120px;
    padding: 24px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    border-radius: 16px;
    color: #fff;
    background:
        radial-gradient(circle at 90% 20%, rgba(8,210,220,.23), transparent 26%),
        linear-gradient(135deg, #073765, #075ba5);
}

.catalog-contact-inner h2 {
    margin: 0;
    font-size: 25px;
}

/* DETALLE */

.product-modern-hero {
    padding: 16px 0;
    background: #f4f9fd;
    border-bottom: 1px solid #e4edf5;
}

.product-modern-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #71869d;
    font-size: 11px;
}

.product-modern-breadcrumb a {
    color: #3f668b;
    text-decoration: none;
}

.product-modern-breadcrumb strong {
    color: #0b477f;
}

.product-modern-main {
    padding: 48px 0 55px;
    background:
        linear-gradient(180deg, #fbfdff, #ffffff);
}

.product-modern-grid {
    display: grid;
    grid-template-columns: 1.03fr .97fr;
    gap: 55px;
    align-items: start;
}

.product-modern-gallery {
    min-width: 0;
}

.product-modern-main-image {
    position: relative;
    height: 520px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid #dfe9f2;
    background:
        linear-gradient(180deg, #fafcfe, #f3f8fb);
    box-shadow: 0 16px 42px rgba(17, 66, 113, .07);
}

.product-modern-main-image > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 28px;
}

.detail-featured {
    top: 18px;
    left: 18px;
}

.product-modern-empty {
    color: #90a0b1;
}

.product-modern-thumbs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.product-modern-thumbs button {
    height: 82px;
    padding: 6px;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #dfe8f1;
    background: #fff;
    cursor: pointer;
}

.product-modern-thumbs button.active {
    border-color: #087de5;
    box-shadow: 0 0 0 2px rgba(8,125,229,.08);
}

.product-modern-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-modern-copy {
    padding-top: 8px;
}

.product-modern-copy h1 {
    margin: 7px 0 8px;
    color: #0a3a70;
    font-size: clamp(36px, 4vw, 52px);
    line-height: 1.04;
    letter-spacing: -.03em;
}

.product-modern-reference {
    color: #8091a2;
    font-size: 11px;
}

.product-modern-price {
    margin: 20px 0 16px;
    color: #0872d7;
    font-size: 31px;
    font-weight: 900;
}

.product-modern-lead {
    margin: 0;
    color: #5f7791;
    font-size: 16px;
    line-height: 1.65;
}

.product-modern-description {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #e5edf4;
}

.product-modern-description h3 {
    margin: 0 0 9px;
    color: #0c4078;
    font-size: 16px;
}

.product-modern-description > div {
    color: #687f96;
    font-size: 13px;
    line-height: 1.75;
}

.product-modern-actions {
    margin-top: 24px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.product-whatsapp-button,
.product-back-button {
    min-height: 44px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 900;
}

.product-whatsapp-button {
    color: #fff;
    background: #17b857;
}

.product-back-button {
    color: #0b64b6;
    border: 1px solid #c9d9e8;
    background: #fff;
}

.product-service-notes {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 10px;
}

.product-service-notes > div {
    padding: 13px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-radius: 12px;
    background: #f5faff;
    border: 1px solid #e1ebf4;
}

.product-service-notes > div > span {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e7f7ef;
    color: #13914c;
    font-size: 12px;
    font-weight: 900;
}

.product-service-notes p {
    margin: 0;
}

.product-service-notes strong,
.product-service-notes small {
    display: block;
}

.product-service-notes strong {
    color: #0b467e;
    font-size: 11px;
}

.product-service-notes small {
    margin-top: 2px;
    color: #71859a;
    font-size: 9px;
    line-height: 1.35;
}

.product-modern-cta {
    padding: 0 0 28px;
}

.product-modern-cta-box {
    min-height: 130px;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    border-radius: 16px;
    color: #fff;
    background:
        radial-gradient(circle at 90% 20%, rgba(8,210,220,.23), transparent 26%),
        linear-gradient(135deg, #073765, #075ba5);
}

.product-modern-cta-box h2 {
    margin: 0;
    font-size: 25px;
}

.product-modern-cta-box p {
    max-width: 620px;
    margin: 5px 0 0;
    color: rgba(255,255,255,.82);
    font-size: 12px;
}

/* 404 */

.modern-error-page {
    min-height: 65vh;
    padding: 70px 0;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 20% 20%, rgba(7,191,207,.12), transparent 24%),
        linear-gradient(180deg, #f7fbff, #fff);
}

.modern-error-card {
    max-width: 700px;
    margin: 0 auto;
    padding: 55px 30px;
    text-align: center;
    border-radius: 24px;
    border: 1px solid #e0eaf3;
    background: #fff;
    box-shadow: 0 18px 50px rgba(21,71,119,.08);
}

.modern-error-code {
    font-size: 70px;
    line-height: 1;
    font-weight: 900;
    background: linear-gradient(135deg, #087ce9, #08bdca);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.modern-error-card h1 {
    margin: 13px 0 8px;
    color: #0b3c73;
    font-size: 30px;
}

.modern-error-card p {
    max-width: 470px;
    margin: 0 auto 20px;
    color: #6c8196;
    font-size: 13px;
}

.modern-error-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 1000px) {
    .modern-products-grid {
        grid-template-columns: repeat(3, minmax(0,1fr));
    }

    .product-modern-grid {
        gap: 35px;
    }
}

@media (max-width: 820px) {
    .catalog-modern-grid,
    .product-modern-grid {
        grid-template-columns: 1fr;
    }

    .catalog-modern-badge {
        width: 120px;
        height: 120px;
    }

    .catalog-modern-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .modern-products-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .product-modern-main-image {
        height: 430px;
    }

    .product-modern-cta-box,
    .catalog-contact-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 580px) {
    .catalog-header-actions .contact-pill {
        display: none;
    }

    .catalog-modern-hero {
        padding: 44px 0;
    }

    .catalog-modern-copy h1 {
        font-size: 39px;
    }

    .catalog-modern-badge {
        width: 100%;
        height: auto;
        padding: 20px;
        display: flex;
        align-items: center;
        gap: 12px;
        text-align: left;
    }

    .catalog-modern-badge span {
        font-size: 36px;
    }

    .catalog-modern-badge small {
        max-width: none;
        margin-top: 0;
    }

    .modern-products-grid {
        grid-template-columns: 1fr;
    }

    .modern-product-image {
        height: 250px;
    }

    .product-modern-main-image {
        height: 350px;
    }

    .product-modern-thumbs {
        grid-template-columns: repeat(4, minmax(0,1fr));
    }

    .product-modern-copy h1 {
        font-size: 36px;
    }

    .product-modern-actions {
        flex-direction: column;
    }

    .product-whatsapp-button,
    .product-back-button {
        width: 100%;
    }

    .product-service-notes {
        grid-template-columns: 1fr;
    }

    .product-modern-cta-box .cta-whatsapp {
        width: 100%;
        justify-content: center;
    }
}
