/* Armado: isolated from the storefront's shared cards and tenant palette. */
.armado-page,
#armado-modal {
    --armado-accent: var(--main-bg-color, #262626);
    --armado-on-accent: var(--main-letra, #fff);
    --armado-border: #e5e7eb;
    --armado-muted: #626873;
    color: #262b33;
}

.armado-page {
    background: var(--main-fondo, #f7f7f7);
    padding-bottom: 48px;
}

.armado-page .armado-page-header { margin-bottom: 0; }
.armado-page .page-header__breadcrumb { padding-top: 20px; padding-bottom: 20px; }
.armado-page .armado-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px;
    align-items: center;
    padding: 32px;
    margin-bottom: 36px;
    background: #fff;
    border: 1px solid var(--armado-border);
    border-left: 4px solid var(--armado-accent);
    border-radius: 20px;
}

.armado-eyebrow {
    display: block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: .12em;
    color: var(--armado-muted);
}

.armado-page .armado-intro h2 { font-size: 30px; line-height: 1.2; letter-spacing: -.025em; margin: 0 0 12px; }
.armado-page .armado-intro p { max-width: 480px; margin: 0; color: var(--armado-muted); line-height: 1.6; }
.armado-page .armado-steps { display: grid; gap: 12px; list-style: none; padding: 0; margin: 0; font-size: 13px; font-weight: 500; }
.armado-page .armado-steps li { display: flex; gap: 12px; align-items: center; }
.armado-page .armado-steps li > span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--armado-border);
    border-radius: 10px;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}
.armado-page .armado-steps li:first-child > span { background: var(--armado-accent); color: var(--armado-on-accent); border-color: var(--armado-accent); }

.armado-page .armado-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.armado-page .armado-components { min-width: 0; }
.armado-page .armado-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.armado-page .armado-section-heading h2,
.armado-page .armado-summary-heading h2 { font-size: 23px; letter-spacing: -.02em; margin: 0; line-height: 1.3; }
.armado-page .armado-section-help { color: var(--armado-muted); font-size: 14px; line-height: 1.6; margin: 12px 0 24px; }
.armado-page .armado-summary-link { color: inherit; font-size: 13px; font-weight: 600; white-space: nowrap; text-decoration: underline; text-underline-offset: 4px; }
.armado-page .armado-components-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.armado-page #divArmaPc .btnArmaPc { display: block; min-width: 0; padding: 0; color: inherit; text-decoration: none; border-radius: 16px; }
.armado-page #divArmaPc .block-features__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    min-height: 212px;
    width: 100%;
    padding: 20px 14px 16px;
    background: #fff;
    border: 1px solid var(--armado-border);
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(20, 25, 35, .02);
    transition: border-color .15s, box-shadow .15s;
}
.armado-page #divArmaPc .block-features__icon { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 88px; height: 88px; margin: 0 0 16px; padding: 0; overflow: hidden; }
.armado-page #divArmaPc .block-features__icon img { display: block; min-width: 0; min-height: 0; max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; }
.armado-page #divArmaPc .block-features__content { width: 100%; margin-top: auto; }
.armado-page #divArmaPc .block-features__title { font-size: 15px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.armado-page .armado-component-prompt { display: flex; justify-content: center; gap: 12px; margin-top: 12px; font-size: 12px; color: var(--armado-muted); }
.armado-page #divArmaPc .block-features__subtitle:empty { display: none; }
.armado-page #divArmaPc .block-features__subtitle {
    display: none;
    margin: 12px 0 0;
    padding: 7px 8px;
    border-radius: 8px;
    background: var(--armado-accent);
    color: var(--armado-on-accent);
    font-size: 12px;
    line-height: 1.4;
}
.armado-page #divArmaPc .seleccionado .block-features__subtitle:not(:empty) { display: block; }
.armado-page #divArmaPc .seleccionado .block-features__item { border-color: var(--armado-accent); box-shadow: 0 0 0 1px var(--armado-accent); }
.armado-page .seleccionado .armado-component-prompt { display: none; }
.armado-page #divArmaPc .btnArmaPc:hover .block-features__item { border-color: var(--armado-accent); box-shadow: 0 4px 16px rgba(20, 25, 35, .08); }
.armado-page .btnArmaPc:focus-visible,
.armado-page .armado-summary-link:focus-visible,
.armado-page .armado-mobile-summary:focus-visible,
#armado-modal :is(button, a, input, select):focus-visible { outline: 3px solid var(--armado-accent); outline-offset: 3px; }

