/* One visual component for the homepage and every existing professional card. */
.bd-doctor-photo > a:focus-visible { outline-offset: -4px; }
.britez-site .bd-doctor-card {
    min-width: 0; padding: 0; display: flex; flex-direction: column; overflow: hidden;
    border: 1px solid #e2e8f0b3; border-radius: 24px; background: #fff;
    box-shadow: 0 1px 2px #0000000d; transition: box-shadow .3s ease;
}
.britez-site .bd-doctor-card:hover { box-shadow: 0 20px 25px -5px #0000001a, 0 8px 10px -6px #0000001a; }
.britez-site .bd-doctor-photo {
    position: relative; overflow: hidden; aspect-ratio: 1; width: 100%; margin: 0;
    flex: 0 0 auto; background: #edf0f2; border-radius: 23px 23px 0 0;
}
.britez-site .bd-doctor-photo > a { display: block; width: 100%; height: 100%; padding: 0; margin: 0; }
.britez-site .bd-doctor-photo img {
    display: block; width: 100%; height: 100%; max-width: none; max-height: none;
    margin: 0; aspect-ratio: auto; object-fit: cover; object-position: center 34%;
    border-radius: 0; transition: transform .5s ease;
}
.britez-site .bd-doctor-card:hover .bd-doctor-photo img { transform: scale(1.05); }
/* These tall portraits need a higher focal point to keep the whole head visible. */
.britez-site .bd-doctor-mario .bd-doctor-photo img,
.britez-site .bd-doctor-andrea .bd-doctor-photo img,
.britez-site .bd-doctor-amaya .bd-doctor-photo img {
    object-position: center 6%; transform-origin: center top;
}
.britez-site .bd-doctor-copy { min-width: 0; padding: 24px; flex: 1; }
.britez-site .bd-doctor-copy h3 {
    margin: 0; color: #0b1d33; font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem; font-weight: 700; line-height: 1.4; letter-spacing: normal; text-wrap: auto;
}
.britez-site .bd-doctor-copy h3 a { color: inherit; text-decoration: none; }
.britez-site .bd-doctor-copy p { color: #475569; font-size: .875rem; line-height: 1.625; margin: 12px 0 0; }
.britez-site .bd-doctor-copy h3 + p { color: #87632e; font-size: .75rem; font-weight: 600; letter-spacing: .025em; text-transform: uppercase; margin-top: 2px; }
.entry-content .bd-doctor-copy > a,
.entry-content .bd-doctor-copy > p:has(> a:only-child) {
    display: block; margin: 16px 0 0; padding: 16px 0 0; border-top: 1px solid #f1f5f9;
    color: #006d9f; font-size: .8rem; line-height: 1.6;
}
.entry-content .bd-doctor-copy > a { min-height: 44px; }
.entry-content a.bd-booking-link, .entry-content a.bd-whatsapp-link {
    display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
    padding: 13px 20px; border: 1px solid #006d9f; border-radius: 12px;
    background: #006d9f; color: white; font-size: .9rem; font-weight: 600; line-height: 1.5;
    text-decoration: none; text-align: center; max-width: 100%; box-sizing: border-box;
}
.entry-content a.bd-whatsapp-link { color: #14664b; background: #edf7f3; border-color: #bedecf; }
.entry-content a.bd-booking-link:hover { background: #085779; border-color: #085779; }
.entry-content a.bd-whatsapp-link:hover { background: #dceee5; }
.entry-content .bd-doctor-card:only-child { max-width: 460px; }
.odontologia-pilot .entry-content .editorial-section > .bd-doctor-card { max-width: 320px; margin-inline: auto; }
@media (max-width: 740px) {
    .britez-site .bd-doctor-card { padding: 0; }
    .britez-site .bd-doctor-copy { padding: 24px; }
    .entry-content .smile-actions { align-items: stretch; }
    .entry-content .smile-actions a { flex-basis: 100%; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .britez-site .bd-doctor-card, .britez-site .bd-doctor-photo img { transition: none; }
    .britez-site .bd-doctor-card:hover .bd-doctor-photo img { transform: none; }
}

/* Full biographies retain their original content and anchors. */
.entry-content .profile-intro {
    display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr); gap: 32px;
    align-items: start; padding: 28px; background: #fbf9f5;
    border: 1px solid #e6dfd4; border-radius: 24px;
}
.entry-content .profile-portrait { margin: 0; min-width: 0; }
.entry-content .profile-portrait img {
    display: block; width: 100%; height: auto; max-height: none; margin: 0;
    aspect-ratio: 3 / 4; object-fit: cover; object-position: center 34%; border-radius: 20px;
}
.entry-content .profile-intro-copy { min-width: 0; }
.entry-content .profile-intro-copy > h2 { margin: 0 0 20px; font-size: clamp(1.6rem, 2.5vw, 2.1rem); line-height: 1.25; }
.entry-content .profile-intro-copy > p { font-size: .95rem; line-height: 1.8; margin: 0 0 20px; }
.entry-content .profile-actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; margin-top: 24px; }
.entry-content .profile-actions a { margin: 0; flex: 1 1 160px; }
.entry-content .profile-social-links { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.entry-content .profile-supporting-media { margin-top: 28px; padding: 24px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 24px; }
.entry-content .profile-supporting-media figure { margin: 0; }
.entry-content .profile-supporting-media img { display: block; width: auto; max-width: 100%; max-height: 420px; margin: 0 auto; border-radius: 20px; }
.entry-content .doctor-profile-section > ul {
    list-style: none; padding: 0; margin: 24px 0; display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
}
.entry-content .doctor-profile-section > ul > li {
    margin: 0; padding: 20px; color: #354b63; background: #f8fafc;
    border: 1px solid #e2e8f0; border-top: 3px solid #c79d63; border-radius: 16px;
}
@media (max-width: 1000px) {
    .entry-content .profile-intro { grid-template-columns: minmax(0, 1fr); }
    .entry-content .profile-portrait { max-width: 400px; width: 100%; margin: 0 auto; }
}
@media (max-width: 740px) {
    .entry-content .profile-intro { padding: 20px; gap: 24px; }
    .entry-content .profile-actions a { flex-basis: 100%; }
    .entry-content .profile-supporting-media { padding: 16px; }
    .entry-content .doctor-profile-section > ul { grid-template-columns: minmax(0, 1fr); }
}
