:root {
  --navy-950: #081321;
  --navy-900: #0b1a2b;
  --navy-800: #10243a;
  --navy-700: #173654;
  --navy-600: #23486c;
  --ink: #111827;
  --graphite: #1f2937;
  --slate: #475569;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f8fafc;
  --white: #ffffff;
  --gold: #c9a86a;
  --gold-strong: #b88f45;
  --gold-soft: #e7d3ac;
  --success: #166534;
  --danger: #b91c1c;

  --shadow-sm: 0 10px 24px rgba(11, 26, 43, 0.08);
  --shadow-md: 0 18px 42px rgba(11, 26, 43, 0.12);
  --shadow-lg: 0 28px 70px rgba(11, 26, 43, 0.16);

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-xl: 38px;

  --container: 1180px;
  --gutter: clamp(18px, 4vw, 32px);
  --header-height: 72px;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --t: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.6;
  background:
    radial-gradient(circle at top right, rgba(201, 168, 106, 0.08), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

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

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: transparent;
}

ul, ol {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

:focus-visible {
  outline: 3px solid rgba(201, 168, 106, 0.9);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 999;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--navy-900);
  color: var(--white);
}

.skip-link:focus {
  left: 8px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

h1, h2, h3, h4 {
  margin: 0 0 0.45em;
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy-900);
}

h1, .display {
  font-size: clamp(2.2rem, 8vw, 4.2rem);
}

h2 {
  font-size: clamp(1.8rem, 5vw, 3rem);
}

h3 {
  font-size: clamp(1.3rem, 4vw, 1.9rem);
}

h4 {
  font-family: var(--sans);
  font-size: 1.06rem;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
  color: var(--gray-700);
}

.lead {
  max-width: 62ch;
  color: var(--slate);
  font-size: clamp(1rem, 3.6vw, 1.18rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(17, 36, 58, 0.06);
  color: var(--navy-700);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow--gold {
  background: rgba(201, 168, 106, 0.14);
  color: var(--gold-strong);
}

.accent {
  color: var(--gold-strong);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.22s var(--t), background-color 0.22s var(--t), color 0.22s var(--t), border-color 0.22s var(--t), box-shadow 0.22s var(--t);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--block {
  display: flex;
  width: 100%;
}

.btn--primary {
  background: var(--navy-900);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: var(--navy-700);
}

.btn--gold {
  background: var(--gold);
  color: var(--navy-950);
  box-shadow: var(--shadow-sm);
}

.btn--gold:hover {
  background: var(--gold-strong);
  color: var(--white);
}

.btn--ghost {
  border-color: rgba(11, 26, 43, 0.18);
  color: var(--navy-900);
  background: rgba(255, 255, 255, 0.74);
}

.btn--ghost:hover {
  border-color: rgba(11, 26, 43, 0.36);
}

.btn--ghost-light {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn--sm {
  min-height: 42px;
  padding: 10px 16px;
  font-size: 0.88rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(209, 213, 219, 0.9);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
}

.site-header.is-scrolled {
  box-shadow: 0 6px 20px rgba(11, 26, 43, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}

.brand__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand__text strong {
  color: var(--gray-600);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand__text em {
  color: var(--navy-900);
  font-style: normal;
  font-size: 1.2rem;
  font-weight: 700;
}

.nav,
.header__cta {
  display: none;
}

.nav__toggle {
  width: 44px;
  height: 44px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: 12px;
  border: 1px solid rgba(17, 36, 58, 0.08);
  background: rgba(255, 255, 255, 0.84);
}

.nav__toggle span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy-900);
  transition: transform 0.2s var(--t), opacity 0.2s var(--t);
}

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

.mobile-nav__backdrop {
  position: fixed;
  inset: 0;
  z-index: 68;
  background: rgba(8, 19, 33, 0.38);
}

.mobile-nav {
  position: fixed;
  top: calc(var(--header-height) + 8px);
  left: var(--gutter);
  right: var(--gutter);
  z-index: 69;
  max-height: calc(100dvh - var(--header-height) - 24px);
  overflow: auto;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(209, 213, 219, 0.95);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-lg);
}

.mobile-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.mobile-nav__eyebrow {
  margin: 0;
  color: var(--gray-600);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mobile-nav__close {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--gray-100);
  color: var(--navy-900);
  font-size: 1.6rem;
  line-height: 1;
}

.mobile-nav__list a {
  display: block;
  min-height: 52px;
  padding: 14px 8px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-800);
  font-weight: 600;
}

.mobile-nav__actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.section {
  padding: clamp(56px, 8vw, 104px) 0;
}

.section--alt {
  background:
    linear-gradient(180deg, #f8fafc 0%, #f4f7fb 100%);
}

.section--dark {
  background:
    radial-gradient(circle at top right, rgba(201, 168, 106, 0.12), transparent 28%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: rgba(255, 255, 255, 0.88);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--white);
}

.section--dark p {
  color: rgba(255, 255, 255, 0.78);
}

.section__header {
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
}

.section__header p {
  margin-inline: auto;
  max-width: 60ch;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 34px 0 56px;
  background:
    radial-gradient(circle at top right, rgba(201, 168, 106, 0.12), transparent 26%),
    linear-gradient(180deg, #f8f5ef 0%, #ffffff 58%, #f8fafc 100%);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 0% 100%, rgba(11, 26, 43, 0.08), transparent 34%);
  pointer-events: none;
}

.hero__grid,
.split,
.service-layout,
.contact__grid,
.page-grid,
.cta-band {
  display: grid;
  gap: 22px;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__context {
  max-width: 56ch;
  margin: 14px 0 0;
  color: var(--gray-600);
  font-size: 0.94rem;
  font-weight: 600;
}

.hero__cta {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.hero__points,
.page-hero__points,
.list-check,
.mini-faq,
.method-steps,
.faq {
  display: grid;
  gap: 12px;
}

.hero__points li,
.page-hero__points li,
.list-check li,
.mini-faq li {
  position: relative;
  padding: 12px 14px 12px 42px;
  border: 1px solid rgba(201, 168, 106, 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--gray-800);
}

.hero__points li::before,
.page-hero__points li::before,
.list-check li::before,
.mini-faq li::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 16px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 168, 106, 0.14);
}

.hero__card,
.panel,
.card,
.segment-card,
.team__card,
.service-card,
.doctor-card,
.quick-form,
.contact__info,
.contact__form,
.contact-card,
.page-hero__card,
.method-card,
.faq details,
.legal-card {
  border: 1px solid rgba(209, 213, 219, 0.9);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
}

.hero__card {
  padding: 22px;
}

.card__title,
.contact__label {
  color: var(--gray-600);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.card__list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.card__list li {
  display: flex;
  gap: 10px;
  color: var(--gray-800);
}

.dot {
  width: 8px;
  height: 8px;
  margin-top: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--gold);
}

.segment-grid,
.services-grid,
.team,
.doc-grid,
.issue-grid,
.summary-grid,
.grid-2,
.grid-3 {
  display: grid;
  gap: 16px;
}

.segment-card,
.service-card,
.doctor-card,
.method-card,
.contact-card {
  padding: 22px;
}

.segment-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  justify-content: flex-start;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
}

.segment-card h3,
.service-card h3,
.doctor-card h3,
.method-card h3,
.contact-card h3 {
  margin-bottom: 10px;
}

.segment-card p,
.service-card p,
.doctor-card p,
.method-card p,
.contact-card p {
  margin-bottom: 18px;
}

.segment-card p {
  max-width: 30ch;
}

.segment-card__actions,
.service-card__actions,
.team__links,
.page-cta__actions,
.contact-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.service-card__meta,
.doctor-card__meta {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(201, 168, 106, 0.14);
  color: var(--gold-strong);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.segment-card__actions {
  margin-top: auto;
}

section[aria-labelledby="home-services-title"] {
  display: none;
}

.quick-form,
.contact__form {
  padding: clamp(22px, 4vw, 34px);
}

.quick-form {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 252, 0.97));
}

.quick-form__header {
  margin-bottom: 18px;
}

.field,
.field-row {
  display: grid;
  gap: 8px;
}

.field {
  margin-bottom: 14px;
}

.field-row {
  grid-template-columns: 1fr;
}

.field label {
  color: var(--gray-700);
  font-size: 0.86rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
  color: var(--ink);
  transition: border-color 0.2s var(--t), box-shadow 0.2s var(--t);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--gray-500);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy-700);
  box-shadow: 0 0 0 4px rgba(23, 54, 84, 0.12);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: rgba(185, 28, 28, 0.72);
  box-shadow: 0 0 0 4px rgba(185, 28, 28, 0.12);
}

.field--checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.field--checkbox input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 3px;
  padding: 0;
}

