:root {
  --primary: #13a8d8;
  --secondary: #0b5fc4;
  --secondary-deep: #063a8f;
  --accent: #22c2c9;
  --warm: #f4b740;
  --surface: #f6fbff;
  --surface-strong: #ffffff;
  --text: #102345;
  --muted: #53647c;
  --border: rgba(11, 95, 196, 0.12);
  --shadow: 0 22px 52px rgba(11, 95, 196, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Outfit", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 12%, rgba(19, 168, 216, 0.1), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f6fbff 45%, #edf7ff 100%);
}

a {
  color: inherit;
}

.page-shell {
  width: 100%;
  margin: 0;
}

.hero,
.page-header,
.section,
.footer {
  position: relative;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 44px rgba(11, 95, 196, 0.08);
}

.section,
.footer {
  overflow: hidden;
}

.hero {
  min-height: 690px;
  padding: 24px max(24px, calc((100vw - 1180px) / 2));
  border: 0;
  border-radius: 0;
}

.page-header {
  min-height: 360px;
  padding: 24px max(24px, calc((100vw - 1180px) / 2));
  border: 0;
  border-radius: 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0%, rgba(241, 250, 255, 0.78) 46%, rgba(255, 255, 255, 0.2) 100%),
    radial-gradient(circle at 78% 18%, rgba(19, 168, 216, 0.18), transparent 34%);
  pointer-events: none;
}

.hero-photo {
  background: url("assets/hero-horario.jpg") center / cover no-repeat;
}

.page-header-photo {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--secondary-deep);
}

.page-header-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.88), rgba(240, 249, 255, 0.68), rgba(255, 255, 255, 0.18)),
    radial-gradient(circle at 78% 24%, rgba(19, 168, 216, 0.16), transparent 34%);
  pointer-events: none;
}

.header-quienes,
.header-pacientes {
  background-image: url("assets/enfoque-diferencial.jpg");
}

.header-atencion,
.header-servicios {
  background-image: url("assets/hero-atencion.jpg");
}

.header-horario {
  background-image: url("assets/hero-horario.jpg");
}

.header-contacto {
  background-image: url("assets/contacto.png");
}

.topbar,
.hero-grid,
.section,
.footer {
  position: relative;
  z-index: 1;
}

.topbar {
  overflow: visible;
  z-index: 40;
}

.topbar {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 22px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo {
  width: 190px;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(11, 95, 196, 0.12));
}

.eyebrow,
.lead,
.quick-facts,
.simple-list,
.content-card p,
.service-card p,
.footer p {
  color: var(--muted);
}

.menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  overflow: visible;
  overflow-y: visible;
  scrollbar-width: thin;
  align-items: flex-start;
}

.menu a,
.menu-toggle {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--secondary-deep);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(11, 95, 196, 0.12);
  box-shadow: 0 8px 22px rgba(11, 95, 196, 0.08);
  transition: 180ms ease;
  font-family: inherit;
  cursor: pointer;
}

.menu a.is-active {
  color: white;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
}

.menu-group {
  position: relative;
  flex: 0 0 auto;
}

.menu-group > a,
.menu-group > .menu-toggle {
  display: inline-flex;
}

.menu-group.is-active > a,
.menu-group.is-active > .menu-toggle,
.menu-toggle[aria-expanded="true"] {
  color: white;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
}

.submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  display: none;
  min-width: 220px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 36px rgba(25, 44, 95, 0.12);
  z-index: 30;
}

.submenu a {
  display: block;
  margin-bottom: 8px;
  color: var(--secondary);
  background: rgba(81, 197, 226, 0.1);
}

.submenu a:last-child {
  margin-bottom: 0;
}

.menu-group:hover .submenu,
.menu-group:focus-within .submenu,
.menu-group.is-open .submenu {
  display: block;
}

.menu a:hover,
.menu-toggle:hover {
  color: white;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.72fr);
  gap: 34px;
  align-items: center;
  padding: 44px 0 16px;
}

.hero-copy {
  max-width: 640px;
  padding: 34px 36px;
  border: 1px solid rgba(11, 95, 196, 0.12);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(245, 251, 255, 0.9));
  box-shadow: 0 22px 50px rgba(11, 95, 196, 0.1);
  backdrop-filter: blur(10px);
}

.eyebrow {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--secondary-deep);
  line-height: 1.05;
}

