/* ================================================
   Dr. Rafael Contasti — Cirujano Plástico
   Paleta: blanco + crema cálido + negro suave + dorado tan
   Tipografía: Cormorant Garamond (display) + Jost (UI)
   ================================================ */

:root {
  /* Color */
  --bg: #ffffff;
  --bg-soft: #faf8f5;
  --bg-warm: #f4efe6;
  --ink: #1a1a1a;
  --ink-soft: #2c2825;
  --muted: #6b6259;
  --muted-2: #9a8f82;
  --line: #e8e2d6;
  --line-soft: #efeae0;
  --gold: #b8a584;
  --gold-deep: #9d8866;
  --gold-soft: #d8c8b0;

  /* Type */
  --serif: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --sans: "Jost", "Albert Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --pad: clamp(20px, 5vw, 64px);
  --pad-y: clamp(64px, 10vw, 140px);
  --max: 1320px;
  --max-text: 720px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ----- TYPE ----- */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
}
.eyebrow.center::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

.display {
  font-size: clamp(40px, 6.8vw, 96px);
  line-height: 1.07;
  letter-spacing: -0.02em;
  font-weight: 300;
}
.display em {
  font-style: italic;
  font-weight: 300;
  color: var(--gold-deep);
}

h2.section-title {
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.08;
  font-weight: 300;
}
h2.section-title em {
  font-style: italic;
  color: var(--gold-deep);
}

h3 {
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.15;
  font-weight: 400;
}

.lead {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.45;
  color: var(--muted);
  text-wrap: pretty;
}

p { text-wrap: pretty; }

/* ----- BUTTONS ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn:hover { background: transparent; color: var(--ink); }
.btn .arrow { transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.btn:hover .arrow { transform: translateX(4px); }

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn.ghost:hover { background: var(--ink); color: var(--bg); }

.btn.gold {
  background: transparent;
  color: var(--ink);
  border-color: var(--gold);
}
.btn.gold:hover { background: var(--gold); color: var(--bg); border-color: var(--gold); }

.link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--gold);
  transition: gap 0.3s ease;
}
.link:hover { gap: 18px; }

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  transition: all 0.35s ease;
}
.nav.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 14px var(--pad);
  border-bottom: 1px solid var(--line-soft);
}

.logo {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0.04em;
  color: var(--ink);
  line-height: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.logo .name { font-size: 19px; }
.logo .sub {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.35s ease;
}
.nav-links a:hover { color: var(--gold-deep); }
.nav-links a:hover::after { width: 100%; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 4px;
  background: rgba(255,255,255,0.6);
}
.lang-switch button {
  background: transparent;
  border: none;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--muted);
  letter-spacing: 0.16em;
  transition: all 0.3s;
}
.lang-switch button.active {
  background: var(--ink);
  color: var(--bg);
}

.nav-cta {
  padding: 10px 18px;
  font-size: 11px;
  letter-spacing: 0.2em;
}

.hamburger {
  display: none;
  background: transparent;
  border: none;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0;
}
.hamburger span {
  height: 1px;
  background: var(--ink);
  transition: all 0.3s;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px var(--pad) 80px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: end;
  background: var(--bg-soft);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 1px;
  background: var(--line);
  opacity: 0.6;
  left: 50%;
}

.hero-text { position: relative; z-index: 2; padding-bottom: 40px; }
.hero-text .display { margin: 28px 0 40px; }
.hero-text .lead { max-width: 520px; margin-bottom: 48px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  height: min(78vh, 720px);
  align-self: stretch;
}

.placeholder {
  position: relative;
  background: var(--bg-warm);
  background-image:
    repeating-linear-gradient(
      135deg,
      transparent 0 18px,
      rgba(184, 165, 132, 0.08) 18px 19px
    );
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
  height: 100%;
}
.placeholder::after {
  content: attr(data-label);
  position: absolute;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding: 8px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
}

.hero-meta {
  position: absolute;
  left: var(--pad);
  bottom: 32px;
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-meta .dot {
  width: 4px; height: 4px;
  background: var(--gold);
  border-radius: 50%;
}
.hero-scroll {
  position: absolute;
  right: var(--pad);
  bottom: 32px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-scroll .line {
  width: 32px;
  height: 1px;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.hero-scroll .line::after {
  content: "";
  position: absolute;
  top: 0; left: -32px;
  width: 100%; height: 100%;
  background: var(--gold);
  animation: scroll-line 2.6s ease-in-out infinite;
}
@keyframes scroll-line {
  0%, 100% { left: -100%; }
  50% { left: 100%; }
}

/* ============ SECTION SHELL ============ */
section {
  padding: var(--pad-y) var(--pad);
  position: relative;
}
.section-head {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  margin-bottom: clamp(48px, 7vw, 96px);
  align-items: end;
}
.section-head.center {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
}
.section-head .label {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 14px;
  color: var(--muted-2);
  letter-spacing: 0.04em;
}