.field--checkbox label {
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.5;
}

.form-status {
  min-height: 1.3em;
  margin-top: 10px;
  font-size: 0.92rem;
  font-weight: 600;
}

.form-status.ok { color: var(--success); }
.form-status.err { color: var(--danger); }

.form-note {
  margin-top: 10px;
  color: var(--gray-500);
  font-size: 0.84rem;
}

.about-compact {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
  text-align: center;
}

.summary-grid .contact-card,
.summary-grid .service-card {
  min-height: 100%;
}

.team__card {
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
}

.team__avatar {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
}

.team__role {
  margin-bottom: 10px;
  color: var(--gold-strong);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.method-steps {
  grid-template-columns: 1fr;
}

.method-card {
  padding: 20px;
}

.method-card__num {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(201, 168, 106, 0.14);
  color: var(--gold-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.faq details {
  padding: 4px 18px;
}

.faq details[open] {
  border-color: rgba(201, 168, 106, 0.7);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 14px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--navy-900);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--gold-strong);
  font-size: 1.4rem;
  flex: 0 0 auto;
}

.faq details[open] summary::after {
  content: "−";
}

.faq p {
  margin: 0 0 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--gray-200);
}

.contact__grid {
  align-items: start;
}

.contact__info {
  padding: 24px 22px;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.contact__label {
  color: var(--gold-soft);
}

.contact__summary {
  color: rgba(255, 255, 255, 0.82);
}

.contact__list {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.contact__list li {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.contact__list .lbl {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--gold-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.contact__list a {
  color: var(--white);
  font-weight: 600;
}

.contact__trust {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
}

.contact__trust li {
  position: relative;
  padding-left: 24px;
  color: rgba(255, 255, 255, 0.8);
}

.contact__trust li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
}

.doctor-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.doctor-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.doctor-card h4 {
  color: var(--white);
}

.doctor-card p {
  color: rgba(255, 255, 255, 0.76);
}

.shortcut-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.shortcut-grid a {
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
}

.shortcut-grid a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.contact__form {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
  box-shadow: 0 28px 64px rgba(8, 19, 33, 0.18);
}

.contact__form::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), rgba(201, 168, 106, 0));
}

