/* ========================================================================== 
   Fácil Shop 8.0.0 — Internacionalización, crecimiento y UX compacta
   ========================================================================== */

/* El atributo hidden siempre debe ganar frente a display de componentes. */
[hidden] { display: none !important; }

/* --------------------------------------------------------------------------
   Selector global de moneda
   -------------------------------------------------------------------------- */
.public-currency-menu { position: relative; flex: 0 0 auto; }
.public-currency-trigger {
    min-height: 46px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px;
    border: 1px solid rgba(255,255,255,.18); border-radius: 14px; background: rgba(255,255,255,.09);
    color: #fff; cursor: pointer; font: inherit;
}
.public-currency-trigger > svg:first-child { width: 22px; height: 22px; fill: currentColor; }
.public-currency-trigger span { display: grid; text-align: left; line-height: 1.05; }
.public-currency-trigger small { opacity: .72; font-size: 10px; }
.public-currency-trigger strong { font-size: 13px; }
.public-currency-chevron { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .18s ease; }
.public-currency-menu.is-open .public-currency-chevron { transform: rotate(180deg); }
.public-currency-dropdown {
    position: absolute; z-index: 1200; right: 0; top: calc(100% + 10px); width: min(330px, calc(100vw - 24px));
    padding: 14px; border: 1px solid #e6e7ee; border-radius: 18px; background: #fff; color: #242238;
    box-shadow: 0 22px 60px rgba(22,18,54,.22);
}
.public-currency-dropdown > strong, .public-currency-dropdown > small { display: block; }
.public-currency-dropdown > small { color: #6c6a7e; margin: 4px 0 12px; line-height: 1.4; }
.public-currency-dropdown form + form { margin-top: 7px; }
.public-currency-option {
    width: 100%; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 10px;
    border: 1px solid #ececf2; border-radius: 13px; padding: 10px; background: #fff; cursor: pointer; text-align: left;
}
.public-currency-option:hover, .public-currency-option.is-active { border-color: var(--fs-primary,#423289); background: #f7f5ff; }
.public-currency-option > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: #f1eff9; color: var(--fs-primary,#423289); font-weight: 800; }
.public-currency-option div { display: grid; }
.public-currency-option small { color: #777487; }
.public-currency-option b { color: #17824b; }

/* --------------------------------------------------------------------------
   Registro internacional y MFA
   -------------------------------------------------------------------------- */
.auth-card-global { width: min(820px, 100%); }
.auth-form-global { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.auth-form-global label { min-width: 0; }
.form-span-2 { grid-column: 1 / -1; }
.registration-section { padding: 0; margin: 0; border: 0; }
.registration-section legend { margin-bottom: 9px; font-weight: 800; color: #2f2b45; }
.account-type-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.account-type-card { display: block; position: relative; cursor: pointer; }
.account-type-card input { position: absolute; opacity: 0; pointer-events: none; }
.account-type-card > span { min-height: 76px; display: grid; align-content: center; gap: 3px; padding: 13px 15px; border: 1px solid #e3e1ea; border-radius: 15px; background: #fff; transition: .16s ease; }
.account-type-card input:checked + span { border-color: var(--fs-primary,#423289); box-shadow: 0 0 0 3px rgba(66,50,137,.09); background: #f8f7ff; }
.account-type-card small, .field-help { color: #777487; line-height: 1.35; }
.auth-consent { display: grid !important; grid-template-columns: 23px 1fr; gap: 10px; align-items: start; }
.auth-consent input { width: 20px !important; height: 20px !important; margin-top: 1px; }
.auth-consent-check { display: none; }
.auth-mfa-form { display: grid; gap: 22px; }
.auth-mfa-code-field { margin: 0; }
.auth-mfa-code-field input { min-height: 58px; font-size: 1.25rem; letter-spacing: .16em; text-align: center; }
.auth-mfa-form .button { margin-top: 2px; min-height: 52px; }

/* --------------------------------------------------------------------------
   Detalle compacto del producto
   -------------------------------------------------------------------------- */
.phase8-product-page { background: #f6f7fb; color: #26243a; }
.phase8-product-hero { padding: 34px 0 28px; background: radial-gradient(circle at 15% 8%, rgba(66,50,137,.13), transparent 35%), linear-gradient(180deg,#fff,#f6f7fb); }
.phase8-product-primary { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(340px,.85fr); gap: 26px; align-items: start; }
.phase8-product-showcase, .phase8-buy-card, .phase8-commercial-card, .phase8-rich-card, .phase8-spec-card {
    border: 1px solid #e5e6ee; background: #fff; border-radius: 22px; box-shadow: 0 14px 38px rgba(31,27,66,.07);
}
.phase8-product-showcase { padding: 26px; min-width: 0; }
.phase8-product-titlebar h1 { margin: 8px 0 8px; font-size: clamp(2rem,3.3vw,3.35rem); line-height: 1.04; letter-spacing: -.04em; }
.phase8-product-titlebar > p { max-width: 850px; color: #696679; font-size: 1.05rem; line-height: 1.6; }
.phase8-product-badges, .phase8-product-meta-row, .phase8-product-trust-row, .phase8-product-inline-actions, .phase8-commercial-tags { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.phase8-product-badges span, .phase8-product-badges b, .phase8-product-badges i, .phase8-product-meta-row span, .phase8-commercial-tags span {
    padding: 6px 9px; border-radius: 999px; background: #f1eff9; color: #4b3d8b; font-size: 12px; font-style: normal; font-weight: 750;
}
.phase8-product-badges b { background: #fff1e8; color: #b95517; }
.phase8-product-media { margin-top: 21px; aspect-ratio: 16/9; overflow: hidden; border-radius: 18px; background: #111; display: grid; place-items: center; }
.phase8-product-media img, .phase8-product-media video, .phase8-product-media iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.phase8-product-meta-row { margin-top: 15px; }
.phase8-product-trust-row { margin-top: 14px; padding-top: 14px; border-top: 1px solid #ececf2; color: #555267; font-size: 13px; }
.phase8-product-trust-row span { flex: 1 1 180px; }
.phase8-product-inline-actions { margin-top: 14px; }
.phase8-product-inline-actions form { margin: 0; }
.phase8-product-purchase-column { display: grid; gap: 16px; position: sticky; top: 88px; }
.phase8-buy-card, .phase8-commercial-card { padding: 22px; }
.phase8-buy-eyebrow { color: var(--fs-primary,#423289); font-weight: 850; font-size: 11px; letter-spacing: .08em; }
.phase8-price-block { margin: 10px 0 16px; display: grid; }
.phase8-price-block del { color: #9491a2; }
.phase8-price-block > strong { color: #201d35; font-size: clamp(2rem,3vw,2.8rem); letter-spacing: -.04em; }
.phase8-price-block small { color: #747182; }
.phase8-plan-select { display: grid; gap: 7px; margin-bottom: 13px; font-weight: 750; }
.phase8-plan-select select { min-height: 47px; border-radius: 12px; }
.phase8-plan-summary { padding: 15px; border: 1px solid #e8e7ef; border-radius: 15px; background: #faf9ff; }
.phase8-plan-summary h3 { margin: 0 0 4px; }
.phase8-plan-summary > p { margin: 0 0 12px; color: #6c697a; line-height: 1.45; }
.phase8-plan-summary dl, .phase8-commercial-card dl { display: grid; gap: 0; margin: 0; }
.phase8-plan-summary dl > div, .phase8-commercial-card dl > div { display: flex; justify-content: space-between; gap: 20px; padding: 9px 0; border-top: 1px solid #eceaf3; }
.phase8-plan-summary dt, .phase8-commercial-card dt { color: #716e80; }
.phase8-plan-summary dd, .phase8-commercial-card dd { margin: 0; text-align: right; font-weight: 760; }
.phase8-buy-actions { display: grid; gap: 9px; margin-top: 15px; }
.phase8-card-heading { display: grid; margin-bottom: 10px; }
.phase8-card-heading span { font-weight: 850; font-size: 1.05rem; }
.phase8-card-heading small { color: #777487; }
.phase8-commercial-tags { margin-top: 13px; }

.phase8-product-content { padding: 12px 0 38px; scroll-margin-top: 78px; }
.phase8-product-tabs { position: sticky; top: 68px; z-index: 20; display: flex; gap: 7px; overflow-x: auto; padding: 9px; margin-bottom: 18px; border: 1px solid #e4e5ed; border-radius: 16px; background: rgba(255,255,255,.96); box-shadow: 0 8px 25px rgba(30,27,65,.07); }
.phase8-product-tabs button { flex: 0 0 auto; border: 0; border-radius: 11px; padding: 10px 13px; background: transparent; color: #5b586b; font: inherit; font-weight: 760; cursor: pointer; }
.phase8-product-tabs button:hover, .phase8-product-tabs button.is-active { background: #ece9fb; color: var(--fs-primary,#423289); }
.phase8-tab-panel { min-height: 170px; }
.phase8-content-two-columns { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(300px,.75fr); gap: 18px; }
.phase8-rich-card, .phase8-spec-card { padding: 24px; }
.phase8-rich-content { color: #555267; line-height: 1.75; }
.phase8-spec-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.phase8-spec-grid > div { display: grid; gap: 3px; padding: 12px; border-radius: 12px; background: #f7f7fa; }
.phase8-spec-grid > div.is-highlighted { background: #f2efff; }
.phase8-spec-grid small { color: #777487; }
.phase8-feature-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.phase8-feature-grid article { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 18px; border: 1px solid #e5e6ee; border-radius: 16px; background: #fff; }
.phase8-feature-grid article > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: #eaf8f0; color: #19854e; font-weight: 900; }
.phase8-feature-grid h3 { margin: 0 0 5px; font-size: 1rem; }
.phase8-feature-grid p { margin: 0; color: #696678; line-height: 1.45; }
.phase8-gallery-grid, .phase8-demo-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.phase8-gallery-grid button { padding: 0; overflow: hidden; border: 1px solid #e3e4ec; border-radius: 16px; background: #fff; cursor: zoom-in; text-align: left; }
.phase8-gallery-grid img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.phase8-gallery-grid span { display: block; padding: 10px; font-weight: 750; }
.phase8-demo-grid { margin-top: 17px; }
.phase8-demo-grid article { display: grid; align-content: start; gap: 8px; padding: 18px; border: 1px solid #e5e6ee; border-radius: 16px; background: #fff; }
.phase8-demo-grid article > span { color: var(--fs-primary,#423289); font-size: 11px; font-weight: 850; }
.phase8-demo-grid h3, .phase8-demo-grid p { margin: 0; }
.phase8-demo-grid p { color: #686577; line-height: 1.45; }
.phase8-requirements-list, .phase8-version-list, .phase8-faq-list { display: grid; gap: 10px; }
.phase8-requirements-list article { display: grid; grid-template-columns: 100px 1fr; gap: 12px; padding: 14px; background: #fff; border: 1px solid #e5e6ee; border-radius: 14px; }
.phase8-requirements-list article > span { color: #5b4a9b; font-size: 11px; font-weight: 850; }
.phase8-requirements-list h3, .phase8-requirements-list p { margin: 0; }
.phase8-requirements-list p { margin-top: 4px; color: #696678; }
.phase8-version-list details, .phase8-faq-list details { border: 1px solid #e4e5ed; border-radius: 14px; background: #fff; overflow: hidden; }
.phase8-version-list summary, .phase8-faq-list summary { cursor: pointer; padding: 14px 16px; font-weight: 780; }
.phase8-version-list summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.phase8-version-list summary div { display: grid; }
.phase8-version-list summary small { color: #777487; font-weight: 500; }
.phase8-version-list details > div, .phase8-faq-list details > p { padding: 0 16px 16px; color: #625f70; }
.phase8-review-layout { display: grid; grid-template-columns: 200px 1fr; gap: 18px; }
.phase8-review-layout > aside { display: grid; align-content: start; gap: 4px; padding: 22px; border-radius: 18px; background: #292144; color: #fff; }
.phase8-review-layout > aside strong { font-size: 3rem; }
.phase8-review-layout > aside span { color: #ffcc5c; }
.phase8-review-card { padding: 18px; margin-bottom: 11px; border: 1px solid #e4e5ed; border-radius: 16px; background: #fff; }
.phase8-review-card header { display: flex; justify-content: space-between; gap: 12px; }
.phase8-review-card header div { display: grid; }
.phase8-review-card header span { color: #e1a319; }
.phase8-review-response { margin-top: 12px; padding: 12px; border-radius: 12px; background: #f6f4fd; }
.phase8-lightbox { width: min(1100px,94vw); padding: 10px; border: 0; border-radius: 18px; background: #121018; }
.phase8-lightbox::backdrop { background: rgba(8,7,14,.82); }
.phase8-lightbox img { display: block; width: 100%; max-height: 84vh; object-fit: contain; border-radius: 12px; }
.phase8-lightbox button { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: 26px; cursor: pointer; }

/* --------------------------------------------------------------------------
   Fase 8: administración y panel de cliente
   -------------------------------------------------------------------------- */
.growth-page { display: grid; gap: 20px; }
.growth-hero { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; padding: 23px; border-radius: 20px; background: linear-gradient(135deg,#31246d,#5543a0); color: #fff; }
.growth-hero h1 { margin: 5px 0; }
.growth-hero p { margin: 0; max-width: 760px; color: rgba(255,255,255,.82); }
.growth-kpi-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.growth-kpi { padding: 17px; border: 1px solid #e2e3eb; border-radius: 16px; background: #fff; }
.growth-kpi small { color: #777487; }
.growth-kpi strong { display: block; margin-top: 4px; font-size: 1.55rem; }
.growth-grid-2 { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; align-items: start; }
.growth-card { min-width: 0; padding: 19px; border: 1px solid #e2e3eb; border-radius: 18px; background: #fff; }
.growth-card h2, .growth-card h3 { margin-top: 0; }
.growth-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.growth-form .span-2 { grid-column: 1/-1; }
.growth-form label { display: grid; gap: 6px; min-width: 0; font-weight: 720; }
.growth-form input, .growth-form select, .growth-form textarea { width: 100%; min-width: 0; }
.growth-help { padding: 13px; border-radius: 13px; background: #f7f5ff; color: #5f5a72; line-height: 1.5; }
.growth-status { display: inline-flex; align-items: center; padding: 5px 8px; border-radius: 999px; background: #f0eff5; font-size: 12px; font-weight: 800; }
.growth-status.is-active, .growth-status.is-authorized, .growth-status.is-approved { background: #e7f7ee; color: #18784a; }
.growth-status.is-pending { background: #fff3dc; color: #96610a; }
.growth-status.is-failed, .growth-status.is-rejected, .growth-status.is-cancelled { background: #fdeaea; color: #a92c2c; }
.growth-empty { padding: 28px; text-align: center; border: 1px dashed #d8d7e0; border-radius: 15px; color: #737082; }
.growth-table-wrap { width: 100%; overflow-x: auto; }
.growth-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.growth-table th, .growth-table td { padding: 11px; border-bottom: 1px solid #ececf2; text-align: left; vertical-align: top; }
.growth-table th { color: #686577; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.growth-code-box { padding: 14px; border-radius: 13px; background: #181623; color: #ebe9f7; overflow-wrap: anywhere; font-family: ui-monospace,SFMono-Regular,Consolas,monospace; }

/* Menús de acciones globales: el portal permanece utilizable hasta elegir. */
.row-actions-trigger { width: 38px; height: 38px; display: inline-grid; place-items: center; border: 1px solid #dcdee8; border-radius: 11px; background: #fff; color: #4e4b5e; cursor: pointer; }
.row-actions-trigger svg { width: 21px; height: 21px; fill: currentColor; }
.row-actions-menu-content--portal { position: fixed !important; z-index: 99999 !important; min-width: 210px; max-width: min(320px,calc(100vw - 24px)); padding: 7px; overflow: auto; border: 1px solid #dcdee8; border-radius: 13px; background: #fff; box-shadow: 0 20px 55px rgba(27,24,58,.23); }
.row-actions-menu-content--portal a, .row-actions-menu-content--portal button { width: 100%; min-height: 38px; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 0; border-radius: 9px; background: transparent; color: #343143; text-decoration: none; text-align: left; cursor: pointer; font: inherit; }
.row-actions-menu-content--portal a:hover, .row-actions-menu-content--portal button:hover, .row-actions-menu-content--portal a:focus-visible, .row-actions-menu-content--portal button:focus-visible { background: #f1eff9; outline: none; }

@media (max-width: 1240px) {
    .phase8-product-primary { grid-template-columns: minmax(0,1fr) 360px; }
    .phase8-product-showcase { padding: 21px; }
    .phase8-product-purchase-column { position: static; }
    .growth-kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 980px) {
    .phase8-product-primary, .phase8-content-two-columns { grid-template-columns: 1fr; }
    .phase8-product-purchase-column { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .phase8-product-tabs { top: 58px; }
    .phase8-feature-grid, .phase8-gallery-grid, .phase8-demo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .growth-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .public-currency-trigger span, .public-currency-chevron { display: none; }
    .public-currency-trigger { width: 44px; padding: 8px; justify-content: center; }
    .auth-form-global, .account-type-options, .phase8-product-purchase-column, .phase8-feature-grid, .phase8-gallery-grid, .phase8-demo-grid, .phase8-review-layout, .growth-form, .growth-kpi-grid { grid-template-columns: 1fr; }
    .form-span-2, .growth-form .span-2 { grid-column: auto; }
    .phase8-product-hero { padding-top: 18px; }
    .phase8-product-showcase, .phase8-buy-card, .phase8-commercial-card { padding: 16px; border-radius: 17px; }
    .phase8-product-titlebar h1 { font-size: clamp(1.8rem,9vw,2.5rem); }
    .phase8-product-tabs { margin-inline: -2px; border-radius: 13px; }
    .phase8-requirements-list article { grid-template-columns: 1fr; }
    .growth-hero { display: grid; }
}

/* --------------------------------------------------------------------------
   Componentes de operación Fase 8
   -------------------------------------------------------------------------- */
.growth-kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:18px; }
.growth-kpis > article { min-width:0; padding:17px; border:1px solid #e3e4ec; border-radius:16px; background:#fff; box-shadow:0 8px 24px rgba(31,27,66,.04); }
.growth-kpis > article.is-alert { border-color:#f1bcbc; background:#fff7f7; }
.growth-kpis span,.growth-kpis small { display:block; color:#747182; }
.growth-kpis strong { display:block; margin:5px 0; font-size:1.5rem; color:#27243a; overflow-wrap:anywhere; }
.growth-shortcuts { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:11px; margin-bottom:18px; }
.growth-shortcuts a { display:grid; gap:4px; min-width:0; padding:15px; border:1px solid #e3e4ec; border-radius:14px; background:#fff; color:#322d4d; text-decoration:none; }
.growth-shortcuts a:hover { border-color:#b9b0e4; transform:translateY(-1px); }
.growth-shortcuts span { color:#777487; font-size:13px; }
.growth-two-columns,.growth-three-columns { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; align-items:start; margin-bottom:18px; }
.growth-three-columns { grid-template-columns:repeat(3,minmax(0,1fr)); }
.growth-two-columns > *,.growth-three-columns > * { min-width:0; }
.growth-toggle { display:grid !important; grid-template-columns:22px 1fr; align-items:start; gap:10px; padding:11px 12px; border:1px solid #e5e5ed; border-radius:12px; background:#fafaff; }
.growth-toggle input { width:19px !important; height:19px; margin-top:2px; }
.growth-toggle span { display:grid; gap:2px; }
.growth-toggle small { color:#747182; font-weight:400; }
.growth-quote-items { display:grid; gap:8px; }
.growth-quote-items h3 { margin:0; }
.growth-quote-item { display:grid; grid-template-columns:minmax(150px,.8fr) minmax(220px,2fr) 100px 130px; gap:8px; }
.growth-card-list,.growth-customer-cards { display:grid; gap:11px; }
.growth-card-list article,.growth-customer-cards article { min-width:0; padding:15px; border:1px solid #e4e5ed; border-radius:14px; background:#fff; }
.growth-card-list article { display:grid; gap:4px; }
.growth-customer-cards { grid-template-columns:repeat(2,minmax(0,1fr)); }
.growth-customer-cards article { display:grid; gap:9px; align-content:start; }
.growth-customer-cards h3,.growth-customer-cards p { margin:0; }
.growth-customer-cards p { color:#6d697b; }
.growth-customer-cards strong { font-size:1.35rem; }
.growth-customer-cards form { margin:0; }
.growth-scope-list { display:grid; gap:8px; padding:12px; border:1px solid #e4e5ed; border-radius:13px; }
.growth-scope-list legend { padding:0 6px; font-weight:800; }
.growth-scope-list label { display:grid; grid-template-columns:21px 1fr; gap:9px; align-items:start; font-weight:400; }
.growth-scope-list input { width:18px !important; height:18px; margin-top:2px; }
.growth-scope-list span { display:grid; }
.growth-scope-list small { color:#777487; }
.growth-secret-panel { max-width:820px; }
.growth-secret-panel textarea { width:100%; margin-top:8px; font-family:ui-monospace,SFMono-Regular,Consolas,monospace; }
.growth-affiliate-hero { display:flex; justify-content:space-between; gap:20px; align-items:center; padding:20px; margin-bottom:15px; border-radius:17px; background:linear-gradient(135deg,#30256c,#5946aa); color:#fff; }
.growth-affiliate-hero h3,.growth-affiliate-hero p { margin:5px 0; }
.growth-affiliate-hero code { display:block; max-width:100%; padding:9px; margin-top:8px; overflow-wrap:anywhere; background:rgba(255,255,255,.12); border-radius:10px; color:#fff; }
.growth-affiliate-hero > div:last-child { text-align:right; }
.growth-affiliate-hero > div:last-child strong { display:block; font-size:2.2rem; }
.growth-public-quote,.developer-portal { padding:46px 0; background:#f7f8fb; }
.growth-quote-document { max-width:980px; margin:auto; padding:30px; border:1px solid #e3e4ec; border-radius:22px; background:#fff; box-shadow:0 18px 55px rgba(30,27,65,.08); }
.growth-quote-document header h1 { margin:7px 0; }
.growth-quote-copy { margin:18px 0; color:#5d596d; line-height:1.7; }
.growth-quote-response { display:grid; gap:12px; padding-top:18px; margin-top:18px; border-top:1px solid #e6e6ed; }
.developer-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px; margin:24px 0; }
.developer-grid article { min-width:0; padding:20px; border:1px solid #e3e4ec; border-radius:18px; background:#fff; }
.developer-grid h2 { margin-top:0; }
.developer-grid pre { max-width:100%; overflow:auto; padding:13px; border-radius:12px; background:#191724; color:#f2f0fa; }

@media (max-width:1180px){ .growth-three-columns{grid-template-columns:1fr 1fr;} .growth-shortcuts{grid-template-columns:repeat(3,minmax(0,1fr));} }
@media (max-width:900px){ .growth-kpis,.growth-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr));} .growth-two-columns,.growth-three-columns,.developer-grid{grid-template-columns:1fr;} .growth-quote-item{grid-template-columns:1fr 1fr;} }
@media (max-width:640px){ .growth-kpis,.growth-shortcuts,.growth-customer-cards,.growth-quote-item{grid-template-columns:1fr;} .growth-affiliate-hero{display:grid;} .growth-affiliate-hero>div:last-child{text-align:left;} .growth-quote-document{padding:18px;border-radius:16px;} }

/* Fase 8 — liquidaciones de afiliados y resumen ejecutivo de analítica. */
.growth-affiliate-payout{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:18px 0;padding:18px;border:1px solid #e6e3f2;border-radius:16px;background:#faf9ff}
.growth-affiliate-payout h3{margin:0 0 5px}.growth-affiliate-payout p{margin:0;color:#696679}
.growth-affiliate-payout-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.growth-affiliate-payout-actions form{margin:0}
.growth-payout-form{display:grid;grid-template-columns:minmax(130px,.8fr) minmax(130px,1fr) minmax(160px,1.2fr) auto;gap:7px;align-items:center;min-width:560px}
.growth-payout-form select,.growth-payout-form input{min-width:0}
.growth-analytics-currencies{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:18px}.growth-analytics-summary{margin:0}.growth-analytics-summary .growth-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));margin:0}
@media(max-width:1100px){.growth-analytics-currencies{grid-template-columns:1fr}.growth-payout-form{min-width:520px}}
@media(max-width:700px){.growth-affiliate-payout{align-items:flex-start;flex-direction:column}.growth-affiliate-payout-actions{justify-content:flex-start}.growth-analytics-summary .growth-kpi-grid{grid-template-columns:1fr}}
.growth-quote-print{margin-top:12px}
@media print{
  .public-header,.public-footer,.growth-quote-response,.growth-quote-print,.cookie-banner{display:none!important}
  .growth-public-quote{padding:0!important;background:#fff!important}
  .growth-quote-document{box-shadow:none!important;border:0!important;max-width:none!important;margin:0!important}
  @page{size:A4;margin:14mm}
}

/* ==========================================================================
   FÁCIL SHOP 8.0.2 — CMS de portada conectado al frontend
   ========================================================================== */
.home-hero-media {
    position: relative;
    width: min(100%, 580px);
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 30px;
    background: rgba(255,255,255,.08);
    box-shadow: 0 35px 90px rgba(5,4,17,.38);
    isolation: isolate;
}
.home-hero-media::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(180deg, transparent, rgba(15,11,42,.78));
    pointer-events: none;
    z-index: 1;
}
.home-hero-media img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
}
.home-hero-media figcaption {
    position: absolute;
    z-index: 2;
    inset: auto 24px 22px;
    display: grid;
    gap: 4px;
    color: #fff;
}
.home-hero-media figcaption span {
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #ffd7bd;
}
.home-hero-media figcaption strong {
    max-width: 430px;
    font-size: clamp(1rem, 2vw, 1.3rem);
    line-height: 1.25;
}
.home-intermediate-promo {
    padding: 28px 0 34px;
    background: var(--fs-surface-soft);
}
.home-intermediate-promo-card {
    display: grid;
    grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr);
    align-items: stretch;
    overflow: hidden;
    min-width: 0;
    border: 1px solid rgba(66,50,137,.12);
    border-radius: 28px;
    background:
        radial-gradient(circle at 90% 10%, rgba(237,116,37,.14), transparent 32%),
        linear-gradient(135deg, #fff 0%, #f7f4ff 100%);
    box-shadow: 0 22px 60px rgba(43,35,87,.09);
}
.home-intermediate-promo-card.no-media {
    grid-template-columns: minmax(0, 1fr);
}
.home-intermediate-promo-media {
    min-width: 0;
    min-height: 300px;
    background: #eae7f6;
}
.home-intermediate-promo-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
}
.home-intermediate-promo-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: clamp(28px, 5vw, 58px);
}
.home-intermediate-promo-content h2 {
    margin: 10px 0 14px;
    max-width: 760px;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.03;
    letter-spacing: -.045em;
    color: var(--fs-ink);
}
.home-intermediate-promo-content p {
    max-width: 720px;
    margin: 0;
    color: var(--fs-muted);
    font-size: 1.04rem;
    line-height: 1.72;
}
.home-intermediate-promo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}
@media (max-width: 1000px) {
    .home-intermediate-promo-card { grid-template-columns: 1fr; }
    .home-intermediate-promo-media,
    .home-intermediate-promo-media img { min-height: 260px; max-height: 420px; }
}
@media (max-width: 640px) {
    .home-hero-media { border-radius: 22px; }
    .home-hero-media figcaption { inset: auto 18px 17px; }
    .home-intermediate-promo { padding: 18px 0 24px; }
    .home-intermediate-promo-card { border-radius: 20px; }
    .home-intermediate-promo-content { padding: 24px 20px 26px; }
    .home-intermediate-promo-actions { display: grid; }
    .home-intermediate-promo-actions .button { width: 100%; justify-content: center; }
}

/* ========================================================================== 
   FÁCIL SHOP 8.0.3 — PORTADA 1:1, FAQ ESCALABLE Y POSTVENTA V2
   ========================================================================== */

/* --------------------------------------------------------------------------
   Portada principal: las creatividades oficiales son 1200 × 1200 (1:1).
   Nunca se recortan. La imagen gana protagonismo y el título no compite con
   una creatividad que ya puede contener información comercial propia.
   -------------------------------------------------------------------------- */
.market-hero-grid {
    grid-template-columns: minmax(0, .88fr) minmax(440px, 1.12fr);
    gap: clamp(34px, 4.5vw, 72px);
}
.market-hero-copy h1 {
    max-width: 700px;
    font-size: clamp(2.65rem, 4.6vw, 4.6rem);
    line-height: 1.01;
}
.hero-showcase {
    min-height: 0;
    align-self: center;
}
.home-hero-media {
    width: min(100%, 640px);
    padding: 14px;
    border-radius: 32px;
    background: linear-gradient(145deg, rgba(255,255,255,.14), rgba(255,255,255,.055));
}
.home-hero-media::after { display: none; }
.home-hero-media img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    object-position: center;
    border-radius: 22px;
    background: rgba(255,255,255,.035);
}
.home-hero-media figcaption {
    position: static;
    padding: 14px 8px 4px;
    color: #fff;
}
.home-hero-media figcaption strong {
    max-width: none;
    font-size: .95rem;
    color: rgba(255,255,255,.78);
}
.home-hero-media figcaption span { color: #ffd7bd; }

/* Promoción intermedia 1:1: se contiene la creatividad completa en vez de
   forzar object-fit:cover. */
.home-intermediate-promo-card {
    grid-template-columns: minmax(320px, .88fr) minmax(0, 1.12fr);
}
.home-intermediate-promo-media {
    display: grid;
    place-items: center;
    min-height: 0;
    padding: clamp(16px, 2.5vw, 30px);
    background: linear-gradient(145deg, #eeebf8, #f9f7fd);
}
.home-intermediate-promo-media img {
    width: min(100%, 520px);
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 18px 45px rgba(36,28,80,.12);
}

@media (min-width: 1181px) and (max-width: 1600px) {
    .market-hero-grid { grid-template-columns: minmax(0, .84fr) minmax(400px, 1.16fr); }
    .market-hero-copy h1 { font-size: clamp(2.75rem, 4vw, 4.15rem); }
    .home-hero-media { width: min(100%, 600px); }
}
@media (max-width: 1180px) {
    .market-hero-grid { grid-template-columns: 1fr; }
    .market-hero-copy { max-width: 780px; }
    .hero-showcase { width: min(680px, 100%); }
    .home-hero-media { margin-inline: auto; }
}
@media (max-width: 1000px) {
    .home-intermediate-promo-card { grid-template-columns: 1fr; }
    .home-intermediate-promo-media { padding: 18px; }
    .home-intermediate-promo-media img { width: min(100%, 560px); }
}
@media (max-width: 640px) {
    .home-hero-media { padding: 9px; border-radius: 22px; }
    .home-hero-media img { border-radius: 16px; }
    .home-hero-media figcaption { padding: 12px 5px 2px; }
}

/* --------------------------------------------------------------------------
   FAQ de Inicio: selección corta + acceso al centro completo.
   -------------------------------------------------------------------------- */
.home-faq-section {
    background:
        radial-gradient(circle at 0 0, rgba(66,50,137,.075), transparent 34%),
        linear-gradient(180deg, #fff, #fbfaff);
}
.home-faq-shell {
    display: grid;
    grid-template-columns: minmax(280px, .7fr) minmax(0, 1.3fr);
    gap: clamp(34px, 5vw, 72px);
    align-items: start;
}
.home-faq-intro {
    position: sticky;
    top: 96px;
    min-width: 0;
}
.home-faq-intro h2 {
    margin: 10px 0 16px;
    font-size: clamp(2rem, 3.6vw, 3.35rem);
    line-height: 1.04;
    letter-spacing: -.04em;
}
.home-faq-intro > p { color: var(--fs-muted); line-height: 1.75; }
.home-faq-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.home-faq-note {
    display: grid;
    gap: 4px;
    margin-top: 22px;
    padding: 16px;
    border: 1px solid rgba(66,50,137,.12);
    border-radius: 16px;
    background: #fff;
    color: var(--fs-muted);
}
.home-faq-note strong { color: var(--fs-ink); }
.home-faq-list { display: grid; gap: 12px; }
.home-faq-list details {
    overflow: hidden;
    border: 1px solid #e7e2f0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(35,28,72,.035);
}
.home-faq-list summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 19px 20px;
    list-style: none;
    cursor: pointer;
}
.home-faq-list summary::-webkit-details-marker { display: none; }
.home-faq-list summary > span { display: grid; gap: 5px; min-width: 0; font-weight: 850; color: var(--fs-ink); }
.home-faq-list summary small { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fs-primary); }
.home-faq-list summary i {
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f1eef9;
    color: var(--fs-primary);
    font-style: normal;
    font-size: 1.25rem;
    transition: transform .2s ease, background .2s ease;
}
.home-faq-list details[open] summary i { transform: rotate(45deg); background: var(--fs-primary); color: #fff; }
.home-faq-list details > div { padding: 0 20px 20px; }
.home-faq-list details p { margin: 0; color: var(--fs-muted); line-height: 1.72; }

/* Página completa de preguntas frecuentes. */
.faq-hub-page { min-height: 70vh; background: #faf9fd; }
.faq-hub-hero {
    padding: clamp(54px, 8vw, 92px) 0;
    color: #fff;
    background:
        radial-gradient(circle at 82% 18%, rgba(237,116,37,.38), transparent 32%),
        linear-gradient(135deg, #24194e, #423289 62%, #513ca6);
}
.faq-hub-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .55fr); gap: clamp(28px, 5vw, 70px); align-items: center; }
.faq-hub-hero h1 { max-width: 850px; margin: 12px 0 16px; font-size: clamp(2.4rem, 5vw, 4.8rem); line-height: .98; letter-spacing: -.05em; }
.faq-hub-hero p { max-width: 760px; color: rgba(255,255,255,.8); font-size: 1.05rem; line-height: 1.7; }
.faq-hub-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; max-width: 760px; margin-top: 26px; }
.faq-hub-search label { min-width: 0; }
.faq-hub-search input { width: 100%; min-width: 0; padding: 14px 16px; border: 1px solid rgba(255,255,255,.18); border-radius: 14px; background: rgba(255,255,255,.97); color: var(--fs-ink); font: inherit; }
.faq-hub-stats { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 18px; color: rgba(255,255,255,.76); }
.faq-hub-stats span { display: inline-flex; align-items: baseline; gap: 6px; }
.faq-hub-stats strong { color: #fff; }
.faq-hub-help-card { padding: 24px; border: 1px solid rgba(255,255,255,.18); border-radius: 24px; background: rgba(255,255,255,.1); backdrop-filter: blur(14px); }
.faq-hub-help-card > span { color: #ffd7bd; font-size: .76rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.faq-hub-help-card > strong { display: block; margin-top: 8px; font-size: 1.45rem; }
.faq-hub-help-card p { font-size: .94rem; }
.faq-hub-content { padding-top: 28px; padding-bottom: 72px; }
.faq-group-chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 18px; scrollbar-width: thin; }
.faq-group-chips a { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; padding: 10px 13px; border: 1px solid #e2ddec; border-radius: 999px; background: #fff; color: var(--fs-ink); text-decoration: none; font-size: .84rem; font-weight: 800; }
.faq-group-chips a span { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: #f1eef9; color: var(--fs-primary); font-size: .72rem; }
.faq-group-chips a.is-active { border-color: var(--fs-primary); background: var(--fs-primary); color: #fff; }
.faq-group-chips a.is-active span { background: rgba(255,255,255,.16); color: #fff; }
.faq-hub-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 320px); gap: 28px; align-items: start; }
.faq-hub-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.faq-hub-heading h2 { margin: 7px 0 0; font-size: clamp(1.65rem, 3vw, 2.5rem); }
.faq-hub-heading > a { color: var(--fs-primary); font-weight: 800; }
.faq-hub-list { display: grid; gap: 12px; }
.faq-hub-list details { overflow: hidden; border: 1px solid #e4dfec; border-radius: 18px; background: #fff; box-shadow: 0 12px 30px rgba(34,27,68,.04); }
.faq-hub-list summary { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 20px; cursor: pointer; list-style: none; }
.faq-hub-list summary::-webkit-details-marker { display: none; }
.faq-hub-list summary > span { display: grid; gap: 5px; min-width: 0; color: var(--fs-ink); font-weight: 850; }
.faq-hub-list summary small { color: var(--fs-primary); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }
.faq-hub-list summary i { flex: 0 0 auto; font-style: normal; font-size: 1.35rem; color: var(--fs-primary); transition: transform .2s ease; }
.faq-hub-list details[open] summary i { transform: rotate(45deg); }
.faq-hub-list details > div { padding: 0 20px 20px; }
.faq-hub-list p { margin: 0; color: var(--fs-muted); line-height: 1.75; }
.faq-hub-side { position: sticky; top: 96px; display: grid; gap: 14px; }
.faq-hub-side section { padding: 20px; border: 1px solid #e4dfec; border-radius: 18px; background: #fff; }
.faq-hub-side h3 { margin: 8px 0 10px; }
.faq-hub-side p { color: var(--fs-muted); line-height: 1.65; }
.faq-hub-empty { padding: 34px; border: 1px dashed #d7cfe6; border-radius: 18px; background: #fff; text-align: center; }
.faq-hub-empty p { color: var(--fs-muted); }

/* --------------------------------------------------------------------------
   Postventa V2: filtros y formularios no se superponen, los check/toggle
   permanecen unidos a su texto y el diseño se degrada ordenadamente en laptop.
   -------------------------------------------------------------------------- */
.ps-v2-heading { align-items: flex-start; }
.ps-v2-heading .heading-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ps-v2-kpi-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}
.ps-v2-kpi-strip article {
    min-width: 0;
    padding: 17px 18px;
    border: 1px solid #e4dfec;
    border-radius: 18px;
    background: linear-gradient(145deg, #fff, #fbfaff);
}
.ps-v2-kpi-strip article.is-danger { border-color: #fecaca; background: #fff7f7; }
.ps-v2-kpi-strip span,.ps-v2-kpi-strip small { display: block; color: var(--ps-muted); }
.ps-v2-kpi-strip strong { display: block; margin: 6px 0 4px; color: var(--ps-ink); font-size: 1.65rem; }
.ps-v2-filter-panel { margin-bottom: 18px; }
.ps-v2-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.ps-v2-section-head h2 { margin: 4px 0 5px; }
.ps-v2-section-head p { margin: 0; color: var(--ps-muted); }
.ps-v2-filter-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(150px, .8fr));
    gap: 14px;
    align-items: end;
}
.ps-v2-filter-grid > * { min-width: 0; }
.ps-v2-toggle-card {
    position: relative;
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-width: 0 !important;
    padding: 12px 13px;
    border: 1px solid #ded8e9;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
}
.ps-v2-toggle-card input { position: absolute; opacity: 0; pointer-events: none; }
.ps-v2-toggle-control {
    position: relative;
    display: block;
    width: 42px;
    height: 24px;
    border-radius: 999px;
    background: #d8d4e1;
    transition: background .18s ease;
}
.ps-v2-toggle-control::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 7px rgba(26,20,49,.2);
    transition: transform .18s ease;
}
.ps-v2-toggle-card input:checked + .ps-v2-toggle-control { background: var(--ps-purple); }
.ps-v2-toggle-card input:checked + .ps-v2-toggle-control::after { transform: translateX(18px); }
.ps-v2-toggle-card:focus-within { box-shadow: 0 0 0 4px rgba(66,50,137,.09); border-color: var(--ps-purple); }
.ps-v2-toggle-card > span:last-child { display: grid; gap: 2px; min-width: 0; }
.ps-v2-toggle-card strong { color: var(--ps-ink); }
.ps-v2-toggle-card small { color: var(--ps-muted); line-height: 1.35; }
.ps-v2-filter-grid .ps-v2-toggle-card { grid-column: 1 / span 2; }
.ps-v2-filter-actions { display: flex; justify-content: flex-end; gap: 9px; grid-column: 3 / -1; }
.ps-v2-filter-actions .button { min-height: 44px; }
.ps-v2-table-panel .table-wrap { border-radius: 14px; }
.ps-v2-sla-date { white-space: nowrap; }

.ps-v2-guide-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}
.ps-v2-guide-strip article { display: flex; gap: 12px; align-items: flex-start; min-width: 0; padding: 15px; border: 1px solid #e4dfec; border-radius: 16px; background: #fff; }
.ps-v2-guide-strip b { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 12px; background: #f0ecfa; color: var(--ps-purple); }
.ps-v2-guide-strip article > div { display: grid; gap: 3px; min-width: 0; }
.ps-v2-guide-strip span { color: var(--ps-muted); font-size: .82rem; line-height: 1.45; }
.ps-v2-sla-layout { display: grid; grid-template-columns: minmax(260px, .42fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.ps-v2-sla-help { position: sticky; top: 92px; background: linear-gradient(150deg, #f7f4ff, #fffaf6); }
.ps-v2-sla-help h2 { margin: 5px 0 10px; }
.ps-v2-sla-help > p { color: var(--ps-muted); line-height: 1.65; }
.ps-v2-sla-help dl { display: grid; gap: 12px; margin: 18px 0; }
.ps-v2-sla-help dl div { padding: 13px; border: 1px solid #e4dfec; border-radius: 13px; background: rgba(255,255,255,.76); }
.ps-v2-sla-help dt { font-weight: 850; color: var(--ps-ink); }
.ps-v2-sla-help dd { margin: 5px 0 0; color: var(--ps-muted); line-height: 1.5; }
.ps-v2-info-note { display: grid; gap: 4px; padding: 13px; border-left: 4px solid var(--ps-orange); border-radius: 8px 12px 12px 8px; background: #fff7ed; }
.ps-v2-info-note span { color: #7c5d45; line-height: 1.5; }
.ps-v2-sla-create { min-width: 0; }
.ps-v2-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ps-v2-number-unit { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; overflow: hidden; border: 1px solid #cbd5e1; border-radius: .7rem; background: #fff; }
.ps-v2-number-unit input { border: 0 !important; box-shadow: none !important; border-radius: 0 !important; }
.ps-v2-number-unit em { display: grid; place-items: center; min-width: 48px; padding: 0 10px; border-left: 1px solid #e2e8f0; background: #f8fafc; color: var(--ps-muted); font-style: normal; font-size: .8rem; font-weight: 800; }
.ps-v2-toggle-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.ps-v2-form-footer { display: flex; justify-content: flex-end; margin-top: 16px; }
.ps-v2-existing-section { margin-top: 24px; }
.ps-v2-sla-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ps-v2-sla-card { display: grid; gap: 16px; min-width: 0; }
.ps-v2-sla-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid #ece8f2; }
.ps-v2-sla-card h3 { margin: 7px 0 0; }
.ps-v2-sla-card code { max-width: 45%; overflow-wrap: anywhere; padding: 6px 8px; border-radius: 8px; background: #f7f5fb; color: var(--ps-purple); }
.ps-v2-sla-card > footer { display: flex; justify-content: flex-end; }

/* Reforzamos todas las vistas de Postventa existentes aunque todavía utilicen
   el markup de Fase 7. */
.ps-admin-filter {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    align-items: end;
    gap: 14px;
}
.ps-admin-filter > * { min-width: 0 !important; }
.ps-admin-filter .filter-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.ps-admin-form .ps-check-row {
    display: grid !important;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #e4dfec;
    border-radius: 12px;
    background: #faf9fd;
}
.ps-admin-form .ps-check-row input { margin: 3px 0 0; justify-self: center; }
.ps-renewal-admin-card,
.ps-review-admin-card,
.ps-renewal-plan-card { border-radius: 18px; box-shadow: 0 12px 30px rgba(35,28,72,.04); }
.ps-renewal-actions,.ps-review-actions { min-width: 0; }
.ps-renewal-actions > *,.ps-review-actions > * { min-width: 0; }
.ps-renewal-plan-layout > .panel { max-height: calc(100vh - 110px); overflow: auto; }
.ps-admin-shortcuts a { min-height: 88px; border-radius: 16px; box-shadow: 0 10px 24px rgba(33,25,76,.08); }
.ps-admin-kpis article { border-radius: 16px; box-shadow: 0 9px 24px rgba(33,25,76,.035); }
.ps-inline-note { min-width: 240px; }

/* Centro de ayuda: agrega una salida clara hacia FAQ sin mezclar ambos modelos. */
.knowledge-sidebar .knowledge-faq-link { margin-top: 8px; border-top: 1px solid var(--ps-border); color: var(--ps-purple); font-weight: 800; }
.knowledge-admin-guide { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-bottom: 16px; }
.knowledge-admin-guide article { padding: 15px; border: 1px solid #e4dfec; border-radius: 15px; background: #fff; }
.knowledge-admin-guide strong,.knowledge-admin-guide span { display: block; }
.knowledge-admin-guide span { margin-top: 4px; color: var(--ps-muted); line-height: 1.45; }

@media (max-width: 1360px) {
    .ps-v2-kpi-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ps-v2-guide-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ps-v2-filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ps-v2-search-field { grid-column: span 2; }
    .ps-v2-filter-grid .ps-v2-toggle-card { grid-column: span 2; }
    .ps-v2-filter-actions { grid-column: auto; }
    .ps-admin-filter { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ps-sla-grid,.ps-v2-sla-cards { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
    .home-faq-shell,.faq-hub-layout,.faq-hub-hero-grid,.ps-v2-sla-layout { grid-template-columns: 1fr; }
    .home-faq-intro,.faq-hub-side,.ps-v2-sla-help { position: static; }
    .faq-hub-help-card { max-width: 620px; }
    .ps-v2-sla-cards { grid-template-columns: 1fr; }
    .ps-renewal-plan-layout > .panel { max-height: none; overflow: visible; }
    .knowledge-admin-guide { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .ps-v2-filter-grid,.ps-admin-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ps-v2-search-field { grid-column: 1 / -1; }
    .ps-v2-filter-grid .ps-v2-toggle-card { grid-column: 1 / -1; }
    .ps-v2-filter-actions { grid-column: 1 / -1; justify-content: stretch; }
    .ps-v2-filter-actions .button { flex: 1 1 180px; justify-content: center; }
    .ps-v2-form-grid,.ps-v2-toggle-grid { grid-template-columns: 1fr; }
    .faq-hub-search { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
    .ps-v2-kpi-strip,.ps-v2-guide-strip,.ps-v2-filter-grid,.ps-admin-filter { grid-template-columns: 1fr; }
    .ps-v2-search-field,.ps-v2-filter-grid .ps-v2-toggle-card,.ps-v2-filter-actions { grid-column: auto; }
    .ps-v2-heading .heading-actions,.ps-v2-heading .heading-actions .button { width: 100%; }
    .ps-v2-heading .heading-actions .button { justify-content: center; }
    .ps-v2-sla-card > header,.ps-v2-section-head,.faq-hub-heading { flex-direction: column; }
    .ps-v2-sla-card code { max-width: 100%; }
    .ps-v2-form-footer .button,.ps-v2-sla-card > footer .button { width: 100%; justify-content: center; }
    .home-faq-actions { display: grid; }
    .home-faq-actions .button { width: 100%; justify-content: center; }
}


/* ==========================================================================
   FÁCIL SHOP 8.0.4 — FAQ, CENTRO DE AYUDA, POSTVENTA Y MENÚS ADMIN
   ========================================================================== */

/* --------------------------------------------------------------------------
   Menú global de acciones.
   Refuerza el botón nuevo y evita que reglas heredadas de <summary> interfieran.
   -------------------------------------------------------------------------- */
.row-actions-menu .row-actions-trigger {
    display: inline-grid !important;
    place-items: center;
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0 !important;
    border: 1px solid #d9dbe6 !important;
    border-radius: 11px;
    background: #fff !important;
    color: var(--admin-primary, #423289) !important;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}
.row-actions-menu .row-actions-trigger:hover,
.row-actions-menu .row-actions-trigger:focus-visible {
    border-color: rgba(66,50,137,.42) !important;
    background: #f5f2fb !important;
    outline: none;
    transform: translateY(-1px);
}
.row-actions-menu.is-open .row-actions-trigger {
    border-color: var(--admin-primary, #423289) !important;
    background: var(--admin-primary, #423289) !important;
    color: #fff !important;
}
.row-actions-menu-content--portal {
    right: auto !important;
    bottom: auto !important;
}

/* --------------------------------------------------------------------------
   Paginación pública reutilizable.
   Mantiene un número compacto de páginas y se adapta a móviles sin desbordar.
   -------------------------------------------------------------------------- */
.fs-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 28px;
    padding: 14px 16px;
    border: 1px solid #e3dfeb;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(34,27,68,.045);
}
.fs-pagination-summary {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex: 0 0 auto;
    color: var(--fs-muted, #64748b);
}
.fs-pagination-summary strong { color: var(--fs-ink, #1e293b); }
.fs-pagination-controls,
.fs-pagination-pages {
    display: flex;
    align-items: center;
    gap: 7px;
}
.fs-pagination-pages a,
.fs-pagination-ellipsis,
.fs-pagination-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 0 11px;
    border: 1px solid #e1ddea;
    border-radius: 11px;
    background: #fff;
    color: var(--fs-ink, #1e293b);
    text-decoration: none;
    font-weight: 800;
}
.fs-pagination-pages a:hover,
.fs-pagination-nav:hover {
    border-color: rgba(66,50,137,.35);
    background: #f6f3fc;
    color: var(--fs-primary, #423289);
}
.fs-pagination-pages a.is-current {
    border-color: var(--fs-primary, #423289);
    background: var(--fs-primary, #423289);
    color: #fff;
    box-shadow: 0 9px 20px rgba(66,50,137,.18);
}
.fs-pagination-ellipsis {
    min-width: 28px;
    padding: 0 4px;
    border-color: transparent;
    color: #8f8a9c;
}
.fs-pagination-nav { gap: 6px; min-width: auto; }
.fs-pagination-nav.is-disabled {
    opacity: .42;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   Preguntas frecuentes V2.
   Las categorías pasan a la columna lateral, justo antes del bloque Diferencia.
   -------------------------------------------------------------------------- */
.faq-hub-results { min-width: 0; }
.faq-hub-heading p {
    margin: 8px 0 0;
    color: var(--fs-muted, #64748b);
}
.faq-category-panel {
    background:
        radial-gradient(circle at 100% 0, rgba(237,116,37,.11), transparent 38%),
        #fff !important;
}
.faq-category-list {
    display: grid;
    gap: 7px;
    margin-top: 14px;
    max-height: min(55vh, 540px);
    overflow-y: auto;
    padding-right: 3px;
    scrollbar-width: thin;
}
.faq-category-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    padding: 10px 11px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--fs-ink, #1e293b);
    text-decoration: none;
    font-size: .87rem;
    font-weight: 760;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.faq-category-list a span {
    min-width: 0;
    overflow-wrap: anywhere;
}
.faq-category-list a b {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    min-width: 28px;
    height: 28px;
    padding: 0 7px;
    border-radius: 999px;
    background: #f1eef9;
    color: var(--fs-primary, #423289);
    font-size: .72rem;
}
.faq-category-list a:hover {
    border-color: #e2ddec;
    background: #f8f6fc;
    color: var(--fs-primary, #423289);
}
.faq-category-list a.is-active {
    border-color: var(--fs-primary, #423289);
    background: var(--fs-primary, #423289);
    color: #fff;
}
.faq-category-list a.is-active b {
    background: rgba(255,255,255,.16);
    color: #fff;
}

/* --------------------------------------------------------------------------
   Centro de ayuda V2.
   Cards más visuales, navegación más clara y mejor uso del espacio.
   -------------------------------------------------------------------------- */
.knowledge-hero-v2 {
    padding: clamp(48px, 7vw, 82px) 0;
}
.knowledge-hero-v2-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, .55fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
}
.knowledge-hero-v2 h1 {
    max-width: 900px;
    margin: 12px 0 15px;
    font-size: clamp(2.25rem, 4.7vw, 4.45rem);
    line-height: 1;
    letter-spacing: -.045em;
}
.knowledge-search-v2 {
    max-width: 940px;
    margin-top: 24px;
}
.knowledge-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 20px;
    margin-top: 17px;
    color: rgba(255,255,255,.78);
}
.knowledge-hero-stats strong { color: #fff; }
.knowledge-hero-card {
    min-width: 0;
    padding: 24px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 24px;
    background: rgba(255,255,255,.11);
    backdrop-filter: blur(14px);
}
.knowledge-hero-card > strong {
    display: block;
    margin: 8px 0;
    color: #fff;
    font-size: 1.4rem;
}
.knowledge-hero-card p {
    color: rgba(255,255,255,.82);
    line-height: 1.65;
}
.knowledge-content-v2 { padding-top: 30px; }
.knowledge-layout-v2 {
    grid-template-columns: minmax(235px, 290px) minmax(0, 1fr);
    gap: 26px;
}
.knowledge-sidebar-v2 {
    gap: 8px;
    padding: 17px;
    border-radius: 20px;
    box-shadow: 0 14px 35px rgba(31,25,64,.045);
}
.knowledge-sidebar-heading {
    padding: 4px 6px 10px;
}
.knowledge-sidebar-heading h2 {
    margin: 5px 0 0;
    font-size: 1.22rem;
}
.knowledge-category-nav {
    display: grid;
    gap: 5px;
}
.knowledge-sidebar-v2 .knowledge-category-nav a {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 11px;
    border: 1px solid transparent;
}
.knowledge-sidebar-v2 .knowledge-category-nav a:hover {
    border-color: #e5e0ed;
}
.knowledge-sidebar-divider {
    height: 1px;
    margin: 5px 4px;
    background: #ece8f1;
}
.knowledge-sidebar-action {
    display: grid !important;
    gap: 2px;
    margin: 0 !important;
    padding: 11px !important;
    border: 1px solid transparent !important;
}
.knowledge-sidebar-action strong { font-size: .9rem; }
.knowledge-sidebar-action small {
    color: var(--ps-muted);
    font-size: .76rem;
    line-height: 1.3;
}
.knowledge-sidebar-action:hover { border-color: #e5e0ed !important; }
.knowledge-results { min-width: 0; }
.knowledge-result-head-v2 {
    padding: 4px 2px 14px;
    margin-bottom: 6px;
}
.knowledge-result-head-v2 h2 {
    margin: 5px 0;
    font-size: clamp(1.55rem, 2.6vw, 2.25rem);
}
.knowledge-clear-link {
    flex: 0 0 auto;
    color: var(--ps-purple);
    font-weight: 800;
}
.knowledge-grid-v2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.knowledge-card-v2 {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 270px;
    padding: 20px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 13px 35px rgba(33,27,67,.055);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.knowledge-card-v2::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--ps-purple), var(--ps-orange));
}
.knowledge-card-v2:hover {
    transform: translateY(-3px);
    border-color: #d7d0e7;
    box-shadow: 0 18px 42px rgba(33,27,67,.09);
}
.knowledge-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.knowledge-category-pill,
.knowledge-featured-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 850;
}
.knowledge-category-pill {
    background: #f0ecfa;
    color: var(--ps-purple);
}
.knowledge-featured-pill {
    background: #fff2e8;
    color: #b65313;
}
.knowledge-card-body {
    flex: 1 1 auto;
    min-width: 0;
}
.knowledge-card-v2 h3 {
    margin: 15px 0 9px;
    font-size: 1.16rem;
    line-height: 1.35;
}
.knowledge-card-v2 h3 a:hover { color: var(--ps-purple); }
.knowledge-card-v2 p {
    margin: 0;
    line-height: 1.65;
}
.knowledge-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 16px 0 14px;
}
.knowledge-card-meta span {
    padding: 5px 8px;
    border-radius: 8px;
    background: #f8f7fb;
    color: #716d7e;
    font-size: .71rem;
    font-weight: 700;
}
.knowledge-card-v2 footer {
    padding-top: 13px;
    border-top: 1px solid #eeeaf3;
}
.knowledge-card-v2 footer small {
    min-width: 0;
    color: #8b8794;
}
.knowledge-card-v2 footer a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
}
.knowledge-empty-v2 > div {
    display: flex;
    justify-content: center;
    gap: 9px;
    flex-wrap: wrap;
    margin-top: 14px;
}

/* --------------------------------------------------------------------------
   Panel del cliente — encabezados y formularios Postventa V3.
   -------------------------------------------------------------------------- */
.customer-account-main .ps-customer-page-head {
    position: relative;
    overflow: hidden;
    align-items: center;
    padding: clamp(19px, 3vw, 27px);
    margin-bottom: 16px;
    border: 1px solid #ded8ea;
    border-radius: 22px;
    background:
        radial-gradient(circle at 93% 12%, rgba(237,116,37,.16), transparent 32%),
        linear-gradient(145deg, #f7f4ff 0%, #fff 62%);
    box-shadow: 0 14px 34px rgba(35,28,72,.055);
}
.customer-account-main .ps-customer-page-head::after {
    content: "";
    position: absolute;
    right: -55px;
    bottom: -75px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: rgba(66,50,137,.045);
    pointer-events: none;
}
.ps-customer-head-copy {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    min-width: 0;
}
.ps-customer-head-copy > div { min-width: 0; }
.ps-customer-head-icon {
    display: grid;
    place-items: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    background: var(--ps-purple);
    color: #fff;
    box-shadow: 0 10px 24px rgba(66,50,137,.2);
    font-size: 1.35rem;
    font-weight: 900;
}
.ps-customer-head-icon.is-renewal { background: var(--ps-orange); }
.ps-customer-page-head h2 {
    margin: 4px 0 5px;
    font-size: clamp(1.45rem, 2.7vw, 2rem);
}
.ps-customer-page-head p {
    max-width: 720px;
    line-height: 1.6;
}
.ps-head-secondary-action {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
}
.ps-customer-steps,
.ps-renewal-benefits {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}
.ps-customer-steps article,
.ps-renewal-benefits article {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    padding: 13px;
    border: 1px solid #e3dfeb;
    border-radius: 15px;
    background: #fff;
}
.ps-customer-steps b,
.ps-renewal-benefits > article > span {
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: #f0ecfa;
    color: var(--ps-purple);
    font-size: .8rem;
}
.ps-customer-steps article > div,
.ps-renewal-benefits article > div {
    display: grid;
    gap: 2px;
    min-width: 0;
}
.ps-customer-steps strong,
.ps-renewal-benefits strong { color: var(--ps-ink); }
.ps-customer-steps span,
.ps-renewal-benefits small {
    color: var(--ps-muted);
    line-height: 1.35;
    font-size: .78rem;
}
.ps-customer-form-layout,
.ps-renewal-request-layout {
    grid-template-columns: minmax(255px, .38fr) minmax(0, 1fr);
}
.ps-customer-guide-card {
    border-radius: 20px;
    padding: 21px;
}
.ps-customer-guide-card h3 {
    margin: 6px 0 13px;
    font-size: 1.15rem;
}
.ps-customer-guide-card ol {
    margin: 0;
    padding-left: 1.25rem;
}
.ps-customer-info-note {
    margin-top: 17px;
    padding: 13px;
    border: 1px solid #eadfca;
    border-radius: 13px;
    background: rgba(255,250,241,.82);
}
.ps-customer-info-note strong,
.ps-customer-info-note p { display: block; }
.ps-customer-info-note p {
    margin: 5px 0 0;
    color: var(--ps-muted);
    line-height: 1.5;
    font-size: .84rem;
}
.ps-inline-help-link {
    display: inline-flex;
    margin-top: 16px;
    color: var(--ps-purple);
    font-weight: 800;
    text-decoration: none;
}
.ps-customer-form-card {
    padding: clamp(20px, 3vw, 28px);
    border-radius: 20px;
    box-shadow: 0 14px 34px rgba(31,25,63,.045);
}
.ps-form-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 16px;
    margin-bottom: 18px;
    border-bottom: 1px solid #ebe7f0;
}
.ps-form-card-heading h3 {
    margin: 5px 0 4px;
    font-size: 1.25rem;
}
.ps-form-card-heading p {
    margin: 0;
    color: var(--ps-muted);
    line-height: 1.5;
}
.ps-customer-form-card .ps-field input,
.ps-customer-form-card .ps-field select,
.ps-customer-form-card .ps-field textarea,
.ps-customer-form-card .ps-file-field input {
    min-height: 46px;
    border-radius: 12px;
    border-color: #d8d4e1;
}
.ps-customer-form-card .ps-field textarea { min-height: 130px; }
.ps-customer-form-card .ps-field input:focus,
.ps-customer-form-card .ps-field select:focus,
.ps-customer-form-card .ps-field textarea:focus {
    border-color: var(--ps-purple);
    outline: none;
    box-shadow: 0 0 0 4px rgba(66,50,137,.08);
}
.ps-file-drop-card {
    padding: 14px;
    border: 1px dashed #cbc4db;
    border-radius: 14px;
    background: #fbfafe;
}
.ps-customer-form-actions {
    padding-top: 17px;
    border-top: 1px solid #ebe7f0;
}
.ps-renewal-benefits > article > span {
    background: #fff1e6;
    color: #bd5818;
}
.ps-renewal-request-card {
    display: grid;
    gap: 15px;
}
.ps-renewal-submit {
    justify-self: end;
    min-width: 210px;
}
.ps-renewal-history {
    margin-top: 22px;
    padding: 18px;
    border: 1px solid #e3dfeb;
    border-radius: 20px;
    background: #fff;
}
.ps-renewal-history-head {
    align-items: center;
}
.ps-history-count {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    background: #f0ecfa;
    color: var(--ps-purple);
    font-size: .78rem;
    font-weight: 850;
}
.ps-renewal-empty {
    border-radius: 20px;
    padding: 32px;
}

/* Responsive de las nuevas experiencias. */
@media (max-width: 1180px) {
    .knowledge-hero-v2-grid,
    .knowledge-layout-v2,
    .ps-customer-form-layout,
    .ps-renewal-request-layout {
        grid-template-columns: 1fr;
    }
    .knowledge-sidebar-v2,
    .ps-customer-guide-card { position: static; }
    .knowledge-sidebar-v2 {
        display: block;
    }
    .knowledge-category-nav {
        display: flex;
        gap: 7px;
        overflow-x: auto;
        padding-bottom: 5px;
        scrollbar-width: thin;
    }
    .knowledge-sidebar-v2 .knowledge-category-nav a {
        flex: 0 0 auto;
        white-space: nowrap;
    }
    .knowledge-sidebar-divider { margin: 10px 0; }
    .knowledge-sidebar-action {
        display: inline-grid !important;
        margin-right: 6px !important;
    }
    .ps-customer-steps,
    .ps-renewal-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .knowledge-grid-v2 { grid-template-columns: 1fr; }
    .knowledge-search-v2 { grid-template-columns: 1fr; }
    .fs-pagination {
        align-items: flex-start;
        flex-direction: column;
    }
    .fs-pagination-controls {
        width: 100%;
        justify-content: space-between;
    }
    .faq-hub-side { position: static; }
}
@media (max-width: 680px) {
    .fs-pagination-controls {
        flex-wrap: wrap;
    }
    .fs-pagination-pages {
        order: 3;
        width: 100%;
        justify-content: center;
    }
    .fs-pagination-nav span { display: none; }
    .ps-customer-page-head {
        align-items: stretch !important;
        flex-direction: column;
    }
    .ps-head-secondary-action {
        width: 100%;
        justify-content: center;
    }
    .ps-customer-head-copy {
        gap: 11px;
    }
    .ps-customer-head-icon {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
    }
    .ps-customer-steps,
    .ps-renewal-benefits { grid-template-columns: 1fr; }
    .ps-renewal-submit {
        justify-self: stretch;
        width: 100%;
    }
    .ps-customer-form-actions .button {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================================================== 
   Fácil Shop 8.0.5 — Ficha de producto V3
   ========================================================================== */
.phase8-product-main-column { min-width: 0; display: grid; align-content: start; gap: 14px; }

/* La imagen conserva su relación real; únicamente el video utiliza 16:9. */
.phase8-product-media {
    margin-top: 21px;
    aspect-ratio: auto;
    min-height: 0;
    overflow: hidden;
    border: 1px solid #e5e6ee;
    border-radius: 18px;
    background: linear-gradient(145deg,#f7f6fb,#eeecf7);
    display: block;
}
.phase8-product-media-panel { width: 100%; display: grid; place-items: center; }
.phase8-product-media-panel[hidden] { display: none !important; }
.phase8-product-media-panel[data-product-media-panel="image"] { padding: 12px; min-height: 280px; }
.phase8-product-media-panel[data-product-media-panel="image"] img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: min(72vh,760px);
    object-fit: contain;
    border: 0;
    border-radius: 13px;
}
.phase8-product-media-panel[data-product-media-panel="video"] { aspect-ratio: 16 / 9; background: #111; }
.phase8-product-media-panel[data-product-media-panel="video"] iframe,
.phase8-product-media-panel[data-product-media-panel="video"] video {
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: contain;
    background: #111;
}
.phase8-media-switcher { display: inline-flex; gap: 5px; padding: 5px; border: 1px solid #e1e2ea; border-radius: 13px; background: #fff; }
.phase8-media-switcher button { min-height: 38px; padding: 7px 13px; border: 0; border-radius: 9px; background: transparent; color: #656273; font: inherit; font-weight: 780; cursor: pointer; }
.phase8-media-switcher button:hover, .phase8-media-switcher button.is-active { background: #ece9fb; color: var(--fs-primary,#423289); }

/* Las pestañas son navegación secundaria y se ubican inmediatamente debajo del showcase. */
.phase8-product-main-column > .phase8-product-tabs {
    position: static;
    top: auto;
    z-index: auto;
    margin: 0;
    padding: 7px;
    box-shadow: 0 8px 22px rgba(30,27,65,.05);
}

/*
 * El contenido pertenece a la navegación de la columna izquierda.
 * No debe volver a ocupar una sección independiente al final de la página.
 */
.phase8-product-main-column > .phase8-product-content {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 2px 0 0;
    scroll-margin-top: 88px;
}
.phase8-product-main-column > .phase8-product-content > .container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}
.phase8-product-main-column .phase8-tab-panel {
    min-height: 0;
}

.phase8-resource-card, .phase8-version-card, .phase8-requirements-card {
    min-width: 0;
    padding: 20px;
    border: 1px solid #e5e6ee;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(31,27,66,.06);
}
.phase8-resource-list { display: grid; gap: 8px; }
.phase8-resource-list a, .phase8-resource-list button {
    width: 100%;
    display: grid;
    grid-template-columns: 38px minmax(0,1fr);
    gap: 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid #e8e7ef;
    border-radius: 13px;
    background: #faf9ff;
    color: #343143;
    text-decoration: none;
    text-align: left;
    font: inherit;
    cursor: pointer;
}
.phase8-resource-list a:hover, .phase8-resource-list button:hover { border-color: #cfc8ef; background: #f3f0ff; }
.phase8-resource-list > * > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: #ece9fb; color: var(--fs-primary,#423289); font-weight: 900; }
.phase8-resource-list div { min-width: 0; display: grid; gap: 2px; }
.phase8-resource-list strong { font-size: .92rem; }
.phase8-resource-list small { color: #777487; line-height: 1.35; }

.phase8-version-mini-list { max-height: 460px; overflow: auto; display: grid; gap: 8px; padding-right: 2px; }
.phase8-version-mini-list details { border: 1px solid #e6e5ed; border-radius: 13px; background: #fff; overflow: hidden; }
.phase8-version-mini-list summary { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 11px 12px; cursor: pointer; }
.phase8-version-mini-list summary > div { min-width: 0; display: grid; gap: 2px; }
.phase8-version-mini-list summary strong { overflow-wrap: anywhere; }
.phase8-version-mini-list summary small { color: #777487; }
.phase8-version-mini-list summary > span { flex: 0 0 auto; padding: 4px 7px; border-radius: 999px; background: #f1eff9; color: #4b3d8b; font-size: 11px; font-weight: 820; }
.phase8-version-mini-body { padding: 0 12px 12px; color: #625f70; line-height: 1.5; overflow-wrap: anywhere; }
.phase8-version-mini-body p { margin: 0 0 8px; }
.phase8-card-empty { margin: 0; color: #777487; }

.phase8-primary-demo { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin: 0 0 16px; padding: 20px; border: 1px solid #dfdced; border-radius: 18px; background: linear-gradient(135deg,#fbfaff,#f1edff); }
.phase8-primary-demo h2 { margin: 4px 0 5px; }
.phase8-primary-demo p { margin: 0; color: #6b6879; }
.phase8-requirements-card { padding: 24px; }
.phase8-section-title { margin-bottom: 15px; }
.phase8-section-title h2 { margin: 5px 0; }
.phase8-section-title p { margin: 0; color: #6b6879; }

@media (max-width: 1240px) {
    .phase8-product-media-panel[data-product-media-panel="image"] img { max-height: 680px; }
}
@media (max-width: 980px) {
    .phase8-product-main-column { gap: 12px; }
    .phase8-product-main-column > .phase8-product-tabs { overflow-x: auto; }
    .phase8-product-media-panel[data-product-media-panel="image"] { min-height: 220px; }
    .phase8-product-media-panel[data-product-media-panel="image"] img { max-height: 620px; }
}
@media (max-width: 720px) {
    .phase8-product-media-panel[data-product-media-panel="image"] { padding: 8px; min-height: 180px; }
    .phase8-product-media-panel[data-product-media-panel="image"] img { max-height: 78vh; border-radius: 10px; }
    .phase8-media-switcher { width: 100%; }
    .phase8-media-switcher button { flex: 1 1 0; }
    .phase8-primary-demo { align-items: stretch; flex-direction: column; }
    .phase8-primary-demo .button { width: 100%; }
    .phase8-resource-card, .phase8-version-card, .phase8-requirements-card { padding: 16px; border-radius: 17px; }
    .phase8-version-mini-list { max-height: 390px; }
}

/* --------------------------------------------------------------------------
   Fácil Shop 8.0.8 — Datos destacados sin numeración
   --------------------------------------------------------------------------
   La descripción y los indicadores se leen en un único flujo vertical.
   Los datos importantes usan tarjetas compactas y no compiten con el texto.
   -------------------------------------------------------------------------- */
.phase8-overview-stack {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.phase8-overview-card {
    min-width: 0;
    padding: clamp(22px, 2.2vw, 30px);
}

.phase8-overview-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.phase8-overview-heading > div {
    min-width: 0;
}

.phase8-overview-heading h2 {
    margin: 6px 0 0;
    font-size: clamp(1.45rem, 2.25vw, 2.1rem);
    line-height: 1.15;
    letter-spacing: -.025em;
    overflow-wrap: anywhere;
}

.phase8-overview-mark {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(66,50,137,.14);
    border-radius: 15px;
    background: linear-gradient(135deg, #f4f1ff, #fff6ef);
    color: var(--fs-primary,#423289);
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .08em;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
}

.phase8-overview-card .phase8-rich-content {
    max-width: 980px;
    font-size: 1rem;
    line-height: 1.78;
    color: #555267;
}

.phase8-highlights-card {
    min-width: 0;
    padding: clamp(20px, 2vw, 28px);
    border: 1px solid #e4e2ef;
    border-radius: 22px;
    background:
        radial-gradient(circle at 94% 8%, rgba(237,116,37,.08), transparent 28%),
        linear-gradient(145deg, #ffffff 0%, #fbfaff 58%, #f8f6ff 100%);
    box-shadow: 0 14px 38px rgba(31,27,66,.065);
}

.phase8-highlights-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.phase8-highlights-heading > div {
    min-width: 0;
}

.phase8-highlights-heading h3 {
    margin: 6px 0 5px;
    font-size: clamp(1.22rem, 1.8vw, 1.6rem);
    line-height: 1.2;
    letter-spacing: -.02em;
}

.phase8-highlights-heading p {
    max-width: 720px;
    margin: 0;
    color: #6c687b;
    line-height: 1.55;
}

.phase8-highlights-count {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid rgba(66,50,137,.13);
    border-radius: 999px;
    background: rgba(255,255,255,.8);
    color: #575267;
    font-size: .78rem;
    font-weight: 820;
    white-space: nowrap;
}

.phase8-highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.phase8-highlight-item {
    position: relative;
    min-width: 0;
    display: grid;
    align-items: center;
    min-height: 92px;
    padding: 16px 17px;
    border: 1px solid #e7e5ee;
    border-radius: 17px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 7px 20px rgba(35,30,73,.045);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.phase8-highlight-item:hover {
    transform: translateY(-2px);
    border-color: #d7d1ee;
    box-shadow: 0 12px 26px rgba(35,30,73,.075);
}

.phase8-highlight-item.is-highlighted {
    border-color: rgba(66,50,137,.26);
    background: linear-gradient(135deg, #f8f6ff, #fff);
    box-shadow: 0 10px 28px rgba(66,50,137,.08);
}

.phase8-highlight-item.is-highlighted::after {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    border-radius: 17px 0 0 17px;
    background: linear-gradient(180deg, var(--fs-primary,#423289), var(--fs-secondary,#ED7425));
}


.phase8-highlight-item > div {
    min-width: 0;
    display: grid;
    gap: 7px;
}

.phase8-highlight-item small {
    color: #7a7688;
    font-size: .78rem;
    font-weight: 750;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: .045em;
    overflow-wrap: anywhere;
}

.phase8-highlight-item strong {
    color: #29263b;
    font-size: 1.04rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
    .phase8-highlights-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .phase8-overview-heading,
    .phase8-highlights-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .phase8-overview-mark {
        width: 42px;
        height: 42px;
    }

    .phase8-highlights-count {
        align-self: flex-start;
    }

    .phase8-highlights-grid {
        grid-template-columns: 1fr;
    }

    .phase8-highlight-item {
        min-height: 84px;
    }
}

/* ========================================================================== 
   FÁCIL SHOP 8.0.9 — HOME COMPACTA + HEADER PREMIUM
   Objetivo: reducir la altura inicial, mejorar contraste de CTA y crear una
   navegación pública más limpia sin alterar el comportamiento móvil existente.
   ========================================================================== */

/* Botón secundario para superficies claras. Evita texto blanco sobre blanco. */
.button-outline-primary {
    color: var(--fs-primary, #423289);
    border: 1px solid rgba(66,50,137,.24);
    background: linear-gradient(180deg, #fff, #faf9ff);
    box-shadow: 0 9px 24px rgba(49,38,102,.08);
}
.button-outline-primary:hover,
.button-outline-primary:focus-visible {
    color: #fff;
    border-color: var(--fs-primary, #423289);
    background: linear-gradient(135deg, var(--fs-primary, #423289), #6352ad);
    box-shadow: 0 14px 32px rgba(66,50,137,.2);
    outline: none;
}

/* Los button-ghost públicos ahora tienen contraste real sobre superficies claras. */
body:not(.admin-body) .button-ghost {
    color: var(--fs-primary, #423289);
    border: 1px solid #ddd8ef;
    background: #f7f5ff;
}
body:not(.admin-body) .button-ghost:hover,
body:not(.admin-body) .button-ghost:focus-visible {
    color: #342775;
    border-color: #cfc7ea;
    background: #efebff;
    outline: none;
}

/* --------------------------------------------------------------------------
   Cabecera pública — escritorio/laptop. El bloque móvil conserva su drawer.
   -------------------------------------------------------------------------- */
.site-header {
    background:
        radial-gradient(circle at 78% -80%, rgba(237,116,37,.2), transparent 38%),
        linear-gradient(90deg, rgba(20,15,47,.98), rgba(44,31,91,.96));
    border-bottom-color: rgba(255,255,255,.1);
    box-shadow: 0 10px 35px rgba(13,9,35,.18);
}

@media (min-width: 841px) {
    .header-inner {
        min-height: 70px;
        gap: 12px;
    }

    .public-logo img {
        width: min(var(--public-logo-width, 230px), 190px);
        height: 54px;
        max-height: 54px;
    }

    .main-nav {
        flex: 1 1 auto;
        justify-content: center;
        min-width: 0;
        gap: 0;
    }

    .main-nav-links {
        display: flex;
        align-items: center;
        gap: 2px;
        min-width: 0;
        padding: 4px;
        border: 1px solid rgba(255,255,255,.1);
        border-radius: 15px;
        background: rgba(255,255,255,.055);
        box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
    }

    .main-nav-links a,
    .main-nav-links .nav-install-button {
        padding: 9px 11px;
        border-radius: 10px;
        font-size: .84rem;
        font-weight: 760;
        line-height: 1;
        white-space: nowrap;
        transition: color .18s ease, background .18s ease, transform .18s ease;
    }

    .main-nav-links a:hover,
    .main-nav-links a:focus-visible,
    .main-nav-links .nav-install-button:hover,
    .main-nav-links .nav-install-button:focus-visible {
        color: #fff;
        background: rgba(255,255,255,.11);
        transform: translateY(-1px);
        outline: none;
    }

    .public-currency-trigger,
    .public-cart-button,
    .public-account-trigger {
        border-color: rgba(255,255,255,.14);
        background: rgba(255,255,255,.075);
        box-shadow: inset 0 1px 0 rgba(255,255,255,.055);
        transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
    }

    .public-currency-trigger:hover,
    .public-currency-menu.is-open .public-currency-trigger,
    .public-cart-button:hover,
    .public-cart-button:focus-visible,
    .public-account-trigger:hover,
    .public-account-menu.is-open .public-account-trigger {
        border-color: rgba(255,255,255,.27);
        background: rgba(255,255,255,.13);
        box-shadow: 0 10px 28px rgba(6,4,23,.16), inset 0 1px 0 rgba(255,255,255,.08);
        transform: translateY(-1px);
        outline: none;
    }

    .public-currency-trigger {
        min-height: 44px;
        padding: 6px 9px;
        border-radius: 13px;
    }

    .public-currency-trigger > svg:first-child {
        width: 20px;
        height: 20px;
    }

    .public-currency-trigger small {
        font-size: .58rem;
        letter-spacing: .02em;
        color: rgba(255,255,255,.65);
    }

    .public-currency-trigger strong { font-size: .78rem; }

    .public-cart-button {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        border-radius: 13px;
    }

    .public-account-menu { margin-left: 0; }
    .public-account-trigger {
        min-width: 138px;
        min-height: 44px;
        padding: 4px 7px;
        border-radius: 13px;
    }
    .public-account-avatar {
        flex-basis: 35px;
        width: 35px;
        height: 35px;
        border-radius: 10px;
    }
    .public-account-summary small { font-size: .59rem; }
    .public-account-summary strong { font-size: .75rem; }
}

@media (min-width: 841px) and (max-width: 1180px) {
    .header-inner { gap: 8px; }
    .public-logo img { width: min(var(--public-logo-width, 230px), 158px); }
    .main-nav-links a,
    .main-nav-links .nav-install-button { padding-inline: 8px; font-size: .76rem; }
    .public-currency-trigger span small { display: none; }
    .public-account-trigger { min-width: 112px; }
    .public-account-summary small { display: none; }
}

/* --------------------------------------------------------------------------
   Hero compacto — el visitante ve propuesta + imagen sin consumir casi toda
   la primera pantalla. La creatividad 1:1 se mantiene completa.
   -------------------------------------------------------------------------- */
.home-market-hero {
    padding: clamp(42px, 4.8vw, 64px) 0 clamp(48px, 5vw, 66px);
}
.home-market-hero .market-hero-grid {
    grid-template-columns: minmax(0, .92fr) minmax(390px, 1.08fr);
    gap: clamp(30px, 4vw, 52px);
}
.home-market-hero .market-hero-copy h1 {
    max-width: 650px;
    margin: 10px 0 14px;
    font-size: clamp(2.35rem, 4.25vw, 4.05rem);
    line-height: 1.005;
}
.home-market-hero .market-hero-copy > p {
    max-width: 620px;
    margin: 0;
    font-size: clamp(.98rem, 1.35vw, 1.08rem);
    line-height: 1.65;
}
.home-market-hero .hero-actions {
    gap: 10px;
    margin-top: 22px;
}
.home-market-hero .hero-actions .button {
    min-height: 45px;
    padding-inline: 19px;
}
.home-market-hero .hero-trust-row {
    gap: 8px;
    margin-top: 20px;
    font-size: .74rem;
}
.home-market-hero .hero-trust-row span {
    padding: 7px 10px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    background: rgba(255,255,255,.065);
    backdrop-filter: blur(8px);
}
.home-market-hero .hero-showcase { min-height: 0; }
.home-market-hero .home-hero-media {
    width: min(100%, 500px);
    padding: 10px;
    border-radius: 27px;
    box-shadow: 0 25px 68px rgba(5,4,17,.3);
}
.home-market-hero .home-hero-media img { border-radius: 19px; }
.home-market-hero .home-hero-media figcaption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 6px 2px;
}
.home-market-hero .home-hero-media figcaption strong {
    max-width: 310px;
    font-size: .78rem;
    text-align: right;
}
.home-market-hero .floating-badge {
    padding: 8px 12px;
    font-size: .7rem;
    box-shadow: 0 12px 28px rgba(10,8,29,.2);
}
.home-market-hero .badge-one { left: -10px; top: 38px; }
.home-market-hero .badge-two { right: -5px; bottom: 34px; }

/* --------------------------------------------------------------------------
   Franja de capacidades: actúa como puente visual entre hero y catálogo.
   -------------------------------------------------------------------------- */
.market-strip {
    z-index: 8;
    margin-top: -25px;
    border: 0;
    background: transparent;
}
.market-strip-grid {
    overflow: hidden;
    border: 1px solid rgba(66,50,137,.11);
    border-radius: 20px;
    background: rgba(255,255,255,.97);
    box-shadow: 0 18px 46px rgba(39,30,86,.1);
}
.market-strip article {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 17px 18px;
}
.market-strip article > div { min-width: 0; }
.market-strip-icon {
    display: grid !important;
    place-items: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    margin: 0 !important;
    border-radius: 12px;
    color: var(--fs-primary, #423289) !important;
    background: linear-gradient(145deg, #f1edff, #fff4ec);
}
.market-strip-icon svg { width: 20px; height: 20px; fill: currentColor; }
.market-strip strong { font-size: .86rem; }
.market-strip article div > span { margin-top: 3px; font-size: .72rem; line-height: 1.35; }

/* --------------------------------------------------------------------------
   Ritmo vertical de la home: menos huecos, mayor continuidad visual.
   -------------------------------------------------------------------------- */
.marketplace-products,
.services-showcase-section,
.value-section,
.testimonials-section,
.home-faq-section {
    padding-block: clamp(48px, 5vw, 66px);
}
.marketplace-products { padding-top: clamp(58px, 6vw, 76px); }
.market-heading { margin-bottom: clamp(24px, 3vw, 30px); }
.market-heading h2 { font-size: clamp(1.9rem, 3.5vw, 3rem); }
.market-heading p { line-height: 1.6; }
.section-action { margin-top: 25px; }
.home-intermediate-promo { padding: 14px 0 18px; }
.home-intermediate-promo-card { border-radius: 24px; box-shadow: 0 16px 44px rgba(43,35,87,.075); }
.home-intermediate-promo-content { padding: clamp(25px, 4vw, 44px); }
.home-intermediate-promo-content h2 { font-size: clamp(1.8rem, 3.3vw, 2.9rem); }
.services-showcase { gap: 18px; }
.service-spotlight { min-height: 405px; }
.service-spotlight-media { padding: 18px; }
.service-spotlight-media img { max-height: 370px; }
.service-spotlight-content { padding: 30px; }
.value-grid { gap: clamp(34px, 5vw, 54px); }
.value-grid h2 { font-size: clamp(2rem, 3.6vw, 3.15rem); }
.value-cards { gap: 13px; }
.value-cards article { padding: 20px; }
.testimonial-grid { gap: 16px; }
.testimonial-grid blockquote { padding: 24px; }
.home-faq-shell { gap: clamp(28px, 4vw, 54px); }
.market-cta { padding: 42px 0; }

/* Botones y tarjetas de la home con acabado coherente. */
.market-product-card {
    border-radius: 21px;
    box-shadow: 0 12px 34px rgba(32,35,49,.06);
}
.market-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 52px rgba(66,50,137,.13);
}
.product-card-body { padding: 21px; }

@media (max-width: 1050px) {
    .home-market-hero .market-hero-grid { grid-template-columns: 1fr; }
    .home-market-hero .market-hero-copy { max-width: 760px; }
    .home-market-hero .hero-showcase { width: min(570px, 100%); margin-inline: auto; }
    .home-market-hero .home-hero-media { width: min(100%, 510px); margin-inline: auto; }
    .market-strip { margin-top: -16px; }
}

@media (max-width: 840px) {
    .site-header { box-shadow: 0 8px 24px rgba(13,9,35,.16); }
    .home-market-hero { padding: 34px 0 42px; }
    .home-market-hero .market-hero-copy h1 { font-size: clamp(2.15rem, 8.2vw, 3.35rem); }
    .home-market-hero .hero-trust-row span { flex: 0 1 auto; }
    .market-strip { margin-top: -10px; padding-inline: 10px; }
    .market-strip-grid { grid-template-columns: repeat(2, minmax(0,1fr)); border-radius: 17px; }
    .market-strip article { padding: 14px; }
    .market-strip article:nth-child(2) { border-right: 0; }
}

@media (max-width: 600px) {
    .home-market-hero .hero-actions { display: grid; }
    .home-market-hero .hero-actions .button { width: 100%; }
    .home-market-hero .hero-trust-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
    .home-market-hero .hero-trust-row span { justify-content: center; text-align: center; }
    .home-market-hero .floating-badge { display: none; }
    .home-market-hero .home-hero-media figcaption { align-items: flex-start; flex-direction: column; }
    .home-market-hero .home-hero-media figcaption strong { text-align: left; }
    .market-strip-grid { grid-template-columns: 1fr; }
    .market-strip article { border-right: 0; }
    .market-strip article:not(:last-child) { border-bottom: 1px solid var(--fs-border); }
    .marketplace-products,
    .services-showcase-section,
    .value-section,
    .testimonials-section,
    .home-faq-section { padding-block: 42px; }
    .market-heading { margin-bottom: 22px; }
}

/* ========================================================================== 
   FÁCIL SHOP 8.0.10 — NAVEGACIÓN PWA COMPACTA + ESTADOS DE PRODUCTO
   ========================================================================== */

/*
 * Los estados comerciales se muestran dentro del contenido de la tarjeta y
 * nunca encima de la imagen. Esto mantiene la creatividad completamente
 * visible incluso cuando un producto tiene más de un estado.
 */
.product-status-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-width: 0;
    margin: 0 0 10px;
}

.product-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 26px;
    padding: 5px 9px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: .66rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .025em;
    white-space: nowrap;
}

.product-status-chip > span {
    display: inline-grid;
    place-items: center;
    width: 15px;
    height: 15px;
    font-size: .66rem;
    line-height: 1;
}

.product-status-chip.is-new {
    border-color: rgba(66, 50, 137, .13);
    color: var(--fs-primary, #423289);
    background: linear-gradient(135deg, rgba(66, 50, 137, .095), rgba(66, 50, 137, .035));
}

.product-status-chip.is-best {
    border-color: rgba(237, 116, 37, .18);
    color: #a84d14;
    background: linear-gradient(135deg, rgba(237, 116, 37, .14), rgba(255, 245, 236, .86));
}

/* La imagen de catálogo y home queda limpia: los badges antiguos ya no son necesarios allí. */
.catalog-product-media,
.market-product-card .product-cover {
    isolation: isolate;
}

@media (max-width: 620px) {
    /* Evita que varios estados aumenten innecesariamente la altura de una card móvil. */
    .catalog-product-card .product-status-row,
    .market-product-card .product-status-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        max-width: 100%;
        padding-bottom: 1px;
        scrollbar-width: none;
    }

    .catalog-product-card .product-status-row::-webkit-scrollbar,
    .market-product-card .product-status-row::-webkit-scrollbar {
        display: none;
    }

    .product-status-chip {
        flex: 0 0 auto;
        min-height: 24px;
        padding: 4px 8px;
        font-size: .62rem;
    }
}

/*
 * Dock inferior PWA/móvil: cuatro accesos primarios y únicamente iconos.
 * Las etiquetas permanecen en el DOM como texto accesible para lectores de
 * pantalla, pero no consumen espacio visual.
 */
@media (max-width: 760px) {
    body {
        /* Reserva espacio para que el dock flotante nunca tape el contenido. */
        padding-bottom: calc(86px + env(safe-area-inset-bottom)) !important;
    }

    .mobile-bottom-nav.mobile-bottom-nav-compact {
        position: fixed;
        z-index: 190;
        right: 12px;
        bottom: max(10px, env(safe-area-inset-bottom));
        left: 12px;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        align-items: center;
        width: auto;
        height: 62px !important;
        padding: 6px !important;
        border: 1px solid rgba(66, 50, 137, .13);
        border-radius: 21px;
        background: rgba(255, 255, 255, .96);
        box-shadow: 0 18px 48px rgba(25, 20, 58, .18);
        backdrop-filter: blur(18px) saturate(150%);
        -webkit-backdrop-filter: blur(18px) saturate(150%);
    }

    .mobile-bottom-nav.mobile-bottom-nav-compact a,
    .mobile-bottom-nav.mobile-bottom-nav-compact button {
        position: relative;
        display: grid;
        place-items: center;
        align-content: center;
        width: 100%;
        min-width: 0;
        height: 50px;
        padding: 0;
        border: 0;
        border-radius: 16px;
        color: #77758a;
        background: transparent;
        font: inherit;
        text-decoration: none;
        cursor: pointer;
        transition: color .18s ease, background .18s ease, transform .18s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-bottom-nav.mobile-bottom-nav-compact a:active,
    .mobile-bottom-nav.mobile-bottom-nav-compact button:active {
        transform: scale(.94);
    }

    .mobile-bottom-nav.mobile-bottom-nav-compact svg {
        width: 23px;
        height: 23px;
        fill: currentColor;
        color: inherit;
    }

    .mobile-bottom-nav.mobile-bottom-nav-compact a.is-active,
    .mobile-bottom-nav.mobile-bottom-nav-compact button.is-active {
        color: #fff;
        background: linear-gradient(135deg, var(--fs-primary, #423289), #6858b5);
        box-shadow: 0 8px 20px rgba(66, 50, 137, .25);
    }

    .mobile-bottom-nav.mobile-bottom-nav-compact a:focus-visible,
    .mobile-bottom-nav.mobile-bottom-nav-compact button:focus-visible {
        outline: 3px solid rgba(237, 116, 37, .32);
        outline-offset: 1px;
    }

    .mobile-bottom-nav-label {
        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;
    }

    /* Los paneles flotantes respetan la nueva altura del dock. */
    .public-account-dropdown {
        bottom: calc(84px + env(safe-area-inset-bottom)) !important;
    }

    .pwa-install-banner {
        bottom: calc(86px + env(safe-area-inset-bottom)) !important;
    }
}

/* En pantallas muy pequeñas se reduce el margen exterior sin perder el área táctil. */
@media (max-width: 380px) {
    .mobile-bottom-nav.mobile-bottom-nav-compact {
        right: 8px;
        left: 8px;
        border-radius: 19px;
    }

    .mobile-bottom-nav.mobile-bottom-nav-compact a,
    .mobile-bottom-nav.mobile-bottom-nav-compact button {
        height: 48px;
        border-radius: 14px;
    }
}

/* ========================================================================== 
 * FÁCIL SHOP 8.1.0 — INTERNACIONALIZACIÓN + APP SHELL MÓVIL
 * ========================================================================== */

/* Selector de idioma del header: comparte el mismo lenguaje visual del selector
 * de moneda, pero conserva una identidad compacta para no saturar la cabecera. */
.public-language-menu {
    position: relative;
    flex: 0 0 auto;
}

.public-language-menu > summary {
    list-style: none;
}

.public-language-menu > summary::-webkit-details-marker {
    display: none;
}

.public-language-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 14px;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    cursor: pointer;
    user-select: none;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.public-language-trigger:hover,
.public-language-menu[open] .public-language-trigger {
    border-color: rgba(255, 255, 255, .24);
    background: rgba(255, 255, 255, .14);
}

.public-language-trigger > svg:first-child {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.public-language-trigger > span {
    display: grid;
    line-height: 1.05;
}

.public-language-trigger small {
    font-size: .62rem;
    opacity: .68;
}

.public-language-trigger strong {
    margin-top: 3px;
    font-size: .8rem;
    letter-spacing: .06em;
}

.public-language-chevron {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    transition: transform .18s ease;
}

.public-language-menu[open] .public-language-chevron {
    transform: rotate(180deg);
}

.public-language-dropdown {
    position: absolute;
    z-index: 240;
    top: calc(100% + 10px);
    right: 0;
    width: min(290px, calc(100vw - 24px));
    padding: 10px;
    border: 1px solid rgba(66, 50, 137, .12);
    border-radius: 18px;
    background: rgba(255, 255, 255, .985);
    box-shadow: 0 22px 56px rgba(24, 18, 54, .2);
    color: #282536;
}

.public-language-dropdown > strong {
    display: block;
    padding: 5px 7px 9px;
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #77728a;
}

.public-language-dropdown form {
    margin: 0;
}

.public-language-option {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px;
    border: 0;
    border-radius: 13px;
    color: #302c42;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.public-language-option:hover,
.public-language-option.is-active {
    background: rgba(66, 50, 137, .08);
}

.public-language-option > span {
    display: grid;
    place-items: center;
    min-height: 36px;
    border-radius: 10px;
    background: rgba(66, 50, 137, .1);
    color: var(--fs-primary, #423289);
    font-size: .78rem;
    font-weight: 800;
}

.public-language-option div {
    display: grid;
    gap: 2px;
}

.public-language-option div strong {
    font-size: .82rem;
}

.public-language-option div small {
    color: #8a8795;
    font-size: .68rem;
}

.public-language-option > b {
    color: var(--fs-secondary, #ED7425);
}

/* El idioma en móvil vive dentro del drawer. Mantiene el header reducido a
 * menú + logo + carrito, como una app nativa. */
.mobile-language-switch {
    display: none;
}

@media (max-width: 1120px) {
    .public-language-trigger > span small,
    .public-language-trigger .public-language-chevron {
        display: none;
    }

    .public-language-trigger {
        gap: 6px;
        padding-inline: 9px;
    }
}

@media (max-width: 760px) {
    /* La experiencia móvil usa navegación inferior propia, por lo que el footer
     * web tradicional se oculta deliberadamente para evitar contenido duplicado. */
    .site-footer {
        display: none !important;
    }

    /* El selector superior se oculta para preservar un header de app limpio. */
    .site-header .public-language-menu {
        display: none !important;
    }

    .mobile-language-switch {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin: 12px 14px 4px;
        padding: 10px 12px;
        border: 1px solid rgba(255, 255, 255, .1);
        border-radius: 14px;
        background: rgba(255, 255, 255, .06);
        color: #fff;
    }

    .mobile-language-switch-label {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: .78rem;
    }

    .mobile-language-switch-label svg {
        width: 19px;
        height: 19px;
        fill: currentColor;
    }

    .mobile-language-options {
        display: flex;
        gap: 5px;
    }

    .mobile-language-options form {
        margin: 0;
    }

    .mobile-language-options button {
        min-width: 42px;
        min-height: 36px;
        padding: 0 10px;
        border: 1px solid rgba(255, 255, 255, .12);
        border-radius: 10px;
        color: rgba(255, 255, 255, .78);
        background: rgba(255, 255, 255, .06);
        font: inherit;
        font-size: .72rem;
        font-weight: 800;
    }

    .mobile-language-options button.is-active {
        border-color: rgba(237, 116, 37, .4);
        color: #fff;
        background: var(--fs-secondary, #ED7425);
    }

    /* 8.1.0: el dock deja de flotar. Se pega completamente al borde físico de la
     * pantalla y usa safe-area para iPhone/Android con navegación gestual. */
    body {
        padding-bottom: calc(64px + env(safe-area-inset-bottom)) !important;
    }

    .mobile-bottom-nav.mobile-bottom-nav-compact {
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        max-width: none !important;
        height: calc(62px + env(safe-area-inset-bottom)) !important;
        padding: 6px 8px env(safe-area-inset-bottom) !important;
        border: 0 !important;
        border-top: 1px solid rgba(66, 50, 137, .1) !important;
        border-radius: 0 !important;
        background: rgba(255, 255, 255, .985) !important;
        box-shadow: 0 -10px 32px rgba(25, 20, 58, .1) !important;
        backdrop-filter: blur(20px) saturate(150%);
        -webkit-backdrop-filter: blur(20px) saturate(150%);
    }

    .mobile-bottom-nav.mobile-bottom-nav-compact a,
    .mobile-bottom-nav.mobile-bottom-nav-compact button {
        height: 50px;
        border-radius: 13px;
    }

    /* El estado activo se percibe como pestaña de aplicación y no como botón
     * flotante independiente. */
    .mobile-bottom-nav.mobile-bottom-nav-compact a.is-active,
    .mobile-bottom-nav.mobile-bottom-nav-compact button.is-active {
        color: var(--fs-primary, #423289) !important;
        background: rgba(66, 50, 137, .09) !important;
        box-shadow: none !important;
    }

    .mobile-bottom-nav.mobile-bottom-nav-compact a.is-active::after,
    .mobile-bottom-nav.mobile-bottom-nav-compact button.is-active::after {
        content: '';
        position: absolute;
        bottom: 3px;
        left: 50%;
        width: 20px;
        height: 3px;
        border-radius: 999px;
        background: var(--fs-secondary, #ED7425);
        transform: translateX(-50%);
    }

    .public-account-dropdown {
        bottom: calc(68px + env(safe-area-inset-bottom)) !important;
    }

    .pwa-install-banner {
        bottom: calc(68px + env(safe-area-inset-bottom)) !important;
    }
}

@media (max-width: 380px) {
    .mobile-bottom-nav.mobile-bottom-nav-compact {
        right: 0 !important;
        left: 0 !important;
        border-radius: 0 !important;
    }
}

/* --------------------------------------------------------------------------
 * 8.1.0 · Centro administrativo de traducciones.
 * -------------------------------------------------------------------------- */
.localization-admin-page {
    --loc-surface: #fff;
    --loc-border: rgba(66, 50, 137, .12);
}

.localization-hero {
    align-items: center;
    padding: clamp(22px, 3vw, 34px);
    border: 1px solid var(--loc-border);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(66, 50, 137, .08), rgba(237, 116, 37, .055) 62%, #fff);
}

.localization-hero > div:first-child {
    max-width: 790px;
}

.localization-score {
    display: grid;
    min-width: 180px;
    padding: 18px 20px;
    border: 1px solid rgba(66, 50, 137, .12);
    border-radius: 20px;
    background: rgba(255,255,255,.82);
    text-align: center;
    box-shadow: 0 14px 32px rgba(35, 28, 71, .08);
}

.localization-score strong { color: var(--fs-primary, #423289); font-size: 2rem; line-height: 1; }
.localization-score span { margin-top: 7px; font-weight: 800; }
.localization-score small { margin-top: 4px; color: #77728a; }

.localization-guide {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.localization-guide article {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px;
    border: 1px solid var(--loc-border);
    border-radius: 17px;
    background: #fff;
}

.localization-guide article > b {
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    height: 34px;
    border-radius: 10px;
    color: var(--fs-primary, #423289);
    background: rgba(66, 50, 137, .09);
    font-size: .72rem;
}
.localization-guide article div { display: grid; gap: 4px; }
.localization-guide article span { color: #77728a; font-size: .78rem; line-height: 1.45; }

.localization-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.localization-card {
    display: grid;
    gap: 13px;
    padding: 18px;
    border: 1px solid var(--loc-border);
    border-radius: 19px;
    color: #29253a;
    background: #fff;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(32, 26, 68, .055);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.localization-card:hover { transform: translateY(-2px); border-color: rgba(66,50,137,.25); box-shadow: 0 16px 34px rgba(32,26,68,.09); }
.localization-card-head, .localization-card-meta { display: flex; justify-content: space-between; gap: 10px; }
.localization-card-head span { font-weight: 800; }
.localization-card-head strong { color: var(--fs-primary, #423289); }
.localization-progress { height: 7px; overflow: hidden; border-radius: 99px; background: #efedf5; }
.localization-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--fs-primary, #423289), var(--fs-secondary, #ED7425)); }
.localization-card-meta { color: #77728a; font-size: .73rem; }
.localization-card-meta b { color: #39334e; }
.localization-card-action { padding-top: 11px; border-top: 1px solid #efedf4; color: var(--fs-primary, #423289); font-size: .78rem; font-weight: 800; }
.localization-card-action b { float: right; }

.localization-filter { align-items: end; }
.localization-filter label { flex: 1 1 360px; }
.localization-table-wrap { margin-top: 16px; }

.localization-editor { display: grid; gap: 14px; }
.localization-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--loc-border);
    border-radius: 20px;
    background: #fff;
}
.localization-source, .localization-target { position: relative; min-width: 0; padding: 20px; }
.localization-source { border-right: 1px solid var(--loc-border); background: #f8f7fb; }
.localization-source label, .localization-target label { display: block; margin: 0 0 10px; font-size: .78rem; font-weight: 800; color: #423c56; }
.localization-lang-tag { position: absolute; top: 14px; right: 14px; padding: 4px 7px; border-radius: 8px; color: #6c647e; background: #e9e6ef; font-size: .62rem; font-weight: 900; letter-spacing: .08em; }
.localization-lang-tag.is-en { color: #fff; background: var(--fs-primary, #423289); }
.localization-source-value { padding-right: 42px; color: #595366; line-height: 1.65; overflow-wrap: anywhere; }
.localization-source-value.rich-content { max-height: 380px; overflow: auto; }
.localization-target input, .localization-target textarea { width: 100%; border: 1px solid #dcd8e6; border-radius: 12px; padding: 11px 12px; font: inherit; line-height: 1.55; resize: vertical; }
.localization-target input:focus, .localization-target textarea:focus { outline: 3px solid rgba(66,50,137,.12); border-color: var(--fs-primary, #423289); }
.localization-form-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 0 24px; }

@media (max-width: 1100px) {
    .localization-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
    .localization-guide, .localization-grid { grid-template-columns: 1fr; }
    .localization-field { grid-template-columns: 1fr; }
    .localization-source { border-right: 0; border-bottom: 1px solid var(--loc-border); }
    .localization-hero { align-items: stretch; }
    .localization-score { min-width: 0; }
}

/* ========================================================================== 
 * FÁCIL SHOP 8.1.1 — APP SHELL MÓVIL/TABLET + CATÁLOGO 2x2
 * ========================================================================== */

/* Agrupa idioma, moneda, carrito y cuenta en una sola zona de acciones. Esto
 * evita que el grid móvil cree filas implícitas y apile iconos verticalmente. */
.public-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
    min-width: 0;
}

/* En escritorio las páginas del carrusel se vuelven transparentes al grid para
 * conservar exactamente el catálogo de tres columnas existente. */
.home-product-slide {
    display: contents;
}

.home-product-carousel-pagination {
    display: none;
}

/* Los controles de idioma y moneda del drawer se diseñan como una única familia
 * visual para que una tablet no dependa de controles comprimidos del header. */
.mobile-currency-switch {
    display: none;
}

@media (max-width: 840px) {
    /* ----------------------------------------------------------------------
     * Header tipo aplicación
     * ---------------------------------------------------------------------- */
    .header-inner {
        grid-template-columns: 42px minmax(0, 1fr) auto !important;
        gap: 7px !important;
        min-height: 62px !important;
    }

    .public-logo img {
        width: min(var(--public-logo-width, 230px), 48vw) !important;
        height: 40px !important;
        max-height: 40px !important;
    }

    .public-header-actions {
        grid-column: 3;
        justify-self: end;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 5px !important;
        min-width: auto;
    }

    /* En móvil/tablet quedan arriba solo Idioma + Carrito. Moneda se gestiona
     * desde el drawer y Cuenta desde el dock inferior. */
    .public-header-actions .public-currency-menu {
        display: none !important;
    }

    .public-header-actions .public-account-menu {
        position: static !important;
        width: 0 !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    .public-header-actions .public-account-trigger {
        display: none !important;
    }

    .site-header .public-language-menu {
        display: block !important;
        flex: 0 0 40px;
    }

    .public-language-trigger {
        display: grid !important;
        place-items: center;
        width: 40px;
        height: 40px;
        min-height: 40px;
        padding: 0 !important;
        border-radius: 12px;
    }

    .public-language-trigger > span,
    .public-language-trigger .public-language-chevron {
        display: none !important;
    }

    .public-language-trigger > svg:first-child {
        width: 19px;
        height: 19px;
    }

    .public-language-dropdown {
        position: fixed;
        z-index: 330;
        top: 68px;
        right: 10px;
        left: auto;
        width: min(286px, calc(100vw - 20px));
    }

    .public-cart-button {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        flex: 0 0 40px !important;
        border-radius: 12px !important;
    }

    .public-cart-button > svg {
        width: 19px;
        height: 19px;
    }

    /* Moneda e idioma continúan disponibles dentro del drawer. */
    .mobile-language-switch,
    .mobile-currency-switch {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin: 10px 14px 0;
        padding: 9px 11px;
        border: 1px solid rgba(255, 255, 255, .1);
        border-radius: 13px;
        color: #fff;
        background: rgba(255, 255, 255, .055);
    }

    .mobile-currency-switch-label {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: .76rem;
    }

    .mobile-currency-switch-label svg {
        width: 18px;
        height: 18px;
        fill: currentColor;
    }

    .mobile-currency-options {
        display: flex;
        gap: 5px;
    }

    .mobile-currency-options form {
        margin: 0;
    }

    .mobile-currency-options button {
        min-width: 46px;
        min-height: 34px;
        padding: 0 8px;
        border: 1px solid rgba(255, 255, 255, .12);
        border-radius: 9px;
        color: rgba(255, 255, 255, .78);
        background: rgba(255, 255, 255, .06);
        font: inherit;
        font-size: .68rem;
        font-weight: 850;
        cursor: pointer;
    }

    .mobile-currency-options button.is-active {
        border-color: rgba(237, 116, 37, .45);
        color: #fff;
        background: var(--fs-secondary, #ED7425);
    }

    /* ----------------------------------------------------------------------
     * Dock inferior persistente también en tablets pequeñas.
     * ---------------------------------------------------------------------- */
    body {
        padding-bottom: calc(64px + env(safe-area-inset-bottom)) !important;
    }

    .site-footer {
        display: none !important;
    }

    .mobile-bottom-nav.mobile-bottom-nav-compact {
        position: fixed !important;
        z-index: 300 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        width: 100% !important;
        max-width: none !important;
        height: calc(62px + env(safe-area-inset-bottom)) !important;
        padding: 6px 8px env(safe-area-inset-bottom) !important;
        border: 0 !important;
        border-top: 1px solid rgba(66, 50, 137, .1) !important;
        border-radius: 0 !important;
        background: rgba(255, 255, 255, .985) !important;
        box-shadow: 0 -8px 28px rgba(25, 20, 58, .09) !important;
        backdrop-filter: blur(20px) saturate(150%);
        -webkit-backdrop-filter: blur(20px) saturate(150%);
    }

    .mobile-bottom-nav.mobile-bottom-nav-compact a,
    .mobile-bottom-nav.mobile-bottom-nav-compact button {
        position: relative;
        display: grid !important;
        place-items: center;
        height: 50px !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 12px !important;
        color: #716d7f;
        background: transparent !important;
        text-decoration: none;
    }

    .mobile-bottom-nav.mobile-bottom-nav-compact svg {
        width: 21px !important;
        height: 21px !important;
        fill: currentColor;
    }

    .mobile-bottom-nav.mobile-bottom-nav-compact a.is-active,
    .mobile-bottom-nav.mobile-bottom-nav-compact button.is-active {
        color: var(--fs-primary, #423289) !important;
        background: rgba(66, 50, 137, .085) !important;
        box-shadow: none !important;
    }

    .mobile-bottom-nav.mobile-bottom-nav-compact a.is-active::after,
    .mobile-bottom-nav.mobile-bottom-nav-compact button.is-active::after {
        content: '';
        position: absolute;
        bottom: 3px;
        left: 50%;
        width: 20px;
        height: 3px;
        border-radius: 999px;
        background: var(--fs-secondary, #ED7425);
        transform: translateX(-50%);
    }

    /* Cuenta se abre como hoja inferior hasta 840 px, no como dropdown de
     * escritorio. El wrapper puede tener ancho cero porque el panel es fixed. */
    .public-account-dropdown {
        position: fixed !important;
        z-index: 320 !important;
        top: auto !important;
        right: 10px !important;
        bottom: calc(68px + env(safe-area-inset-bottom)) !important;
        left: 10px !important;
        width: auto !important;
        max-height: min(72vh, 620px);
        overflow: auto;
        border-radius: 22px !important;
        box-shadow: 0 30px 90px rgba(16, 10, 43, .38) !important;
    }

    .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;
    }

    /* ----------------------------------------------------------------------
     * Catálogo destacado del Inicio: páginas 2 columnas x 2 filas.
     * ---------------------------------------------------------------------- */
    .home-product-carousel {
        position: relative;
        min-width: 0;
    }

    .market-product-grid.home-product-carousel-track {
        display: flex !important;
        grid-template-columns: none !important;
        gap: 0 !important;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        overscroll-behavior-inline: contain;
        scrollbar-width: none;
        touch-action: pan-x pan-y;
        -webkit-overflow-scrolling: touch;
    }

    .market-product-grid.home-product-carousel-track::-webkit-scrollbar {
        display: none;
    }

    .home-product-slide {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(2, auto);
        flex: 0 0 100%;
        gap: 10px;
        min-width: 100%;
        padding: 1px;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .home-product-slide .market-product-card {
        min-width: 0;
        border-radius: 17px;
        box-shadow: 0 10px 25px rgba(32, 35, 49, .065);
        transform: none !important;
    }

    .home-product-slide .product-cover {
        aspect-ratio: 1 / 1;
        padding: 9px !important;
    }

    .home-product-slide .product-card-body {
        padding: 11px 11px 12px;
    }

    .home-product-slide .product-status-row {
        gap: 4px;
        margin: 0 0 7px;
        overflow: hidden;
    }

    .home-product-slide .product-status-chip {
        min-height: 23px;
        padding: 4px 6px;
        font-size: .56rem;
        white-space: nowrap;
    }

    .home-product-slide .product-meta {
        gap: 5px;
        font-size: .57rem;
    }

    .home-product-slide .product-meta span,
    .home-product-slide .product-meta small {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .home-product-slide .product-card-body h3 {
        margin: 7px 0 5px;
        font-size: .9rem;
        line-height: 1.18;
    }

    .home-product-slide .product-card-body h3 a {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .home-product-slide .product-card-body > p {
        display: -webkit-box;
        min-height: 0 !important;
        margin: 0 0 9px;
        overflow: hidden;
        color: #777487;
        font-size: .68rem;
        line-height: 1.35;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .home-product-slide .product-card-footer {
        align-items: center;
        gap: 6px;
        padding-top: 9px;
    }

    .home-product-slide .product-card-footer small {
        font-size: .57rem;
    }

    .home-product-slide .product-card-footer strong {
        margin-top: 1px;
        font-size: .87rem;
        white-space: nowrap;
    }

    .home-product-slide .round-link {
        display: grid;
        place-items: center;
        flex: 0 0 30px;
        width: 30px;
        height: 30px;
        overflow: hidden;
        border-radius: 9px;
        color: var(--fs-primary, #423289);
        background: rgba(66, 50, 137, .08);
        font-size: 0;
    }

    .home-product-slide .round-link::after {
        content: '→';
        font-size: .94rem;
        font-weight: 900;
    }

    .home-product-carousel-pagination {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        min-height: 30px;
        margin-top: 12px;
    }

    .home-product-carousel-pagination button {
        width: 7px;
        height: 7px;
        padding: 0;
        border: 0;
        border-radius: 999px;
        background: #c9c5d8;
        cursor: pointer;
        transition: width .18s ease, background .18s ease;
    }

    .home-product-carousel-pagination button.is-active {
        width: 23px;
        background: linear-gradient(90deg, var(--fs-primary, #423289), var(--fs-secondary, #ED7425));
    }

    /* Las pantallas de autenticación usan el mismo dock y reservan espacio para
     * que el botón principal nunca quede oculto detrás de la navegación. */
    .auth-body .auth-form-panel {
        padding-bottom: calc(92px + env(safe-area-inset-bottom)) !important;
    }

    .auth-mobile-dock {
        display: grid !important;
    }
}

@media (max-width: 430px) {
    .header-inner {
        grid-template-columns: 40px minmax(0, 1fr) auto !important;
        gap: 5px !important;
    }

    .public-logo img {
        width: min(var(--public-logo-width, 230px), 44vw) !important;
        height: 37px !important;
        max-height: 37px !important;
    }

    .public-language-trigger,
    .public-cart-button {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
        flex-basis: 38px !important;
    }

    .home-product-slide {
        gap: 8px;
    }

    .home-product-slide .product-card-body {
        padding: 9px 9px 10px;
    }

    .home-product-slide .product-card-body > p {
        -webkit-line-clamp: 1;
    }
}

@media (max-width: 840px) {
    /* Los avisos flotantes dejan libre el área ocupada por el dock. */
    .pwa-install-banner {
        bottom: calc(70px + env(safe-area-inset-bottom)) !important;
    }

    .home-product-carousel-track > .empty-market-state {
        flex: 1 0 100%;
        width: 100%;
    }
}

@media (max-width: 840px) {
    /* Las etiquetas siguen disponibles para lectores de pantalla, pero nunca
     * ocupan espacio visual en el dock instalado. */
    .mobile-bottom-nav-label {
        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;
    }
}

/* =============================================================================
   FÁCIL SHOP 8.1.2 — WORKSPACE DE TRADUCCIÓN POR PRODUCTO
   Mantiene un único ProductID y organiza el contenido ES → EN en el editor.
   ============================================================================= */
.product-language-tabs {
    display: inline-flex;
    align-items: stretch;
    gap: 8px;
    padding: 6px;
    border: 1px solid rgba(66,50,137,.12);
    border-radius: 18px;
    background: #f7f6fb;
    box-shadow: 0 8px 22px rgba(35,29,75,.05);
}
.product-language-tabs-editor { margin: 0 0 18px; }
.product-language-tabs a {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    column-gap: 9px;
    align-items: center;
    min-width: 164px;
    padding: 10px 14px;
    border-radius: 13px;
    color: #4d4760;
    text-decoration: none;
    transition: .18s ease;
}
.product-language-tabs a > span { grid-row: 1 / 3; font-size: 1.15rem; }
.product-language-tabs a strong { font-size: .86rem; }
.product-language-tabs a small { color: #827c91; font-size: .68rem; }
.product-language-tabs a:hover { background: #fff; box-shadow: 0 7px 18px rgba(32,25,70,.07); }
.product-language-tabs a.is-active {
    color: #fff;
    background: linear-gradient(135deg, #423289, #5543a3);
    box-shadow: 0 10px 22px rgba(66,50,137,.22);
}
.product-language-tabs a.is-active small { color: rgba(255,255,255,.76); }
.product-language-create-note {
    display: flex;
    align-items: center;
    gap: 10px 18px;
    flex-wrap: wrap;
    margin: 0 0 18px;
    padding: 13px 16px;
    border: 1px dashed rgba(66,50,137,.25);
    border-radius: 15px;
    background: #faf9fd;
    color: #5f596e;
}
.product-language-create-note strong { color: #423289; }

.product-translation-workspace { --pt-border:#e7e4ee; --pt-muted:#777187; }
.product-translation-head { align-items: flex-start; }
.product-translation-summary {
    display: grid;
    grid-template-columns: minmax(190px, .7fr) minmax(260px, 1.6fr) auto;
    align-items: center;
    gap: 22px;
    margin: 18px 0 22px;
    padding: 20px 22px;
    border: 1px solid var(--pt-border);
    border-radius: 20px;
    background: linear-gradient(135deg, #fff 0%, #f9f8fc 100%);
    box-shadow: 0 14px 34px rgba(31,25,67,.06);
}
.product-translation-summary strong { display:block;margin:4px 0;font-size:2rem;line-height:1;color:#423289; }
.product-translation-summary p { margin:0;color:var(--pt-muted);font-size:.78rem; }
.product-translation-progress { height:10px;overflow:hidden;border-radius:99px;background:#ebe8f1; }
.product-translation-progress i { display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#423289,#ED7425); }
.product-translation-summary-status { display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end; }
.product-translation-summary-status span { padding:8px 10px;border:1px solid var(--pt-border);border-radius:11px;background:#fff;color:#746e80;font-size:.72rem; }
.product-translation-summary-status b { color:#302a43; }

.product-translation-layout { display:grid;grid-template-columns:240px minmax(0,1fr);gap:22px;align-items:start; }
.product-translation-nav {
    position:sticky;
    top:82px;
    display:grid;
    gap:5px;
    padding:13px;
    border:1px solid var(--pt-border);
    border-radius:18px;
    background:#fff;
    box-shadow:0 14px 32px rgba(31,25,67,.06);
}
.product-translation-nav > strong { padding:8px 8px 11px;color:#312b43;font-size:.78rem;text-transform:uppercase;letter-spacing:.07em; }
.product-translation-nav a { display:grid;grid-template-columns:27px minmax(0,1fr) auto;align-items:center;gap:8px;padding:9px;border-radius:11px;color:#5d576a;text-decoration:none;font-size:.76rem;font-weight:750; }
.product-translation-nav a:hover { background:#f4f1fa;color:#423289; }
.product-translation-nav a span { display:grid;place-items:center;width:27px;height:27px;border-radius:8px;background:#f0edf7;color:#423289;font-size:.62rem;font-weight:900; }
.product-translation-nav a b { color:#827b90;font-size:.64rem; }
.product-translation-nav small { padding:10px 8px 5px;border-top:1px solid #efecf4;color:#8b8498;line-height:1.5;font-size:.67rem; }
.product-translation-content { display:grid;gap:18px;min-width:0; }
.product-translation-section { scroll-margin-top:88px;overflow:hidden;padding:0; }
.product-translation-section-head { display:flex;align-items:center;justify-content:space-between;gap:14px;padding:17px 19px;border-bottom:1px solid var(--pt-border);background:#fbfafd; }
.product-translation-section-head > div { display:flex;align-items:center;gap:12px;min-width:0; }
.product-translation-section-head > div > span { display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:10px;background:#423289;color:#fff;font-size:.67rem;font-weight:900; }
.product-translation-section-head h2 { margin:0 0 3px;font-size:1rem; }
.product-translation-section-head p { margin:0;color:var(--pt-muted);font-size:.72rem; }
.product-translation-section-head em,.product-translation-entity summary > em { padding:6px 9px;border-radius:99px;background:#fff3df;color:#9a5d00;font-style:normal;font-size:.63rem;font-weight:900;white-space:nowrap; }
.product-translation-section-head em.is-done,.product-translation-entity summary > em.is-done { background:#eaf8ef;color:#237447; }

.product-translation-inline-form { display:grid;gap:0;padding:18px; }
.product-translation-field { display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);border:1px solid var(--pt-border);border-bottom:0;background:#fff;overflow:hidden; }
.product-translation-field:first-of-type { border-radius:14px 14px 0 0; }
.product-translation-field:last-of-type { border-bottom:1px solid var(--pt-border);border-radius:0 0 14px 14px; }
.product-translation-source,.product-translation-target { position:relative;min-width:0;padding:17px; }
.product-translation-source { border-right:1px solid var(--pt-border);background:#f8f7fb; }
.product-translation-source label,.product-translation-target label { display:block;margin:0 0 9px;color:#423c52;font-size:.72rem;font-weight:850; }
.product-translation-lang { position:absolute;top:12px;right:12px;padding:3px 6px;border-radius:7px;background:#e7e3ee;color:#6d667c;font-size:.58rem;font-weight:950;letter-spacing:.07em; }
.product-translation-lang.is-en { color:#fff;background:#423289; }
.product-translation-source-value { padding-right:33px;color:#5b5566;line-height:1.55;font-size:.79rem;overflow-wrap:anywhere; }
.product-translation-target input,.product-translation-target textarea { width:100%;border:1px solid #d9d5e2;border-radius:10px;padding:10px 11px;background:#fff;font:inherit;font-size:.79rem;line-height:1.5;resize:vertical; }
.product-translation-target input:focus,.product-translation-target textarea:focus { outline:3px solid rgba(66,50,137,.1);border-color:#423289; }
.product-translation-save-row { display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:12px; }
.product-translation-save-row span { color:#817a8d;font-size:.68rem; }

.product-translation-entities { display:grid;gap:10px;padding:16px; }
.product-translation-entity { overflow:hidden;border:1px solid var(--pt-border);border-radius:14px;background:#fff; }
.product-translation-entity summary { display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 15px;cursor:pointer;list-style:none;background:#fff; }
.product-translation-entity summary::-webkit-details-marker { display:none; }
.product-translation-entity summary > span { display:flex;align-items:center;gap:10px;min-width:0; }
.product-translation-entity summary i { display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;border-radius:8px;background:#f1eef7;color:#423289;font-style:normal;font-size:.6rem;font-weight:900; }
.product-translation-entity summary strong { overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.78rem; }
.product-translation-entity[open] summary { border-bottom:1px solid var(--pt-border);background:#faf9fc; }
.product-translation-entity-body .product-translation-inline-form { padding:13px; }
.product-translation-empty { padding:24px;text-align:center;color:#7c7589; }
.product-translation-empty strong { display:block;margin-bottom:5px;color:#494254; }
.product-translation-empty p { margin:0;font-size:.75rem; }

@media (max-width: 1080px) {
    .product-translation-layout { grid-template-columns:1fr; }
    .product-translation-nav { position:static;display:flex;overflow-x:auto;gap:6px;scrollbar-width:thin; }
    .product-translation-nav > strong,.product-translation-nav small { display:none; }
    .product-translation-nav a { flex:0 0 auto;grid-template-columns:27px auto auto; }
}
@media (max-width: 760px) {
    .product-language-tabs { display:grid;grid-template-columns:1fr 1fr;width:100%; }
    .product-language-tabs a { min-width:0;padding:9px 10px; }
    .product-translation-summary { grid-template-columns:1fr;gap:13px; }
    .product-translation-summary-status { justify-content:flex-start; }
    .product-translation-field { grid-template-columns:1fr; }
    .product-translation-source { border-right:0;border-bottom:1px solid var(--pt-border); }
    .product-translation-section-head { align-items:flex-start; }
    .product-translation-section-head em { margin-top:3px; }
}
.product-language-tab-disabled {
    display:grid;
    grid-template-columns:auto auto;
    grid-template-rows:auto auto;
    column-gap:9px;
    align-items:center;
    min-width:164px;
    padding:10px 14px;
    border-radius:13px;
    color:#918a9d;
    background:#eeecf2;
    cursor:not-allowed;
}
.product-language-tab-disabled > span { grid-row:1 / 3;font-size:1.15rem;filter:grayscale(1);opacity:.72; }
.product-language-tab-disabled strong { font-size:.86rem; }
.product-language-tab-disabled small { font-size:.68rem; }
@media (max-width:760px) {
    .product-language-tab-disabled { min-width:0;padding:9px 10px; }
}
