:root {
  --bg: #eff3f7;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --ink: #14293e;
  --muted: #5f7080;
  --line: rgba(20, 41, 62, 0.12);
  --primary: #0f4572;
  --primary-deep: #0b3356;
  --primary-soft: #d7e8f7;
  --accent: #7f8188;
  --accent-soft: #ececef;
  --shadow: 0 18px 48px rgba(15, 69, 114, 0.1);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #f8fbfe;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(15, 69, 114, 0.06), transparent 26%),
    radial-gradient(circle at top right, rgba(127, 129, 136, 0.06), transparent 20%),
    linear-gradient(180deg, rgba(248, 251, 254, 0.22) 0%, rgba(239, 243, 247, 0.34) 100%);
}

.site-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("assets/images/fondo-clinico-hero-suave.avif") right center / 120% auto no-repeat;
  opacity: 0.84;
}

.home-page .site-background::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    url("assets/images/logo-lockup-hero.png") center center / min(96vw, 1500px) auto no-repeat;
  opacity: 0.18;
  filter: grayscale(0.04) saturate(0.9);
}

.site-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(248, 251, 254, 0.1) 0%, rgba(239, 243, 247, 0.16) 100%),
    radial-gradient(circle at left center, rgba(255, 255, 255, 0.54), transparent 44%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding-bottom: 42px;
}

