:root {
    --fs-primary: #423289;
    --fs-primary-light: #6f5ac4;
    --fs-primary-dark: #261b5c;
    --fs-secondary: #ed7425;
    --fs-secondary-dark: #c95512;
    --fs-background: #f5f6fb;
    --fs-surface: #ffffff;
    --fs-dark: #0d1020;
    --fs-dark-soft: #151a31;
    --fs-text: #202436;
    --fs-muted: #6f7485;
    --fs-border: #e5e7f0;
    --fs-radius: 18px;
    --fs-shadow: 0 18px 60px rgba(31, 24, 76, .13);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--fs-text);
    background: var(--fs-background);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.container {
    width: min(1160px, calc(100% - 32px));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: white;
    background: rgba(13, 16, 32, .92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.header-inner,
.footer-inner,
.section-heading,
.split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.header-inner { min-height: 72px; }

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--fs-primary-light), var(--fs-secondary));
}

.main-nav { display: flex; gap: 28px; color: rgba(255, 255, 255, .78); }
.main-nav a:hover { color: white; }

.hero {
    overflow: hidden;
    padding: 96px 0;
    color: white;
    background:
        radial-gradient(circle at 85% 10%, rgba(237, 116, 37, .28), transparent 28%),
        radial-gradient(circle at 10% 90%, rgba(111, 90, 196, .35), transparent 32%),
        var(--fs-dark);
}

.hero-grid,
.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
    gap: 56px;
    align-items: center;
}

.hero h1,
.product-detail h1 {
    margin: 14px 0 20px;
    font-size: clamp(2.5rem, 5vw, 5rem);
    line-height: 1.04;
    letter-spacing: -.055em;
}

.hero p {
    max-width: 680px;
    color: rgba(255, 255, 255, .72);
    font-size: 1.12rem;
}

.eyebrow {
    color: var(--fs-secondary);
    font-weight: 800;
    font-size: .78rem;
    letter-spacing: .14em;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 800;
    transition: transform .18s ease, opacity .18s ease;
}

.button:hover { transform: translateY(-2px); }
.button:disabled { cursor: wait; opacity: .65; transform: none; }

.button-primary {
    color: white;
    background: linear-gradient(135deg, var(--fs-secondary), var(--fs-secondary-dark));
    box-shadow: 0 14px 30px rgba(237, 116, 37, .28);
}

.button-secondary {
    color: white;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
}

.button-block { width: 100%; }

.hero-panel {
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 28px;
    background: rgba(255, 255, 255, .06);
    box-shadow: var(--fs-shadow);
}

.metric-card {
    padding: 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .07);
}

.metric-card + .metric-card { margin-top: 12px; }
.metric-card strong, .metric-card span { display: block; }
.metric-card span { margin-top: 4px; color: rgba(255, 255, 255, .62); }

.section { padding: 84px 0; }
.section-dark { color: white; background: var(--fs-dark); }

.section h2 {
    margin: 8px 0 0;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.1;
    letter-spacing: -.045em;
}

.currency-selector { display: flex; align-items: center; gap: 10px; }

.currency-selector select,
.checkout-card input {
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid var(--fs-border);
    border-radius: 12px;
    background: white;
}

.product-grid,
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 34px;
}

.product-card,
.feature-grid article,
.checkout-card {
    border: 1px solid var(--fs-border);
    border-radius: var(--fs-radius);
    background: var(--fs-surface);
    box-shadow: 0 10px 35px rgba(31, 24, 76, .07);
}

.product-card { padding: 24px; }
.product-card h3 { margin: 14px 0 8px; }
.product-card p { min-height: 76px; color: var(--fs-muted); }

.product-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 17px;
    color: white;
    font-size: 1.4rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--fs-primary), var(--fs-secondary));
}

.tag {
    display: inline-flex;
    margin-top: 18px;
    padding: 5px 10px;
    color: var(--fs-primary);
    border-radius: 999px;
    background: rgba(66, 50, 137, .09);
    font-size: .72rem;
    font-weight: 900;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 18px;
    border-top: 1px solid var(--fs-border);
}

.product-footer a { color: var(--fs-secondary-dark); font-weight: 800; }

.feature-grid article {
    padding: 24px;
    color: white;
    background: var(--fs-dark-soft);
    border-color: rgba(255, 255, 255, .08);
}

.feature-grid article p { color: rgba(255, 255, 255, .64); }
.split > * { flex: 1; }
.split > p { color: var(--fs-muted); font-size: 1.1rem; }

.product-detail { align-items: start; margin-top: 28px; }
.product-copy .lead { color: var(--fs-muted); font-size: 1.25rem; }
.rich-text { margin-top: 28px; }

.checkout-card {
    position: sticky;
    top: 96px;
    padding: 26px;
}

.checkout-card label {
    display: block;
    margin: 22px 0 8px;
    font-weight: 800;
}

.checkout-card input { width: 100%; }
.checkout-label { display: block; color: var(--fs-muted); }

.checkout-price {
    display: block;
    margin-top: 2px;
    font-size: 2rem;
}

.payment-tabs {
    display: flex;
    gap: 8px;
    margin: 22px 0;
    overflow-x: auto;
}

.payment-tab {
    padding: 9px 13px;
    border: 1px solid var(--fs-border);
    border-radius: 10px;
    background: white;
    cursor: pointer;
    white-space: nowrap;
}

.payment-tab.is-active {
    color: white;
    background: var(--fs-primary);
    border-color: var(--fs-primary);
}

.payment-panel { display: none; }
.payment-panel.is-active { display: block; }

.payment-message,
.notice {
    margin-top: 16px;
    padding: 13px;
    border-radius: 11px;
    background: #f1f3f9;
}

