/* PÁGINAS DE CATEGORÍA — LHZ ECOPLAST */
.category-page {
    --category-accent: var(--color-orange);
    --category-accent-dark: var(--color-orange-dark);

    --category-graphite: var(--color-graphite);
    --category-dark: var(--color-dark);
    --category-border: var(--color-border);
    --category-background: var(--color-background);
    --category-white: var(--color-white);

    --category-radius-md: var(--radius-medium);
    --category-radius-lg: var(--radius-large);
    --category-shadow: var(--shadow-2);

    --category-secondary: #2f7d32;
    --category-secondary-dark: #1f5d24;
    --category-secondary-soft: rgba(47, 125, 50, 0.1);
    --category-secondary-border: rgba(47, 125, 50, 0.35);
    --category-hero-tint: rgba(20, 20, 20, 0.95);
}

.category-page--agro {
    --category-secondary: #2f7d32;
    --category-secondary-dark: #1f5d24;
    --category-secondary-soft: rgba(47, 125, 50, 0.1);
    --category-secondary-border: rgba(47, 125, 50, 0.35);
    --category-hero-tint: rgba(18, 32, 19, 0.95);
}

.category-page--packaging {
    --category-secondary: #42677d;
    --category-secondary-dark: #29495c;
    --category-secondary-soft: rgba(66, 103, 125, 0.1);
    --category-secondary-border: rgba(66, 103, 125, 0.35);
    --category-hero-tint: rgba(19, 27, 33, 0.95);
}

.category-page--bags {
    --category-secondary: #247477;
    --category-secondary-dark: #18585b;
    --category-secondary-soft: rgba(36, 116, 119, 0.1);
    --category-secondary-border: rgba(36, 116, 119, 0.35);
    --category-hero-tint: rgba(17, 31, 32, 0.95);
}

/* HERO */
.category-hero {
    position: relative;
    min-height: 650px;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    background: var(--category-dark);
    padding-block: 96px;
}

.category-hero__background,
.category-hero__overlay {
    position: absolute;
    inset: 0;
}

.category-hero__background {
    z-index: -3;
}

.category-hero__background img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.category-hero__overlay {
    z-index: -2;
    background:
        linear-gradient(90deg,
            var(--category-hero-tint) 0%,
            color-mix(in srgb,
                var(--category-hero-tint) 84%,
                transparent) 43%,
            rgba(20, 20, 20, 0.36) 75%,
            rgba(20, 20, 20, 0.08) 100%);
}

.category-hero__content {
    max-width: 850px;
}

.category-hero h1 {
    color: var(--category-white);
}

.category-hero p {
    max-width: 700px;
    margin: 25px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1rem, 0.96rem + 0.25vw, 1.15rem);
    line-height: 1.75;
}

.category-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 34px;
}

/* INTRODUCCIÓN */
.category-intro {
    background: var(--category-white);
}

.category-intro__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr);
    align-items: center;
    gap: clamp(55px, 7vw, 105px);
}

.category-intro__content>p {
    margin: 20px 0 0;
    color: var(--color-steel);
    font-size: 1rem;
    line-height: 1.8;
}

.category-intro__list {
    display: grid;
    gap: 14px;
    margin: 30px 0 36px;
    padding: 0;
    list-style: none;
}

.category-intro__list li {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 11px;
    align-items: center;
    color: var(--color-steel);
    font-size: 0.95rem;
    line-height: 1.55;
}

.category-intro__list span {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--category-white);
    background: var(--category-secondary);
}

.category-intro__image {
    position: relative;
}

.category-intro__image>img {
    width: 100%;
    aspect-ratio: 850 / 720;
    display: block;
    object-fit: cover;
    border-radius: var(--category-radius-lg);
    box-shadow: var(--category-shadow);
}

/* PRODUCTOS */
.category-products {
    background: var(--category-background);
}

.category-products__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.product-category-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--category-border);
    border-radius: var(--category-radius-md);
    background: var(--category-white);
    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.product-category-card:hover {
    transform: translateY(-7px);
    border-color:
        color-mix(in srgb,
            var(--category-secondary) 38%,
            transparent);
    box-shadow: var(--category-shadow);
}

.product-category-card__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 680 / 520;
    display: block;
}

.product-category-card__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0) scale(1);
}

.product-category-card:hover .product-category-card__image img {
    transform: translateZ(0) scale(1.045);
}

.product-category-card__category {
    position: absolute;
    bottom: 16px;
    left: 17px;
    z-index: 1;
    padding: 7px 11px;
    border-radius: 8px;
    color: var(--category-white);
    background: rgba(30, 30, 30, 0.84);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    backdrop-filter: blur(7px);
}

.product-category-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 28px 27px 25px;
}

.product-category-card h3 {
    margin: 0;
    font-family: "Poppins", sans-serif;
    font-size: 1.18rem;
    font-weight: 680;
    line-height: 1.35;
}

.product-category-card h3 a {
    color: var(--category-graphite);
    text-decoration: none;
}

.product-category-card h3 a:hover {
    color: var(--category-accent);
}

