/* Carta física → carta móvil. Loaded after the existing ordering components. */
:root {
    --ink: #fffdf9;
    --ink-soft: #fffdf9;
    --ink-lift: #f2ede7;
    --paper: #191919;
    --paper-dim: #49433e;
    --paper-mute: #635d57;
    --line: #e2dbd3;
    --line-strong: #bbb1a7;
    --mustard: #b93e1c;
    --mustard-deep: #963016;
    --flame: #b93e1c;
    --danger: #b52b22;
    --teal: #418393;
    --mauve: #955483;
    --max: 48rem;
}
body.santo-catalog { background: var(--ink); color-scheme: light; }
body.santo-catalog::before { display: none; }
.sc-cover { position: relative; overflow: hidden; background: var(--teal); border-bottom: 1px solid #1e5662; }
.sc-cover::before { content: ''; position: absolute; inset: 0; background: url('/images/catalog/can-ink.webp') no-repeat 75% 42%; background-size: 340px; opacity: .08; }
.sc-cover__inner { min-height: 220px; display: flex; align-items: center; padding: 22px 24px; }
.sc-cover__copy { position: relative; z-index: 1; width: 70%; }
.sc-cover__logo { display: block; width: 128px; height: auto; }
.sc-cover__tag { margin: 6px 0 12px; color: #fffdf9; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.sc-cover h1 { margin: 0; font: 52px/.95 var(--font-display); color: #fffdf9; letter-spacing: -.01em; text-transform: uppercase; }
.sc-cover__intro { margin: 8px 0 0; max-width: 210px; color: #fffdf9; font-size: 14px; line-height: 1.4; }
.sc-cover__art { position: absolute; right: 14px; bottom: -36px; width: 123px; height: auto; transform: rotate(9deg); }
.sc-toolbar { background: #fffdf9; backdrop-filter: none; border-bottom: 1px solid var(--line); }
.sc-toolbar__row { padding: 12px 20px 6px; }
.sc-toolbar__mark { width: 20px; height: 30px; }
.sc-toolbar__brand { gap: 9px; }
.sc-toolbar__name { font-family: var(--font-body); font-size: 14px; font-weight: 600; letter-spacing: 0; }
.sc-cart-btn { background: transparent; border: 1px solid var(--line); color: var(--paper); border-radius: 8px; }
.sc-cart-btn__badge { background: var(--flame); color: white; }
.sc-search { padding: 4px 20px 8px; }
.sc-search__label { display: block; font-size: 12px; font-weight: 500; color: var(--paper-dim); margin-bottom: 5px; }
.sc-search svg { left: 34px; top: auto; bottom: 23px; transform: none; color: var(--paper-mute); }
.sc-search input { min-height: 46px; border: 1px solid var(--line); border-radius: 8px; background: #f3eee8; padding-left: 40px; }
.sc-search input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px #41839326; }
.sc-cats { gap: 5px; padding: 0 20px 10px; scroll-padding-inline: 20px; }
.sc-cat { min-height: 44px; border: 0; border-radius: 6px; box-shadow: none; font: 500 14px var(--font-body); letter-spacing: 0; text-transform: none; color: var(--paper-dim); padding: 9px 13px; }
.sc-cat__mark { display: none; }
.sc-cat.is-active, .sc-cat--promo.is-active { background: #191919; color: #fffdf9; border: 0; }
.sc-cat--promo { color: var(--flame); }
.sc-menu { padding: 12px 20px 28px; }
.sc-service-note { margin: 0 0 24px; font-size: 13px; color: var(--paper-dim); }
.sc-section { position: relative; }
.sc-section + .sc-section { margin-top: 32px; }
.sc-section__title { gap: 10px; font-size: 36px; letter-spacing: .015em; margin-bottom: 8px; border-bottom: 2px solid #191919; padding-bottom: 8px; }
.sc-section__mark { width: 28px; height: 32px; filter: brightness(0); }
.sc-section__title::after { display: none; }
.sc-section__count { margin-left: auto; flex-shrink: 0; align-self: center; font: 12px var(--font-body); color: var(--paper-mute); letter-spacing: 0; text-transform: none; }
.sc-item { gap: 12px; padding: 18px 0; margin: 0; align-items: center; }
.sc-item:first-of-type { border-top: 0; }
.sc-item__name { font-size: 17px; line-height: 1.35; font-weight: 600; gap: 6px; }
.sc-item__desc { display: block; font-size: 16px; line-height: 1.45; margin-top: 4px; overflow: visible; }
.sc-item__price { font: 600 17px var(--font-body); letter-spacing: 0; color: var(--paper); margin-top: 8px; font-variant-numeric: tabular-nums; }
.sc-item__badge { font: 600 11px var(--font-body); letter-spacing: 0; background: #f7e4d2; color: #87310f; border: 0; box-shadow: none; border-radius: 4px; padding: 3px 6px; }
.sc-item__badge::after { display: none; }
.sc-item__thumb, .sc-item.is-in-cart .sc-item__thumb { width: 64px; height: 64px; border: 0; border-radius: 8px; box-shadow: none; }
.sc-item__count { background: #191919; color: white; box-shadow: none; border: 0; border-radius: 4px; }
.sc-item.is-in-cart { background: #f6eee5; border-bottom-color: var(--line); }
.sc-add { width: 48px; height: 48px; min-width: 48px; min-height: 48px; border: 1px solid #d2c6b9; border-radius: 8px; box-shadow: none; background: #f5e4d3; color: #191919; padding: 0; }
.sc-add__label { display: none; }
.sc-add__icon { display: block; font-family: var(--font-body); font-size: 24px; }
.sc-qty { gap: 3px; }
.sc-qty button { width: 44px; height: 44px; min-width: 44px; border-radius: 6px; box-shadow: none; }
.sc-qty span { min-width: 18px; }
.sc-repeat, .sc-repeat--ghost { border: 1px solid var(--line); border-radius: 8px; background: #f3eee8; box-shadow: none; }
.sc-repeat__label { font: 600 16px var(--font-body); text-transform: none; letter-spacing: 0; }
.sc-repeat__kicker { font-size: 12px; letter-spacing: .05em; }
.sc-repeat__sum { font-size: 14px; }
.sc-dock { background: #191919; color: #fffdf9; border: 0; border-radius: 10px; box-shadow: 0 6px 24px #0003; min-height: 60px; font-family: var(--font-body); text-transform: none; letter-spacing: 0; max-width: 46rem; margin-inline: auto; }
.sc-dock__count { background: #fffdf9; color: #191919; border-radius: 4px; }
.sc-dock__label, .sc-dock__total { font-size: 16px; font-weight: 600; }
body.has-cart { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
.sc-drawer { background: #fffdf9; box-shadow: 0 -10px 40px #0002; }
.sc-drawer__wings { display: none; }
.sc-drawer__seal, .sc-cart-empty__art, .sc-empty__art, .sc-foot__mark { filter: brightness(0); }
.sc-drawer__handle { height: 4px; border-radius: 99px; background: #c4bab0; box-shadow: none; }
.sc-cart-line__thumb { display: none; }
.sc-cart-line__price { font-size: 14px; }
.sc-checkout, .sc-pagar { box-shadow: none; border-radius: 8px; }
.sc-pedido-banner { background: #f1e7db; }
.sc-foot { border-top: 1px solid var(--line); background: #f3eee8; }
.sc-foot__credit { font-size: 13px; }
.sc-foot__credit a { color: var(--paper); }
.sc-foot__credit a:visited { color: #754167; }
button:focus-visible, a:focus-visible, [role='button']:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
    .sc-add:hover { background: #191919; color: white; border-color: #191919; }
    .sc-cat:hover { background: #eee7de; color: #191919; }
    .sc-cat.is-active:hover { background: #191919; color: white; }
}
@media (max-width: 359px) {
    .sc-cover__inner { padding-inline: 16px; }
    .sc-cover__art { right: -9px; width: 110px; }
    .sc-menu { padding-inline: 16px; }
    .sc-section__title { font-size: 30px; }
    .sc-item__name { font-size: 16px; }
}
@media (min-width: 768px) {
    .sc-cover__inner { min-height: 260px; padding: 28px 24px; }
    .sc-cover__logo { width: 155px; }
    .sc-cover h1 { font-size: 64px; }
    .sc-cover__art { width: 190px; right: 30px; bottom: -55px; }
    .sc-cover__intro { max-width: none; font-size: 16px; }
    .sc-menu { padding: 20px 24px 40px; }
    .sc-section__title { font-size: 42px; }
    .sc-dock:not([style*="display: none"]) { display: flex !important; }
}

/* Checkout uses the same restrained controls as the menu. */
.sc-confirm { border: 0; border-radius: 8px; box-shadow: none; font: 600 16px var(--font-body); text-transform: none; letter-spacing: 0; }
.sc-pay-way, .sc-pay-way.is-active { border-width: 1px; border-radius: 8px; box-shadow: none; }
.sc-pay-way__name { font: 600 16px var(--font-body); letter-spacing: 0; }
.sc-pay-way__sub, .sc-hint { font-size: 14px; line-height: 1.4; }
.sc-pay__label { font: 600 16px var(--font-body); letter-spacing: 0; text-transform: none; }
.sc-pay-way__name, .sc-pay-way__sub { overflow-wrap: anywhere; }

/* Alias para transferir: grande y copiable, es lo que el cliente pega en su banco. */
.sc-alias { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--ink-lift); }
.sc-alias__label { color: var(--paper-mute); font-size: 13px; }
.sc-alias__value { flex: 1; min-width: 0; overflow-wrap: anywhere; color: var(--paper); font: 600 18px var(--font-body); }
.sc-alias__copy { flex-shrink: 0; min-height: 40px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--mustard); color: var(--ink); font: 600 14px var(--font-body); cursor: pointer; touch-action: manipulation; }
.sc-alias__copy:hover { background: var(--mustard-deep); }

/* Cambiar el medio de pago después de confirmar: antes era un subrayado tenue. */
.sc-verificar--cambio {
    margin-top: 14px;
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid rgba(248, 225, 203, 0.55);
    border-radius: 8px;
    background: rgba(248, 225, 203, 0.1);
    color: var(--paper);
    font: 600 16px/1.3 var(--font-body);
    text-align: center;
    text-decoration: none;
}
.sc-verificar--cambio:hover:not(:disabled) {
    border-color: var(--mustard);
    background: rgba(221, 144, 56, 0.16);
    color: var(--mustard);
}

.sc-item__image-note { display: block; width: 64px; margin-top: 4px; text-align: center; color: var(--paper-mute); font-size: 11px; line-height: 1.2; }

/* Brand contrast, contained sheets and meaningful motion. */
.sc-drawer__seal { width: 76px; height: 42px; object-fit: contain; filter: none; }
.sc-done__halo { width: 72px; filter: brightness(0); opacity: .85; margin-bottom: 12px; }
.sc-done__hands { width: 42px; height: 62px; object-fit: contain; opacity: 1; margin: 0 0 16px; }
.sc-done { position: relative; min-height: 0; overflow-y: auto; overscroll-behavior: contain; justify-content: flex-start; padding: 22px 20px 28px; scrollbar-width: thin; }
.sc-done > * { flex-shrink: 0; }
.sc-done__close { position: absolute !important; top: 8px; right: 12px; border-radius: 8px; background: var(--ink); }
.sc-done__label { font-size: 12px; }
.sc-done__code { margin: 6px 0 12px; }
.sc-done__status-wrap { margin-bottom: 12px; }
.sc-done__text { font-size: 16px; }
.sc-cuenta { margin-top: 22px; }
.sc-pay { width: 100%; }
.sc-alias__copy { min-height: 44px; }
.sc-icon-btn { border-radius: 8px; }
.sc-cover__copy { animation: sc-carta-enter 500ms ease-out both; }
.sc-cover__art { animation: sc-art-enter 650ms ease-out both; }
.sc-section { animation: sc-carta-enter 260ms ease-out both; }
.sc-add, .sc-qty button, .sc-cat { transition: background 160ms ease, color 160ms ease, transform 160ms ease; }
.sc-add:active, .sc-qty button:active, .sc-cat:active { transform: scale(.94); }
.sc-done__status-dot.is-pendiente { animation: sc-status-breathe 2.4s ease-in-out infinite; }
.sc-dock { bottom: calc(16px + env(safe-area-inset-bottom)); }
@keyframes sc-carta-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes sc-art-enter { from { opacity: 0; transform: translateY(12px) rotate(5deg); } to { opacity: 1; transform: translateY(0) rotate(9deg); } }
@keyframes sc-status-breathe { 50% { box-shadow: 0 0 0 5px #19191912; } }
@media (max-width: 767px) {
    .sc-overlay { padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); }
    .sc-drawer { width: 100%; max-width: 480px; border: 1px solid var(--line); border-radius: 18px; max-height: min(88dvh, calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom))); padding-bottom: 0; }
    .sc-drawer__panel { min-height: 0; max-height: calc(88dvh - 32px); }
    .sc-drawer__head { padding: 12px 16px; }
    .sc-drawer__body { padding-inline: 16px; }
    .sc-drawer__foot { padding: 16px; }
    .sc-done { max-height: calc(88dvh - 32px); }
}
@media (prefers-reduced-motion: reduce) {
    .sc-cover__copy, .sc-cover__art, .sc-section, .sc-done__status-dot.is-pendiente { animation: none; }
    .sc-add, .sc-qty button, .sc-cat { transition: none; }
}
@media (max-width: 359px) {
    .sc-pay-ways, .sc-pay-ways[data-split="1"] { grid-template-columns: 1fr; }
    .sc-pay-way { flex-direction: row; align-items: center; gap: 8px; }
    .sc-pay-way__name { flex-shrink: 0; overflow-wrap: normal; font-size: 14px; }
    .sc-pay-way__sub { margin-left: auto; text-align: right; font-size: 13px; }
}

/* Acceso a la ficha de Google para dejar una opinión del local. */
.sc-opinion { display: flex; flex-direction: column; align-items: center; gap: 4px; box-sizing: border-box; width: 100%; max-width: 26rem; margin: 0 auto 28px; padding: 16px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--ink); color: var(--paper); font-family: var(--font-body); text-decoration: none; touch-action: manipulation; transition: border-color 160ms ease, transform 160ms ease; }
.sc-opinion:active { transform: scale(.98); }
.sc-opinion__stars { color: var(--flame); font-size: 22px; letter-spacing: 4px; line-height: 1; }
.sc-opinion__title { font-size: 17px; font-weight: 600; }
.sc-opinion__sub { font-size: 14px; color: var(--paper-dim); }
.sc-done .sc-verificar--cambio { box-sizing: border-box; }
@media (hover: hover) and (pointer: fine) {
    .sc-opinion:hover { border-color: var(--flame); }
}
@media (prefers-reduced-motion: reduce) {
    .sc-opinion { transition: none; }
}

/* Acceso a opinar en Google desde la barra fija, al lado del carrito. */
.sc-toolbar__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.sc-opinar-btn { display: inline-flex; align-items: center; gap: 6px; height: 2.75rem; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--paper); font: 600 14px var(--font-body); text-decoration: none; white-space: nowrap; touch-action: manipulation; transition: border-color 160ms ease, transform 160ms ease; }
.sc-opinar-btn svg { width: 18px; height: 18px; color: var(--flame); flex-shrink: 0; }
.sc-opinar-btn:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) {
    .sc-opinar-btn:hover { border-color: var(--flame); }
}
@media (max-width: 359px) {
    .sc-opinar-btn { width: 2.75rem; padding: 0; justify-content: center; }
    .sc-opinar-btn__label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .sc-opinar-btn { transition: none; }
}