.hero h1,
.hero h2,
.hero h3,
.page-header-photo h1,
.page-header-photo h2,
.page-header-photo h3,
.hero .eyebrow,
.hero .lead,
.page-header-photo .eyebrow,
.page-header-photo .lead,
.hero .quick-facts {
  color: var(--secondary-deep);
}

.hero .panel-card h2,
.hero .panel-card h3,
.hero .panel-card strong,
.hero .panel-card p,
.hero .panel-card li,
.hero .notice-card h3,
.hero .notice-card p {
  text-shadow: none;
}

.hero .panel-card h2,
.hero .panel-card h3,
.hero .panel-card strong {
  color: #10213f;
}

.hero .panel-card p,
.hero .panel-card li,
.hero .panel-card span {
  color: #53657a;
}

.page-title {
  font-size: 3.8rem;
  max-width: 14ch;
}

.page-heading {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  padding: 28px;
  border: 1px solid rgba(11, 95, 196, 0.12);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 24px 60px rgba(11, 95, 196, 0.12);
  backdrop-filter: blur(10px);
}

.institutional-header {
  min-height: 560px;
}

.institutional-header::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(240, 249, 255, 0.68), rgba(255, 255, 255, 0.18)),
    radial-gradient(circle at 78% 24%, rgba(19, 168, 216, 0.18), transparent 34%);
}

.institutional-heading {
  max-width: 760px;
  padding-top: 72px;
}

h1 {
  font-size: 5.2rem;
  max-width: 11ch;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(3.1rem, 5.2vw, 4.55rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.lead {
  max-width: 60ch;
  margin: 22px 0 0;
  font-size: 1.08rem;
  line-height: 1.8;
  text-shadow: none;
}

.hero .lead {
  max-width: 56ch;
  margin-top: 18px;
  color: #16427f;
  font-size: 1.03rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero .button {
  min-height: 44px;
  padding: 11px 17px;
  border-radius: 15px;
}

.hero .quick-facts {
  display: grid;
  gap: 8px;
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px solid rgba(11, 95, 196, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.64);
  font-size: 0.95rem;
  line-height: 1.45;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 16px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:disabled,
.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
  box-shadow: none;
}

.button:disabled:hover,
.button[aria-disabled="true"]:hover {
  transform: none;
}

.button-primary {
  color: white;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  box-shadow: 0 16px 30px rgba(11, 95, 196, 0.18);
}

.button-secondary {
  color: var(--secondary-deep);
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(81, 197, 226, 0.4);
}

.button-ghost {
  color: var(--secondary);
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(11, 95, 196, 0.22);
}

.quick-facts,
.simple-list,
.contact-list {
  margin: 24px 0 0;
  padding-left: 18px;
  line-height: 1.7;
}

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

.panel-card,
.notice-card,
.content-card,
.service-card,
.ally-card {
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(11, 95, 196, 0.08);
}

.glass-panel .panel-card {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.glass-panel .notice-card {
  background: linear-gradient(135deg, rgba(232, 248, 255, 0.96), rgba(255, 255, 255, 0.96));
  backdrop-filter: blur(14px);
}

.panel-card {
  padding: 26px 28px;
  min-height: 0;
  background: linear-gradient(180deg, rgba(232, 248, 255, 0.82), rgba(255, 255, 255, 0.98));
}

.panel-kicker {
  display: inline-block;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--secondary);
  background: rgba(41, 53, 135, 0.08);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.contact-list {
  list-style: none;
  padding: 0;
}

.contact-list li {
  display: grid;
  gap: 6px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(41, 53, 135, 0.1);
}

.contact-list li:last-child {
  border-bottom: 0;
}

.contact-list span {
  color: var(--muted);
  font-size: 0.9rem;
}

.notice-card {
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(232, 248, 255, 0.96), rgba(255, 255, 255, 0.96));
  color: var(--secondary-deep);
}

.hero .notice-card {
  border-left: 5px solid var(--primary);
}

.notice-card h3,
.notice-card p {
  color: var(--secondary-deep);
}

.notice-card p {
  opacity: 0.96;
}

.section {
  margin-top: 24px;
  padding: 54px max(24px, calc((100vw - 1180px) / 2));
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
  box-shadow: none;
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading h2 {
  font-size: 2.8rem;
  max-width: 16ch;
}

.section-subheading {
  margin: 30px 0 16px;
}

.two-column,
.three-column,
.service-grid,
.allies-grid,
.contact-panel {
  display: grid;
  gap: 18px;
}

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

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

.contact-social-card {
  grid-column: 1 / -1;
  display: grid;
  gap: 16px;
  align-items: center;
  background: linear-gradient(135deg, rgba(232, 248, 255, 0.98), rgba(255, 255, 255, 0.98));
}

.contact-social-card h3,
.contact-social-card p {
  color: var(--secondary-deep);
}

.contact-social-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.contact-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid rgba(11, 95, 196, 0.16);
  border-radius: 8px;
  color: var(--secondary);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.76);
  transition: transform 180ms ease, background 180ms ease;
}

.contact-social-links a:hover,
.contact-social-links a:focus-visible {
  transform: translateY(-1px);
  background: rgba(19, 168, 216, 0.12);
}

.contact-social-links svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: 0 0 auto;
}

.contact-map-section {
  padding-top: 38px;
}

.map-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: 0 18px 46px rgba(11, 95, 196, 0.09);
}