.product-category-card__features li::before {
    background: var(--category-secondary);
}

.product-category-card__link {
    color: var(--category-accent);
}

/* BENEFICIOS */
.category-benefits {
    background: var(--category-white);
}

.category-benefits__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.category-benefit-card {
    min-height: 270px;
    padding: 31px 27px;
    border: 1px solid var(--category-border);
    border-radius: 18px;
    background: var(--category-white);
}

.category-benefit-card__icon {
    width: 54px;
    height: 54px;
    display: grid;
    margin-bottom: 24px;
    place-items: center;
    border-radius: 15px;
    color: var(--category-secondary);
    background:
        color-mix(in srgb,
            var(--category-secondary) 10%,
            transparent);
}

/* APLICACIONES */
.category-applications {
    background: var(--category-background);
}

.category-applications__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: clamp(55px, 7vw, 105px);
}

/* PERSONALIZACIÓN */
.category-custom {
    color: var(--category-white);
    background:
        linear-gradient(118deg,
            #232323 0%,
            #303030 55%,
            var(--category-secondary-dark) 140%);
}

.category-custom__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
    align-items: center;
    gap: clamp(55px, 7vw, 100px);
}

/* FAQ */
.category-faq {
    background: var(--category-white);
}

.category-faq__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.74fr) minmax(0, 1.26fr);
    align-items: start;
    gap: clamp(50px, 7vw, 95px);
}

/* CTA */
.category-cta {
    position: relative;
    overflow: hidden;
    padding-block: 80px;
    color: var(--category-white);
    background:
        linear-gradient(112deg,
            #242424 0%,
            #303030 58%,
            #34291e 100%);
}

.category-cta__container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 50px;
}

.button--outline-light {
    border-color: rgba(255, 255, 255, 0.55);
    background: transparent;
    color: var(--color-white);
}

.button--outline-light:hover {
    border-color: var(--color-white);
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
}

/* ELEMENTOS INTERNOS DE LAS PÁGINAS DE CATEGORÍA */

/* INTRODUCCIÓN */
.category-intro__lead {
    color: var(--color-graphite);
    font-size: 1.08rem;
    font-weight: 500;
    line-height: 1.8;
}

.category-intro__badge {
    position: absolute;
    right: 24px;
    bottom: 24px;
    max-width: 255px;
    padding: 20px 23px;
    border-radius: 15px;
    color: var(--color-white);
    background: var(--category-accent);
    box-shadow: 0 17px 38px rgba(245, 124, 0, 0.28);
}

.category-intro__badge strong,
.category-intro__badge span {
    display: block;
}

.category-intro__badge strong {
    margin-bottom: 5px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
}

.category-intro__badge span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.82rem;
    line-height: 1.5;
}

/* TARJETAS DE PRODUCTO */
.product-category-card__content>p {
    margin-top: 14px;
    color: var(--color-steel);
    font-size: 0.91rem;
    line-height: 1.7;
}

.product-category-card__features {
    display: grid;
    gap: 8px;
    margin-block: 20px 25px;
}

.product-category-card__features li {
    position: relative;
    padding-left: 18px;
    color: var(--color-steel);
    font-size: 0.85rem;
    line-height: 1.55;
}

.product-category-card__features li::before {
    position: absolute;
    top: 0.62em;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--category-secondary);
    content: "";
}

.product-category-card__footer {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--category-border);
}

.product-category-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--category-accent);
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.2;
    transition: color 0.25s ease;
}

.product-category-card__link svg {
    flex: 0 0 auto;
    transition: transform 0.25s ease;
}

.product-category-card__link:hover {
    color: var(--category-accent-dark);
}

.product-category-card__link:hover svg {
    transform: translateX(4px);
}

/* BENEFICIOS */
.category-benefit-card {
    transition:
        transform 0.28s ease,
        border-color 0.28s ease,
        box-shadow 0.28s ease;
}

.category-benefit-card:hover {
    transform: translateY(-6px);
    border-color: var(--category-secondary-border);
    box-shadow: var(--shadow-card);
}

.category-benefit-card h3 {
    margin-bottom: 12px;
    color: var(--color-graphite);
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.35;
}

.category-benefit-card p {
    color: var(--color-steel);
    font-size: 0.91rem;
    line-height: 1.7;
}

/* APLICACIONES */
.category-applications__image {
    position: relative;
}

.category-applications__image img {
    width: 100%;
    aspect-ratio: 850 / 760;
    object-fit: cover;
    border-radius: var(--category-radius-lg);
    box-shadow: var(--category-shadow);
}

.category-applications__image::before {
    position: absolute;
    bottom: -22px;
    left: -22px;
    z-index: -1;
    width: 42%;
    height: 45%;
    border-radius: 0 0 0 24px;
    background:
        repeating-linear-gradient(-45deg,
            var(--category-secondary-soft) 0,
            var(--category-secondary-soft) 2px,
            transparent 2px,
            transparent 10px);
    content: "";
}

.category-applications__content>p {
    margin-top: 20px;
    color: var(--color-steel);
    font-size: 1rem;
    line-height: 1.8;
}