.contact__form h3 {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
}

.contact__intro {
  max-width: 54ch;
  color: var(--gray-600);
  font-size: 0.98rem;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 42px 0 48px;
  background:
    radial-gradient(circle at top right, rgba(201, 168, 106, 0.12), transparent 28%),
    linear-gradient(180deg, #f8f5ef 0%, #ffffff 70%);
}

.page-hero__grid {
  display: grid;
  gap: 22px;
}

.page-hero__card {
  padding: 24px;
}

.page-hero__actions,
.page-cta__actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.content-list {
  display: grid;
  gap: 10px;
}

.content-list li {
  position: relative;
  padding-left: 20px;
  color: var(--gray-700);
}

.content-list li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.page-note {
  padding: 18px;
  border-radius: 18px;
  background: rgba(201, 168, 106, 0.08);
  color: var(--gray-700);
}

.page-cta {
  padding: 24px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 252, 0.97));
  border: 1px solid rgba(209, 213, 219, 0.9);
  box-shadow: var(--shadow-sm);
}

.site-footer {
  padding: 48px 0 24px;
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.76);
}

.footer__grid {
  display: grid;
  gap: 24px;
}

.brand--footer .brand__text strong {
  color: rgba(255, 255, 255, 0.56);
}

.brand--footer .brand__text em {
  color: var(--white);
}

