@font-face { font-family: Manrope; src: url("fonts/manrope-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: Fraunces; src: url("fonts/fraunces-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --primary: #18344A; --accent: #C44218; --bg: #F5F7F8; --surface: #fff;
  --text: #111D26; --text-muted: #596A77; --border: #D9E0E6;
  --danger: #A62222; --success: #176337; --radius: 14px;
  --font-ui: Manrope, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-ui); font-size: 14px; line-height: 1.5; padding-bottom: 88px; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: not-allowed; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, h4, p { margin: 0; }
button, .demo-switch a { min-height: 44px; }
.demo-bar { background: var(--primary); color: #fff; min-height: 42px; padding: 0 max(24px, calc((100vw - 1340px)/2)); display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 11px; }
.demo-switch { display: flex; align-items: center; gap: 10px; }
.demo-switch span { opacity: .8; }
.demo-switch a { display: inline-flex; align-items: center; justify-content: center; padding: 0 8px; text-underline-offset: 5px; font-weight: 800; }
.demo-switch a[aria-current] { text-decoration-thickness: 2px; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); padding: 27px 24px 24px; }
.header-inner { max-width: 1340px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand-line { display: flex; align-items: center; gap: 14px; }
.brand-mark { background: var(--accent); color: #fff; width: 46px; height: 46px; border-radius: 50%; font: 800 27px/46px var(--font-ui); text-align: center; letter-spacing: -2px; }
.brand-title { color: var(--primary); font: 800 48px/.98 var(--font-ui); text-transform: uppercase; letter-spacing: -2.6px; }
body[data-brand-style="serif"] .brand-title { font: 600 49px/1 Fraunces, Georgia, serif; text-transform: none; letter-spacing: -2px; }
.brand-tagline { margin: 11px 0 5px 60px; font-weight: 600; font-size: 13px; }
.brand-address { color: var(--text-muted); font-size: 11px; display: inline; margin-left: 60px; }
.link-btn { border: 0; background: transparent; color: var(--accent); font-size: 11px; font-weight: 800; padding: 0 10px; text-decoration: underline; text-underline-offset: 3px; }
.status-badge { background: var(--bg); border: 1px solid var(--border); border-radius: 30px; padding: 9px 13px; font-size: 11px; white-space: nowrap; color: var(--primary); }
.status-badge::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: middle; }
.status-closed { color: var(--danger); }
.layout-container { max-width: 1388px; margin: auto; padding: 32px 24px; display: grid; gap: 24px; align-items: start; }
.category-nav { min-width: 0; background: var(--bg); position: sticky; top: 0; z-index: 5; padding: 10px 0 6px; }
.search-box { position: relative; }
.search-box::before { content: "⌕"; position: absolute; top: 4px; left: 12px; font: 28px/1.2 system-ui; color: var(--text-muted); pointer-events: none; }
.search-box input { min-height: 46px; width: 100%; padding: 10px 12px 10px 37px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); font-size: 12px; }
.nav-caption { display: none; color: var(--text-muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.category-list { display: flex; overflow-x: auto; gap: 7px; padding: 10px 2px 4px; scrollbar-width: thin; }
.category-btn { border: 1px solid var(--border); border-radius: 30px; padding: 9px 17px; background: var(--surface); color: var(--text-muted); font-size: 12px; font-weight: 700; white-space: nowrap; }
.category-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.catalog-main, .catalog-section, .catalog-grid, .product-info { min-width: 0; }
.catalog-heading { display: flex; justify-content: space-between; align-items: flex-end; margin: 0 0 21px; gap: 16px; }
.eyebrow { font-size: 10px; font-weight: 700; color: var(--text-muted); margin-bottom: 4px; }
.catalog-heading h2 { font-size: 29px; line-height: 1.2; color: var(--primary); letter-spacing: -1px; font-weight: 800; }
.catalog-count { color: var(--text-muted); font-size: 11px; white-space: nowrap; padding-bottom: 4px; }
.catalog-grid { display: flex; flex-direction: column; gap: 30px; }
.category-products { display: grid; grid-template-columns: 1fr; gap: 14px; }
.category-heading { font-size: 17px; color: var(--primary); margin-bottom: 12px; }
.product-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: flex; justify-content: space-between; gap: 14px; overflow: hidden; }
.product-foot button::after { content: ""; position: absolute; inset: 0; z-index: 1; cursor: pointer; }
.product-card:has(button:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.service-strip { background: var(--surface); border-bottom: 1px solid var(--border); }
.service-inner { max-width: 1388px; margin: auto; padding: 14px 24px; display: flex; align-items: center; gap: 28px; }
.service-inner .mode-group { margin: 0; min-width: 310px; }
.service-inner .mode-options .radio-label { font-size: 12px; padding: 9px 12px; }
.service-inner .radio-label:has(input:checked) { border-color: var(--primary); background: var(--bg); }
.service-detail { font-size: 11px; color: var(--text-muted); }
.service-inner .single-mode-note { color: var(--primary); font-weight: 800; }
.cart-service { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; color: var(--primary); font-size: 12px; }
.product-info { flex: 1; display: flex; flex-direction: column; }
.product-name { color: var(--primary); font-size: 15px; font-weight: 800; line-height: 1.35; letter-spacing: -.25px; }
.product-desc { color: var(--text-muted); font-size: 11px; line-height: 1.65; margin: 7px 0 14px; flex: 1; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.product-price { font-size: 13px; color: var(--primary); font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.product-thumb { width: 108px; height: 118px; flex: 0 0 auto; position: relative; background: var(--bg); border-radius: 9px; overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; }
.img-fallback { width: 100%; height: 100%; background: var(--bg); color: var(--text-muted); display: grid; place-items: center; font-size: 11px; }
.btn { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 10px 16px; border-radius: 9px; border: 1px solid transparent; font-size: 12px; font-weight: 800; }
.btn-primary { background: var(--accent); color: #fff; }
.product-foot .btn-primary { background: var(--surface); color: var(--accent); border-color: var(--border); padding: 8px 12px; }
.btn-secondary { background: var(--surface); color: var(--primary); border-color: var(--border); }
.btn:disabled { background: var(--bg); color: var(--text-muted); border-color: var(--border); }
.badge-soldout { padding: 6px 9px; border-radius: 6px; background: var(--bg); color: var(--text-muted); font-size: 10px; font-weight: 800; }
.product-card:has(.badge-soldout) .product-thumb { opacity: .5; }
.desktop-cart-sidebar { display: none; }
.cart-box { padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.cart-title { color: var(--primary); font-size: 20px; font-weight: 800; display: flex; justify-content: space-between; align-items: center; margin: 0 0 20px; letter-spacing: -.5px; }
.cart-title span { color: var(--accent); }
.cart-empty { text-align: center; color: var(--text-muted); padding: 36px 0 44px; font-size: 12px; }
.empty-bag { width: 56px; height: 56px; display: grid; place-items: center; margin: 0 auto 15px; background: var(--bg); color: var(--primary); border-radius: 17px; font-size: 26px; }
.cart-empty strong { display: block; font-size: 13px; color: var(--primary); margin-bottom: 8px; }
.cart-box.is-empty .cart-totals, .cart-box.is-empty .order-form { display: none; }
.cart-item { padding: 16px 0; border-bottom: 1px solid var(--border); }
.cart-item-header { display: flex; gap: 12px; justify-content: space-between; font-size: 12px; }
.cart-item-header strong { white-space: nowrap; font-variant-numeric: tabular-nums; }
.cart-item-title { font-weight: 800; }
.cart-item-details { font-size: 10px; color: var(--text-muted); margin: 6px 0; overflow-wrap: anywhere; }
.cart-item-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px; margin-top: 5px; }
.btn-link-edit, .btn-remove { border: none; padding: 5px; background: transparent; font-size: 10px; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.btn-remove { color: var(--text-muted); }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 8px; flex-shrink: 0; }
.btn-qty { width: 44px; height: 44px; border: 0; background: transparent; font-size: 20px; }
.qty-value { min-width: 22px; text-align: center; font-size: 12px; font-weight: 800; }
.cart-totals { margin: 18px 0; }
.totals-row { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; color: var(--text-muted); margin-bottom: 8px; }
.totals-row strong { color: var(--primary); white-space: nowrap; }
.totals-total { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 13px; color: var(--primary); }
.form-group { margin: 0 0 14px; }
.form-label { display: block; color: var(--primary); font-size: 11px; font-weight: 800; margin-bottom: 7px; }
.form-input { width: 100%; min-height: 44px; padding: 11px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); font-size: 12px; resize: vertical; }
.mode-group { border: none; padding: 0; min-width: 0; }
.mode-options { display: flex; gap: 8px; }
.mode-options .radio-label { flex: 1; border: 1px solid var(--border); border-radius: 8px; padding: 8px; font-size: 10px; line-height: 1.4; }
.radio-label { display: flex; align-items: center; min-height: 44px; gap: 8px; font-size: 12px; cursor: pointer; }
.radio-label input { accent-color: var(--accent); width: 16px; height: 16px; flex-shrink: 0; }
.radio-label:has(input:checked) { color: var(--primary); }
.single-mode-note { font-size: 11px; color: var(--text-muted); }
.single-mode-note:empty { display: none; }
.cart-actions { display: flex; flex-direction: column; gap: 10px; }
.whatsapp-disclaimer { font-size: 10px; line-height: 1.6; color: var(--text-muted); }
.demo-order-note { padding: 10px; background: var(--bg); color: var(--text-muted); font-size: 10px; border-radius: 6px; }
.demo-order-note:empty { display: none; }
.cart-feedback { min-height: 18px; font-size: 11px; font-weight: 700; }
.mobile-cart-bar { position: fixed; z-index: 10; bottom: 12px; left: 12px; right: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; background: var(--primary); color: #fff; border-radius: 13px; box-shadow: 0 6px 20px #142d4020; margin-bottom: env(safe-area-inset-bottom); }
.mobile-bar-info { display: flex; flex-direction: column; gap: 1px; }
.mobile-badge { font-size: 10px; }
.mobile-total { font-size: 18px; font-weight: 800; }
.mobile-cart-bar .btn { background: #fff; color: var(--primary); min-width: 122px; }
.app-dialog { margin: auto; border: 1px solid var(--border); padding: 0; width: min(520px, calc(100vw - 32px)); max-height: min(90dvh, 850px); border-radius: 18px; background: var(--surface); color: var(--text); box-shadow: 0 25px 80px #10233330; }
.app-dialog::backdrop { background: #142b4070; backdrop-filter: blur(3px); }
.dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 20px; border-bottom: 1px solid var(--border); }
.dialog-title, #copy-title { font-size: 18px; color: var(--primary); letter-spacing: -.5px; }
.btn-close-dialog { display: grid; place-items: center; width: 44px; height: 44px; min-width: 44px; border: 1px solid var(--border); border-radius: 50%; background: transparent; font-size: 25px; }
.dialog-body { padding: 20px; max-height: calc(88dvh - 165px); overflow-y: auto; overscroll-behavior: contain; }
.dialog-footer { padding: 14px 20px; border-top: 1px solid var(--border); }
.dialog-footer .btn { width: 100%; }
.product-feedback { color: var(--danger); font-size: 11px; margin-bottom: 8px; }
.product-feedback:empty { display: none; }
.dlg-img-container { height: 200px; overflow: hidden; border-radius: 10px; background: var(--bg); margin-bottom: 15px; }
.dlg-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dlg-desc { color: var(--text-muted); font-size: 12px; margin-bottom: 20px; }
.qty-and-total { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 10px; }
.dlg-total-label { display: block; font-size: 10px; color: var(--text-muted); }
.dlg-total-price { font-size: 23px; color: var(--primary); font-weight: 800; }
.sched-list { list-style: none; margin: 18px 0; padding: 0; }
.sched-list li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border); padding: 10px 0; font-size: 11px; }
.sched-summary, .sched-exceptions { color: var(--text-muted); font-size: 11px; line-height: 1.7; }
.mobile-cart-body { max-height: calc(90dvh - 85px); padding: 0; }
.mobile-cart-body .cart-box { border: none; border-radius: 0; }
.mobile-cart-body .cart-title { display: none; }
.no-results { text-align: center; background: var(--surface); padding: 45px 20px; border: 1px dashed var(--border); border-radius: var(--radius); }
.no-results h3 { font-size: 18px; color: var(--primary); }
.no-results p { font-size: 12px; color: var(--text-muted); margin: 10px 0 18px; }
.live-feedback { position: fixed; z-index: 30; pointer-events: none; bottom: 106px; left: 50%; transform: translateX(-50%) translateY(6px); opacity: 0; background: var(--primary); color: #fff; border-radius: 30px; padding: 12px 20px; font-size: 12px; width: max-content; max-width: calc(100vw - 32px); text-align: center; transition: opacity 160ms, transform 160ms; }
.live-feedback.visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.site-footer { max-width: 1340px; margin: 10px auto 0; padding: 24px; display: flex; justify-content: space-between; gap: 12px; color: var(--text-muted); font-size: 10px; border-top: 1px solid var(--border); }
.fatal-error { background: var(--danger); color: #fff; padding: 24px; font-weight: 700; }
@media (hover: hover) {
  .btn-primary:hover:not(:disabled) { filter: brightness(.94); }
  .product-foot .btn:hover, .category-btn:hover:not(.active) { border-color: var(--accent); color: var(--accent); }
}
@media (min-width: 768px) {
  .category-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .product-card { flex-direction: column-reverse; padding: 0; gap: 0; }
  .product-info { padding: 18px; }
  .product-thumb { width: 100%; height: 188px; border-radius: 0; }
  .product-name { font-size: 16px; }
  .product-desc { min-height: 37px; margin-bottom: 18px; }
}
@media (min-width: 1200px) {
  body { padding-bottom: 0; }
  .layout-container { grid-template-columns: 174px minmax(0, 1fr) 310px; gap: 28px; }
  .category-nav { top: 24px; padding: 0; }
  .nav-caption { display: block; margin: 27px 0 10px; }
  .category-list { flex-direction: column; overflow: visible; gap: 4px; padding: 0; }
  .category-btn { text-align: left; border: 0; border-radius: 8px; padding: 12px 14px; background: transparent; }
  .category-btn.active { background: var(--primary); }
  .desktop-cart-sidebar { display: block; position: sticky; top: 24px; max-height: calc(100dvh - 48px); overflow-y: auto; scrollbar-width: thin; }
  .mobile-cart-bar { display: none; }
  .live-feedback { bottom: 30px; }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .site-header { padding: 18px 24px 10px; }
  .service-inner { padding: 10px 24px; }
  .layout-container { padding-top: 16px; gap: 12px; }
  .category-nav { padding: 0; }
  .catalog-heading .eyebrow { display: none; }
  .catalog-heading { margin-bottom: 12px; }
}
@media (max-width: 767px) {
  .demo-bar { padding: 5px 16px; font-size: 9px; flex-wrap: wrap; gap: 0; }
  .demo-switch { gap: 6px; }
  .demo-switch a { min-height: 44px; min-width: 44px; padding: 0 4px; }
  .demo-switch span { display: none; }
  .site-header { padding: 16px 16px 8px; }
  .service-inner { display: block; padding: 8px 16px; }
  .service-inner .mode-group { min-width: 0; }
  .service-inner .form-label { margin-bottom: 5px; }
  .service-inner .mode-options .radio-label { font-size: 11px; padding: 8px; }
  .service-detail { margin-top: 5px; font-size: 10px; }
  .header-inner { position: relative; display: block; }
  .brand-line { gap: 10px; }
  .brand-mark { width: 35px; height: 35px; font-size: 22px; line-height: 35px; }
  .brand-title { font-size: 40px; letter-spacing: -2px; }
  body[data-brand-style="serif"] .brand-title { font-size: 42px; }
  .brand-tagline { margin: 8px 0 4px; font-size: 12px; }
  .brand-address { display: block; font-size: 10px; margin: 0; }
  .link-btn { font-size: 10px; padding: 0; }
  .status-badge { position: absolute; right: 0; top: 7px; font-size: 9px; padding: 6px 8px; }
  .layout-container { padding: 0 16px 24px; gap: 10px; }
  .category-nav { padding-top: 10px; padding-bottom: 0; }
  .catalog-heading .eyebrow { display: none; }
  .catalog-heading { margin-bottom: 12px; }
  .catalog-heading h2 { font-size: 25px; }
  .product-card { padding: 13px; gap: 13px; }
  .product-name { font-size: 14px; }
  .product-desc { font-size: 12px; margin-bottom: 10px; }
  .product-price { font-size: 13px; }
  .search-box input, .form-input { font-size: 16px; }
  .product-foot .btn { font-size: 10px; padding: 6px 10px; }
  .product-thumb { width: 96px; height: 122px; }
  .product-foot { gap: 5px; }
  .site-footer { margin: 0 16px; padding: 20px 0; flex-direction: column; gap: 5px; }
  .app-dialog { width: calc(100vw - 16px); max-height: 94dvh; border-radius: 18px; }
  .dialog-body { max-height: calc(94dvh - 172px); padding: 18px; }
  .mobile-cart-body { max-height: calc(94dvh - 88px); padding: 0; }
  .dlg-img-container { height: 150px; }
}
@media (max-width: 350px) {
  .brand-title { font-size: 34px; }
  .status-badge { font-size: 8px; right: 0; }
  .brand-mark { display: none; }
  .product-thumb { width: 82px; height: 112px; }
  .product-card { padding: 11px; gap: 10px; }
  .mobile-cart-bar .btn { min-width: 108px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Movimiento propuesto por Antigravity e integrado con los temas de la plantilla. */
.product-card { transition: transform 220ms cubic-bezier(.2,.8,.2,1), box-shadow 220ms ease; }
.product-thumb img { transition: transform 350ms cubic-bezier(.16,1,.3,1); }
.btn, .category-btn, .mode-options .radio-label {
  transition: transform 150ms ease, background-color 200ms ease, border-color 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active:not(:disabled), .category-btn:active { transform: scale(.97); }
/* El botón extendido debe conservar como referencia el tamaño de la tarjeta. */
.product-foot .btn:active:not(:disabled) { transform: none; background: var(--bg); }
.product-foot .btn:hover:not(:disabled) { filter: none; }
.app-dialog[open] { animation: menu-dialog-in 220ms cubic-bezier(.16,1,.3,1); }
.app-dialog[open]::backdrop { animation: menu-backdrop-in 220ms ease; }
.brand-mark { animation: menu-brand-in 380ms cubic-bezier(.16,1,.3,1); }
#mobile-cart-count, #mobile-cart-total, #cart-total { display: inline-block; }
@media (hover: hover) and (pointer: fine) {
  .product-card:has(button):hover { transform: translateY(-3px); box-shadow: 0 10px 24px -6px #142d4026; border-color: var(--accent); }
  .product-card:has(button):hover .product-thumb img { transform: scale(1.04); }
}
@keyframes menu-dialog-in {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes menu-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes menu-brand-in {
  from { opacity: 0; transform: scale(.85) rotate(-8deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}
@media (prefers-reduced-motion: reduce) {
  .product-card:hover, .product-thumb img, .btn:active, .category-btn:active { transform: none !important; }
  .app-dialog::backdrop { animation: none !important; transition: none !important; }
}

