/* Apaxco Sabe V14 · Fichas comerciales con fotografía y horarios */
body[data-app-mode="directory"] .business-card { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
body[data-app-mode="directory"] #business-results .business-card { content-visibility: auto; contain-intrinsic-size: 280px; }
body[data-app-mode="directory"] .business-load-more { display: grid; justify-items: center; gap: 10px; padding: 22px 16px 8px; color: #60738d; font-size: .78rem; font-weight: 700; }
body[data-app-mode="directory"] .business-load-more .directory-primary-button { min-width: min(100%, 240px); }
body[data-app-mode="directory"] #business-results[aria-busy="true"] { cursor: progress; }
body[data-app-mode="directory"] .business-card:hover { transform: translateY(-2px); box-shadow: 0 16px 42px rgba(19,63,121,.1); }
body[data-app-mode="directory"] .business-card-visual.has-photo { padding: 0; background: #e9f2f8; }
body[data-app-mode="directory"] .business-card-visual.has-photo img { display: block; width: 100%; height: 100%; min-height: 125px; object-fit: cover; }
.business-card-hours { margin: 8px 0 0; font-size: .73rem; font-weight: 700; color: #566982; }
.business-card-hours.open { color: #087b62; }
.business-card-hours.closed { color: #a04f26; }
body[data-app-mode="directory"] .business-dialog { width: min(850px, calc(100% - 24px)); max-height: min(94vh, 1000px); overflow-y: auto; scrollbar-width: thin; border-radius: 24px; }
body[data-app-mode="directory"] .business-dialog .dialog-header.v14-dialog-heading { padding: 14px 24px; background: #fff; position: sticky; top: 0; z-index: 8; }
.v14-dialog-heading h2 { margin: 2px 0 0; font-size: 1.05rem; }
.v14-cover { position: relative; height: clamp(210px, 31vw, 325px); display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 84% 6%, #d4ecff, transparent 48%), linear-gradient(145deg,#e3efff,#e5f9f4); }
.v14-cover.with-image { background: #dee7ec; }
.v14-cover img { width: 100%; height: 100%; display: block; object-fit: cover; }
.v14-cover-fallback { display: grid; gap: 8px; place-items: center; color: #37649b; }
.v14-cover-fallback span { display: grid; width: 110px; height: 110px; place-items: center; border-radius: 27px; color: #1c5aa6; background: rgba(255,255,255,.82); font-size: 3.2rem; box-shadow: 0 12px 30px rgba(22,73,146,.08); }
.v14-cover-fallback small { font-size: .79rem; font-weight: 700; }
.v30-photo-empty { width: min(430px,calc(100% - 40px)); text-align: center; }
.v30-photo-empty strong { color: #173f73; font-size: 1rem; }
.v30-photo-empty small { max-width: 330px; color: #667f9e; line-height: 1.45; }
.v30-photo-empty button { min-height: 38px; padding: 8px 14px; border: 1px solid #bdd4f0; border-radius: 11px; color: #1458b8; background: rgba(255,255,255,.9); font-weight: 800; cursor: pointer; }
.v30-photo-empty button:hover { background: #fff; border-color: #6da3e6; }
.v14-cover-tag { position: absolute; left: 22px; bottom: 19px; background: rgba(255,255,255,.96); padding: 9px 13px; border-radius: 999px; color: #07594b; font-size: .71rem; font-weight: 800; box-shadow: 0 6px 25px rgba(8,33,69,.1); }
.v14-gallery { display: flex; gap: 9px; padding: 12px 22px; overflow-x: auto; background: #f9fbfd; border-bottom: 1px solid #e9eef6; }
.v14-gallery button { flex: 0 0 85px; height: 63px; padding: 2px; background: white; border: 2px solid transparent; border-radius: 12px; cursor: pointer; overflow: hidden; }
.v14-gallery button.is-selected, .v14-gallery button:focus-visible { border-color: #1764d8; }
.v14-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
body[data-app-mode="directory"] .v14-detail-body { padding: 22px clamp(18px,4vw,32px) 30px; }
.v14-business-heading { display: flex; gap: 20px; justify-content: space-between; align-items: flex-start; }
.v14-business-heading h2 { font-family: Poppins, sans-serif; font-weight: 800; font-size: clamp(1.45rem,3.5vw,2rem); color: #112e53; letter-spacing: -.04em; margin: 3px 0 0; line-height: 1.2; }
.v14-eyebrow { font-size: .79rem; color: #53749c; font-weight: 700; margin: 0; }
.v14-hours-badge { flex: 0 0 auto; padding: 8px 12px; margin-top: 4px; border-radius: 100px; color: #556987; background: #f0f4fa; font-size: .72rem; font-weight: 800; }
.v14-hours-badge.open { color: #057c64; background: #e3f8f1; }
.v14-hours-badge.closed { color: #9d542b; background: #fff0e5; }
.v14-description { color: #4b6481; font-size: .89rem; line-height: 1.7; margin: 15px 0 17px; }
.v14-action-bar { display: grid; grid-template-columns: 1.2fr .8fr; gap: 10px; margin-bottom: 26px; }
.v14-action-bar > a, .v14-action-bar > button { min-height: 51px; display: flex; align-items: center; justify-content: center; text-decoration: none; text-align: center; border-radius: 13px; font-size: .86rem; font-weight: 800; }
.v14-action-bar .v14-whatsapp { color: #fff; background: #118566; box-shadow: 0 9px 20px rgba(17,133,102,.16); }
.v14-action-bar .v14-whatsapp:hover { background: #096c52; }
.v14-action-bar .v14-route { color: #1452a5; border: 1px solid #cfe0f5; background: #eff6ff; }
.v30-contact-section,.v30-common-products { padding: 18px; margin: 20px 0; border: 1px solid #dbe7f5; border-radius: 17px; background: #f8fbff; }
.v30-contact-links { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 13px; }
.v30-contact-links a { display: inline-flex; align-items: center; min-height: 42px; gap: 7px; padding: 9px 13px; border: 1px solid #cfe0f4; border-radius: 11px; color: #1459b8; background: #fff; text-decoration: none; font-size: .78rem; font-weight: 800; }
.v30-contact-links a:hover { border-color: #74a7e8; box-shadow: 0 6px 18px rgba(30,83,153,.09); }
.v30-contact-links b { display: grid; width: 21px; height: 21px; place-items: center; border-radius: 7px; color: #fff; background: #1a62c7; font-size: .72rem; }
.v30-contact-section > p,.v30-common-products > p { margin: 11px 0 0; color: #70839d; font-size: .7rem; line-height: 1.5; }
.v30-common-products > div:last-of-type { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.v30-common-products > div:last-of-type span { padding: 7px 10px; border-radius: 999px; color: #155f53; background: #e5f7f2; font-size: .71rem; font-weight: 750; }
.business-photo-pending { display: grid; place-items: center; gap: 5px; }
.business-photo-pending small { color: #587596; font-size: .62rem; font-weight: 800; }
.v14-hours-section, .v14-catalog-section { padding-top: 21px; margin-top: 20px; border-top: 1px solid #e6edf6; }
.v14-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.v14-section-heading h3 { font-family: Poppins, sans-serif; margin: 0; color: #153a67; font-size: 1rem; }
.v14-section-heading span { color: #8493a7; font-size: .72rem; }
.v14-today { background: #eef5ff; border-radius: 12px; color: #315b8a; padding: 12px 14px; margin: 12px 0; font-size: .82rem; }
.weekly-hours-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 16px; }
.weekly-day { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 11px 3px; border-bottom: 1px solid #ecf0f6; color: #536d8c; font-size: .76rem; }
.weekly-day strong { color: #173960; font-size: .76rem; white-space: nowrap; }
.weekly-day.is-today span, .weekly-day.is-today strong { color: #1557b0; font-weight: 800; }
.hours-note { margin: 12px 0; font-size: .72rem; color: #8290a1; line-height: 1.55; }
.v14-product-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.v14-product-card { display: grid; min-width: 0; grid-template-columns: 106px minmax(0,1fr); align-items: stretch; text-align: left; padding: 7px; border: 1px solid #e1eaf6; background: #fff; border-radius: 15px; gap: 12px; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.v14-product-card:hover, .v14-product-card:focus-visible { border-color: #91b9f7; box-shadow: 0 10px 24px rgba(18,70,140,.08); }
.v14-product-image { display: grid; aspect-ratio: 1; border-radius: 10px; background: #eaf3fb; place-items: center; overflow: hidden; }
.v14-product-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.v14-product-image span { font-size: 2rem; }
.v14-product-copy { display: flex; flex-direction: column; min-width: 0; gap: 5px; justify-content: center; }
.v14-product-copy strong { color: #153a67; font-size: .82rem; line-height: 1.35; }
.v14-product-copy small { color: #7386a0; font-size: .69rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.v14-product-copy span { font-weight: 800; color: #1359be; font-size: .82rem; }
.v14-empty-catalog { background: #f5f9ff; border-radius: 13px; padding: 16px; color: #5a7599; font-size: .82rem; }
.v14-secondary-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.v14-secondary-actions button { flex: 1; min-height: 42px; }
.v14-location-note { color: #6f849e; font-size: .72rem; line-height: 1.6; margin: 22px 0 0; }

/* V19 · ubicación visible en cada ficha */
.business-map-link{display:inline-flex;align-items:center;padding:9px 11px;border:1px solid #bfd5ef;border-radius:10px;color:#0b5ed7;font-size:.72rem;font-weight:800;text-decoration:none}.v19-location-section{display:grid;gap:14px;margin-top:22px;padding:18px;border:1px solid #d7e4f1;border-radius:18px;background:#f7fbff}.v19-location-section .v14-section-heading{margin:0}.v19-location-section .v14-section-heading p{margin:3px 0 0;color:#63738a;font-size:.76rem}.v19-location-section iframe{width:100%;height:240px;border:0;border-radius:14px;background:#e6eef7}.v19-location-section>a{justify-content:center;text-decoration:none}@media(max-width:620px){.v19-location-section{padding:14px}.v19-location-section iframe{height:210px}.business-card-actions{flex-wrap:wrap}.business-map-link{order:3}}
.v14-product-detail .product-detail-visual { overflow: hidden; }
.v14-product-detail .product-detail-visual img { height: 100%; width: 100%; max-height: 360px; object-fit: cover; }
.v14-product-detail .product-contact-button { display: inline-flex; align-items: center; justify-content: center; min-height: 45px; padding: 11px 17px; text-decoration: none; margin-top: 12px; }
.v14-editor-group { padding: 16px; margin: 10px 0 20px; border-radius: 17px; background: #f5f9ff; border: 1px solid #dfebfa; }
.v14-editor-group h3 { font-size: .95rem; margin: 0 0 5px; color: #153b70; }
.v14-editor-group > p { font-size: .76rem; color: #6b829f; line-height: 1.55; margin: 0 0 14px; }
.v14-editor-group .photo-upload-field { display: grid; gap: 8px; margin-bottom: 15px; }
.photo-upload-field > span, .photo-upload-field label > span { color: #173b67; font-size: .79rem; font-weight: 800; }
.photo-upload-preview, .photo-existing { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
.photo-upload-preview img, .photo-existing img { width: 85px; height: 70px; object-fit: cover; border-radius: 10px; border: 2px solid #fff; box-shadow: 0 2px 10px rgba(22,59,100,.11); }
.v14-photo-controls { display: flex; flex-wrap: wrap; gap: 12px; }
.v14-photo-controls label, .weekly-editor-row label { display: flex; align-items: center; gap: 7px; font-size: .73rem; color: #506e90; cursor: pointer; }
.v14-photo-controls input, .weekly-editor-row input[type=checkbox] { width: auto !important; }
.v14-weekly-editor { display: grid; gap: 7px; }
.weekly-editor-row { display: grid; grid-template-columns: 68px minmax(0,1fr) auto minmax(0,1fr) 80px; align-items: center; gap: 7px; padding: 7px; background: #fff; border-radius: 10px; }
.weekly-editor-row strong { font-size: .74rem; color: #183e70; }
.weekly-editor-row input[type=time] { padding: 7px 5px; min-width: 0; font-size: .74rem; }
.weekly-editor-row > span { color: #7290ad; font-size: .72rem; }
.v14-editor-group .v14-form-note { margin: 12px 0 0; font-size: .69rem; }
@media (max-width: 680px) {
  body[data-app-mode="directory"] .business-dialog { width: 100%; max-height: 95dvh; margin: auto 0 0; border-radius: 23px 23px 0 0; }
  body[data-app-mode="directory"] .business-card-visual.has-photo img { min-height: 100px; }
  .v14-cover { height: 210px; }
  .v14-business-heading { display: block; }
  .v14-hours-badge { display: inline-block; margin-top: 10px; }
  .v14-product-grid { grid-template-columns: 1fr; }
  .v14-product-card { grid-template-columns: 94px minmax(0,1fr); }
  .weekly-hours-grid { grid-template-columns: 1fr; }
  .v14-action-bar { grid-template-columns: 1fr 1fr; }
  .v14-action-bar > a, .v14-action-bar > button { font-size: .72rem; padding: 10px; }
  .v14-gallery button { flex-basis: 74px; height: 57px; }
  .weekly-editor-row { grid-template-columns: 1fr 1fr auto 1fr; gap: 5px; }
  .weekly-editor-row strong { grid-column: 1 / -1; }
  .weekly-editor-row label { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) { body[data-app-mode="directory"] .business-card, .v14-product-card { transition: none; } }
.v14-admin-review { max-width: 365px; margin-top: 8px; font-size: .73rem; }
.v14-admin-review summary { cursor: pointer; font-weight: 800; color: #175bbd; }
.v14-review-content { margin-top: 9px; padding: 10px; background: #f3f8ff; border-radius: 10px; }
.v14-review-content p { margin: 4px 0 8px; line-height: 1.5; overflow-wrap: anywhere; }
.v14-review-photos { display: flex; flex-wrap: wrap; gap: 6px; }
.v14-review-photos img { width: 70px; height: 60px; object-fit: cover; border-radius: 8px; }