.site-footer h4 {
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer__links {
  display: grid;
  gap: 8px;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.82);
}

.footer__bottom {
  display: grid;
  gap: 8px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.58);
}

.wa-float {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 75;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.34);
  animation: pulse 2.4s var(--t) infinite;
}

.wa-float svg {
  width: 28px;
  height: 28px;
}

@keyframes pulse {
  0% { box-shadow: 0 10px 26px rgba(37, 211, 102, 0.34), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 10px 26px rgba(37, 211, 102, 0.34), 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 10px 26px rgba(37, 211, 102, 0.34), 0 0 0 0 rgba(37, 211, 102, 0); }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--t), transform 0.65s var(--t);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.legal-wrap {
  padding: clamp(48px, 8vw, 90px) 0 clamp(60px, 8vw, 100px);
}

.legal-card {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 48px);
}

.legal-meta {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(201, 168, 106, 0.14);
  color: var(--gold-strong);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-card h1 {
  font-size: clamp(1.9rem, 5vw, 2.8rem);
}

.legal-card h2 {
  margin-top: 1.4em;
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
}

.legal-card ul {
  padding-left: 1.2em;
}

.legal-card ul li {
  list-style: disc;
  margin-bottom: 6px;
  color: var(--gray-700);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  color: var(--navy-900);
  font-weight: 700;
  border-bottom: 2px solid var(--gold);
}

.err-wrap {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background:
    radial-gradient(circle at top right, rgba(201, 168, 106, 0.14), transparent 24%),
    linear-gradient(180deg, #f8f5ef 0%, #ffffff 100%);
}

.err-card {
  width: min(100%, 620px);
  padding: clamp(28px, 6vw, 42px);
  text-align: center;
}

.err-code {
  color: var(--navy-900);
  font-family: var(--serif);
  font-size: clamp(4.8rem, 20vw, 8rem);
  line-height: 0.92;
}

.err-code span {
  color: var(--gold-strong);
}

.err-actions {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

@media (min-width: 540px) {
  .hero__cta,
  .page-hero__actions,
  .page-cta__actions,
  .cta-band {
    grid-template-columns: repeat(2, minmax(0, max-content));
  }

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

  .err-actions {
    grid-template-columns: repeat(2, minmax(0, max-content));
    justify-content: center;
  }
}

@media (min-width: 680px) {
  :root {
    --header-height: 76px;
  }

  .segment-grid,
  .services-grid,
  .grid-2,
  .doc-grid,
  .issue-grid,
  .summary-grid,
  .team,
  .method-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
}

@media (min-width: 980px) {
  .nav {
    display: block;
  }

  .header__cta {
    display: inline-flex;
  }

  .nav__toggle,
  .mobile-nav,
  .mobile-nav__backdrop {
    display: none !important;
  }

  .nav__list {
    display: flex;
    align-items: center;
    gap: 22px;
  }

  .nav__list a {
    position: relative;
    padding: 8px 0;
    color: var(--gray-700);
    font-size: 0.94rem;
    font-weight: 500;
  }

  .nav__list a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.22s var(--t);
  }

  .nav__list a:hover::after,
  .nav__list a:focus-visible::after {
    width: 100%;
  }

  .has-dropdown {
    position: relative;
  }

  .dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: -10px;
    min-width: 250px;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid var(--gray-200);
    background: var(--white);
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 0.18s var(--t), transform 0.18s var(--t);
  }

  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .dropdown a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
  }

  .dropdown a::after {
    display: none;
  }

  .dropdown a:hover {
    background: var(--gray-100);
  }

  .hero__grid,
  .page-hero__grid,
  .split,
  .contact__grid,
  .page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
    align-items: start;
  }

  .hero {
    padding: 52px 0 72px;
  }

  .hero__grid {
    align-items: center;
  }

  .hero__card {
    position: sticky;
    top: calc(var(--header-height) + 24px);
  }

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

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

  .summary-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }

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

  .contact__info {
    position: sticky;
    top: calc(var(--header-height) + 24px);
  }

  .page-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

