/* LABAHT — colores tomados del artefacto original. */
@layer reset, tokens, base, components, sections, responsive, accessibility;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  body, h1, h2, h3, p, blockquote { margin: 0; }
  button, input { font: inherit; }
  button, a, input { -webkit-tap-highlight-color: transparent; }
  img, svg { display: block; max-width: 100%; }
  [hidden] { display: none !important; }
  button { cursor: pointer; }
  a { color: inherit; }
}

@layer tokens {
  :root {
    color-scheme: light;
    --blue: #0B57B5;
    --blue-press: #08468F;
    --navy: #0A2350;
    --yellow: #F2C318;
    --white: #FFFFFF;
    --ink: #151B29;
    --muted: #6B7180;
    --tile: #F4F5F8;
    --line: #E3E5EB;
    --blue-soft: #EDF4FD;
    --container: 1200px;
    --radius: 20px;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  }
}

@layer base {
  html { scroll-behavior: smooth; scroll-padding-top: 100px; }
  body { background: var(--white); color: var(--ink); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
  h1, h2, h3 { line-height: 1.12; text-wrap: balance; }
  h1, h2 { letter-spacing: -.045em; font-weight: 650; }
  p { text-wrap: pretty; }
  button { color: inherit; }
  a { text-decoration: none; text-underline-offset: 4px; }
  ::selection { background: var(--yellow); color: var(--navy); }
  .container { width: min(var(--container), calc(100% - 80px)); margin-inline: auto; }
  .icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
  .svg-library { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
  .skip-link { position: fixed; top: 12px; left: 20px; z-index: 200; padding: 10px 20px; border-radius: 8px; background: var(--yellow); color: var(--navy); transform: translateY(-160%); }
  .skip-link:focus { transform: none; }
  .eyebrow { display: flex; align-items: center; gap: 11px; color: var(--blue); font-size: 12px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
  .eyebrow-line { display: inline-block; width: 27px; height: 3px; flex: none; background: var(--yellow); }
  .section { padding-block: 104px; }
  .section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 44px; }
  .section-heading h2 { margin-top: 16px; font-size: clamp(32px, 4vw, 46px); }
  .section-heading h2 span { color: var(--blue); }
  .section-intro { max-width: 300px; color: var(--muted); font-size: 15px; }
}

@layer components {
  .button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 52px; padding: 14px 21px; border: 1px solid transparent; border-radius: 9px; font-size: 14px; font-weight: 600; line-height: 1.3; text-align: center; transition: background .2s, transform .2s var(--ease), box-shadow .2s; }
  .button-primary { background: var(--blue); color: var(--white); }
  .button-yellow { background: var(--yellow); color: var(--navy); }
  .button .icon { width: 19px; height: 19px; }
  .button:active { transform: translateY(1px); }
  .text-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; color: var(--blue); font-size: 14px; font-weight: 600; }
  .text-link .icon { width: 18px; height: 18px; }
  .topline { color: #DDE7F5; background: var(--navy); font-size: 11px; letter-spacing: .02em; }
  .topline-inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; }
  .topline a { display: flex; align-items: center; gap: 8px; }
  .topline a span { color: var(--white); font-weight: 600; }
  .topline .icon { width: 13px; height: 13px; color: var(--yellow); }
  .header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: #FFFFFFF5; backdrop-filter: blur(16px); }
  .nav-inner { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
  .brand { display: inline-flex; align-items: center; min-height: 44px; flex: none; }
  .brand img { width: 240px; height: 60px; object-fit: cover; object-position: center; }
  .nav-links { display: flex; align-items: center; gap: 30px; }
  .nav-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 500; transition: color .2s; }
  .nav-links a[aria-current="page"] { color: var(--blue); }
  .nav-links .nav-contact { min-height: 43px; gap: 20px; padding-inline: 18px; border: 1px solid var(--line); border-radius: 8px; color: var(--blue); }
  .nav-contact .icon { width: 17px; height: 17px; }
  .menu-toggle { display: none; width: 44px; height: 44px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
  .menu-toggle span { display: block; height: 2px; margin: 5px 0; background: var(--navy); transition: transform .2s; }
  .floating-contact { position: fixed; right: 25px; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 40; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 14px 18px; border: 1px solid #FFFFFF40; border-radius: 999px; color: var(--white); background: var(--blue); box-shadow: 0 6px 24px #0A235020; font-size: 12px; font-weight: 600; transition: transform .2s, background .2s; }
  .floating-contact .icon { width: 24px; height: 24px; }
  dialog { width: min(540px, calc(100% - 36px)); max-height: calc(100dvh - 48px); margin: auto; padding: 0; border: 1px solid var(--line); border-radius: 20px; color: var(--ink); box-shadow: 0 24px 80px #05152B38; }
  dialog::backdrop { background: #041632B3; backdrop-filter: blur(5px); }
  body:has(dialog[open]) { overflow: hidden; }
  .dialog-inner { position: relative; padding: 40px; }
  .dialog-close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--tile); font-size: 24px; }
  .dialog-icon { width: 64px; margin-block: 30px 22px; color: var(--blue); }
  .dialog-icon svg { width: 56px; height: 56px; stroke-width: 1.4; }
  .service-dialog { width: min(620px, calc(100% - 36px)); }
  .dialog-media { margin: 20px 0 24px; border-radius: 12px; overflow: hidden; background: var(--tile); }
  .dialog-media img { width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: 240px; object-fit: cover; }
  .dialog-media[data-service="rayos-x"] img { object-fit: contain; background: #EAF0F5; }
  .dialog-media figcaption { padding: 7px 12px; color: var(--muted); font-size: 11px; line-height: 1.5; }
  .dialog-inner:has(.dialog-media:not([hidden])) .dialog-icon { display: none; }
  .dialog-inner h2 { padding-right: 10px; margin-bottom: 15px; font-size: 32px; }
  .dialog-inner > p:not(.eyebrow) { color: var(--muted); }
  .dialog-note { display: flex; gap: 12px; margin-block: 24px; padding: 17px; border-radius: 10px; background: var(--blue-soft); color: var(--navy); font-size: 13px; }
  .dialog-inner > .button { width: 100%; }
  .photo-dialog { width: min(1000px, calc(100% - 32px)); background: var(--navy); color: var(--white); border-color: #FFFFFF30; }
  .photo-dialog figure { margin: 0; padding: 64px 20px 18px; }
  .photo-dialog .dialog-close { z-index: 1; color: var(--navy); background: var(--white); }
  .photo-dialog img { width: 100%; height: min(72dvh, 1000px); object-fit: contain; }
  .photo-dialog figcaption { margin-top: 14px; text-align: center; font-size: 14px; }
  .number-dialog { padding: 40px 28px 28px; }
  .number-dialog h2 { margin-bottom: 14px; padding-right: 30px; font-size: 26px; }
  .number-dialog input { width: 100%; padding: 13px; margin-block: 20px; border: 1px solid var(--line); border-radius: 8px; font-size: 22px; color: var(--navy); }
}

@layer sections {
  /* Portada institucional proporcionada por el usuario, visible completa. */
  .hero { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); align-items: center; gap: 28px; padding-block: 64px 54px; }
  .hero-copy { padding-block: 15px; }
  .hero h1 { margin-block: 24px; font-size: clamp(42px, 4.6vw, 65px); line-height: 1.08; }
  .hero h1 span { color: var(--blue); }
  .hero-description { max-width: 390px; color: var(--muted); font-size: 16px; }
  .hero-actions { display: flex; flex-wrap: wrap; gap: 14px 23px; margin-top: 30px; }
  .hero-footnote { display: flex; gap: 12px; align-items: center; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); max-width: 370px; }
  .small-cross { display: grid; place-items: center; width: 33px; height: 33px; flex: none; background: var(--blue-soft); border-radius: 50%; color: var(--blue); font-size: 26px; font-weight: 300; }
  .hero-footnote p { color: var(--muted); font-size: 11px; line-height: 1.6; }
  .hero-footnote strong { color: var(--navy); font-weight: 500; }
  .hero-art { min-width: 0; margin: 0; align-self: center; overflow: hidden; border-radius: 20px; background: var(--blue-soft); }
  .hero-art img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; }
  .service-strip { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 23px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
  .service-strip span { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
  .service-strip span::before { content: '+'; color: var(--blue); font-size: 18px; }
  /* Servicios: una retícula de seis columnas evita tarjetas residuales. */
  .services-section { background: var(--tile); }
  .services-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
  .service-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; grid-column: span 2; min-width: 0; min-height: 275px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
  .service-card.featured { grid-column: span 4; background: var(--navy); border-color: var(--navy); color: var(--white); }
  .service-top { display: flex; align-items: center; justify-content: space-between; align-self: stretch; margin-bottom: 28px; }
  .service-icon { width: 42px; height: 42px; color: var(--blue); stroke-width: 1.4; }
  .service-index { align-self: flex-start; font-size: 10px; letter-spacing: .09em; color: #767D8A; }
  .featured .service-icon { color: var(--yellow); }
  .featured .service-index { color: #B2C5DF; }
  .service-card h3 { font-size: 22px; letter-spacing: -.025em; }
  .service-card h3.long-title { white-space: nowrap; overflow-wrap: normal; }
  .featured h3 { font-size: 30px; }
  .service-card p { max-width: 37ch; margin-block: 12px 25px; color: var(--muted); font-size: 13px; line-height: 1.7; }
  .featured p { max-width: 50ch; color: #C1CFE3; }
  .service-detail { display: inline-flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; min-height: 44px; margin-top: auto; padding: 9px 0 0; border: 0; border-top: 1px solid var(--line); color: var(--blue); background: transparent; font-size: 12px; text-align: left; }
  .service-detail .icon { width: 25px; height: 25px; padding: 4px; border-radius: 50%; background: var(--blue-soft); }
  .featured .service-detail { max-width: 330px; color: var(--white); border-top-color: #FFFFFF26; }
  .featured .service-detail .icon { background: #FFFFFF12; color: var(--yellow); }
  .services-note { display: flex; justify-content: center; align-items: flex-start; gap: 10px; margin-top: 28px; color: var(--muted); font-size: 12px; }
  .services-note > .icon { width: 17px; height: 17px; margin-top: 2px; }
  .services-note a { display: inline-flex; align-items: center; gap: 5px; color: var(--blue); font-weight: 600; }
  .services-note a .icon { width: 15px; height: 15px; }
  .branches-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .branch-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
  .branch-photo { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; overflow: hidden; background: var(--tile); }
  .branch-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
  .branch-photo-matriz img { object-position: center 45%; }
  .branch-photo-rosario img { object-position: center 34%; }
  .branch-photo-action { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 8px 12px; border: 1px solid #FFFFFF40; border-radius: 7px; background: #0A2350E6; color: var(--white); font-size: 11px; line-height: 1.4; }
  .branch-photo-action .icon { width: 15px; height: 15px; }
  .branch-photo:focus-visible { outline-color: var(--white); outline-offset: -5px; }
  .branch-content { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 30px; }
  .branch-label { display: flex; align-items: center; gap: 8px; color: var(--blue); font-size: 10px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
  .branch-label::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); }
  .branch-card h3 { min-height: 2.24em; margin-block: 12px 22px; color: var(--navy); font-size: 27px; letter-spacing: -.035em; overflow-wrap: break-word; }
  .branch-hours { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; }
  .branch-hours .icon { width: 19px; height: 19px; color: var(--blue); }
  .branch-hours strong { display: block; color: var(--ink); font-size: 13px; font-weight: 500; }
  .branch-link { justify-content: space-between; width: 100%; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
  .branch-hours { margin-bottom: 25px; }
  .branch-link span { color: var(--muted); font-size: 10px; font-weight: 400; }
  .contact-section { display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 60px; padding: 52px; border-radius: 24px; background: var(--navy); color: var(--white); }
  .contact-copy .eyebrow { color: var(--yellow); }
  .contact-copy h2 { margin-block: 18px; font-size: clamp(26px, 3vw, 37px); line-height: 1.15; }
  .contact-copy h2 span { color: #B7D2F8; }
  .contact-copy > p:not(.eyebrow) { max-width: 420px; color: #C1CFE3; font-size: 13px; }
  .contact-copy .button { margin-top: 26px; }
  .contact-number { display: flex; flex-direction: column; align-items: flex-start; padding: 28px 0 28px 40px; border-left: 1px solid #FFFFFF26; }
  .number-label { color: #A6BDDC; font-size: 9px; letter-spacing: .17em; }
  .phone-number { margin-top: 10px; color: var(--white); font-size: clamp(27px, 3vw, 38px); line-height: 1.3; letter-spacing: -.03em; white-space: nowrap; }
  .copy-button { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; margin-top: 16px; padding: 6px 0; border: 0; background: transparent; color: #CCD9EA; font-size: 12px; }
  .copy-button .icon { width: 15px; height: 15px; }
  .copy-feedback { min-height: 20px; margin-top: 4px; color: var(--yellow); font-size: 11px; }
  .community-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 24px; }
  .quote-card { display: flex; flex-direction: column; padding: 32px 36px; border: 1px solid var(--line); border-radius: var(--radius); }
  .quote-mark { color: var(--yellow); font: 86px/.8 Georgia, serif; height: 60px; }
  .quote-card blockquote { max-width: 24ch; color: var(--navy); font-size: 27px; font-weight: 500; line-height: 1.35; letter-spacing: -.025em; }
  .quote-footer { display: flex; align-items: center; gap: 10px; margin-top: 25px; color: var(--muted); font-size: 10px; }
  .quote-footer .eyebrow-line { width: 21px; height: 2px; background: var(--blue); }
  .video-card { width: min(100%, 360px); justify-self: center; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); }
  .institutional-video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; background: var(--navy); object-fit: contain; }
  .video-art { position: relative; display: grid; place-items: center; height: 158px; overflow: hidden; background: var(--blue-soft); }
  .video-art svg { width: 100%; height: 90px; fill: none; stroke: #0B57B530; stroke-width: 1.6; }
  .video-plus { position: absolute; display: grid; place-items: center; width: 55px; height: 55px; border-radius: 50%; background: var(--white); box-shadow: 0 5px 18px #0A23500A; color: var(--blue); font-size: 38px; font-weight: 200; }
  .video-info { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 24px 26px 8px; }
  .video-info .eyebrow { font-size: 9px; }
  .video-info h3 { margin-top: 7px; color: var(--navy); font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
  .status-badge { padding: 5px 9px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: 9px; white-space: nowrap; }
  .video-caption { padding: 0 26px 22px; color: var(--muted); font-size: 11px; }
  .social-row { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 38px; padding-top: 34px; border-top: 1px solid var(--line); }
  .social-row h3 { margin-bottom: 6px; color: var(--navy); font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
  .social-row p { color: var(--muted); font-size: 12px; }
  .social-links { display: flex; gap: 12px; }
  .social-links a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 9px; color: var(--blue); font-size: 12px; }
  .social-links .icon { width: 17px; height: 17px; }
  .social-links .icon:last-child { width: 13px; height: 13px; margin-left: 10px; }
  .footer { background: var(--tile); border-top: 1px solid var(--line); padding-top: 48px; }
  .footer-main { display: grid; grid-template-columns: 1.8fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
  .footer-brand img { width: 270px; height: 70px; object-fit: cover; object-position: center; }
  .footer-brand p { margin-top: 14px; color: var(--muted); font-size: 11px; }
  .footer-main h3 { margin-block: 4px 13px; color: var(--navy); font-size: 12px; font-weight: 600; }
  .footer-main > div:not(.footer-brand) a { display: block; width: fit-content; min-height: 34px; padding-block: 5px; color: var(--muted); font-size: 11px; }
  .footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 65px; padding-block: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
  .footer-bottom a { display: flex; align-items: center; gap: 7px; margin-right: 135px; color: var(--blue); }
  .footer-bottom .icon { width: 13px; height: 13px; }
}

@layer responsive {
  @media (hover: hover) and (pointer: fine) {
    .button-primary:hover, .floating-contact:hover { background: var(--blue-press); }
    .button-yellow:hover { background: #FFDA47; }
    .button:hover { box-shadow: 0 5px 15px #0A23501A; transform: translateY(-2px); }
    .nav-links a:hover, .footer a:hover { color: var(--blue); }
    .text-link:hover, .services-note a:hover { text-decoration: underline; }
    .service-card:hover { transform: translateY(-4px); border-color: #AAC4E6; box-shadow: 0 12px 24px #0A235008; }
    .service-detail:hover .icon { background: var(--blue); color: var(--white); }
    .social-links a:hover { background: var(--blue-soft); border-color: #B8CFEA; }
    .copy-button:hover { color: var(--yellow); }
    .branch-photo:hover img { transform: scale(1.025); }
  }
  @media (min-width: 1450px) { .hero { padding-block: 78px 68px; } }
  @media (max-width: 900px) { .hero { grid-template-columns: minmax(0, 1fr); } .hero-copy { max-width: 720px; } .hero-art { width: calc(100% + 24px); margin-inline: -12px; } }
  @media (max-width: 1100px) {
    .container { width: calc(100% - 56px); }
    .nav-links { gap: 19px; }
    .brand img { width: 210px; height: 54px; }
    .hero { gap: 30px; }
    .hero h1 { font-size: clamp(40px, 5.1vw, 56px); }
    .hero-actions { gap: 10px 20px; }
    .service-card { padding: 25px; }
    .service-card h3.long-title { font-size: 19px; }
    .branch-content { padding: 25px; }
    .branch-card h3 { font-size: 25px; }
    .contact-section { padding: 40px; gap: 30px; }
    .contact-number { padding-left: 28px; }
    .quote-card blockquote { font-size: 24px; }
  }
  @media (max-width: 800px) {
    .nav-inner { min-height: 76px; }
    .nav-links { gap: 15px; }
    .nav-links a { font-size: 12px; }
    .nav-links a[href="#comunidad"] { display: none; }
    .hero { padding-top: 40px; gap: 24px; }
    .hero h1 { font-size: 42px; }
    .hero .eyebrow { font-size: 9px; letter-spacing: .06em; }
    .hero-description { font-size: 14px; }
    .hero-footnote { margin-top: 22px; padding-top: 16px; }
    .service-strip { gap: 10px; font-size: 10px; }
    .service-strip span { gap: 5px; }
    .section { padding-block: 76px; }
    .section-heading { gap: 25px; }
    .section-heading h2 { font-size: 35px; }
    .section-intro { max-width: 230px; font-size: 13px; }
    .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .service-card, .service-card.featured { grid-column: span 1; }
    .service-card.featured { grid-column: span 2; }
    .contact-section { grid-template-columns: 1fr; gap: 32px; }
    .contact-number { padding: 24px 0 0; border-left: 0; border-top: 1px solid #FFFFFF26; }
    .community-grid { gap: 16px; }
    .quote-card { padding: 28px; }
    .quote-card blockquote { font-size: 23px; }
    .quote-footer { font-size: 9px; }
    .video-info { padding: 22px 20px 8px; }
    .video-caption { padding-inline: 20px; }
    .social-row { align-items: flex-start; }
    .social-links a { gap: 8px; padding-inline: 12px; }
    .social-links .icon:last-child { margin-left: 0; }
  }
  @media (max-width: 640px) {
    html { scroll-padding-top: 90px; }
    .container { width: calc(100% - 40px); }
    .topline-inner { min-height: 30px; justify-content: center; }
    .topline-inner > span { display: none; }
    .topline a { font-size: 10px; }
    .brand img { width: 205px; height: 53px; }
    .nav-inner { min-height: 74px; }
    .menu-toggle { display: block; }
    .nav-links { position: absolute; top: 100%; left: 0; right: 0; display: none; padding: 14px 20px 22px; flex-direction: column; align-items: stretch; gap: 0; max-height: calc(100dvh - 110px); overflow-y: auto; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 20px 25px #0A235014; }
    .nav-links.is-open { display: flex; }
    .nav-links a, .nav-links a[href="#comunidad"] { display: flex; min-height: 50px; padding: 10px 8px; font-size: 17px; }
    .nav-links .nav-contact { justify-content: space-between; margin-top: 10px; padding: 12px 16px; font-size: 15px; }
    .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
    .hero { grid-template-columns: 1fr; padding-block: 30px 28px; gap: 25px; }
    .hero-copy { padding: 6px 0 0; }
    .hero .eyebrow { font-size: 10px; }
    .hero h1 { margin-block: 21px 18px; max-width: 480px; font-size: clamp(39px, 8.9vw, 54px); }
    .hero-description { max-width: 360px; font-size: 15px; }
    .hero-actions { margin-top: 25px; gap: 13px 20px; }
    .hero .button { min-height: 50px; }
    .hero-footnote { margin-top: 24px; padding-top: 16px; max-width: 100%; }
    .service-strip { flex-wrap: wrap; justify-content: flex-start; gap: 8px 20px; padding-block: 17px 22px; font-size: 10px; }
    .section { padding-block: 58px; }
    .section-heading { display: block; margin-bottom: 28px; }
    .section-heading h2 { margin-top: 12px; font-size: clamp(31px, 7.5vw, 38px); }
    .section-intro { max-width: 300px; margin-top: 18px; font-size: 14px; }
    .eyebrow { font-size: 10px; }
    .services-grid { gap: 12px; }
    .service-card { min-height: 270px; padding: 22px 18px; border-radius: 14px; }
    .service-card.featured { min-height: 275px; padding: 25px; }
    .service-top { margin-bottom: 24px; }
    .service-icon { width: 36px; height: 36px; }
    .service-card h3 { font-size: 20px; overflow-wrap: anywhere; }
    .service-card:has(> .long-title), .service-card:last-child { grid-column: 1 / -1; }
    .service-card h3.long-title { font-size: 22px; white-space: nowrap; overflow-wrap: normal; }
    .featured h3 { font-size: 28px; }
    .service-card p { font-size: 12px; line-height: 1.65; }
    .featured p { font-size: 13px; max-width: 35ch; }
    .service-detail { gap: 5px; font-size: 11px; }
    .service-detail .icon { width: 23px; height: 23px; }
    .services-note { justify-content: flex-start; margin-top: 23px; }
    .services-note a { display: inline; }
    .services-note a .icon { display: inline-block; vertical-align: middle; }
    .branches-grid { grid-template-columns: 1fr; gap: 14px; }
    .branch-card { border-radius: 16px; }
    .branch-content { padding: 25px; }
    .branch-card h3 { min-height: 0; }
    .branch-card h3 { font-size: 26px; }
    .branch-link { font-size: 13px; }
    .contact-section { width: calc(100% - 28px); gap: 30px; padding: 32px 25px; border-radius: 20px; }
    .contact-copy h2 { font-size: 29px; }
    .contact-copy .button { width: 100%; font-size: 13px; gap: 10px; }
    .phone-number { font-size: 35px; }
    .community-grid { grid-template-columns: 1fr; gap: 16px; }
    .quote-card { padding: 30px; min-height: 285px; }
    .quote-card blockquote { font-size: 27px; }
    .quote-footer { font-size: 10px; margin-top: 25px; }
    .video-art { height: 165px; }
    .video-info { padding: 24px 22px 10px; }
    .video-caption { padding: 0 22px 24px; }
    .social-row { display: block; margin-top: 30px; padding-top: 28px; }
    .social-links { margin-top: 20px; }
    .social-links a { flex: 1; justify-content: space-between; padding-inline: 13px; }
    .footer { padding-top: 36px; }
    .footer-main { grid-template-columns: 1fr 1.2fr; gap: 26px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-brand img { width: 250px; height: 65px; }
    .footer-main h3 { font-size: 13px; }
    .footer-main > div:not(.footer-brand) a { min-height: 40px; font-size: 12px; }
    .footer-bottom { align-items: flex-start; padding-bottom: 90px; font-size: 10px; }
    .footer-bottom a { margin-right: 0; white-space: nowrap; }
    .floating-contact { right: 18px; bottom: 18px; min-height: 52px; padding: 13px 16px; }
    .floating-contact span { font-size: 11px; }
    .dialog-inner { padding: 34px 25px 28px; }
    .dialog-inner h2 { font-size: 28px; overflow-wrap: anywhere; }
  }
  @media (max-width: 360px) {
    .brand img { width: 185px; height: 48px; }
    .container { width: calc(100% - 32px); }
    .hero h1 { font-size: 36px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .services-grid { grid-template-columns: 1fr; }
    .service-card, .service-card.featured { grid-column: auto; min-height: 260px; padding: 25px; }
    .service-card h3.long-title { font-size: 22px; }
    .branch-content { padding: 22px; }
    .branch-card h3 { font-size: 24px; }
    .contact-copy h2 { font-size: 26px; }
    .phone-number { font-size: 31px; }
  }
  #service-dialog:has([data-service="electrocardiograma"]) #dialog-title { font-size: clamp(20px, 5.6vw, 28px); white-space: nowrap; overflow-wrap: normal; }
}

@layer accessibility {
  :focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; border-radius: 4px; }
  .hero-art :focus-visible, .contact-section :focus-visible, .featured :focus-visible { outline-color: var(--yellow); }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
  }
  @media (forced-colors: active) { .button, .service-card, .contact-section, .floating-contact { border: 1px solid ButtonText; } }
}
