:root {
  --ink: #15202b;
  --muted: #5f6d73;
  --paper: #f8f3eb;
  --paper-2: #efe4d5;
  --deep: #172a3a;
  --deep-2: #0f1c28;
  --gold: #b08a4f;
  --sage: #6f7f71;
  --white: #ffffff;
  --line: rgba(21, 32, 43, 0.14);
  --shadow: 0 24px 70px rgba(15, 28, 40, 0.16);
  --radius: 8px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

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

.container {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.section-pad { padding: 96px 0; }
.soft-bg { background: linear-gradient(180deg, rgba(239,228,213,0.75), rgba(248,243,235,0.95)); }
.deep-bg { background: linear-gradient(135deg, var(--deep), var(--deep-2)); color: var(--white); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 243, 235, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(21,32,43,0.08);
}
.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.66);
  border: 1px solid rgba(21,32,43,0.08);
  overflow: hidden;
}
.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.brand strong { display: block; line-height: 1.1; }
.brand small { display: block; color: var(--muted); font-size: 12px; }
.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 600;
}
.nav-menu a { text-decoration: none; color: rgba(21,32,43,0.78); }
.nav-menu a:hover { color: var(--deep); }
.nav-cta {
  padding: 10px 16px;
  border: 1px solid var(--deep);
  border-radius: 999px;
  color: var(--deep) !important;
}
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 700;
}

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 112px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -10% -20% auto auto;
  width: 560px;
  height: 560px;
  background: linear-gradient(135deg, rgba(176,138,79,0.22), rgba(111,127,113,0.08));
  pointer-events: none;
}
.hero-grid,
.two-col,
.contact-grid,
.therapist-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.hero-copy h1,
h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 1.02;
  letter-spacing: 0;
  margin: 0;
}
.hero-copy h1 { font-size: clamp(48px, 8vw, 88px); max-width: 920px; }
h2 { font-size: clamp(36px, 5vw, 58px); }
h3 { line-height: 1.2; margin: 0 0 12px; }
p { margin: 0 0 18px; }
.lead { font-size: 19px; color: rgba(21,32,43,0.78); max-width: 680px; }
.eyebrow {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 18px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.button:hover { transform: translateY(-2px); }
.button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}
.primary { background: var(--deep); color: var(--white); box-shadow: 0 16px 32px rgba(23,42,58,0.18); }
.secondary { background: rgba(255,255,255,0.55); border-color: var(--line); color: var(--deep); }
.full { width: 100%; }
.note { color: var(--muted); font-size: 14px; max-width: 620px; }
.note.dark { color: rgba(21,32,43,0.72); }

.hero-card {
  position: relative;
  min-height: 520px;
  padding: 42px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(23,42,58,0.95), rgba(15,28,40,0.95));
  color: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-card h2 { font-size: clamp(34px, 4vw, 50px); margin-top: 180px; }
.hero-card p { color: rgba(255,255,255,0.74); }
.music-orbit {
  position: absolute;
  inset: 32px 32px auto auto;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
}
.music-orbit span {
  position: absolute;
  display: block;
  border: 1px solid rgba(176,138,79,0.5);
  border-radius: 50%;
}
.music-orbit span:nth-child(1) { inset: 28px; }
.music-orbit span:nth-child(2) { inset: 58px; }
.music-orbit span:nth-child(3) { inset: 88px; background: rgba(176,138,79,0.35); }
.check-list { list-style: none; padding: 0; margin: 26px 0 0; }
.check-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  color: rgba(255,255,255,0.85);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
}

.text-block { font-size: 18px; color: rgba(21,32,43,0.76); }
.centered { max-width: 760px; margin: 0 auto 46px; text-align: center; }
.centered p:not(.eyebrow) { color: rgba(21,32,43,0.76); font-size: 18px; }
.centered.light p:not(.eyebrow) { color: rgba(255,255,255,0.72); }

.cards { display: grid; gap: 22px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.two { grid-template-columns: repeat(2, 1fr); max-width: 920px; margin: 0 auto; }
.card {
  background: rgba(255,255,255,0.58);
  border: 1px solid rgba(21,32,43,0.10);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 18px 45px rgba(15,28,40,0.07);
}
.card h3 { font-size: 23px; }
.card p { color: rgba(21,32,43,0.70); margin-bottom: 0; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.step {
  padding: 26px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius);
}
.step span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(176,138,79,0.25);
  color: var(--gold);
  font-weight: 800;
  margin-bottom: 22px;
}
.step p { color: rgba(255,255,255,0.72); margin: 0; }

