/* Diotima · diseño editorial de la tienda · 14 noviembre 2026.
   Se carga después de los estilos existentes y conserva el encabezado y pie originales. */
:root {
    --cream: #fbf7ef;
    --paper: #fffdf8;
    --paper-soft: #fbf6ea;
    --ink: #29231e;
    --muted: #716459;
    --wine: #b7470b;
    --orange: #d6692d;
    --accent-deep: #ba5120;
    --line: #ddcbb9;
    --shadow: 0 8px 24px rgba(91, 53, 28, .045);
    --font-body: "acumin-pro", "Acumin Pro", "Helvetica Neue", Arial, sans-serif;
    --font-display: "acumin-pro-extra-condensed", "Acumin Pro ExtraCondensed", "Arial Narrow", sans-serif;
}
body { background: var(--cream); font-family: var(--font-body); }
.page-title, .section-title, .title, .brand, .footer-contact h2 { font-family: var(--font-display); font-weight: 600; }
.page-title { color: var(--accent-deep); }
.panel, .card, .notice, .empty { border-radius: 12px; box-shadow: var(--shadow); }
.panel { padding: clamp(20px, 3vw, 32px); }
.field input, .field select, .field textarea { border-color: var(--line); border-radius: 6px; min-height: 46px; }
.field label { font-family: var(--font-body); text-transform: none; letter-spacing: .015em; font-size: .9rem; color: var(--ink); }
.button { border-radius: 7px; min-height: 46px; padding: 10px 22px; font: 600 1.45rem/1.15 var(--font-display); letter-spacing: .015em; text-transform: none; text-align: center; transition: background .15s ease, box-shadow .15s ease; }
.button.wine { background: var(--accent-deep); border-color: var(--accent-deep); }
.button.wine:hover { background: #9e4017; border-color: #9e4017; }
.button.secondary { border-color: var(--accent-deep); color: var(--accent-deep); background: transparent; }
.button.secondary:hover { background: #f5e8d8; }
.button[aria-busy="true"] { opacity: .7; cursor: wait; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--accent-deep); outline-offset: 3px; }
.diotima-header-shell .page-header { border-radius: 8px; }
/* Respeta las dos imágenes institucionales: horizontal y cuadrada. */
@media (max-width: 760px) {
    .page-header .brand-mark picture { display: block; aspect-ratio: 1 / 1; }
    .page-header .brand-mark img { width: 100%; height: 100% !important; aspect-ratio: 1 / 1 !important; object-fit: contain !important; }
}
.cart-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0 0 28px; }
.cart-heading .page-title { margin: 0; font-size: clamp(3.3rem, 6vw, 5rem); line-height: 1; }
.cart-heading .intro { margin: 6px 0 0; font-size: .92rem; }
.purchase-steps { flex: 0 0 auto; font: 500 1.5rem/1.4 var(--font-display); color: #81624e; }
.purchase-steps ol { display: flex; gap: 15px; list-style: none; padding: 0; margin: 0; }
.purchase-steps li { position: relative; padding: 10px 0; white-space: nowrap; }
.purchase-steps li + li::before { content: '·'; margin-right: 15px; color: #a88265; }
.purchase-steps li[aria-current="step"] { color: var(--accent-deep); font-weight: 700; }
.purchase-steps li[aria-current="step"]::after { content: ''; position: absolute; bottom: 0; right: 0; width: calc(100% - 19px); height: 3px; background: var(--accent-deep); }
.purchase-steps li:first-child[aria-current="step"]::after { width: 100%; }
.purchase-steps a { color: inherit; text-decoration: none; }
.purchase-steps a:hover { text-decoration: underline; }
.editorial-cart .shell { width: min(1180px, calc(100% - 28px)); padding: 38px 0 12px; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr); align-items: start; gap: 24px; }
.cart-products, .cart-aside { min-width: 0; display: grid; gap: 22px; }
.editorial-cart .items { gap: 18px; }
.editorial-cart .item { grid-template-columns: 132px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 26px; row-gap: 16px; padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 253, 248, .68); }
.editorial-cart .cover { grid-column: 1; grid-row: 1 / 3; width: 132px; max-width: 100%; max-height: 205px; height: auto; object-fit: contain; filter: drop-shadow(0 5px 5px rgba(50, 34, 22, .16)); align-self: center; }
.editorial-cart .item-copy { grid-column: 2; min-width: 0; align-self: end; }
.editorial-cart .title { font-size: clamp(1.7rem, 2.8vw, 2.25rem); line-height: 1.1; overflow-wrap: anywhere; }
.editorial-cart .author { margin: 7px 0 14px; color: var(--ink); font: 400 1rem/1.35 var(--font-body); }
.editorial-cart .price { color: var(--accent-deep); font: 600 1.8rem/1.1 var(--font-display); }
.editorial-cart .item-side { grid-column: 2; display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 12px; min-width: 0; }
.quantity-field label { display: block; color: var(--muted); font-size: .75rem; margin: 0 0 4px; }
.quantity-control { display: flex; align-items: stretch; border: 1px solid #bda18a; border-radius: 6px; width: max-content; max-width: 100%; overflow: hidden; background: var(--paper); }
.quantity-step { border: 0; background: transparent; color: #754326; font: 400 1.5rem/1 Arial, sans-serif; width: 38px; min-height: 42px; cursor: pointer; }
.quantity-step[hidden] { display: none; }
.quantity-step:hover { background: #f5e8d8; }
.quantity-step:disabled { color: #c2b7ad; cursor: default; }
.editorial-cart .qty { min-height: 42px; width: 48px; padding: 6px 2px; border: 0; background: transparent; color: var(--ink); text-align: center; font: 400 1rem var(--font-body); }
.js-cart-ready .editorial-cart .qty { appearance: textfield; -moz-appearance: textfield; }
.js-cart-ready .editorial-cart .qty::-webkit-inner-spin-button, .js-cart-ready .editorial-cart .qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.editorial-cart .subtotal { font-size: .85rem; font-weight: 500; line-height: 1.2; white-space: nowrap; }
.item-subtotal-label { color: var(--muted); font-size: .7rem; margin-right: 5px; }
.editorial-cart .remove { display: block; margin: 6px 0 0 auto; padding: 5px 0 5px 10px; min-height: 30px; text-decoration: underline; text-underline-offset: 3px; font: 400 .8rem var(--font-body); }
.cart-shipping-card, .cart-summary-card, .cart-payment-card { border: 1px solid var(--line); border-radius: 12px; padding: 24px 28px; background: rgba(255, 253, 248, .8); }
.cart-shipping-card h2, .cart-card-title, .cart-payment-card h2 { margin: 0 0 18px; font: 600 1.7rem/1.15 var(--font-display); }
.cart-shipping-card h2 { color: var(--accent-deep); display: flex; align-items: center; gap: 12px; font-size: 2rem; }
.cart-shipping-card h2 svg, .cart-contact-line svg { width: 30px; height: 30px; flex: 0 0 auto; }
.cart-estimator label { display: block; margin: 0 0 6px; font-size: .8rem; color: var(--muted); }
.cart-estimator select { width: 100%; min-height: 46px; border: 1px solid #bda18a; border-radius: 6px; background: #fffefa; color: var(--ink); font: 400 1rem var(--font-body); padding: 9px 32px 9px 12px; text-overflow: ellipsis; }
.cart-shipping-result { color: var(--accent-deep); margin: 10px 0 0; font-weight: 600; font-size: .9rem; }
.cart-shipping-result:empty { display: none; }
.editorial-cart .cart-shipping-promo { margin: 14px 0 6px; color: var(--ink); font: 600 .9rem/1.4 var(--font-body); }
.cart-shipping-note { margin: 6px 0 0; font-size: .8rem; line-height: 1.5; color: var(--muted); }
.cart-summary-card { background: #fffefa; }
.cart-summary-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 6px 0; font-size: 1.05rem; }
.cart-summary-row > :last-child { white-space: nowrap; }
.cart-shipping-value { color: var(--accent-deep); font-weight: 600; }
.cart-final-row { margin: 15px 0 20px; padding-top: 19px; border-top: 1px solid #bda18a; color: var(--accent-deep); font: 600 1.9rem/1.1 var(--font-display); }
.cart-final-row .total { font-size: 2.15rem; }
.cart-checkout-actions { display: grid; gap: 12px; margin: 0; }
.cart-checkout-actions .button { display: block; width: 100%; padding: 12px 10px; min-height: 50px; }
.js-cart-ready .cart-checkout-actions .manual-update { display: none; }
.cart-guest-note { margin: 14px 0 0; text-align: center; font-size: .8rem; color: var(--muted); }
.editorial-cart .cart-save-status { margin: 8px 0 0; text-align: center; font-family: var(--font-body); font-style: normal; font-size: .78rem; }
.cart-save-status:empty { min-height: 0; margin: 0; }
.cart-payment-card { padding-top: 20px; padding-bottom: 20px; }
.cart-payment-card h2 { font-size: 1.5rem; }
.cart-payment-methods { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cart-payment-method { display: flex; align-items: center; justify-content: center; gap: 9px; font-size: .88rem; line-height: 1.3; min-width: 0; }
.cart-payment-method + .cart-payment-method { border-left: 1px solid var(--line); padding-left: 16px; }
.cart-payment-method img { width: 125px; max-width: 100%; height: auto; max-height: 42px; object-fit: contain; }
.cart-payment-method svg { width: 31px; height: 31px; flex: 0 0 auto; color: var(--accent-deep); }
.cart-contact-line { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--accent-deep); padding: 19px 8px 8px; margin-top: 28px; font-size: 1rem; }
.cart-contact-line svg { color: var(--accent-deep); }
.cart-contact-line a { color: var(--accent-deep); text-underline-offset: 3px; margin-left: 4px; }
.editorial-cart .diotima-policies { margin: 15px 0 0; padding: 15px 8px 0; background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; gap: 16px; }
.editorial-cart .diotima-policies-heading p { font: 600 1.4rem/1.1 var(--font-display); margin-top: 4px; }
.editorial-cart .diotima-policies-links a { min-height: 42px; border-radius: 6px; font-size: .78rem; padding: 8px 12px; }
.cart-empty { text-align: center; padding: 45px 24px; }
.cart-empty > svg { width: 52px; height: 52px; color: var(--accent-deep); }
.cart-empty h2 { font: 600 2rem/1.1 var(--font-display); }
.cart-empty p { color: var(--muted); }
.editorial-checkout .shell { width: min(1040px, calc(100% - 28px)); padding-bottom: 24px; }
.editorial-checkout .top .brand { display: none; }
.editorial-checkout .top { padding-top: 0; padding-bottom: 14px; margin-bottom: 26px; }
.editorial-checkout .shell > .intro { max-width: 760px; margin-top: -10px; }
.editorial-checkout .shell > .panel + .panel { margin-top: 22px; }
.editorial-checkout .section-title { color: var(--accent-deep); font-size: 2rem; }
.editorial-checkout .andreani-notice { border-color: var(--line); background: var(--cream); }
.editorial-checkout .andreani-copy { font-size: 1rem; }
.editorial-checkout .phone-group legend { font-size: .95rem; }
.editorial-checkout .status-row { gap: 16px; }
.editorial-checkout .diotima-payment-options { max-width: none; }
.editorial-checkout .diotima-payment-option .payment-button { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: .01em; min-height: 60px; }
@media (min-width: 761px) and (max-width: 1000px) {
    .cart-layout { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; }
    .editorial-cart .item { grid-template-columns: 95px minmax(0, 1fr); padding: 20px; column-gap: 18px; }
    .editorial-cart .cover { width: 95px; }
    .cart-shipping-card, .cart-summary-card, .cart-payment-card { padding: 20px; }
    .cart-payment-methods { flex-wrap: wrap; }
    .cart-payment-method + .cart-payment-method { border: 0; padding: 0; }
}
@media (max-width: 760px) {
    .editorial-cart .shell { width: calc(100% - 20px); padding-top: 24px; }
    .cart-heading { flex-direction: column; align-items: start; gap: 8px; margin-bottom: 20px; }
    .cart-heading .page-title { font-size: 3.35rem; }
    .purchase-steps { font-size: 1.4rem; }
    .purchase-steps li { padding: 4px 0 8px; }
    .cart-layout { display: flex; flex-direction: column; gap: 16px; }
    .cart-products, .cart-aside { display: contents; }
    .cart-layout .items { order: 1; width: 100%; }
    .cart-summary-card { order: 2; width: 100%; }
    .cart-shipping-card { order: 3; width: 100%; }
    .cart-payment-card { order: 4; width: 100%; }
    .editorial-cart .item { grid-template-columns: 86px minmax(0, 1fr); gap: 12px 18px; padding: 20px; }
    .editorial-cart .cover { width: 86px; max-height: 140px; }
    .editorial-cart .title { font-size: 1.9rem; }
    .editorial-cart .author { font-size: .9rem; margin: 4px 0 10px; }
    .editorial-cart .price { font-size: 1.65rem; }
    .editorial-cart .item-side { gap: 8px; align-items: center; }
    .quantity-step { width: 34px; }
    .editorial-cart .qty { width: 38px; }
    .item-subtotal-label { display: none; }
    .editorial-cart .subtotal { white-space: normal; }
    .cart-shipping-card, .cart-summary-card, .cart-payment-card { padding: 20px; }
    .cart-card-title { font-size: 1.6rem; margin-bottom: 14px; }
    .cart-final-row { margin-top: 12px; }
    .cart-contact-line { padding: 18px 3px 7px; font-size: .92rem; margin-top: 24px; }
    .editorial-cart .diotima-policies { gap: 12px; }
    .editorial-cart .diotima-policies-links { gap: 8px; }
    .editorial-cart .diotima-policies-links a { flex: 1 1 150px; }
    .editorial-checkout .shell { width: calc(100% - 20px); padding-top: 20px; }
    .editorial-checkout .cart-heading .page-title { font-size: 3rem; }
}
@media (max-width: 370px) {
    .editorial-cart .item { padding: 16px; column-gap: 12px; grid-template-columns: 70px minmax(0, 1fr); }
    .editorial-cart .cover { width: 70px; }
    .editorial-cart .item-side { flex-direction: column; align-items: start; }
    .editorial-cart .subtotal { display: flex; align-items: center; gap: 8px; }
    .editorial-cart .remove { margin: 0; }
    .cart-payment-methods { gap: 10px; }
    .cart-payment-method { font-size: .78rem; }
    .cart-payment-method + .cart-payment-method { padding-left: 10px; }
    .cart-payment-method img { width: 105px; }
}
@media (prefers-reduced-motion: reduce) { .button { transition: none; } }
/* Los iconos conservan su tamaño aunque falte una hoja compartida del sitio. */
.diotima-header-shell .diotima-review-text { display: none; }
.diotima-header-shell .diotima-review-icon { flex: 0 0 20px; }
.editorial-cart .diotima-policies-links .diotima-policies-arrow { width: 16px; height: 16px; flex-basis: 16px; }
.editorial-cart .cover-placeholder { height: 180px; display: flex; align-items: center; justify-content: center; background: #f4ebde; border: 1px solid var(--line); border-radius: 5px; filter: none; color: #ae7f5e; }
.cover-placeholder svg { width: 40px; height: 40px; }
/* El listado puede incorporar otro medio de pago sin cambiar la tarjeta. */
.cart-payment-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
.cart-payment-method:nth-child(2n + 1) { border-left: 0; padding-left: 0; }
.cart-payment-method:only-child { grid-column: 1 / -1; justify-content: start; }

/* Marco común a todo el recorrido: carrito, datos, pago y confirmaciones. */
.purchase-frame {
    width: min(1180px, calc(100% - 28px));
    margin: 26px auto 0;
    padding: 30px;
    border: 4px solid var(--accent-deep);
    border-radius: 22px;
    background: var(--paper-soft);
}
.purchase-frame > .shell {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}
.diotima-footer-shell .site-footer {
    border-top: 0;
    margin-top: 0;
    padding-top: 30px;
}
/* El cálculo de envío forma parte del resumen, debajo del total. */
.cart-summary-card > .cart-shipping-card {
    margin: 0 0 22px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.cart-summary-card > .cart-shipping-card h2 {
    font-size: 1.65rem;
    gap: 9px;
    margin-bottom: 4px;
}
.cart-summary-card > .cart-shipping-card h2 svg { width: 25px; height: 25px; }
@media (max-width: 1000px) and (min-width: 761px) {
    .purchase-frame { padding: 22px; }
    .cart-layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
}
@media (max-width: 760px) {
    .purchase-frame {
        width: calc(100% - 20px);
        padding: 20px 14px;
        margin-top: 20px;
        border-radius: 18px;
    }
    .purchase-frame > .shell { width: 100%; padding: 0; }
    .purchase-frame .cart-summary-row { font-size: 1rem; }
    .purchase-frame .cart-final-row { font-size: 1.6rem; }
    .purchase-frame .cart-final-row .total { font-size: 1.9rem; }
    .purchase-frame .cart-contact-line { align-items: start; }
    .purchase-frame .cart-payment-methods { gap: 14px 10px; }
    .purchase-frame .cart-payment-method { font-size: .8rem; }
    .purchase-frame .cart-payment-method img { width: 110px; }
    .purchase-frame .cart-payment-method svg { width: 25px; height: 25px; }
}
@media (max-width: 370px) {
    .purchase-frame { padding: 18px 10px; }
    .purchase-frame .cart-summary-card,
    .purchase-frame .cart-payment-card { padding: 16px; }
    .purchase-frame .cart-summary-row { gap: 10px; }
    .purchase-frame .cart-final-row { font-size: 1.45rem; }
    .purchase-frame .cart-final-row .total { font-size: 1.65rem; }
    .purchase-frame .cart-payment-methods { grid-template-columns: 1fr; }
    .purchase-frame .cart-payment-method { justify-content: start; }
    .purchase-frame .cart-payment-method + .cart-payment-method { border-left: 0; padding-left: 0; }
    .purchase-frame .panel { padding: 16px; }
}

/* La ilustración ocupa solamente el hueco de la columna más corta.
   Su posición absoluta evita que ella misma altere la altura medida. */
.cart-layout { position: relative; }
.cart-michi { position: absolute; margin: 0; max-width: 100%; text-align: center; }
.cart-michi[hidden] { display: none; }
.cart-michi img { display: block; width: 100%; height: auto; object-fit: contain; }
.cart-michi figcaption { margin: 10px 0 0; color: var(--accent-deep); font: 600 1.6rem/1.15 var(--font-display); text-wrap: balance; }
@media (max-width: 760px) { .cart-michi { display: none !important; } }

/* Compatibilidad con la primera pantalla anterior: esas leyendas ya no se muestran. */
.editorial-cart #cart-form .cart-shipping-promo,
.editorial-cart #cart-form .cart-shipping-note,
.editorial-cart #cart-form .cart-estimator label { display: none !important; }

/* Checkout compacto: formulario y resumen en dos columnas en computadora. */
.checkout-layout { position: relative; }
.checkout-details { min-width: 0; }
.checkout-main, .checkout-side { min-width: 0; }
.checkout-main { display: grid; align-content: start; gap: 12px; }
.checkout-side { display: flex; flex-direction: column; gap: 12px; }
.editorial-checkout .checkout-main > .panel,
.editorial-checkout .checkout-review-card { margin: 0; padding: 16px; background: var(--paper); }
.editorial-checkout .checkout-details .section-title { margin: 0 0 8px; font-size: 1.65rem; line-height: 1.1; }
.editorial-checkout .checkout-details .grid-2 { gap: 8px 12px; }
.editorial-checkout .checkout-details .field { min-width: 0; margin-bottom: 0; }
.editorial-checkout .checkout-details .field label { margin: 0 0 3px; font-size: .78rem; line-height: 1.15; letter-spacing: 0; }
.editorial-checkout .checkout-details .field input,
.editorial-checkout .checkout-details .field select { min-height: 34px; height: 34px; padding: 5px 8px; font-size: .9rem; }
.editorial-checkout .checkout-details .phone-group { margin: 0; }
.editorial-checkout .checkout-details .phone-group legend { padding-bottom: 3px; font-size: .77rem; line-height: 1.25; }
.editorial-checkout .checkout-details .phone-grid { align-items: end; gap: 8px; grid-template-columns: minmax(0, .85fr) minmax(0, .85fr) minmax(0, 1.7fr); }
.editorial-checkout .checkout-details .phone-hint { margin: 3px 0 0; font-size: .7rem; line-height: 1.25; }
.editorial-checkout .checkout-details .andreani-notice { margin: 0 0 10px; }
.editorial-checkout .checkout-details .andreani-mark { width: 62px; padding: 5px; }
.editorial-checkout .checkout-details .andreani-mark img { width: 37px; margin-bottom: 2px; }
.editorial-checkout .checkout-details .andreani-mark span { font-size: .55rem; }
.editorial-checkout .checkout-details .andreani-copy { padding: 6px 9px; font-size: .8rem; line-height: 1.25; }
.editorial-checkout .checkout-details .diotima-address-extra { margin: 8px 0 0; padding: 5px 8px; }
.editorial-checkout .checkout-details .diotima-address-extra summary { padding: 2px 0; font-size: .76rem; line-height: 1.25; }
.editorial-checkout .checkout-details .diotima-address-extra[open] summary { margin-bottom: 8px; }
.editorial-checkout .checkout-details .actions { margin-top: 10px; gap: 8px; }
.editorial-checkout .checkout-details .button { min-height: 38px; padding: 7px 14px; font-size: 1.2rem; }
.editorial-checkout .checkout-details .status-row { padding: 7px 0; gap: 12px; font-size: .86rem; }
.editorial-checkout .checkout-details .small { font-size: .75rem; line-height: 1.35; }
.editorial-checkout .checkout-details .checkout-total { font-size: 1.1rem; }
.editorial-checkout .checkout-details .shipping-price { font-size: 1rem; white-space: nowrap; }
.editorial-checkout .checkout-shipping-section,
.editorial-checkout .checkout-payment-section { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.editorial-checkout .checkout-details .shipping-details { margin-top: 5px; padding-top: 8px; }
.editorial-checkout .checkout-details .shipping-details summary { font-size: .66rem; }
.editorial-checkout .checkout-details .shipping-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 8px 0; }
.editorial-checkout .checkout-details .shipping-summary > div { padding: 8px; }
.editorial-checkout .checkout-next-note { margin: 10px 0 0; font-size: .77rem; line-height: 1.35; color: var(--muted); }
.editorial-checkout .checkout-review-card > section > p { margin: 0 0 8px; font-size: .85rem; }
.editorial-checkout .checkout-details .diotima-payment-options { grid-template-columns: 1fr; gap: 12px; }
.editorial-checkout .checkout-details .diotima-payment-option .payment-button { min-height: 42px; font-size: 1.15rem; padding: 7px 10px; }
.editorial-checkout .checkout-details .payment-help { margin: 5px 0 0; font-size: .72rem; }
.checkout-reading { display: none; }
@media (min-width: 1000px) {
    .editorial-checkout .purchase-frame { padding: 22px; }
    .editorial-checkout .top { margin-bottom: 14px; padding-bottom: 10px; }
    .editorial-checkout .cart-heading { margin-bottom: 8px; }
    .editorial-checkout .cart-heading .page-title { font-size: clamp(2.5rem, 4vw, 3.2rem); }
    .editorial-checkout .shell > .intro { margin: 0 0 14px; font-size: .86rem; line-height: 1.3; }
    .checkout-details { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 14px; align-items: stretch; }
    .checkout-details > .notice, .checkout-details > .empty { grid-column: 1 / -1; }
    .checkout-reading { display: block; margin-top: auto; padding-top: 8px; align-self: flex-end; width: min(100%, 270px); pointer-events: none; }
    .checkout-reading img { display: block; width: 100%; height: auto; }
}
@media (max-width: 999px) {
    .checkout-details { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .checkout-details > .notice, .checkout-details > .empty { grid-column: 1; }
    .checkout-reading { display: none; }
}
@media (max-width: 760px) {
    .editorial-checkout .checkout-details .field input,
    .editorial-checkout .checkout-details .field select { min-height: 38px; height: 38px; font-size: 16px; }
    .editorial-checkout .checkout-details .button { min-height: 44px; }
}
@media (max-width: 560px) {
    .editorial-checkout .checkout-details .phone-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Cabecera de entrega: marca transparente e indicación en una sola línea. */
.checkout-address-card { container-type: inline-size; }
.checkout-delivery-heading { display: flex; align-items: center; gap: 7px; margin: 0 0 10px; padding: 0; border: 0; background: transparent; box-shadow: none; }
.checkout-delivery-heading img { display: block; flex: 0 0 28px; width: 28px; height: auto; max-height: 22px; object-fit: contain; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; filter: none; }
.checkout-delivery-heading span { display: block; min-width: 0; font: 600 clamp(8px, 3.7cqw, 24px)/1.15 var(--font-display); color: var(--ink); white-space: nowrap; }
@media (max-width: 560px) {
    .checkout-delivery-heading { gap: 5px; }
    .checkout-delivery-heading img { flex-basis: 24px; width: 24px; max-height: 18px; }
}

/* Ingreso de lectores: el mismo marco, crema y tipografía del checkout. */
.editorial-login .purchase-frame { padding: 22px; }
.editorial-login .shell { width: 100%; padding: 0; }
.login-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.login-top a { color: var(--accent-deep); font-size: .77rem; text-decoration: none; }
.login-top a:hover { text-decoration: underline; }
.login-heading { margin: 16px 0 14px; }
.editorial-login .page-title { margin: 0 0 6px; font-size: clamp(2.7rem, 4vw, 3.2rem); line-height: 1; }
.editorial-login .intro { margin: 0; font-size: .9rem; line-height: 1.35; }
.login-layout { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); align-items: stretch; gap: clamp(24px, 5vw, 70px); }
.editorial-login .login-panel { padding: 22px; background: var(--paper); }
.editorial-login .field { margin: 0 0 12px; }
.editorial-login .field label { margin: 0 0 3px; font-size: .8rem; line-height: 1.2; }
.editorial-login .field input { min-height: 38px; height: 38px; padding: 6px 10px; font-size: 1rem; }
.editorial-login .login-actions { display: block; margin: 4px 0 0; }
.editorial-login .login-actions .button { display: block; width: 100%; min-height: 42px; padding: 8px 16px; font-size: 1.35rem; }
.login-options { margin-top: 16px; font-size: .85rem; line-height: 1.4; }
.login-options p { margin: 0 0 8px; }
.login-options a { color: var(--accent-deep); text-underline-offset: 3px; }
.login-guest { display: inline-block; padding: 4px 0; }
.login-help { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: .8rem; line-height: 1.35; color: var(--muted); }
.login-help a { color: var(--accent-deep); text-underline-offset: 3px; }
.editorial-login .login-error { margin: 0 0 14px; padding: 12px; box-shadow: none; font-size: .85rem; }
.login-reading { display: flex; align-items: flex-end; justify-content: flex-end; min-width: 0; pointer-events: none; }
.login-reading img { display: block; width: min(100%, 340px); height: auto; }
@media (max-width: 760px) {
    .editorial-login .purchase-frame { padding: 20px 14px; }
    .login-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .editorial-login .login-panel { padding: 18px; }
    .editorial-login .field input { min-height: 42px; height: 42px; font-size: 16px; }
    .editorial-login .login-actions .button { min-height: 44px; }
    .login-reading { display: none; }
    .login-top a { font-size: .72rem; }
}

/* Pago: entrega y cobro a la izquierda; resumen y dibujo a la derecha. */
.editorial-checkout .checkout-details > .checkout-payment-section {
    margin: 0;
    padding: 16px;
    border: 1px solid var(--line);
    background: var(--paper);
}
.editorial-checkout .checkout-details > .checkout-payment-section > p { margin: 0 0 8px; font-size: .85rem; }
.checkout-order-section .status-row > :first-child { min-width: 0; }
.checkout-order-section .status-row > :last-child { flex-shrink: 0; white-space: nowrap; }
@media (min-width: 1000px) {
    .checkout-payment-ready .checkout-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .checkout-payment-ready .checkout-main,
    .checkout-details > .checkout-payment-section { grid-column: 1; }
    .checkout-payment-ready .checkout-side { grid-column: 2; grid-row: span 2; }
    .checkout-reading { width: 85%; align-self: flex-start; }
    .checkout-reading img { aspect-ratio: 2 / 1; height: auto; object-fit: cover; object-position: center 75%; }
}

/* Etiquetas de los formularios: naranja institucional, cursiva y peso normal. */
.purchase-frame .field label,
.purchase-frame .phone-group legend,
.purchase-frame .diotima-address-extra > summary {
    color: var(--accent-deep);
    font-style: italic;
    font-weight: 400;
}
.purchase-frame .field label strong,
.purchase-frame .phone-group legend strong {
    color: inherit;
    font-style: inherit;
    font-weight: 400;
}

/* Carrito vacío: mensaje a la izquierda y gatita en la segunda columna. */
.editorial-cart .cart-empty {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(24px, 4vw, 60px);
    padding: 26px 30px;
}
.cart-empty-copy { min-width: 0; text-align: right; }
.cart-empty-copy > svg { display: block; width: 42px; height: 42px; margin-left: auto; color: var(--accent-deep); }
.cart-empty-copy h2 { margin: 12px 0 8px; }
.cart-empty-copy p { margin: 0 0 14px auto; max-width: 430px; line-height: 1.45; }
.cart-empty-michi { width: min(100%, 360px); margin: 0; justify-self: center; text-align: center; }
.cart-empty-michi img { display: block; width: 100%; height: auto; }
.cart-empty-michi figcaption { margin: 8px 0 0; color: var(--muted); font: 400 .8rem/1.4 var(--font-body); }
@media (max-width: 760px) {
    .editorial-cart .cart-empty { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 24px 18px; }
    .cart-empty-copy { text-align: center; }
    .cart-empty-copy > svg { margin: 0 auto; }
    .cart-empty-copy p { margin-left: auto; margin-right: auto; }
    .cart-empty-michi { width: min(100%, 230px); }
    .cart-empty-michi figcaption { font-size: .75rem; }
}

/* La leyenda reemplaza los logos dentro de la misma caja de medios de pago.
   Conserva al menos la altura de la fila anterior para mantener el hueco de la gata. */
.editorial-cart .cart-payment-card .cart-payment-message {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 42px;
    margin: 0;
    color: var(--accent-deep);
    font: normal 600 1.9rem/1.1 var(--font-display);
}
.cart-payment-message > svg { width: 34px; height: 34px; flex: 0 0 auto; }
@media (max-width: 760px) {
    .editorial-cart .cart-payment-card .cart-payment-message { font-size: 1.6rem; }
}
@media (max-width: 370px) {
    .editorial-cart .cart-payment-card .cart-payment-message { font-size: 1.45rem; }
}
