:root {
  --paper: #faf8f4;
  --canvas: #ffffff;
  --ink: #1a1a1a;
  --ink-deep: #111111;
  --ink-soft: #444444;
  --muted: #5c5c5c;
  --subtle: #777777;
  --gold: #b08d57;
  --gold-soft: #c9a56a;
  --line: color-mix(in srgb, #b08d57 35%, transparent);
  --shadow: 0 0 0 1px color-mix(in srgb, #b08d57 28%, transparent),
    0 1px 2px -1px rgb(17 17 17 / 0.05), 0 8px 24px -16px rgb(17 17 17 / 0.08);
  --shadow-hover: 0 0 0 1px color-mix(in srgb, #b08d57 50%, transparent),
    0 1px 2px -1px rgb(17 17 17 / 0.06), 0 14px 32px -16px rgb(17 17 17 / 0.12);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --font: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --display: "Cormorant Garamond", ui-serif, Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; background: none; border: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

::selection {
  background: color-mix(in srgb, var(--gold) 35%, transparent);
  color: var(--ink-deep);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

@media (min-width: 640px) {
  .wrap { padding-left: 24px; padding-right: 24px; }
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.brand img { height: 42px; width: auto; }

.nav-links {
  display: none;
  gap: 28px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links a:hover { color: var(--gold); }

.nav-actions { display: flex; align-items: center; gap: 8px; }

.menu-btn {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

.mobile-panel {
  display: none;
  overflow: hidden;
  border-top: 1px solid var(--line);
}

.mobile-panel.open { display: block; }

.mobile-panel a {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 0 20px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .menu-btn, .mobile-panel { display: none !important; }
  .wa-icon-only { display: none; }
}

@media (max-width: 767px) {
  .brand-full { display: none; }
  .btn-agendar span:not(.wa-icon-only) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .btn-agendar { min-width: 44px; padding-left: 14px; padding-right: 14px; }
}

@media (min-width: 768px) {
  .brand-short { display: none; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid var(--ink-deep);
  background: var(--ink-deep);
  color: var(--canvas);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: 150ms var(--ease);
}

.btn:hover { background: transparent; color: var(--ink-deep); }
.btn:active { transform: scale(0.96); }
.btn svg { width: 16px; height: 16px; fill: currentColor; }

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

.hero {
  display: grid;
  align-items: center;
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 32px;
}

.hero-logo { width: 100%; max-width: 280px; margin: 0 auto; }

.kicker {
  margin-bottom: 14px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

h1 {
  font-family: var(--display);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: 0.02em;
}

.tagline {
  margin: 16px 0 20px;
  font-family: var(--display);
  font-size: clamp(18px, 2.4vw, 24px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.lede {
  max-width: 46ch;
  font-weight: 300;
  color: var(--ink-soft);
}

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

@media (max-width: 1023px) {
  .hero { text-align: center; }
  .lede { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
}

@media (min-width: 1024px) {
  .hero {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
    padding-top: 64px;
    padding-bottom: 40px;
  }
  .hero-logo { max-width: 320px; }
}

.section-title {
  font-family: var(--display);
  font-size: 40px;
  font-weight: 500;
  text-align: center;
}

.gold-line {
  width: 72px;
  height: 1px;
  margin: 14px auto 36px;
  background: var(--gold);
}

#servicios { padding: 32px 0 64px; }

.cards {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .cards { grid-template-columns: 1fr 1fr 1fr; } }

.card {
  min-height: 168px;
  border: 1px solid var(--line);
  background: var(--canvas);
  box-shadow: var(--shadow);
  padding: 26px 22px 24px;
}

.card:hover { box-shadow: var(--shadow-hover); }

.dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--gold);
  margin-bottom: 16px;
}

.card h3 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

.card p { font-size: 14px; font-weight: 300; color: var(--muted); }

.band {
  border-top: 1px solid var(--line);
  background: var(--canvas);
}

.band-inner { padding: 64px 0 32px; }
.band-inner.tight { padding: 32px 0 64px; }
.band.last { border-bottom: 1px solid var(--line); }

.intro {
  max-width: 52ch;
  margin: 0 auto 40px;
  text-align: center;
  font-weight: 300;
  color: var(--ink-soft);
}

.specs {
  display: grid;
  gap: 24px;
  text-align: center;
}

.specs .dot { margin-left: auto; margin-right: auto; }

.specs h3 {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 600;
}

@media (min-width: 768px) { .specs { grid-template-columns: 1fr 1fr 1fr; gap: 40px; } }

.steps { display: grid; gap: 32px; }
@media (min-width: 768px) { .steps { grid-template-columns: 1fr 1fr 1fr; gap: 40px; } }

.num {
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.steps h3 {
  margin-top: 8px;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 600;
}

.steps p {
  margin-top: 8px;
  max-width: 36ch;
  font-weight: 300;
  color: var(--ink-soft);
}

#consultorio { padding: 64px 0 80px; }

.photo {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--canvas);
  box-shadow: var(--shadow);
  margin-bottom: 40px;
}

.photo img { width: 100%; outline: 1px solid rgb(17 17 17 / 0.1); outline-offset: -1px; }

.split {
  display: grid;
  gap: 40px;
  align-items: start;
}

@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; } }

.copy p {
  margin-bottom: 14px;
  font-weight: 300;
  color: var(--ink-soft);
}
.copy p:last-of-type { margin-bottom: 32px; }

.map {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--canvas);
  box-shadow: var(--shadow);
}

.map iframe { width: 100%; height: 220px; border: 0; display: block; }

.map-link {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 14px;
}

.map-link:hover { color: var(--gold); }
.map-link svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; }

.box {
  border: 1px solid var(--line);
  background: var(--canvas);
  box-shadow: var(--shadow);
  padding: 28px;
}

.box h3 {
  font-family: var(--display);
  font-size: 28px;
}

.meta { margin-top: 12px; }
.meta li { border-bottom: 1px solid var(--line); padding: 8px 0; list-style: none; }
.meta li:last-child { border-bottom: 0; }

.label {
  display: block;
  margin-bottom: 2px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.meta a:hover { color: var(--gold); }

form { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }

.field { display: block; }

.field .label { margin-bottom: 6px; }

input, select, textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  background: var(--canvas);
  color: var(--ink);
  padding: 0 14px;
  font: inherit;
  font-size: 14px;
  outline: none;
}

textarea { min-height: 88px; padding: 10px 14px; resize: vertical; }

input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px color-mix(in srgb, #b08d57 22%, transparent);
}

form .btn { width: 100%; }
@media (min-width: 640px) { form .btn { width: auto; } }

footer {
  border-top: 1px solid var(--line);
  padding: 32px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--subtle);
}

footer strong { font-weight: 500; color: var(--ink); }
footer p + p { margin-top: 4px; }

.icon { width: 16px; height: 16px; }


/* Mejora de conversión: acceso persistente a WhatsApp, respetando la paleta original */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px;
  padding: 0 15px; border: 1px solid var(--gold);
  background: var(--ink); color: var(--canvas); box-shadow: var(--shadow);
  font-size: 13px; letter-spacing: .04em;
}
.wa-float svg { width: 18px; height: 18px; fill: currentColor; }
.wa-float:hover { background: var(--gold); color: var(--canvas); }
@media (min-width: 900px) { .wa-float { right: 28px; bottom: 28px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
