/* Dr. Guillermo Bautista — Sitio médico | Design system */
@import url("https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap");

:root {
  --ink: #0c1a24;
  --ink-soft: #3d5563;
  --mist: #dce8ec;
  --pearl: #f4f8fa;
  --white: #ffffff;
  --teal: #156573;
  --teal-deep: #0a4550;
  --teal-light: #7ec8d8;
  --accent: #1e88b5;
  --mint: #e6f4f1;
  --success: #2f6b4f;
  --danger: #a33b3b;
  --shadow: 0 12px 40px rgba(12, 26, 36, 0.08);
  --shadow-lg: 0 24px 60px rgba(12, 26, 36, 0.14);
  --radius: 14px;
  --radius-sm: 8px;
  --nav-h: 72px;
  --topbar-h: 40px;
  --font-display: "DM Serif Display", Georgia, serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(26, 122, 140, 0.12), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(45, 156, 219, 0.08), transparent 50%),
    linear-gradient(180deg, #fafcfd 0%, var(--pearl) 40%, #e8f0f3 100%);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

[hidden] {
  display: none !important;
}

/* —— Topbar —— */
.topbar {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  min-height: var(--topbar-h);
  display: flex;
  align-items: center;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  padding-block: 0.55rem;
  flex-wrap: wrap;
}

.topbar__social {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

.topbar__social a {
  opacity: 0.75;
  transition: opacity 0.25s var(--ease), color 0.25s var(--ease);
}

.topbar__social a:hover {
  opacity: 1;
  color: var(--teal-light);
}

.topbar__social--hidden {
  display: none;
}

.topbar__note {
  text-transform: uppercase;
  font-weight: 500;
}

.topbar__note span {
  color: #a8dce8;
  font-weight: 600;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(244, 248, 250, 0.88);
  border-bottom: 1px solid rgba(12, 26, 36, 0.06);
  transition: box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 8px 30px rgba(12, 26, 36, 0.08);
}

.header__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: var(--nav-h);
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand__mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(26, 122, 140, 0.2);
}

.brand__mark span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--pearl);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--teal-deep);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__name {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.brand__tag {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--teal-deep);
  font-weight: 700;
  opacity: 1;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(12, 26, 36, 0.12);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav {
  justify-self: center;
  min-width: 0;
}

.nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0;
}

.nav__item {
  position: relative;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.55rem 0.72rem;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.nav__link:hover,
.nav__link.is-active,
.nav__item:focus-within > .nav__link {
  color: var(--ink);
  background: rgba(12, 26, 36, 0.05);
}

.nav__chevron {
  width: 10px;
  height: 10px;
  opacity: 0.55;
  transition: transform 0.25s var(--ease);
}

.nav__item:hover .nav__chevron,
.nav__item:focus-within .nav__chevron {
  transform: rotate(180deg);
}

.dropdown {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 260px;
  background: var(--white);
  border: 1px solid rgba(12, 26, 36, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.55rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  z-index: 50;
}

.dropdown--wide {
  min-width: min(520px, 85vw);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.25rem;
}

.nav__item:hover > .dropdown,
.nav__item:focus-within > .dropdown,
.nav__item.is-open > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--ink-soft);
  transition: background 0.2s, color 0.2s;
}

.dropdown a:hover {
  background: var(--mint);
  color: var(--ink);
}

.dropdown__label {
  grid-column: 1 / -1;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--teal-deep);
  padding: 0.5rem 0.85rem 0.25rem;
  font-weight: 600;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  justify-self: end;
}

.header-cta {
  white-space: nowrap;
}

.mobile-nav {
  display: none;
}

.mobile-nav__cta {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem !important;
  background: var(--teal);
  color: white !important;
  border-radius: var(--radius-sm);
  text-align: center;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, box-shadow 0.25s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--ink);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--ink-soft);
  box-shadow: 0 10px 24px rgba(12, 26, 36, 0.2);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(12, 26, 36, 0.15);
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--white);
}