.armado-page .armado-summary { position: sticky; top: 110px; min-width: 0; scroll-margin-top: 110px; }
.armado-page .armado-summary-card { border: 1px solid var(--armado-border); border-radius: 18px; box-shadow: 0 8px 24px rgba(20, 25, 35, .04); }
.armado-page #card-arma { padding: 24px; }
.armado-page .armado-summary-heading p { margin: 10px 0 0; color: var(--armado-muted); font-size: 13px; line-height: 1.6; }
.armado-page .armado-summary-empty { padding: 28px 0; text-align: center; }
.armado-page .armado-empty-icon { display: grid; place-items: center; width: 48px; height: 48px; border: 1px dashed var(--armado-border); border-radius: 14px; margin: 0 auto 14px; font-size: 24px; color: var(--armado-muted); }
.armado-page .armado-summary-empty h3 { font-size: 15px; margin: 0 0 8px; }
.armado-page .armado-summary-empty p { font-size: 13px; line-height: 1.6; color: var(--armado-muted); margin: 0; }
.armado-page .armado-summary-items { list-style: none; padding: 0; margin: 20px 0; }
.armado-page .armado-summary-item { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 6px 12px; padding: 16px 0; border-bottom: 1px solid var(--armado-border); font-size: 13px; line-height: 1.5; }
.armado-page .armado-summary-image { grid-row: span 2; }
.armado-page .armado-summary-image img { width: 44px; height: 44px; object-fit: contain; }
.armado-page .armado-summary-product { min-width: 0; }
.armado-page .armado-summary-product > a { color: inherit; font-weight: 500; overflow-wrap: anywhere; }
.armado-page .armado-summary-quantity { display: block; color: var(--armado-muted); font-size: 12px; margin-top: 4px; }
.armado-page .armado-summary-price { grid-column: 2; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.armado-page .armado-extra-icon { grid-row: span 2; text-align: center; font-size: 22px; }
.armado-page .armado-options { border: 0; padding: 0; margin: 20px 0; min-width: 0; }
.armado-page .armado-options legend { font-size: 14px; font-weight: 600; margin: 0 0 12px; }
.armado-page .armado-options .form-check { padding: 12px 12px 12px 36px; border: 1px solid var(--armado-border); border-radius: 10px; margin-bottom: 8px; }
.armado-page .armado-options .form-check-label { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; font-size: 13px; line-height: 1.5; cursor: pointer; }
.armado-page .armado-options .form-check-input { margin-left: -24px; }
.armado-page .armado-summary-total { padding-top: 20px; border-top: 1px solid var(--armado-border); }
.armado-page .armado-total-line { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; font-weight: 600; }
.armado-page #valorTotal { font-size: 26px; line-height: 1.2; letter-spacing: -.025em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.armado-page .armado-price-note { font-size: 12px; line-height: 1.6; color: var(--armado-muted); margin: 12px 0 0; }
.armado-page .armado-continue,
#armado-modal .armado-product-pick { background: var(--armado-accent); color: var(--armado-on-accent); border-color: var(--armado-accent); min-height: 46px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.armado-page .armado-continue { margin-top: 20px; }
.armado-page .btnSeleccionar { display: none; }
.armado-page .armado-mobile-summary { display: none; }
.armado-page .armado-loading { padding: 32px; text-align: center; color: var(--armado-muted); }
.armado-empty { padding: 40px 24px; border: 1px dashed var(--armado-border); border-radius: 16px; text-align: center; background: #fff; }
.armado-empty h2, .armado-empty h3 { font-size: 20px; margin-bottom: 12px; }
.armado-empty p { color: var(--armado-muted); line-height: 1.6; }

/* Keep a long summary in the document flow rather than trapping scroll. */
@media (min-width: 992px) and (max-height: 750px) {
    .armado-page .armado-summary { position: static; }
}

#armado-modal .modal-dialog { max-width: 1180px; width: calc(100% - 48px); margin: 24px auto; }
#armado-modal .modal-content { border: 0; border-radius: 20px; overflow: hidden; }
#armado-modal .quickview__close { top: 16px; right: 16px; width: 44px; height: 44px; z-index: 10; background: #f3f4f6; border-radius: 50%; }
#armado-modal .quickview { width: 100%; height: auto; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); padding: 28px; overflow-y: auto; overscroll-behavior: contain; }
#armado-modal .armado-selector-heading { padding-right: 48px; }
#armado-modal .armado-selector-heading h2 { font-size: 26px; line-height: 1.25; margin: 0 0 10px; }
#armado-modal .armado-selector-heading p { font-size: 14px; line-height: 1.6; color: var(--armado-muted); max-width: 680px; margin: 0 0 24px; }
#armado-modal .armado-selector-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 16px; padding: 16px; background: #f6f7f8; border: 1px solid var(--armado-border); border-radius: 12px; margin-bottom: 20px; }
#armado-modal .armado-selector-toolbar label { font-size: 12px; font-weight: 600; display: block; margin-bottom: 6px; }
#armado-modal .armado-selector-toolbar .form-control { width: 100%; max-width: none; min-width: 0; height: 46px; border: 1px solid #d7dbe0; border-radius: 8px; background: #fff; font-size: 16px; }
#armado-modal .armado-selector-toolbar > div { min-width: 0; }
#armado-modal .products-list__body { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; }
#armado-modal .products-list__body::before { display: none; }
#armado-modal .products-list__body .products-list__item { width: auto !important; min-width: 0; height: auto; margin: 0 !important; }
#armado-modal .product-card { width: 100%; height: 100%; min-width: 0; border: 1px solid var(--armado-border); border-radius: 14px; overflow: hidden; box-shadow: none; }
#armado-modal .product-card::before { border-radius: 14px; box-shadow: none; }
#armado-modal .itemArmarPc { cursor: pointer; }
#armado-modal .itemArmarPc:hover { border-color: var(--armado-accent); }
#armado-modal .armarPcSeleccionado { border: 2px solid var(--armado-accent); }
#armado-modal .product-card .product-card__image { position: relative; height: 160px; margin: 0 !important; flex-shrink: 0; }
#armado-modal .product-photo { height: 100%; }
#armado-modal .product-image__body { display: block; height: 100%; padding-bottom: 0; }
#armado-modal .product-image__img { top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; padding: 14px; }
#armado-modal .armado-product-actions { display: grid; grid-template-columns: minmax(0, 1fr) 46px; gap: 8px; width: 100%; }
#armado-modal .armado-product-actions .armado-product-pick { margin: 0; min-width: 0; white-space: normal; }
#armado-modal .armado-product-link { position: static; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 8px; border: 1px solid var(--armado-border); border-radius: 10px; background: #f6f7f8; color: #262b33; }
#armado-modal .armado-detail-label { display: none; }
#armado-modal .products-list .product-card .product-card__info { padding: 12px 16px 0; min-width: 0; }
#armado-modal .products-list .product-card .product-card__actions { padding: 12px 16px 16px; min-width: 0; }
#armado-modal .product-card__name h2,
#armado-modal .product-card__name h3 { font-size: 14px; line-height: 1.5; margin: 0; overflow-wrap: anywhere; }
#armado-modal .product-card__features-list { font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
#armado-modal .product-card__prices { font-size: 19px; line-height: 1.5; display: flex; flex-wrap: wrap; gap: 4px 8px; overflow-wrap: anywhere; }
#armado-modal .product-card__old-price { font-size: 13px; }
#armado-modal .armado-product-controls { display: flex; gap: 8px; width: 100%; margin-bottom: 12px; }
#armado-modal .armado-product-controls .input-number { width: auto; flex: 1; min-width: 0; }
#armado-modal .armado-product-controls .input-number__input { height: 44px; min-width: 0; padding: 0 20px; appearance: textfield; -moz-appearance: textfield; }
#armado-modal .armado-product-controls .input-number__input::-webkit-inner-spin-button,
#armado-modal .armado-product-controls .input-number__input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
#armado-modal .armado-product-controls .input-number__add,
#armado-modal .armado-product-controls .input-number__sub { width: 20px; }
#armado-modal .armado-product-controls__add { width: 44px; height: 44px; flex-shrink: 0; padding: 0; border-radius: 8px; background: var(--armado-accent); color: var(--armado-on-accent); border-color: var(--armado-accent); }

@media (max-width: 1199px) {
    .armado-page .armado-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; }
    .armado-page .armado-components-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #armado-modal .products-list__body { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
    .armado-page .armado-layout { grid-template-columns: minmax(0, 1fr); }
    .armado-page .armado-summary { position: static; }
    .armado-page .armado-components-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .armado-page .armado-intro { padding: 24px; gap: 24px; }
    .armado-page .armado-intro h2 { font-size: 26px; }
    .armado-page .armado-summary-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
}

@media (max-width: 767px) {
    .armado-page { padding-bottom: 100px; }
    .armado-page .armado-intro { grid-template-columns: minmax(0, 1fr); border-radius: 16px; padding: 24px 20px; margin-bottom: 28px; gap: 20px; }
    .armado-page .armado-intro h2 { font-size: 25px; }
    .armado-page .armado-intro p { font-size: 14px; }
    .armado-page .armado-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; font-size: 11px; }
    .armado-page .armado-steps li { flex-direction: column; align-items: flex-start; gap: 8px; }
    .armado-page .armado-components-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .armado-page .armado-section-heading { align-items: flex-start; }
    .armado-page .armado-section-heading h2 { font-size: 21px; }
    .armado-page .armado-summary-link { padding-top: 4px; font-size: 12px; }
    .armado-page #divArmaPc .block-features__item { min-height: 192px; padding: 18px 10px 14px; }
    .armado-page #divArmaPc .block-features__icon { width: 72px; height: 72px; margin-bottom: 14px; }
    .armado-page #divArmaPc .block-features__title { font-size: 14px; }
    .armado-page #card-arma { padding: 22px 20px; }
    .armado-page .armado-summary-items { display: block; }
    .armado-page .armado-mobile-summary { position: fixed; z-index: 100; left: 16px; right: 112px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; min-height: 54px; padding: 12px 16px; background: var(--armado-accent); color: var(--armado-on-accent); border-radius: 12px; box-shadow: 0 4px 20px rgba(0, 0, 0, .18); text-decoration: none; font-size: 12px; }
    .armado-page .armado-mobile-summary strong { font-size: 13px; }
    .armado-page:has(#divArmarSummary:focus-within) .armado-mobile-summary { display: none; }
    #armado-modal .modal-dialog { width: 100%; max-width: none; margin: 0; min-height: 100%; }
    #armado-modal .modal-content { border-radius: 0; min-height: 100vh; min-height: 100dvh; }
    #armado-modal .quickview { max-height: 100vh; max-height: 100dvh; padding: 24px 16px; }
    #armado-modal .quickview__close { right: 12px; top: 12px; }
    #armado-modal .armado-selector-heading h2 { font-size: 22px; }
    #armado-modal .armado-selector-heading p { font-size: 13px; }
    #armado-modal .armado-selector-toolbar { grid-template-columns: minmax(0, 1fr); padding: 12px; gap: 12px; }
    #armado-modal .products-list__body { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    #armado-modal .product-card .product-card__image { height: 124px; }
    #armado-modal .products-list .product-card .product-card__info { padding: 10px 12px 0; }
    #armado-modal .products-list .product-card .product-card__actions { padding: 10px 12px 12px; }
    #armado-modal .product-card__name h2,
    #armado-modal .product-card__name h3 { font-size: 13px; }
    #armado-modal .product-card__prices { font-size: 17px; }
    #armado-modal .armado-product-pick { font-size: 12px; padding: 8px; }
    #armado-modal .armado-product-actions { grid-template-columns: minmax(0, 1fr); }
    #armado-modal .armado-detail-label { display: inline; font-size: 12px; }
}

@media (max-width: 359px) {
    #armado-modal .products-list__body { grid-template-columns: minmax(0, 1fr); }
    .armado-page .armado-section-heading { flex-wrap: wrap; }
    .armado-page .armado-mobile-summary > span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .armado-page #divArmaPc .block-features__item { transition: none; }
}