.payment-message:empty { display: none; }
.payment-message.is-success { color: #0b5d35; background: #e8f7ef; }
.payment-message.is-warning { color: #7a4b00; background: #fff6df; }
.payment-message.is-error { color: #922323; background: #fff0f0; }

.wallet-qr {
    display: block;
    width: min(240px, 100%);
    margin: 18px auto;
    border-radius: 16px;
}

.wallet-data { margin: 18px 0; }

.wallet-data div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 9px 0;
    border-bottom: 1px solid var(--fs-border);
}

.wallet-data dt { color: var(--fs-muted); }
.wallet-data dd { margin: 0; font-weight: 800; text-align: right; }
.back-link { color: var(--fs-primary); font-weight: 800; }

.empty-state {
    padding: 40px;
    text-align: center;
    border: 1px dashed var(--fs-border);
    border-radius: var(--fs-radius);
    background: white;
}

.site-footer {
    padding: 42px 0;
    color: rgba(255, 255, 255, .72);
    background: #080a13;
}

.site-footer p { margin: 4px 0; }

@media (max-width: 900px) {
    .hero-grid, .product-detail, .product-grid, .feature-grid {
        grid-template-columns: 1fr;
    }

    .product-card p { min-height: auto; }
    .checkout-card { position: static; }
    .main-nav { display: none; }
}

@media (max-width: 620px) {
    .hero { padding: 68px 0; }
    .section { padding: 60px 0; }

    .header-inner,
    .section-heading,
    .split,
    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .header-inner { min-height: 64px; justify-content: center; }
    .hero-actions, .hero-actions .button { width: 100%; }
    .product-detail h1 { font-size: 2.5rem; }
}

/* ========================================================================== 
   FASE 3 - MARKETPLACE PÚBLICO, CATÁLOGO Y PWA
   ========================================================================== */

:root {
    --fs-primary-rgb: 66, 50, 137;
    --fs-secondary-rgb: 237, 116, 37;
    --fs-surface: #ffffff;
    --fs-surface-soft: #f7f7fb;
    --fs-ink: #202331;
    --fs-muted: #6f7485;
    --fs-border: #e7e7ef;
    --fs-shadow-lg: 0 28px 80px rgba(32, 35, 49, .14);
}

.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 92px 0; }
.eyebrow { display: inline-block; color: var(--fs-secondary); font-size: .78rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }

.site-header { position: sticky; inset-block-start: 0; z-index: 100; background: rgba(20, 16, 45, .94); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(255,255,255,.08); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.public-logo img { display: block; width: min(190px, 42vw); max-height: 52px; object-fit: contain; object-position: left center; }
.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav a, .nav-install-button { color: rgba(255,255,255,.84); font-weight: 700; font-size: .94rem; text-decoration: none; border: 0; background: transparent; cursor: pointer; }
.main-nav a:hover, .nav-install-button:hover { color: #fff; }
.main-nav .nav-account { padding: 11px 18px; border-radius: 12px; background: var(--fs-secondary); color: #fff; }
.mobile-nav-toggle { display: none; border: 0; background: rgba(255,255,255,.1); color: #fff; width: 42px; height: 42px; border-radius: 12px; font-size: 1.35rem; }

.market-hero { position: relative; overflow: hidden; padding: 110px 0 100px; color: #fff; background: radial-gradient(circle at 75% 25%, rgba(237,116,37,.28), transparent 30%), linear-gradient(135deg, #17122f 0%, #2d226c 50%, #423289 100%); }
.market-hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr); align-items: center; gap: 70px; }
.market-hero-copy h1 { margin: 14px 0 20px; max-width: 760px; font-size: clamp(2.9rem, 6vw, 5.7rem); line-height: .97; letter-spacing: -.055em; }
.market-hero-copy > p { max-width: 670px; font-size: 1.18rem; line-height: 1.75; color: rgba(255,255,255,.78); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.button-glass { color: #fff; border: 1px solid rgba(255,255,255,.24); background: rgba(255,255,255,.08); backdrop-filter: blur(12px); }
.hero-trust-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 32px; color: rgba(255,255,255,.78); font-size: .88rem; font-weight: 700; }
.hero-showcase { position: relative; min-height: 460px; display: grid; place-items: center; }
.showcase-window { width: 100%; max-width: 520px; overflow: hidden; border: 1px solid rgba(255,255,255,.16); border-radius: 28px; background: rgba(255,255,255,.96); box-shadow: 0 35px 90px rgba(5, 4, 17, .38); transform: perspective(900px) rotateY(-5deg) rotateX(2deg); }
.showcase-top { height: 48px; display: flex; align-items: center; gap: 8px; padding: 0 18px; background: #f1f1f6; color: #8a8d99; }
.showcase-top span { width: 10px; height: 10px; border-radius: 50%; background: #d0d1da; }
.showcase-top b { margin-left: 12px; font-size: .74rem; }
.showcase-body { min-height: 330px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: 40px; color: var(--fs-ink); text-align: center; background: linear-gradient(180deg, #fff, #f6f4ff); }
.showcase-body > img { width: min(280px, 85%); max-height: 190px; object-fit: contain; }
.showcase-body strong { display: block; font-size: 1.28rem; }
.showcase-body small { color: var(--fs-muted); }
.showcase-stats { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.showcase-stats span { padding: 13px; border-radius: 14px; background: #fff; box-shadow: 0 10px 28px rgba(66,50,137,.08); color: var(--fs-muted); font-size: .72rem; }
.showcase-stats b { display: block; color: var(--fs-primary); font-size: 1rem; }
.floating-badge { position: absolute; padding: 11px 17px; border-radius: 999px; background: #fff; color: var(--fs-primary); box-shadow: 0 18px 40px rgba(10,8,29,.25); font-size: .82rem; font-weight: 900; }
.badge-one { left: -18px; top: 65px; }.badge-two { right: -10px; bottom: 54px; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(3px); opacity: .35; }.hero-orb-one { width: 360px; height: 360px; right: -100px; top: -90px; background: var(--fs-secondary); }.hero-orb-two { width: 280px; height: 280px; left: -100px; bottom: -130px; background: #8c7cff; }

.market-strip { position: relative; z-index: 5; margin-top: -1px; background: #fff; border-bottom: 1px solid var(--fs-border); }
.market-strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.market-strip article { padding: 28px 24px; border-right: 1px solid var(--fs-border); }.market-strip article:last-child { border-right: 0; }
.market-strip strong, .market-strip span { display: block; }.market-strip strong { color: var(--fs-ink); }.market-strip span { margin-top: 5px; color: var(--fs-muted); font-size: .82rem; }

.market-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 38px; }
.market-heading h2 { margin: 8px 0 10px; font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.04em; }.market-heading p { max-width: 700px; color: var(--fs-muted); line-height: 1.7; }
.currency-selector { min-width: 220px; }.currency-selector label { display: block; margin-bottom: 7px; color: var(--fs-muted); font-size: .78rem; font-weight: 800; }.currency-selector select { width: 100%; }
.marketplace-products { background: var(--fs-surface-soft); }
.market-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.market-product-card { overflow: hidden; border: 1px solid var(--fs-border); border-radius: 24px; background: #fff; box-shadow: 0 16px 44px rgba(32,35,49,.07); transition: transform .25s ease, box-shadow .25s ease; }
.market-product-card:hover { transform: translateY(-7px); box-shadow: 0 28px 70px rgba(66,50,137,.15); }
.product-cover { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; background: #eceaf7; }.product-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }.market-product-card:hover .product-cover img { transform: scale(1.04); }
.product-badges { position: absolute; inset: 16px 16px auto; display: flex; flex-wrap: wrap; gap: 8px; }.badge-new,.badge-best { padding: 6px 10px; border-radius: 999px; color: #fff; font-size: .72rem; font-weight: 900; }.badge-new { background: var(--fs-secondary); }.badge-best { background: var(--fs-primary); }
.product-card-body { padding: 24px; }.product-meta { display: flex; justify-content: space-between; gap: 14px; color: var(--fs-primary); font-size: .74rem; font-weight: 900; text-transform: uppercase; }.product-meta small { color: var(--fs-muted); text-transform: none; }
.product-card-body h3 { margin: 12px 0 9px; font-size: 1.28rem; }.product-card-body h3 a { color: var(--fs-ink); text-decoration: none; }.product-card-body > p { min-height: 68px; color: var(--fs-muted); line-height: 1.55; }
.product-card-footer { display: flex; align-items: end; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid var(--fs-border); }.product-card-footer small,.product-card-footer strong { display: block; }.product-card-footer small { color: var(--fs-muted); }.product-card-footer strong { margin-top: 3px; color: var(--fs-primary); font-size: 1.25rem; }.round-link { color: var(--fs-secondary); font-size: .82rem; font-weight: 900; text-decoration: none; }
.section-action { margin-top: 34px; text-align: center; }.empty-market-state { grid-column: 1/-1; padding: 60px; text-align: center; border: 1px dashed #cbc8de; border-radius: 24px; background: #fff; }.empty-market-state img { width: 90px; }.empty-market-state h3 { margin: 16px 0 8px; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }.service-card { padding: 30px; border: 1px solid var(--fs-border); border-radius: 22px; background: #fff; }.service-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; color: #fff; background: linear-gradient(135deg, var(--fs-primary), #7564cb); font-size: 1.25rem; font-weight: 900; }.service-card h3 { margin: 20px 0 9px; }.service-card p { color: var(--fs-ink); font-weight: 700; }.service-card small { display: block; margin-top: 10px; color: var(--fs-muted); line-height: 1.6; }
.value-section { color: #fff; background: linear-gradient(135deg, #18132f, #372b79); }.value-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: center; }.value-grid h2 { margin: 10px 0 18px; font-size: clamp(2.2rem, 4vw, 3.7rem); }.value-grid > div:first-child p { color: rgba(255,255,255,.72); line-height: 1.7; }.value-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }.value-cards article { padding: 26px; border: 1px solid rgba(255,255,255,.11); border-radius: 20px; background: rgba(255,255,255,.07); }.value-cards b,.value-cards strong,.value-cards span { display: block; }.value-cards b { color: var(--fs-secondary); }.value-cards strong { margin: 14px 0 6px; }.value-cards span { color: rgba(255,255,255,.65); }
.testimonials-section { background: #faf9ff; }.testimonial-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }.testimonial-grid blockquote { margin: 0; padding: 30px; border-radius: 22px; background: #fff; box-shadow: 0 18px 50px rgba(66,50,137,.08); }.testimonial-grid p { color: var(--fs-ink); line-height: 1.7; }.testimonial-grid footer strong,.testimonial-grid footer span { display: block; }.testimonial-grid footer span { color: var(--fs-muted); font-size: .82rem; }.stars { color: var(--fs-secondary); letter-spacing: .08em; }
.faq-layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: 70px; }.faq-layout h2 { margin: 10px 0 16px; font-size: clamp(2rem,4vw,3.2rem); }.faq-layout > div:first-child p { color: var(--fs-muted); line-height: 1.7; }.faq-list details { border-bottom: 1px solid var(--fs-border); }.faq-list summary { display: flex; justify-content: space-between; gap: 20px; padding: 21px 0; cursor: pointer; color: var(--fs-ink); font-weight: 800; list-style: none; }.faq-list summary::-webkit-details-marker { display:none; }.faq-list details p { padding: 0 0 22px; color: var(--fs-muted); line-height: 1.7; }
.market-cta { padding: 54px 0; color: #fff; background: linear-gradient(110deg, var(--fs-primary), #291e65 72%, var(--fs-secondary)); }.market-cta .container { display: grid; grid-template-columns: 180px 1fr auto; gap: 34px; align-items: center; }.market-cta img { width: 170px; max-height: 90px; object-fit: contain; }.market-cta h2 { margin: 7px 0 0; }.button-light { background: #fff; color: var(--fs-primary); }

.catalog-hero { padding: 86px 0 70px; color: #fff; background: linear-gradient(130deg, #17122f, var(--fs-primary)); }.catalog-hero h1 { max-width: 850px; margin: 12px 0 16px; font-size: clamp(2.4rem,5vw,4.6rem); }.catalog-hero p { max-width: 720px; color: rgba(255,255,255,.74); font-size: 1.1rem; }
.catalog-section { background: #f7f7fb; }.catalog-layout { display: grid; grid-template-columns: 270px 1fr; gap: 30px; align-items: start; }.catalog-filters { position: sticky; top: 100px; padding: 24px; border: 1px solid var(--fs-border); border-radius: 22px; background: #fff; }.catalog-filters h2 { margin: 0 0 20px; }.catalog-filters label { display: block; margin-bottom: 16px; font-size: .82rem; font-weight: 800; }.catalog-filters input,.catalog-filters select { width: 100%; margin-top: 7px; }.catalog-filter-actions { display: grid; gap: 10px; }.catalog-results-header { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 22px; }.catalog-results-header small { color: var(--fs-muted); }.catalog-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 35px; }.catalog-pagination a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--fs-border); color: var(--fs-ink); text-decoration: none; }.catalog-pagination a.is-active { color: #fff; border-color: var(--fs-primary); background: var(--fs-primary); }

.product-detail-hero { padding: 44px 0 78px; color: #fff; background: linear-gradient(135deg,#17122f,#3c2e86); }.light-link { color: rgba(255,255,255,.75); }.product-detail-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 58px; margin-top: 32px; align-items: center; }.product-main-image { position: relative; overflow: hidden; aspect-ratio: 16/10; border-radius: 26px; background: #fff; box-shadow: 0 30px 80px rgba(8,5,25,.35); }.product-main-image img { width:100%;height:100%;object-fit:cover; }.product-main-image .badge-new { position:absolute;inset:18px auto auto 18px; }.product-gallery { display:flex;gap:10px;margin-top:14px;overflow:auto;padding-bottom:5px; }.product-gallery button { flex:0 0 92px;height:66px;padding:0;border:2px solid transparent;border-radius:12px;overflow:hidden;background:#fff;cursor:pointer; }.product-gallery button.is-active { border-color:var(--fs-secondary); }.product-gallery img { width:100%;height:100%;object-fit:cover; }.product-label-row { display:flex;gap:12px;align-items:center;color:rgba(255,255,255,.68); }.light-tag { color:#fff;background:rgba(255,255,255,.12); }.product-summary-column h1 { margin:15px 0 16px;font-size:clamp(2.5rem,5vw,4.4rem);line-height:1; }.product-lead { color:rgba(255,255,255,.78);font-size:1.12rem;line-height:1.7; }.product-taxonomies,.product-benefits,.product-links { display:flex;flex-wrap:wrap;gap:10px;margin-top:22px; }.product-taxonomies span { padding:7px 11px;border-radius:999px;background:rgba(255,255,255,.1);font-size:.78rem; }.product-benefits { display:grid;gap:8px;color:rgba(255,255,255,.82);font-size:.9rem; }
.product-commerce-section { background:#f7f7fb; }.product-commerce-grid { display:grid;grid-template-columns:minmax(0,1fr) 390px;gap:34px;align-items:start; }.product-content-tabs { min-width:0; }.product-tab-buttons { display:flex;gap:8px;overflow:auto;margin-bottom:18px;padding:6px;border:1px solid var(--fs-border);border-radius:16px;background:#fff; }.product-tab-buttons button { border:0;border-radius:11px;padding:12px 17px;background:transparent;color:var(--fs-muted);font-weight:800;cursor:pointer;white-space:nowrap; }.product-tab-buttons button.is-active { color:#fff;background:var(--fs-primary); }.product-tab-panel { display:none;padding:34px;border:1px solid var(--fs-border);border-radius:22px;background:#fff; }.product-tab-panel.is-active { display:block; }.rich-content { color:var(--fs-muted);line-height:1.8; }.tag-cloud { display:flex;flex-wrap:wrap;gap:8px;margin-top:24px; }.tag-cloud span { padding:7px 11px;border-radius:999px;background:#f1effa;color:var(--fs-primary);font-size:.78rem;font-weight:800; }.feature-detail-grid { display:grid;grid-template-columns:repeat(2,1fr);gap:16px; }.feature-detail-grid article { display:flex;gap:13px;padding:18px;border-radius:16px;background:#f8f7fc; }.feature-detail-grid article > span { color:var(--fs-secondary);font-weight:900; }.feature-detail-grid h3 { margin:0 0 5px;font-size:1rem; }.feature-detail-grid p,.requirements-list p { margin:0;color:var(--fs-muted);line-height:1.55; }.requirements-list { display:grid;gap:12px; }.requirements-list article { display:grid;grid-template-columns:90px 1fr;gap:16px;padding:18px;border:1px solid var(--fs-border);border-radius:15px; }.requirements-list article > span { color:var(--fs-primary);font-size:.72rem;font-weight:900; }
.premium-checkout { position:sticky;top:100px;border-radius:24px;box-shadow:0 25px 70px rgba(66,50,137,.14); }.checkout-label,.checkout-price { display:block; }.checkout-label { color:var(--fs-muted);font-size:.8rem;font-weight:800; }.checkout-price { margin:7px 0 6px;color:var(--fs-primary);font-size:2rem; }.compare-price { color:var(--fs-muted);text-decoration:line-through; }.currency-switch { display:flex;gap:7px;margin:18px 0; }.currency-switch a { flex:1;padding:9px;border:1px solid var(--fs-border);border-radius:10px;color:var(--fs-ink);text-align:center;text-decoration:none;font-weight:800; }.currency-switch a.is-active { color:#fff;border-color:var(--fs-primary);background:var(--fs-primary); }.checkout-trust { display:grid;gap:7px;margin-top:18px;padding-top:16px;border-top:1px solid var(--fs-border);color:var(--fs-muted);font-size:.78rem; }.related-grid { display:grid;grid-template-columns:repeat(3,1fr);gap:20px; }.related-grid a { display:grid;grid-template-columns:120px 1fr;gap:16px;padding:15px;border:1px solid var(--fs-border);border-radius:18px;color:var(--fs-ink);text-decoration:none;background:#fff; }.related-grid img { width:120px;height:90px;object-fit:cover;border-radius:12px; }.related-grid small,.related-grid strong,.related-grid span { display:block; }.related-grid small { color:var(--fs-primary);font-weight:900; }.related-grid span { margin-top:5px;color:var(--fs-muted);font-size:.82rem; }

.cms-public-page { padding:80px 0; }.cms-page-header { max-width:850px;margin-bottom:40px; }.cms-page-header h1 { margin:10px 0 14px;font-size:clamp(2.4rem,5vw,4.5rem); }.cms-page-header p { color:var(--fs-muted);font-size:1.08rem;line-height:1.7; }.cms-page-content { max-width:900px;padding:42px;border:1px solid var(--fs-border);border-radius:24px;background:#fff;box-shadow:0 20px 60px rgba(66,50,137,.07);color:#414653;line-height:1.85; }

.site-footer { padding:66px 0 26px;color:rgba(255,255,255,.75);background:#121024; }.footer-grid { display:grid;grid-template-columns:1.4fr repeat(3,1fr);gap:45px; }.footer-brand img { width:190px;max-height:110px;object-fit:contain;object-position:left center; }.footer-brand p { max-width:340px;line-height:1.65; }.footer-grid > div:not(.footer-brand) { display:grid;align-content:start;gap:10px; }.footer-grid strong { color:#fff;margin-bottom:8px; }.footer-grid a,.footer-grid span { color:rgba(255,255,255,.68);text-decoration:none;font-size:.9rem; }.footer-bottom { display:flex;justify-content:space-between;gap:20px;margin-top:48px;padding-top:22px;border-top:1px solid rgba(255,255,255,.1);font-size:.78rem; }
.mobile-bottom-nav { display:none; }
.nav-install-button { padding:0; }

@media (max-width: 1040px) {
    .market-hero-grid,.product-detail-grid,.value-grid { grid-template-columns:1fr; }
    .hero-showcase { min-height:390px; }.market-product-grid,.services-grid,.testimonial-grid { grid-template-columns:repeat(2,1fr); }
    .product-commerce-grid { grid-template-columns:1fr; }.premium-checkout { position:static; }.catalog-layout { grid-template-columns:1fr; }.catalog-filters { position:static; }
}
@media (max-width: 760px) {
    body { padding-bottom:68px; }.container { width:min(100% - 28px,1180px); }.section { padding:64px 0; }
    .mobile-nav-toggle { display:grid;place-items:center; }.main-nav { position:absolute;left:14px;right:14px;top:68px;display:none;flex-direction:column;align-items:stretch;padding:18px;border-radius:18px;background:#211a4d;box-shadow:0 22px 60px rgba(0,0,0,.28); }.main-nav.is-open { display:flex; }.main-nav a,.nav-install-button { padding:11px 12px;text-align:left; }
    .market-hero { padding:72px 0 62px; }.market-hero-grid { gap:36px; }.market-hero-copy h1 { font-size:clamp(2.7rem,13vw,4.2rem); }.hero-showcase { min-height:320px; }.showcase-window { transform:none; }.floating-badge { display:none; }
    .market-strip-grid { grid-template-columns:repeat(2,1fr); }.market-strip article:nth-child(2) { border-right:0; }.market-strip article { border-bottom:1px solid var(--fs-border); }
    .market-heading,.catalog-results-header { align-items:flex-start;flex-direction:column; }.currency-selector { width:100%; }.market-product-grid,.services-grid,.testimonial-grid,.value-cards,.feature-detail-grid,.related-grid { grid-template-columns:1fr; }.faq-layout { grid-template-columns:1fr;gap:28px; }.market-cta .container { grid-template-columns:1fr;text-align:center; }.market-cta img { margin:auto; }.product-detail-grid { gap:34px; }.product-summary-column h1 { font-size:2.7rem; }.product-commerce-section { padding-top:42px; }.product-tab-panel { padding:24px; }.requirements-list article { grid-template-columns:1fr; }.footer-grid { grid-template-columns:1fr 1fr; }.footer-brand { grid-column:1/-1; }.footer-bottom { flex-direction:column; }.mobile-bottom-nav { position:fixed;z-index:95;left:0;right:0;bottom:0;display:grid;grid-template-columns:repeat(3,1fr);height:64px;border-top:1px solid var(--fs-border);background:rgba(255,255,255,.97);backdrop-filter:blur(12px); }.mobile-bottom-nav a { display:grid;place-items:center;align-content:center;gap:2px;color:var(--fs-muted);font-size:.68rem;font-weight:800;text-decoration:none; }.mobile-bottom-nav span { color:var(--fs-primary);font-size:1.1rem; }
}
@media (max-width: 480px) { .market-strip-grid,.footer-grid { grid-template-columns:1fr; }.market-strip article { border-right:0; }.showcase-stats { grid-template-columns:1fr; }.showcase-body { padding:26px; }.product-tab-buttons { border-radius:13px; }.cms-page-content { padding:26px; } }

/* ========================================================================== 
   FASE 3.1 - PULIDO VISUAL INTERNACIONAL
   ========================================================================== */

/* El tamaño puede modificarse desde Administración > Identidad visual y PWA. */
.public-logo { display:flex;align-items:center;flex:0 0 auto;min-width:0; }
.public-logo img {
    width: min(var(--public-logo-width, 230px), 46vw);
    max-width: none;
    height: 80px;
    max-height: 80px;
    object-fit: contain;
    object-position: left center;
}
.footer-brand img { width:min(var(--footer-logo-width,220px),100%);max-width:none; }

/* Muestra la imagen completa sin recortarla, incluso cuando su relación cambia. */
.product-cover,.product-main-image,.related-image-frame { background:linear-gradient(145deg,#f4f2fb,#ffffff); }
.product-cover-contain,.market-product-card .product-cover { padding:18px; }
.product-cover-contain img,.market-product-card .product-cover img,.product-image-contain img { object-fit:contain;object-position:center; }
.product-main-image.product-image-contain { padding:24px; }
.product-main-image.product-image-contain img { border-radius:18px; }
.product-preview-action { position:absolute;left:50%;bottom:16px;transform:translate(-50%,18px);padding:8px 13px;border-radius:999px;color:#fff;background:rgba(23,18,47,.9);font-size:.74rem;font-weight:900;opacity:0;transition:.2s ease;white-space:nowrap; }
.market-product-card:hover .product-preview-action { opacity:1;transform:translate(-50%,0); }

.product-card-highlights { display:flex;flex-wrap:wrap;gap:7px;margin:15px 0 18px; }
.product-card-highlights span { padding:5px 8px;border-radius:999px;color:#5a478f;background:#f2effb;font-size:.68rem;font-weight:800; }

/* Espacio visual entre los encabezados de pestaña y sus contenidos. */
.tab-panel-heading { display:flex;align-items:flex-start;gap:14px;margin-bottom:28px;padding-bottom:20px;border-bottom:1px solid var(--fs-border); }
.tab-panel-heading > span { display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:12px;color:#fff;background:linear-gradient(135deg,var(--fs-primary),var(--fs-secondary));font-size:.75rem;font-weight:900; }
.tab-panel-heading h2 { margin:0 0 4px;font-size:1.45rem; }
.tab-panel-heading p { margin:0;color:var(--fs-muted); }
.feature-detail-grid,.requirements-list,.faq-list { margin-top:8px; }
.feature-detail-grid { row-gap:18px; }
.requirements-list { gap:16px; }

/* Selector compacto y escalable para cualquier cantidad de monedas. */
.checkout-heading-row { display:flex;justify-content:space-between;gap:15px;align-items:flex-start; }
.checkout-secure-badge { padding:7px 10px;border-radius:999px;color:#0b6b47;background:#eaf8f1;font-size:.68rem;font-weight:900;white-space:nowrap; }
.compact-currency-field { display:grid!important;grid-template-columns:1fr auto;align-items:center;gap:5px 12px;margin:22px 0!important;padding:13px 14px;border:1px solid var(--fs-border);border-radius:14px;background:#faf9ff; }
.compact-currency-field > span { font-weight:900; }
.compact-currency-field select { min-width:150px;min-height:40px;padding:0 36px 0 12px;border:1px solid #d7d3e8;border-radius:10px;background:#fff; }
.compact-currency-field small { grid-column:1/-1;color:var(--fs-muted);font-weight:500; }

.related-image-frame { display:grid;place-items:center;width:120px;height:90px;padding:8px;border-radius:12px;overflow:hidden; }
.related-grid .related-image-frame img { width:100%;height:100%;object-fit:contain; }

/* Catálogo con cabecera, navegación rápida y controles comparables a marketplaces. */
.catalog-hero-premium { padding:78px 0;color:#fff;background:radial-gradient(circle at 85% 20%,rgba(237,116,37,.28),transparent 27%),linear-gradient(135deg,#15102c,#3e3088); }
.catalog-hero-grid { display:grid;grid-template-columns:minmax(0,1.05fr) minmax(360px,.75fr);gap:54px;align-items:center; }
.catalog-hero-premium h1 { margin:11px 0 17px;max-width:780px;font-size:clamp(2.6rem,5vw,4.8rem);line-height:1.03;letter-spacing:-.05em; }
.catalog-hero-premium p { max-width:710px;color:rgba(255,255,255,.78);font-size:1.05rem; }
.catalog-trust { display:flex;flex-wrap:wrap;gap:12px 20px;margin-top:24px;color:rgba(255,255,255,.82);font-size:.82rem;font-weight:800; }
.catalog-hero-search { padding:24px;border:1px solid rgba(255,255,255,.14);border-radius:22px;background:rgba(255,255,255,.09);backdrop-filter:blur(15px); }
.catalog-hero-search label { display:block;margin-bottom:10px;font-weight:900; }
.catalog-hero-search > div { display:grid;grid-template-columns:1fr auto;gap:9px; }
.catalog-hero-search input { min-width:0;min-height:49px;padding:0 15px;border:0;border-radius:12px; }
.catalog-hero-search small { display:block;margin-top:10px;color:rgba(255,255,255,.65); }
.catalog-category-strip { position:sticky;top:76px;z-index:45;padding:13px 0;border-bottom:1px solid var(--fs-border);background:rgba(255,255,255,.94);backdrop-filter:blur(16px); }
.category-chip-row { display:flex;gap:9px;overflow:auto;padding-block:2px;scrollbar-width:thin; }
.category-chip { flex:0 0 auto;padding:8px 13px;border:1px solid var(--fs-border);border-radius:999px;color:#4e5362;background:#fff;font-size:.77rem;font-weight:800; }
.category-chip.is-active,.category-chip:hover { color:#fff;border-color:var(--fs-primary);background:var(--fs-primary); }
.catalog-section-premium { background:#f7f7fb; }
.catalog-filter-heading { display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:18px; }
.catalog-filter-heading h2 { margin:2px 0 0; }
.catalog-filter-heading button { display:none;width:36px;height:36px;border:0;border-radius:10px;background:#f1effa;color:var(--fs-primary);font-size:1.25rem; }
.catalog-results-toolbar { display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:24px; }
.catalog-results-toolbar h2 { margin:4px 0; }
.catalog-results-toolbar small { color:var(--fs-muted); }
.catalog-toolbar-controls { display:flex;align-items:flex-end;gap:12px; }
.catalog-sort-form { display:flex;gap:10px;align-items:end; }
.catalog-sort-form label { color:var(--fs-muted);font-size:.72rem;font-weight:800; }
.catalog-sort-form select { display:block;min-width:150px;margin-top:5px; }
.premium-product-card { border-color:#e4e1ef; }
.catalog-pagination { display:flex;justify-content:center;gap:8px;margin-top:34px; }
.catalog-pagination a { display:grid;place-items:center;width:42px;height:42px;border:1px solid var(--fs-border);border-radius:11px;background:#fff;font-weight:800; }
.catalog-pagination a.is-active { color:#fff;border-color:var(--fs-primary);background:var(--fs-primary); }

@media (max-width:1040px) {
    .catalog-hero-grid { grid-template-columns:1fr; }
    .catalog-toolbar-controls { width:100%;justify-content:space-between; }
}
@media (max-width:760px) {
    .public-logo img { height:48px;max-height:48px; }
    .catalog-category-strip { top:64px; }
    .catalog-results-toolbar,.catalog-toolbar-controls,.catalog-sort-form { align-items:stretch;flex-direction:column; }
    .catalog-sort-form { width:100%;display:grid;grid-template-columns:1fr 110px; }
    .catalog-sort-form select { width:100%;min-width:0; }
    .catalog-filters { position:fixed;z-index:120;inset:0 10% 0 0;display:none;overflow:auto;border-radius:0;padding:24px;box-shadow:30px 0 80px rgba(0,0,0,.25); }
    .catalog-filters.is-open { display:block; }
    .catalog-filter-heading button { display:block; }
    .compact-currency-field { grid-template-columns:1fr; }
    .compact-currency-field select { width:100%; }
    .compact-currency-field small { grid-column:auto; }
}

/* ========================================================================== 
   FASE 3.2 - RESPONSIVE MARKETPLACE, NAVEGACIÓN MÓVIL Y CATÁLOGO JERÁRQUICO
   ========================================================================== */

/* --------------------------------------------------------------------------
   Cabecera pública
   -------------------------------------------------------------------------- */
.mobile-drawer-head,
.mobile-drawer-footer,
.mobile-header-account,
.mobile-nav-overlay {
    display: none;
}

.main-nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.mobile-nav-toggle span {
    display: block;
    width: 21px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

/* --------------------------------------------------------------------------
   Catálogo de escritorio y laptop
   -------------------------------------------------------------------------- */
.catalog-mobile-category-strip {
    display: none;
}

.catalog-layout-marketplace {
    display: grid;
    grid-template-columns: minmax(260px, 292px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.catalog-sidebar {
    position: sticky;
    top: 98px;
    display: grid;
    gap: 18px;
    min-width: 0;
    max-height: calc(100vh - 116px);
    overflow: auto;
    scrollbar-width: thin;
}

.catalog-sidebar-mobile-head {
    display: none;
}

.catalog-sidebar-card {
    min-width: 0;
    padding: 22px;
    border: 1px solid var(--fs-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(32, 35, 49, .055);
}

.catalog-sidebar-title {
    margin-bottom: 17px;
}

.catalog-sidebar-title h2,
.catalog-filters-panel h2 {
    margin: 4px 0 0;
    font-size: 1.2rem;
}

.catalog-category-tree {
    display: grid;
    gap: 7px;
}

.category-tree-all,
.category-tree-parent,
.category-tree-children a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    color: var(--fs-ink);
    text-decoration: none;
}

.category-tree-all,
.category-tree-parent {
    padding: 10px 11px;
    border-radius: 11px;
    font-size: .83rem;
    font-weight: 900;
}

.category-tree-all b,
.category-tree-parent b,
.category-tree-children b {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    min-width: 26px;
    height: 24px;
    padding-inline: 6px;
    border-radius: 999px;
    color: var(--fs-muted);
    background: #f1eff8;
    font-size: .67rem;
}

.category-tree-all:hover,
.category-tree-all.is-active,
.category-tree-group.is-active > .category-tree-parent,
.category-tree-parent:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--fs-primary), #6655b2);
}

.category-tree-all:hover b,
.category-tree-all.is-active b,
.category-tree-group.is-active > .category-tree-parent b,
.category-tree-parent:hover b {
    color: var(--fs-primary);
    background: #fff;
}

.category-tree-children {
    display: grid;
    gap: 2px;
    margin: 4px 0 8px 13px;
    padding-left: 12px;
    border-left: 1px solid #ddd9ed;
}

.category-tree-children a {
    padding: 7px 8px;
    border-radius: 9px;
    color: #5f6473;
    font-size: .77rem;
}

.category-tree-children a:hover,
.category-tree-children a.is-active {
    color: var(--fs-primary);
    background: #f3f0fb;
    font-weight: 900;
}

.catalog-filters-panel label {
    display: block;
    margin-bottom: 15px;
    color: #4f5360;
    font-size: .76rem;
    font-weight: 900;
}

.catalog-filters-panel input,
.catalog-filters-panel select {
    width: 100%;
    min-height: 43px;
    margin-top: 6px;
}

.catalog-results-toolbar-app {
    padding: 18px 20px;
    border: 1px solid var(--fs-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 32px rgba(32, 35, 49, .05);
}

.catalog-result-summary {
    min-width: 190px;
}

.catalog-result-summary > span {
    color: var(--fs-secondary);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.catalog-view-switch {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px;
    border: 1px solid var(--fs-border);
    border-radius: 11px;
    background: #f8f7fc;
}

.catalog-view-switch a {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    border-radius: 8px;
    color: #7a7f8c;
}

.catalog-view-switch a:hover,
.catalog-view-switch a.is-active {
    color: #fff;
    background: var(--fs-primary);
}

.catalog-view-switch svg {
    width: 18px;
    height: 18px;
}

.catalog-product-collection {
    min-width: 0;
}

.catalog-product-collection.is-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.catalog-product-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e3e0ed;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(32, 35, 49, .07);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.catalog-product-card:hover {
    transform: translateY(-5px);
    border-color: rgba(66, 50, 137, .28);
    box-shadow: 0 24px 60px rgba(66, 50, 137, .14);
}

.catalog-product-media {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    padding: 15px;
    background: linear-gradient(145deg, #f1eef9, #fff);
}

.catalog-product-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform .28s ease;
}

.catalog-product-card:hover .catalog-product-media img {
    transform: scale(1.025);
}

.catalog-product-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    padding: 20px;
}

.catalog-product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--fs-primary);
    font-size: .68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.catalog-product-meta small {
    max-width: 52%;
    overflow: hidden;
    color: var(--fs-muted);
    text-overflow: ellipsis;
    text-transform: none;
    white-space: nowrap;
}

.catalog-product-content h3 {
    margin: 10px 0 7px;
    font-size: 1.14rem;
    line-height: 1.32;
}

.catalog-product-content h3 a {
    color: var(--fs-ink);
    text-decoration: none;
}

.catalog-product-content > p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--fs-muted);
    font-size: .86rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.catalog-product-category {
    display: block;
    overflow: hidden;
    margin-top: 13px;
    color: #746a92;
    font-size: .68rem;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalog-product-bottom {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 17px;
}

.catalog-product-price small,
.catalog-product-price strong {
    display: block;
}

.catalog-product-price small {
    color: var(--fs-muted);
    font-size: .66rem;
}

.catalog-product-price > div {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 7px;
}

.catalog-product-price strong {
    margin-top: 3px;
    color: var(--fs-primary);
    font-size: 1.12rem;
}

.catalog-product-price del {
    color: #9a9eaa;
    font-size: .75rem;
}

.catalog-card-actions {
    display: flex;
    gap: 7px;
    flex: 0 0 auto;
}

.catalog-card-actions a {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid #ddd9eb;
    border-radius: 11px;
    color: var(--fs-primary);
    background: #fff;
    transition: .18s ease;
}

.catalog-card-actions a:first-child {
    color: #fff;
    border-color: var(--fs-secondary);
    background: var(--fs-secondary);
}

.catalog-card-actions a:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 20px rgba(66, 50, 137, .16);
}

.catalog-card-actions svg {
    width: 18px;
    height: 18px;
}

/* Vista horizontal pensada para comparar descripciones y precios. */
.catalog-product-collection.is-list {
    display: grid;
    gap: 15px;
}

.catalog-product-collection.is-list .catalog-product-card {
    display: grid;
    grid-template-columns: minmax(210px, 265px) minmax(0, 1fr);
}

.catalog-product-collection.is-list .catalog-product-media {
    aspect-ratio: auto;
    min-height: 205px;
    border-right: 1px solid var(--fs-border);
}

.catalog-product-collection.is-list .catalog-product-content {
    padding: 22px 24px;
}

.catalog-product-collection.is-list .catalog-product-content > p {
    -webkit-line-clamp: 2;
}

.catalog-drawer-overlay {
    position: fixed;
    z-index: 124;
    inset: 0;
    background: rgba(12, 9, 28, .55);
    backdrop-filter: blur(3px);
}

body.catalog-filters-open,
body.public-nav-open {
    overflow: hidden;
}

/* Laptop: mantiene categorías y filtros al costado, no en el centro. */
@media (min-width: 841px) and (max-width: 1180px) {
    .container {
        width: min(100% - 30px, 1120px);
    }

    .catalog-hero-premium {
        padding: 62px 0;
    }

    .catalog-hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr);
        gap: 32px;
    }

    .catalog-hero-premium h1 {
        font-size: clamp(2.25rem, 4.5vw, 3.7rem);
    }

    .catalog-layout,
    .catalog-layout-marketplace {
        grid-template-columns: minmax(215px, 242px) minmax(0, 1fr) !important;
        gap: 20px;
    }

    .catalog-sidebar {
        top: 92px;
    }

    .catalog-sidebar-card {
        padding: 17px;
    }

    .catalog-results-toolbar-app {
        align-items: stretch;
        flex-direction: column;
    }

    .catalog-toolbar-controls {
        width: 100%;
        justify-content: flex-end;
    }

    .catalog-product-collection.is-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* --------------------------------------------------------------------------
   Experiencia móvil similar a una aplicación
   -------------------------------------------------------------------------- */
@media (max-width: 840px) {
    body {
        padding-bottom: 70px;
    }

    .site-header {
        min-height: 64px;
    }

    .header-inner {
        display: grid !important;
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        gap: 10px;
        min-height: 64px !important;
        justify-content: initial !important;
    }

    .mobile-nav-toggle {
        display: grid !important;
        place-content: center;
        gap: 4px;
        grid-column: 1;
        justify-self: start;
        padding: 0;
    }

    .public-logo {
        grid-column: 2;
        justify-self: center;
        max-width: 100%;
    }

    .public-logo img {
        width: min(var(--public-logo-width, 230px), 58vw) !important;
        height: 43px !important;
        max-height: 43px !important;
        object-position: center;
    }

    .mobile-header-account {
        display: grid;
        place-items: center;
        grid-column: 3;
        justify-self: end;
        width: 42px;
        height: 42px;
        border-radius: 12px;
        color: #fff;
        background: rgba(255, 255, 255, .1);
    }

    .mobile-header-account svg {
        width: 19px;
        height: 19px;
    }

    .main-nav {
        position: fixed !important;
        z-index: 150;
        inset: 0 auto 0 0 !important;
        display: flex !important;
        flex-direction: column;
        align-items: stretch !important;
        width: min(86vw, 340px);
        padding: 0 !important;
        border-radius: 0 !important;
        background: linear-gradient(180deg, #17122f, #251b55) !important;
        box-shadow: 30px 0 80px rgba(0, 0, 0, .34) !important;
        transform: translateX(-105%);
        transition: transform .24s ease;
    }

    .main-nav.is-open {
        transform: translateX(0);
    }

    .mobile-drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
        min-height: 76px;
        padding: 15px 17px;
        border-bottom: 1px solid rgba(255, 255, 255, .1);
    }

    .mobile-drawer-head img {
        width: min(205px, 68%);
        max-height: 48px;
        object-fit: contain;
        object-position: left center;
    }

    .mobile-drawer-head button {
        width: 39px;
        height: 39px;
        border: 0;
        border-radius: 11px;
        color: #fff;
        background: rgba(255, 255, 255, .1);
        font-size: 1.5rem;
    }

    .main-nav-links {
        display: grid;
        gap: 4px;
        padding: 17px;
    }

    .main-nav a,
    .nav-install-button {
        width: 100%;
        padding: 13px 14px !important;
        border-radius: 11px;
        text-align: left;
    }

    .main-nav a:hover,
    .nav-install-button:hover {
        background: rgba(255, 255, 255, .08);
    }

    .main-nav .nav-account {
        margin-top: 7px;
        text-align: center;
    }

    .mobile-drawer-footer {
        display: grid;
        gap: 3px;
        margin-top: auto;
        padding: 20px;
        border-top: 1px solid rgba(255, 255, 255, .1);
        color: rgba(255, 255, 255, .58);
    }

    .mobile-drawer-footer strong {
        color: #fff;
    }

    .mobile-nav-overlay {
        position: fixed;
        z-index: 140;
        inset: 0;
        display: block;
        background: rgba(10, 8, 25, .58);
        backdrop-filter: blur(3px);
    }

    .mobile-nav-overlay[hidden] {
        display: none;
    }

    .mobile-bottom-nav {
        grid-template-columns: repeat(4, 1fr) !important;
        height: 68px !important;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .mobile-bottom-nav a,
    .mobile-bottom-nav button {
        display: grid;
        place-items: center;
        align-content: center;
        gap: 3px;
        padding: 0;
        border: 0;
        color: var(--fs-muted);
        background: transparent;
        font-family: inherit;
        font-size: .66rem;
        font-weight: 800;
        text-decoration: none;
    }

    .mobile-bottom-nav svg {
        width: 20px;
        height: 20px;
        color: var(--fs-primary);
    }

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

    .catalog-hero-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .catalog-hero-premium h1 {
        margin-top: 8px;
        font-size: clamp(2rem, 9.5vw, 3rem);
        line-height: 1.06;
    }

    .catalog-hero-premium p {
        font-size: .94rem;
        line-height: 1.6;
    }

    .catalog-trust {
        gap: 8px 14px;
        margin-top: 18px;
        font-size: .72rem;
    }

    .catalog-hero-search {
        padding: 17px;
        border-radius: 17px;
    }

    .catalog-hero-search > div {
        grid-template-columns: 1fr;
    }

    .catalog-mobile-category-strip {
        position: sticky;
        z-index: 60;
        top: 64px;
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid var(--fs-border);
        background: rgba(255, 255, 255, .96);
        backdrop-filter: blur(15px);
    }

    .catalog-layout,
    .catalog-layout-marketplace {
        display: block !important;
    }

    .catalog-sidebar {
        position: fixed;
        z-index: 130;
        inset: 0 auto 0 0;
        display: block;
        width: min(90vw, 350px);
        max-height: none;
        padding: 0 15px 25px;
        overflow: auto;
        background: #f7f7fb;
        box-shadow: 30px 0 80px rgba(0, 0, 0, .28);
        transform: translateX(-105%);
        transition: transform .24s ease;
    }

    .catalog-sidebar.is-open {
        transform: translateX(0);
    }

    .catalog-sidebar-mobile-head {
        position: sticky;
        z-index: 2;
        top: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 66px;
        margin: 0 -15px 14px;
        padding: 0 17px;
        color: #fff;
        background: #1b153e;
    }

    .catalog-sidebar-mobile-head button {
        width: 38px;
        height: 38px;
        border: 0;
        border-radius: 10px;
        color: #fff;
        background: rgba(255, 255, 255, .1);
        font-size: 1.45rem;
    }

    .catalog-sidebar-card {
        margin-bottom: 14px;
        padding: 17px;
        border-radius: 16px;
    }

    .catalog-section-premium {
        padding-top: 28px;
    }

    .catalog-results-toolbar-app {
        align-items: stretch !important;
        padding: 15px;
        border-radius: 16px;
    }

    .catalog-result-summary h2 {
        font-size: 1.35rem;
    }

    .catalog-toolbar-controls {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: end !important;
        gap: 9px;
    }

    .mobile-filter-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        min-height: 43px;
    }

    .catalog-sort-form {
        grid-column: 1 / -1;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 92px !important;
        gap: 8px;
    }

    .catalog-product-collection.is-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 13px;
    }

    .catalog-product-content {
        padding: 15px;
    }

    .catalog-product-content h3 {
        font-size: 1rem;
    }

    .catalog-product-content > p {
        font-size: .78rem;
        -webkit-line-clamp: 2;
    }

    .catalog-product-category {
        display: none;
    }

    .catalog-product-price strong {
        font-size: 1rem;
    }

    .catalog-card-actions a {
        width: 35px;
        height: 35px;
    }

    .catalog-product-collection.is-list .catalog-product-card {
        grid-template-columns: 135px minmax(0, 1fr);
    }

    .catalog-product-collection.is-list .catalog-product-media {
        min-height: 175px;
    }

    .catalog-product-collection.is-list .catalog-product-content {
        padding: 15px;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .catalog-product-collection.is-grid {
        grid-template-columns: 1fr;
    }

    .catalog-product-collection.is-grid .catalog-product-card {
        display: grid;
        grid-template-columns: 116px minmax(0, 1fr);
        min-height: 154px;
    }

    .catalog-product-collection.is-grid .catalog-product-media {
        aspect-ratio: auto;
        min-height: 154px;
        padding: 9px;
        border-right: 1px solid var(--fs-border);
    }

    .catalog-product-collection.is-grid .catalog-product-content {
        padding: 13px;
    }

    .catalog-product-collection.is-grid .catalog-product-meta small,
    .catalog-product-collection.is-grid .catalog-product-content > p,
    .catalog-product-collection.is-grid .catalog-product-category {
        display: none;
    }

    .catalog-product-collection.is-grid .catalog-product-content h3 {
        display: -webkit-box;
        overflow: hidden;
        margin: 7px 0;
        font-size: .96rem;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .catalog-product-collection.is-grid .catalog-product-bottom {
        align-items: center;
        margin-top: auto;
        padding-top: 9px;
    }

    .catalog-product-collection.is-grid .catalog-product-price small {
        display: none;
    }

    .catalog-product-collection.is-list .catalog-product-card {
        grid-template-columns: 108px minmax(0, 1fr);
    }

    .catalog-product-collection.is-list .catalog-product-media {
        min-height: 155px;
        padding: 8px;
    }

    .catalog-product-collection.is-list .catalog-product-content > p,
    .catalog-product-collection.is-list .catalog-product-category {
        display: none;
    }

    .catalog-card-actions a {
        width: 33px;
        height: 33px;
    }

    .catalog-toolbar-controls {
        grid-template-columns: 1fr auto;
    }

    .catalog-view-switch a {
        width: 34px;
        height: 34px;
    }
}

/* El botón de filtros solo se muestra cuando la barra lateral pasa a drawer. */
.mobile-filter-button {
    display: none;
}

@media (max-width: 840px) {
    .mobile-filter-button {
        display: inline-flex;
    }
}

/* ========================================================================== 
   FÁCIL SHOP 3.3.0 - CATÁLOGO, CUENTA DE CLIENTE Y PWA
   ========================================================================== */

.sr-only {
    position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;
    overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;
}

/* Barra compacta del catálogo: mantiene los productos cerca del encabezado. */
.catalog-command-bar {
    color:#fff;
    background:
        radial-gradient(circle at 92% 10%,rgba(237,116,37,.24),transparent 28%),
        linear-gradient(135deg,#17122f,#362979 70%,#423289);
    border-bottom:1px solid rgba(255,255,255,.09);
}
.catalog-command-inner {
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(380px,.8fr);
    align-items:center;
    gap:34px;
    min-height:196px;
    padding-top:34px;
    padding-bottom:34px;
}
.catalog-command-copy h1 { margin:7px 0 8px;font-size:clamp(2rem,3.5vw,3.15rem);line-height:1.05;letter-spacing:-.04em; }
.catalog-command-copy p { margin:0;max-width:680px;color:rgba(255,255,255,.74);font-size:1rem; }
.catalog-command-search { display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;padding:11px;border:1px solid rgba(255,255,255,.16);border-radius:17px;background:rgba(255,255,255,.09);backdrop-filter:blur(14px); }
.catalog-command-search input { min-width:0;min-height:48px;padding:0 15px;border:0;border-radius:11px;background:#fff; }

/* Categorías padre plegables. */
.category-tree-parent { width:100%;border:0;cursor:pointer;font:inherit;text-align:left; }
.category-parent-meta { display:inline-flex;align-items:center;gap:9px; }
.category-parent-meta i { display:inline-grid;place-items:center;width:24px;height:24px;border-radius:8px;background:rgba(66,50,137,.08);font-style:normal;transition:transform .2s ease; }
.category-tree-group.is-expanded .category-parent-meta i { transform:rotate(180deg); }
.category-tree-children[hidden] { display:none!important; }
.category-tree-view-all { color:var(--fs-primary)!important;background:rgba(66,50,137,.065);font-weight:900!important; }

/* Encabezado de resultados en una sola línea cuando existe espacio. */
.catalog-results-toolbar-app { display:flex;align-items:center;justify-content:space-between;gap:20px; }
.catalog-result-summary { display:grid;grid-template-columns:auto minmax(170px,auto) minmax(260px,1fr);align-items:center;gap:10px 18px;min-width:0; }
.catalog-result-summary > span { grid-column:1;font-weight:900;color:var(--fs-primary); }
.catalog-result-summary h2 { grid-column:2;margin:0;white-space:nowrap; }
.catalog-result-summary small { grid-column:3;min-width:0;color:var(--fs-muted); }

/* Garantiza que cuadrícula conserve precio y acciones en todas las resoluciones. */
.catalog-product-collection.is-grid .catalog-product-card { display:flex;flex-direction:column; }
.catalog-product-collection.is-grid .catalog-product-content { display:flex;flex:1;flex-direction:column; }
.catalog-product-collection.is-grid .catalog-product-bottom { display:flex!important;margin-top:auto!important;opacity:1!important;visibility:visible!important; }
.catalog-product-collection.is-grid .catalog-product-price,
.catalog-product-collection.is-grid .catalog-card-actions { display:flex!important;visibility:visible!important;opacity:1!important; }
.catalog-product-collection.is-grid .catalog-product-price { flex-direction:column;align-items:flex-start; }
.catalog-product-collection.is-grid .catalog-card-actions { flex-direction:row; }

/* Menú móvil público reforzado. */
body.public-nav-open { overflow:hidden; }
.main-nav-links a,.main-nav-links button { color:#fff!important;opacity:1!important;visibility:visible!important; }
.main-nav-links .nav-install-button { border:1px solid rgba(255,255,255,.15);background:rgba(255,255,255,.07); }

/* Invitación automática para instalar la PWA. */
.pwa-install-banner { position:fixed;z-index:180;right:22px;bottom:22px;display:grid;grid-template-columns:48px minmax(0,1fr) auto auto;align-items:center;gap:12px;width:min(560px,calc(100vw - 44px));padding:13px 14px;border:1px solid rgba(66,50,137,.14);border-radius:18px;background:rgba(255,255,255,.98);box-shadow:0 22px 70px rgba(28,20,70,.2);backdrop-filter:blur(16px); }
.pwa-install-banner[hidden] { display:none!important; }
.pwa-install-banner img { width:48px;height:48px;object-fit:contain;border-radius:12px; }
.pwa-install-banner div { display:grid;gap:2px; }
.pwa-install-banner div strong { color:var(--fs-text); }
.pwa-install-banner div span { color:var(--fs-muted);font-size:.8rem; }
.pwa-banner-close { width:34px;height:34px;border:0;border-radius:10px;background:#f2f1f7;color:var(--fs-muted);font-size:1.3rem;cursor:pointer; }
.mobile-bottom-nav { grid-template-columns:repeat(3,1fr)!important; }

/* Servicios: detalle visual + selector compacto para muchos registros. */
.services-showcase-section { overflow:hidden;background:linear-gradient(180deg,#fff,#f7f6fc); }
.services-heading { align-items:end; }
.services-showcase { display:grid;grid-template-columns:minmax(0,1.25fr) minmax(330px,.75fr);gap:22px; }
.service-spotlight { display:grid;grid-template-columns:minmax(260px,.9fr) minmax(0,1.1fr);min-height:470px;overflow:hidden;border:1px solid var(--fs-border);border-radius:26px;background:#fff;box-shadow:0 26px 70px rgba(34,27,81,.1); }
.service-spotlight-media { min-height:100%;padding:22px;background:linear-gradient(145deg,#17122f,#423289); }
.service-spotlight-media img { width:100%;height:100%;max-height:430px;object-fit:contain;border-radius:18px;background:rgba(255,255,255,.08); }
.service-spotlight-content { display:flex;flex-direction:column;justify-content:center;padding:36px; }
.service-spotlight-content h3 { margin:9px 0 12px;font-size:clamp(1.8rem,3vw,2.8rem);line-height:1.05; }
.service-spotlight-content p { color:var(--fs-text);font-size:1.05rem;font-weight:800; }
.service-spotlight-content [data-service-description] { margin:3px 0 24px;color:var(--fs-muted);line-height:1.7;white-space:pre-line; }
.service-spotlight-content .button { align-self:flex-start; }
.service-selector { display:grid;gap:8px;max-height:470px;padding-right:5px;overflow:auto;scrollbar-width:thin; }
.service-selector-item { display:grid;grid-template-columns:38px minmax(0,1fr) 24px;align-items:center;gap:12px;width:100%;padding:14px;border:1px solid var(--fs-border);border-radius:16px;background:#fff;color:var(--fs-text);font:inherit;text-align:left;cursor:pointer;transition:.2s ease; }
.service-selector-item:hover,.service-selector-item.is-active { border-color:rgba(66,50,137,.3);background:linear-gradient(135deg,rgba(66,50,137,.07),rgba(237,116,37,.06));transform:translateX(-3px); }
.service-selector-index { display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#f1eff9;color:var(--fs-primary);font-size:.78rem;font-weight:900; }
.service-selector-item span:nth-child(2) { display:grid;gap:3px;min-width:0; }
.service-selector-item strong { overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.service-selector-item small { display:-webkit-box;overflow:hidden;color:var(--fs-muted);font-size:.75rem;-webkit-box-orient:vertical;-webkit-line-clamp:2; }
.service-selector-item i { color:var(--fs-secondary);font-style:normal;font-size:1.15rem; }

/* Checkout asociado a una cuenta. */
.checkout-account-gate { display:grid;gap:12px;padding:22px;border:1px solid rgba(66,50,137,.15);border-radius:18px;background:linear-gradient(145deg,#f8f7fc,#fff);text-align:center; }
.checkout-account-gate h3 { margin:0;font-size:1.35rem; }
.checkout-account-gate p { margin:0 0 4px;color:var(--fs-muted);line-height:1.55; }
.checkout-account-icon { display:grid;place-items:center;width:54px;height:54px;margin:auto;border-radius:17px;color:#fff;background:linear-gradient(135deg,var(--fs-primary),var(--fs-secondary));font-size:1.4rem; }
.checkout-customer-summary { display:grid;gap:3px;margin-bottom:15px;padding:14px 15px;border:1px solid rgba(66,50,137,.14);border-radius:14px;background:#f8f7fc; }
.checkout-customer-summary span,.checkout-customer-summary small { color:var(--fs-muted);font-size:.75rem; }
.checkout-customer-summary a { margin-top:3px;color:var(--fs-primary);font-size:.78rem;font-weight:900; }

/* Cuenta privada del cliente. */
.account-page { min-height:70vh;background:#f7f8fc; }
.account-hero { color:#fff;background:radial-gradient(circle at 90% 20%,rgba(237,116,37,.27),transparent 25%),linear-gradient(135deg,#17122f,#423289); }
.account-hero-inner { display:flex;align-items:center;justify-content:space-between;gap:28px;min-height:260px;padding-top:38px;padding-bottom:38px; }
.account-hero h1 { margin:8px 0 9px;font-size:clamp(2.2rem,4.5vw,4rem); }
.account-hero p { max-width:700px;margin:0;color:rgba(255,255,255,.74); }
.account-summary-grid { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:-64px;position:relative;z-index:2; }
.account-summary-grid article { display:grid;gap:7px;padding:22px;border:1px solid var(--fs-border);border-radius:20px;background:#fff;box-shadow:0 18px 50px rgba(34,27,81,.09); }
.account-summary-grid span,.account-summary-grid small { color:var(--fs-muted); }
.account-summary-grid strong { color:var(--fs-primary);font-size:2rem; }
.account-content-section { padding-top:100px; }
.account-panel { margin-top:24px;padding:24px;border:1px solid var(--fs-border);border-radius:24px;background:#fff; }
.account-panel-heading h2 { margin:6px 0; }
.account-panel-heading p { margin:0;color:var(--fs-muted); }
.account-order-list { display:grid;gap:10px;margin-top:20px; }
.account-order-card { display:flex;align-items:center;justify-content:space-between;gap:20px;padding:17px;border:1px solid var(--fs-border);border-radius:16px;background:#fcfbff; }
.account-order-main { display:grid;gap:3px;min-width:0; }
.account-order-main h3 { margin:0; }
.account-order-main small { color:var(--fs-muted); }
.order-code { color:var(--fs-primary);font-size:.72rem;font-weight:900;letter-spacing:.06em; }
.account-order-side { display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap; }
.account-order-side a { color:var(--fs-primary);font-size:.78rem;font-weight:900; }
.account-empty-state { margin-top:20px; }

/* Registro público. */
.auth-card-wide { width:min(760px,calc(100vw - 28px)); }
.auth-password-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px; }
.password-field { display:grid;grid-template-columns:minmax(0,1fr) auto;border:1px solid var(--fs-border);border-radius:12px;background:#fff;overflow:hidden; }
.password-field input { border:0!important;border-radius:0!important; }
.password-field button { border:0;border-left:1px solid var(--fs-border);padding:0 13px;background:#f6f5fa;color:var(--fs-primary);font-weight:900;cursor:pointer; }
.password-requirements { display:grid;gap:2px;padding:12px 14px;border-radius:12px;background:#f7f6fc;color:var(--fs-muted);font-size:.78rem; }
.password-requirements strong { color:var(--fs-primary); }
.auth-consent { display:grid!important;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:9px!important; }
.auth-consent input { width:18px;height:18px;margin-top:2px; }
.field-error { color:#b42318!important; }
.auth-footer-link { display:flex;justify-content:center;gap:7px;margin-top:18px;color:var(--fs-muted);font-size:.88rem; }
.auth-footer-link a { color:var(--fs-primary);font-weight:900; }

@media (max-width: 1020px) {
    .catalog-command-inner { grid-template-columns:1fr;min-height:auto;gap:18px; }
    .catalog-result-summary { grid-template-columns:auto 1fr; }
    .catalog-result-summary small { grid-column:1/-1; }
    .services-showcase { grid-template-columns:1fr; }
    .service-selector { grid-template-columns:repeat(2,minmax(0,1fr));max-height:390px; }
    .account-summary-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width: 840px) {
    .catalog-command-inner { padding-top:24px;padding-bottom:24px; }
    .catalog-command-copy h1 { font-size:2rem; }
    .catalog-command-search { grid-template-columns:1fr; }
    .catalog-results-toolbar-app { align-items:stretch;flex-direction:column; }
    .catalog-result-summary { display:flex;align-items:flex-start;flex-direction:column;gap:3px; }
    .catalog-result-summary h2 { white-space:normal; }
    .service-spotlight { grid-template-columns:1fr;min-height:0; }
    .service-spotlight-media { min-height:260px; }
    .service-spotlight-media img { height:260px; }
    .service-spotlight-content { padding:26px; }
    .account-hero-inner { align-items:flex-start;flex-direction:column;min-height:230px; }
    .pwa-install-banner { right:12px;bottom:80px;width:calc(100vw - 24px);grid-template-columns:42px minmax(0,1fr) auto; }
    .pwa-install-banner img { width:42px;height:42px; }
    .pwa-install-banner .button { grid-column:2;justify-self:start; }
    .pwa-banner-close { grid-column:3;grid-row:1; }
}

@media (max-width: 620px) {
    .catalog-command-copy p { font-size:.88rem; }
    .catalog-product-collection.is-grid .catalog-product-card { display:flex!important;min-height:0!important; }
    .catalog-product-collection.is-grid .catalog-product-media { min-height:190px!important;aspect-ratio:16/10!important;border-right:0!important; }
    .catalog-product-collection.is-grid .catalog-product-content > p { display:-webkit-box!important; }
    .catalog-product-collection.is-grid .catalog-product-category { display:block!important; }
    .catalog-product-collection.is-grid .catalog-product-price small { display:block!important; }
    .service-selector { display:flex;max-height:none;padding-bottom:6px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory; }
    .service-selector-item { flex:0 0 min(88vw,330px);scroll-snap-align:start;transform:none!important; }
    .services-heading { align-items:flex-start; }
    .account-summary-grid { grid-template-columns:1fr 1fr;gap:10px;margin-top:-42px; }
    .account-summary-grid article { padding:16px; }
    .account-summary-grid strong { font-size:1.5rem; }
    .account-content-section { padding-top:72px; }
    .account-order-card { align-items:flex-start;flex-direction:column; }
    .account-order-side { justify-content:flex-start; }
    .auth-password-grid { grid-template-columns:1fr; }
}

/* ========================================================================== 
   FASE 3.3 - EXPLORADOR MÓVIL DE CATEGORÍAS
   ========================================================================== */
.category-chip-button {
    border: 1px solid var(--fs-border);
    font: inherit;
    cursor: pointer;
}
.category-chip-button i {
    margin-left: 5px;
    font-style: normal;
    transition: transform .2s ease;
}
.category-chip-button[aria-expanded="true"] i { transform: rotate(180deg); }
.mobile-subcategory-panel { display: none; }

@media (max-width: 840px) {
    .mobile-category-explorer { display: grid; gap: 10px; }
    .mobile-subcategory-panel.is-open {
        display: flex;
        gap: 8px;
        padding: 0 0 7px;
        overflow-x: auto;
        scrollbar-width: thin;
        scroll-snap-type: x proximity;
    }
    .mobile-subcategory-panel[hidden] { display: none !important; }
    .mobile-subcategory-panel a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        flex: 0 0 auto;
        min-width: 150px;
        max-width: 245px;
        padding: 10px 12px;
        border: 1px solid var(--fs-border);
        border-radius: 13px;
        color: var(--fs-ink);
        background: #fff;
        font-size: .76rem;
        font-weight: 850;
        text-decoration: none;
        scroll-snap-align: start;
    }
    .mobile-subcategory-panel a.is-active {
        border-color: transparent;
        color: #fff;
        background: linear-gradient(135deg, var(--fs-primary), #6554b5);
    }
    .mobile-subcategory-panel b {
        display: grid;
        place-items: center;
        min-width: 25px;
        height: 23px;
        padding: 0 6px;
        border-radius: 999px;
        color: var(--fs-primary);
        background: #f0eef9;
        font-size: .66rem;
    }
    .mobile-subcategory-panel a.is-active b { background: #fff; }
}

/* =============================================================================
   FÁCIL SHOP 3.4.0 — CUENTA PROFESIONAL, AUTENTICACIÓN Y CATÁLOGO
   ============================================================================= */

/* Menú de cuenta público */
.public-account-menu { position:relative; z-index:160; margin-left:auto; }
.public-account-trigger { display:flex; align-items:center; gap:10px; min-width:154px; padding:6px 8px; border:1px solid rgba(255,255,255,.18); border-radius:15px; color:#fff; background:rgba(255,255,255,.08); font:inherit; text-align:left; cursor:pointer; backdrop-filter:blur(12px); transition:.2s ease; }
.public-account-trigger:hover,.public-account-menu.is-open .public-account-trigger { background:rgba(255,255,255,.16); border-color:rgba(255,255,255,.3); }
.public-account-avatar { display:grid; place-items:center; flex:0 0 39px; width:39px; height:39px; border-radius:12px; color:#fff; background:linear-gradient(135deg,var(--fs-secondary),#ff9a55); font-size:.78rem; font-weight:950; box-shadow:0 8px 20px rgba(237,116,37,.25); }
.public-account-avatar svg { width:21px; height:21px; fill:currentColor; }
.public-account-summary { display:grid; flex:1; min-width:0; line-height:1.05; }
.public-account-summary small { color:rgba(255,255,255,.65); font-size:.65rem; }
.public-account-summary strong { max-width:88px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.78rem; }
.public-account-chevron { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2.2; transition:transform .2s ease; }
.public-account-menu.is-open .public-account-chevron { transform:rotate(180deg); }
.public-account-dropdown { position:absolute; top:calc(100% + 11px); right:0; width:330px; padding:9px; border:1px solid #e8e5f2; border-radius:20px; background:#fff; color:var(--fs-text); box-shadow:0 26px 80px rgba(24,18,60,.24); }
.public-account-dropdown[hidden] { display:none!important; }
.public-account-card,.public-account-guest { display:flex; align-items:center; gap:12px; padding:13px; margin-bottom:7px; border-radius:15px; background:linear-gradient(135deg,#f4f1ff,#fff6ef); }
.public-account-card > span,.public-account-guest > span { display:grid; place-items:center; flex:0 0 46px; width:46px; height:46px; border-radius:15px; color:#fff; background:linear-gradient(135deg,var(--fs-primary),var(--fs-secondary)); font-weight:950; }
.public-account-card > div,.public-account-guest > div { display:grid; gap:2px; min-width:0; }
.public-account-card strong,.public-account-card small,.public-account-guest strong,.public-account-guest small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.public-account-card small,.public-account-guest small { color:var(--fs-muted); font-size:.72rem; }
.public-account-item { display:flex; align-items:center; gap:12px; width:100%; padding:11px 12px; border:0; border-radius:12px; color:var(--fs-text); background:transparent; font:inherit; text-decoration:none; text-align:left; cursor:pointer; transition:.18s ease; }
.public-account-item:hover,.public-account-item:focus-visible { color:var(--fs-primary); background:#f5f3fb; transform:translateX(2px); }
.public-account-item svg { flex:0 0 21px; width:21px; height:21px; fill:currentColor; }
.public-account-item div { display:grid; gap:2px; }
.public-account-item strong { font-size:.82rem; }
.public-account-item small { color:var(--fs-muted); font-size:.7rem; }
.public-account-item.danger { color:#b42318; }
.public-account-form { margin:4px 0 0; padding-top:5px; border-top:1px solid #ece9f4; }
.public-account-overlay { display:none; }

/* Autenticación moderna */
.auth-body-premium { min-height:100vh; padding:0; background:#f6f5fa; }
.auth-experience { display:grid; grid-template-columns:minmax(360px,42%) minmax(0,1fr); min-height:100vh; }
.auth-story-panel { position:relative; display:flex; flex-direction:column; justify-content:space-between; overflow:hidden; padding:42px clamp(30px,5vw,76px); color:#fff; background:radial-gradient(circle at 80% 20%,rgba(237,116,37,.34),transparent 30%),linear-gradient(145deg,#1b123e,#423289 60%,#2d2167); }
.auth-story-panel::after { content:""; position:absolute; right:-110px; bottom:-110px; width:360px; height:360px; border:1px solid rgba(255,255,255,.14); border-radius:50%; box-shadow:0 0 0 54px rgba(255,255,255,.04),0 0 0 108px rgba(255,255,255,.025); }
.auth-story-logo { position:relative; z-index:1; display:block; width:min(250px,70%); }
.auth-story-logo img { display:block; width:100%; height:auto; }
.auth-story-copy { position:relative; z-index:1; max-width:570px; }
.auth-story-copy > span { color:#ffb17c; font-size:.75rem; font-weight:900; letter-spacing:.14em; }
.auth-story-copy h2 { margin:14px 0; font-size:clamp(2.1rem,4.4vw,4.7rem); line-height:1.02; letter-spacing:-.045em; }
.auth-story-copy p { max-width:600px; color:rgba(255,255,255,.72); font-size:1rem; line-height:1.75; }
.auth-benefit-list { display:grid; gap:10px; margin-top:28px; }
.auth-benefit-list div { display:flex; align-items:center; gap:13px; padding:12px 0; border-top:1px solid rgba(255,255,255,.12); }
.auth-benefit-list strong { color:#ffb17c; font-size:.75rem; }
.auth-benefit-list span { font-weight:750; }
.auth-story-panel > small { position:relative; z-index:1; color:rgba(255,255,255,.55); }
.auth-form-panel { display:grid; place-items:center; padding:34px clamp(18px,5vw,72px); }
.auth-mobile-brand { display:none; }
.auth-card-modern { width:min(560px,100%); padding:0; border:0; background:transparent; box-shadow:none; }
.auth-card-register { width:min(700px,100%); }
.auth-card-modern .auth-heading { margin-bottom:25px; }
.auth-card-modern h1 { margin:7px 0 9px; font-size:clamp(1.8rem,3.3vw,2.8rem); letter-spacing:-.035em; }
.auth-card-modern .auth-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:17px; }
.auth-card-modern .auth-form-single { grid-template-columns:1fr; }
.auth-card-modern label { display:grid; gap:7px; font-weight:800; font-size:.82rem; }
.auth-card-modern input,.auth-card-modern select { min-height:52px; padding:0 15px; border:1px solid #dcd8e8; border-radius:14px; background:#fff; font:inherit; outline:0; transition:.18s ease; }
.auth-card-modern input:focus { border-color:var(--fs-primary); box-shadow:0 0 0 4px rgba(66,50,137,.1); }
.auth-input-control { position:relative; }
.auth-input-control svg { position:absolute; left:15px; top:50%; width:20px; height:20px; fill:var(--fs-muted); transform:translateY(-50%); }
.auth-input-control input { width:100%; padding-left:45px; }
.password-control { position:relative; display:block; }
.password-control input { width:100%; padding-right:52px!important; }
.password-control button { position:absolute; top:50%; right:7px; display:grid; place-items:center; width:38px; height:38px; padding:0; border:0; border-radius:10px; color:var(--fs-muted); background:transparent; cursor:pointer; transform:translateY(-50%); }
.password-control button:hover,.password-control button.is-visible { color:var(--fs-primary); background:#f1eef9; }
.password-control button svg { width:21px; height:21px; fill:currentColor; }
.password-control button.is-visible svg { opacity:.55; }
.auth-form-row { display:flex; align-items:center; justify-content:space-between; gap:12px; font-size:.78rem; }
.auth-form-row a { color:var(--fs-primary); font-weight:850; text-decoration:none; }
.auth-remember { display:flex!important; grid-template-columns:auto 1fr; align-items:center; gap:8px!important; color:var(--fs-muted); }
.auth-remember input { width:16px; min-height:auto; }
.auth-divider { display:flex; align-items:center; gap:12px; margin:22px 0; color:var(--fs-muted); font-size:.72rem; font-weight:800; text-transform:uppercase; letter-spacing:.08em; }
.auth-divider::before,.auth-divider::after { content:""; flex:1; height:1px; background:#ddd9e8; }
.auth-security-note { display:flex; align-items:center; justify-content:center; gap:8px; margin:18px 0 0; color:var(--fs-muted); font-size:.72rem; }
.auth-security-note svg { width:17px; height:17px; fill:#198754; }
.auth-consent { display:flex!important; grid-template-columns:auto auto minmax(0,1fr); align-items:flex-start; gap:9px!important; padding:14px; border:1px solid #e3dfed; border-radius:14px; background:#faf9fd; font-weight:600!important; line-height:1.55; }
.auth-consent input { position:absolute; opacity:0; pointer-events:none; }
.auth-consent-check { display:grid; place-items:center; flex:0 0 23px; width:23px; height:23px; border:2px solid #c9c3d9; border-radius:7px; color:transparent; background:#fff; }
.auth-consent input:checked + .auth-consent-check { border-color:var(--fs-primary); color:#fff; background:var(--fs-primary); }
.auth-consent a { display:inline-flex; align-items:center; gap:3px; color:var(--fs-primary); font-weight:850; }
.auth-consent a svg { width:14px; height:14px; fill:currentColor; }
.button-large { min-height:52px; }

/* Panel del cliente */
.customer-account-page { min-height:70vh; background:#f6f7fb; }
.customer-account-top { padding:34px 0 64px; color:#fff; background:radial-gradient(circle at 80% 0,rgba(237,116,37,.28),transparent 30%),linear-gradient(135deg,#21154a,#423289); }
.customer-account-top-inner { display:flex; align-items:center; justify-content:space-between; gap:24px; }
.customer-account-top h1 { margin:5px 0 7px; font-size:clamp(1.8rem,4vw,3.1rem); }
.customer-account-top p { max-width:720px; margin:0; color:rgba(255,255,255,.72); }
.customer-account-section { padding:0 0 70px; }
.customer-account-layout { display:grid; grid-template-columns:280px minmax(0,1fr); gap:24px; align-items:start; margin-top:-38px; }
.customer-account-sidebar { position:sticky; top:92px; overflow:hidden; border:1px solid #e6e3ee; border-radius:22px; background:#fff; box-shadow:0 18px 55px rgba(28,20,70,.09); }
.customer-profile-card { display:flex; align-items:center; gap:12px; padding:20px; color:#fff; background:linear-gradient(135deg,#2d2167,#423289); }
.customer-profile-avatar { display:grid; place-items:center; flex:0 0 48px; width:48px; height:48px; border-radius:15px; background:linear-gradient(135deg,var(--fs-secondary),#ff9b58); font-weight:950; }
.customer-profile-card > div { display:grid; gap:2px; min-width:0; }
.customer-profile-card strong,.customer-profile-card small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.customer-profile-card small { color:rgba(255,255,255,.65); font-size:.7rem; }
.customer-account-nav { display:grid; gap:4px; padding:12px; }
.customer-account-nav a,.customer-sidebar-logout button { display:flex; align-items:center; gap:12px; width:100%; padding:11px 12px; border:0; border-radius:13px; color:#343344; background:transparent; text-align:left; text-decoration:none; cursor:pointer; transition:.18s ease; }
.customer-account-nav a:hover,.customer-account-nav a.is-active { color:var(--fs-primary); background:#f3f0fa; }
.customer-account-nav svg,.customer-sidebar-logout svg { flex:0 0 21px; width:21px; height:21px; fill:currentColor; }
.customer-account-nav span,.customer-sidebar-logout span { display:grid; gap:1px; }
.customer-account-nav strong,.customer-sidebar-logout strong { font-size:.8rem; }
.customer-account-nav small,.customer-sidebar-logout small { color:var(--fs-muted); font-size:.66rem; }
.customer-sidebar-logout { margin:0; padding:10px 12px 13px; border-top:1px solid #ece9f2; }
.customer-sidebar-logout button { color:#b42318; font:inherit; }
.customer-sidebar-logout button:hover { background:#fff0ef; }
.customer-account-main { min-width:0; }
.customer-account-mobile-nav { display:none; }
.account-notice { margin-bottom:16px; }
.customer-welcome-card,.customer-panel { padding:24px; border:1px solid #e5e2ed; border-radius:22px; background:#fff; box-shadow:0 15px 45px rgba(31,24,72,.055); }
.customer-welcome-card { display:flex; align-items:center; justify-content:space-between; gap:22px; margin-bottom:18px; background:linear-gradient(135deg,#fff,#faf7ff 60%,#fff5ec); }
.customer-welcome-card h2,.customer-panel h2 { margin:5px 0 7px; font-size:1.25rem; }
.customer-welcome-card p,.customer-panel p { color:var(--fs-muted); line-height:1.6; }
.customer-welcome-actions { display:flex; gap:9px; flex-wrap:wrap; }
.customer-metric-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-bottom:18px; }
.customer-metric-grid article { display:grid; gap:6px; padding:19px; border:1px solid #e5e2ed; border-radius:18px; background:#fff; box-shadow:0 10px 30px rgba(31,24,72,.045); }
.customer-metric-grid span { color:var(--fs-muted); font-size:.75rem; font-weight:800; }
.customer-metric-grid strong { color:var(--fs-primary); font-size:1.85rem; }
.customer-metric-grid small { color:#9492a0; font-size:.68rem; }
.customer-dashboard-grid { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(260px,.75fr); gap:18px; align-items:start; }
.customer-dashboard-side { display:grid; gap:18px; }
.customer-panel-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; margin-bottom:18px; }
.customer-panel-heading p { margin:5px 0 0; }
.customer-panel-heading > a { color:var(--fs-primary); font-weight:850; text-decoration:none; }
.customer-order-list { display:grid; gap:11px; }
.customer-order-card { display:grid; grid-template-columns:68px minmax(0,1fr) auto; align-items:center; gap:14px; padding:13px; border:1px solid #ebe8f1; border-radius:16px; background:#fff; }
.customer-order-card.expanded { grid-template-columns:84px minmax(0,1fr) auto; padding:16px; }
.customer-order-card img { width:68px; height:58px; object-fit:contain; border-radius:12px; background:#f5f4f8; }
.customer-order-card.expanded img { width:84px; height:72px; }
.customer-order-copy { display:grid; gap:3px; min-width:0; }
.customer-order-copy small,.customer-order-copy span { color:var(--fs-muted); font-size:.7rem; }
.customer-order-copy strong,.customer-order-copy h3 { margin:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.9rem; }
.customer-order-copy a { color:var(--fs-primary); font-size:.72rem; font-weight:850; text-decoration:none; }
.customer-order-value { display:grid; justify-items:end; gap:7px; text-align:right; }
.customer-order-value > strong { font-size:.9rem; }
.customer-profile-progress dl,.customer-security-status dl { display:grid; gap:9px; margin:0 0 18px; }
.customer-profile-progress dl div,.customer-security-status dl div { display:grid; gap:2px; padding:10px 0; border-bottom:1px solid #eeeaf3; }
.customer-profile-progress dt,.customer-security-status dt { color:var(--fs-muted); font-size:.68rem; font-weight:850; text-transform:uppercase; }
.customer-profile-progress dd,.customer-security-status dd { margin:0; overflow-wrap:anywhere; font-size:.82rem; font-weight:750; }
.customer-alert-panel { border-color:#fed7aa; background:#fff9ef; }
.customer-alert-panel a { color:#9a4b09; font-weight:850; }
.customer-empty-state { display:grid; justify-items:center; gap:8px; padding:34px; text-align:center; }
.customer-empty-state > span { font-size:2rem; }
.customer-form { display:grid; gap:18px; }
.customer-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.customer-form label { display:grid; gap:7px; font-size:.78rem; font-weight:850; }
.customer-form input,.customer-form select,.customer-form textarea { width:100%; min-height:48px; padding:0 13px; border:1px solid #dcd8e7; border-radius:13px; background:#fff; font:inherit; outline:0; }
.customer-form textarea { padding:12px 13px; resize:vertical; }
.customer-form input:focus,.customer-form select:focus,.customer-form textarea:focus { border-color:var(--fs-primary); box-shadow:0 0 0 4px rgba(66,50,137,.09); }
.customer-form input[readonly] { color:#777483; background:#f6f5f8; }
.customer-form label small { color:var(--fs-muted); font-weight:500; line-height:1.45; }
.customer-form-actions { display:flex; justify-content:flex-end; gap:10px; padding-top:16px; border-top:1px solid #ebe8f1; }
.customer-readonly-card { display:grid; gap:5px; padding:14px; border:1px solid #e6e2ed; border-radius:14px; background:#f8f7fb; }
.customer-readonly-card span,.customer-readonly-card small { color:var(--fs-muted); font-size:.7rem; }
.customer-security-grid { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(260px,.75fr); gap:18px; }
.customer-security-status { background:linear-gradient(145deg,#fff,#f5fff9); }
.customer-security-icon { display:grid; place-items:center; width:48px; height:48px; margin-bottom:12px; border-radius:16px; color:#fff; background:#198754; font-size:1.2rem; font-weight:950; }
.saved-card-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px; }
.saved-card-item { display:grid; gap:12px; padding:14px; border:1px solid #e5e2ed; border-radius:18px; }
.saved-card-visual { position:relative; min-height:170px; display:flex; flex-direction:column; justify-content:space-between; overflow:hidden; padding:20px; border-radius:17px; color:#fff; background:radial-gradient(circle at 80% 20%,rgba(237,116,37,.7),transparent 30%),linear-gradient(135deg,#24194f,#423289); }
.saved-card-visual::after { content:""; position:absolute; right:-25px; bottom:-40px; width:130px; height:130px; border:1px solid rgba(255,255,255,.22); border-radius:50%; }
.saved-card-visual span,.saved-card-visual strong,.saved-card-visual small { position:relative; z-index:1; }
.saved-card-visual strong { font-size:1.25rem; letter-spacing:.08em; }
.saved-card-meta { display:grid; gap:4px; }
.saved-card-meta small { color:var(--fs-muted); }
.saved-card-meta form button { margin-top:8px; padding:0; border:0; color:#b42318; background:transparent; font:inherit; font-size:.75rem; font-weight:850; cursor:pointer; }
.payment-method-empty { display:flex; align-items:center; gap:15px; padding:20px; border:1px dashed #cfc8df; border-radius:17px; background:#faf9fd; }
.payment-method-empty > span { font-size:2rem; }
.payment-method-empty h3 { margin:0 0 4px; }
.payment-method-empty p { margin:0; }
.used-payment-grid { display:grid; gap:10px; }
.used-payment-grid article { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:13px; padding:13px; border:1px solid #ebe8f1; border-radius:14px; }
.used-payment-icon { display:grid; place-items:center; width:42px; height:42px; border-radius:13px; background:#f1eef9; }
.used-payment-grid article div { display:grid; gap:2px; }
.used-payment-grid small,.used-payment-grid time { color:var(--fs-muted); font-size:.7rem; }
.customer-empty-inline { padding:22px; border:1px dashed #d7d2e2; border-radius:14px; color:var(--fs-muted); text-align:center; }
.customer-privacy-intro { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:18px; }
.customer-privacy-intro a { color:var(--fs-primary); font-weight:850; }
.customer-deletion-pending { border-color:#fed7aa; background:#fff9ef; }
.customer-danger-zone { border-color:#fecaca; }
.button-danger { color:#fff; background:#b42318; border-color:#b42318; }

/* Barra de resultados del catálogo: evita superposición en laptop */
.catalog-results-toolbar-app { display:grid!important; grid-template-columns:minmax(220px,1fr) auto; align-items:center!important; gap:18px!important; }
.catalog-toolbar-controls { display:flex!important; align-items:flex-end!important; justify-content:flex-end; gap:10px!important; flex-wrap:wrap; min-width:0; }
.catalog-sort-form { display:flex!important; align-items:flex-end!important; gap:10px!important; flex-wrap:wrap; }
.catalog-sort-form label { min-width:145px; }
.catalog-view-switcher { flex:0 0 auto; }

/* Páginas enriquecidas */
.rich-content-html { font-size:.96rem; line-height:1.8; }
.rich-content-html h2 { margin:1.8em 0 .55em; color:var(--fs-primary); font-size:1.55rem; }
.rich-content-html h3 { margin:1.5em 0 .5em; font-size:1.22rem; }
.rich-content-html ul,.rich-content-html ol { padding-left:1.4rem; }
.rich-content-html blockquote { margin:1.4rem 0; padding:15px 18px; border-left:4px solid var(--fs-secondary); border-radius:0 12px 12px 0; background:#fff7ef; }
.rich-content-html a { color:var(--fs-primary); font-weight:750; }
.legal-content footer { margin-top:32px; padding-top:18px; border-top:1px solid var(--fs-border); color:var(--fs-muted); }

@media (max-width:1100px) {
    .auth-experience { grid-template-columns:minmax(330px,38%) minmax(0,1fr); }
    .customer-account-layout { grid-template-columns:250px minmax(0,1fr); }
    .customer-metric-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .customer-dashboard-grid { grid-template-columns:1fr; }
    .customer-dashboard-side { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .catalog-results-toolbar-app { grid-template-columns:1fr; align-items:start!important; }
    .catalog-toolbar-controls { justify-content:flex-start; }
}

@media (max-width:820px) {
    .auth-experience { display:block; min-height:100vh; }
    .auth-story-panel { display:none; }
    .auth-form-panel { min-height:100vh; align-content:start; padding:26px 18px 44px; }
    .auth-mobile-brand { display:block; width:190px; margin:0 auto 28px; }
    .auth-mobile-brand img { display:block; width:100%; height:auto; }
    .customer-account-top { padding:26px 0 52px; }
    .customer-account-top-inner { align-items:flex-start; flex-direction:column; }
    .customer-account-layout { display:block; margin-top:-28px; }
    .customer-account-sidebar { display:none; }
    .customer-account-mobile-nav { display:flex; gap:7px; overflow-x:auto; margin:0 0 14px; padding:7px; border:1px solid #e6e2ee; border-radius:17px; background:#fff; box-shadow:0 10px 30px rgba(31,24,72,.07); scrollbar-width:none; }
    .customer-account-mobile-nav::-webkit-scrollbar { display:none; }
    .customer-account-mobile-nav a { display:grid; justify-items:center; flex:0 0 82px; gap:4px; padding:9px 6px; border-radius:12px; color:var(--fs-muted); font-size:.66rem; font-weight:850; text-align:center; text-decoration:none; }
    .customer-account-mobile-nav a.is-active { color:#fff; background:linear-gradient(135deg,var(--fs-primary),#6858b5); }
    .customer-account-mobile-nav svg { width:21px; height:21px; fill:currentColor; }
    .customer-welcome-card { align-items:flex-start; flex-direction:column; }
    .customer-security-grid { grid-template-columns:1fr; }
    .saved-card-grid { grid-template-columns:1fr; }
}

@media (max-width:760px) {
    .public-account-menu { margin-left:0; }
    .public-account-trigger { min-width:0; width:43px; padding:2px; border:0; background:transparent; }
    .public-account-avatar { width:39px; height:39px; }
    .public-account-summary,.public-account-chevron { display:none; }
    .public-account-dropdown { position:fixed; z-index:320; top:auto; right:10px; bottom:calc(76px + env(safe-area-inset-bottom)); left:10px; width:auto; max-height:min(72vh,620px); overflow:auto; border-radius:24px; box-shadow:0 30px 90px rgba(16,10,43,.38); }
    .public-account-overlay { position:fixed; z-index:310; inset:0; display:block; background:rgba(15,10,38,.52); backdrop-filter:blur(3px); }
    .public-account-overlay[hidden] { display:none!important; }
    body.public-account-open { overflow:hidden; }
    .mobile-header-account { display:none!important; }
    .main-nav .mobile-drawer-account { display:grid; }
    .customer-account-section { padding-bottom:92px; }
    .customer-welcome-card,.customer-panel { padding:18px; border-radius:18px; }
    .customer-metric-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
    .customer-metric-grid article { padding:15px; }
    .customer-dashboard-side { grid-template-columns:1fr; }
    .customer-order-card,.customer-order-card.expanded { grid-template-columns:58px minmax(0,1fr); align-items:start; }
    .customer-order-card img,.customer-order-card.expanded img { width:58px; height:54px; grid-row:1/3; }
    .customer-order-value { grid-column:2; justify-items:start; grid-template-columns:auto auto; align-items:center; text-align:left; }
    .customer-form-grid { grid-template-columns:1fr; }
    .form-span-2 { grid-column:auto!important; }
    .customer-form-actions { flex-direction:column-reverse; }
    .customer-form-actions .button { width:100%; }
    .customer-privacy-intro { align-items:flex-start; flex-direction:column; }
    .used-payment-grid article { grid-template-columns:auto minmax(0,1fr); }
    .used-payment-grid time { grid-column:2; }
    .auth-card-modern .auth-form { grid-template-columns:1fr; }
    .catalog-toolbar-controls,.catalog-sort-form { width:100%; }
    .catalog-sort-form label { flex:1 1 130px; min-width:0; }
}

@media (max-width:480px) {
    .customer-metric-grid { grid-template-columns:1fr 1fr; }
    .customer-account-top h1 { font-size:1.75rem; }
    .customer-account-top .button { width:100%; }
    .customer-panel-heading-responsive { align-items:flex-start; flex-direction:column; }
    .customer-panel-heading-responsive .button { width:100%; }
    .auth-form-row { align-items:flex-start; flex-direction:column; }
}

/* Consentimiento legal con control visual accesible. */
.auth-consent {
    position:relative;
    display:grid!important;
    grid-template-columns:24px minmax(0,1fr)!important;
    align-items:start!important;
    gap:10px!important;
    cursor:pointer;
}
.auth-consent > input[type="checkbox"] {
    position:absolute;
    width:1px!important;
    height:1px!important;
    opacity:0;
    pointer-events:none;
}
.auth-consent-check {
    display:grid;
    place-items:center;
    grid-column:1;
    width:22px;
    height:22px;
    margin-top:1px;
    border:2px solid #c8c2d8;
    border-radius:7px;
    color:transparent;
    background:#fff;
    font-size:.76rem;
    font-weight:950;
    transition:.18s ease;
}
.auth-consent > span:last-child { grid-column:2; line-height:1.55; }
.auth-consent input:focus-visible + .auth-consent-check { box-shadow:0 0 0 4px rgba(66,50,137,.12); }
.auth-consent input:checked + .auth-consent-check {
    color:#fff;
    border-color:var(--fs-primary);
    background:linear-gradient(135deg,var(--fs-primary),#6c58b8);
}
.auth-consent a { display:inline-flex; align-items:center; gap:3px; color:var(--fs-primary); font-weight:850; }
.auth-consent a svg { width:13px; height:13px; fill:currentColor; }

/* El botón de ojo forma parte del campo y no ocupa otra línea. */
.password-control {
    display:grid;
    grid-template-columns:minmax(0,1fr) 46px;
    align-items:stretch;
    overflow:hidden;
    border:1px solid #dcd8e7;
    border-radius:13px;
    background:#fff;
}
.password-control:focus-within { border-color:var(--fs-primary); box-shadow:0 0 0 4px rgba(66,50,137,.09); }
.password-control input { min-width:0; border:0!important; box-shadow:none!important; border-radius:0!important; }
.password-control button {
    display:grid;
    place-items:center;
    width:46px;
    border:0;
    border-left:1px solid #ebe7f1;
    color:var(--fs-primary);
    background:#f7f5fb;
    cursor:pointer;
}
.password-control button:hover,.password-control button.is-visible { background:#eeeaf8; }
.password-control button svg { width:20px; height:20px; fill:currentColor; }

/* ========================================================================== 
   FÁCIL SHOP 5.0.1 - HERO ADAPTABLE A LAPTOPS Y ESCALADO DE WINDOWS
   ========================================================================== */
.market-hero-grid,
.market-hero-copy,
.hero-showcase,
.showcase-window {
    min-width: 0;
}

@media (min-width: 1181px) and (max-width: 1600px) {
    .market-hero {
        padding: 84px 0 78px;
    }

    .market-hero .container {
        width: min(1280px, calc(100% - 56px));
    }

    .market-hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(360px, .78fr);
        gap: clamp(32px, 4vw, 56px);
    }

    .market-hero-copy h1 {
        font-size: clamp(3rem, 4.8vw, 4.75rem);
    }

    .market-hero-copy > p {
        font-size: 1.05rem;
        line-height: 1.65;
    }

    .hero-showcase {
        min-height: 410px;
    }

    .showcase-window {
        max-width: 470px;
        transform: perspective(900px) rotateY(-3deg) rotateX(1deg);
    }

    .showcase-body {
        min-height: 300px;
        padding: 30px;
    }

    .floating-badge {
        max-width: 190px;
        white-space: normal;
        text-align: center;
    }
}

@media (max-width: 1180px) {
    .market-hero {
        padding: 72px 0;
    }

    .market-hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 44px;
    }

    .market-hero-copy {
        max-width: 820px;
    }

    .market-hero-copy h1 {
        font-size: clamp(2.65rem, 7vw, 4.8rem);
    }

    .hero-showcase {
        width: min(620px, 100%);
        min-height: 390px;
        margin-inline: auto;
    }
}

/* =============================================================================
 * Fácil Shop 8.1.3 — Registro: consentimientos y reenvío de verificación
 * ============================================================================= */
.registration-consents {
    display:grid;
    gap:12px;
    padding:18px;
    border:1px solid #e6e1ee;
    border-radius:18px;
    background:linear-gradient(180deg,#fff 0%,#fbfaff 100%);
}
.registration-consents-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.registration-consents-heading h2 { margin:4px 0 5px; font-size:1.06rem; color:#262139; }
.registration-consents-heading p { margin:0; color:#6d667d; line-height:1.55; }

.registration-consents .auth-consent {
    padding:15px 16px;
    border:1px solid #ded9e8;
    border-radius:15px;
    background:#fff;
    transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.registration-consents .auth-consent:hover {
    border-color:#bdb4d4;
    box-shadow:0 8px 24px rgba(66,50,137,.07);
}
.registration-consents .auth-consent:focus-within {
    border-color:var(--fs-primary);
    box-shadow:0 0 0 4px rgba(66,50,137,.08);
}
.registration-consents .auth-consent.is-invalid {
    border-color:#d94f4f;
    background:#fff8f8;
}
.registration-consents .auth-consent-copy { display:grid; gap:5px; min-width:0; }
.registration-consents .auth-consent-topline {
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    justify-content:space-between;
    gap:8px 12px;
}
.registration-consents .auth-consent-topline strong { color:#2c2740; font-size:.96rem; }
.registration-consents .auth-consent-description { color:#514b63; line-height:1.6; }
.registration-consents .auth-consent-copy small { color:#7b7489; line-height:1.5; }
.auth-consent-badge {
    display:inline-flex;
    align-items:center;
    min-height:24px;
    padding:3px 9px;
    border-radius:999px;
    font-size:.72rem;
    font-weight:900;
    letter-spacing:.02em;
    white-space:nowrap;
}
.auth-consent-badge.is-required { color:#6f2f05; background:#fff1e7; border:1px solid #ffd3b5; }
.auth-consent-badge.is-optional { color:#423289; background:#f1eefc; border:1px solid #dcd4f5; }
.auth-consent-required:has(input:checked) { border-color:#a79aca; background:#fcfbff; }
.auth-consent-optional:has(input:checked) { border-color:#efb588; background:#fffaf6; }

.auth-verification-help {
    margin-top:18px;
    border:1px solid #e1ddeb;
    border-radius:16px;
    overflow:hidden;
    background:#fbfaff;
}
.auth-verification-help summary {
    display:grid;
    grid-template-columns:38px minmax(0,1fr);
    align-items:center;
    gap:10px;
    padding:14px 16px;
    cursor:pointer;
    list-style:none;
    color:#332d48;
}
.auth-verification-help summary::-webkit-details-marker { display:none; }
.auth-verification-help summary:hover { background:#f5f1fc; }
.auth-verification-help summary > span:last-child { display:grid; gap:2px; }
.auth-verification-help summary strong { font-size:.92rem; }
.auth-verification-help summary small { color:#756e83; font-weight:500; line-height:1.45; }
.auth-verification-help-icon {
    display:grid;
    place-items:center;
    width:34px;
    height:34px;
    border-radius:11px;
    color:#fff;
    background:linear-gradient(135deg,#423289,#6c58b8);
    font-weight:900;
}
.auth-verification-help-body { padding:0 16px 16px; border-top:1px solid #ebe7f1; }
.auth-verification-help-body > p { margin:14px 0; color:#625b70; line-height:1.55; }
.auth-verification-help-body > small { display:block; margin-top:9px; color:#898293; line-height:1.5; }
.auth-verification-resend-form {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:end;
    gap:10px;
}
.auth-verification-resend-form label { display:grid; gap:6px; min-width:0; }
.auth-verification-resend-form label > span { font-size:.82rem; font-weight:800; color:#433d54; }
.auth-verification-resend-form input { min-width:0; }
.auth-verification-resend-form .button { min-height:46px; white-space:nowrap; }

@media (max-width:640px) {
    .registration-consents { padding:14px; border-radius:16px; }
    .registration-consents .auth-consent { padding:14px; }
    .registration-consents .auth-consent-topline { align-items:flex-start; }
    .auth-verification-resend-form { grid-template-columns:1fr; }
    .auth-verification-resend-form .button { width:100%; }
}