.category-applications__list {
    display: grid;
    margin-top: 35px;
}

.category-applications__list article {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 17px;
    padding-block: 22px;
    border-bottom: 1px solid var(--category-border);
}

.category-applications__list article:first-child {
    padding-top: 0;
}

.category-applications__list article:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.category-applications__list article>span {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: var(--category-secondary);
    background: var(--category-secondary-soft);
    font-size: 0.77rem;
    font-weight: 800;
}

.category-applications__list h3 {
    margin-bottom: 6px;
    color: var(--color-graphite);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
}

.category-applications__list p {
    color: var(--color-steel);
    font-size: 0.89rem;
    line-height: 1.65;
}

/* DESARROLLO PERSONALIZADO */
.category-custom__content h2 {
    color: var(--color-white);
}

.category-custom__content>p {
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
    line-height: 1.8;
}

.category-custom__content ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px 24px;
    margin-block: 30px 36px;
}

.category-custom__content li {
    position: relative;
    padding-left: 22px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.55;
}

.category-custom__content li::before {
    position: absolute;
    top: 0.5em;
    left: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--category-accent);
    content: "";
}

.category-custom__image {
    position: relative;
}

.category-custom__image img {
    width: 100%;
    aspect-ratio: 850 / 720;
    object-fit: cover;
    border-radius: var(--category-radius-lg);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.22);
}

.category-custom__image::after {
    position: absolute;
    top: -18px;
    right: -18px;
    z-index: -1;
    width: 170px;
    height: 170px;
    border: 35px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    content: "";
}

/* PREGUNTAS FRECUENTES */
.category-faq__heading {
    position: sticky;
    top: 130px;
}

.category-faq__heading>p {
    margin-block: 20px 32px;
    color: var(--color-steel);
    font-size: 1rem;
    line-height: 1.8;
}

.category-faq__accordion {
    display: grid;
    gap: 13px;
}

.faq-item {
    overflow: hidden;
    border: 1px solid var(--category-border);
    border-radius: 15px;
    background: var(--color-white);
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.faq-item[open] {
    border-color: rgba(245, 124, 0, 0.35);
    box-shadow: 0 12px 30px rgba(35, 35, 35, 0.06);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px;
    color: var(--color-graphite);
    font-family: var(--font-heading);
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.5;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary>span {
    position: relative;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border-radius: 50%;
    background: var(--color-orange-soft);
}

.faq-item summary>span::before,
.faq-item summary>span::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 2px;
    border-radius: 2px;
    background: var(--category-accent);
    content: "";
    transform: translate(-50%, -50%);
    transition: transform 0.25s ease;
}

.faq-item summary>span::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] summary>span::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.faq-item__content {
    padding: 0 24px 22px;
}

.faq-item__content p {
    color: var(--color-steel);
    font-size: 0.91rem;
    line-height: 1.75;
}

/* CTA FINAL */
.category-cta::before {
    position: absolute;
    top: -170px;
    right: 6%;
    width: 410px;
    height: 410px;
    border: 74px solid rgba(245, 124, 0, 0.14);
    border-radius: 50%;
    content: "";
}

.category-cta::after {
    position: absolute;
    bottom: -85px;
    left: 7%;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(245, 124, 0, 0.08);
    content: "";
}

.category-cta__content {
    max-width: 760px;
}

.category-cta__content h2 {
    color: var(--color-white);
}

.category-cta__content p {
    max-width: 680px;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
    line-height: 1.75;
}

.category-cta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 13px;
}

/* RESPONSIVE */
@media (max-width: 1100px) {

    .category-products__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-benefits__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-cta__container {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 900px) {

    .category-intro__grid,
    .category-applications__grid,
    .category-custom__grid,
    .category-faq__grid {
        grid-template-columns: 1fr;
    }

    .category-applications__image,
    .category-custom__image {
        max-width: 760px;
        margin-inline: auto;
    }

    .category-applications__image {
        order: -1;
    }

    .category-faq__heading {
        position: static;
    }

    .category-cta__actions {
        justify-content: flex-start;
    }
}

@media (max-width: 680px) {

    .category-products__grid,
    .category-benefits__grid {
        grid-template-columns: 1fr;
    }

    .category-hero__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .category-intro__badge {
        right: 14px;
        bottom: 14px;
        left: 14px;
        max-width: none;
    }

    .category-applications__image::before,
    .category-custom__image::after {
        display: none;
    }

    .category-custom__content ul {
        grid-template-columns: 1fr;
    }

    .category-cta {
        padding-block: 66px;
    }

    .category-cta__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .category-cta__actions .button {
        width: 100%;
    }

    .faq-item summary {
        padding: 19px 18px;
    }

    .faq-item__content {
        padding: 0 18px 19px;
    }
}

@media (max-width: 460px) {

    .category-intro__badge {
        position: relative;
        right: auto;
        bottom: auto;
        left: auto;
        margin: -28px 14px 0;
    }

    .category-applications__list article {
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 14px;
    }

    .category-applications__list article>span {
        width: 42px;
        height: 42px;
    }

}