:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --tint: #f3f0e9;
  --ink: #1b2233;
  --muted: #6b7180;
  --line: #e4e0d6;
  --accent: #1b2a4a;     /* azul imperial */
  --gold: #b08d57;       /* dorado suave */
  --error: #b3261e;
  --radius: 10px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 1rem; }
h3 { font-size: 1.5rem; font-weight: 600; }

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.muted { color: var(--muted); }

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: 500 0.95rem var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.btn:hover { background: #24375f; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .link:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.btn--small { padding: 0.55rem 1.1rem; font-size: 0.875rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.link {
  background: none;
  border: 0;
  padding: 0;
  font: 500 0.95rem var(--sans);
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
}
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Navegación */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 250, 247, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent);
}
.brand__mark { width: 28px; height: 28px; color: var(--gold); }
.nav__links { display: flex; align-items: center; gap: 1.75rem; }
.nav__links a:not(.btn) {
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--muted);
}
.nav__links a:not(.btn):hover { color: var(--ink); }

/* Hero */
.hero { padding: clamp(5rem, 14vw, 9rem) 0 clamp(4rem, 10vw, 7rem); }
.hero__inner { max-width: 760px; text-align: center; }
.hero h1 { color: var(--accent); }
.lead {
  max-width: 520px;
  margin: 1.5rem auto 2.5rem;
  font-size: 1.125rem;
  color: var(--muted);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

/* Secciones */
.section { padding: clamp(4rem, 10vw, 6.5rem) 0; }
.section--tint { background: var(--tint); }

/* Servicios */
.services {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.services li {
  padding: 2rem 1.75rem 0 0;
}
.services li + li { padding-left: 1.75rem; border-left: 1px solid var(--line); }
.services__num {
  display: block;
  margin-bottom: 1.5rem;
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}
.services h3 { margin-bottom: 0.6rem; }
.services p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Nosotros */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about h2 { margin: 0; }
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 0;
}
.stats dt {
  font-family: var(--serif);
  font-size: 2.5rem;
  color: var(--accent);
  line-height: 1;
}
.stats dd { margin: 0.5rem 0 0; font-size: 0.875rem; color: var(--muted); }

/* Agendar */
.booking {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.info {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  font-size: 0.95rem;
}
.info span {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.15rem;
}
.info a { text-decoration: none; }
.info a:hover { color: var(--accent); }

.form, .success {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.15rem; }
label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
}
.optional { font-weight: 400; color: var(--muted); }
input, select, textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  font: 400 0.95rem var(--sans);
  transition: border-color 0.2s, background 0.2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); background: #fff; }
select:disabled { color: var(--muted); cursor: not-allowed; }
textarea { resize: vertical; }
.invalid { border-color: var(--error); background: #fff; }

.form__error {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--error);
}
.form__note {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

.success { text-align: center; padding-block: 3.5rem; }
.success:focus { outline: none; }
.success__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--tint);
  color: var(--gold);
  font-size: 1.5rem;
}
.success h3 { font-size: 2rem; margin-bottom: 0.5rem; color: var(--accent); }
.success p { color: var(--muted); margin: 0 0 1.5rem; }
.success p:last-child { margin: 1.25rem 0 0; }
.wa-icon { width: 18px; height: 18px; flex: none; }

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  font-size: 0.85rem;
}
.footer__inner { display: flex; justify-content: space-between; gap: 1rem; }

/* Responsive */
@media (max-width: 900px) {
  .services { grid-template-columns: 1fr 1fr; }
  .services li:nth-child(3) { padding-left: 0; border-left: 0; }
  .services li:nth-child(n+3) { margin-top: 2rem; border-top: 1px solid var(--line); }
  .about, .booking { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .nav__links a:not(.btn) { display: none; }
  .brand { font-size: 1.2rem; }
  .services { grid-template-columns: 1fr; }
  .services li, .services li + li { padding: 1.75rem 0 0; border-left: 0; }
  .services li + li { margin-top: 1.75rem; border-top: 1px solid var(--line); }
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
  .stats dt { font-size: 2rem; }
  .row { grid-template-columns: 1fr; gap: 0; }
  .footer__inner { flex-direction: column; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
