/* ==========================================================
   PARRES · Líneas de producto
   Rediseño 2026
   Este archivo está aislado a .product-lines-page para no
   alterar el header/footer global actual del sitio.
   ========================================================== */

.product-lines-page {
    --parres-red: #d71920;
    --parres-red-dark: #b81218;
    --ink: #15171a;
    --muted: #6a6e75;
    --line: #e6e7e9;
    --soft: #f5f5f6;
    --white: #fff;
    --radius: 22px;
    --shadow: 0 18px 45px rgba(12, 18, 28, .10);
    background: var(--soft);
    color: var(--ink);
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
}

.product-lines-page *,
.product-lines-page *::before,
.product-lines-page *::after {
    box-sizing: border-box;
}

/* HERO ---------------------------------------------------- */
.product-lines-hero {
    position: relative;
    min-height: 570px;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    background: #090a0c;
}

.product-lines-hero::before {
    content: "";
    position: absolute;
    inset: -3%;
    z-index: -3;
    background: url('../img/banner_inside/productos.jpg') center 48% / cover no-repeat;
    transform: scale(1.02);
    animation: productHeroZoom 18s ease-in-out infinite alternate;
}

.product-lines-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(5,6,8,.92) 0%, rgba(5,6,8,.74) 42%, rgba(5,6,8,.18) 72%, rgba(5,6,8,.34) 100%),
        radial-gradient(circle at 75% 40%, rgba(215,25,32,.16), transparent 38%);
}

.product-lines-hero__grid {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 128px 15px 68px;
}

.product-lines-hero__content {
    width: min(720px, 100%);
}

.product-lines-hero__eyebrow,
.product-lines-section-head__eyebrow,
.product-card__eyebrow,
.product-lines-cta__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    color: var(--parres-red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.product-lines-hero__eyebrow::before,
.product-lines-section-head__eyebrow::before,
.product-card__eyebrow::before,
.product-lines-cta__eyebrow::before {
    content: "";
    width: 30px;
    height: 2px;
    background: currentColor;
}

.product-lines-hero h1 {
    margin: 0;
    max-width: 760px;
    color: #fff;
    font-size: clamp(44px, 5vw, 72px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -.035em;
}

.product-lines-hero h1 strong {
    color: var(--parres-red);
    font-weight: 700;
}

.product-lines-hero__lead {
    max-width: 670px;
    margin: 24px 0 0;
    color: rgba(255,255,255,.78);
    font-size: 17px;
    line-height: 1.75;
}

.product-lines-hero__proof {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 34px 0 0;
}

.product-lines-hero__proof-item {
    min-width: 170px;
    padding: 4px 26px 4px 0;
    margin-right: 26px;
    border-right: 1px solid rgba(255,255,255,.18);
}

.product-lines-hero__proof-item:last-child {
    border-right: 0;
    margin-right: 0;
    padding-right: 0;
}

.product-lines-hero__proof-item b {
    display: block;
    margin-bottom: 2px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.product-lines-hero__proof-item span {
    color: rgba(255,255,255,.52);
    font-size: 11px;
    line-height: 1.4;
}


.product-lines-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 50px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: var(--parres-red);
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}

.product-lines-btn:hover,
.product-lines-btn:focus {
    background: var(--parres-red-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(215,25,32,.28);
    outline: 0;
}

.product-lines-btn__arrow {
    display: inline-block;
    font-size: 18px;
    line-height: 1;
    transition: transform .25s ease;
}

.product-lines-btn:hover .product-lines-btn__arrow,
.product-lines-btn:focus .product-lines-btn__arrow {
    transform: translateX(4px);
}

/* PRODUCTOS ----------------------------------------------- */
.product-lines-gallery {
    position: relative;
    padding: 88px 0 100px;
    background:
        radial-gradient(circle at 12% 4%, rgba(215,25,32,.04), transparent 22%),
        #f5f5f6;
}

.product-lines-gallery .container {
    max-width: 1180px;
}

.product-lines-section-head {
    max-width: 800px;
    margin: 0 auto 46px;
    text-align: center;
}

.product-lines-section-head__eyebrow {
    justify-content: center;
}

.product-lines-section-head h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.025em;
}

.product-lines-section-head p {
    max-width: 650px;
    margin: 16px auto 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

.product-lines-list {
    display: grid;
    gap: 26px;
}

.product-line-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    min-height: 390px;
    overflow: hidden;
    border: 1px solid rgba(25,28,32,.08);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 9px 30px rgba(12,18,28,.07);
    opacity: 0;
    transform: translateY(24px);
    top: 0;
    transition:
        opacity .55s ease var(--reveal-delay, 0ms),
        transform .55s cubic-bezier(.2,.75,.25,1) var(--reveal-delay, 0ms),
        top .28s cubic-bezier(.2,.75,.25,1),
        box-shadow .35s ease,
        border-color .35s ease;
}

.product-line-card:nth-child(even) {
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
}

.product-line-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.product-line-card:hover {
    top: -4px;
    border-color: rgba(215,25,32,.22);
    box-shadow: var(--shadow);
}

.product-line-card__media {
    position: relative;
    min-height: 390px;
    overflow: hidden;
    background: #181a1e;
}

.product-line-card:nth-child(even) .product-line-card__media {
    order: 2;
}

.product-line-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, transparent 54%, rgba(215,25,32,.10));
}

