/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand:      #3b6b5e;
  --brand-light:#e8f0ed;
  --accent:     #d4a574;
  --accent-hover:#c4925e;
  --bg:         #faf8f5;
  --surface:    #ffffff;
  --text:       #2c2c2c;
  --text-soft:  #5a5a5a;
  --text-muted: #8a8a8a;
  --border:     #e0dbd5;
  --radius:     12px;
  --shadow:     0 2px 12px rgba(0,0,0,.06);
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --font-sans:  -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-w:      1120px;
  --nav-h:      64px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ── Utility ──────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.section {
  padding: 80px 0;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  color: var(--brand);
  margin-bottom: 12px;
  text-align: center;
}

.section-sub {
  text-align: center;
  color: var(--text-soft);
  max-width: 640px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 40px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all .25s;
  text-decoration: none;
  font-family: var(--font-sans);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover {
  background: #2d5a4e;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(59,107,94,.3);
}

.btn-secondary {
  background: transparent;
  color: var(--brand);
  border: 2px solid var(--brand);
}
.btn-secondary:hover {
  background: var(--brand-light);
  text-decoration: none;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover {
  background: var(--accent-hover);
  text-decoration: none;
  transform: translateY(-1px);
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

/* ── Navigation ───────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,248,245,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--brand);
  font-weight: 600;
  letter-spacing: -.01em;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--brand);
  text-decoration: none;
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text);
  cursor: pointer;
  padding: 4px;
}

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  padding: 100px 0 80px;
  background: linear-gradient(135deg, var(--brand-light) 0%, #f5f0ea 100%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 16px;
}

.hero h1 span { color: var(--brand); }

.hero p {
  font-size: 1.1rem;
  color: var(--text-soft);
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-avatar {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  border: 4px solid var(--surface);
  box-shadow: 0 8px 32px rgba(59,107,94,.15);
  color: var(--brand);
}

/* ── Services Grid ────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  text-align: center;
  padding: 36px 24px;
}

.service-card .icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
  display: block;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.6;
}

/* ── About / Sobre ────────────────────────────────────── */
.about-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-text h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--brand);
  margin-bottom: 16px;
}

.about-text p {
  color: var(--text-soft);
  margin-bottom: 16px;
  font-size: 1rem;
}

.about-creds {
  background: var(--brand-light);
  border-radius: var(--radius);
  padding: 28px;
}

.about-creds h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 12px;
}

.about-creds ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-creds li {
  font-size: 0.95rem;
  color: var(--text-soft);
  padding-left: 24px;
  position: relative;
}
.about-creds li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
}

/* ── Therapies / Enfoques ─────────────────────────────── */
.therapies-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.therapy-tag {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 10px 20px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-soft);
  transition: all .2s;
}

.therapy-tag:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-light);
}

/* ── Process / Cómo trabajo ───────────────────────────── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.process-step {
  text-align: center;
  padding: 32px 20px;
}

.process-step .num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.process-step h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.92rem;
  color: var(--text-soft);
}

/* ── CTA Banner ───────────────────────────────────────── */
.cta-banner {
  background: var(--brand);
  color: #fff;
  text-align: center;
  padding: 64px 20px;
}

.cta-banner h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 12px;
}

.cta-banner p {
  font-size: 1.05rem;
  opacity: .9;
  margin-bottom: 28px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .btn-primary {
  background: #fff;
  color: var(--brand);
}
.cta-banner .btn-primary:hover {
  background: var(--brand-light);
  box-shadow: 0 4px 16px rgba(255,255,255,.2);
}

/* ── Booking Page ─────────────────────────────────────── */
.booking-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.booking-info h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--brand);
  margin-bottom: 12px;
}

.booking-info p {
  color: var(--text-soft);
  margin-bottom: 24px;
}

.booking-info-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.booking-info-item .emoji {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.booking-form { }

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--surface);
  transition: border-color .2s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(59,107,94,.12);
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.slot-btn {
  padding: 10px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all .2s;
  text-align: center;
  font-family: var(--font-sans);
}

.slot-btn:hover:not(:disabled) {
  border-color: var(--brand);
  background: var(--brand-light);
}

.slot-btn.selected {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.slot-btn:disabled {
  opacity: .35;
  cursor: not-allowed;
  text-decoration: line-through;
}

.form-message {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.95rem;
  display: none;
}

.form-message.error {
  display: block;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.form-message.success {
  display: block;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.loading-slots {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 8px;
}

/* ── Thank You Page ───────────────────────────────────── */
.thankyou {
  text-align: center;
  padding: 120px 20px;
}

.thankyou .icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.thankyou h1 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--brand);
  margin-bottom: 12px;
}

.thankyou p {
  color: var(--text-soft);
  font-size: 1.1rem;
  max-width: 480px;
  margin: 0 auto 32px;
}

/* ── Footer ───────────────────────────────────────────── */
.footer {
  background: var(--text);
  color: rgba(255,255,255,.8);
  padding: 40px 0;
  text-align: center;
}

.footer p { font-size: 0.9rem; }
.footer a { color: var(--accent); }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 768px) {
  .hero { padding: 60px 0 48px; }
  .hero .container { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero h1 { font-size: 2rem; }
  .hero-cta { justify-content: center; }
  .hero-avatar { width: 200px; height: 200px; font-size: 3.5rem; }
  .hero-visual { order: -1; }
  .section { padding: 48px 0; }
  .section-title { font-size: 1.6rem; }
  .about-wrap { grid-template-columns: 1fr; }
  .booking-layout { grid-template-columns: 1fr; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 16px 20px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}