.map-address {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(81, 197, 226, 0.14), rgba(255, 255, 255, 0.98));
}

.map-address-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.map-address-copy strong {
  color: var(--secondary-deep);
  font-size: 1.08rem;
  line-height: 1.2;
}

.map-address-copy span {
  color: var(--muted);
  line-height: 1.45;
}

.map-pin {
  position: relative;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50% 50% 50% 0;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  transform: rotate(-45deg);
  box-shadow: 0 10px 20px rgba(11, 95, 196, 0.16);
}

.map-pin::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 999px;
  background: white;
}

.google-map {
  display: block;
  width: 100%;
  min-height: 420px;
  border: 0;
}

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

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

.content-card,
.service-card,
.ally-card {
  padding: 22px;
}

.image-card {
  padding: 0 0 22px;
}

.image-card h3,
.image-card p {
  padding-left: 22px;
  padding-right: 22px;
}

.card-media,
.content-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 20px;
}

.content-media {
  border-radius: 8px;
}

.accent-card {
  background: linear-gradient(135deg, rgba(81, 197, 226, 0.16), rgba(255, 255, 255, 1));
}

.content-card h3,
.service-card h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.content-card p,
.service-card p {
  margin: 0;
  line-height: 1.8;
}

.institutional-section {
  background:
    linear-gradient(180deg, #ffffff 0%, #eef9ff 48%, #ffffff 100%);
}

.institutional-flow {
  display: grid;
  gap: 22px;
  max-width: 1040px;
  margin: 0 auto;
}

.institutional-card {
  scroll-margin-top: 104px;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 24px;
  min-height: 280px;
  padding: 30px;
  border: 1px solid rgba(41, 53, 135, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 252, 0.96)),
    linear-gradient(90deg, rgba(81, 197, 226, 0.16), transparent);
  box-shadow: 0 18px 46px rgba(11, 95, 196, 0.09);
}

.institutional-card-feature {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(229, 249, 246, 0.96)),
    linear-gradient(90deg, rgba(25, 169, 116, 0.16), transparent);
}

.institutional-card-quality {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(238, 245, 255, 0.96)),
    linear-gradient(90deg, rgba(41, 53, 135, 0.16), transparent);
}

.institutional-marker {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  box-shadow: 0 18px 32px rgba(11, 95, 196, 0.16);
  font-size: 2.2rem;
  font-weight: 800;
}

.institutional-copy {
  align-self: center;
}

.institutional-copy h2 {
  max-width: 18ch;
  margin-bottom: 16px;
  font-size: 2.55rem;
}

.institutional-copy p:not(.eyebrow) {
  max-width: 76ch;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.85;
}

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

.card-action {
  margin-top: 18px !important;
}

.card-button {
  margin: 18px 22px 0;
  width: calc(100% - 44px);
}

.wide-card {
  grid-column: span 2;
}

.ally-card {
  display: grid;
  place-items: center;
  min-height: 120px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--secondary);
  background: linear-gradient(135deg, rgba(81, 197, 226, 0.14), rgba(41, 53, 135, 0.06));
}

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

