
/* NAXIAL: encabezados independientes por categoria */

#nax-category-page-header[hidden] {
    display: none !important;
}

#nax-category-page-header {
    position: relative;
    width: 100%;
    min-width: 0;
    isolation: isolate;
}

.nax-cph-hero {
    position: relative;
    width: 100%;
    height: var(--nax-cph-desktop-height, 350px);
    overflow: hidden;
    background: #f1f5f9;
}

.nax-cph-hero picture,
.nax-cph-hero img {
    display: block;
    width: 100%;
    height: 100%;
}

.nax-cph-hero img {
    object-fit: cover;
    object-position: center;
}

.nax-cph-title {
    position: relative;
    text-align: center;
    padding: 28px 24px;
    background: #ffffff;
    color: #1e293b;
    overflow-wrap: anywhere;
}

.nax-cph-title h1 {
    font-size: clamp(24px, 3vw, 38px);
    line-height: 1.2;
    font-weight: 800;
    margin: 0;
}

.nax-cph-title p {
    font-size: 15px;
    line-height: 1.6;
    margin: 10px 0 0;
    opacity: .85;
}

.nax-cph-floating .nax-cph-title {
    width: min(80%, 760px);
    margin: -48px auto 0;
    z-index: 1;
    box-shadow: 0 8px 30px rgba(15,23,42,.10);
    border: 1px solid #e2e8f0;
}

.nax-cph-overlay .nax-cph-title {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: min(85%, 760px);
    background: rgba(15,23,42,.76);
    color: #ffffff;
    max-height: calc(100% - 32px);
    overflow: auto;
}

.nax-cph-below .nax-cph-title {
    width: 100%;
    margin: 0 auto;
}

.nax-cph-simple .nax-cph-title {
    padding: 20px 12px;
    background: transparent;
}

@media (max-width: 767px) {

    .nax-cph-hero {
        height: var(--nax-cph-mobile-height, 200px);
    }

    .nax-cph-title {
        padding: 18px 14px;
    }

    .nax-cph-title h1 {
        font-size: 24px;
    }

    .nax-cph-title p {
        font-size: 13px;
    }

    .nax-cph-floating .nax-cph-title {
        width: 90%;
        margin-top: -28px;
    }

    .nax-cph-overlay .nax-cph-title {
        bottom: 12px;
        width: 90%;
    }
}