.btn--ghost-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-1px);
}

.btn--accent {
  background: linear-gradient(135deg, var(--teal), var(--accent));
  color: var(--white);
}

.btn--accent:hover {
  box-shadow: 0 10px 24px rgba(26, 122, 140, 0.35);
}

.btn--block {
  width: 100%;
}

.btn--sm {
  padding: 0.55rem 0.95rem;
  font-size: 0.82rem;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(72vh, 620px);
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(120deg, rgba(12, 26, 36, 0.82) 0%, rgba(15, 85, 99, 0.55) 55%, rgba(12, 26, 36, 0.72) 100%),
    radial-gradient(circle at 70% 40%, rgba(94, 184, 201, 0.25), transparent 40%),
    url("../assets/images/hero-texture.svg") center/cover no-repeat,
    #0f3d47;
}

.hero__content {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 1.75rem 0 2.75rem;
  animation: rise 0.9s var(--ease) both;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(200px, 0.55fr);
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: start;
}

.hero__main {
  max-width: 38rem;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  margin-bottom: 0.75rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 6.5vw, 4.1rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero__lead {
  max-width: 36rem;
  font-size: clamp(1rem, 1.85vw, 1.12rem);
  font-weight: 400;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.18);
}

.hero__aside {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.hero__stat-value {
  font-family: var(--font-display);
  font-size: 2.75rem;
  line-height: 1;
  color: #fff;
}

.hero__stat-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.02em;
}

.hero__creds {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.03em;
}

.hero__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-top: 1.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__area {
  margin: 0;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 28ch;
  line-height: 1.45;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* —— Sections —— */
.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--teal-deep);
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  margin: 0;
  line-height: 1.1;
}

.section__sub {
  margin: 0.55rem 0 0;
  max-width: 36rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

.page-hero {
  padding: 1.5rem 0 1.35rem;
}

.page-hero .section__sub {
  margin-top: 0.9rem;
  max-width: 42rem;
  font-size: 1.02rem;
  line-height: 1.7;
}

.page-hero .page-title {
  margin-bottom: 0.15rem;
}

.section--trust {
  padding-top: clamp(1.25rem, 3vw, 2rem);
  padding-bottom: 0;
}

.section--trust + .section {
  padding-top: clamp(1.75rem, 3.5vw, 2.75rem);
}

.trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 1rem;
}

.trust__item {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(12, 26, 36, 0.06);
  border-radius: var(--radius);
  padding: 1.15rem 1.1rem;
  box-shadow: var(--shadow);
  text-align: center;
  animation: rise 0.8s var(--ease) both;
}

.trust__item:nth-child(2) { animation-delay: 0.08s; }
.trust__item:nth-child(3) { animation-delay: 0.16s; }
.trust__item:nth-child(4) { animation-delay: 0.24s; }

.trust__item strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 0.2rem;
}