.product-line-card__media img {
    width: 100%;
    height: 100%;
    min-height: 390px;
    display: block;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.2,.75,.25,1), filter .35s ease;
}

.product-line-card:hover .product-line-card__media img {
    transform: scale(1.035);
}

.product-line-card__content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 44px clamp(34px, 5vw, 62px);
    background: #fff;
}

.product-line-card:nth-child(even) .product-line-card__content {
    order: 1;
}

.product-line-card__number {
    position: absolute;
    top: 24px;
    right: 28px;
    color: #d8dade;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
}

.product-line-card:nth-child(even) .product-line-card__number {
    right: auto;
    left: 28px;
}

.product-card__eyebrow {
    margin-bottom: 10px;
    font-size: 10px;
}

.product-line-card h3 {
    margin: 0;
    color: #15171a;
    font-size: clamp(28px, 3.2vw, 42px);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -.025em;
}

.product-line-card__rule {
    width: 42px;
    height: 3px;
    margin: 18px 0;
    border-radius: 99px;
    background: var(--parres-red);
}

.product-line-card__description {
    max-width: 520px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
}

.product-line-card__features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.product-line-card__features li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid #ececee;
    border-radius: 999px;
    background: #fafafa;
    color: #4d5157;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .02em;
}

.product-line-card__features li::before {
    content: "";
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: var(--parres-red);
}

.product-line-card__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: fit-content;
    min-height: 42px;
    margin-top: 28px;
    padding: 11px 18px;
    border: 1px solid var(--parres-red);
    border-radius: 7px;
    background: var(--parres-red);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .07em;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none !important;
    box-shadow: 0 8px 20px rgba(215,25,32,.16);
    transition:
        background-color .25s ease,
        border-color .25s ease,
        color .25s ease,
        box-shadow .25s ease,
        transform .25s ease;
}

.product-line-card__link::after {
    content: "→";
    color: currentColor;
    font-size: 18px;
    line-height: 1;
    transition: transform .25s ease;
}

.product-line-card__link:hover,
.product-line-card__link:focus {
    border-color: #111214;
    background: #111214;
    color: #fff;
    box-shadow: 0 10px 24px rgba(12,18,28,.18);
    outline: 0;
}

.product-line-card__link:hover::after,
.product-line-card__link:focus::after {
    transform: translateX(5px);
}

/* CTA FINAL ------------------------------------------------ */
.product-lines-cta {
    position: relative;
    isolation: isolate;
    min-height: 430px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #0d0f12;
}

.product-lines-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: url('../img/product-lines/cta-asesoria.jpg') 70% center / cover no-repeat;
    transform: scale(1.015);
}

.product-lines-cta::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(9,10,12,.95) 0%, rgba(9,10,12,.86) 45%, rgba(9,10,12,.42) 72%, rgba(9,10,12,.58) 100%),
        radial-gradient(circle at 78% 48%, rgba(215,25,32,.12), transparent 36%);
}

.product-lines-cta .container {
    max-width: 1180px;
}

.product-lines-cta__content {
    max-width: 760px;
    padding: 76px 0;
}

.product-lines-cta h2 {
    max-width: 700px;
    margin: 0;
    color: #fff;
    font-size: clamp(32px, 4.2vw, 52px);
    font-weight: 700;
    line-height: 1.07;
    letter-spacing: -.03em;
}

.product-lines-cta p {
    max-width: 590px;
    margin: 18px 0 0;
    color: rgba(255,255,255,.70);
    font-size: 15px;
    line-height: 1.75;
}

.product-lines-cta__services {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 30px 0 32px;
}

.product-lines-cta__service {
    position: relative;
    min-height: 94px;
    padding: 17px 17px 15px 19px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    background: rgba(255,255,255,.045);
    backdrop-filter: blur(3px);
}

.product-lines-cta__service::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 2px;
    background: var(--parres-red);
}

.product-lines-cta__service strong {
    display: block;
    margin-bottom: 6px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: .02em;
}

.product-lines-cta__service span {
    display: block;
    color: rgba(255,255,255,.62);
    font-size: 11px;
    line-height: 1.5;
}

.product-lines-cta__btn:hover,
.product-lines-cta__btn:focus {
    background: #fff;
    color: #111 !important;
    border-color: #fff;
    box-shadow: 0 12px 28px rgba(0,0,0,.24);
}

