:root {
  --bg: #f4f8fb;
  --surface: #ffffff;
  --surface-soft: #eef5fb;
  --surface-alt: #e4f0f7;
  --text: #123047;
  --text-soft: #5f7588;
  --line: rgba(18, 48, 71, 0.1);
  --primary: #0d8db4;
  --primary-deep: #0b6786;
  --accent: #34c3d6;
  --mint: #7ad9cf;
  --shadow: 0 24px 60px rgba(18, 48, 71, 0.12);
  --shadow-soft: 0 16px 38px rgba(18, 48, 71, 0.08);
  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-sm: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Manrope', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; }
.container { width: min(1160px, calc(100% - 2rem)); margin: 0 auto; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(13, 141, 180, 0.24);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  backdrop-filter: blur(14px);
  background: rgba(244, 248, 251, 0.88);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  position: relative;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}
.brand-mark {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(135deg, #0b6786, #0d8db4 58%, #7ad9cf);
  color: white;
  font-weight: 800;
  box-shadow: 0 16px 30px rgba(13, 141, 180, 0.24);
}
.brand span:last-child {
  display: grid;
  gap: 0.08rem;
}
.brand strong { font-size: 1rem; }
.brand small {
  color: var(--text-soft);
  font-size: 0.78rem;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.site-nav a {
  color: var(--text-soft);
  font-weight: 700;
}
.site-nav a[aria-current="true"] {
  color: var(--primary-deep);
  position: relative;
}
.site-nav a[aria-current="true"]:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.55rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--mint));
}
.site-nav a:hover { color: var(--text); }
.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 14px;
  background: rgba(13, 141, 180, 0.1);
  color: var(--primary-deep);
  font-size: 1.1rem;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4rem;
  background:
    radial-gradient(circle at 10% 20%, rgba(52, 195, 214, 0.18), transparent 24%),
    radial-gradient(circle at 88% 16%, rgba(122, 217, 207, 0.2), transparent 20%),
    linear-gradient(180deg, #f5fbff 0%, #f4f8fb 58%, #edf5fb 100%);
}
.page-hero {
  padding: 2.8rem 0 1.9rem;
  background:
    radial-gradient(circle at 12% 18%, rgba(52, 195, 214, 0.14), transparent 22%),
    linear-gradient(180deg, #f5fbff 0%, #eef5fb 100%);
}
.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(34px);
  opacity: 0.8;
}
.glow-one {
  width: 240px;
  height: 240px;
  top: -40px;
  right: 5%;
  background: rgba(52, 195, 214, 0.16);
}
.glow-two {
  width: 180px;
  height: 180px;
  bottom: 6%;
  left: -30px;
  background: rgba(122, 217, 207, 0.16);
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.5rem;
  align-items: center;
}
.eyebrow {
  margin: 0 0 0.8rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--primary-deep);
}
h1, h2, h3 { line-height: 1.08; margin: 0 0 1rem; }
h1 {
  font-size: clamp(2.3rem, 4vw, 3.8rem);
  letter-spacing: -0.05em;
  max-width: 11ch;
}
.lead {
  max-width: 58ch;
  color: var(--text-soft);
  font-size: 1.08rem;
}
.hero-actions,
.footer-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
.hero-points {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.4rem;
}
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.35rem;
}
.hero-chips span {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(13, 141, 180, 0.14);
  background: rgba(255,255,255,0.8);
  color: var(--primary-deep);
  font-size: 0.86rem;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(18, 48, 71, 0.06);
}
.hero-points span {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-soft);
  font-weight: 700;
}
.hero-points span::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--mint));
  box-shadow: 0 0 0 6px rgba(13, 141, 180, 0.08);
}

