.lfx-products-page,
.lfx-product-page {
    --lfx-product-bg: #f4f6f8;
    --lfx-product-ink: #111827;
    --lfx-product-muted: #5c6675;
    --lfx-product-soft: #eef2f6;
    --lfx-product-surface: #ffffff;
    --lfx-product-line: #d9e1ea;
    --lfx-product-line-strong: #b9c6d6;
    --lfx-product-blue: #075fc0;
    --lfx-product-blue-dark: #064b96;
    --lfx-product-green: #157347;
    --lfx-product-warm: #fff4d7;
    --lfx-product-font: "Geist", "Satoshi", "Cabinet Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 12% 12%, rgba(7, 95, 192, 0.12), transparent 34rem),
        radial-gradient(circle at 88% 4%, rgba(21, 115, 71, 0.11), transparent 30rem),
        linear-gradient(180deg, #fbfcfe 0%, var(--lfx-product-bg) 38%, #f7f8fb 100%);
    color: var(--lfx-product-ink);
    font-family: var(--lfx-product-font);
    overflow-x: hidden;
    padding: clamp(32px, 5vw, 64px) 0 clamp(72px, 9vw, 128px);
    position: relative;
}

.lfx-products-page::before,
.lfx-product-page::before {
    background-image:
        linear-gradient(rgba(17, 24, 39, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 24, 39, 0.03) 1px, transparent 1px);
    background-size: 42px 42px;
    content: "";
    inset: 0;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 70%);
    opacity: 0.5;
    pointer-events: none;
    position: absolute;
}

.lfx-products-page > .container-xl,
.lfx-product-page > .container-xl {
    position: relative;
    z-index: 1;
}

