
/* Prueba cache versionado*/
html {
    scroll-behavior: smooth
}

.editor-page {
    background: #f4f6f9
}

.single-page-editor {
    padding-bottom: 32px
}

.editor-bar {
    top: var(--site-header-height);
    min-height: 56px;
    padding: 7px max(3vw, calc((100% - 1320px)/2));
    gap: 12px
}

.editor-bar .button {
    padding: 9px 13px
}

.editor-title {
    gap: 8px
}

.save-status-button {
    border: 0;
    background: transparent;
    padding: 4px 0;
    font-weight: 700;
    opacity: 1
}

.save-status-button:disabled {
    cursor: default;
    color: #637087
}

.save-status-button.error {
    color: #b42318;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer
}

.editor-close-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px
}

.editor-close-actions-top {
    margin-left: auto
}

.editor-close-actions-bottom {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #edf0f4
}

.section-nav {
    position: sticky;
    top: calc(var(--site-header-height) + 56px);
    z-index: 14;
    background: #f4f6f9eF;
    border-bottom: 1px solid #dfe4eb;
    display: flex;
    justify-content: center;
    gap: 3px;
    padding: 4px 3vw;
    overflow-x: auto;
    backdrop-filter: blur(8px)
}

.section-nav a {
    white-space: nowrap;
    padding: 6px 11px;
    border-radius: 7px;
    text-decoration: none;
    color: #43516a;
    font-size: .9rem;
    font-weight: 800
}

.section-nav a:hover, .section-nav a:focus {
    background: #eaf2ff;
    color: #164ea6
}

.single-page-shell {
    width: 94%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 20px 0;
    display: grid;
    gap: 20px
}

.form-section {
    scroll-margin-top: calc(var(--site-header-height) + 112px);
    background: #fff;
    border: 1px solid #dfe4eb;
    border-radius: 14px;
    padding: 26px 28px;
    box-shadow: 0 4px 16px rgba(23, 32, 51, .045)
}

.section-heading {
    margin-bottom: 18px
}

.section-heading>p {
    display: none
}

.section-heading h1 {
    margin: 0;
    font-size: 1.55rem
}

.form-grid {
    gap: 14px 18px
}

.form-section label {
    gap: 5px
}

.form-section input, .form-section select, .form-section textarea {
    padding: 9px 11px
}

.form-section textarea[name="description"] {
    min-height: 130px;
    max-height: 320px
}

.form-section .button:not(.primary) {
    padding: 7px 11px;
    font-size: .9rem
}

.editor-close-actions .button {
    padding: 9px 13px;
    font-size: .94rem;
    white-space: nowrap
}

.subsection {
    margin-top: 22px;
    padding-top: 18px
}

.subsection h2 {
    margin: 0 0 12px;
    font-size: 1.15rem
}

.choice {
    margin-bottom: 14px
}

.choice legend {
    margin-bottom: 6px
}

.continue {
    display: none
}

.product-field-label-text {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    justify-self: start;
    white-space: nowrap
}

.required {
    color: #b42318;
    font-size: 1.08em
}

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

.title-field {
    display: grid;
    gap: 8px
}

.title-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px
}

.title-controls small {
    color: #637087;
    font-weight: 800
}

#producto .section-heading {
    margin-bottom: 4px
}

.product-ux-layout {
    display: grid
}

.product-ux-block {
    display: grid;
    grid-template-columns: minmax(220px, 7fr) minmax(0, 13fr);
    gap: 30px;
    padding: 26px 0
}

.product-ux-block+.product-ux-block {
    border-top: 1px solid #edf0f4
}

.product-block-copy h2 {
    margin: 0 0 6px;
    color: #26334a;
    font-size: 1.3rem;
    line-height: 1.25
}

.product-block-copy p {
    max-width: 310px;
    margin: 0;
    color: #6a7689;
    font-size: .98rem;
    line-height: 1.5
}

.product-block-controls {
    width: 100%;
    max-width: 780px;
    min-width: 0
}

.product-block-controls>label, .product-block-controls .title-field>label, .category-fields>label {
    gap: 8px;
    font-size: 1.03rem
}

