/* emty:dir_ficha — Ficha pública del negocio (mini-sitio). Teléfono primero.
   Usa los tokens --enm-* de diseno_sistema (assets/enm/enm-ds.css) con valores de respaldo. */

.bdf {
  --bdf-text: var(--enm-color-text, #1a2741);
  --bdf-muted: var(--enm-color-text-muted, #475569);
  --bdf-border: var(--enm-color-border, #dde3eb);
  --bdf-surface: var(--enm-color-surface, #fff);
  --bdf-bg: var(--enm-color-bg, #f4f6f9);
  --bdf-primary: var(--enm-color-primary, #0369a1);
  --bdf-primary-h: var(--enm-color-primary-hover, #075985);
  --bdf-navy: var(--enm-navy-800, #1a2741);
  --bdf-accent: var(--enm-color-accent, #c2410c);
  --bdf-radius: var(--enm-radius-lg, 14px);
  --bdf-gutter: var(--enm-gutter, 16px);
  --bdf-star: #d97706;
  display: block;
  background: var(--bdf-bg);
  color: var(--bdf-text);
  font-family: var(--enm-font-sans, inherit);
  padding-bottom: 88px;
  line-height: 1.55;
}
.bdf *, .bdf *::before, .bdf *::after { box-sizing: border-box; }
.bdf h1, .bdf h2, .bdf h3 { color: var(--bdf-text); letter-spacing: -.01em; }
.bdf a { color: var(--enm-color-link, #0369a1); }
.bdf img { max-width: 100%; }
.bdf-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bdf-wrap { width: 100%; max-width: var(--enm-container, 1200px); margin: 0 auto; padding: 0 var(--bdf-gutter); }
.bdf-muted { color: var(--bdf-muted); }
.bdf-hint { color: var(--bdf-muted); font-size: .8125rem; margin: 4px 0 0; }

.bdf-preview { margin-top: 12px; background: var(--enm-color-warning-soft, #fef9c3); color: var(--enm-color-warning-text, #854d0e); padding: 10px var(--bdf-gutter); font-weight: 600; text-align: center; font-size: .9rem; }

/* ── Migas ── */
.bdf-crumbs ol { list-style: none; margin: 0; padding: 12px 0 10px; display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 4px; font-size: .8125rem; white-space: nowrap; scrollbar-width: none; }
.bdf-crumbs ol::-webkit-scrollbar { display: none; }
.bdf-crumbs li { display: inline-flex; align-items: center; color: var(--bdf-muted); }
.bdf-crumbs li + li::before { content: "›"; margin: 0 6px; color: var(--enm-gray-400, #94a3b8); }
.bdf-crumbs a { color: var(--bdf-muted); text-decoration: none; padding: 6px 0; }
.bdf-crumbs a:hover { color: var(--bdf-primary); text-decoration: underline; }
.bdf-crumbs [aria-current] { color: var(--bdf-text); font-weight: 600; max-width: 60vw; overflow: hidden; text-overflow: ellipsis; }

/* ── Portada ── */
.bdf-cover { position: relative; height: 176px; overflow: hidden; background: var(--bdf-navy); }
.bdf-cover__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bdf-cover--empty {
  background:
    radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--bdf-cat, #1a2741) 55%, transparent) 0, transparent 55%),
    linear-gradient(135deg, #111a2e 0%, #1a2741 50%, color-mix(in srgb, var(--bdf-cat, #12406b) 45%, #12406b) 100%);
}
.bdf-cover__icon { position: absolute; right: 6%; top: 50%; transform: translateY(-50%) rotate(-8deg); font-size: 120px; color: rgba(255, 255, 255, .12); }

/* ── Cabecera ── */
.bdf-hero { background: var(--bdf-surface); border-bottom: 1px solid var(--bdf-border); }
.bdf-head { display: flex; flex-direction: column; gap: 12px; position: relative; }
.bdf-logo {
  width: 96px; height: 96px; margin-top: -48px; border-radius: 20px; background: #fff; border: 4px solid #fff;
  box-shadow: var(--enm-shadow-md, 0 4px 14px rgba(17, 26, 46, .12)); overflow: hidden; display: flex; align-items: center; justify-content: center; flex: none; position: relative; z-index: 2;
}
.bdf-logo img { width: 100%; height: 100%; object-fit: contain; }
.bdf-logo__ini { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 2rem; color: #fff; background: linear-gradient(135deg, var(--bdf-cat, #1a2741), #111a2e); border-radius: 15px; }
.bdf-head__info { min-width: 0; }
.bdf-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.bdf-chip, .bdf-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; min-height: 30px; border-radius: 999px; font-size: .8125rem; font-weight: 600; line-height: 1.2; text-decoration: none;
}
.bdf-chip { background: var(--enm-sky-50, #f0faff); color: var(--enm-color-info-text, #0c4a6e) !important; border: 1px solid var(--enm-sky-100, #e0f5ff); }
.bdf-chip:hover { background: var(--enm-sky-100, #e0f5ff); }
.bdf-badge--ok { background: var(--enm-color-success-soft, #dcfce7); color: var(--enm-color-success-text, #166534); }
.bdf-badge--muted { background: var(--enm-gray-100, #eceff4); color: var(--enm-gray-700, #334155); }
.bdf-title { font-size: var(--enm-text-2xl, 1.75rem); line-height: 1.15; font-weight: 800; margin: 2px 0 8px; overflow-wrap: anywhere; }
.bdf-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 8px; font-size: .9rem; color: var(--bdf-muted); }
.bdf-meta__rating { text-decoration: none; color: inherit !important; }
.bdf-meta__zone i { color: var(--bdf-primary); margin-right: 2px; }
.bdf-short { margin: 0 0 4px; color: var(--bdf-muted); font-size: 1rem; max-width: 70ch; }

/* Estado de horario */
.bdf-status { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; font-weight: 600; font-size: .85rem; line-height: 1.25; }
.bdf-status__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.bdf-status.is-open { background: var(--enm-color-success-soft, #dcfce7); color: var(--enm-color-success-text, #166534); }
.bdf-status.is-open .bdf-status__dot { box-shadow: 0 0 0 3px rgba(22, 101, 52, .18); }
.bdf-status.is-soon { background: var(--enm-color-warning-soft, #fef9c3); color: var(--enm-color-warning-text, #854d0e); }
.bdf-status.is-closed { background: var(--enm-color-danger-soft, #fee2e2); color: var(--enm-color-danger-text, #991b1b); }
.bdf-status.is-unknown { background: var(--enm-gray-100, #eceff4); color: var(--enm-gray-600, #475569); }
.bdf-status--lg { font-size: .95rem; padding: 6px 13px; margin: 0 0 12px; }

/* Estrellas */
.bd-stars { display: inline-flex; align-items: center; gap: 5px; font-size: .875rem; color: var(--bdf-text); white-space: nowrap; }
.bd-stars__track { position: relative; display: inline-block; color: var(--enm-gray-300, #c6cfdb); letter-spacing: 1px; line-height: 1; }
.bd-stars__fill { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: var(--bdf-star); }
.bd-stars__num { font-weight: 700; }
.bd-stars__count { color: var(--bdf-muted); }
.bd-stars--md .bd-stars__track { font-size: 1.05rem; }

/* ── Botones de acción ── */
.bdf-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 14px 0 16px; }
.bdf-act {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 66px; padding: 10px 6px;
  border-radius: 14px; border: 1px solid var(--bdf-border); background: var(--bdf-surface); color: var(--bdf-text) !important; font: inherit; font-size: .78rem; font-weight: 600; text-decoration: none; text-align: center; line-height: 1.15; cursor: pointer;
  transition: background var(--enm-duration, .16s), border-color var(--enm-duration, .16s), transform var(--enm-duration, .16s);
}
.bdf-act i { font-size: 1.15rem; color: var(--bdf-primary); }
.bdf-act:hover { border-color: var(--bdf-primary); background: var(--enm-sky-50, #f0faff); }
.bdf-act:active { transform: scale(.97); }
.bdf-act--primary { background: var(--bdf-primary); border-color: var(--bdf-primary); color: #fff !important; }
.bdf-act--primary i { color: #fff; }
.bdf-act--primary:hover { background: var(--bdf-primary-h); }
.bdf-act--wa i { color: #128c4b; }

/* ── Distribución (teléfono: una columna con orden propio) ── */
.bdf-layout { display: flex; flex-direction: column; gap: 14px; padding-top: 14px; }
.bdf-col { display: contents; }
.bdf-jump { order: 0; }
.bdf-o-about { order: 1; } .bdf-o-hours { order: 2; } .bdf-o-map { order: 3; } .bdf-o-contact { order: 4; }
.bdf-o-items { order: 5; } .bdf-o-photos { order: 6; } .bdf-o-videos { order: 7; } .bdf-o-reviews { order: 8; }
.bdf-o-faq { order: 9; } .bdf-o-msg { order: 10; } .bdf-o-claim { order: 11; }

.bdf-jump { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--bdf-gutter)); padding: 2px var(--bdf-gutter); }
.bdf-jump::-webkit-scrollbar { display: none; }
.bdf-jump a { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--bdf-surface); border: 1px solid var(--bdf-border); color: var(--bdf-text) !important; font-size: .85rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.bdf-jump a:hover { border-color: var(--bdf-primary); }

.bdf-card { background: var(--bdf-surface); border: 1px solid var(--bdf-border); border-radius: var(--bdf-radius); padding: 18px 16px; box-shadow: var(--enm-shadow-xs, 0 1px 2px rgba(17, 26, 46, .06)); scroll-margin-top: 90px; min-width: 0; }
.bdf-card > h2 { font-size: 1.15rem; font-weight: 800; margin: 0 0 12px; display: flex; align-items: center; gap: 9px; }
.bdf-card > h2 > i { color: var(--bdf-primary); font-size: 1rem; }
.bdf-count { font-size: .8rem; font-weight: 700; background: var(--enm-gray-100, #eceff4); color: var(--bdf-muted); border-radius: 999px; padding: 2px 9px; }

.bdf-prose { font-size: 1rem; color: var(--enm-gray-700, #334155); overflow-wrap: anywhere; }
.bdf-prose p { margin: 0 0 .8em; }
.bdf-prose h3 { font-size: 1.05rem; margin: 1em 0 .4em; }
.bdf-prose ul, .bdf-prose ol { padding-left: 1.2em; }
.bdf-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 14px 0 0; }
.bdf-tags li { font-size: .8rem; color: var(--bdf-muted); background: var(--enm-gray-50, #f4f6f9); border: 1px solid var(--bdf-border); padding: 3px 10px; border-radius: 999px; }
.bdf-source { margin: 14px 0 0; font-size: .8125rem; color: var(--bdf-muted); }
.bdf-source i { margin-right: 4px; }

/* Botones genéricos */
.bdf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--enm-touch, 44px); padding: 0 18px; border-radius: var(--enm-radius-md, 10px);
  border: 1px solid var(--bdf-border); background: var(--bdf-surface); color: var(--bdf-text) !important; font: inherit; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; line-height: 1.2;
}
.bdf-btn:hover { border-color: var(--bdf-primary); }
.bdf-btn--primary { background: var(--bdf-primary); border-color: var(--bdf-primary); color: #fff !important; }
.bdf-btn--primary:hover { background: var(--bdf-primary-h); }
.bdf-btn--accent { background: var(--bdf-accent); border-color: var(--bdf-accent); color: #fff !important; }
.bdf-btn--accent:hover { background: var(--enm-color-accent-hover, #9a3412); }
.bdf-btn--ghost { background: var(--bdf-surface); }
.bdf-btn--block { display: flex; width: 100%; margin-top: 12px; }
.bdf-btn[disabled] { opacity: .6; cursor: progress; }

/* Productos y servicios */
.bdf-items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.bdf-item { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 10px; border: 1px solid var(--bdf-border); border-radius: 12px; }
.bdf-item__img { width: 96px; height: 96px; border-radius: 10px; overflow: hidden; background: var(--enm-gray-50, #f4f6f9); display: flex; align-items: center; justify-content: center; }
.bdf-item__img img { width: 100%; height: 100%; object-fit: cover; }
.bdf-item__img--none i { font-size: 1.8rem; color: var(--enm-gray-400, #94a3b8); }
.bdf-item__type { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--bdf-muted); font-weight: 700; }
.bdf-item h3 { font-size: 1rem; margin: 2px 0 2px; font-weight: 700; }
.bdf-item__price { margin: 0; font-weight: 800; color: var(--bdf-text); }
.bdf-item__price small { font-weight: 600; color: var(--bdf-muted); }
.bdf-item__desc { margin: 4px 0 0; font-size: .875rem; color: var(--bdf-muted); }
.bdf-item__more summary { cursor: pointer; font-size: .85rem; color: var(--bdf-primary); font-weight: 600; margin-top: 4px; min-height: 32px; display: inline-flex; align-items: center; }
.bdf-item__more p { font-size: .875rem; color: var(--enm-gray-700, #334155); margin: 4px 0 0; }
.bdf-item__wa { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: .85rem; font-weight: 700; color: #0f6e3a !important; text-decoration: none; min-height: 36px; }

/* Galería */
.bdf-gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.bdf-gallery__btn { display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: zoom-in; background: var(--enm-gray-100, #eceff4); }
.bdf-gallery__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.bdf-gallery__btn:hover img { transform: scale(1.04); }

/* Videos */
.bdf-videos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.bdf-yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: #000; cursor: pointer; }
.bdf-yt img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.bdf-yt__play { position: absolute; inset: 0; margin: auto; width: 64px; height: 46px; border-radius: 14px; background: #c4302b; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.bdf-yt iframe, .bdf-videos video { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; background: #000; display: block; }
.bdf-videos__t { margin: 6px 0 0; font-weight: 600; font-size: .9rem; }

/* Reseñas */
.bdf-rsum { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--bdf-border); margin-bottom: 4px; }
.bdf-rsum__avg { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 96px; }
.bdf-rsum__avg strong { font-size: 2.6rem; line-height: 1; font-weight: 800; }
.bdf-rsum__avg .bd-stars__num, .bdf-rsum__avg .bd-stars__count { display: none; }
.bdf-rsum__avg > span:last-child { font-size: .8rem; color: var(--bdf-muted); }
.bdf-rsum__bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .8rem; color: var(--bdf-muted); }
.bdf-rsum__bars li { display: grid; grid-template-columns: 30px 1fr 24px; align-items: center; gap: 8px; }
.bdf-bar { height: 8px; border-radius: 999px; background: var(--enm-gray-100, #eceff4); overflow: hidden; }
.bdf-bar span { display: block; height: 100%; background: var(--bdf-star); border-radius: 999px; }
.bdf-bar__n { text-align: right; }
.bdf-review { padding: 14px 0; border-bottom: 1px solid var(--bdf-border); }
.bdf-review__head { display: flex; gap: 12px; align-items: flex-start; }
.bdf-review__avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; background: var(--enm-sky-100, #e0f5ff); color: var(--bdf-navy); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: .9rem; }
.bdf-review__name { font-size: .95rem; margin: 0; font-weight: 700; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.bdf-review__ver { font-size: .75rem; font-weight: 600; color: var(--enm-color-success-text, #166534); }
.bdf-review__meta { margin: 2px 0 0; display: flex; gap: 10px; align-items: center; font-size: .8rem; color: var(--bdf-muted); }
.bdf-review__meta .bd-stars__num, .bdf-review__meta .bd-stars__count { display: none; }
.bdf-review__body { margin: 10px 0 0; overflow-wrap: anywhere; }
.bdf-review__reply { margin: 10px 0 0 14px; padding: 10px 12px; border-left: 3px solid var(--bdf-primary); background: var(--enm-sky-50, #f0faff); border-radius: 0 10px 10px 0; font-size: .9rem; }
.bdf-review__reply p { margin: 0; }
.bdf-review__reply-h { font-weight: 700; font-size: .8rem; color: var(--enm-color-info-text, #0c4a6e); margin-bottom: 4px !important; }
.bdf-review__report { background: none; border: 0; padding: 6px 0; margin-top: 4px; font: inherit; font-size: .75rem; color: var(--bdf-muted); text-decoration: underline; cursor: pointer; min-height: 32px; }
#bdf-more-reviews { margin-top: 12px; }
.bdf-empty { display: flex; gap: 10px; align-items: flex-start; color: var(--bdf-muted); margin: 0 0 12px; }
.bdf-empty i { color: var(--bdf-primary); margin-top: 4px; }

/* Formularios */
.bdf-form-wrap { margin-top: 14px; }
.bdf-form-wrap > summary { list-style: none; width: fit-content; }
.bdf-form-wrap > summary::-webkit-details-marker { display: none; }
.bdf-form-wrap[open] > summary { background: var(--bdf-surface); color: var(--bdf-text) !important; border-color: var(--bdf-border); }
.bdf-form { display: grid; gap: 12px; margin-top: 12px; }
.bdf-field { display: flex; flex-direction: column; min-width: 0; }
.bdf-field label, .bdf-rate legend { font-weight: 600; font-size: .875rem; margin-bottom: 5px; color: var(--bdf-text); }
.bdf-field input, .bdf-field textarea {
  width: 100%; min-height: var(--enm-control-h, 44px); padding: 10px 12px; font: inherit; font-size: 16px; color: var(--bdf-text);
  background: #fff; border: 1px solid var(--enm-gray-300, #c6cfdb); border-radius: var(--enm-radius-md, 10px);
}
.bdf-field textarea { resize: vertical; min-height: 110px; }
.bdf-field input:focus, .bdf-field textarea:focus { border-color: var(--bdf-primary); outline: 3px solid rgba(3, 105, 161, .2); outline-offset: 0; }
.bdf-field [aria-invalid="true"] { border-color: var(--enm-color-danger, #b91c1c); }
.bdf-req { color: var(--enm-color-danger, #b91c1c); }
.bdf-opt { font-weight: 400; color: var(--bdf-muted); }
.bdf-err { margin: 4px 0 0; font-size: .8125rem; color: var(--enm-color-danger-text, #991b1b); }
.bdf-err:empty { display: none; }
.bdf-check { display: flex; gap: 10px; align-items: flex-start; font-size: .875rem; color: var(--bdf-muted); }
.bdf-check input { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: var(--bdf-primary); }
.bdf-msg { margin: 0; font-weight: 600; font-size: .9rem; }
.bdf-msg:empty { display: none; }
.bdf-msg.is-ok { color: var(--enm-color-success-text, #166534); background: var(--enm-color-success-soft, #dcfce7); padding: 10px 12px; border-radius: 10px; }
.bdf-msg.is-err { color: var(--enm-color-danger-text, #991b1b); background: var(--enm-color-danger-soft, #fee2e2); padding: 10px 12px; border-radius: 10px; }
.bdf-grid2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }

/* Selector de estrellas (accesible: radios reales) */
.bdf-rate { border: 0; padding: 0; margin: 0; min-width: 0; }
.bdf-rate__stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.bdf-rate__stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bdf-rate__stars label { font-size: 2.1rem; line-height: 1; color: var(--enm-gray-300, #c6cfdb); cursor: pointer; padding: 2px 3px; min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; }
.bdf-rate__stars label:hover, .bdf-rate__stars label:hover ~ label, .bdf-rate__stars input:checked ~ label { color: var(--bdf-star); }
.bdf-rate__stars input:focus-visible + label { outline: 3px solid var(--enm-color-focus, #2563eb); outline-offset: 1px; }

/* Preguntas frecuentes */
.bdf-faq details { border-bottom: 1px solid var(--bdf-border); }
.bdf-faq details:last-child { border-bottom: 0; }
.bdf-faq summary { cursor: pointer; list-style: none; padding: 12px 28px 12px 0; font-weight: 600; position: relative; min-height: 44px; }
.bdf-faq summary::-webkit-details-marker { display: none; }
.bdf-faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--bdf-primary); font-weight: 400; }
.bdf-faq details[open] summary::after { content: "–"; }
.bdf-faq p { margin: 0 0 12px; color: var(--enm-gray-700, #334155); }

/* Horario */
.bdf-hours { width: 100%; border-collapse: collapse; font-size: .9rem; }
.bdf-hours th, .bdf-hours td { padding: 7px 8px; text-align: left; border-bottom: 1px solid var(--enm-gray-100, #eceff4); vertical-align: top; }
.bdf-hours th { font-weight: 500; color: var(--bdf-muted); width: 40%; }
.bdf-hours td { text-align: right; }
.bdf-hours tr:last-child th, .bdf-hours tr:last-child td { border-bottom: 0; }
.bdf-hours tr.is-today th, .bdf-hours tr.is-today td { font-weight: 700; color: var(--bdf-text); background: var(--enm-sky-50, #f0faff); }

/* Mapa */
.bdf-map { position: relative; aspect-ratio: 20 / 10; border-radius: 12px; overflow: hidden; background: #e6ebef; border: 1px solid var(--bdf-border); }
.bdf-map__btn { display: block; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #e6ebef url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 20h40M20 0v40' stroke='%23d5dde4' stroke-width='1'/%3E%3C/svg%3E"); }
.bdf-map__btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bdf-map__hint { position: absolute; left: 10px; bottom: 10px; background: rgba(17, 26, 46, .82); color: #fff; padding: 6px 12px; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.bdf-map__live { position: absolute; inset: 0; }
.bdf-map .leaflet-container { font: inherit; }
.bdf-pin { width: 30px; height: 30px; border-radius: 50% 50% 50% 0; background: var(--bdf-navy); transform: rotate(-45deg); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.bdf-addr { margin: 12px 0 0; font-weight: 500; }

/* Contacto */
.bdf-clist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.bdf-clist li { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.bdf-clist li > i { width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--enm-sky-50, #f0faff); color: var(--bdf-primary); display: flex; align-items: center; justify-content: center; font-size: .95rem; }
.bdf-clist a { color: var(--bdf-text) !important; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.bdf-clist a:hover { color: var(--bdf-primary) !important; text-decoration: underline; }
.bdf-social { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bdf-social a { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--enm-gray-50, #f4f6f9); border: 1px solid var(--bdf-border); color: var(--bdf-navy) !important; font-size: 1.05rem; text-decoration: none; }
.bdf-social a:hover { background: var(--bdf-navy); color: #fff !important; }

/* Reclamar */
.bdf-claim { background: var(--enm-gradient-hero, linear-gradient(135deg, #111a2e, #1a2741 45%, #12406b)); border: 0; color: #fff; }
.bdf-claim h2 { color: #fff !important; }
.bdf-claim p { margin: 0; color: rgba(255, 255, 255, .88); }

/* Relacionados */
.bdf-related { padding-top: 26px; }
.bdf-related section + section { margin-top: 22px; }
.bdf-related h2 { font-size: 1.2rem; font-weight: 800; margin: 0 0 12px; }
/* emty:dir_ficha fix F1 — pistas minmax(0,1fr): el texto nowrap de las tarjetas no puede ensanchar la página */
.bdf-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.bdf-rcard { position: relative; min-width: 0; display: flex; gap: 12px; align-items: center; background: var(--bdf-surface); border: 1px solid var(--bdf-border); border-radius: 14px; padding: 10px; transition: box-shadow .16s, border-color .16s; }
.bdf-rcard:hover { border-color: var(--bdf-primary); box-shadow: var(--enm-shadow-sm, 0 1px 3px rgba(17, 26, 46, .08)); }
.bdf-rcard__img { width: 64px; height: 64px; flex: none; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, var(--bdf-cat, #1a2741), #111a2e); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; }
.bdf-rcard__img img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.bdf-rcard__body { min-width: 0; flex: 1 1 auto; }
.bdf-rcard h3 { font-size: .98rem; margin: 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bdf-rcard h3 a { color: var(--bdf-text) !important; text-decoration: none; }
.bdf-rcard h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.bdf-rcard__meta { margin: 2px 0 0; font-size: .8rem; color: var(--bdf-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bdf-rcard__meta2 { margin: 3px 0 0; display: flex; gap: 8px; align-items: center; font-size: .78rem; }
.bdf-dot { font-weight: 700; }
.bdf-dot.is-open { color: var(--enm-color-success-text, #166534); }
.bdf-dot.is-closed { color: var(--enm-color-danger-text, #991b1b); }

/* Barra fija inferior (teléfono) */
.bdf-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--enm-z-sticky, 100); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--bdf-border); box-shadow: 0 -6px 18px rgba(17, 26, 46, .08);
  transform: translateY(110%); transition: transform .22s var(--enm-ease, ease);
}
.bdf-sticky.is-on { transform: none; }
.bdf-sticky a { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; border-radius: 12px; font-weight: 700; font-size: .9rem; text-decoration: none; color: var(--bdf-text) !important; background: var(--enm-gray-50, #f4f6f9); border: 1px solid var(--bdf-border); }
.bdf-sticky a:first-child { background: var(--bdf-primary); color: #fff !important; border-color: var(--bdf-primary); }
.bdf-sticky a.is-wa:not(:first-child) i { color: #128c4b; }

/* Visor de fotos */
.bdf-lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.bdf-lightbox::backdrop { background: rgba(10, 14, 24, .92); }
.bdf-lightbox[open] { display: flex; align-items: center; justify-content: center; }
.bdf-lightbox img { max-width: 92vw; max-height: 84vh; object-fit: contain; border-radius: 8px; }
.bdf-lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .14); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.bdf-lightbox button:hover { background: rgba(255, 255, 255, .28); }
.bdf-lightbox__close { top: 14px; right: 14px; font-size: 2rem !important; }
.bdf-lightbox__nav.is-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.bdf-lightbox__nav.is-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* Compartir (respaldo sin Web Share API) */
.bdf-share { position: fixed; z-index: var(--enm-z-modal, 1050); left: 50%; bottom: 16px; transform: translateX(-50%); width: min(440px, calc(100vw - 24px)); background: #fff; border-radius: 16px; box-shadow: var(--enm-shadow-lg, 0 14px 34px rgba(17, 26, 46, .2)); padding: 10px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.bdf-share[hidden] { display: none; }
.bdf-share a, .bdf-share button { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--bdf-border); background: #fff; color: var(--bdf-text) !important; font: inherit; font-weight: 600; font-size: .9rem; text-decoration: none; cursor: pointer; }
.bdf-share a:hover, .bdf-share button:hover { border-color: var(--bdf-primary); }

/* ── Tableta ── */
@media (min-width: 600px) {
  .bdf-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bdf-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bdf-videos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bdf-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bdf-grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bdf-cover { height: 240px; }
}

/* ── Escritorio ── */
@media (min-width: 1024px) {
  .bdf { padding-bottom: 48px; }
  .bdf-cover { height: 300px; max-width: calc(var(--enm-container, 1200px) - 2 * var(--bdf-gutter)); margin: 0 auto; border-radius: 20px; }
  .bdf-head { flex-direction: row; align-items: flex-start; gap: 24px; padding: 0 12px; }
  .bdf-logo { width: 136px; height: 136px; margin-top: -60px; border-radius: 24px; }
  .bdf-logo__ini { font-size: 2.8rem; border-radius: 19px; }
  .bdf-head__info { padding-top: 16px; }
  .bdf-actions { display: flex; flex-wrap: wrap; overflow: visible; margin: 0; padding: 16px 12px 20px; }
  .bdf-act { flex-direction: row; min-height: 44px; padding: 0 18px; border-radius: 999px; font-size: .9rem; gap: 8px; }
  .bdf-act i { font-size: 1rem; }
  .bdf-layout { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 22px; align-items: start; padding-top: 22px; }
  .bdf-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
  .bdf-jump { margin: 0; padding: 0; flex-wrap: wrap; }
  .bdf-card { padding: 22px 24px; }
  .bdf-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bdf-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bdf-sticky { display: none; }
  .bdf-share { bottom: auto; top: 30%; }
}
@media (prefers-reduced-motion: reduce) {
  .bdf *, .bdf-sticky { transition: none !important; }
}
@media print {
  .bdf-actions, .bdf-sticky, .bdf-o-msg, .bdf-form-wrap, .bdf-jump, .bdf-related, .bdf-claim { display: none !important; }
}
.bdf-check a { padding: 0; margin: 0; }
/* Botón flotante del chat del sitio: que no tape la barra fija inferior */
@media (max-width: 1023.98px) { body.bdf-sticky-on .omnes-chat-bubble { bottom: calc(84px + env(safe-area-inset-bottom)) !important; transition: bottom .2s; } }
.bdf-act[aria-pressed="true"] i { color: #be123c; }
.bdf-report { margin: 14px 0 0; }
.bdf-linkbtn { background: none; border: 0; padding: 6px 0; min-height: 36px; font: inherit; font-size: .85rem; color: var(--bdf-muted); text-decoration: underline; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.bdf-linkbtn:hover { color: var(--bdf-primary); }
/* Teléfono: que la última fila de acciones no quede coja */
@media (max-width: 1023.98px) {
  .bdf-actions > .bdf-act:last-child:nth-child(3n+1) { grid-column: 1 / -1; flex-direction: row; min-height: 48px; }
  .bdf-actions > .bdf-act:last-child:nth-child(3n+2) { grid-column: span 2; flex-direction: row; min-height: 48px; }
}