.hero-panel {
  display: grid;
  gap: 1rem;
}
.panel-card,
.trust-card,
.card,
.review-card,
.gallery-card,
.map-card,
.appointment-box {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.panel-card {
  padding: 1.2rem;
}
.panel-card small,
.panel-card span {
  display: block;
}
.panel-card small {
  color: var(--text-soft);
  font-weight: 800;
  margin-bottom: 0.4rem;
}
.panel-card strong {
  font-size: 1.2rem;
}
.panel-card span {
  margin-top: 0.35rem;
  color: var(--text-soft);
}
.main-panel {
  padding: 1.4rem;
  background: linear-gradient(135deg, #0d8db4, #0b6786 62%, #0d4f66);
  color: white;
}
.main-panel small,
.main-panel span { color: rgba(255,255,255,0.8); }
.panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.panel-card.accent {
  background: linear-gradient(180deg, #f2fbfd, #ffffff);
}
.trust-card {
  padding: 1.3rem;
  background: linear-gradient(180deg, #ffffff, #f7fbfd);
}
.trust-card p {
  margin: 0;
  color: var(--text-soft);
}

.section { padding: 5.2rem 0; }
.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}
.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.15rem);
  letter-spacing: -0.04em;
}
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-heading.righted { margin-left: auto; text-align: right; }
.section-heading p:last-child,
.card p,
.review-card span,
.gallery-copy span,
.contact-points span,
.appointment-box p,
.feature-list li { color: var(--text-soft); }
.narrow { max-width: 700px; }
.cards {
  display: grid;
  gap: 1rem;
}
.overview-grid,
.team-grid,
.page-hero-shell,
.media-tab-grid {
  display: grid;
  gap: 1rem;
}
.overview-grid { grid-template-columns: repeat(3, 1fr); }
.team-grid { grid-template-columns: repeat(3, 1fr); }
.page-hero-shell { grid-template-columns: 1.08fr 0.92fr; align-items: end; }
.page-hero-shell.reverse, .media-tab-grid.reverse { grid-template-columns: 0.92fr 1.08fr; }
.page-hero-shell.reverse > :first-child, .media-tab-grid.reverse > :first-child { order: 2; }
.page-hero-shell.reverse > :last-child, .media-tab-grid.reverse > :last-child { order: 1; }
.page-hero-side { display: grid; gap: 0.9rem; }
.page-kpi,
.care-highlight,
.media-tab-panel {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.care-highlight { min-height: 220px; padding: 1.3rem; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(135deg, #0d8db4, #0b6786 62%, #0d4f66); color: white; }
.page-kpi { padding: 1rem 1.1rem; }
.page-kpi small { display: block; margin-bottom: 0.3rem; color: var(--text-soft); font-weight: 800; }
.media-tabs { display: grid; gap: 1rem; }
.media-tab-list { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.media-tab-btn { min-height: 42px; padding: 0.72rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: white; color: var(--text); font-weight: 700; cursor: pointer; }
.media-tab-btn.is-active { background: linear-gradient(135deg, #0d8db4, #0b6786 58%, #34c3d6); color: white; }
.media-tab-panel { padding: 1rem; background: linear-gradient(180deg, #ffffff, #f7fbfd); }
.media-tab-grid { grid-template-columns: 1fr 0.9fr; align-items: center; }
.media-tab-visual { min-height: 240px; border-radius: 24px; background: linear-gradient(135deg, #d4eaf2, #8dc8d7 55%, #4b8ba1); }
.media-tab-copy { display: grid; gap: 0.8rem; }
.media-pill-list { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.media-pill-list span { padding: 0.5rem 0.8rem; border-radius: 999px; background: rgba(13,141,180,0.1); color: var(--primary-deep); font-weight: 700; font-size: 0.86rem; }
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.card {
  padding: 1.6rem;
}
.overview-card,
.team-card {
  padding: 1.3rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.overview-card strong,
.team-card h3 {
  display: block;
  margin-bottom: 0.35rem;
}
.overview-card span,
.team-card p { color: var(--text-soft); }
.team-avatar {
  height: 220px;
  margin-bottom: 1rem;
  border-radius: 22px;
}
.doctor-one {
  background: radial-gradient(circle at 28% 20%, rgba(255,255,255,0.2), transparent 20%), linear-gradient(135deg, #d9eff4, #9fcfe0 55%, #5b9eb5);
}
.doctor-two {
  background: radial-gradient(circle at 68% 18%, rgba(255,255,255,0.22), transparent 20%), linear-gradient(135deg, #e7f6f8, #b8dee0 55%, #70afb6);
}
.doctor-three {
  background: radial-gradient(circle at 38% 18%, rgba(255,255,255,0.2), transparent 20%), linear-gradient(135deg, #deedf8, #a9cce4 55%, #678fa8);
}
.card.featured {
  border-color: rgba(13, 141, 180, 0.2);
  box-shadow: 0 20px 48px rgba(13, 141, 180, 0.12);
}
.icon-box {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #dff5fb, #eefbff);
  color: var(--primary-deep);
  font-weight: 800;
}
.section-alt {
  background: linear-gradient(180deg, #eef5fb, #f4f8fb);
}
.split-layout,
.location-wrap {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1.2rem;
  align-items: center;
}
.feature-list {
  margin: 1.4rem 0 0;
  padding-left: 1.2rem;
}
.feature-list li + li {
  margin-top: 0.6rem;
}
.mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-top: 1.4rem;
}
.mini-grid article {
  padding: 1rem 1.05rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.78);
}
.mini-grid strong {
  display: block;
  margin-bottom: 0.35rem;
}
.mini-grid span {
  color: var(--text-soft);
}
.review-card {
  padding: 1.5rem;
}
.stars {
  margin-bottom: 1rem;
  color: #f5b942;
  letter-spacing: 0.15em;
}
.review-card p {
  margin: 0 0 0.8rem;
  font-size: 1.05rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.2rem;
}
.gallery-card {
  overflow: hidden;
}
.gallery-card-wide {
  grid-column: span 2;
}
.gallery-media {
  height: 210px;
  border-bottom: 1px solid var(--line);
}
.reception {
  background:
    radial-gradient(circle at 24% 24%, rgba(255,255,255,0.18), transparent 20%),
    linear-gradient(135deg, #d4eaf2, #8dc8d7 55%, #4b8ba1);
}
.consultorio-a {
  background:
    radial-gradient(circle at 60% 20%, rgba(255,255,255,0.22), transparent 20%),
    linear-gradient(135deg, #e6f3f8, #b5dce6 55%, #6ba6b5);
}
.consultorio-b {
  background:
    radial-gradient(circle at 28% 22%, rgba(255,255,255,0.18), transparent 20%),
    linear-gradient(135deg, #dceff6, #93d2cf 55%, #4f9d9c);
}
.consultorio-c {
  background:
    radial-gradient(circle at 72% 20%, rgba(255,255,255,0.2), transparent 20%),
    linear-gradient(135deg, #d8e6f4, #9fc5e2 55%, #5d8fae);
}
.consultorio-d {
  background:
    radial-gradient(circle at 50% 24%, rgba(255,255,255,0.18), transparent 20%),
    linear-gradient(135deg, #eff8fb, #bfe3ea 55%, #7db8c4);
}
.gallery-copy {
  padding: 1rem 1.05rem 1.1rem;
}
.gallery-copy strong {
  display: block;
  margin-bottom: 0.35rem;
}

.contact-points {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.4rem;
}
.contact-points article {
  padding: 1rem 1.05rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.78);
}
.contact-points strong {
  display: block;
  margin-bottom: 0.25rem;
}
.schedule-card {
  margin-top: 1rem;
  padding: 1rem 1.05rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #f7fbfd);
  box-shadow: var(--shadow-soft);
}
.schedule-card strong {
  display: block;
  margin-bottom: 0.75rem;
}
.schedule-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-soft);
}
.schedule-row + .schedule-row {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--line);
}
.map-card {
  position: relative;
  min-height: 340px;
  overflow: hidden;
}
.map-surface {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 48, 71, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(18, 48, 71, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 25% 35%, rgba(13, 141, 180, 0.18), transparent 24%),
    radial-gradient(circle at 72% 68%, rgba(122, 217, 207, 0.18), transparent 22%),
    linear-gradient(180deg, #f8fcff, #edf5fb);
  background-size: 64px 64px, 64px 64px, auto, auto, auto;
}
.map-badge {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.94);
  border: 1px solid var(--line);
  font-weight: 800;
}

.appointment-box {
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1.2rem;
  align-items: center;
}
.appointment-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}
.appointment-copy {
  display: grid;
  gap: 1rem;
}
.appointment-highlights {
  display: grid;
  gap: 0.7rem;
}
.appointment-highlights span {
  padding: 0.85rem 0.95rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--text-soft);
  font-weight: 700;
}
.appointment-form input,
.appointment-form select {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 1rem;
  background: white;
  color: var(--text);
}
.appointment-form button {
  grid-column: 1 / -1;
}

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  background: #103147;
  color: rgba(255,255,255,0.82);
}
.footer-wrap {
  justify-content: space-between;
}
.footer-wrap a,
.footer-wrap p { color: white; margin: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.95rem 1.3rem;
  border-radius: 16px;
  border: 0;
  background: linear-gradient(135deg, #0d8db4, #0b6786 58%, #34c3d6);
  color: white;
  font-weight: 800;
  box-shadow: 0 16px 32px rgba(13, 141, 180, 0.2);
}
.btn-secondary {
  background: rgba(255,255,255,0.9);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: var(--shadow-soft);
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-nav {
  min-height: 44px;
  padding: 0.72rem 1rem;
  border-radius: 14px;
}

@media (max-width: 980px) {
  .hero-grid,
  .split-layout,
  .location-wrap,
  .appointment-box,
  .cards.four,
  .gallery-grid,
  .overview-grid,
  .team-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid,
  .appointment-box,
  .page-hero-shell,
  .media-tab-grid { grid-template-columns: 1fr; }
  .cards.four { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .menu-toggle { display: inline-grid; place-items: center; }
  .site-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border-radius: 22px;
    background: rgba(255,255,255,0.98);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .split-layout,
  .location-wrap,
  .cards.four,
  .gallery-grid,
  .mini-grid,
  .panel-grid,
  .appointment-form,
  .overview-grid,
  .team-grid { grid-template-columns: 1fr; }
  .gallery-card-wide {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .hero { padding-top: 4rem; }
  h1 { font-size: clamp(2.2rem, 10vw, 3.4rem); }
  .section { padding: 4.4rem 0; }
  .schedule-row {
    flex-direction: column;
    gap: 0.25rem;
  }
}

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