.product-block-controls input:not([type="radio"]), .product-block-controls select, .product-block-controls textarea {
    min-height: 48px;
    padding: 11px 13px;
    font-size: 1.05rem
}

.product-block-controls .button:not(.primary) {
    padding: 9px 13px;
    font-size: .98rem
}

.category-fields {
    display: grid;
    gap: 16px
}

.product-variations-block .choice {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0 0 18px
}

.product-variations-block .choice label {
    margin: 0;
    font-size: 1.04rem
}

.product-variations-block .choice input, .identity-radio input {
    width: 20px;
    height: 20px;
    flex: 0 0 auto
}

.identity-choice {
    display: grid;
    gap: 13px;
    margin: 0
}

.identity-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0
}

.identity-choice .identity-radio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 145px;
    min-height: 48px;
    margin: 0;
    white-space: nowrap;
    font-size: 1.04rem
}

.identity-brand-fields {
    width: min(320px, 100%);
    min-width: 0
}

.identity-compatibility-fields {
    display: grid;
    grid-template-columns: minmax(0, 300px) max-content;
    gap: 9px;
    width: min(560px, 100%);
    min-width: 0;
    align-items: start
}

.identity-fields[hidden] {
    display: none
}

#compatibility-list {
    grid-column: 1;
    grid-row: 1
}

.compatibility-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    margin-bottom: 9px
}

.compatibility-row .compact-remove {
    align-self: center
}

.identity-fields>#add-compatibility {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    margin: 0;
    white-space: nowrap
}

.inline-validation {
    background: #fee4e2;
    color: #912018;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 14px;
    font-weight: 700
}

.input-affix {
    display: flex;
    align-items: stretch;
    border: 1px solid #bfc8d5;
    border-radius: 9px;
    background: #fff;
    overflow: hidden
}

.input-affix:focus-within {
    outline: 3px solid #cfe1ff;
    border-color: #1557b0
}

.input-affix>span {
    display: flex;
    align-items: center;
    padding: 0 10px;
    background: #eef2f6;
    color: #43516a;
    font-weight: 800;
    white-space: nowrap
}

.input-affix input {
    border: 0;
    border-radius: 0;
    outline: 0 !important
}

.input-affix.suffix input {
    order: 0
}

.input-affix.suffix span {
    order: 1
}

#precio .form-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr))
}

.repeat-row {
    grid-template-columns: minmax(150px, .8fr) minmax(220px, 1.4fr) minmax(100px, .45fr) auto;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 8px
}

.variation-group {
    position: relative;
    border: 1px solid #dfe4eb;
    border-radius: 10px;
    padding: 10px 36px 10px 12px;
    margin-bottom: 10px;
    background: #fafbfc;
    display: grid;
    grid-template-columns: minmax(180px, .75fr) minmax(320px, 2fr) auto;
    gap: 10px;
    align-items: end
}

.variation-group-head {
    display: block;
    margin: 0
}

.variation-group-head .remove-group {
    position: absolute;
    right: 8px;
    top: 8px
}

.variation-values {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

.variation-value-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: end;
    margin: 0
}

.variation-value-row {
    flex: 1 1 170px
}

.variation-group .add-value {
    margin: 0;
    white-space: nowrap
}

.compact-remove {
    width: 25px;
    height: 25px;
    padding: 0;
    border: 1px solid #efb2ad;
    border-radius: 50%;
    background: #fff;
    color: #b42318;
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer
}

.compact-remove[hidden], .remove-group[hidden], .remove-value[hidden] {
    display: none !important
}

.image-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 12px
}

.image-card {
    padding: 9px;
    gap: 8px;
    min-width: 0
}

.assignment-form fieldset {
    gap: 4px
}

.custom-uploader {
    margin-top: 16px;
    border: 2px dashed #aeb9c8;
    border-radius: 11px;
    padding: 14px 18px;
    text-align: center;
    background: #fafbfd;
    transition: .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    flex-wrap: wrap
}

.custom-uploader.dragging {
    border-color: #1557b0;
    background: #eaf2ff
}

.custom-uploader h2 {
    margin: 0;
    font-size: 1.05rem
}

.custom-uploader p {
    margin: 0
}

.custom-uploader>span {
    color: #7b8799
}