.split-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  padding: 46px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.mode-list { display: grid; gap: 18px; }
.mode-list div {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
}
.mode-list p { margin: 0; color: rgba(21,32,43,0.72); }

.therapist-grid { grid-template-columns: 0.75fr 1.25fr; }
.portrait-card {
  min-height: 440px;
  margin: 0;
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(23,42,58,0.95), rgba(111,127,113,0.7));
  color: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}
.portrait-card::before {
  content: "Santiago Vila";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 34px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(34px, 5vw, 54px);
  text-align: center;
  color: rgba(255,255,255,0.72);
}
.portrait-card.has-image::before { display: none; }
.portrait-image {
  width: 100%;
  height: 440px;
  object-fit: cover;
  object-position: center 34%;
  position: relative;
  z-index: 1;
}
.portrait-card:not(.has-image) .portrait-image { display: none; }
.portrait-card figcaption {
  position: relative;
  z-index: 2;
  padding: 16px 18px;
  background: rgba(15,28,40,0.9);
  color: rgba(255,255,255,0.84);
  font-size: 13px;
}

.route-card { position: relative; min-height: 230px; }
.route-card.featured { border: 1px solid rgba(176,138,79,0.45); background: linear-gradient(180deg, rgba(255,255,255,0.86), rgba(239,228,213,0.78)); }
.badge {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(176,138,79,0.16);
  color: #7a5a2b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-section { background: linear-gradient(180deg, var(--paper), var(--paper-2)); }
.contact-grid { align-items: start; }
.whatsapp-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--deep);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
}
.contact-form {
  display: grid;
  gap: 16px;
  padding: 30px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(21,32,43,0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
label {
  display: grid;
  gap: 7px;
  font-weight: 700;
  font-size: 14px;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(21,32,43,0.18);
  background: rgba(255,255,255,0.9);
  border-radius: var(--radius);
  padding: 13px 14px;
  font: inherit;
  color: var(--ink);
}
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(176,138,79,0.24);
  border-color: var(--gold);
}
.consent {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  font-weight: 500;
  color: rgba(21,32,43,0.72);
}
.consent input { width: 18px; margin-top: 4px; }
.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  min-height: 20px;
  margin: -4px 0 0;
  color: var(--sage);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
.form-footnote { margin: 0; font-size: 12px; color: var(--muted); text-align: center; }

.site-footer {
  background: var(--deep-2);
  color: rgba(255,255,255,0.78);
  padding: 28px 0;
}
.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.footer-brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  padding: 4px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.94);
}
.footer-grid p { margin: 0; }
.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-grid a { color: rgba(255,255,255,0.88); text-decoration: none; }
.footer-grid a:hover { color: var(--white); }

.thank-you-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--paper), var(--paper-2));
}
.thanks-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}
.thanks-card {
  width: min(100%, 680px);
  padding: 46px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(21,32,43,0.1);
  box-shadow: var(--shadow);
}
.thanks-logo {
  width: 82px;
  height: 82px;
  object-fit: contain;
  margin-bottom: 22px;
}
.thanks-card h1 {
  margin: 0 0 18px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(42px, 7vw, 68px);
  line-height: 1;
  letter-spacing: 0;
}
.thanks-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .section-pad { padding: 72px 0; }
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute;
    top: 76px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(248,243,235,0.98);
    box-shadow: var(--shadow);
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu a { padding: 12px; }
  .nav-cta { text-align: center; margin-top: 8px; }
  .hero-grid,
  .two-col,
  .contact-grid,
  .therapist-grid,
  .split-card { grid-template-columns: 1fr; gap: 34px; }
  .hero { padding-top: 80px; }
  .hero-card { min-height: 430px; }
  .hero-card h2 { margin-top: 150px; }
  .cards.three,
  .cards.two,
  .steps { grid-template-columns: 1fr; }
  .split-card { padding: 30px; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
  .footer-links { gap: 14px; }
}

@media (max-width: 520px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .hero-card,
  .contact-form { padding: 24px; border-radius: var(--radius); }
  .hero-card { min-height: 410px; }
  .brand small { display: none; }
  .thanks-screen { padding: 18px; }
  .thanks-card { padding: 30px 24px; }
  .thanks-actions { flex-direction: column; }
}
