.consultorio .topbar { background: #f9fcffed; backdrop-filter: blur(12px); }
.clinic-hero { position: relative; isolation: isolate; overflow: hidden; background: #dae9f4; }
.clinic-backdrop {
    position: absolute;
    inset: -86px 0 auto;
    width: 100%;
    height: calc(100% + 86px);
    object-fit: cover;
    object-position: 60% 56%;
    z-index: -2;
}
.clinic-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #d2e7f2b8, #d2e7f219 74%);
    z-index: -1;
}
.clinic-hero-layout { display: flex; align-items: center; min-height: clamp(470px, 44vw, 610px); padding-block: 40px; }
.clinic-panel {
    width: min(100%, 500px);
    background: #f8fcfff2;
    border: 1px solid #fff;
    border-radius: 24px;
    padding: clamp(22px, 4.2vw, 48px);
    box-shadow: 0 20px 60px #13355720;
    backdrop-filter: blur(13px);
}
.clinic-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.clinic-slides { min-height: 280px; }
.clinic-slide .eyebrow, .clinic-visit .eyebrow { color: #1055a4; margin-bottom: 12px; }
.clinic-slide h2 { font-size: clamp(2.4rem, 4vw, 3.55rem); text-wrap: pretty; }
.clinic-intro { margin: 13px 0 18px; }
.clinic-controls:not([hidden]) { display: flex; }
.clinic-controls {
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--line);
    padding-top: 12px;
    margin-top: 10px;
}
.clinic-indicators, .clinic-arrows { display: flex; align-items: center; gap: 8px; }
.clinic-controls button { cursor: pointer; }
.clinic-indicators button { display: grid; place-items: center; border: 0; padding: 0; width: 30px; height: 36px; background: transparent; }
.clinic-indicators button::before { content: ''; width: 17px; height: 4px; background: #abc4d9; border-radius: 99px; transition: background .25s, transform .25s; }
.clinic-indicators button[aria-pressed="true"]::before { background: #1055a4; transform: scaleX(1.3); }
.clinic-arrows button {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line);
    color: #1055a4;
    background: white;
    transition: background .2s, color .2s, transform .2s;
}
.clinic-arrows button:hover { background: #1055a4; color: white; transform: translateY(-2px); }
.clinic-hours { background: #e8f3fc; border-bottom: 1px solid var(--line); }
.clinic-hours-inner { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding-block: 16px; font-size: .92rem; }
.clinic-hours strong { margin-inline-end: 8px; }
.clinic-hours a { color: #1055a4; font-weight: 700; }
.clinic-hours a span { display: inline-block; transition: transform .23s; }
.clinic-hours a:hover span { transform: translateY(3px); }
.consultorio .card:not(.pending):hover { transform: translateY(-5px); }
.clinic-visit { scroll-margin-top: 86px; background: #f0f7fc; padding-block: clamp(42px, 7vw, 86px); }
.clinic-visit-grid { display: grid; grid-template-columns: .98fr 1.02fr; align-items: center; gap: clamp(24px, 6vw, 82px); }
.clinic-visit figure { position: relative; isolation: isolate; margin: 0 8px 8px 0; }
.clinic-visit figure::before { content: ''; position: absolute; inset: 10px -8px -8px 14px; border: 1px solid #94b8d5; border-radius: 22px; z-index: -1; }
.clinic-visit img { width: 100%; max-height: 440px; aspect-ratio: 1.28; object-fit: cover; border-radius: 22px; }
.clinic-timeline { list-style: none; margin: 20px 0; padding: 0; }
.clinic-timeline li { display: flex; gap: 13px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.clinic-timeline h3 { font-size: 1.17rem; margin-bottom: 5px; }
.clinic-step { display: grid; place-items: center; flex: 0 0 30px; height: 30px; border-radius: 50%; background: #d8eafb; color: #1055a4; font-weight: 700; }

@media (prefers-reduced-motion: no-preference) {
    .clinic-panel { animation: clinic-enter .6s ease both; }
    .clinic-slide:not([hidden]) { animation: clinic-enter .38s ease both; }
    .consultorio .card { transition: transform .35s ease, opacity .55s ease; }
    .clinic-timeline li:nth-child(2) { transition-delay: .08s; }
    .clinic-timeline li:nth-child(3) { transition-delay: .16s; }
    @keyframes clinic-enter { from { opacity: 0; transform: translateY(10px); } }
}
@media (max-width: 660px) {
    .clinic-hero-layout { align-items: flex-end; min-height: 0; padding-block: 120px 24px; }
    .clinic-panel { border-radius: 17px; }
    .clinic-slides { min-height: 250px; }
    .clinic-hours-inner { flex-wrap: wrap; }
    .clinic-visit-grid { grid-template-columns: 1fr; }
}