.custom-uploader small {
    color: #637087
}

.custom-uploader #upload-feedback {
    flex-basis: 100%
}

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

.review div {
    padding: 8px 0;
    min-width: 0
}

.review dd {
    overflow-wrap: anywhere
}

.completion-box {
    margin-top: 16px;
    padding: 13px 15px;
    border-radius: 10px
}

.completion-box.complete {
    background: #dff7ea;
    color: #087443
}

.completion-box.incomplete {
    background: #fff1cc;
    color: #6e4b00
}

.completion-box p {
    margin: 5px 0 0
}

.badge.incomplete {
    background: #fff1cc;
    color: #6e4b00
}

.product-state {
    display: grid;
    justify-items: start;
    gap: 6px;
    min-width: 140px
}

.product-state form {
    margin: 0
}

.status-action {
    gap: 6px;
    padding: 6px 9px;
    font-size: .8rem;
    line-height: 1.1;
    white-space: nowrap
}

.product-missing {
    min-width: 0;
    max-width: 230px
}

.product-missing small {
    color: #637087;
    font-weight: 700;
    line-height: 1.25
}

.product-row {
    grid-template-columns: minmax(280px, 1fr) minmax(140px, auto) minmax(110px, 230px) auto auto;
    gap: 14px
}

.product-row-trash {
    grid-template-columns: minmax(300px, 1fr) auto auto
}

.product-identity {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0
}

.product-main {
    min-width: 0
}

.product-main h2 {
    overflow-wrap: anywhere
}

.product-thumbnail {
    width: 72px;
    height: 72px;
    min-width: 72px;
    min-height: 72px;
    max-width: 72px;
    max-height: 72px;
    flex: 0 0 auto;
    overflow: hidden;
    border: 1px solid #dfe4eb;
    border-radius: 9px;
    background: #f4f6f9
}

.product-thumbnail-image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    display: block
}

.product-thumbnail-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #8a96a8
}

.product-thumbnail-placeholder svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6
}

.catalog-icon-actions {
    flex-wrap: nowrap
}

.icon-button {
    width: 38px;
    height: 38px;
    padding: 0 !important
}

.icon-button svg, .search-button svg, .status-action svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round
}

.mark-complete {
    color: #087443;
    border-color: #8ed8b2
}

.mark-complete:hover {
    background: #e5f8ee
}

.mark-incomplete {
    color: #9a6700;
    border-color: #e2c675
}

.search-button {
    gap: 7px
}

[data-dashboard].container {
    padding-top: 12px;
    padding-bottom: 28px
}

.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px
}

.catalog-toolbar form {
    flex: 0 0 auto;
    margin: 0
}

[data-dashboard] .filter-context {
    margin-bottom: 8px
}

.catalog-toolbar .filter-tabs {
    flex: 1 1 auto;
    flex-wrap: nowrap;
    min-width: 0;
    margin-bottom: 0
}

.catalog-search {
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    margin-bottom: 10px
}

.catalog-search>input[type="search"] {
    flex: 1 1 330px;
    min-width: 130px;
    max-width: none
}

.catalog-search .search-button {
    flex: 0 0 auto;
    white-space: nowrap
}

.catalog-category-filter {
    flex: 0 1 210px;
    width: auto;
    min-width: 150px;
    max-width: 240px
}

.catalog-subcategory-filter {
    flex: 0 1 290px;
    width: auto;
    min-width: 200px;
    max-width: 340px
}

.catalog-clear-filters {
    display: inline-block;
    margin: -4px 0 14px
}

.catalog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 22px
}

.catalog-pagination span {
    color: #536179;
    font-weight: 800
}

.editable-suggestions {
    position: absolute;
    z-index: 200;
    max-height: 260px;
    overflow-y: auto;
    padding: 5px;
    border: 1px solid #bfc8d5;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(23, 32, 51, .18)
}

.editable-suggestions[hidden] {
    display: none
}

.editable-suggestion {
    display: block;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #26334a;
    text-align: left;
    cursor: pointer
}

.editable-suggestion:hover, .editable-suggestion.active {
    background: #eaf2ff;
    color: #164ea6
}