/* ============ ABOUT ============ */
.about {
  background: var(--bg);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(48px, 7vw, 100px);
  align-items: center;
}
.about-visual { position: relative; aspect-ratio: 4/5; }
.about-visual .placeholder { position: absolute; inset: 0; }
.about-visual .badge {
  position: absolute;
  right: -24px;
  bottom: 40px;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 24px 28px;
  text-align: center;
  z-index: 2;
}
.about-visual .badge .num {
  font-family: var(--serif);
  font-size: 56px;
  line-height: 1;
  font-weight: 300;
  color: var(--ink);
}
.about-visual .badge .num em { font-style: italic; color: var(--gold-deep); }
.about-visual .badge .lbl {
  margin-top: 8px;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-content .lead { margin: 0 0 32px; }
.about-content p {
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 18px;
  max-width: 560px;
}

.cred-list {
  margin-top: 48px;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.cred-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 32px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.cred-item .year {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--gold-deep);
}
.cred-item .info .t {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 4px;
}
.cred-item .info .s {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ============ PHILOSOPHY ============ */
.philosophy {
  background: var(--bg-soft);
  text-align: center;
}
.philosophy-quote {
  max-width: 920px;
  margin: 0 auto;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.philosophy-quote em { color: var(--gold-deep); }
.philosophy-attr {
  margin-top: 40px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}
.philosophy-pillars {
  margin-top: clamp(64px, 9vw, 120px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.pillar {
  background: var(--bg-soft);
  padding: 40px 28px;
  text-align: left;
}
.pillar .roman {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--gold-deep);
  margin-bottom: 16px;
}
.pillar h4 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 12px;
}
.pillar p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* ============ PROCEDIMIENTOS ============ */
.procedures { background: var(--bg); }

.proc-cats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.proc-cat {
  background: var(--bg);
  padding: 48px 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  transition: background 0.4s;
}
.proc-cat:hover { background: var(--bg-soft); }
.proc-cat .cat-head {
  position: sticky;
  top: 100px;
}
.proc-cat .cat-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--gold-deep);
  margin-bottom: 16px;
}
.proc-cat h3 {
  font-family: var(--serif);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 300;
  margin-bottom: 16px;
}
.proc-cat .cat-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.proc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.proc-item {
  border-bottom: 1px solid var(--line-soft);
}
.proc-item:last-child { border-bottom: none; }
.proc-trigger {
  width: 100%;
  background: transparent;
  border: none;
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  text-align: left;
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink-soft);
  transition: color 0.3s;
  cursor: pointer;
}
.proc-trigger:hover { color: var(--gold-deep); }
.proc-name { line-height: 1.3; }
.proc-arrow {
  flex-shrink: 0;
  color: var(--gold);
  font-size: 14px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.proc-item.open .proc-trigger { color: var(--gold-deep); }
.proc-item.open .proc-arrow { transform: rotate(90deg); }
.proc-desc {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.proc-desc-inner {
  padding: 0 0 18px;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--muted);
  max-width: 90%;
}
.proc-item.open .proc-desc { max-height: 260px; }

/* ============ ANTES Y DESPUÉS ============ */
.gallery { background: var(--bg-soft); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.gallery-card {
  position: relative;
  aspect-ratio: 4/5;
  cursor: pointer;
  overflow: hidden;
}
.gallery-card .placeholder { transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.gallery-card:hover .placeholder { transform: scale(1.03); }
.gallery-card .ba-split {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.gallery-card .ba-split > div {
  background: var(--bg-warm);
  background-image:
    repeating-linear-gradient(
      135deg,
      transparent 0 18px,
      rgba(184, 165, 132, 0.08) 18px 19px
    );
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 14px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.gallery-card .ba-split > div + div { border-left: 1px solid var(--line); }
.gallery-card .ba-info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 20px;
  background: linear-gradient(to top, rgba(26,26,26,0.78), transparent);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.gallery-card .ba-info .t {
  font-family: var(--serif);
  font-size: 18px;
}
.gallery-card .ba-info .s {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.8;
}
.gallery-note {
  margin-top: 32px;
  font-size: 12px;
  color: var(--muted-2);
  text-align: center;
  font-style: italic;
}

/* ============ FAQ ============ */
.faq { background: var(--bg); }
.faq-list {
  max-width: 920px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  background: transparent;
  border: none;
  text-align: left;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 400;
  color: var(--ink);
  transition: color 0.3s;
}
.faq-q:hover { color: var(--gold-deep); }
.faq-q .toggle {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--gold-deep);
  transition: all 0.3s;
}
.faq-item.open .faq-q .toggle {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-a-inner {
  padding: 0 0 28px;
  font-size: 15px;
  color: var(--muted);
  max-width: 720px;
  line-height: 1.7;
}
.faq-item.open .faq-a { max-height: 400px; }

/* ============ CONTACTO ============ */
.contact {
  background: var(--bg-soft);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 7vw, 100px);
  align-items: start;
}
.contact-info h2 { margin-bottom: 32px; }
.contact-info .lead { margin: 0 0 48px; }

.contact-block {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  align-items: start;
}
.contact-block:last-child { border-bottom: 1px solid var(--line); }
.contact-block .k {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding-top: 4px;
}
.contact-block .v {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
  line-height: 1.5;
}
.contact-block .v small {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
  letter-spacing: 0.01em;
}

/* Form */
.contact-form {
  background: var(--bg);
  padding: clamp(32px, 5vw, 56px);
  border: 1px solid var(--line);
}
.form-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 300;
  margin-bottom: 8px;
}
.form-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 32px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field {
  margin-bottom: 20px;
  position: relative;
}
.field.full { grid-column: 1 / -1; }
.field label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 0;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.3s;
  border-radius: 0;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--gold);
}
.field textarea {
  resize: vertical;
  min-height: 90px;
  font-family: var(--sans);
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%236b6259' fill='none' stroke-width='1'/></svg>");
  background-repeat: no-repeat;
  background-position: right center;
  padding-right: 24px;
}
.form-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}
.form-disclaimer {
  font-size: 11px;
  color: var(--muted-2);
  max-width: 320px;
  line-height: 1.5;
}

