/* Public shopping and booking: content first, light surfaces, clear actions. */
:root { color-scheme: light; }
.app-catalog, .public-booking { --action: #173c65; --ink-faint: #53627a; --accent-deep: #173c65; }
.app-catalog :focus-visible, .public-booking :focus-visible { outline: 3px solid #173c65; outline-offset: 4px; }
.app-catalog button, .public-booking button { touch-action: manipulation; }
.app-catalog h1, .app-catalog h2, .public-booking h1 { text-wrap: balance; }
.app-catalog .brand, .app-catalog .brand__name, .public-booking .booking-brand > div { min-width: 0; overflow-wrap: anywhere; }
.app-catalog .brand__name { font-size: 16px; line-height: 1.3; }
.app-catalog .cart-toggle { gap: 8px; background: #173c65; color: #fff; min-height: 44px; padding: 10px 16px; white-space: nowrap; }
.app-catalog .cart-toggle__count { position: static; background: #fff; color: #173c65; min-width: 24px; height: 24px; }
.app-catalog .store-info__panel { padding-top: 24px; padding-bottom: 32px; }
.app-catalog .ambient-icon { display: none; }
.app-catalog .store-info__name, .app-catalog h2 { font-family: var(--font-body); letter-spacing: -.04em; }
.app-catalog .store-info__desc { max-width: 65ch; font-size: 16px; }
.app-catalog .store-info__note { background: #f2f5f8; color: #33465c; border-radius: 10px; padding: 12px 16px; width: fit-content; }
.app-catalog .btn--primary { background: var(--action); color: #fff; }
.app-catalog .section--alt { background: #f5f7fa; }
.app-catalog #catalogo { scroll-margin-top: 90px; }
.app-catalog .catalog-toolbar { display: flex; flex-direction: column-reverse; align-items: stretch; gap: 20px; }
.app-catalog .search-field { width: 100%; max-width: 540px; }
.app-catalog .search-field label { display: block; color: #33465c; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.app-catalog .search-field > i { position: absolute; left: 16px; bottom: 17px; color: #53627a; }
.app-catalog .search-field input { height: 52px; padding-left: 44px; border: 1px solid #8a98aa; box-shadow: none; border-radius: 12px; }
.app-catalog .featured-track, .app-catalog .filter-tabs { width: 100%; max-width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; padding-bottom: 8px; }
.app-catalog .filter-tabs { gap: 8px; border: 0; }
.app-catalog .filter-tabs__btn { min-height: 44px; padding: 10px 18px; background: #fff; border: 1px solid #8a98aa; border-radius: 999px; color: #33465c; }
.app-catalog .filter-tabs__btn.is-active { background: #173c65; color: #fff; border-color: #173c65; }
.app-catalog .catalog-results { color: #53627a; font-size: 14px; margin: 16px 0 24px; }
.app-catalog .product-grid { gap: 24px; grid-template-columns: repeat(4,minmax(0,1fr)); }
.app-catalog .product-item { min-width: 0; background: #fff; border: 1px solid #e0e5ec; border-radius: 16px; overflow: hidden; }
.app-catalog .product-item__media { border-radius: 0; box-shadow: none; }
.app-catalog .product-item__body { padding: 16px; gap: 6px; overflow-wrap: anywhere; }
.app-catalog .product-item__name { font-family: var(--font-body); line-height: 1.4; }
.app-catalog .product-details { text-align: left; font-weight: 700; min-height: 44px; }
.app-catalog .product-details:hover { text-decoration: underline; }
.app-catalog .product-item__quick-add { width: auto; min-height: 44px; height: auto; padding: 10px 14px; gap: 7px; background: #173c65; color: #fff; font-size: 13px; font-weight: 700; }
.app-catalog .product-item__price { font-size: 18px; font-variant-numeric: tabular-nums; }
.app-catalog .empty-state { grid-column: 1 / -1; padding: 40px 20px; background: #fff; border-radius: 16px; }
.app-catalog .cart-drawer, .app-catalog .product-modal { overscroll-behavior: contain; }
.app-catalog .cart-drawer__footer { padding-bottom: max(20px,env(safe-area-inset-bottom)); }
.public-booking { background: #f5f7fa; }
.public-booking main.booking-wrap { overflow: visible; box-shadow: 0 12px 40px #17385908; border-radius: 20px; }
.public-booking .booking-intro { border-radius: 20px 0 0 0; background: #eef2f6; }
.public-booking .booking-panel { border-radius: 0 20px 20px 0; }
.public-booking .booking-kicker, .public-booking .service-option b { color: #173c65; }
.public-booking .booking-steps li { color: #46566a; background: #edf1f5; }
.public-booking .booking-steps li.active { background: #173c65; color: #fff; }
.public-booking .booking-steps li.done { background: #e4f0ea; color: #235438; }
.public-booking .service-option { border-color: #a8b4c3; transition: border-color .15s, background-color .15s; flex-wrap: wrap; }
.public-booking .service-option:hover { border-color: #173c65; background: #f5f8fc; }
.public-booking .service-option:has(input:checked) { border: 2px solid #173c65; padding: 16px 17px; background: #eef4fa; }
.public-booking .service-option input { flex-shrink: 0; accent-color: #173c65; }
.public-booking .service-option strong, .public-booking .booking-summary dd { overflow-wrap: anywhere; }
.public-booking .service-option b { font-variant-numeric: tabular-nums; }
.public-booking .booking-next { background: #173c65; border-color: #173c65; box-shadow: none; }
.public-booking .booking-next:hover { background: #102c4c; }
.public-booking .booking-field input, .public-booking .booking-field select, .public-booking .booking-field textarea { font-size: 16px; }
.public-booking .booking-month button, .public-booking .booking-days button { min-height: 44px; }
.public-booking .booking-month button { width: 44px; color: #173c65; }
.public-booking .booking-days button[aria-pressed=true], .public-booking .booking-time-slots button[aria-pressed=true] { background: #173c65; color: #fff; }
.public-booking .booking-time-slots button { color: #173c65; min-height: 44px; border-color: #8a98aa; }
.public-booking .booking-weekdays span { color: #53627a; }
.public-booking .booking-summary-dialog { overscroll-behavior: contain; }
.public-booking .booking-step legend:focus { outline-offset: 6px; }
/* A storefront with a quieter frame lets each business's products lead. */
.app-catalog { --action: #1d2925; --accent-deep: #1d2925; --ink: #202925; --ink-soft: #4d5d56; --ink-faint: #53645c; font-family: var(--font-body); }
.app-catalog .site-header { background: #fff; }
.app-catalog .site-header__bar { min-height: 72px; }
.app-catalog .brand__name { font-family: var(--font-body); font-weight: 700; }
.app-catalog .store-nav { margin-left: auto; }
.app-catalog .store-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; color: #273b32; font-size: 14px; font-weight: 600; }
.app-catalog .store-nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.app-catalog .cart-toggle { background: var(--action); }
.app-catalog .cart-toggle__count { color: var(--action); }
.app-catalog .store-info { background: #f5f6f2; }
.app-catalog .store-info__panel { padding-top: 32px; padding-bottom: 40px; }
.app-catalog .store-info__name { font-size: clamp(30px, 4vw, 48px); line-height: 1.1; }
.app-catalog .store-info__category { color: #506157; }
.app-catalog .store-info__note { background: #e7ece7; color: #30443a; border-left: 3px solid #4d6656; }
.app-catalog #store-whatsapp { background: #fff; color: #1d2925; border: 1px solid #a3b0a7; }
.app-catalog #store-ir-catalogo { background: #1d2925; color: #fff; }
.app-catalog #store-ir-catalogo { order: -1; }
.app-catalog .section--alt { background: #fff; }
.app-catalog .section { padding-block: clamp(40px, 5vw, 68px); }
.app-catalog .featured-track { scroll-snap-type: x proximity; }
.app-catalog .featured-track.has-overflow { mask-image: none; -webkit-mask-image: none; }
.app-catalog .featured-item { scroll-snap-align: start; }
.app-catalog .filter-tabs__btn.is-active { background: #1d2925; border-color: #1d2925; }
.app-catalog .product-item { border-color: #e2e8e2; border-radius: 8px; }
.app-catalog .product-item__media { background: #f3f5f1; }
.app-catalog .product-item__quick-add { background: #1d2925; border-radius: 7px; }
.app-catalog .product-item__quick-add:hover { background: #35483b; color: #fff; }
.app-catalog .product-item__price { color: #1d2925; }
.app-catalog .reveal { opacity: 1; transform: none; }
/* Sleek-inspired product presentation: generous imagery and quiet details. */
.app-catalog .section__head h2 { font-size: clamp(26px,3vw,38px); font-weight: 600; letter-spacing: -.045em; }
.app-catalog .featured-item { min-width: 0; }
.app-catalog .featured-item__media, .app-catalog .product-item__media { aspect-ratio: 4 / 5; border-radius: 16px; background: #f4f4f2; box-shadow: none; }
.app-catalog .featured-item__body { padding-top: 16px; }
.app-catalog .featured-item__name { font-family: var(--font-body); font-size: 16px; font-weight: 600; line-height: 1.4; }
.app-catalog .featured-item__price { font-size: 16px; color: #1d2925; }
.app-catalog .product-item { border: 0; border-radius: 0; background: transparent; overflow: visible; }
.app-catalog .product-item__body { padding: 14px 0 0; gap: 5px; }
.app-catalog .product-item__category, .app-catalog .featured-item__brand { color: #58645e; font-size: 12px; text-transform: none; letter-spacing: 0; font-weight: 500; }
.app-catalog .product-item__name { margin: 0; font-size: 16px; }
.app-catalog .product-details { min-height: 0; padding: 4px 0; }
.app-catalog .product-item__description { font-size: 13px; color: #506058; }
.app-catalog .product-item__unit { color: #58645e; }
.app-catalog .product-item__footer { padding-top: 8px; }
.app-catalog .product-item__price { font-size: 16px; }
.app-catalog .product-item__quick-add, .app-catalog .product-item__options { position: absolute; inset: auto 12px 12px; z-index: 2; width: calc(100% - 24px); min-height: 44px; padding: 10px 12px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #1d2925; border-radius: 8px; background: #fff; color: #1d2925; box-shadow: 0 2px 12px #1d292514; font-size: 13px; font-weight: 700; transition: color .2s ease, background-color .2s ease, transform .2s ease; }
.app-catalog .product-item__quick-add:hover, .app-catalog .product-item__options:hover { background: #1d2925; color: #fff; }
.app-catalog .product-item__quick-add:active, .app-catalog .product-item__options:active { transform: scale(.98); }
.app-catalog .product-item__badge { z-index: 3; }
.app-catalog .product-item__media .img-slot, .app-catalog .featured-item__media .img-slot { background: #f4f4f2; }
.app-catalog .product-item__media .img-slot__fallback, .app-catalog .featured-item__media .img-slot__fallback { background: #f1f2ef; color: #53645c; }
.app-catalog .img-slot__alternate { position: absolute; inset: 0; padding: 9%; opacity: 0; pointer-events: none; transition: opacity .35s ease, transform .45s ease; }
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  .app-catalog .product-item:hover .img-slot__alternate, .app-catalog .featured-item:hover .img-slot__alternate { opacity: 1; }
  .app-catalog .product-item:hover .product-item__media img, .app-catalog .featured-item:hover .featured-item__media img { transform: scale(1.04); }
  .app-catalog .product-item:hover .product-item__media, .app-catalog .featured-item:hover .featured-item__media { box-shadow: none; }
}
@media (prefers-reduced-motion:no-preference) {
  .app-catalog .product-item, .app-catalog .featured-item { animation: catalog-card-enter .4s ease-out both; }
  .app-catalog .product-item:nth-child(4n+2), .app-catalog .featured-item:nth-child(4n+2) { animation-delay: .04s; }
  .app-catalog .product-item:nth-child(4n+3), .app-catalog .featured-item:nth-child(4n+3) { animation-delay: .08s; }
  .app-catalog .product-item:nth-child(4n+4), .app-catalog .featured-item:nth-child(4n+4) { animation-delay: .12s; }
  @keyframes catalog-card-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
}
.app-catalog .site-footer { padding-block: 24px; background: #f5f6f2; }
.app-catalog .site-footer__grid { gap: 16px; grid-template-columns: repeat(3,minmax(0,1fr)); }
.app-catalog .site-footer h3 { font-family: var(--font-body); font-size: 13px; }
.app-catalog .site-footer p, .app-catalog .site-footer address { margin-top: 4px; font-size: 12px; line-height: 1.45; }
.app-catalog .site-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding-top: 14px; }
.app-catalog .site-footer__alamano { flex-shrink: 0; display: inline-flex; align-items: center; min-height: 44px; }
.app-catalog .site-footer__alamano img { width: 92px; height: auto; }
.public-booking .booking-mark { color: #173c65; }
.public-booking .booking-confirmation { width: min(440px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 32px; border: 0; border-radius: 20px; color: #17283c; text-align: center; box-shadow: 0 24px 70px #10243d42; overscroll-behavior: contain; }
.public-booking .booking-confirmation::backdrop { background: #10243db8; }
.public-booking .booking-confirmation__icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; background: #e3f2e9; color: #24603a; font-size: 22px; }
.public-booking .booking-confirmation h2 { margin: 0 0 10px; font-size: 24px; }
.public-booking .booking-confirmation p { color: #405469; line-height: 1.6; }
.public-booking .booking-confirmation__details { margin: 22px 0; padding: 4px 16px; border-radius: 12px; background: #f3f6f9; text-align: left; }
.public-booking .booking-confirmation__details div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; }
.public-booking .booking-confirmation__details div + div { border-top: 1px solid #dce4ed; }
.public-booking .booking-confirmation__details dt { color: #52677c; font-size: 13px; }
.public-booking .booking-confirmation__details dd { margin: 0; text-align: right; font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.public-booking .booking-confirmation button { width: 100%; min-height: 48px; border-radius: 10px; font-weight: 700; }
@media (prefers-reduced-motion: no-preference) {
  .public-booking .booking-step:not([hidden]) { animation: booking-step-enter .25s ease-out both; }
  .public-booking .booking-confirmation[open] { animation: booking-confirmation-enter .28s ease-out both; }
  @keyframes booking-step-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes booking-confirmation-enter { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
}
@media(min-width:761px) {
  .public-booking .booking-summary-open, .public-booking .booking-summary-close { display: none; }
  .public-booking .booking-summary-dialog[open] { position: static; grid-column: 1; grid-row: 2; width: 100%; max-width: 100%; max-height: none; margin: 0; padding: 0 24px 24px; background: #eef2f6; border-radius: 0 0 0 20px; }
  .public-booking .booking-summary-dialog .booking-summary { background: transparent; }
}
@media(max-width:960px) { .app-catalog .product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; } }
@media(max-width:760px) {
  .public-booking .booking-intro { border-radius: 20px 20px 0 0; }
  .public-booking .booking-panel { border-radius: 0; }
  .public-booking .booking-steps { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
  .public-booking .booking-steps li { font-size: 11px; padding: 8px 3px; }
  .public-booking .booking-summary-open { margin: 0 22px 24px; width: calc(100% - 44px); }
  .app-catalog .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .app-catalog .product-item__body { padding: 12px; }
  .app-catalog .product-item__name { font-size: 15px; }
  .app-catalog .brand__mark { display: none; }
  .app-catalog .store-nav { display: none; }
  .app-catalog .site-footer__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .app-catalog .site-footer__grid > div:first-child { grid-column: 1 / -1; }
}
@media(max-width:360px) { .app-catalog .product-grid { grid-template-columns: minmax(0,1fr); } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

/* Los controles principales conservan el color elegido por cada negocio. */
.app-catalog { --action: var(--catalog-action, #216fb7); --accent-deep: var(--catalog-action, #216fb7); }
.app-catalog :focus-visible { outline-color: var(--action); }
.app-catalog .cart-toggle, .app-catalog #store-ir-catalogo, .app-catalog .filter-tabs__btn.is-active { background: var(--action); border-color: var(--action); color: #fff; }
.app-catalog .cart-toggle__count, .app-catalog .product-item__price, .app-catalog .featured-item__price { color: var(--action); }
.app-catalog .store-info__note { border-left-color: var(--action); }
.app-catalog .product-item__quick-add, .app-catalog .product-item__options { border-color: var(--action); color: var(--action); }
.app-catalog .product-item__quick-add:hover, .app-catalog .product-item__options:hover { background: var(--action); color: #fff; }
.app-catalog .btn--primary:hover { background: var(--action); filter: brightness(.88); }
.public-booking .booking-kicker, .public-booking .service-option b, .public-booking .booking-mark, .public-booking .booking-month button, .public-booking .booking-time-slots button { color: var(--accent); }
.public-booking .booking-steps li.active, .public-booking .booking-next, .public-booking .booking-days button[aria-pressed=true], .public-booking .booking-time-slots button[aria-pressed=true] { background: var(--accent); border-color: var(--accent); color: #fff; }
.public-booking .booking-next:hover { background: var(--accent); filter: brightness(.88); }
.public-booking .service-option:hover, .public-booking .service-option:has(input:checked) { border-color: var(--accent); }
.public-booking .service-option input { accent-color: var(--accent); }