.trash-expiry {
    display: grid;
    gap: 2px;
    color: #536179
}

.trash-expiry small {
    font-weight: 700
}

.trash-expiry strong {
    white-space: nowrap;
    color: #26334a
}

.filter-context {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    margin-bottom: 14px;
    background: #eaf2ff;
    border-radius: 9px
}

.filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    flex-wrap: wrap
}

.filter-tabs a {
    white-space: nowrap;
    text-decoration: none;
    padding: 9px 14px;
    border: 1px solid #ccd4df;
    border-radius: 999px;
    background: #fff;
    font-weight: 800;
    color: #43516a
}

.filter-tabs a.active {
    background: #1557b0;
    border-color: #1557b0;
    color: #fff
}

.usage {
    white-space: nowrap
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(16, 24, 40, .62);
    display: grid;
    place-items: center;
    padding: 20px
}

.modal-overlay[hidden], .modal-actions [hidden] {
    display: none !important
}

.app-modal {
    position: relative;
    width: min(540px, 100%);
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .3)
}

.app-modal h2 {
    margin: 0 34px 12px 0;
    font-size: 1.5rem
}

.app-modal p {
    color: #536179;
    font-size: 1.05rem;
    white-space: pre-line
}

.modal-close {
    position: absolute;
    right: 15px;
    top: 12px;
    border: 0;
    background: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #637087
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 26px
}

.category-edit-dialog h2 {
    margin-bottom: 20px
}

.category-edit-form .modal-actions {
    margin-top: 8px
}

.category-edit-feedback:not(:empty) {
    color: #912018;
    font-size: .95rem;
    line-height: 1.4
}

.modal-open {
    overflow: hidden
}

@media(max-width:1100px) {
    .single-page-shell {
        width: 92%
    }

    .image-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr))
    }

    .review {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

@media(max-width:900px) {
    .catalog-search .search-button {
        width: 42px;
        min-width: 42px;
        padding-right: 0;
        padding-left: 0;
        justify-content: center
    }

    .catalog-search .search-button span {
        display: none
    }

    .catalog-category-filter {
        flex-basis: 190px;
        min-width: 140px
    }

    .catalog-subcategory-filter {
        flex-basis: 230px;
        min-width: 170px
    }
}

@media(max-width:800px) {
    .editor-bar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        padding: 7px 16px;
        min-height: 95px
    }

    .editor-title {
        order: 0;
        grid-column: 1;
        grid-row: 1;
        flex-basis: auto
    }

    .editor-bar #save-status {
        grid-column: 2;
        grid-row: 1
    }

    .editor-close-actions-top {
        grid-column: 1/-1;
        grid-row: 2;
        justify-self: end;
        margin-left: 0
    }

    .section-nav {
        top: calc(var(--site-header-height) + 95px);
        justify-content: flex-start;
        padding: 4px 12px
    }

    .section-nav a {
        padding: 6px 9px
    }

    .single-page-shell {
        width: auto;
        padding: 14px 16px;
        gap: 14px
    }

    .form-section {
        padding: 20px 18px;
        scroll-margin-top: calc(var(--site-header-height) + 142px)
    }

    .form-grid, #precio .form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .full {
        grid-column: 1/-1
    }

    .product-ux-block {
        grid-template-columns: 1fr;
        gap: 13px;
        padding: 22px 0
    }

    .product-block-copy p {
        max-width: none
    }

    .product-block-controls {
        max-width: none
    }

    .variation-group {
        grid-template-columns: 1fr;
        padding: 12px 38px 12px 12px
    }

    .variation-values {
        display: grid;
        grid-template-columns: 1fr
    }

    .image-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .repeat-row {
        grid-template-columns: 1fr 1fr minmax(90px, .5fr) auto
    }

    .product-row:not(.product-row-trash) {
        grid-template-columns: minmax(0, 1fr) auto
    }

    .product-row:not(.product-row-trash) .product-identity {
        grid-column: 1/-1
    }

    .product-row:not(.product-row-trash) .product-state {
        grid-column: 1;
        grid-row: 2
    }

    .product-row:not(.product-row-trash) .product-missing {
        grid-column: 1;
        grid-row: 3;
        max-width: none
    }

    .product-row .catalog-icon-actions {
        grid-column: 2;
        grid-row: 2/span 2;
        align-self: center
    }

    .app-modal {
        padding: 24px 20px
    }

    .modal-actions {
        flex-direction: column-reverse
    }

    .modal-actions .button {
        width: 100%
    }
}