/* ============ MAP ============ */
.location { background: var(--bg); }
.map-wrap {
  position: relative;
  aspect-ratio: 21/9;
  background: var(--bg-warm);
  background-image:
    repeating-linear-gradient(
      135deg,
      transparent 0 18px,
      rgba(184, 165, 132, 0.06) 18px 19px
    );
  border: 1px solid var(--line);
  overflow: hidden;
}
.map-wrap iframe {
  width: 100%; height: 100%; border: 0; display: block;
}
.map-card {
  position: absolute;
  left: 40px; top: 40px;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 32px;
  max-width: 360px;
  z-index: 2;
}
.map-card .eyebrow { margin-bottom: 16px; }
.map-card h3 {
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 12px;
}
.map-card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 18px;
  line-height: 1.55;
}

/* ============ FOOTER ============ */
footer {
  background: var(--ink);
  color: var(--bg);
  padding: 80px var(--pad) 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo { color: #fff; }
.footer-brand .logo .name { color: #fff; }
.footer-brand .logo .sub { color: var(--gold-soft); }
.footer-brand p {
  margin-top: 24px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.55);
  max-width: 320px;
}
.footer-col h5 {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: 0 0 20px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li {
  padding: 6px 0;
  font-family: var(--serif);
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: color 0.3s;
}
.footer-col li:hover { color: #fff; }
.footer-col .meta {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  margin: 0;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.footer-certs {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}
.cert-logo {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  text-align: center;
  letter-spacing: 0.02em;
  line-height: 1.4;
}
.cert-logo strong {
  display: block;
  font-style: normal;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 4px;
}

/* ============ WHATSAPP FLOAT ============ */
.whatsapp-float {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 40px rgba(37, 211, 102, 0.45);
}
.whatsapp-float svg { width: 26px; height: 26px; }
.whatsapp-float .pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  opacity: 0.5;
  animation: pulse 2s ease-out infinite;
  z-index: -1;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.45; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ============ SCROLL REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  /* Pure-CSS failsafe: if JS reveal never fires, content still appears. */
  animation: revealFailsafe 0.8s ease 2.6s forwards;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
  animation: none;
}
@keyframes revealFailsafe {
  to { opacity: 1; transform: translateY(0); }
}
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

@media print {
  .reveal { opacity: 1 !important; transform: none !important; animation: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; animation: none; }
  html { scroll-behavior: auto; }
  .whatsapp-float .pulse { animation: none; }
  .hero-scroll .line::after { animation: none; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 120px;
    min-height: auto;
  }
  .hero::before { display: none; }
  .hero-visual { height: 60vh; min-height: 480px; }
  .hero-meta, .hero-scroll { display: none; }
  .about { grid-template-columns: 1fr; }
  .about-visual { max-width: 480px; }
  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .proc-cats { grid-template-columns: 1fr; }
  .philosophy-pillars { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .map-card { left: 20px; top: 20px; padding: 24px; max-width: 280px; }
  .nav-cta { display: none; }
}

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .proc-cat { grid-template-columns: 1fr; padding: 32px 24px; }
  .proc-cat .cat-head { position: static; }
  .gallery-grid { grid-template-columns: 1fr; }
  .philosophy-pillars { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .cred-item { grid-template-columns: 80px 1fr; gap: 16px; }
  .map-card { position: static; max-width: none; margin-bottom: 0; border: none; padding: 24px; }
  .map-card + .map-img { aspect-ratio: 1 / 1; }
  .contact-block { grid-template-columns: 1fr; gap: 8px; }
  .form-foot { flex-direction: column; align-items: flex-start; }
  .whatsapp-float { right: 18px; bottom: 18px; width: 52px; height: 52px; }
}

/* ============ MOBILE NAV PANEL ============ */
.mnav {
  position: fixed;
  top: 0; right: -100%;
  width: min(360px, 88vw);
  height: 100vh;
  background: var(--bg);
  z-index: 200;
  padding: 80px 36px 36px;
  transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: -20px 0 60px rgba(0,0,0,0.08);
}
.mnav.open { right: 0; }
.mnav a {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
}
.mnav .close {
  position: absolute;
  top: 24px; right: 24px;
  background: transparent;
  border: none;
  font-size: 24px;
  color: var(--ink);
}
.mnav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.mnav-overlay.open { opacity: 1; pointer-events: auto; }

/* ============ INNER PAGE ============ */
.inner-hero {
  padding: 160px var(--pad) 80px;
  background: var(--bg-soft);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: 70vh;
}
.inner-hero .placeholder {
  aspect-ratio: 4/5;
  height: auto;
}
.inner-hero .back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
}
.inner-hero .back-link:hover { color: var(--gold-deep); }
.inner-hero h1 { margin-bottom: 24px; }
.inner-hero .lead { margin-bottom: 32px; }

.proc-detail-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  padding: var(--pad-y) var(--pad);
  border-top: 1px solid var(--line);
}
.proc-detail-grid h2 { font-size: 32px; margin-bottom: 16px; }
.proc-detail-grid p { color: var(--muted); margin: 0 0 16px; max-width: 640px; }
.proc-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 40px 0;
}
.proc-info-cell {
  background: var(--bg);
  padding: 28px 24px;
}
.proc-info-cell .k {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 12px;
}
.proc-info-cell .v {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
}

@media (max-width: 1024px) {
  .inner-hero { grid-template-columns: 1fr; min-height: auto; padding-top: 120px; }
  .proc-detail-grid { grid-template-columns: 1fr; gap: 32px; }
  .proc-info-grid { grid-template-columns: 1fr; }
}

/* ============ PHOTOS ============ */
.photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-visual .photo { object-position: center 32%; }
.about-visual .photo { position: absolute; inset: 0; }

.about-figure {
  margin: 40px 0 8px;
}
.about-figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 30%;
  border: 1px solid var(--line);
  filter: saturate(0.96);
}
.about-figure figcaption {
  margin-top: 14px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
}
.about-figure figcaption::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

/* Surgery gallery photos — subtle calm grade */
.gallery-card .photo {
  filter: saturate(0.9) contrast(1.02) brightness(1.01);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}
.gallery-card:hover .photo {
  transform: scale(1.04);
  filter: saturate(1) contrast(1.03) brightness(1.02);
}
.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(26,26,26,0.04), rgba(157,136,102,0.10));
  pointer-events: none;
  z-index: 1;
}
.gallery-card .ba-info { z-index: 2; }

/* ============ UTILITIES ============ */
.divider-gold {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 24px 0;
}
.center { text-align: center; }
.muted { color: var(--muted); }
