/* AHCP Member System v3 — Public CSS */
:root{
  --ahcp-p:#1a4f8a; --ahcp-pd:#133d6d; --ahcp-pa:#2e7bc4;
  --ahcp-s:#0d7c66; --ahcp-ok:#27ae60; --ahcp-er:#c0392b;
  --ahcp-warn:#e67e22; --ahcp-gray:#6c757d; --ahcp-light:#f5f7fb;
  --ahcp-border:#d8dde6; --ahcp-card:#fff;
  --ahcp-r:10px; --ahcp-sh:0 2px 16px rgba(0,0,0,.09);
}

/* ── FORM WRAPPER ── */
.ahcp-form-wrapper{max-width:820px;margin:0 auto;padding:0 16px;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#2d3748}

/* ── STEPS BAR ── */
.ahcp-steps-bar{display:flex;align-items:center;justify-content:center;margin-bottom:8px;padding:20px 0 4px;flex-wrap:wrap;gap:0}
.ahcp-step-item{display:flex;flex-direction:column;align-items:center;gap:5px;cursor:default}
.ahcp-step-bubble{width:34px;height:34px;border-radius:50%;background:var(--ahcp-border);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:14px;transition:.3s}
.ahcp-step-bubble span{display:block}
.ahcp-step-item.ahcp-is-active .ahcp-step-bubble{background:var(--ahcp-p)}
.ahcp-step-item.done   .ahcp-step-bubble{background:var(--ahcp-ok)}
.ahcp-step-item.done   .ahcp-step-bubble span::before{content:'✓';display:block}
.ahcp-step-item.done   .ahcp-step-bubble span{display:none}
.ahcp-step-lbl{font-size:11px;color:var(--ahcp-gray);white-space:nowrap}
.ahcp-step-item.ahcp-is-active .ahcp-step-lbl{color:var(--ahcp-p);font-weight:600}
.ahcp-step-line{flex:1;min-width:16px;max-width:50px;height:2px;background:var(--ahcp-border);margin-bottom:20px}

/* PROGRESS BAR */
.ahcp-progress-bar{height:4px;background:var(--ahcp-border);border-radius:2px;margin-bottom:24px;overflow:hidden}
.ahcp-progress-fill{height:100%;background:linear-gradient(90deg,var(--ahcp-p),var(--ahcp-pa));border-radius:2px;transition:width .4s ease}

/* ── PANELS ── */
.ahcp-panel{display:none;background:var(--ahcp-card);border:1px solid var(--ahcp-border);border-radius:var(--ahcp-r);padding:28px 32px;box-shadow:var(--ahcp-sh);animation:ahcpIn .3s ease}
.ahcp-panel.ahcp-is-active{display:block!important}
@keyframes ahcpIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.ahcp-panel-title{margin:0 0 22px;font-size:20px;font-weight:700;color:var(--ahcp-p);display:flex;align-items:center;gap:10px;border-bottom:2px solid var(--ahcp-light);padding-bottom:14px}
.ahcp-icon{font-size:22px}
.ahcp-panel-desc{margin:-10px 0 18px;color:var(--ahcp-gray);font-size:14px}
.ahcp-section-label{font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.6px;color:var(--ahcp-p);margin:0 0 12px;padding:8px 0;border-bottom:1px solid var(--ahcp-light)}

/* ── FIELDS ── */
.ahcp-row{display:flex;gap:14px;margin-bottom:16px;flex-wrap:wrap}
.ahcp-row.ahcp-row-2>.ahcp-field{flex:1 1 calc(50% - 7px)}
.ahcp-row.ahcp-row-3>.ahcp-field{flex:1 1 calc(33% - 10px)}
.ahcp-row.ahcp-row-4>.ahcp-field{flex:1 1 calc(25% - 12px)}
.ahcp-field{flex:1 1 200px;min-width:0}
.ahcp-full{flex:1 1 100%}
.ahcp-w1{flex:1 1 120px}
.ahcp-w1half{flex:1 1 150px}
.ahcp-w2{flex:2 1 200px}
.ahcp-w-cp{flex:0 0 130px}
.req{color:var(--ahcp-er)}
.ahcp-field label{display:block;font-size:13px;font-weight:600;margin-bottom:5px;color:#4a5568}
.ahcp-hint-inline{font-size:11px;font-weight:400;color:var(--ahcp-gray)}
.ahcp-hint-field{font-size:11px;color:var(--ahcp-gray);margin-top:4px;display:block}
.ahcp-field input,.ahcp-field select,.ahcp-field textarea{width:100%;padding:9px 12px;border:1.5px solid var(--ahcp-border);border-radius:7px;font-size:14px;color:#2d3748;background:#fff;transition:.2s;box-sizing:border-box;font-family:inherit}
.ahcp-field input:focus,.ahcp-field select:focus,.ahcp-field textarea:focus{border-color:var(--ahcp-pa);box-shadow:0 0 0 3px rgba(46,123,196,.13);outline:none}
.ahcp-field input.field-error,.ahcp-field select.field-error,.ahcp-field textarea.field-error{border-color:var(--ahcp-er)}
.ahcp-err{display:none;color:var(--ahcp-er);font-size:12px;margin-top:4px}
.ahcp-char-count{font-size:11px;color:var(--ahcp-gray);text-align:right;margin-top:3px}

/* ── CHECKBOX PILLS ── */
.ahcp-checkbox-pills{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}
.ahcp-pill-label{display:flex;align-items:center;cursor:pointer}
.ahcp-pill-label input{display:none}
.ahcp-pill-label span{padding:6px 14px;border:1.5px solid var(--ahcp-border);border-radius:20px;font-size:13px;color:#555;background:#fff;transition:.2s;user-select:none}
.ahcp-pill-label input:checked+span{background:var(--ahcp-p);border-color:var(--ahcp-p);color:#fff}
.ahcp-pill-label:hover span{border-color:var(--ahcp-pa);color:var(--ahcp-pa)}
.ahcp-pill-label input:checked+span:hover{background:var(--ahcp-pd)}

/* ── PHOTO UPLOAD ── */
.ahcp-photo-zone{border:2px dashed var(--ahcp-border);border-radius:var(--ahcp-r);padding:20px;background:var(--ahcp-light)}
.ahcp-photo-preview-wrap{display:flex;justify-content:center;margin-bottom:14px}
.ahcp-photo-placeholder{display:flex;flex-direction:column;align-items:center;gap:8px;color:var(--ahcp-gray);cursor:pointer;padding:16px}
.ahcp-photo-placeholder svg{width:70px;height:70px;opacity:.5}
.ahcp-photo-placeholder p{font-size:13px;margin:0}
#photo_preview{width:160px;height:160px;object-fit:cover;border-radius:50%;border:3px solid var(--ahcp-pa);box-shadow:0 2px 12px rgba(0,0,0,.15)}
.ahcp-photo-upload-btns{display:flex;justify-content:center;gap:10px}
.btn-upload-photo{padding:9px 20px;background:var(--ahcp-p);color:#fff;border-radius:6px;cursor:pointer;font-size:14px;font-weight:600;transition:.2s}
.btn-upload-photo:hover{background:var(--ahcp-pd)}
.btn-remove-photo{padding:9px 16px;background:#fff;color:var(--ahcp-er);border:1.5px solid var(--ahcp-er);border-radius:6px;cursor:pointer;font-size:13px}
.ahcp-upload-progress{margin-top:12px}
.ahcp-upload-bar{height:6px;background:#ddd;border-radius:3px;overflow:hidden;margin-bottom:4px}
.ahcp-upload-fill{height:100%;background:var(--ahcp-pa);border-radius:3px;transition:width .3s}
#photo_upload_status{font-size:12px;color:var(--ahcp-gray)}

/* ── SOCIAL GRID ── */
.ahcp-social-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.ahcp-social-item{display:flex;align-items:flex-start;gap:12px}
.ahcp-social-icon{width:36px;height:36px;border-radius:8px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:14px;font-weight:700;flex-shrink:0;margin-top:22px;box-shadow:0 2px 6px rgba(0,0,0,.2)}
.ahcp-social-item .ahcp-field{flex:1}

/* ── TAGS INPUT ── */
.ahcp-tags-input-wrap{border:1.5px solid var(--ahcp-border);border-radius:8px;padding:10px;background:#fff;transition:.2s}
.ahcp-tags-input-wrap:focus-within{border-color:var(--ahcp-pa);box-shadow:0 0 0 3px rgba(46,123,196,.12)}
.ahcp-tags-suggestions{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.ahcp-tag-suggest{padding:4px 10px;background:var(--ahcp-light);border:1px solid var(--ahcp-border);border-radius:12px;font-size:12px;cursor:pointer;color:#555;transition:.2s}
.ahcp-tag-suggest:hover{background:var(--ahcp-p);color:#fff;border-color:var(--ahcp-p)}
.ahcp-tag-suggest.used{opacity:.35;cursor:default}
#espec_input{border:none;outline:none;width:100%;font-size:13px;padding:4px 0;color:#2d3748}
.ahcp-tags-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.ahcp-tag-item{background:var(--ahcp-p);color:#fff;padding:4px 10px;border-radius:12px;font-size:12px;display:flex;align-items:center;gap:5px}
.ahcp-tag-remove{cursor:pointer;opacity:.75;font-size:14px;line-height:1}
.ahcp-tag-remove:hover{opacity:1}

/* ── COMMITMENT BOX ── */
.ahcp-commitment-box{background:var(--ahcp-light);border:1.5px solid var(--ahcp-border);border-radius:8px;padding:18px 20px;margin-top:6px}
.ahcp-commitment-box h4{margin:0 0 12px;color:var(--ahcp-p);font-size:14px}
.ahcp-commit-label{display:flex;align-items:flex-start;gap:10px;cursor:pointer;font-size:14px}
.ahcp-commit-label input{margin-top:3px;accent-color:var(--ahcp-p);flex-shrink:0}
.ahcp-info-banner{background:#eef4fb;border-left:4px solid var(--ahcp-pa);padding:12px 16px;border-radius:0 8px 8px 0;font-size:13px;margin-bottom:20px;line-height:1.6}

/* ── NAV ── */
.ahcp-nav{display:flex;justify-content:space-between;align-items:center;margin-top:24px;padding-top:18px;border-top:1px solid var(--ahcp-light)}
.btn-next,.btn-prev,.btn-submit{padding:11px 26px;border:none;border-radius:7px;font-size:15px;font-weight:600;cursor:pointer;transition:.2s}
.btn-next,.btn-submit{background:var(--ahcp-p);color:#fff}
.btn-next:hover,.btn-submit:hover{background:var(--ahcp-pd);transform:translateY(-1px)}
.btn-prev{background:#fff;color:var(--ahcp-p);border:2px solid var(--ahcp-p)}
.btn-prev:hover{background:var(--ahcp-light)}
.btn-submit{background:var(--ahcp-ok);padding:13px 32px;font-size:16px}

/* ── TERMS ── */
.ahcp-terms-intro{background:#fff8e1;border:1px solid #ffe082;border-radius:8px;padding:12px 16px;font-size:13px;margin-bottom:18px}
.ahcp-terms-card{border:1px solid var(--ahcp-border);border-radius:var(--ahcp-r);overflow:hidden}
.ahcp-terms-card-header{background:var(--ahcp-p);color:#fff;padding:12px 18px;display:flex;justify-content:space-between;align-items:center}
.ahcp-terms-card-title{font-weight:700;font-size:14px}
.ahcp-scroll-status{font-size:12px;background:rgba(255,255,255,.15);padding:3px 10px;border-radius:12px}
.ahcp-scroll-status.done{background:rgba(39,174,96,.35)}
.ahcp-terms-body{height:260px;overflow-y:auto;padding:18px 20px;font-size:13.5px;line-height:1.8;background:#fafbfc;color:#333}
.ahcp-terms-body h4{color:var(--ahcp-p);margin:0 0 12px;font-size:14px}
.ahcp-terms-body ol{padding-left:20px}
.ahcp-terms-body li{margin-bottom:6px}
.ahcp-terms-body hr{border:none;border-top:1px solid var(--ahcp-border);margin:14px 0}
.ahcp-terms-body::-webkit-scrollbar{width:5px}
.ahcp-terms-body::-webkit-scrollbar-thumb{background:var(--ahcp-pa);border-radius:3px}
.ahcp-terms-accept{background:#eefaf3;border-top:1px solid #b7e0c5;padding:14px 18px}
.ahcp-accept-label{display:flex;align-items:center;gap:10px;cursor:pointer;font-weight:600;font-size:14px}
.ahcp-accept-label input{accent-color:var(--ahcp-ok);width:17px;height:17px}

/* ── RESULT ── */
.ahcp-result-icon{font-size:64px;text-align:center;margin-bottom:12px}
.ahcp-result-title{text-align:center;color:var(--ahcp-ok);margin-bottom:10px}
.ahcp-numero-box{text-align:center;background:var(--ahcp-light);border:2px solid var(--ahcp-p);border-radius:8px;padding:16px;font-size:18px;margin:18px 0}
.ahcp-numero-box strong{color:var(--ahcp-p);font-size:22px}
.ahcp-payment-box{background:#fff8e1;border:1px solid #ffe082;border-radius:8px;padding:20px;margin:18px 0}
.ahcp-payment-box h3{margin:0 0 12px;color:var(--ahcp-warn)}
.ahcp-payment-table{border:1px solid #ffe082;border-radius:6px;overflow:hidden}
.ahcp-pt-row{display:flex;border-bottom:1px solid #fff3cd;font-size:14px}
.ahcp-pt-row:last-child{border-bottom:none}
.ahcp-pt-key{background:#fff3cd;padding:9px 14px;font-weight:600;min-width:100px;color:#666}
.ahcp-pt-val{padding:9px 14px;background:#fff}
.ahcp-payment-notice{background:#fff3cd;border-left:4px solid var(--ahcp-warn);padding:12px 14px;border-radius:0 6px 6px 0;font-size:13px;margin-top:12px;line-height:1.6}
.ahcp-email-note{text-align:center;color:var(--ahcp-gray);font-size:13px;margin-top:10px}

/* ── LOADING ── */
#ahcp-loading-overlay{position:fixed;inset:0;background:rgba(15,23,42,.55);z-index:9999;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;color:#fff;font-size:16px}
.ahcp-spinner-ring{width:48px;height:48px;border:4px solid rgba(255,255,255,.2);border-top-color:#fff;border-radius:50%;animation:spin .75s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

/* ══════════════════════════════════════════════════════════
   DIRECTORY
══════════════════════════════════════════════════════════ */
.ahcp-dir-wrapper{max-width:1200px;margin:0 auto;padding:0 16px;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}

/* HERO */
.ahcp-dir-hero{background:linear-gradient(135deg,#1a4f8a 0%,#0d7c66 100%);color:#fff;padding:52px 24px;text-align:center;border-radius:14px;margin-bottom:0}
.ahcp-dir-hero-inner{max-width:680px;margin:0 auto}
.ahcp-dir-hero h1{margin:0 0 10px;font-size:28px;font-weight:800}
.ahcp-dir-hero p{margin:0 0 24px;opacity:.87;font-size:15px}
.ahcp-dir-search-bar{display:flex;align-items:center;background:#fff;border-radius:50px;padding:8px 8px 8px 18px;gap:8px;box-shadow:0 4px 20px rgba(0,0,0,.2)}
.ahcp-dir-search-icon{font-size:18px;color:#888;flex-shrink:0}
#dir_search{flex:1;border:none;outline:none;font-size:15px;color:#2d3748;background:transparent}
.ahcp-dir-member-count{font-size:13px;color:#888;background:#f5f7fb;padding:6px 14px;border-radius:20px;white-space:nowrap;flex-shrink:0}

/* FILTERS */
.ahcp-dir-filters-bar{background:#fff;border:1px solid var(--ahcp-border);border-top:none;border-radius:0 0 12px 12px;padding:14px 20px;margin-bottom:28px;box-shadow:var(--ahcp-sh)}
.ahcp-dir-filters-inner{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap}
.ahcp-dir-filter-group{display:flex;flex-direction:column;gap:4px;min-width:140px}
.ahcp-dir-filter-group label{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:var(--ahcp-gray)}
.ahcp-dir-filter-group select{padding:7px 10px;border:1.5px solid var(--ahcp-border);border-radius:6px;font-size:13px;color:#2d3748;cursor:pointer}
.ahcp-dir-filter-group select:focus{border-color:var(--ahcp-pa);outline:none}
.ahcp-dir-reset-btn{padding:7px 16px;background:#fff;border:1.5px solid var(--ahcp-border);border-radius:6px;font-size:13px;color:var(--ahcp-gray);cursor:pointer;align-self:flex-end}
.ahcp-dir-reset-btn:hover{border-color:var(--ahcp-er);color:var(--ahcp-er)}

/* GRID */
.ahcp-dir-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:22px}

/* CARD */
.ahcp-dir-card{background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 2px 14px rgba(0,0,0,.08);transition:transform .25s,box-shadow .25s;display:flex;flex-direction:column}
.ahcp-dir-card:hover{transform:translateY(-4px);box-shadow:0 8px 28px rgba(0,0,0,.14)}

/* PHOTO */
.ahcp-dir-card-photo{position:relative;aspect-ratio:1;overflow:hidden;background:var(--ahcp-light)}
.ahcp-dir-card-photo img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s}
.ahcp-dir-card:hover .ahcp-dir-card-photo img{transform:scale(1.04)}
.ahcp-dir-avatar{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--ahcp-p),var(--ahcp-s));color:#fff;font-size:52px;font-weight:800;letter-spacing:-2px}
.ahcp-dir-badge-cat{position:absolute;top:10px;right:10px;font-size:10px;font-weight:700;padding:3px 9px;border-radius:12px;text-transform:uppercase;letter-spacing:.4px;backdrop-filter:blur(6px)}
.ahcp-cat-associado{background:rgba(26,79,138,.85);color:#fff}
.ahcp-cat-efectivo{background:rgba(13,124,102,.85);color:#fff}
.ahcp-cat-honorario{background:rgba(230,126,34,.85);color:#fff}
.ahcp-cat-fundador{background:rgba(90,0,128,.85);color:#fff}

/* CARD BODY */
.ahcp-dir-card-body{padding:16px 18px;flex:1;display:flex;flex-direction:column;gap:6px}
.ahcp-dir-card-name{margin:0;font-size:17px;font-weight:700;color:#1a202c;line-height:1.2}
.ahcp-dir-card-title{margin:0;font-size:13px;font-weight:600;color:var(--ahcp-p)}
.ahcp-dir-card-org{margin:0;font-size:12px;color:var(--ahcp-gray)}
.ahcp-dir-card-tagline{margin:0;font-size:13px;color:#555;font-style:italic;line-height:1.4;border-left:3px solid var(--ahcp-pa);padding-left:8px}
.ahcp-dir-card-meta{display:flex;gap:10px;flex-wrap:wrap}
.ahcp-dir-meta-item{font-size:12px;color:var(--ahcp-gray)}

/* MODALIDADES */
.ahcp-dir-modalidades{display:flex;gap:5px;flex-wrap:wrap}
.ahcp-mod-tag{font-size:11px;padding:3px 9px;border-radius:10px;font-weight:600}
.ahcp-mod-presencial{background:#e3f0ff;color:#1a4f8a}
.ahcp-mod-online{background:#e8f5e9;color:#1b5e20}
.ahcp-mod-domicilio{background:#fff3e0;color:#e65100}

/* ESPECIALIDADES */
.ahcp-dir-espec{display:flex;flex-wrap:wrap;gap:5px}
.ahcp-espec-tag{font-size:11px;background:var(--ahcp-light);border:1px solid var(--ahcp-border);padding:3px 8px;border-radius:10px;color:#555}
.ahcp-espec-more{font-size:11px;color:var(--ahcp-pa);font-weight:600;padding:3px 6px}

/* LANGUAGES */
.ahcp-dir-linguas{font-size:12px;color:var(--ahcp-gray)}

/* CARD FOOTER */
.ahcp-dir-card-footer{padding:12px 18px;border-top:1px solid var(--ahcp-light);display:flex;justify-content:space-between;align-items:center;background:#fafbfc}
.ahcp-dir-social-links{display:flex;gap:6px}
.ahcp-soc-btn{width:30px;height:30px;border-radius:7px;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;text-decoration:none;color:#fff;transition:.2s;box-shadow:0 1px 4px rgba(0,0,0,.2)}
.ahcp-soc-btn:hover{transform:translateY(-2px);box-shadow:0 3px 8px rgba(0,0,0,.25)}
.ahcp-soc-web{background:#1a4f8a}.ahcp-soc-li{background:#0077b5}.ahcp-soc-ig{background:linear-gradient(135deg,#f9ce34,#ee2a7b,#6228d7)}.ahcp-soc-fb{background:#1877f2}.ahcp-soc-yt{background:#ff0000}.ahcp-soc-x{background:#000}
.ahcp-dir-profile-btn{padding:7px 16px;background:var(--ahcp-p);color:#fff;border:none;border-radius:7px;font-size:13px;font-weight:600;cursor:pointer;transition:.2s}
.ahcp-dir-profile-btn:hover{background:var(--ahcp-pd)}

/* NO RESULTS / EMPTY */
.ahcp-dir-no-results,.ahcp-dir-empty{text-align:center;padding:60px 20px;color:var(--ahcp-gray)}
.ahcp-dir-no-results-icon{font-size:48px;margin-bottom:12px}
.ahcp-dir-no-results h3{font-size:20px;margin-bottom:8px}

/* PROFILE MODAL */
.ahcp-modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:99999;display:flex;align-items:center;justify-content:center;padding:20px}
.ahcp-profile-modal-box{background:#fff;border-radius:16px;max-width:700px;width:100%;max-height:90vh;overflow-y:auto;position:relative;box-shadow:0 20px 60px rgba(0,0,0,.3)}
.ahcp-modal-close-btn{position:absolute;top:14px;right:14px;background:none;border:none;font-size:22px;color:#888;cursor:pointer;z-index:2;line-height:1}
.ahcp-modal-close-btn:hover{color:#333}
.ahcp-profile-photo-hero{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:16px 16px 0 0;display:block;background:var(--ahcp-light)}
.ahcp-profile-avatar-hero{width:100%;height:220px;background:linear-gradient(135deg,var(--ahcp-p),var(--ahcp-s));display:flex;align-items:center;justify-content:center;font-size:80px;font-weight:800;color:#fff;border-radius:16px 16px 0 0}
.ahcp-profile-body{padding:24px 28px}
.ahcp-profile-body h2{margin:0 0 4px;font-size:24px;font-weight:800;color:#1a202c}
.ahcp-profile-subtitle{font-size:15px;color:var(--ahcp-p);font-weight:600;margin:0 0 6px}
.ahcp-profile-tagline{font-style:italic;color:#555;border-left:3px solid var(--ahcp-pa);padding-left:10px;margin:10px 0 16px;font-size:14px}
.ahcp-profile-section{margin-top:18px}
.ahcp-profile-section h4{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.6px;color:var(--ahcp-gray);margin:0 0 8px}
.ahcp-profile-bio{font-size:14px;line-height:1.7;color:#444}
.ahcp-profile-chips{display:flex;flex-wrap:wrap;gap:7px}
.ahcp-profile-chip{font-size:12px;padding:4px 11px;border-radius:12px;background:var(--ahcp-light);border:1px solid var(--ahcp-border);color:#555}
.ahcp-profile-social{display:flex;gap:10px;flex-wrap:wrap;margin-top:4px}
.ahcp-profile-soc-link{display:flex;align-items:center;gap:5px;font-size:13px;color:var(--ahcp-pa);text-decoration:none;font-weight:600}
.ahcp-profile-soc-link:hover{text-decoration:underline}

/* ── RESPONSIVE ── */
@media(max-width:640px){
  .ahcp-panel{padding:18px 14px}
  .ahcp-step-lbl{display:none}
  .ahcp-row{flex-direction:column;gap:10px}
  .ahcp-row.ahcp-row-2>.ahcp-field,.ahcp-row.ahcp-row-3>.ahcp-field,.ahcp-row.ahcp-row-4>.ahcp-field,.ahcp-w-cp{flex:1 1 100%}
  .ahcp-social-grid{grid-template-columns:1fr}
  .ahcp-nav{flex-direction:column;gap:10px}
  .btn-next,.btn-prev,.btn-submit{width:100%;text-align:center}
  .ahcp-dir-hero h1{font-size:20px}
  .ahcp-dir-grid{grid-template-columns:1fr}
  .ahcp-dir-filters-inner{flex-direction:column}
  .ahcp-dir-filter-group{min-width:100%}
  .ahcp-profile-body{padding:18px 16px}
}

/* ══════════════════════════════════════════════════════════
   TERAPEUTAS POR REGIÃO
══════════════════════════════════════════════════════════ */
.ahcp-regioes-wrapper { max-width: 1200px; margin: 0 auto; padding: 0 16px 40px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.ahcp-regioes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.ahcp-region-card { display: block; position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; text-decoration: none; transition: transform .25s, box-shadow .25s; box-shadow: 0 3px 14px rgba(0,0,0,.18); }
.ahcp-region-card:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 10px 30px rgba(0,0,0,.28); }
.ahcp-region-card:hover .ahcp-region-overlay { background: rgba(0,0,0,.55); }
.ahcp-region-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.38); display: flex; flex-direction: column; justify-content: flex-end; padding: 14px 16px; transition: background .2s; }
.ahcp-region-name { color: #fff; font-size: 15px; font-weight: 700; text-shadow: 0 1px 4px rgba(0,0,0,.6); line-height: 1.2; }
.ahcp-region-count { color: rgba(255,255,255,.87); font-size: 12px; margin-top: 3px; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.ahcp-region-empty { opacity: .65; }
/* VIEW SWITCHER */
.ahcp-dir-view-switcher { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }
.ahcp-dir-switcher-btn { padding: 7px 18px; border-radius: 20px; font-size: 13px; font-weight: 600; text-decoration: none; transition: .2s; cursor: pointer; border: none; background: rgba(255,255,255,.18); color: #fff; }
.ahcp-dir-switcher-btn.active, .ahcp-dir-switcher-btn:hover { background: #fff; color: #1a4f8a; }
/* MAP BTN */
.ahcp-dir-map-btn { padding: 7px 14px; background: #0d7c66; color: #fff; border: none; border-radius: 6px; font-size: 13px; cursor: pointer; font-weight: 600; transition: .2s; }
.ahcp-dir-map-btn:hover { background: #095e4e; }
/* DIR IMPROVEMENTS */
.ahcp-dir-count-badge { font-size: 13px; color: #888; background: rgba(255,255,255,.9); padding: 6px 14px; border-radius: 20px; white-space: nowrap; flex-shrink: 0; font-weight: 600; }
.ahcp-dir-card-photo-link { display: block; text-decoration: none; }
.ahcp-dir-card-name a { color: #1a202c; text-decoration: none; }
.ahcp-dir-card-name a:hover { color: #1a4f8a; }
.ahcp-dir-card-loc { font-size: 12.5px; color: #6c757d; margin: 4px 0; }
.ahcp-dir-langs { font-size: 12px; color: #6c757d; margin-top: 4px; }
@media(max-width:640px) {
  .ahcp-regioes-grid { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .ahcp-dir-view-switcher { flex-direction: column; align-items: center; }
}

/* Correções de compatibilidade com temas WordPress */
.ahcp-pill-label{position:relative!important;min-height:34px!important}
.ahcp-pill-label input[type="checkbox"]{position:absolute!important;opacity:0!important;pointer-events:none!important;width:1px!important;height:1px!important}
.ahcp-pill-label.ahcp-pill-selected span,.ahcp-pill-label input[type="checkbox"]:checked+span{background:var(--ahcp-p)!important;border-color:var(--ahcp-p)!important;color:#fff!important;box-shadow:0 2px 7px rgba(20,82,140,.18)!important}
#photo_upload_progress{display:block!important;min-height:18px}
#photo_upload_progress[style*="display: none"]{display:none!important}
#photo_upload_status{display:block!important;margin-top:5px;min-height:17px}
#photo_upload_error{display:block;margin-top:6px}
.btn-upload-photo{border:0!important;text-decoration:none!important}


/* v4.2.5 — controlo visual isolado do tema AHCP */
.ahcp-form-wrapper .ahcp-pill-label{display:inline-flex!important;align-items:center!important;position:relative!important;min-height:34px!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;line-height:1!important}
.ahcp-form-wrapper .ahcp-pill-label::before,.ahcp-form-wrapper .ahcp-pill-label::after{display:none!important;content:none!important}
.ahcp-form-wrapper .ahcp-pill-label input[type="checkbox"]{position:absolute!important;opacity:0!important;pointer-events:none!important;width:1px!important;height:1px!important;margin:0!important}
.ahcp-form-wrapper .ahcp-pill-label span{display:block!important;padding:8px 14px!important;border:1.5px solid var(--ahcp-border)!important;border-radius:20px!important;font-size:13px!important;line-height:1.15!important;color:#364152!important;background:#fff!important;transition:background .18s,border-color .18s,color .18s,box-shadow .18s!important;white-space:nowrap!important}
.ahcp-form-wrapper .ahcp-pill-label:hover span{border-color:var(--ahcp-pa)!important;color:var(--ahcp-pa)!important}
.ahcp-form-wrapper .ahcp-pill-label.ahcp-pill-selected span,.ahcp-form-wrapper .ahcp-pill-label input[type="checkbox"]:checked+span{background:var(--ahcp-p)!important;border-color:var(--ahcp-p)!important;color:#fff!important;box-shadow:0 2px 8px rgba(20,82,140,.22)!important}
.ahcp-form-wrapper .ahcp-update-label{display:flex!important;align-items:flex-start!important;gap:10px!important;cursor:pointer!important;color:#5d4037!important;font-size:14px!important;line-height:1.45!important}
.ahcp-form-wrapper .ahcp-update-label input[type="checkbox"]{position:static!important;opacity:1!important;pointer-events:auto!important;width:18px!important;height:18px!important;min-width:18px!important;margin:3px 0 0!important;appearance:auto!important;accent-color:#e67e22!important}
.ahcp-form-wrapper .ahcp-update-label small{display:block!important;font-size:12px!important;color:#6c757d!important;line-height:1.45!important;margin-top:2px!important}

/* ══════════════════════════════════════════════════════════
   DIRECTORY UI REFINEMENT — v4.3.9
══════════════════════════════════════════════════════════ */
#ahcp-dir-wrapper{max-width:1180px;margin:36px auto 56px;padding:0 20px;font-family:inherit;color:#1d2939}
#ahcp-dir-wrapper *{box-sizing:border-box}
#ahcp-dir-wrapper .ahcp-dir-hero{position:relative;overflow:hidden;background:linear-gradient(135deg,#174f86 0%,#0a806d 100%);padding:46px 34px 38px;border-radius:18px 18px 0 0;margin:0;color:#fff;text-align:center;box-shadow:0 18px 36px rgba(22,78,134,.16)}
#ahcp-dir-wrapper .ahcp-dir-hero:before{content:"";position:absolute;width:340px;height:340px;border-radius:50%;right:-130px;top:-180px;background:rgba(255,255,255,.09)}
#ahcp-dir-wrapper .ahcp-dir-hero:after{content:"";position:absolute;width:220px;height:220px;border-radius:50%;left:-125px;bottom:-165px;background:rgba(255,255,255,.07)}
#ahcp-dir-wrapper .ahcp-dir-hero-inner{position:relative;z-index:1;max-width:760px}
#ahcp-dir-wrapper .ahcp-dir-hero h1{margin:0 0 10px;color:#fff;font-size:clamp(28px,3vw,42px);line-height:1.12;letter-spacing:-.03em;font-weight:800}
#ahcp-dir-wrapper .ahcp-dir-hero p{margin:0 0 24px;color:rgba(255,255,255,.92);font-size:16px;line-height:1.55}
#ahcp-dir-wrapper .ahcp-dir-search-bar{min-height:64px;padding:8px 12px 8px 20px;gap:12px;border-radius:16px;box-shadow:0 12px 25px rgba(7,39,74,.18)}
#ahcp-dir-wrapper .ahcp-dir-search-bar>span:first-child{font-size:20px;line-height:1}
#ahcp-dir-wrapper #dir_search{min-width:0;font-size:15px;color:#344054}
#ahcp-dir-wrapper .ahcp-dir-count-badge{display:inline-flex;align-items:center;min-height:36px;padding:0 12px;border-radius:10px;background:#eef4f8;color:#667085;font-size:13px;white-space:nowrap}
#ahcp-dir-wrapper .ahcp-dir-view-switcher{margin-top:18px;gap:10px}
#ahcp-dir-wrapper .ahcp-dir-switcher-btn{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:0 15px;border:1px solid rgba(255,255,255,.22);background:rgba(255,255,255,.11);color:#fff;border-radius:10px;font-size:13px}
#ahcp-dir-wrapper .ahcp-dir-switcher-btn.active,#ahcp-dir-wrapper .ahcp-dir-switcher-btn:hover{background:#fff;color:#174f86;border-color:#fff}
#ahcp-dir-wrapper .ahcp-dir-filters{padding:22px 24px 24px;background:#fff;border:1px solid #e5e9f0;border-top:0;border-radius:0 0 18px 18px;box-shadow:0 16px 34px rgba(16,24,40,.08);margin:0 0 30px}
#ahcp-dir-wrapper .ahcp-dir-filters-inner{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) auto;gap:14px;align-items:end}
#ahcp-dir-wrapper .ahcp-dir-fg{display:flex;flex-direction:column;gap:7px;min-width:0}
#ahcp-dir-wrapper .ahcp-dir-fg label{display:block;margin:0;color:#475467;font-size:12px;font-weight:700;line-height:1.2}
#ahcp-dir-wrapper .ahcp-dir-fg select{width:100%;min-height:44px;margin:0;padding:0 36px 0 13px;border:1px solid #d0d5dd;border-radius:10px;background:#fff;color:#344054;font-size:14px;box-shadow:none;outline:0}
#ahcp-dir-wrapper .ahcp-dir-fg select:focus{border-color:#166b91;box-shadow:0 0 0 4px rgba(22,107,145,.12)}
#ahcp-dir-wrapper .ahcp-dir-fg[style]{display:flex!important;flex-direction:row!important;align-items:center!important;gap:8px!important;min-height:44px!important}
#ahcp-dir-wrapper .ahcp-dir-map-btn,#ahcp-dir-wrapper .ahcp-dir-reset-btn{min-height:44px;margin:0;border-radius:10px;font-size:14px;font-weight:700;line-height:1;cursor:pointer;transition:all .18s ease}
#ahcp-dir-wrapper .ahcp-dir-map-btn{padding:0 16px;border:1px solid #067563;background:#067563;color:#fff}
#ahcp-dir-wrapper .ahcp-dir-map-btn:hover{background:#075f53;border-color:#075f53;transform:translateY(-1px)}
#ahcp-dir-wrapper .ahcp-dir-reset-btn{width:44px;padding:0;border:1px solid #d0d5dd;background:#fff;color:#667085}
#ahcp-dir-wrapper .ahcp-dir-reset-btn:hover{color:#b42318;border-color:#fecdca;background:#fff5f4}
#ahcp-dir-wrapper .ahcp-dir-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
#ahcp-dir-wrapper .ahcp-dir-card{border:1px solid #e4e7ec;border-radius:16px;background:#fff;overflow:hidden;box-shadow:0 6px 18px rgba(16,24,40,.06)}
#ahcp-dir-wrapper .ahcp-dir-card:hover{border-color:#cdd9e5;box-shadow:0 15px 32px rgba(16,24,40,.12);transform:translateY(-4px)}
#ahcp-dir-wrapper .ahcp-dir-card-photo{aspect-ratio:16/10;background:#f2f4f7}
#ahcp-dir-wrapper .ahcp-dir-card-photo img{object-position:center 22%}
#ahcp-dir-wrapper .ahcp-dir-badge-cat{top:12px;right:12px;padding:5px 9px;border-radius:99px;font-size:10px;line-height:1.1;box-shadow:0 2px 7px rgba(0,0,0,.16)}
#ahcp-dir-wrapper .ahcp-dir-card-body{padding:18px 18px 16px;gap:8px}
#ahcp-dir-wrapper .ahcp-dir-card-name{font-size:18px;line-height:1.25}
#ahcp-dir-wrapper .ahcp-dir-card-name a{color:#172b4d;text-decoration:none}
#ahcp-dir-wrapper .ahcp-dir-card-name a:hover{color:#075f8d}
#ahcp-dir-wrapper .ahcp-dir-card-title{font-size:13px;color:#176a93}
#ahcp-dir-wrapper .ahcp-dir-card-org,#ahcp-dir-wrapper .ahcp-dir-card-loc,#ahcp-dir-wrapper .ahcp-dir-langs{font-size:13px;line-height:1.45;color:#667085}
#ahcp-dir-wrapper .ahcp-dir-card-tagline{font-size:13px;color:#475467;border-left-color:#65b4c4}
#ahcp-dir-wrapper .ahcp-dir-mods{display:flex;flex-wrap:wrap;gap:6px}
#ahcp-dir-wrapper .ahcp-mod-tag,#ahcp-dir-wrapper .ahcp-espec-tag{font-size:11px;line-height:1.2;padding:5px 8px;border-radius:99px}
#ahcp-dir-wrapper .ahcp-dir-card-footer{padding:13px 18px;border-top:1px solid #eaecf0;background:#fff}
#ahcp-dir-wrapper .ahcp-dir-social-btns{display:flex;gap:6px}
#ahcp-dir-wrapper .ahcp-dir-profile-btn{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 13px;border-radius:9px;background:#185b90;color:#fff;text-decoration:none;font-size:13px}
#ahcp-dir-wrapper .ahcp-dir-profile-btn:hover{background:#10446e;color:#fff}
#ahcp-dir-wrapper #ahcp-dir-map-view{margin:0 0 30px;border-radius:16px;overflow:hidden;border:1px solid #e4e7ec;box-shadow:0 8px 22px rgba(16,24,40,.08)}
#ahcp-dir-wrapper #ahcp-dir-map{height:460px!important}

@media (max-width:980px){
 #ahcp-dir-wrapper .ahcp-dir-filters-inner{grid-template-columns:repeat(2,minmax(0,1fr)) auto}
 #ahcp-dir-wrapper .ahcp-dir-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:640px){
 #ahcp-dir-wrapper{margin:20px auto 36px;padding:0 14px}
 #ahcp-dir-wrapper .ahcp-dir-hero{padding:32px 18px 26px;border-radius:15px 15px 0 0}
 #ahcp-dir-wrapper .ahcp-dir-hero h1{font-size:27px}
 #ahcp-dir-wrapper .ahcp-dir-hero p{font-size:14px;margin-bottom:18px}
 #ahcp-dir-wrapper .ahcp-dir-search-bar{min-height:56px;padding:6px 10px 6px 15px;border-radius:13px}
 #ahcp-dir-wrapper .ahcp-dir-count-badge{display:none}
 #ahcp-dir-wrapper .ahcp-dir-view-switcher{display:grid;grid-template-columns:1fr 1fr;gap:8px}
 #ahcp-dir-wrapper .ahcp-dir-switcher-btn{padding:0 9px;font-size:12px}
 #ahcp-dir-wrapper .ahcp-dir-filters{padding:16px;border-radius:0 0 15px 15px;margin-bottom:22px}
 #ahcp-dir-wrapper .ahcp-dir-filters-inner{grid-template-columns:1fr;gap:12px}
 #ahcp-dir-wrapper .ahcp-dir-fg[style]{justify-content:flex-start!important}
 #ahcp-dir-wrapper .ahcp-dir-grid{grid-template-columns:1fr;gap:16px}
 #ahcp-dir-wrapper .ahcp-dir-card-photo{aspect-ratio:16/9}
 #ahcp-dir-wrapper .ahcp-dir-card-body{padding:16px}
 #ahcp-dir-wrapper .ahcp-dir-card-footer{padding:12px 16px}
 #ahcp-dir-wrapper #ahcp-dir-map{height:330px!important}
}