@media(max-width:520px) {
    [data-dashboard].container {
        padding: 10px 12px 24px
    }

    .catalog-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 8px
    }

    .catalog-toolbar form {
        align-self: flex-end
    }

    .catalog-search {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 42px;
        gap: 7px
    }

    .catalog-search>input[type="search"] {
        min-width: 0;
        grid-column: 1;
        grid-row: 1
    }

    .catalog-search .search-button {
        grid-column: 2;
        grid-row: 1
    }

    .catalog-category-filter, .catalog-subcategory-filter {
        width: 100%;
        min-width: 0;
        max-width: none
    }

    .catalog-category-filter, .catalog-subcategory-filter {
        grid-column: 1/-1
    }

    .catalog-category-filter {
        grid-row: 2
    }

    .catalog-subcategory-filter {
        grid-row: 3
    }

    .category-create-heading {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 8px
    }

    .editor-bar {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 7px 9px;
        min-height: 160px
    }

    .editor-bar .editor-title {
        grid-column: 1;
        grid-row: 1
    }

    .editor-bar #save-status {
        grid-column: 2;
        grid-row: 1;
        font-size: .82rem
    }

    .editor-close-actions-top {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        justify-self: stretch
    }

    .editor-close-actions-top .button {
        width: 100%;
        white-space: normal;
        line-height: 1.2
    }

    .editor-close-actions-top .danger {
        grid-column: 1/-1
    }

    .editor-title .badge {
        display: none
    }

    .section-nav {
        top: calc(var(--site-header-height) + 160px)
    }

    .section-number {
        display: inline
    }

    .section-nav a {
        font-size: .82rem
    }

    .single-page-shell {
        padding: 12px 10px
    }

    .form-section {
        padding: 17px 14px;
        scroll-margin-top: calc(var(--site-header-height) + 208px)
    }

    .form-grid, #precio .form-grid, .repeat-row, .variation-group-head, .variation-value-row, .review {
        grid-template-columns: 1fr
    }

    .full {
        grid-column: auto
    }

    .product-ux-block {
        padding: 20px 0
    }

    .product-block-copy h2 {
        font-size: 1.22rem
    }

    .identity-option {
        display: grid;
        gap: 7px
    }

    .identity-choice .identity-radio {
        min-height: 0;
        flex-basis: auto
    }

    .identity-fields {
        width: 100%;
        min-width: 0;
        padding-left: 30px
    }

    .identity-compatibility-fields {
        grid-template-columns: minmax(0, 300px) max-content
    }

    .editor-close-actions-bottom {
        display: grid;
        grid-template-columns: 1fr
    }

    .editor-close-actions-bottom .button {
        width: 100%
    }

    .product-thumbnail {
        width: 56px;
        height: 56px;
        min-width: 56px;
        min-height: 56px;
        max-width: 56px;
        max-height: 56px
    }

    .image-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px
    }

    .image-card .actions {
        display: grid
    }

    .custom-uploader {
        display: grid;
        padding: 13px
    }

    .custom-uploader>span {
        display: none
    }
}

@media(max-width:460px) {
    .identity-compatibility-fields {
        grid-template-columns: minmax(0, 300px)
    }

    #compatibility-list, .identity-fields>#add-compatibility {
        grid-column: 1;
        grid-row: auto
    }

    .identity-fields>#add-compatibility {
        justify-self: start
    }
}

@media(max-width:360px) {
    .editor-bar {
        min-height: 220px
    }

    .editor-close-actions-top {
        grid-template-columns: 1fr
    }

    .editor-close-actions-top .danger {
        grid-column: auto
    }

    .section-nav {
        top: calc(var(--site-header-height) + 220px)
    }

    .form-section {
        scroll-margin-top: calc(var(--site-header-height) + 268px)
    }

    .image-grid {
        grid-template-columns: 1fr
    }
}