.trust__item span {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* —— Specialty tiles —— */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.spec-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 0;
  padding: 1.35rem 1.25rem;
  color: white;
  background: linear-gradient(145deg, var(--teal-deep), var(--teal));
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.65rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.spec-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.spec-tile.tone-2 { background: linear-gradient(145deg, #0d4a6e, var(--accent)); }
.spec-tile.tone-3 { background: linear-gradient(145deg, #1a5c4a, #2d9c7a); }
.spec-tile.tone-4 { background: linear-gradient(145deg, #3d4a6e, #5a6b9a); }
.spec-tile.tone-5 { background: linear-gradient(145deg, #5c3d4a, #8c5a6b); }

.spec-tile__icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  opacity: 0.28;
}

.spec-tile__icon svg {
  width: 100%;
  height: 100%;
}

.spec-tile__name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.15;
  padding-right: 2rem;
}

.spec-tile.tone-consulta { background: linear-gradient(145deg, #134a62, #1a6888); }

.spec-tile__meta {
  font-size: 0.84rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
}

.section--featured {
  padding-top: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section:has(.spec-grid) {
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

/* —— Doctor highlight —— */
.doctor-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 2rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(12, 26, 36, 0.06);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow);
}

.doctor-card__visual {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(26, 122, 140, 0.15), rgba(45, 156, 219, 0.08)),
    var(--mint);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.5rem;
}

.doctor-card__initial {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--accent));
  color: white;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
  box-shadow: 0 8px 24px rgba(26, 122, 140, 0.3);
}

.doctor-card__visual p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.doctor-card__list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.doctor-card__list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.doctor-card__list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

/* —— Services page —— */
.services-intro {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.25rem;
  align-items: center;
  background: linear-gradient(135deg, rgba(26, 122, 140, 0.1), rgba(45, 156, 219, 0.08));
  border: 1px solid rgba(26, 122, 140, 0.15);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  margin-bottom: 1.5rem;
}

.services-intro p {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  max-width: 52ch;
}

.service-block {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(12, 26, 36, 0.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
  overflow: hidden;
  scroll-margin-top: calc(var(--topbar-h) + var(--nav-h) + 1rem);
}

.service-block__accent {
  width: 72px;
  display: grid;
  place-items: center;
  padding: 1.25rem 0.75rem;
  background: linear-gradient(180deg, var(--teal-deep), var(--teal));
  color: rgba(255, 255, 255, 0.9);
}

.service-block__accent svg {
  width: 32px;
  height: 32px;
  opacity: 0.85;
}

.service-block.tone-consulta .service-block__accent {
  background: linear-gradient(180deg, #1a4a6e, #2d7a9c);
}

.service-block.tone-2 .service-block__accent {
  background: linear-gradient(180deg, #0d4a6e, var(--accent));
}

.service-block.tone-3 .service-block__accent {
  background: linear-gradient(180deg, #1a5c4a, #2d9c7a);
}

.service-block.tone-4 .service-block__accent {
  background: linear-gradient(180deg, #3d4a6e, #5a6b9a);
}

.service-block.tone-5 .service-block__accent {
  background: linear-gradient(180deg, #5c3d4a, #8c5a6b);
}

.service-block__body {
  padding: clamp(1.15rem, 2.5vw, 1.65rem) clamp(1.15rem, 2.5vw, 1.75rem);
  min-width: 0;
}

.service-block__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.service-block__title {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  font-weight: 600;
  margin: 0;
  line-height: 1.15;
  color: var(--ink);
}

.service-block__summary {
  margin: 0.4rem 0 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  max-width: 52ch;
  line-height: 1.5;
}

.procedure-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.procedure-tag {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.84rem;
  color: var(--ink-soft);
  background: var(--mint);
  border: 1px solid rgba(26, 122, 140, 0.12);
}

.credentials-bar {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 0.75rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--mint);
  border: 1px solid rgba(26, 122, 140, 0.12);
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.credentials-bar strong {
  color: var(--teal-deep);
  font-weight: 600;
}

.procedure-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.55rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.procedure-list li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.procedure-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-light);
}

/* —— Surgery packages —— */
.section--packages {
  background: rgba(255, 255, 255, 0.35);
}

.packages-hero-banner {
  margin-top: 0.25rem;
  margin-bottom: 1.75rem;
}

.packages-hero-banner__inner {
  padding: 1.15rem 1.35rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--teal-deep), var(--teal));
  color: white;
  box-shadow: var(--shadow);
}

.packages-hero-banner__eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  opacity: 0.85;
  font-weight: 700;
}

.packages-hero-banner__text {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
}

.pkg-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.pkg-grid--home {
  grid-template-columns: repeat(2, 1fr);
}

.pkg-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(12, 26, 36, 0.07);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  scroll-margin-top: calc(var(--topbar-h) + var(--nav-h) + 1rem);
}

.pkg-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pkg-card__banner {
  position: relative;
  height: 148px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--teal-deep), var(--teal));
}

.pkg-card__banner-deco {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.14), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(126, 200, 216, 0.2), transparent 40%);
  pointer-events: none;
}

.pkg-card__banner-art {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-52%);
  width: 130px;
  height: 110px;
  opacity: 0.92;
  pointer-events: none;
}

.pkg-card__banner-art svg {
  width: 100%;
  height: 100%;
}

.pkg-card__banner--vesicula {
  background: linear-gradient(135deg, #0a4550 0%, #1a8a9e 55%, #2aabbf 100%);
}

.pkg-card__banner--hernia-inguinal {
  background: linear-gradient(135deg, #134a62 0%, #2d7a9c 100%);
}

.pkg-card__banner--hernia-umbilical {
  background: linear-gradient(135deg, #1a5c6e 0%, #3a9eb5 100%);
}

.pkg-card__banner--hemorroides {
  background: linear-gradient(135deg, #1a5c4a 0%, #2d9c7a 100%);
}

.pkg-card__banner--histerectomia {
  background: linear-gradient(135deg, #5c3d5a 0%, #8c5a7b 100%);
}

.pkg-card__banner--quiste-ovario {
  background: linear-gradient(135deg, #4a3d6e 0%, #7a6b9a 100%);
}

.pkg-card__banner--circuncision {
  background: linear-gradient(135deg, #0d4a6e 0%, #1e88b5 100%);
}

.pkg-card__banner--hernia-hiatal {
  background: linear-gradient(135deg, #0a3540 0%, #156573 100%);
}

.pkg-card__banner-img {
  display: none;
}

.pkg-card__technique {
  position: absolute;
  left: 0.85rem;
  bottom: 0.75rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--teal-deep);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pkg-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.15rem 1.25rem 1.25rem;
  gap: 0.35rem;
}

.pkg-card__category {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal-deep);
  font-weight: 700;
}

.pkg-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.45rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
}

.pkg-card__subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.pkg-card__note,
.pkg-card__alt {
  margin: 0.15rem 0 0;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  line-height: 1.4;
}

.pkg-card__note {
  background: rgba(163, 59, 59, 0.08);
  border: 1px solid rgba(163, 59, 59, 0.15);
  color: #7a3030;
}

.pkg-card__alt {
  background: var(--mint);
  border: 1px solid rgba(26, 122, 140, 0.12);
  color: var(--ink-soft);
}

.pkg-card__footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(12, 26, 36, 0.07);
}

.pkg-card__price-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-bottom: 0.15rem;
}

.pkg-card__price {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  font-weight: 400;
  color: var(--teal-deep);
  line-height: 1;
}

.pkg-card__cta {
  white-space: nowrap;
}

.pkg-card--compact .pkg-card__banner {
  height: 120px;
}

.packages-scope-note {
  margin-top: 1.25rem;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(26, 122, 140, 0.15);
  border-left: 4px solid var(--teal);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-soft);
  box-shadow: var(--shadow);
}

.packages-scope-note strong {
  color: var(--ink);
}

.pkg-card--compact .pkg-card__body {
  padding: 1rem 1.1rem 1.1rem;
}

.pkg-card--compact .pkg-card__note,
.pkg-card--compact .pkg-card__alt {
  display: none;
}

/* —— Maps —— */
.section--map {
  background: rgba(255, 255, 255, 0.45);
}

.maps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.maps-grid--single {
  grid-template-columns: 1fr;
  max-width: 760px;
}

.map-embed--tall {
  min-height: min(42vh, 360px);
}

.map-embed--tall iframe {
  height: min(42vh, 360px);
}

.map-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.65rem;
}

.map-embed {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(12, 26, 36, 0.08);
  box-shadow: var(--shadow);
  background: var(--mist);
  min-height: min(38vh, 320px);
}

.map-embed::before {
  content: "Cargando mapa…";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.map-embed--loaded::before,
.map-embed--error::before {
  opacity: 0;
}

.map-embed--error::after {
  content: "No se pudo cargar el mapa. Usa el enlace de abajo.";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
  font-size: 0.86rem;
  color: var(--ink-soft);
  z-index: 1;
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: min(38vh, 320px);
  border: 0;
  position: relative;
  z-index: 2;
  background: var(--mist);
}

.map-card__link {
  margin: 0.55rem 0 0;
  font-size: 0.84rem;
}

.map-card__link a {
  color: var(--teal-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.map-card__link a:hover {
  color: var(--accent);
}

/* —— Location —— */
.section--location {
  background: rgba(255, 255, 255, 0.45);
  padding-top: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section--map {
  background: rgba(255, 255, 255, 0.45);
}

.location-card {
  max-width: 920px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(12, 26, 36, 0.08);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.location-card__head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: end;
  padding: clamp(1.35rem, 3vw, 1.85rem) clamp(1.35rem, 3vw, 2rem);
  border-bottom: 1px solid rgba(12, 26, 36, 0.07);
}

.location-card__intro .section__title {
  margin: 0;
}

.location-card__details {
  text-align: right;
}

.location-address {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.55;
}

.location-hours {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

.location-card__map .map-embed {
  border-radius: 0;
  border: none;
  border-top: 1px solid rgba(12, 26, 36, 0.05);
  border-bottom: 1px solid rgba(12, 26, 36, 0.05);
  box-shadow: none;
}

.location-card__map .map-card__link {
  margin: 0;
  padding: 0.7rem clamp(1.35rem, 3vw, 2rem);
  font-size: 0.86rem;
  background: rgba(248, 251, 252, 0.85);
}

.location-card__footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 1.25rem;
  align-items: center;
  padding: clamp(1rem, 2.5vw, 1.35rem) clamp(1.35rem, 3vw, 2rem);
  background: rgba(248, 251, 252, 0.9);
}

.location-card__cta {
  white-space: nowrap;
  flex-shrink: 0;
}

.section__title--sm {
  font-size: clamp(1.65rem, 3.5vw, 2.15rem);
}

.appointment-alert {
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  background: rgba(163, 59, 59, 0.08);
  border: 1px solid rgba(163, 59, 59, 0.22);
  border-left: 4px solid #a33b3b;
}

.appointment-alert--card {
  margin: 0;
}

.appointment-alert--compact {
  margin-top: 0.85rem;
}

.appointment-alert__title {
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
  font-weight: 800;
  color: #7a3030;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.appointment-alert p:last-child {
  margin: 0;
  line-height: 1.6;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

/* —— Content pages —— */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-bottom: 0.85rem;
}

.breadcrumbs a:hover {
  color: var(--teal-deep);
}

.breadcrumbs .sep {
  opacity: 0.4;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin: 0;
  font-weight: 400;
  line-height: 1.05;
}

.content-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(12, 26, 36, 0.06);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.25rem;
  padding-bottom: 4rem;
}

.form-field {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(12, 26, 36, 0.12);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26, 122, 140, 0.15);
}

.form-field--honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-error {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  background: rgba(163, 59, 59, 0.1);
  border: 1px solid rgba(163, 59, 59, 0.25);
  color: #7a3030;
  font-size: 0.88rem;
  line-height: 1.5;
}

.form-error[hidden] {
  display: none;
}

.form-stack {
  display: grid;
  gap: 0.85rem;
}

.placeholder {
  opacity: 0.55;
  font-style: italic;
}

.faq-list details {
  border-bottom: 1px solid rgba(12, 26, 36, 0.08);
  padding: 0.85rem 0;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  color: var(--teal);
  font-weight: 400;
}

.faq-list details[open] summary::after {
  content: "–";
}

.faq-list p {
  margin: 0.65rem 0 0;
  color: var(--ink-soft);
}

.disclaimer {
  margin-top: 1.5rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  background: var(--mint);
  border: 1px solid rgba(26, 122, 140, 0.15);
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* —— Footer —— */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  padding: 3.5rem 0 1.75rem;
  margin-top: 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer__brand .brand__name {
  color: white;
}

.footer__brand .brand__tag {
  color: rgba(255, 255, 255, 0.55);
}

.footer__brand p {
  margin: 1rem 0 0;
  max-width: 32ch;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer__col h4 {
  margin: 0 0 0.85rem;
  color: var(--teal-light);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__col li {
  margin-bottom: 0.45rem;
}

.footer__col a:hover {
  color: white;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
}

.wa-fab {
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: white;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.35);
  transition: transform 0.25s var(--ease);
}

.wa-fab:hover {
  transform: scale(1.06);
}

.wa-fab svg {
  width: 28px;
  height: 28px;
}

/* —— Responsive —— */
@media (max-width: 1100px) {
  .nav-toggle {
    display: inline-flex;
    order: -1;
  }

  .header__inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .brand {
    justify-content: center;
  }

  .nav {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .mobile-nav {
    display: block;
    position: fixed;
    top: calc(var(--topbar-h) + var(--nav-h));
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: rgba(244, 248, 250, 0.98);
    z-index: 95;
    padding: 1rem 1rem 2rem;
    overflow-y: auto;
    transform: translateX(-105%);
    transition: transform 0.35s var(--ease);
  }

  .mobile-nav.is-open {
    transform: translateX(0);
  }

  .mobile-nav details {
    border-bottom: 1px solid rgba(12, 26, 36, 0.08);
  }

  .mobile-nav summary,
  .mobile-nav > a {
    display: block;
    padding: 0.95rem 0.35rem;
    font-weight: 500;
    font-size: 1.02rem;
  }

  .mobile-nav summary {
    cursor: pointer;
    list-style: none;
  }

  .mobile-nav summary::-webkit-details-marker {
    display: none;
  }

  .mobile-nav .sub a {
    display: block;
    padding: 0.55rem 0.75rem;
    color: var(--ink-soft);
    font-size: 0.92rem;
  }

  body.nav-open {
    overflow: hidden;
  }
}

@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .hero__aside {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    max-width: 28rem;
  }

  .hero__stat {
    border-bottom: none;
    padding-bottom: 0;
    padding-right: 1.15rem;
    margin-right: 0.25rem;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
  }

  .spec-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust {
    grid-template-columns: repeat(2, 1fr);
  }

  .doctor-card {
    grid-template-columns: 1fr;
  }

  .doctor-card__visual {
    max-width: 280px;
    margin: 0 auto;
    width: 100%;
  }

  .maps-grid {
    grid-template-columns: 1fr;
  }

  .location-panel,
  .location-card__head,
  .location-card__footer {
    grid-template-columns: 1fr;
  }

  .location-card__details {
    text-align: left;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(12, 26, 36, 0.07);
  }

  .location-card__cta {
    width: 100%;
    justify-self: stretch;
    text-align: center;
  }

  .map-embed--tall {
    min-height: 240px;
  }

  .map-embed--tall iframe {
    height: 240px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .spec-grid,
  .trust,
  .pkg-grid,
  .pkg-grid--home {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: min(65vh, 540px);
  }

  .hero__content {
    padding: 1.25rem 0 2rem;
  }

  .service-block {
    grid-template-columns: 1fr;
  }

  .service-block__accent {
    width: 100%;
    padding: 0.85rem;
  }

  .service-block__accent svg {
    width: 24px;
    height: 24px;
  }

  .services-intro {
    grid-template-columns: 1fr;
  }

  .hero__bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__area {
    max-width: none;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .section__head {
    flex-direction: column;
    align-items: start;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }
}