.lfx-eyebrow {
    color: var(--lfx-product-blue);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.lfx-products-header {
    align-items: stretch;
    display: grid;
    gap: clamp(24px, 4vw, 48px);
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    margin-bottom: clamp(32px, 6vw, 72px);
    min-height: 420px;
}

.lfx-products-header-copy {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1180px;
}

.lfx-products-header h1 {
    color: var(--lfx-product-ink);
    font-size: clamp(42px, 6vw, 86px);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 0.95;
    margin: 0;
    max-width: 1080px;
}

.lfx-products-lead {
    color: var(--lfx-product-muted);
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.55;
    margin: 22px 0 0;
    max-width: 760px;
}

.lfx-products-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.lfx-products-header-actions .btn,
.lfx-add-row .btn {
    border-radius: 999px;
    font-weight: 850;
    min-height: 48px;
    padding-left: 22px;
    padding-right: 22px;
}

.lfx-products-header-actions .btn-primary,
.lfx-add-row .btn-primary {
    background: var(--lfx-product-ink);
    border-color: var(--lfx-product-ink);
    color: #fff;
}

.lfx-products-header-actions .btn-primary:hover,
.lfx-add-row .btn-primary:hover,
.lfx-add-row .btn-primary:focus {
    background: var(--lfx-product-blue-dark);
    border-color: var(--lfx-product-blue-dark);
    color: #fff;
}

.lfx-add-row .btn.is-loading {
    opacity: 0.72;
    pointer-events: none;
}

.lfx-products-header-actions .btn-outline-primary {
    background: rgba(255, 255, 255, 0.72);
    border-color: var(--lfx-product-line-strong);
    color: var(--lfx-product-ink);
}

.lfx-products-hero-panel {
    background:
        linear-gradient(180deg, rgba(17, 24, 39, 0.08), rgba(17, 24, 39, 0.55)),
        #182230;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 18px;
    box-shadow: 0 28px 80px rgba(17, 24, 39, 0.18);
    color: #fff;
    min-height: 420px;
    overflow: hidden;
    padding: 22px;
    position: relative;
}

.lfx-products-hero-image {
    background:
        linear-gradient(135deg, rgba(7, 95, 192, 0.2), rgba(0, 0, 0, 0.08)),
        url("https://picsum.photos/seed/lotoflex-productos-premium/900/1100");
    background-position: center;
    background-size: cover;
    filter: contrast(1.08) saturate(0.88);
    inset: 0;
    opacity: 0.92;
    position: absolute;
    transform: scale(1.02);
    transition: transform 700ms ease;
}

.lfx-products-hero-panel:hover .lfx-products-hero-image {
    transform: scale(1.07);
}

.lfx-products-hero-panel::after {
    background: linear-gradient(180deg, transparent 20%, rgba(10, 15, 23, 0.72) 100%);
    content: "";
    inset: 0;
    position: absolute;
}

.lfx-products-hero-metric,
.lfx-products-hero-panel p {
    position: relative;
    z-index: 1;
}

.lfx-products-hero-metric {
    background: rgba(255, 255, 255, 0.88);
    border-radius: 14px;
    color: var(--lfx-product-ink);
    display: inline-flex;
    flex-direction: column;
    min-width: 132px;
    padding: 14px 16px;
}

.lfx-products-hero-metric span {
    color: var(--lfx-product-muted);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.lfx-products-hero-metric strong {
    font-size: 42px;
    line-height: 1;
}

.lfx-products-hero-panel p {
    bottom: 22px;
    font-size: 17px;
    font-weight: 750;
    left: 22px;
    line-height: 1.35;
    margin: 0;
    max-width: 300px;
    position: absolute;
    right: 22px;
}

.lfx-product-grid {
    display: grid;
    gap: 18px;
    grid-auto-flow: dense;
    grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
}

.lfx-product-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(185, 198, 214, 0.72);
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(17, 24, 39, 0.08);
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.lfx-product-card:hover {
    border-color: rgba(7, 95, 192, 0.42);
    box-shadow: 0 26px 70px rgba(17, 24, 39, 0.14);
    transform: translateY(-5px);
}

.lfx-product-card-media {
    align-items: center;
    aspect-ratio: 1 / 0.78;
    background: var(--lfx-product-soft);
    color: var(--lfx-product-muted);
    display: flex;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.lfx-product-card-media img,
.lfx-product-media img {
    display: block;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: filter 700ms ease, transform 700ms ease;
    width: 100%;
}

.lfx-product-card:hover .lfx-product-card-media img,
.lfx-product-media-shell:hover .lfx-product-media img {
    filter: contrast(1.08) saturate(0.94);
    transform: scale(1.055);
}

.lfx-product-card-placeholder {
    align-items: center;
    background: #fff;
    border: 1px solid var(--lfx-product-line);
    border-radius: 999px;
    color: var(--lfx-product-ink);
    display: inline-flex;
    font-size: 13px;
    font-weight: 850;
    min-height: 40px;
    padding: 0 18px;
}

.lfx-product-card-badge,
.lfx-product-badge {
    align-items: center;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 999px;
    color: var(--lfx-product-ink);
    display: inline-flex;
    font-size: 12px;
    font-weight: 850;
    line-height: 1;
    min-height: 30px;
    padding: 8px 12px;
}

.lfx-product-card-badge {
    left: 14px;
    position: absolute;
    top: 14px;
}

.lfx-product-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
}

.lfx-product-card-kicker {
    color: var(--lfx-product-muted);
    display: flex;
    font-size: 12px;
    font-weight: 850;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.lfx-product-card h2 {
    color: var(--lfx-product-ink);
    font-size: clamp(20px, 2.2vw, 27px);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.02;
    margin: 0 0 12px;
}

.lfx-product-card h2 a {
    color: inherit;
    text-decoration: none;
}

.lfx-product-card-body p {
    color: var(--lfx-product-muted);
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 18px;
}

.lfx-product-meta {
    align-items: center;
    border-top: 1px solid var(--lfx-product-line);
    color: var(--lfx-product-muted);
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 16px;
}

.lfx-product-meta strong {
    color: var(--lfx-product-ink);
    font-size: 20px;
    font-weight: 900;
}

.lfx-product-meta span {
    font-size: 13px;
    font-weight: 750;
    text-align: right;
}

.lfx-product-card-link {
    align-items: center;
    color: var(--lfx-product-blue);
    display: inline-flex;
    font-weight: 900;
    gap: 8px;
    margin-top: 16px;
    text-decoration: none;
}

.lfx-product-card-link span {
    transition: transform 180ms ease;
}

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

.lfx-products-pagination {
    margin-top: 34px;
}

.lfx-products-assurance {
    background: var(--lfx-product-ink);
    border-radius: 20px;
    color: #fff;
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: clamp(48px, 8vw, 96px);
    overflow: hidden;
}

.lfx-products-assurance div {
    background: rgba(255, 255, 255, 0.055);
    padding: clamp(22px, 3vw, 34px);
}

.lfx-products-assurance span {
    color: #9cc9ff;
    display: block;
    font-size: 12px;
    font-weight: 850;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.lfx-products-assurance strong {
    display: block;
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.2;
}

.lfx-back-link {
    align-items: center;
    color: var(--lfx-product-muted);
    display: inline-flex;
    font-size: 14px;
    font-weight: 850;
    gap: 10px;
    margin-bottom: 24px;
    text-decoration: none;
}

.lfx-back-link:hover {
    color: var(--lfx-product-blue);
}

.lfx-back-link span {
    align-items: center;
    background: #fff;
    border: 1px solid var(--lfx-product-line);
    border-radius: 999px;
    display: inline-flex;
    height: 32px;
    justify-content: center;
    width: 32px;
}

.lfx-product-detail {
    align-items: start;
    display: grid;
    gap: clamp(24px, 4vw, 52px);
    grid-template-columns: minmax(0, 7fr) minmax(360px, 5fr);
}

.lfx-product-media-shell {
    position: sticky;
    top: 112px;
}

.lfx-product-media,
.lfx-product-placeholder {
    aspect-ratio: 1 / 1;
    background: var(--lfx-product-soft);
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 24px;
    box-shadow: 0 30px 90px rgba(17, 24, 39, 0.16);
    overflow: hidden;
}

.lfx-product-placeholder {
    align-items: center;
    color: var(--lfx-product-muted);
    display: flex;
    flex-direction: column;
    gap: 14px;
    justify-content: center;
    min-height: 360px;
}

.lfx-product-placeholder-mark {
    background: var(--lfx-product-surface);
    border: 1px solid var(--lfx-product-line-strong);
    border-radius: 12px;
    box-shadow: inset 0 -16px 0 rgba(7, 95, 192, 0.08);
    display: block;
    height: 78px;
    position: relative;
    width: 92px;
}

.lfx-product-placeholder-mark::before,
.lfx-product-placeholder-mark::after {
    background: var(--lfx-product-line-strong);
    content: "";
    height: 1px;
    left: 14px;
    position: absolute;
    right: 14px;
}

.lfx-product-placeholder-mark::before {
    top: 24px;
}

.lfx-product-placeholder-mark::after {
    top: 39px;
}

.lfx-product-media-caption {
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(185, 198, 214, 0.72);
    border-radius: 999px;
    box-shadow: 0 18px 50px rgba(17, 24, 39, 0.1);
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin: -28px auto 0;
    max-width: calc(100% - 48px);
    padding: 12px 18px;
    position: relative;
    z-index: 2;
}

.lfx-product-media-caption span {
    color: var(--lfx-product-muted);
    font-size: 13px;
    font-weight: 850;
    text-transform: uppercase;
}

.lfx-product-media-caption strong {
    color: var(--lfx-product-ink);
    font-size: 15px;
}

.lfx-product-info {
    align-self: start;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(185, 198, 214, 0.72);
    border-radius: 24px;
    box-shadow: 0 24px 72px rgba(17, 24, 39, 0.12);
    padding: clamp(22px, 3vw, 34px);
}

.lfx-product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    min-height: 0;
}

.lfx-product-badge {
    background: rgba(21, 115, 71, 0.1);
    border-color: rgba(21, 115, 71, 0.18);
    color: var(--lfx-product-green);
}

.lfx-product-badge-private {
    background: var(--lfx-product-warm);
    border-color: rgba(122, 77, 0, 0.18);
    color: #744b00;
}

.lfx-product-title h1 {
    color: var(--lfx-product-ink);
    font-size: clamp(38px, 5vw, 64px);
    font-weight: 950;
    letter-spacing: 0;
    line-height: 0.96;
    margin: 0;
}

.lfx-product-price {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 0;
}

.lfx-product-price span {
    color: var(--lfx-product-ink);
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 950;
    line-height: 1;
}

.lfx-product-price small {
    color: var(--lfx-product-muted);
    font-size: 13px;
    font-weight: 850;
}

.lfx-product-description {
    color: var(--lfx-product-muted);
    font-size: 16px;
    line-height: 1.72;
    margin: 24px 0;
}

.lfx-product-description > :last-child {
    margin-bottom: 0;
}

.lfx-product-summary {
    border: 1px solid var(--lfx-product-line);
    border-radius: 16px;
    display: grid;
    gap: 0;
    grid-template-columns: 1fr 1fr;
    margin: 24px 0;
    overflow: hidden;
}

.lfx-product-summary-item {
    background: #fff;
    padding: 18px;
}

.lfx-product-summary-item + .lfx-product-summary-item {
    border-left: 1px solid var(--lfx-product-line);
}

.lfx-product-summary-item.is-available {
    box-shadow: inset 4px 0 0 var(--lfx-product-green);
}

.lfx-product-summary-item.is-empty {
    box-shadow: inset 4px 0 0 #b42318;
}

.lfx-product-summary-label {
    color: var(--lfx-product-muted);
    display: block;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.lfx-product-summary-item strong {
    color: var(--lfx-product-ink);
    display: block;
    font-size: 16px;
    line-height: 1.3;
}

.lfx-product-fulfillment-note {
    align-items: flex-start;
    background: var(--lfx-product-soft);
    border: 1px solid var(--lfx-product-line);
    border-radius: 16px;
    display: flex;
    gap: 12px;
    margin-bottom: 22px;
    padding: 16px;
}

.lfx-product-note-dot {
    background: var(--lfx-product-blue);
    border-radius: 999px;
    box-shadow: 0 0 0 5px rgba(7, 95, 192, 0.12);
    flex: 0 0 auto;
    height: 8px;
    margin-top: 8px;
    width: 8px;
}

.lfx-product-fulfillment-note p {
    color: var(--lfx-product-muted);
    font-size: 14px;
    line-height: 1.55;
    margin: 0;
}

.lfx-product-journey {
    display: grid;
    gap: 10px;
    margin: 0 0 24px;
}

.lfx-product-journey div {
    align-items: start;
    background: #fff;
    border: 1px solid var(--lfx-product-line);
    border-radius: 14px;
    display: grid;
    gap: 4px 12px;
    grid-template-columns: 42px 1fr;
    padding: 14px;
}

.lfx-product-journey span {
    align-items: center;
    background: var(--lfx-product-ink);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.lfx-product-journey strong {
    color: var(--lfx-product-ink);
    font-size: 15px;
    font-weight: 900;
}

.lfx-product-journey p {
    color: var(--lfx-product-muted);
    font-size: 13px;
    grid-column: 2;
    line-height: 1.45;
    margin: -8px 0 0;
}

.lfx-product-add-form {
    background: #fff;
    border: 1px solid var(--lfx-product-line);
    border-radius: 18px;
    margin-top: 24px;
    padding: 16px;
}

.lfx-product-form-head {
    align-items: flex-end;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 12px;
}

.lfx-product-form-head .form-label {
    color: var(--lfx-product-ink);
    font-weight: 900;
    margin: 0;
}

.lfx-product-form-head span {
    color: var(--lfx-product-muted);
    font-size: 13px;
    font-weight: 750;
}

.lfx-add-row {
    display: grid;
    gap: 12px;
    grid-template-columns: 104px 1fr;
}

.lfx-add-row .form-control {
    border-color: var(--lfx-product-line-strong);
    border-radius: 999px;
    font-weight: 900;
    min-height: 48px;
    text-align: center;
}

.lfx-product-message {
    color: var(--lfx-product-muted);
    font-size: 14px;
    font-weight: 800;
    margin-top: 12px;
    min-height: 24px;
}

.lfx-product-message a {
    color: var(--lfx-product-blue);
}

.lfx-products-animate {
    opacity: 0;
    transform: translateY(22px) scale(0.985);
}

.lfx-products-animate.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity 700ms ease, transform 700ms ease;
}

.lfx-product-page a:focus-visible,
.lfx-product-page button:focus-visible,
.lfx-product-page input:focus-visible,
.lfx-products-page a:focus-visible,
.lfx-products-page button:focus-visible {
    outline: 3px solid rgba(7, 95, 192, 0.28);
    outline-offset: 3px;
}

@media (max-width: 992px) {
    .lfx-products-header,
    .lfx-product-detail {
        grid-template-columns: 1fr;
    }

    .lfx-products-header {
        min-height: 0;
    }

    .lfx-products-hero-panel {
        min-height: 340px;
    }

    .lfx-product-media-shell {
        position: static;
    }
}

@media (max-width: 768px) {
    .lfx-products-page,
    .lfx-product-page {
        padding-top: 28px;
    }

    .lfx-products-header h1,
    .lfx-product-title h1 {
        font-size: clamp(36px, 11vw, 52px);
    }

    .lfx-products-assurance,
    .lfx-product-summary {
        grid-template-columns: 1fr;
    }

    .lfx-product-summary-item + .lfx-product-summary-item {
        border-left: 0;
        border-top: 1px solid var(--lfx-product-line);
    }

    .lfx-product-form-head {
        align-items: flex-start;
        display: block;
    }

    .lfx-product-form-head span {
        display: block;
        margin-top: 4px;
    }
}

@media (max-width: 480px) {
    .lfx-products-header-actions,
    .lfx-add-row {
        grid-template-columns: 1fr;
    }

    .lfx-products-header-actions .btn {
        width: 100%;
    }

    .lfx-add-row {
        display: grid;
    }

    .lfx-add-row .form-control {
        text-align: left;
    }

    .lfx-product-media-caption {
        align-items: flex-start;
        border-radius: 16px;
        flex-direction: column;
        gap: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lfx-product-card,
    .lfx-product-card-media img,
    .lfx-product-media img,
    .lfx-products-hero-image,
    .lfx-products-animate,
    .lfx-products-animate.is-visible {
        transition: none;
        transform: none;
    }

    .lfx-products-animate {
        opacity: 1;
    }
}