.clients-section {
  background: linear-gradient(180deg, #ffffff, #eef9ff);
}

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

.ally-logo-card {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(11, 95, 196, 0.08);
}

.client-logo-card {
  display: grid;
  place-items: center;
  min-height: 150px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(11, 95, 196, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.client-logo-card:hover {
  transform: translateY(-3px);
  border-color: rgba(81, 197, 226, 0.5);
  box-shadow: 0 18px 38px rgba(11, 95, 196, 0.12);
}

.ally-logo-card img {
  max-width: 100%;
  max-height: 170px;
  object-fit: contain;
}

.client-logo-card img {
  max-width: 100%;
  max-height: 76px;
  object-fit: contain;
}

.footer {
  margin-top: 24px;
  padding: 0;
  background: linear-gradient(120deg, #eef8fc, #ffffff 52%, #e8f1ff);
  color: var(--secondary-deep);
}

.footer p {
  margin: 0;
  color: rgba(27, 36, 95, 0.78);
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 28px 18px;
}

.footer-brand-block {
  display: flex;
  align-items: center;
  gap: 22px;
}

.footer-logo {
  width: 132px;
  height: auto;
  flex: 0 0 auto;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 28px rgba(11, 95, 196, 0.1);
}

.footer-contact {
  display: grid;
  gap: 10px;
  margin: 0;
  color: var(--secondary-deep);
  font-style: normal;
  font-weight: 600;
  line-height: 1.35;
}

.footer-contact a {
  text-decoration: none;
}

.footer-contact a:hover,
.footer-contact a:focus-visible {
  color: var(--secondary);
  text-decoration: underline;
}

.footer-contact-item {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
}

.footer-contact-item::before {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
}

.footer-location::before {
  content: "i";
}

.footer-mail::before {
  content: "@";
}

.footer-phone::before {
  content: "T";
}

.footer-hours::before {
  content: "H";
}

.supersalud-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(280px, 100%);
  padding: 6px 8px;
  border: 1px solid rgba(41, 53, 135, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 34px rgba(11, 95, 196, 0.1);
}

.supersalud-badge img {
  display: block;
  width: 100%;
  max-width: 250px;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
}

.footer-legal {
  display: block;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 28px 22px;
  border-top: 1px solid rgba(41, 53, 135, 0.12);
  text-align: center;
}

.social-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
}

.social-links a {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--secondary);
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  color: white;
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.social-links svg {
  display: block;
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.social-links-top {
  position: absolute;
  top: 18px;
  right: 0;
  gap: 7px;
}

.social-links-top a {
  width: 28px;
  height: 28px;
  color: white;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  border: 1px solid rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
}

.social-links-top a:hover,
.social-links-top a:focus-visible {
  background: rgba(81, 197, 226, 0.92);
}

.social-links-top svg {
  width: 14px;
  height: 14px;
}

.whatsapp-chat {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100vw - 44px);
  padding: 10px 16px 10px 10px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #25d366, #0a9f57);
  box-shadow: 0 18px 40px rgba(10, 159, 87, 0.28);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.whatsapp-chat:hover,
.whatsapp-chat:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(10, 159, 87, 0.36);
}

.whatsapp-chat-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.whatsapp-chat-icon svg {
  display: block;
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.whatsapp-chat-copy {
  display: grid;
  gap: 1px;
  line-height: 1.1;
}

.whatsapp-chat-copy strong,
.whatsapp-chat-copy small {
  display: block;
  white-space: nowrap;
}

.whatsapp-chat-copy strong {
  font-size: 0.95rem;
}

.whatsapp-chat-copy small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
}

.info-dialog {
  width: min(1120px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 32px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: var(--text);
  background: white;
  box-shadow: 0 30px 90px rgba(10, 24, 68, 0.35);
}

.info-dialog::backdrop {
  background: rgba(6, 16, 40, 0.62);
  backdrop-filter: blur(4px);
}

.dialog-shell {
  display: grid;
  max-height: inherit;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}

.dialog-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dialog-tab,
.dialog-close {
  border: 0;
  font-family: inherit;
  cursor: pointer;
  background: transparent;
}

.dialog-tab {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 600;
}

.dialog-tab.is-active,
.dialog-tab:hover {
  color: var(--secondary);
  background: rgba(81, 197, 226, 0.14);
}

.dialog-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 2rem;
  line-height: 1;
}

.dialog-close:hover {
  color: var(--secondary-deep);
  background: rgba(41, 53, 135, 0.08);
}

.dialog-panel {
  overflow: auto;
  padding: 22px;
}

.dialog-panel h2 {
  margin-bottom: 22px;
  color: var(--text);
  font-size: 1.75rem;
  line-height: 1.2;
}

.dialog-content-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.dialog-media {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
}

.dialog-copy {
  padding: 26px 30px;
}

.dialog-copy p {
  margin: 0 0 18px;
  color: #2a3342;
  line-height: 1.7;
}

.dialog-copy h3 {
  margin: 18px 0 8px;
  color: var(--text);
  font-size: 1.25rem;
}

.dialog-copy a {
  color: var(--secondary);
  font-weight: 700;
}

.dialog-copy .simple-list {
  margin-top: 0;
  color: #2a3342;
}

.dialog-footer {
  display: flex;
  justify-content: flex-end;
  padding: 16px 22px 22px;
  border-top: 1px solid var(--border);
}

.dialog-action {
  min-width: 120px;
}

.pdf-dialog {
  width: min(1180px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
}

.pdf-dialog .dialog-header h2 {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 1.35rem;
}

.dialog-eyebrow {
  margin: 0;
  color: var(--muted);
}

.pdf-panel {
  padding: 0;
  background: #eef3f8;
}

.pdf-viewer {
  display: block;
  width: 100%;
  height: min(68vh, 720px);
  border: 0;
  background: white;
}

.pdf-dialog .dialog-footer {
  gap: 10px;
}

@media (max-width: 1080px) {
  .hero,
  .page-header {
    padding-left: 22px;
    padding-right: 22px;
  }

  .hero-grid,
  .two-column,
  .three-column,
  .service-grid,
  .compact-grid,
  .allies-grid,
  .clients-logo-grid,
  .contact-panel {
    grid-template-columns: 1fr 1fr;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding-top: 28px;
  }

  h1 {
    font-size: 4rem;
  }

  .page-title {
    font-size: 3.1rem;
  }

  .institutional-heading {
    padding-top: 42px;
  }

  .section {
    padding-left: 22px;
    padding-right: 22px;
  }

  .wide-card {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: 100%;
    margin: 0;
  }

  .hero,
  .page-header,
  .section,
  .footer {
    border-radius: 0;
  }

  .hero {
    min-height: auto;
    padding: 14px 16px 44px;
    background-position: 42% center;
  }

  .page-header {
    min-height: 320px;
    padding: 14px 16px 34px;
    background-position: center;
  }

    .hero-actions,
    .two-column,
    .three-column,
    .service-grid,
    .compact-grid,
    .allies-grid,
    .allies-logo-grid,
    .clients-logo-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .contact-social-card {
    grid-column: auto;
  }

  .contact-social-links {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding-top: 44px;
    padding-bottom: 14px;
  }

  .brand {
    justify-content: center;
  }

  .brand-logo {
    width: 170px;
  }

  .menu {
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: stretch;
    gap: 8px;
  }

  .menu-group {
    width: 100%;
  }

  .submenu {
    position: static;
    margin-top: 8px;
    min-width: 100%;
    border-radius: 8px;
    box-shadow: none;
  }

  .menu a,
  .menu-toggle {
    width: 100%;
    justify-content: center;
    padding: 12px 14px;
    border-radius: 8px;
    text-align: center;
  }

  .submenu a {
    color: var(--secondary);
    background: rgba(255, 255, 255, 0.92);
  }

  .hero-grid {
    gap: 16px;
    padding: 16px 0 0;
  }

  .hero-copy {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .page-heading {
    padding: 22px;
    border-radius: 22px;
  }

  h1 {
    max-width: none;
    font-size: 3rem;
    line-height: 1.02;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.35rem, 12vw, 3.1rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
  }

  .hero .lead {
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .page-title {
    max-width: 100%;
    font-size: 2.4rem;
  }

  .institutional-header {
    min-height: 500px;
  }

  .institutional-heading {
    padding-top: 26px;
  }

  .institutional-card {
    grid-template-columns: 1fr;
    gap: 18px;
    min-height: auto;
    padding: 22px;
  }

  .institutional-marker {
    width: 72px;
    height: 72px;
    font-size: 1.55rem;
  }

  .institutional-copy h2 {
    max-width: 100%;
    font-size: 2rem;
  }

  .section-heading h2 {
    max-width: 100%;
    font-size: 2rem;
  }

  .lead {
    font-size: 1rem;
    line-height: 1.65;
  }

  .hero-actions {
    display: grid;
    gap: 10px;
    margin-top: 20px;
  }

  .button {
    width: 100%;
    min-height: 46px;
    text-align: center;
  }

  .card-button {
    margin-left: 18px;
    margin-right: 18px;
    width: calc(100% - 36px);
  }

  .quick-facts {
    padding-left: 18px;
    font-size: 0.95rem;
  }

  .hero .quick-facts {
    padding: 14px 16px 14px 30px;
    font-size: 0.9rem;
  }

  .panel-card,
  .notice-card,
  .content-card,
  .service-card,
  .ally-card,
  .ally-logo-card {
    border-radius: 8px;
    padding: 18px;
  }

  .ally-logo-card {
    min-height: 180px;
  }

  .ally-logo-card img {
    max-height: 120px;
  }

  .client-logo-card {
    min-height: 118px;
    padding: 18px;
  }

  .client-logo-card img {
    max-height: 58px;
  }

  .image-card {
    padding: 0 0 18px;
  }

  .image-card h3,
  .image-card p {
    padding-left: 18px;
    padding-right: 18px;
  }

  .card-media,
  .content-media {
    aspect-ratio: 4 / 3;
  }

  .google-map {
    min-height: 340px;
  }

  .map-address {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }

  .map-pin {
    width: 32px;
    height: 32px;
  }

  .section {
    margin-top: 0;
    padding: 36px 16px;
  }

  .footer {
    margin-top: 0;
    padding: 0;
  }

  .footer-inner {
    max-width: 100%;
    flex-direction: column;
    align-items: center;
    padding: 20px 16px;
    text-align: center;
  }

  .footer-brand-block {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
  }

  .footer-logo {
    width: 92px;
    border-radius: 14px;
  }

  .footer-contact {
    width: 100%;
    max-width: 360px;
    gap: 10px;
    font-size: 0.92rem;
  }

  .footer-contact-item {
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    text-align: left;
    word-break: break-word;
  }

  .footer-contact-item::before {
    width: 26px;
    height: 26px;
    border-radius: 9px;
    font-size: 0.68rem;
  }

  .supersalud-badge {
    justify-content: center;
    min-width: 0;
    width: min(240px, 100%);
    padding: 5px 6px;
  }

  .supersalud-badge img {
    max-width: 215px;
  }

  .footer-legal {
    padding: 14px 16px 20px;
    font-size: 0.86rem;
  }

  .whatsapp-chat {
    right: 14px;
    bottom: 14px;
    padding: 8px;
  }

  .whatsapp-chat-icon {
    width: 44px;
    height: 44px;
  }

  .whatsapp-chat-copy {
    display: none;
  }

  .social-links-top {
    top: 12px;
    right: 50%;
    transform: translateX(50%);
  }

  .info-dialog {
    width: calc(100vw - 18px);
    max-height: calc(100vh - 18px);
  }

  .dialog-header {
    align-items: flex-start;
    padding: 14px;
  }

  .dialog-tabs {
    flex: 1;
  }

  .dialog-tab {
    padding: 9px 10px;
    font-size: 0.92rem;
  }

  .dialog-panel {
    padding: 16px 14px;
  }

  .dialog-panel h2 {
    font-size: 1.45rem;
  }

  .dialog-content-card {
    grid-template-columns: 1fr;
  }

  .dialog-media {
    min-height: 220px;
    aspect-ratio: 4 / 3;
  }

  .dialog-copy {
    padding: 18px;
  }

  .dialog-footer {
    padding: 14px;
  }

  .pdf-dialog {
    width: calc(100vw - 18px);
  }

  .pdf-dialog .dialog-header h2 {
    font-size: 1.05rem;
  }

  .pdf-viewer {
    height: 62vh;
  }

  .pdf-dialog .dialog-footer {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .hero,
  .page-header {
    padding-left: 12px;
    padding-right: 12px;
  }

  h1 {
    font-size: 2.45rem;
  }

  .page-title {
    font-size: 2rem;
  }

  .section-heading h2 {
    font-size: 1.8rem;
  }

  .brand-logo {
    width: 150px;
  }

  .menu a,
  .menu-toggle,
  .button {
    font-size: 0.92rem;
  }

  .client-logo-card {
    min-height: 96px;
    padding: 14px;
  }

  .client-logo-card img {
    max-height: 48px;
  }

  .section {
    padding-left: 12px;
    padding-right: 12px;
  }
}