@media (min-width: 1180px) {
  .segment-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

@media (max-width: 539px) {
  .segment-card__actions,
  .service-card__actions,
  .team__links {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .wa-float {
    animation: none;
  }
}

/* Editorial polish for the refactored home. */
body {
  background:
    linear-gradient(180deg, #ffffff 0%, #f6f8fb 42%, #ffffff 100%);
}

#servicios {
  position: relative;
  overflow: hidden;
  padding-top: clamp(44px, 6vw, 76px);
}

#servicios::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11, 26, 43, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(11, 26, 43, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 76%, transparent 100%);
}

#servicios .container {
  position: relative;
}

#servicios .section__header {
  max-width: 780px;
  margin-bottom: clamp(26px, 4vw, 44px);
  text-align: left;
}

#servicios .section__header h2 {
  max-width: 760px;
  font-size: clamp(2.25rem, 4.2vw, 4rem);
}

#servicios .section__header p {
  margin-inline: 0;
}

.segment-grid {
  counter-reset: segment;
  align-items: stretch;
}

.segment-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 256px;
  padding: clamp(24px, 3vw, 34px);
  border-radius: 22px;
  border-color: rgba(148, 163, 184, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 100%);
  box-shadow: 0 18px 42px rgba(11, 26, 43, 0.08);
  counter-increment: segment;
}

.segment-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), rgba(201, 168, 106, 0));
}

.segment-card::after {
  content: "0" counter(segment);
  position: absolute;
  right: 22px;
  bottom: 8px;
  z-index: -1;
  color: rgba(11, 26, 43, 0.045);
  font-family: var(--serif);
  font-size: 6.5rem;
  font-weight: 700;
  line-height: 1;
}

.segment-card h3 {
  max-width: 13ch;
  margin-top: 12px;
  font-size: clamp(1.75rem, 2.4vw, 2.28rem);
}

.segment-card p {
  max-width: 34ch;
  color: var(--gray-600);
  font-size: 0.98rem;
}

.segment-card__actions {
  margin-top: auto;
  padding-top: 10px;
}

.segment-card__actions .btn {
  min-height: 44px;
}

.segment-card__actions .btn--ghost {
  background: rgba(255, 255, 255, 0.92);
}

.service-card__meta {
  background: rgba(201, 168, 106, 0.13);
  color: #9b7130;
}

@media (min-width: 680px) {
  .segment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (min-width: 980px) {
  #servicios {
    padding-bottom: clamp(58px, 7vw, 94px);
  }

  .segment-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 22px;
  }

  .segment-card:nth-child(1),
  .segment-card:nth-child(2) {
    min-height: 300px;
  }

  .segment-card:nth-child(7) {
    grid-column: auto;
    min-height: 256px;
  }
}

@media (min-width: 1180px) {
  .segment-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 679px) {
  #servicios .section__header {
    text-align: left;
  }

  .segment-card {
    min-height: auto;
    padding: 22px;
  }

  .segment-card h3 {
    max-width: none;
  }

  .segment-card::after {
    font-size: 4.8rem;
  }
}

/* Keep one clear conversion form: the quick form near the top. */
#contacto .contact__form {
  display: none;
}

#contacto .contact__grid {
  max-width: 980px;
  margin-inline: auto;
}

#contacto .contact__info {
  position: static;
}

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

#contacto .doctor-card {
  min-height: 100%;
}

@media (max-width: 979px) {
  #contacto .doctor-grid {
    grid-template-columns: 1fr;
  }
}

/* Premium consolidation pass: one clear form, calmer spacing, tighter cards. */
.section {
  padding: clamp(44px, 6.5vw, 78px) 0;
}

