/* BAC Directorio — stylesheet (replaces inline styles in shortcode) */

/* ── Grid ──────────────────────────────────────────────────── */
.bac-dir-wrap { font-family:'Inter',Arial,sans-serif; max-width:1100px; margin:0 auto; }

.bac-dir-header {
    background:linear-gradient(135deg,#071f4d,#0B3D91);
    color:#fff; border-radius:16px; padding:32px; margin-bottom:28px;
    display:flex; justify-content:space-between; align-items:center;
    flex-wrap:wrap; gap:16px;
}
.bac-dir-header h1 {
    font-family:'Lora',Georgia,serif;
    font-size:clamp(1.4rem,3vw,2rem); margin:0 0 6px;
}
.bac-dir-header p { margin:0; opacity:.8; font-size:14px; }
.bac-dir-header a {
    background:#F7D117; color:#0B3D91; padding:12px 24px;
    border-radius:24px; font-weight:800; font-size:14px;
    text-decoration:none; white-space:nowrap;
}

/* ── Filter form ────────────────────────────────────────────── */
.bac-filter-form {
    background:#fff; border-radius:12px; padding:20px; margin-bottom:24px;
    box-shadow:0 1px 4px rgba(0,0,0,.08);
    display:flex; flex-wrap:wrap; gap:12px; align-items:flex-end;
}
.bac-filter-group { flex:1; min-width:160px; }
.bac-filter-group--wide { flex:2; min-width:180px; }
.bac-filter-label {
    font-size:11px; font-weight:700; text-transform:uppercase;
    color:#666; display:block; margin-bottom:5px;
}
.bac-filter-input,
.bac-filter-select {
    width:100%; padding:9px; border:1.5px solid #e2e0d8;
    border-radius:8px; font-size:14px; box-sizing:border-box;
}
.bac-filter-select { background:#fff; }
.bac-filter-actions { display:flex; gap:8px; }
.bac-btn-search {
    background:#0B3D91; color:#fff; padding:10px 20px; border:none;
    border-radius:8px; font-weight:700; font-size:14px; cursor:pointer;
}
.bac-btn-clear {
    padding:10px 14px; border:1.5px solid #e2e0d8; border-radius:8px;
    font-size:13px; color:#666; text-decoration:none; background:#fff;
}

/* ── Card grid ──────────────────────────────────────────────── */
.bac-dir-grid {
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(300px,1fr));
    gap:20px;
}

/* ── Single card ────────────────────────────────────────────── */
.bac-card {
    background:#fff; border-radius:12px;
    box-shadow:0 1px 4px rgba(0,0,0,.08);
    overflow:hidden; display:flex; flex-direction:column;
}
.bac-card-img {
    width:100%; height:160px; object-fit:cover; display:block;
}
.bac-card-placeholder {
    height:80px;
    background:linear-gradient(135deg,#071f4d,#0B3D91);
    display:flex; align-items:center; justify-content:center;
    font-size:2rem;
}
.bac-card-body {
    padding:16px; flex:1;
    display:flex; flex-direction:column; gap:8px;
}
.bac-title-row {
    display:flex; align-items:flex-start;
    justify-content:space-between; gap:8px;
}
.bac-card-title {
    margin:0; font-size:16px; color:#1a1a1a;
    font-weight:700; line-height:1.3;
}
.bac-verified {
    background:#ecfdf5; color:#065f46; font-size:10px;
    font-weight:700; padding:2px 7px; border-radius:10px;
    white-space:nowrap; flex-shrink:0;
}
.bac-stars-row { display:flex; align-items:center; gap:3px; }
.bac-rating-text { font-size:11px; color:#64748b; margin-left:2px; }

.bac-tags-row { display:flex; gap:6px; flex-wrap:wrap; }
.bac-type-badge {
    font-size:11px; font-weight:700;
    padding:2px 9px; border-radius:10px;
}
.bac-type-badge--restaurante { background:#CF142B; color:#fff; }
.bac-type-badge--profesional { background:#0B3D91; color:#fff; }
.bac-type-badge--negocio     { background:#F7D117; color:#0B3D91; }
.bac-type-badge--educacion   { background:#059669; color:#fff; }
.bac-type-badge--comunidad   { background:#7c3aed; color:#fff; }
.bac-type-badge--servicio    { background:#6b7280; color:#fff; }

.bac-location-badge {
    background:#f3f4f6; color:#374151;
    font-size:11px; padding:2px 9px; border-radius:10px;
}
.bac-card-desc {
    margin:0; font-size:13px; color:#555; line-height:1.5;
    display:-webkit-box; -webkit-line-clamp:3;
    -webkit-box-orient:vertical; overflow:hidden;
}
.bac-card-address {
    margin:0; font-size:11px; color:#94a3b8; line-height:1.4;
    display:-webkit-box; -webkit-line-clamp:2;
    -webkit-box-orient:vertical; overflow:hidden;
}
.bac-card-hours { margin:0; font-size:11px; color:#94a3b8; }

.bac-actions-row {
    margin-top:auto; padding-top:12px;
    border-top:1px solid #f3f4f6;
    display:flex; gap:8px; flex-wrap:wrap;
}
.bac-btn-wa {
    background:#25D366; color:#fff; padding:6px 14px;
    border-radius:6px; font-size:12px; font-weight:600;
    text-decoration:none; display:inline-block;
}
.bac-btn-sec {
    background:#f3f4f6; color:#374151; padding:6px 14px;
    border-radius:6px; font-size:12px; font-weight:600;
    text-decoration:none; display:inline-block;
}
.bac-btn-wa:hover  { background:#1ebe5d; color:#fff; }
.bac-btn-sec:hover { background:#e5e7eb; color:#374151; }

/* ── Empty state ────────────────────────────────────────────── */
.bac-dir-empty {
    text-align:center; padding:60px 20px;
    background:#fff; border-radius:12px;
    box-shadow:0 1px 4px rgba(0,0,0,.08);
}
.bac-dir-empty-icon { font-size:3rem; margin-bottom:16px; }
.bac-dir-empty h3 { color:#0B3D91; margin:0 0 8px; }
.bac-dir-empty p { color:#666; font-size:14px; margin:0 0 20px; }

/* ── Bottom CTA ─────────────────────────────────────────────── */
.bac-dir-cta-bar {
    margin-top:32px; text-align:center; padding:24px;
    background:#fffdf6; border-radius:12px; border:1px solid #e8e4dc;
}
.bac-dir-cta-bar p { margin:0 0 12px; font-size:14px; color:#555; }
.bac-dir-cta-bar a {
    background:#F7D117; color:#0B3D91; padding:12px 28px;
    border-radius:24px; font-weight:800; font-size:14px;
    text-decoration:none;
}

/* ── Register form ──────────────────────────────────────────── */
.bac-dir-form-wrap { max-width:680px; margin:0 auto; font-family:'Inter',Arial,sans-serif; }
.bac-dir-form-header {
    background:linear-gradient(135deg,#0B3D91,#1a5cbc);
    color:#fff; border-radius:16px; padding:28px 32px; margin-bottom:28px;
}
.bac-dir-form-header h2 { margin:0 0 8px; font-family:'Lora',Georgia,serif; font-size:1.6rem; }
.bac-dir-form-header p { margin:0; opacity:.85; font-size:14px; }
.bac-form-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.bac-form-full { grid-column:1/-1; }
.bac-form-label {
    font-size:12px; font-weight:700; text-transform:uppercase;
    letter-spacing:.05em; color:#555; display:block; margin-bottom:6px;
}
.bac-form-input {
    width:100%; padding:12px; border:2px solid #e2e0d8;
    border-radius:8px; font-size:15px; box-sizing:border-box;
    font-family:inherit;
}
.bac-form-input-sm {
    width:100%; padding:10px; border:1.5px solid #e2e0d8;
    border-radius:8px; font-size:14px; box-sizing:border-box;
    font-family:inherit;
}
.bac-form-section { border-top:1px solid #e2e0d8; padding-top:20px; }
.bac-form-section-title { font-size:13px; font-weight:700; color:#0B3D91; margin:0 0 14px; }
.bac-form-contact-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.bac-form-contact-label {
    font-size:11px; font-weight:600; text-transform:uppercase;
    color:#777; display:block; margin-bottom:5px;
}
.bac-form-submit {
    background:#0B3D91; color:#fff; padding:16px; border:none;
    border-radius:10px; font-size:16px; font-weight:700;
    cursor:pointer; width:100%; font-family:inherit;
}
.bac-form-submit:hover { background:#0a3280; }
.bac-form-hint { font-size:11px; color:#999; text-align:center; margin:-8px 0 0; }

@media (max-width:640px) {
    .bac-form-grid,
    .bac-form-contact-grid { grid-template-columns:1fr; }
    .bac-form-full { grid-column:1; }
    .bac-filter-group,
    .bac-filter-group--wide { flex:1 1 100%; min-width:0; }
}