/* Entrada suave del CTA al hacer scroll */
.cta-reveal__item {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s ease, transform .55s cubic-bezier(.2,.75,.25,1);
}

.cta-reveal.is-visible .cta-reveal__item {
    opacity: 1;
    transform: translateY(0);
}

.cta-reveal.is-visible .cta-reveal__item:nth-child(1) { transition-delay: 0ms; }
.cta-reveal.is-visible .cta-reveal__item:nth-child(2) { transition-delay: 70ms; }
.cta-reveal.is-visible .cta-reveal__item:nth-child(3) { transition-delay: 140ms; }
.cta-reveal.is-visible .product-lines-cta__services .cta-reveal__item:nth-child(1) { transition-delay: 210ms; }
.cta-reveal.is-visible .product-lines-cta__services .cta-reveal__item:nth-child(2) { transition-delay: 280ms; }
.cta-reveal.is-visible .product-lines-cta__services .cta-reveal__item:nth-child(3) { transition-delay: 350ms; }
.cta-reveal.is-visible .product-lines-cta__btn { transition-delay: 420ms, 0ms, 0ms, 0ms; }

/* RESPONSIVE ---------------------------------------------- */
@media (max-width: 991px) {
    .product-lines-hero { min-height: 540px; }
    .product-lines-hero__grid { padding-top: 112px; }

    .product-line-card,
    .product-line-card:nth-child(even) {
        grid-template-columns: .92fr 1.08fr;
        min-height: 360px;
    }

    .product-line-card:nth-child(even) {
        grid-template-columns: 1.08fr .92fr;
    }

    .product-line-card__media,
    .product-line-card__media img {
        min-height: 360px;
    }

    .product-line-card__content {
        padding: 38px 34px;
    }
}

@media (max-width: 767px) {
    .product-lines-hero {
        min-height: 560px;
        align-items: flex-end;
    }

    .product-lines-hero::after {
        background:
            linear-gradient(0deg, rgba(5,6,8,.96) 0%, rgba(5,6,8,.77) 62%, rgba(5,6,8,.45) 100%),
            radial-gradient(circle at 75% 25%, rgba(215,25,32,.18), transparent 34%);
    }

    .product-lines-hero__grid {
        padding: 132px 24px 52px;
    }

    .product-lines-hero__lead {
        font-size: 15px;
        line-height: 1.65;
    }

    .product-lines-hero__proof {
        gap: 15px 0;
    }

    .product-lines-hero__proof-item {
        width: 50%;
        min-width: 0;
        margin: 0;
        padding: 2px 15px 2px 0;
        border-right: 0;
    }

    .product-lines-gallery {
        padding: 65px 0 72px;
    }

    .product-lines-section-head {
        padding: 0 16px;
        margin-bottom: 34px;
    }

    .product-lines-list {
        gap: 20px;
        padding: 0 10px;
    }

    .product-line-card,
    .product-line-card:nth-child(even) {
        display: flex;
        flex-direction: column;
        min-height: 0;
        border-radius: 18px;
    }

    .product-line-card__media,
    .product-line-card:nth-child(even) .product-line-card__media {
        order: 1;
        width: 100%;
        min-height: 240px;
        aspect-ratio: 16 / 10;
    }

    .product-line-card__media img {
        min-height: 240px;
    }

    .product-line-card__content,
    .product-line-card:nth-child(even) .product-line-card__content {
        order: 2;
        padding: 30px 26px 32px;
    }

    .product-line-card__number,
    .product-line-card:nth-child(even) .product-line-card__number {
        top: 18px;
        right: 22px;
        left: auto;
    }

    .product-line-card__features {
        margin-top: 20px;
    }

    .product-line-card__link {
        margin-top: 24px;
    }

    .product-lines-cta {
        min-height: 430px;
    }

    .product-lines-cta::after {
        background: linear-gradient(90deg, rgba(9,10,12,.96), rgba(9,10,12,.78));
    }

    .product-lines-cta__content {
        padding: 58px 18px;
    }

    .product-lines-cta__services {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .product-lines-cta__service {
        min-height: 0;
    }
}

@media (max-width: 480px) {
    .product-lines-hero__proof-item { width: 100%; }
    .product-lines-btn { width: 100%; }
    .product-line-card__features { gap: 6px; }
    .product-line-card__features li { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
    .product-lines-hero::before { animation: none; }
    .product-line-card,
    .product-line-card__media img,
    .product-line-card__link::after,
    .product-lines-btn,
    .product-lines-btn__arrow { transition: none; }
    .product-line-card { opacity: 1; transform: none; }
    .cta-reveal__item { opacity: 1; transform: none; transition: none; }
}

@keyframes productHeroZoom {
    from { transform: scale(1.02); }
    to { transform: scale(1.07); }
}