.page-hero {
  padding: clamp(34px, 5vw, 58px) 0 clamp(38px, 5.5vw, 66px);
}

.section__header {
  margin-bottom: clamp(24px, 4vw, 40px);
}

.section__header h2 {
  max-width: 820px;
  margin-inline: auto;
}

.section__header p {
  max-width: 56ch;
}

.card,
.segment-card,
.team__card,
.service-card,
.doctor-card,
.method-card,
.contact-card,
.page-hero__card,
.quick-form,
.contact__info,
.contact__form,
.faq details {
  border-radius: 18px;
}

.card,
.page-hero__card,
.method-card,
.team__card {
  padding: clamp(22px, 2.6vw, 30px);
}

.card h3,
.issue-grid .card h3,
.page-grid .card h2 {
  margin-bottom: 12px;
}

.issue-grid .card {
  min-height: 150px;
}

.page-grid .card {
  align-self: start;
}

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

.section--dark {
  padding-top: clamp(48px, 7vw, 86px);
  padding-bottom: clamp(48px, 7vw, 86px);
}

.section--dark .contact__form,
.section--dark .contact__form h3,
.section--dark .contact__form h4,
.section--dark .contact__form label,
.section--dark .contact__form p,
.section--dark .contact__intro,
.section--dark .form-note {
  color: var(--navy-900);
}

.section--dark .contact__form .contact__label {
  color: var(--gold-strong);
}

body:has(#consulta-rapida) #contacto .contact__form {
  display: none !important;
}

#contacto .section__header h2 {
  color: var(--white);
}

#contacto .section__header p {
  color: rgba(255, 255, 255, 0.78);
}

#contacto .contact__grid {
  display: block !important;
  max-width: 1120px;
  margin-inline: auto;
}

#contacto .contact__info {
  width: 100%;
  max-width: none;
  padding: clamp(24px, 4vw, 38px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035));
}

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

#contacto .contact__trust {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

#contacto .doctor-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

#contacto .doctor-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  min-height: 100%;
}

#contacto .doctor-card .btn {
  margin-top: auto;
  border-radius: 14px;
}

#contacto .shortcut-grid {
  margin-top: 8px;
}

#contacto h3 {
  margin-top: 22px;
}

#contacto .contact__label + h3 {
  margin-top: 8px;
}

@media (min-width: 980px) {
  .issue-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .page-grid {
    gap: 24px;
  }
}

@media (max-width: 979px) {
  #contacto .contact__list,
  #contacto .contact__trust,
  #contacto .doctor-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 679px) {
  .section {
    padding: 38px 0;
  }

  .section__header {
    text-align: left;
  }

  .section__header h2,
  .section__header p {
    margin-inline: 0;
  }

  .quick-form,
  .contact__info {
    padding: 22px;
  }
}

