:root {
    --navy: #123b63;
    --teal-900: #0d4277;
    --teal-700: #114f92;
    --teal-500: #0d8fd3;
    --teal-100: #dbeafe;
    --teal-50: #eff6ff;
    --blue-50: #f5f8fc;
    --ink: #2b3d4f;
    --muted: #60758a;
    --line: #e1e7ef;
    --accent: #ffc105;
    --accent-hover: #e7ad00;
    --profile-primary: #114f92;
    --profile-accent: #ffc105;
    --white: #fff;
    --shadow: 0 16px 45px rgba(17, 79, 146, .12);
    --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; left: 16px; top: -80px; padding: 10px 16px; color: var(--white); background: var(--navy); border-radius: 8px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.site-header { position: sticky; z-index: 50; top: 0; width: 100%; background: rgba(255,255,255,.97); border-bottom: 1px solid rgba(225,231,239,.9); box-shadow: 0 2px 14px rgba(17,79,146,.04); backdrop-filter: blur(12px); transition: background .22s ease, border-color .22s ease, box-shadow .22s ease; }
.header-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; }
.brand-logo { width: 230px; height: auto; }
.brand-logo-light { display: none; width: 228px; }
.site-nav { display: flex; align-items: center; gap: 32px; font-size: 14px; font-weight: 650; }
.site-nav a { color: #4b6074; transition: color .2s ease; }
.site-nav a:hover { color: var(--teal-700); }
.menu-toggle { display: none; width: 42px; height: 42px; padding: 10px; border: 1px solid var(--line); background: var(--white); border-radius: 10px; }
.menu-toggle span:not(.sr-only) { display: block; height: 2px; margin: 4px 0; background: var(--navy); }
.has-hero-header .site-header { position: fixed; background: transparent; border-bottom-color: transparent; box-shadow: none; backdrop-filter: none; }
.has-hero-header .brand-logo-dark { display: none; }
.has-hero-header .brand-logo-light { display: block; }
.has-hero-header .site-nav a { color: rgba(255,255,255,.94); text-shadow: 0 1px 10px rgba(4,32,58,.3); }
.has-hero-header .site-nav a:hover { color: var(--accent); }
.has-hero-header .menu-toggle { border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.1); }
.has-hero-header .menu-toggle span:not(.sr-only) { background: var(--white); }
.has-hero-header .site-header.is-scrolled { background-color: rgba(255,255,255,.82) !important; border-bottom-color: rgba(225,231,239,.78); box-shadow: 0 8px 30px rgba(17,79,146,.13); backdrop-filter: blur(20px) saturate(145%); -webkit-backdrop-filter: blur(20px) saturate(145%); }
.has-hero-header .site-header.is-scrolled .brand-logo-dark { display: block; }
.has-hero-header .site-header.is-scrolled .brand-logo-light { display: none; }
.has-hero-header .site-header.is-scrolled .site-nav a { color: #4b6074; text-shadow: none; }
.has-hero-header .site-header.is-scrolled .site-nav a:hover { color: var(--teal-700); }
.has-hero-header .site-header.is-scrolled .menu-toggle { border-color: var(--line); background: var(--white); }
.has-hero-header .site-header.is-scrolled .menu-toggle span:not(.sr-only) { background: var(--navy); }

.hero { position: relative; isolation: isolate; overflow: hidden; padding: 116px 0 82px; background-color: var(--teal-700); background-image: linear-gradient(90deg, rgba(9,52,94,.94) 0%, rgba(17,79,146,.82) 48%, rgba(9,42,75,.48) 100%), url('../img/hero-telemedicina.webp'); background-position: center; background-size: cover; }
.hero::after { content: ''; position: absolute; z-index: 0; right: 0; bottom: -1px; left: 0; height: 86px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0 58C315 108 657 19 1001 38c176 10 322 42 439 51v11H0Z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat; pointer-events: none; }
.hero-grid { position: relative; z-index: 1; min-height: 350px; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 56px; }
.hero-copy { padding-bottom: 50px; }
.eyebrow { display: block; margin-bottom: 11px; color: var(--teal-700); font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.hero .eyebrow { color: var(--accent); text-shadow: 0 1px 12px rgba(0,0,0,.18); }
.hero h1 { max-width: 700px; margin: 0; color: var(--white); font-size: clamp(38px, 5vw, 62px); line-height: 1.07; letter-spacing: -.045em; text-shadow: 0 3px 24px rgba(4,32,58,.28); }
.hero-copy > p { max-width: 610px; margin: 24px 0 0; color: rgba(255,255,255,.9); font-size: 19px; text-shadow: 0 2px 12px rgba(4,32,58,.24); }
.hero-art { position: relative; min-height: 320px; }
.health-cross, .pulse { display: none; }
.pulse-one { inset: 4% 12% 7%; }
.pulse-two { inset: 19% 25% 22%; }
.mini-card { position: absolute; z-index: 2; padding: 13px 17px; color: var(--navy); background: rgba(255,255,255,.94); border: 1px solid rgba(255,255,255,.7); border-radius: 13px; box-shadow: 0 16px 38px rgba(4,32,58,.22); backdrop-filter: blur(8px); font-size: 13px; font-weight: 700; }
.mini-card span { color: var(--teal-700); margin-right: 5px; }
.mini-card-one { top: 58px; right: 0; }
.mini-card-two { left: 18px; bottom: 58px; }
.search-wrap { position: relative; z-index: 2; transform: translateY(38%); }
.search-form { display: grid; grid-template-columns: 1.45fr 1fr 1fr auto; align-items: end; gap: 12px; padding: 18px; background: var(--white); border: 1px solid #dce6f0; border-radius: 16px; box-shadow: var(--shadow); }
.field label { display: block; margin: 0 0 6px 2px; color: #52677a; font-size: 12px; font-weight: 750; }
.field input, .field select { width: 100%; height: 50px; padding: 0 14px; color: var(--ink); background: #fbfdff; border: 1px solid #cedbe7; border-radius: 10px; outline: none; }
.field input:focus, .field select:focus { border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(13,143,211,.14); }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border: 0; border-radius: 10px; font-weight: 750; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: var(--ink); background: var(--accent); }
.button-primary:hover { background: var(--accent-hover); }
.button-secondary { color: var(--teal-900); background: var(--teal-50); border: 1px solid #bfd6ea; }
.search-button { height: 50px; white-space: nowrap; }

.section { padding-top: 96px; padding-bottom: 96px; }
.section-soft { background: var(--blue-50); }
.section-heading { margin-bottom: 28px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.section-heading h2, .results-heading h2 { margin: 0; color: var(--navy); font-size: clamp(27px, 3vw, 38px); line-height: 1.2; letter-spacing: -.025em; }
.section-heading > a { color: var(--teal-700); font-size: 14px; font-weight: 750; white-space: nowrap; }
.type-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.type-card { min-height: 182px; padding: 24px; display: flex; flex-direction: column; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .2s ease, border .2s ease, box-shadow .2s ease; }
.type-card:hover { transform: translateY(-4px); border-color: #a9c9e5; box-shadow: var(--shadow); }
.type-icon { width: 48px; height: 48px; margin-bottom: 25px; display: grid; place-items: center; border-radius: 14px; font-size: 30px; line-height: 1; }
.type-icon-1 { color: #114f92; background: #e5f0fb; }.type-icon-2 { color: #0d8fd3; background: #e4f5fd; }.type-icon-3 { color: #806000; background: #fff5cf; }.type-icon-4 { color: #3156a3; background: #edf1ff; }
.type-card strong { color: var(--navy); font-size: 17px; }
.type-card > span:last-child { margin-top: 3px; color: var(--muted); font-size: 13px; }
.specialty-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.specialty-grid a { min-height: 62px; padding: 14px 18px; display: flex; align-items: center; gap: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; font-weight: 700; }
.specialty-grid a > span { width: 28px; height: 28px; display: grid; place-items: center; color: var(--teal-700); background: var(--teal-50); border-radius: 8px; font-size: 21px; }
.specialty-grid a b { margin-left: auto; color: var(--teal-700); transition: transform .2s ease; }
.specialty-grid a:hover b { transform: translateX(3px); }
.muted { color: var(--muted); }
.pro-cta { min-height: 230px; padding: 48px 56px; display: flex; align-items: center; justify-content: space-between; gap: 40px; color: var(--white); background: var(--teal-700); border-radius: 24px; overflow: hidden; position: relative; }
.pro-cta::after { content: "+"; position: absolute; right: 24%; top: -75px; color: rgba(255,255,255,.04); font-size: 270px; line-height: 1; }
.pro-cta h2 { margin: 0 0 8px; font-size: 34px; line-height: 1.2; }
.pro-cta p { margin: 0; color: #d7e7f7; }
.eyebrow-light { color: #b9ddf7; }
.button-light { position: relative; z-index: 1; color: var(--ink); background: var(--accent); white-space: nowrap; }

.results-hero { position: relative; isolation: isolate; overflow: hidden; padding: 152px 0 102px; background-color: var(--teal-700); background-image: linear-gradient(90deg, rgba(9,52,94,.95) 0%, rgba(17,79,146,.83) 52%, rgba(9,42,75,.56) 100%), url('../img/hero-telemedicina.webp'); background-position: center 44%; background-size: cover; }
.results-hero::after { content: ''; position: absolute; z-index: 0; right: 0; bottom: -1px; left: 0; height: 72px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0 61C337 16 629 104 963 62c178-22 333-35 477-21v59H0Z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat; pointer-events: none; }
.results-hero > .container { position: relative; z-index: 1; }
.results-hero .eyebrow { color: var(--accent); text-shadow: 0 1px 10px rgba(4,32,58,.25); }
.results-hero h1 { margin: 0; color: var(--white); font-size: 42px; line-height: 1.15; letter-spacing: -.03em; text-shadow: 0 3px 22px rgba(4,32,58,.3); }
.results-hero > .container > p { margin: 8px 0 28px; color: rgba(255,255,255,.88); }
.search-form-compact { position: relative; z-index: 2; border-color: rgba(255,255,255,.75); box-shadow: 0 16px 38px rgba(4,32,58,.2); transform: translateY(30%); }
.results-section { padding-top: 82px; padding-bottom: 90px; }
.results-heading { margin-bottom: 26px; display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.results-heading h2 { font-size: 28px; }
.results-heading p { margin: 4px 0 0; color: var(--muted); }
.results-actions { display: flex; align-items: center; gap: 14px; }
.clear-filters { color: var(--teal-700); font-size: 14px; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.view-toggle { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--blue-50); }
.view-toggle a { min-height: 34px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; color: var(--muted); border-radius: 7px; font-size: 12px; font-weight: 750; }
.view-toggle a.is-active { color: var(--teal-900); background: var(--white); box-shadow: 0 2px 7px rgba(18,56,74,.1); }
.professional-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.professional-card { overflow: hidden; background: linear-gradient(180deg, var(--teal-50) 0, var(--teal-50) 100px, var(--white) 100px); border: 1px solid #d7e2ec; border-radius: 20px; box-shadow: 0 8px 24px rgba(17,79,146,.06); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.professional-card:hover { transform: translateY(-4px); border-color: #b8cee2; box-shadow: var(--shadow); }
.professional-photo { width: 148px; height: 148px; margin: 28px auto 0; display: block; overflow: hidden; background: var(--blue-50); border: 5px solid var(--white); border-radius: 50%; box-shadow: 0 10px 24px rgba(17, 79, 146, .18); }
.professional-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; transition: transform .25s ease; }
.professional-card:hover .professional-photo img { transform: scale(1.035); }
.professional-body { padding: 18px 22px 24px; text-align: center; }
.professional-card .chip-row { justify-content: center; }
.verified { display: inline-block; margin-bottom: 7px; color: var(--teal-700); font-size: 11px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.professional-body h3 { margin: 0; color: var(--navy); font-size: 21px; line-height: 1.25; }
.professional-title { min-height: 25px; margin: 5px 0 13px; color: var(--muted); font-size: 14px; }
.professional-rating, .profile-rating { display: flex; align-items: center; gap: 5px; color: #8a6200; }
.professional-rating { min-height: 24px; margin: -4px 0 12px; justify-content: center; font-size: 13px; }
.professional-rating > span:first-child, .rating-star { color: var(--accent); font-size: 17px; line-height: 1; }
.professional-rating strong { color: #5f4a24; }
.professional-rating small { color: var(--muted); }
.rating-empty { color: #7d9199 !important; font-size: 12px !important; font-weight: 650; }
.chip-row { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { display: inline-flex; padding: 5px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.chip-primary { color: var(--teal-900); background: var(--teal-50); border: 1px solid #c7dced; }
.professional-specialties { margin: 13px 0 18px; color: #49636f; font-size: 13px; }
.card-link { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 13px; color: var(--teal-700); background: var(--teal-50); border-radius: 9px; font-size: 13px; font-weight: 800; }
.professional-grid.is-list-view { grid-template-columns: 1fr; gap: 14px; }
.is-list-view .professional-card { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; min-height: 178px; background: linear-gradient(90deg, var(--teal-50) 0, var(--teal-50) 92px, var(--white) 92px); }
.is-list-view .professional-photo { width: 118px; height: 118px; margin: 0 0 0 24px; }
.is-list-view .professional-body { padding: 22px 28px; text-align: left; }
.is-list-view .professional-card .chip-row { justify-content: flex-start; }
.is-list-view .professional-rating { justify-content: flex-start; }
.is-list-view .professional-title { min-height: 0; margin-bottom: 9px; }
.is-list-view .professional-specialties { margin: 10px 0 13px; }
.empty-state, .state-card { max-width: 650px; margin: 20px auto; padding: 60px 34px; text-align: center; background: var(--blue-50); border: 1px solid var(--line); border-radius: 22px; }
.empty-state > span, .state-icon { width: 60px; height: 60px; margin: 0 auto 18px; display: grid; place-items: center; color: var(--teal-700); background: var(--white); border-radius: 18px; font-size: 32px; }
.empty-state h2, .state-card h1 { margin: 0 0 8px; color: var(--navy); }
.empty-state p, .state-card p { margin: 0 0 24px; color: var(--muted); }
.state-section { min-height: 62vh; padding-top: 80px; padding-bottom: 80px; }

.profile-top { position: relative; isolation: isolate; overflow: hidden; min-height: 316px; padding: 130px 0 112px; background-color: var(--profile-primary); background-position: center 42%; background-size: cover; }
.profile-top::after { content: ''; position: absolute; z-index: 0; right: 0; bottom: -1px; left: 0; height: 78px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath fill='%23f7fafd' d='M0 58C315 108 657 19 1001 38c176 10 322 42 439 51v11H0Z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat; pointer-events: none; }
.profile-top > .container { position: relative; z-index: 1; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; color: rgba(255,255,255,.72); font-size: 13px; }
.breadcrumb a { color: var(--white); font-weight: 700; }
.breadcrumb a:hover { color: var(--accent); }
.profile-section { position: relative; z-index: 2; margin-top: -112px; padding-top: 0; padding-bottom: 110px; }
.profile-section::before { content: ''; position: absolute; z-index: -1; top: 112px; bottom: 0; left: 50%; width: 100vw; background: #f7fafd; transform: translateX(-50%); }
.profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; gap: 28px; }
.profile-main { overflow: hidden; padding: 0 32px 22px; background: var(--white); border: 1px solid #d9e4ee; border-radius: 22px; box-shadow: 0 14px 42px rgba(17,79,146,.08); }
.profile-intro { display: grid; grid-template-columns: 182px 1fr; align-items: center; gap: 28px; margin: 0 -32px; padding: 36px 32px; background: linear-gradient(135deg, #f4f9fe 0%, #eaf3fb 100%); border-bottom: 1px solid var(--line); }
.profile-photo { width: 172px; height: 172px; object-fit: cover; object-position: center 18%; background: var(--blue-50); border: 6px solid var(--white); border-radius: 50%; box-shadow: 0 12px 30px rgba(17, 79, 146, .2); }
.profile-custom .verified, .profile-custom .back-link { color: var(--profile-primary); }
.profile-custom .chip-primary { color: var(--profile-primary); border-color: var(--profile-primary); }
.profile-intro h1 { margin: 0; color: var(--navy); font-size: clamp(32px, 4vw, 48px); line-height: 1.12; letter-spacing: -.035em; }
.profile-title { margin: 8px 0 16px; color: var(--muted); font-size: 18px; }
.profile-rating { margin: -7px 0 15px; }
.profile-rating strong { color: #5f4a24; font-size: 16px; }
.profile-rating > span:last-child:not(.rating-empty) { color: var(--muted); font-size: 13px; }
.profile-block { padding: 30px 0; border-bottom: 1px solid var(--line); }
.profile-block h2 { margin: 0 0 18px; color: var(--navy); font-size: 23px; }
.biography { color: #465d72; line-height: 1.8; }
.detail-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.detail-list > div { padding: 15px; display: flex; gap: 12px; background: var(--teal-50); border: 1px solid #dbe7f1; border-radius: 12px; transition: border-color .18s ease, transform .18s ease; }
.detail-list > div:hover { transform: translateY(-1px); border-color: #b8d0e5; }
.detail-icon { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; color: var(--white); background: var(--teal-700); border-radius: 9px; font-size: 21px; }
.profile-custom .detail-icon { background: var(--profile-primary); }
.detail-list p { margin: 0; }
.detail-list small { display: block; color: var(--muted); }
.info-row { padding: 12px 0; display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px dashed var(--line); }
.info-row:last-child { border: 0; }
.info-row span { color: var(--muted); }
.info-row strong { text-align: right; }
.back-link { margin-top: 28px; display: inline-flex; gap: 8px; color: var(--teal-700); font-size: 14px; font-weight: 750; }
.booking-card { position: sticky; top: 110px; padding: 32px; background: var(--white); border: 1px solid #cfdeeb; border-top: 4px solid var(--teal-700); border-radius: 20px; box-shadow: 0 14px 38px rgba(17,79,146,.11); }
.profile-custom .booking-card { border-top-color: var(--profile-primary); }
.booking-icon { width: 48px; height: 48px; display: grid; place-items: center; color: var(--teal-700); background: var(--teal-50); border-radius: 13px; }
.profile-custom .booking-icon { color: var(--profile-primary); }
.booking-card h2 { margin: 18px 0 8px; color: var(--navy); font-size: 23px; }
.booking-card p { color: var(--muted); }
.booking-card small { display: block; margin-top: 14px; color: #7b9099; line-height: 1.5; }
.schedule-days { display: grid; gap: 10px; margin: 20px 0; }
.schedule-day { padding: 11px; border: 1px solid #dce6ef; border-radius: 11px; background: #f8fbfe; }
.schedule-day-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.schedule-day-head strong { color: var(--navy); font-size: 12px; }
.schedule-day-head span { color: var(--muted); font-size: 11px; font-weight: 700; }
.schedule-times { display: flex; flex-wrap: wrap; gap: 6px; }
.schedule-time { min-width: 55px; padding: 5px 8px; color: var(--profile-primary); background: var(--white); border: 1px solid var(--profile-primary); border-radius: 8px; font-size: 11px; font-weight: 800; text-align: center; cursor: pointer; transition: color .16s ease, background .16s ease, transform .16s ease; }
.schedule-time:hover, .schedule-time:focus { color: var(--white); background: var(--profile-primary); transform: translateY(-1px); }
.booking-open { overflow: hidden; }
.booking-modal { position: fixed; z-index: 3000; inset: 0; display: none; align-items: center; justify-content: center; padding: 22px; }
.booking-modal.is-open { display: flex; }
.booking-modal-backdrop { position: absolute; inset: 0; background: rgba(8,31,53,.72); backdrop-filter: blur(5px); }
.booking-dialog { position: relative; z-index: 1; width: min(760px, 100%); max-height: min(90vh, 820px); overflow-y: auto; padding: 30px; background: var(--white); border-radius: 24px; box-shadow: 0 30px 90px rgba(4,24,42,.35); }
.booking-close { position: absolute; top: 14px; right: 16px; width: 38px; height: 38px; padding: 0; color: #657b8e; background: #f0f4f7; border: 0; border-radius: 50%; font-size: 27px; line-height: 1; }
.booking-dialog-head { padding-right: 42px; }
.booking-dialog-head h2 { margin: 0; color: var(--navy); font-size: 29px; line-height: 1.2; }
.booking-dialog-head p { margin: 6px 0 0; color: var(--muted); }
.booking-steps { display: grid; grid-template-columns: repeat(3,1fr); margin: 24px 0; padding: 0; list-style: none; }
.booking-steps li { position: relative; display: flex; align-items: center; justify-content: center; gap: 7px; color: #8a9aa5; font-size: 12px; font-weight: 750; }
.booking-steps li:not(:last-child):after { content: ''; position: absolute; z-index: -1; top: 50%; left: calc(50% + 24px); width: calc(100% - 48px); height: 2px; background: #dfe7ec; }
.booking-steps b { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #e9eff3; font-size: 11px; }
.booking-steps li.is-active, .booking-steps li.is-complete { color: var(--profile-primary); }
.booking-steps li.is-active b, .booking-steps li.is-complete b { color: #fff; background: var(--profile-primary); }
.booking-alert { display: none; margin-bottom: 15px; padding: 10px 12px; color: #93451f; background: #fff4e9; border: 1px solid #f1cfaf; border-radius: 10px; font-size: 13px; }
.booking-alert.is-visible { display: block; }
.booking-panel { display: none; }
.booking-panel.is-active { display: block; }
.booking-slot-summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 20px; padding: 15px 17px; color: var(--navy); background: linear-gradient(135deg,#f1f7fd,#e8f2fb); border: 1px solid #cfe0ed; border-radius: 14px; }
.booking-slot-summary strong { display: block; font-size: 17px; }
.booking-slot-summary span { color: var(--muted); font-size: 13px; }
.booking-slot-time { flex: 0 0 auto; padding: 8px 12px; color: #fff !important; background: var(--profile-primary); border-radius: 9px; font-size: 16px !important; font-weight: 850; }
.booking-loading { width: 100%; padding: 12px; text-align: center; }
.booking-procedures { margin: 0; padding: 0; border: 0; }
.booking-procedures legend { margin-bottom: 10px; color: var(--navy); font-size: 16px; font-weight: 800; }
#booking-procedure-list { display: grid; gap: 9px; }
.booking-procedure { position: relative; display: grid; grid-template-columns: 22px minmax(0,1fr) auto; gap: 11px; align-items: center; padding: 14px; border: 1px solid #d9e4ec; border-radius: 13px; cursor: pointer; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.booking-procedure:hover { border-color: #a9c5da; background: #f9fcff; }
.booking-procedure.is-selected { border-color: var(--profile-primary); background: #f2f8fd; box-shadow: 0 0 0 2px color-mix(in srgb, var(--profile-primary) 13%, transparent); }
.booking-procedure input { width: 18px; height: 18px; margin: 0; accent-color: var(--profile-primary); }
.booking-procedure strong { display: block; color: var(--navy); font-size: 14px; }
.booking-procedure small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.booking-procedure-price { color: var(--profile-primary); font-size: 18px; font-weight: 900; white-space: nowrap; }
.booking-help { margin-bottom: 16px; padding: 13px 15px; background: #f2f8fd; border-left: 4px solid var(--profile-primary); border-radius: 0 10px 10px 0; }
.booking-help strong, .booking-help span { display: block; }
.booking-help strong { color: var(--navy); }
.booking-help span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.booking-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.booking-fields label { color: #52677a; font-size: 12px; font-weight: 750; }
.booking-fields label.is-wide { grid-column: 1/-1; }
.booking-fields input { width: 100%; height: 46px; margin-top: 5px; padding: 0 12px; color: var(--ink); background: #fbfdff; border: 1px solid #cedbe7; border-radius: 9px; outline: none; }
.booking-fields input:focus { border-color: var(--profile-primary); box-shadow: 0 0 0 3px rgba(17,79,146,.12); }
.booking-consent { display: flex; align-items: flex-start; gap: 9px; margin-top: 17px; color: var(--muted); font-size: 12px; cursor: pointer; }
.booking-consent input { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 2px; accent-color: var(--profile-primary); }
.booking-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; padding-top: 18px; border-top: 1px solid #e4ebf0; }
.booking-actions .button { min-width: 130px; }
.booking-back { color: #52677a; background: #eef3f6; }
#booking-submit { display: none; }
.booking-success { text-align: center; }
.booking-success-icon { width: 62px; height: 62px; margin: 0 auto 14px; display: grid; place-items: center; color: #fff; background: #1e9b72; border-radius: 50%; font-size: 30px; }
.booking-success h3 { margin: 0; color: var(--navy); font-size: 24px; }
.booking-success > p { max-width: 540px; margin: 8px auto 18px; color: var(--muted); }
.booking-success-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 15px; text-align: left; }
.booking-success-summary div { padding: 11px; background: #f5f8fb; border-radius: 10px; }
.booking-success-summary small, .booking-success-summary strong { display: block; }
.booking-success-summary small { color: var(--muted); font-size: 10px; }
.booking-success-summary strong { color: var(--navy); }
.booking-payment-pending { padding: 14px; color: #725300; background: #fff7d6; border: 1px solid #efd47b; border-radius: 11px; }
.booking-payment-pending strong, .booking-payment-pending span { display: block; }
.booking-payment-pending span { margin-top: 3px; font-size: 12px; }
.button-disabled { width: 100%; color: #789097; background: #e9eff1; cursor: not-allowed; }
.button-disabled:hover { transform: none; }

.site-footer { padding: 56px 0 24px; color: #d7e7f7; background: #114f92; }
.footer-inner { display: grid; grid-template-columns: 1.8fr 1fr 1fr; gap: 50px; }
.brand-logo-footer { width: 205px; }
.footer-inner p { max-width: 320px; color: #c1d8ee; }
.footer-inner > div:not(:first-child) { display: flex; flex-direction: column; gap: 10px; }
.footer-inner strong { color: var(--white); }
.footer-inner a:not(.brand):hover { color: var(--white); }
.footer-bottom { margin-top: 38px; padding-top: 20px; color: #b4cee6; border-top: 1px solid rgba(255,255,255,.16); font-size: 12px; }

@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; min-height: auto; }
    .hero-art { display: none; }
    .hero-copy { padding-bottom: 20px; }
    .search-wrap { transform: translateY(35%); }
    .search-form { grid-template-columns: 1fr 1fr; }
    .field-main { grid-column: 1 / -1; }
    .search-button { align-self: end; }
    .section:first-of-type { padding-top: 120px; }
    .type-grid { grid-template-columns: repeat(2, 1fr); }
    .professional-grid { grid-template-columns: repeat(2, 1fr); }
    .profile-layout { grid-template-columns: 1fr; }
    .booking-card { position: static; }
}

@media (max-width: 700px) {
    .container { width: min(100% - 28px, 1160px); }
    .header-inner { min-height: 66px; }
    .brand-logo { width: 205px; }
    .brand-logo-light { width: 202px; }
    .menu-toggle { display: block; }
    .site-nav { position: absolute; left: 14px; right: 14px; top: 72px; padding: 14px; display: none; align-items: stretch; flex-direction: column; gap: 3px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
    .site-nav.is-open { display: flex; }
    .site-nav a { padding: 11px 12px; }
    .has-hero-header .site-nav.is-open a { color: #4b6074; text-shadow: none; }
    .has-hero-header .site-nav.is-open a:hover { color: var(--teal-700); }
    .hero { padding-top: 104px; }
    .hero h1 { font-size: 40px; }
    .hero-copy > p { font-size: 16px; }
    .search-wrap { padding-bottom: 30px; transform: none; }
    .search-form, .search-form-compact { grid-template-columns: 1fr; }
    .search-form-compact { transform: none; }
    .field-main { grid-column: auto; }
    .section, .profile-section { padding-top: 64px; padding-bottom: 64px; }
    .section:first-of-type { padding-top: 64px; }
    .section-heading { align-items: flex-start; flex-direction: column; }
    .type-grid, .specialty-grid, .professional-grid, .detail-list { grid-template-columns: 1fr; }
    .type-card { min-height: 150px; }
    .type-icon { margin-bottom: 16px; }
    .pro-cta { padding: 34px 26px; align-items: flex-start; flex-direction: column; }
    .results-hero { padding: 112px 0 96px; background-position: 64% center; }
    .results-hero h1 { font-size: 34px; }
    .results-heading { align-items: flex-start; flex-direction: column; }
    .results-actions { width: 100%; justify-content: space-between; }
    .view-toggle { margin-left: auto; }
    .is-list-view .professional-card { grid-template-columns: 102px minmax(0, 1fr); min-height: 154px; background: linear-gradient(90deg, var(--teal-50) 0, var(--teal-50) 62px, var(--white) 62px); }
    .is-list-view .professional-photo { width: 84px; height: 84px; margin-left: 12px; border-width: 4px; }
    .is-list-view .professional-body { padding: 17px 14px; }
    .is-list-view .professional-body h3 { font-size: 18px; }
    .is-list-view .verified, .is-list-view .professional-specialties { display: none; }
    .profile-intro { grid-template-columns: 1fr; }
    .profile-main { padding: 0 18px 18px; border-radius: 18px; }
    .profile-intro { margin: 0 -18px; padding: 28px 18px; }
    .profile-top { min-height: 276px; padding: 104px 0 96px; background-position: 65% center; }
    .profile-section { margin-top: -82px; padding-top: 0; padding-bottom: 64px; }
    .profile-section::before { top: 82px; }
    .profile-photo { width: 150px; height: 150px; }
    .info-row { align-items: flex-start; flex-direction: column; gap: 2px; }
    .info-row strong { text-align: left; }
    .footer-inner { grid-template-columns: 1fr; gap: 28px; }
    .booking-modal { padding: 0; align-items: flex-end; }
    .booking-dialog { width: 100%; max-height: 94vh; padding: 23px 16px 18px; border-radius: 22px 22px 0 0; }
    .booking-dialog-head h2 { font-size: 24px; }
    .booking-steps li span { display: none; }
    .booking-fields { grid-template-columns: 1fr; }
    .booking-fields label.is-wide { grid-column: auto; }
    .booking-actions { position: sticky; bottom: -18px; margin-right: -16px; margin-left: -16px; padding: 13px 16px 18px; background: #fff; }
    .booking-actions .button { flex: 1; min-width: 0; padding-right: 10px; padding-left: 10px; }
    .booking-procedure { grid-template-columns: 22px minmax(0,1fr); }
    .booking-procedure-price { grid-column: 2; font-size: 16px; }
    .booking-success-summary { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
