/* Public profile and private visual preview share the same local component. */
.public-card-page {margin:0;background:var(--salud-ground,#fafaf9);}
.profile-main {width:min(1160px,calc(100% - 64px));margin:0 auto 32px;}
.presence-profile {min-width:0;overflow-wrap:anywhere;font:16px/1.6 "Segoe UI",system-ui,sans-serif;color:var(--salud-ink,#20364b);}
.profile-cover {display:block;width:100%;height:auto;aspect-ratio:3/1;object-fit:cover;}
.profile-identity-content {display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);background:var(--salud-lavender,#eeeaf0);}
.profile-overview {display:grid;grid-template-columns:112px minmax(0,1fr);align-content:center;align-items:start;gap:20px 28px;padding:36px;background:var(--salud-ink,#20364b);color:white;min-width:0;}
.profile-portrait {width:112px;height:112px;border:4px solid white;border-radius:50%;background:#eeeaf0;position:relative;}
.profile-portrait img {display:block;width:100%;height:100%;border-radius:50%;object-fit:cover;}
.profile-fallback {display:flex;align-items:center;justify-content:center;height:100%;font:3rem Georgia,serif;color:#6b506d;}
.has-cover .profile-portrait {margin-top:-64px;}
.profile-name :is(h1,h2) {font:normal clamp(1.875rem,3vw,2.75rem)/1.12 Georgia,serif;letter-spacing:-.03em;margin:0;color:white;text-wrap:balance;}
.profile-specialty {color:#e0cfe5;font-size:1.0625rem;line-height:1.5;font-weight:500;margin:16px 0 0;}
.profile-location {color:#e1e6eb;margin:6px 0 0;font-size:.9375rem;}
.presence-profile .founder-badge {display:inline-block;margin-top:14px;padding:0;color:#eddbac;background:none;border:0;border-radius:0;font-size:.8125rem;font-weight:500;}
.profile-logo {width:64px;height:48px;object-fit:contain;grid-column:1;background:white;}
.profile-intro {grid-column:1/-1;white-space:pre-line;max-width:65ch;margin:0;color:#e1e6eb;}
.profile-header-action {grid-column:2;}
.profile-header-action .profile-action-primary {background:white;border-color:white;color:#20364b;min-width:160px;}
.profile-credentials {align-self:center;padding:32px;min-width:0;}
.profile-credentials h2 {font-size:1rem;font-weight:600;margin:0 0 24px;color:#6b506d;}
.profile-facts {display:grid;gap:20px;margin:0;}
.profile-facts dt {font-size:.8125rem;color:#56616d;font-weight:500;}
.profile-facts dd {margin:4px 0 0;white-space:pre-line;}
.profile-credentials .profile-facts {grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 16px;}
.profile-institution {grid-column:1/-1;}
.profile-credentials dd {font-size:.9375rem;line-height:1.6;font-variant-numeric:tabular-nums;}
.profile-identity-content:not(:has(.profile-credentials)) {grid-template-columns:1fr;}
.profile-nav {display:flex;flex-wrap:wrap;gap:8px 32px;border-bottom:1px solid var(--salud-line,#dcdde1);padding:8px 0;}
.profile-nav a {display:flex;align-items:center;min-height:44px;color:#6b506d;font-size:.875rem;font-weight:600;text-decoration:none;text-underline-offset:5px;}
.profile-columns {display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:48px;align-items:start;padding-block:36px;}
.profile-detail,.profile-consultorio {min-width:0;}
.profile-consultorio {border-left:1px solid var(--salud-line,#dcdde1);padding-left:32px;}
.profile-section + .profile-section {border-top:1px solid var(--salud-line,#dcdde1);padding-top:24px;margin-top:24px;}
.profile-section h2 {font:normal 1.75rem/1.2 Georgia,serif;letter-spacing:-.02em;margin:0 0 24px;color:#20364b;}
.profile-consultorio h2 {font:600 1.125rem/1.4 "Segoe UI",system-ui,sans-serif;margin-bottom:16px;}
.profile-section p {margin:0 0 16px;max-width:65ch;color:#56616d;}
.profile-section p:last-child {margin-bottom:0;}
.presence-profile [id] {scroll-margin-block:24px;}
.profile-services {list-style:none;margin:0;padding:0;}
.profile-service {padding:24px 0;}
.profile-service:first-child {padding-top:0;}
.profile-service:last-child {padding-bottom:0;}
.profile-service + .profile-service {border-top:1px solid var(--salud-line,#dcdde1);}
.profile-service h3 {font-size:1.125rem;line-height:1.4;font-weight:600;margin:0 0 10px;color:#20364b;}
.profile-service-detail {min-width:0;}
.profile-service p {white-space:pre-line;line-height:1.7;margin-bottom:12px;}
.profile-service .profile-price {color:#6b506d;font-size:.875rem;font-weight:500;margin:12px 0 0;}
.profile-service:target {background:#eeeaf0;}
.profile-contact-actions {display:grid;grid-template-columns:1fr;gap:10px;margin-bottom:20px;}
.profile-action {display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 16px;border:1px solid #bcbfc7;border-radius:4px;color:#20364b;background:white;font-weight:600;font-size:.9375rem;line-height:1.5;text-align:center;text-decoration:none;touch-action:manipulation;transition:background-color 160ms ease,transform 100ms ease;}
.profile-action-primary {background:#20364b;border-color:#20364b;color:white;}
.profile-action:active {transform:translateY(1px);}
.profile-phone {display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px;border-top:1px solid #dcdde1;padding-top:16px;}
.profile-phone-label {flex-basis:100%;font-size:.8125rem;color:#56616d;}
.profile-phone-number {display:inline-flex;align-items:center;min-height:44px;font-size:1.5rem;letter-spacing:.015em;text-decoration:none;color:#20364b;font-variant-numeric:tabular-nums;}
.profile-copy {min-height:44px;padding:8px 0;border:0;background:none;color:#6b506d;font:600 .8125rem "Segoe UI",system-ui,sans-serif;text-decoration:underline;text-underline-offset:4px;cursor:pointer;}
.profile-copy[hidden] {display:none;}
.profile-copy-status {flex-basis:100%;font-size:.8125rem;color:#6b506d;}
.profile-copy-status:empty {display:none;}
.profile-text-link {display:inline-flex;flex-wrap:wrap;align-items:center;gap:4px;min-height:44px;color:#6b506d;text-underline-offset:4px;}
.profile-new-window {font-size:.8125rem;}
.profile-multiline {white-space:pre-line;}
.presence-profile :is(a,button):focus-visible {outline:3px solid #6b506d;outline-offset:4px;}
.profile-overview :is(a,button):focus-visible {outline-color:#e0cfe5;}
.profile-preview {margin-top:24px;}
@media(hover:hover) {
 .profile-nav a:hover {text-decoration:underline;}
 .profile-action:hover {background:#eeeaf0;}
 .profile-action-primary:hover {background:#314c62;color:white;}
 .profile-header-action .profile-action-primary:hover {background:#eeeaf0;color:#20364b;}
 .profile-phone-number:hover {text-decoration:underline;text-underline-offset:5px;}
}
@media(max-width:1000px) {
 .profile-identity-content {grid-template-columns:1fr;}
 .profile-overview {grid-template-columns:112px minmax(0,1fr);padding:32px;}
 .profile-name :is(h1,h2) {font-size:2.5rem;max-width:560px;}
 .profile-credentials {padding:24px 32px;width:100%;}
 .profile-credentials h2 {margin-bottom:16px;}
 .profile-credentials .profile-facts {grid-template-columns:2fr 1fr 1fr;}
 .profile-institution {grid-column:auto;}
 .profile-columns {grid-template-columns:minmax(0,1fr) 260px;gap:28px;}
 .profile-consultorio {padding-left:24px;}
}
@media(max-width:700px) {
 .profile-columns {grid-template-columns:1fr;gap:32px;}
 .profile-consultorio {border-left:0;padding-left:0;border-top:1px solid #dcdde1;padding-top:28px;}
 .profile-contact-actions {grid-template-columns:repeat(2,minmax(0,1fr));}
 .profile-contact-actions .profile-action-primary {grid-column:1/-1;}
 .profile-credentials .profile-facts {grid-template-columns:repeat(2,minmax(0,1fr));}
 .profile-institution {grid-column:1/-1;}
}
@media(max-width:620px) {
 .profile-main {width:calc(100% - 32px);margin-bottom:16px;}
 .profile-overview {grid-template-columns:72px minmax(0,1fr);gap:20px 16px;padding:24px 20px;}
 .profile-portrait {width:72px;height:72px;border-width:3px;}
 .profile-name :is(h1,h2) {font-size:1.875rem;}
 .profile-specialty {font-size:.9375rem;margin-top:12px;}
 .profile-location {font-size:.875rem;}
 .profile-header-action {grid-column:1/-1;}
 .profile-header-action .profile-action {width:100%;}
 .profile-credentials {padding:24px 20px;}
 .profile-credentials dd {font-size:.875rem;}
 .profile-nav {gap:8px 24px;}
 .profile-columns {padding-top:28px;}
 .profile-service {padding-block:20px;}
 .profile-cover {aspect-ratio:2/1;}
 .has-cover .profile-portrait {margin-top:-48px;}
}
@media(max-width:350px) {
 .profile-overview {grid-template-columns:1fr;padding:20px;}
 .profile-name :is(h1,h2) {font-size:1.875rem;}
 .profile-header-action {grid-column:1;}
 .profile-credentials .profile-facts {grid-template-columns:1fr;}
 .profile-contact-actions {grid-template-columns:1fr;}
}
@media(prefers-reduced-motion:reduce) {
 .public-card-page {scroll-behavior:auto;}
 .presence-profile * {animation:none!important;transition:none!important;}
 .profile-action:active {transform:none;}
}

/* Refinement starts below .profile-identity. All hero styles remain unchanged. */
.profile-nav a {color:var(--salud-purple-text);}
.profile-columns {grid-template-columns:minmax(0,1fr) 360px;gap:40px;padding-block:40px;}
.profile-columns .profile-section h2 {margin-bottom:20px;color:var(--salud-purple-text);}
.profile-columns .profile-services {display:grid;gap:12px;}
.profile-columns .profile-service {padding:0;border:1px solid var(--salud-line);border-radius:12px;background:var(--salud-paper,#fff);}
.profile-columns .profile-service:target {border-color:var(--salud-purple);}
.profile-columns .profile-service-disclosure {border-radius:inherit;}
.profile-service-disclosure summary {display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:64px;padding:18px 24px;border-radius:11px;list-style:none;cursor:pointer;touch-action:manipulation;}
.profile-service-disclosure summary::-webkit-details-marker {display:none;}
.profile-columns .profile-service h3 {margin:0;min-width:0;line-height:1.5;font-size:1.0625rem;}
.profile-service-toggle {position:relative;flex:none;width:28px;height:28px;color:var(--salud-purple-text);}
.profile-service-toggle::before,.profile-service-toggle::after {content:"";position:absolute;top:13px;left:7px;width:14px;height:2px;border-radius:1px;background:currentColor;}
.profile-service-toggle::after {transform:rotate(90deg);transition:transform 180ms var(--salud-ease);}
.profile-service-disclosure[open] .profile-service-toggle::after {transform:rotate(0);}
.profile-service-disclosure[open] summary {background:var(--salud-ground);border-radius:11px 11px 0 0;}
.profile-service-disclosure .profile-service-detail {padding:20px 24px 24px;max-width:65ch;}
.profile-columns .profile-service .profile-price {color:var(--salud-ink);}
.profile-columns .profile-consultorio {padding:24px;border:1px solid var(--salud-line);border-radius:20px;background:var(--salud-paper,#fff);}
.profile-columns .profile-consultorio .profile-section+.profile-section {border-top:0;padding-top:0;margin-top:28px;}
.profile-columns .profile-consultorio h2 {color:var(--salud-purple-text);margin-bottom:16px;}
.profile-columns .profile-contact-actions {gap:10px;margin-bottom:20px;grid-template-columns:1fr;}
.profile-columns .profile-action {border-radius:10px;border-color:var(--salud-line);color:var(--salud-ink);}
.profile-columns .profile-action-primary {color:white;background:var(--salud-ink);border-color:var(--salud-ink);}
.profile-columns .profile-phone {padding:16px 0 0;border-top:1px solid var(--salud-line);border-radius:0;background:none;}
.profile-columns .profile-phone-number {font-size:1.375rem;}
.profile-columns .profile-facts {gap:20px;}
.profile-columns .profile-facts dt {font-weight:600;color:var(--salud-ink);}
.profile-columns .profile-facts dd {margin-top:6px;color:var(--salud-ink);line-height:1.65;}
.profile-columns :is(.profile-copy,.profile-copy-status,.profile-text-link) {color:var(--salud-purple-text);}
.profile-columns :is(a,button,summary):focus-visible,.profile-nav a:focus-visible {outline:3px solid var(--salud-purple-text);outline-offset:4px;}
/* Native details works without JS. Supporting browsers add reversible expansion. */
@supports (interpolate-size:allow-keywords) and (transition-behavior:allow-discrete) {
 .profile-service-disclosure {interpolate-size:allow-keywords;}
 .profile-service-disclosure::details-content {block-size:0;opacity:0;overflow:clip;transition:block-size 180ms var(--salud-ease),opacity 140ms ease,content-visibility 180ms allow-discrete;}
 .profile-service-disclosure[open]::details-content {block-size:auto;opacity:1;}
}
@media(hover:hover) {
 .profile-service-disclosure summary:hover {background:var(--salud-ground);}
 .profile-columns .profile-action:hover {background:var(--salud-purple-soft);}
 .profile-columns .profile-action-primary:hover {background:#314c62;text-decoration:underline;text-underline-offset:4px;}
}
@media(max-width:1000px) {
 .profile-columns {grid-template-columns:minmax(0,1fr) 300px;gap:24px;}
 .profile-columns .profile-consultorio {padding:20px;}
 .profile-service-disclosure summary {padding:18px 20px;}
 .profile-service-disclosure .profile-service-detail {padding:18px 20px 20px;}
}
@media(max-width:760px) {
 .profile-columns {grid-template-columns:minmax(0,1fr);gap:28px;padding-block:28px;}
 .profile-columns .profile-consultorio {padding:24px;}
}
@media(max-width:350px) {
 .profile-columns .profile-consultorio {padding:20px 16px;}
 .profile-service-disclosure summary {padding:18px 16px;gap:12px;}
 .profile-service-disclosure .profile-service-detail {padding:18px 16px 20px;}
}
@media(prefers-reduced-motion:reduce) {
 .profile-service-disclosure::details-content,.profile-service-toggle::after {transition:none;}
}

/* Desktop follows the approved identity split. Mobile keeps its own composition. */
@media(min-width:1001px) {
 .profile-columns {grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:0;}
 .profile-columns .profile-detail {padding-right:48px;}
 .profile-columns .profile-consultorio {padding:0 0 0 32px;border:0;border-radius:0;background:none;}
 .profile-columns .profile-consultorio .profile-section:first-child h2 {font:normal 1.75rem/1.2 Georgia,serif;letter-spacing:-.02em;margin-bottom:20px;}
 .profile-columns .profile-consultorio .profile-section+.profile-section {margin-top:24px;}
 .profile-columns .profile-services {gap:0;border-top:1px solid var(--salud-line);}
 .profile-columns .profile-service {border:0;border-bottom:1px solid var(--salud-line);border-radius:0;background:none;}
 .profile-columns .profile-service:target {border-bottom-color:var(--salud-purple);}
 .profile-columns .profile-service-disclosure summary {padding:16px 0;border-radius:0;}
 .profile-columns .profile-service-disclosure[open] summary {background:none;}
 .profile-columns .profile-service-disclosure .profile-service-detail {padding:0 36px 24px 0;}
 .profile-columns .profile-contact-actions {grid-template-columns:repeat(2,minmax(0,1fr));}
 .profile-columns .profile-contact-actions :is(.profile-action-primary,.profile-web) {grid-column:1/-1;}
 .profile-columns .profile-contact-actions .profile-web:nth-child(3) {grid-column:auto;}
 .profile-columns .profile-contact-actions .profile-action:last-child:nth-child(2) {grid-column:1/-1;}
 .profile-columns .profile-facts {grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 24px;}
 .profile-columns .profile-facts .profile-hours {grid-column:1/-1;}
}