/* Mobile experience pass. */
@media (max-width: 679px) {
  :root {
    --header-height: 64px;
    --gutter: 18px;
  }

  html {
    scroll-padding-top: 78px;
  }

  h1,
  .display {
    font-size: clamp(2.05rem, 12vw, 2.85rem);
    line-height: 1.02;
  }

  h2 {
    font-size: clamp(1.7rem, 9vw, 2.25rem);
    line-height: 1.06;
  }

  h3 {
    font-size: clamp(1.25rem, 7vw, 1.7rem);
  }

  p,
  li {
    font-size: 0.96rem;
  }

  .brand__mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .brand__text strong {
    font-size: 0.58rem;
    letter-spacing: 0.13em;
  }

  .brand__text em {
    font-size: 1.08rem;
  }

  .header__inner {
    min-height: var(--header-height);
  }

  .nav__toggle {
    width: 42px;
    height: 42px;
  }

  .mobile-nav {
    top: calc(var(--header-height) + 6px);
    left: 12px;
    right: 12px;
    max-height: calc(100dvh - var(--header-height) - 18px);
    padding: 14px;
    border-radius: 18px;
  }

  .mobile-nav__list a {
    min-height: 48px;
    padding: 12px 8px;
  }

  .hero {
    padding: 28px 0 34px;
  }

  .hero__grid {
    gap: 18px;
  }

  .hero__content .eyebrow,
  .section__header .eyebrow {
    margin-bottom: 10px;
  }

  .hero__context {
    margin-top: 10px;
    font-size: 0.92rem;
  }

  .hero__cta {
    grid-template-columns: 1fr;
    margin-top: 18px;
  }

  .hero__cta .btn,
  .page-cta__actions .btn,
  .page-hero__actions .btn {
    width: 100%;
  }

  .hero__points {
    gap: 8px;
    margin-top: 18px;
  }

  .hero__points li,
  .page-hero__points li,
  .list-check li {
    padding: 11px 12px 11px 36px;
    border-radius: 14px;
    line-height: 1.42;
  }

  .hero__points li::before,
  .page-hero__points li::before,
  .list-check li::before {
    left: 13px;
    width: 8px;
    height: 8px;
  }

  .hero__card {
    padding: 18px;
  }

  #servicios {
    padding-top: 34px;
  }

  #servicios::before {
    background-size: 48px 48px;
  }

  #servicios .section__header {
    margin-bottom: 18px;
  }

  #servicios .section__header h2 {
    font-size: clamp(1.9rem, 10vw, 2.45rem);
  }

  .segment-grid {
    gap: 12px;
  }

  .segment-card {
    min-height: auto;
    padding: 18px;
    border-radius: 16px;
    box-shadow: 0 12px 26px rgba(11, 26, 43, 0.07);
  }

  .segment-card::after {
    font-size: 3.8rem;
    right: 14px;
    bottom: 4px;
  }

  .segment-card h3 {
    margin-top: 8px;
    margin-bottom: 8px;
    font-size: 1.55rem;
  }

  .segment-card p {
    max-width: none;
    margin-bottom: 12px;
    font-size: 0.94rem;
    line-height: 1.48;
  }

  .segment-card__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-top: 2px;
  }

  .segment-card__actions .btn {
    min-height: 42px;
    padding-inline: 12px;
    font-size: 0.86rem;
  }

  #consulta-rapida .split {
    gap: 16px;
  }

  .quick-form {
    border-radius: 18px;
  }

  .quick-form__header {
    margin-bottom: 14px;
  }

  .field {
    margin-bottom: 12px;
  }

  .field label {
    font-size: 0.84rem;
  }

  .field input,
  .field select,
  .field textarea {
    min-height: 50px;
    border-radius: 14px;
    font-size: 1rem;
  }

  .field textarea {
    min-height: 112px;
  }

  .form-note {
    font-size: 0.78rem;
  }

  .about-compact {
    text-align: left;
  }

  .team {
    gap: 12px;
  }

  .team__card {
    padding: 18px;
  }

  .team__avatar {
    width: 52px;
    height: 52px;
    font-size: 1.16rem;
  }

  .method-steps {
    gap: 12px;
  }

  .method-card {
    padding: 18px;
  }

  .faq details {
    padding-inline: 14px;
    border-radius: 16px;
  }

  .faq summary {
    min-height: 54px;
    padding: 12px 0;
  }

  #contacto .section__header {
    text-align: left;
  }

  #contacto .contact__info {
    padding: 18px;
  }

  #contacto .contact__list li {
    padding: 14px;
  }

  #contacto .contact__trust {
    gap: 8px;
  }

  #contacto .doctor-grid {
    gap: 10px;
  }

  #contacto .doctor-card {
    padding: 16px;
  }

  #contacto .doctor-card p {
    margin-bottom: 12px;
  }

  #contacto .shortcut-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  #contacto .shortcut-grid a {
    display: flex;
    justify-content: center;
    min-height: 44px;
  }

  .site-footer {
    padding: 34px 0 22px;
  }

  .footer__grid {
    gap: 20px;
  }

  .wa-float {
    right: 14px;
    bottom: 14px;
    width: 52px;
    height: 52px;
  }
}