.site-header {
  position: sticky;
  top: 18px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 18px 0 24px;
  padding: 14px 18px;
  border: 1px solid rgba(20, 41, 62, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 24px rgba(15, 69, 114, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand-copy strong {
  font-size: 0.98rem;
  color: var(--primary-deep);
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.82rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--primary);
}

.nav-cta {
  padding: 11px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fff !important;
}

.menu-toggle {
  display: none;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(290px, 0.95fr);
  gap: 28px;
  padding: 34px 0 22px;
}

.hero-home {
  position: relative;
  align-items: stretch;
  padding: 42px 32px 30px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.hero-home::before {
  content: none;
}

.hero-home > * {
  position: relative;
  z-index: 1;
}

.hero-single {
  grid-template-columns: 1fr minmax(0, 540px);
  align-items: center;
}

.hero-copy,
.hero-panel,
.trust-strip,
.feature-card,
.service-card,
.timeline-step,
.clinic-note,
.contact-card,
.detail-card,
.quote-card {
  animation: rise 0.6s ease both;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
}

h1,
h2 {
  font-family: "Fraunces", serif;
  line-height: 1.06;
}

h1 {
  font-size: clamp(2.8rem, 5vw, 5.2rem);
  letter-spacing: -0.04em;
  color: var(--primary-deep);
}

.hero-title {
  max-width: 11ch;
  margin: 0 0 22px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3.2rem, 6vw, 6.3rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 0.92;
  text-transform: uppercase;
  color: var(--primary-deep);
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 3vw, 3.35rem);
  letter-spacing: -0.03em;
  color: var(--primary-deep);
}

h3 {
  font-size: 1.18rem;
  color: var(--primary-deep);
}

.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;
}

.hero-copy {
  position: relative;
  overflow: hidden;
  padding: 8px 8px 8px 0;
}

.hero-copy::before {
  content: none;
}

.hero-copy > * {
  position: relative;
  z-index: 1;
}

.trust-rating-badge {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.trust-rating-badge strong {
  color: var(--primary-deep);
  font-size: 0.98rem;
}

.trust-rating-badge span {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.trust-rating-stars {
  color: #e3a22b !important;
  letter-spacing: 0.12em;
}

.hero-text,
.feature-card p,
.service-card p,
.timeline-step p,
.clinic-note p,
.contact-card p,
.detail-card p,
.quote-card p {
  color: var(--muted);
  line-height: 1.72;
  font-size: 1rem;
}

.hero-copy .hero-text {
  max-width: 38ch;
  font-size: clamp(1.3rem, 1.1rem + 0.65vw, 1.6rem);
  line-height: 1.9;
}

.hero-copy p.hero-intro-text {
  max-width: 34ch;
  font-size: clamp(1.54rem, 1.2rem + 0.92vw, 1.9rem) !important;
  line-height: 1.76;
  font-weight: 500;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
}

.button-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fff;
  box-shadow: 0 16px 34px rgba(15, 69, 114, 0.22);
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  color: var(--primary-deep);
}

.button-whatsapp {
  background: linear-gradient(135deg, #25d366, #128c4a);
  color: #fff;
  box-shadow: 0 16px 34px rgba(18, 140, 74, 0.22);
}

.hero-contact-block {
  margin-bottom: 22px;
}

.hero-contact-title {
  margin: 0 0 12px;
  color: var(--primary-deep);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-contact-list,
.contact-number-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(15, 69, 114, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--primary-deep);
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(15, 69, 114, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-chip:hover,
.contact-chip:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(15, 69, 114, 0.14);
}

.hero-contact-list-light {
  margin-top: 4px;
}

.contact-chip-light {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: none;
}

.contact-chip-light:hover,
.contact-chip-light:focus-visible {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.14);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-points li {
  padding: 10px 14px;
  border: 1px solid rgba(15, 69, 114, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--primary-deep);
  font-size: 0.94rem;
  font-weight: 600;
}

.hero-panel {
  display: grid;
  gap: 18px;
}

.facilities-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.88fr) minmax(0, 1.12fr);
  gap: 22px;
  align-items: stretch;
}

.hero-panel-grid {
  display: grid;
  gap: 18px;
}

.hero-image-card,
.gallery-card,
.inline-hero-image,
.story-image,
.team-group-photo {
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 28px;
  background: transparent;
  box-shadow: none;
}

.member-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.hero-image-card img,
.gallery-card img,
.inline-hero-image img,
.story-image img,
.team-group-photo img,
.member-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-main {
  min-height: 380px;
}

.hero-image-main figcaption,
.gallery-card figcaption {
  padding: 14px 16px 16px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.hero-slideshow {
  position: relative;
  min-height: 440px;
}

.hero-slide,
.facilities-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.hero-slide.is-active,
.facilities-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img,
.facilities-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide-image-lower {
  object-position: center 22%;
}

.hero-slide-image-raul-elena {
  object-position: center 30%;
}

.hero-slide-dots {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.facilities-slideshow {
  position: relative;
  min-height: 420px;
}

.facilities-slide-dots {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.hero-dot,
.facilities-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 69, 114, 0.25);
  cursor: pointer;
}

.hero-dot.is-active,
.facilities-dot.is-active {
  background: var(--primary);
  transform: scale(1.15);
}

.inline-hero-image {
  max-width: 560px;
  min-height: 340px;
}

.panel-card {
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.panel-map {
  display: grid;
  gap: 10px;
}

.mini-map {
  overflow: hidden;
  margin-top: 6px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  box-shadow: none;
}

.mini-map-placeholder {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 180px;
  padding: 20px 12px;
  text-align: center;
  border: 1px solid rgba(15, 69, 114, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.75);
}

.mini-map-placeholder p {
  margin: 0;
  max-width: 32ch;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.mini-map iframe {
  display: block;
  width: 100%;
  height: 180px;
  border: 0;
}

.panel-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.panel-highlight {
  color: var(--primary-deep);
}

.panel-service-links {
  display: grid;
  gap: 10px;
}

.panel-service-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(15, 69, 114, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--primary-deep);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 10px 22px rgba(15, 69, 114, 0.08);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.panel-service-links a:hover,
.panel-service-links a:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 24px rgba(15, 69, 114, 0.12);
}

.panel-label {
  margin: 0 0 14px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.86;
}

.trust-strip {
  margin: 14px 0 26px;
}

.trust-bubble {
  padding: 4px 0 0;
}

.trust-intro,
.trust-summary {
  margin: 0;
}

.trust-intro {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 18px 0 12px;
}

.trust-pills span {
  display: inline-flex;
  align-items: center;
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--primary-deep);
  font-size: 1.06rem;
  font-weight: 800;
}

.trust-summary {
  color: var(--muted);
  line-height: 1.7;
  max-width: 860px;
}

.trust-reviews {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.trust-review-card {
  padding: 16px 0;
  border: 0;
  border-bottom: 1px solid rgba(15, 69, 114, 0.12);
  border-radius: 0;
  background: transparent;
}

.trust-review-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.trust-review-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
}

.trust-review-avatar-vv {
  background: linear-gradient(135deg, #3f7cff, #2353c8);
}

.trust-review-avatar-cs {
  background: linear-gradient(135deg, #17a98f, #127b67);
}

.trust-review-avatar-mm {
  background: linear-gradient(135deg, #ef7a3c, #d85a1e);
}

.trust-review-avatar-ml {
  background: linear-gradient(135deg, #a05ee4, #7440b3);
}

.trust-review-meta {
  display: grid;
  gap: 3px;
}

.trust-review-meta strong {
  color: var(--ink);
  font-size: 0.96rem;
}

.trust-review-meta span {
  color: var(--muted);
  font-size: 0.83rem;
}

.trust-review-source {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(15, 69, 114, 0.08);
}

.google-g {
  color: #4285f4;
  font-size: 1rem;
  font-weight: 800;
  font-family: Arial, sans-serif;
}

.trust-review-card p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.65;
}

.trust-review-card:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.trust-review-stars {
  margin-bottom: 10px;
  color: #e3a22b;
  font-size: 1rem;
  letter-spacing: 0.12em;
}

.content-section {
  padding: 56px 0;
}

.accent-section {
  position: relative;
}

.accent-section::before {
  content: none;
}

.section-heading {
  max-width: 850px;
  margin-bottom: 28px;
}

.section-heading h2 {
  text-wrap: balance;
}

.section-subtitle {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.news-section {
  scroll-margin-top: 120px;
}

.news-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  max-width: none;
}

.news-heading > div {
  max-width: 850px;
}

.news-kicker,
.news-meta {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.news-all-link,
.news-placeholder-link {
  color: var(--primary);
  font-weight: 800;
}

.news-all-link {
  flex: 0 0 auto;
  padding-bottom: 4px;
  border-bottom: 2px solid rgba(15, 69, 114, 0.22);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.news-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.news-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.news-card-copy {
  padding: 24px;
}

.news-card h3 {
  margin: 0 0 12px;
  color: var(--primary-deep);
  font-size: 1.18rem;
  line-height: 1.35;
}

.news-card-copy > p:not(.news-meta) {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.65;
}

.news-board-hero {
  padding: 54px 0 32px;
}

.news-board-hero .section-subtitle {
  max-width: 820px;
}

.news-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 6px 0 30px;
}

.news-filter {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.news-filter:hover,
.news-filter:focus-visible,
.news-filter.is-active {
  border-color: rgba(15, 69, 114, 0.34);
  background: var(--primary);
  color: #fff;
}

.news-board-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.news-board-item[hidden] {
  display: none;
}

.news-date {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 0.86rem;
}

.news-board-note {
  margin-top: 28px;
  padding: 22px 24px;
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: rgba(215, 232, 247, 0.55);
  color: var(--muted);
  line-height: 1.7;
}

.grid-three,
.service-list,
.clinic-layout,
.services-overview,
.detail-grid,
.quotes-grid,
.doctor-profiles {
  display: grid;
  gap: 18px;
}

.grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.services-overview {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quotes-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.doctor-profiles {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.service-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.clinic-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card,
.service-card,
.clinic-note,
.detail-card,
.quote-card,
.profile-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.service-card-interactive {
  display: grid;
  gap: 16px;
}

.service-card-toggle {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.service-card-toggle:focus-visible {
  outline: 2px solid rgba(15, 69, 114, 0.36);
  outline-offset: 6px;
}

.service-card-figure {
  margin: 0;
}

.service-card-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 626 / 465;
  object-fit: cover;
  border-radius: 18px;
}

.service-card-figure figcaption {
  margin-top: 12px;
  color: var(--primary-deep);
  font-size: 1.08rem;
  font-weight: 800;
}

.service-card-copy[hidden] {
  display: none;
}

.service-card-interactive.is-open .service-card-figure figcaption {
  color: var(--primary);
}

.detail-card {
  background:
    linear-gradient(180deg, rgba(215, 232, 247, 0.45), rgba(255, 255, 255, 1));
}

.team-intro .detail-card,
.facilities-layout .detail-card,
.doctor-profiles .profile-card {
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.detail-case-inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0 14px;
  justify-items: center;
}

.detail-case-figure {
  margin: 0;
  overflow: hidden;
  width: min(100%, 240px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(15, 69, 114, 0.08);
}

.detail-case-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.detail-case-figure figcaption {
  padding: 12px 14px 14px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.story-layout,
.team-intro,
.team-grid {
  display: grid;
  gap: 22px;
}

.story-layout {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: center;
}

.story-copy {
  padding: 6px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.story-copy p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.78;
}

.story-copy p:last-child {
  margin-bottom: 0;
}

.story-image {
  min-height: 440px;
}

.story-image figcaption,
.team-group-photo figcaption {
  padding: 14px 16px 16px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.story-highlights {
  margin-top: 22px;
}

.team-intro {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
  align-items: stretch;
}

.profile-role {
  margin: 6px 0 12px;
  color: var(--primary);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.team-group-photo {
  margin-top: 22px;
  min-height: 320px;
}

.team-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
}

.member-card {
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.member-card img {
  width: 100%;
  height: 280px;
  flex-shrink: 0;
  object-fit: contain;
  object-position: center top;
  background: linear-gradient(180deg, #f9fbfd, #eef4f9);
  padding: 10px 10px 0;
}

.member-copy {
  position: relative;
  z-index: 1;
  padding: 22px;
}

.member-copy h3,
.profile-card h3 {
  margin-bottom: 0;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-step {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

.timeline-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary-soft), #eef6fd);
  color: var(--primary);
  font-family: "Fraunces", serif;
  font-size: 1.3rem;
}

.clinic-gallery {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 18px;
  margin-top: 24px;
}

.gallery-card {
  min-height: 260px;
}

.gallery-card-large {
  min-height: 360px;
}

.gallery-card img {
  height: calc(100% - 54px);
}

.contact-section {
  padding: 36px 0 18px;
  border-top: 1px solid rgba(15, 69, 114, 0.12);
}

.contact-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

.contact-card .hero-text,
.contact-card p,
.contact-card h2 {
  color: inherit;
}

.contact-card .contact-chip-light {
  border-color: rgba(15, 69, 114, 0.16);
  background: rgba(255, 255, 255, 0.82);
  color: var(--primary-deep);
  box-shadow: 0 12px 24px rgba(15, 69, 114, 0.08);
}

.contact-card .contact-chip-light:hover,
.contact-card .contact-chip-light:focus-visible {
  box-shadow: 0 16px 28px rgba(15, 69, 114, 0.14);
}

.site-footer {
  padding: 24px 4px 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 6px 0;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
}

.site-footer-links a {
  color: var(--primary);
  font-weight: 700;
}

.site-footer-links a:hover,
.site-footer-links a:focus-visible {
  color: var(--primary-deep);
}

.legal-page .page-shell {
  padding-bottom: 64px;
}

.legal-main {
  display: grid;
  gap: 24px;
  padding: 22px 0 10px;
}

.legal-notice,
.legal-card {
  border: 1px solid rgba(20, 41, 62, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 24px rgba(15, 69, 114, 0.06);
}

.legal-notice {
  padding: 18px 22px;
  color: var(--primary-deep);
  font-weight: 700;
  line-height: 1.6;
}

.legal-card {
  padding: 28px;
}

.legal-card h2 {
  margin-bottom: 16px;
  font-size: clamp(1.6rem, 2.3vw, 2.4rem);
}

.legal-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
  color: var(--primary-deep);
  font-size: 1.1rem;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
  line-height: 1.72;
}

.legal-card ul {
  margin: 0;
  padding-left: 20px;
}

.legal-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.legal-flag {
  color: var(--primary-deep);
  font-weight: 800;
}

.text-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--primary);
  font-weight: 700;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--primary-deep);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .grid-three,
  .services-overview,
  .quotes-grid,
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .clinic-gallery,
  .detail-grid,
  .facilities-layout,
  .story-layout,
  .team-intro {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .hero,
  .service-list,
  .clinic-layout,
  .grid-three,
  .services-overview,
  .quotes-grid,
  .detail-grid,
  .doctor-profiles,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-board-grid {
    grid-template-columns: 1fr;
  }

  .news-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-case-inline {
    grid-template-columns: 1fr;
  }

  .site-header {
    border-radius: 18px;
  }

  .hero-home {
    padding: 30px 20px 24px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .timeline-step {
    grid-template-columns: 1fr;
  }

  .gallery-card,
  .gallery-card-large,
  .inline-hero-image,
  .hero-image-main,
  .story-image,
  .team-group-photo {
    min-height: 280px;
  }

  .hero-slideshow,
  .facilities-slideshow {
    min-height: 360px;
  }

  .trust-reviews {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--max-width));
  }

  .site-header {
    top: 10px;
    margin-top: 10px;
    padding: 12px 14px;
  }

  .brand-logo {
    width: 54px;
    height: 54px;
  }

  .brand-copy strong {
    font-size: 0.88rem;
  }

  .brand-copy span {
    font-size: 0.76rem;
  }

  .hero-title {
    max-width: none;
    font-size: clamp(2.6rem, 11vw, 4.1rem);
    letter-spacing: 0.04em;
  }

  .hero-copy .hero-text {
    max-width: 100%;
    font-size: 1.18rem;
    line-height: 1.8;
  }

  .hero-copy p.hero-intro-text {
    max-width: 100%;
    font-size: 1.3rem !important;
    line-height: 1.72;
  }

  .content-section {
    padding: 42px 0;
  }

  .contact-card,
  .feature-card,
  .service-card,
  .clinic-note,
  .panel-card,
  .timeline-step,
  .trust-bubble,
  .detail-card,
  .quote-card,
  .profile-card,
  .story-copy {
    padding: 22px;
  }

  .member-copy {
    padding: 20px;
  }
}