@media (max-width: 390px) {
  .segment-card__actions {
    grid-template-columns: 1fr;
  }

  .btn {
    min-height: 48px;
  }
}

/* Mobile hardening: compact, readable, no repeated conversion blocks. */
@media (max-width: 679px) {
  body {
    font-size: 16px;
  }

  .container {
    padding-inline: 20px;
  }

  .section {
    padding: 34px 0 !important;
  }

  .hero {
    padding: 24px 0 30px !important;
  }

  h1,
  .display {
    font-size: 2.15rem !important;
    line-height: 1.04 !important;
  }

  h2,
  #servicios .section__header h2 {
    font-size: 1.82rem !important;
    line-height: 1.08 !important;
    text-align: left;
  }

  h3,
  .segment-card h3,
  .team__card h3,
  .method-card h3 {
    font-size: 1.34rem !important;
    line-height: 1.14 !important;
  }

  p,
  li,
  .lead {
    font-size: 0.96rem !important;
    line-height: 1.52 !important;
  }

  .section__header {
    margin-bottom: 18px !important;
  }

  .eyebrow,
  .service-card__meta,
  .doctor-card__meta,
  .method-card__num {
    min-height: 26px;
    padding: 4px 9px;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
  }

  .btn {
    min-height: 46px;
    padding: 12px 16px;
    font-size: 0.92rem;
  }

  .hero__card {
    display: none;
  }

  .hero__points {
    display: none;
  }

  #servicios .section__header p {
    font-size: 0.98rem !important;
    text-align: left;
  }

  .segment-grid {
    display: grid;
    gap: 12px !important;
  }

  .segment-card {
    display: block;
    padding: 18px !important;
    border: 1px solid rgba(148, 163, 184, 0.32) !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 10px 24px rgba(11, 26, 43, 0.07) !important;
  }

  .segment-card::after {
    display: none;
  }

  .segment-card h3 {
    margin: 8px 0 8px !important;
  }

  .segment-card p {
    margin: 0 0 14px !important;
    color: var(--gray-700);
  }

  .segment-card__actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .segment-card__actions .btn {
    width: 100%;
    min-height: 44px;
  }

  #consulta-rapida .page-hero__card {
    display: none;
  }

  .quick-form {
    padding: 18px !important;
    border-radius: 16px !important;
  }

  .quick-form h2 {
    font-size: 1.72rem !important;
  }

  .field input,
  .field select,
  .field textarea {
    min-height: 48px;
    padding: 12px 13px;
    border-radius: 13px;
  }

  .about-compact p:nth-child(n+3) {
    display: none;
  }

  .team__card,
  .method-card,
  .faq details {
    padding: 18px !important;
    border-radius: 16px !important;
  }

  .team__card p,
  .method-card p {
    font-size: 0.95rem !important;
  }

  .team__avatar {
    width: 48px !important;
    height: 48px !important;
    margin-bottom: 10px;
  }

  .team__links .btn {
    width: 100%;
  }

  .method-steps {
    gap: 10px !important;
  }

  .method-card__num {
    margin-bottom: 8px;
  }

  #contacto .contact__form,
  #contactForm {
    display: none !important;
  }

  #contacto .contact__info {
    padding: 18px !important;
    border-radius: 16px !important;
  }

  #contacto .doctor-card {
    padding: 16px !important;
  }

  #contacto .doctor-card .service-card__meta,
  #contacto .doctor-card p {
    display: none;
  }

  #contacto .doctor-card h4 {
    margin-bottom: 10px;
  }

  #contacto .doctor-card .btn {
    min-height: 44px;
  }

  .wa-float {
    width: 46px !important;
    height: 46px !important;
    right: 12px !important;
    bottom: 12px !important;
  }

  .wa-float svg {
    width: 23px;
    height: 23px;
  }
}

@media (max-width: 390px) {
  h1,
  .display {
    font-size: 1.95rem !important;
  }

  h2,
  #servicios .section__header h2 {
    font-size: 1.68rem !important;
  }

  .container {
    padding-inline: 18px;
  }
}
