/* Raquel Beltrá · Fisioterapia Holística — propuesta de diseño. Mobile first. */
:root {
  --bg: #F6F4EE;
  --bg-2: #EDEADF;
  --card: #FBFAF6;
  --line: #DCD7C8;
  --olive: #5E6B3A;      /* 5,3:1 sobre --bg: válido para texto */
  --olive-2: #4B562D;
  --clay: #B5703F;       /* 3,6:1: solo decorativo / textos grandes */
  --clay-text: #8F5328;  /* arcilla oscurecida para texto: 5,6:1 sobre --bg */
  --text: #2B2A24;
  --muted: #5A584E;      /* 6,4:1 sobre --bg */
  --serif: "Gilda Display", "Cormorant Garamond", Georgia, serif;
  --sans: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 22px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 76px; /* espacio para la barra móvil */
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--olive); }
a:hover { color: var(--olive-2); }
:focus-visible { outline: 2px solid var(--clay-text); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.005em; }
h2 { font-size: clamp(2rem, 7vw, 2.9rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; margin-top: 28px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--olive); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; color: #fff; }
.ico { width: 20px; height: 20px; flex: none; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font: 700 1rem/1 var(--sans); letter-spacing: .01em; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .25s, background-color .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn--olive { background: var(--olive); color: #fff; }
.btn--olive:hover { background: var(--olive-2); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px -14px rgba(94,107,58,.7); }
.btn--ghost { border-color: var(--olive); color: var(--olive); background: transparent; }
.btn--ghost:hover { background: rgba(94,107,58,.08); color: var(--olive-2); transform: translateY(-2px); }
.btn--lg { min-height: 54px; padding: 14px 28px; font-size: 1.05rem; }
.btn--sm { min-height: 42px; padding: 8px 20px; font-size: .95rem; }

/* Cabecera */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  background: rgba(246,244,238,.8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s;
}
.header.scrolled { border-color: var(--line); background: rgba(246,244,238,.95); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.logo:hover { color: var(--text); }
.logo__mark { width: 38px; height: 38px; }
.logo__text { font: 400 1.3rem/1.05 var(--serif); }
.logo__text small { display: block; font: 500 .7rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

.menu-btn {
  width: 44px; height: 44px; display: grid; place-content: center; gap: 6px;
  background: none; border: 0; cursor: pointer; padding: 0;
}
.menu-btn span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav {
  position: fixed; inset: var(--header-h) 0 auto; display: flex; flex-direction: column; gap: 4px;
  padding: 12px 20px 28px; background: rgba(246,244,238,.99); border-bottom: 1px solid var(--line);
  transform: translateY(-12px); opacity: 0; visibility: hidden; transition: transform .3s, opacity .3s, visibility .3s;
}
.nav.open { transform: none; opacity: 1; visibility: visible; }
.nav a:not(.btn) { color: var(--text); padding: 14px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--line); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--olive); }
.nav .btn { margin-top: 16px; }

/* Portada */
.hero {
  position: relative; padding: calc(var(--header-h) + 36px) 0 64px; overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 90% 10%, rgba(181,112,63,.12), transparent 60%),
    radial-gradient(ellipse 45% 40% at 0% 65%, rgba(94,107,58,.08), transparent 70%),
    var(--bg);
}
.hero__inner { display: grid; gap: 36px; align-items: center; }
.eyebrow { font: 700 .78rem/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--clay-text); margin-bottom: 16px; }
.hero__title { font-size: clamp(2.6rem, 11.5vw, 4.8rem); line-height: 1.05; margin-bottom: 20px; }
.hero__title em { font-style: normal; color: var(--olive); display: block; }
.hero__lead { font-size: 1.15rem; color: var(--muted); max-width: 38ch; margin-bottom: 30px; }
.hero__actions { display: flex; flex-direction: column; gap: 12px; }
.hero__meta { display: flex; align-items: center; gap: 8px; margin: 24px 0 0; color: var(--muted); font-size: .95rem; }
.hero__meta .ico { color: var(--clay-text); }
.hero__art { max-width: 340px; width: 100%; margin: 0 auto; }
.hero__art svg { width: 100%; height: auto; overflow: visible; }

/* Círculos de respiración */
.breath { transform-origin: center; transform-box: fill-box; animation: breathe 8s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(.94); opacity: .75; } 50% { transform: scale(1.03); opacity: 1; } }

/* Secciones */
.section { padding: 80px 0; }
.section--alt { background: var(--bg-2); }
.section__head { text-align: center; margin-bottom: 44px; }
.section__sub { color: var(--muted); max-width: 52ch; margin: 0 auto; }

/* Servicios */
.cards { display: grid; gap: 18px; }
.card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: border-color .3s, transform .3s, box-shadow .3s;
}
.card:hover { border-color: rgba(94,107,58,.45); transform: translateY(-4px); box-shadow: 0 18px 40px -26px rgba(43,42,36,.35); }
.card__ico {
  width: 56px; height: 56px; padding: 13px; border-radius: 50%;
  color: var(--olive); background: rgba(94,107,58,.1); margin-bottom: 20px;
}
.card p { color: var(--muted); margin: 0 0 20px; }
.card__price {
  margin: auto 0 0 !important; padding-top: 16px; border-top: 1px dashed var(--line);
  font: 400 1.6rem/1 var(--serif); color: var(--clay-text) !important;
}
.card__price span { font: 700 .75rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.card__price--soft { font: 500 .95rem/1.4 var(--sans); color: var(--muted) !important; }
.note { text-align: center; color: var(--muted); margin-top: 32px; }
.note a { text-underline-offset: 3px; font-weight: 700; }

/* Enfoque */
.about { display: grid; gap: 40px; align-items: center; }
.about__art { max-width: 240px; margin: 0 auto; width: 100%; }
.about__art svg { width: 100%; height: auto; }
.about__text > p { color: var(--muted); }
.perks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.perks li { display: flex; gap: 14px; align-items: flex-start; }
.perks .ico { width: 24px; height: 24px; color: var(--olive); margin-top: 3px; }
.perks strong { display: block; }
.perks span { color: var(--muted); font-size: .97rem; }

/* Horario */
.hours {
  text-align: center; padding: 44px 24px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
}
.hours__ico { width: 44px; height: 44px; color: var(--olive); margin: 0 auto 16px; }
.hours h2 { font-size: clamp(1.75rem, 6vw, 2.4rem); }
.hours .section__sub { margin-bottom: 26px; }

/* Reservas */
.booking {
  text-align: center; padding: 40px 24px; border-radius: var(--radius);
  border: 1.5px dashed rgba(94,107,58,.45); background: var(--card);
}
.booking__art { width: 96px; height: 96px; margin: 0 auto 18px; overflow: visible; }
.booking__title { font: 400 1.5rem/1.2 var(--serif); margin-bottom: 8px; }
.booking__text { color: var(--muted); max-width: 44ch; margin: 0 auto 24px; }
.booking__actions { display: flex; flex-direction: column; gap: 12px; }

/* Mapa */
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--bg-2); }
.map iframe { display: block; width: 100%; height: 100%; border: 0; filter: saturate(.7) sepia(.12); }

/* Contacto */
.contact { display: grid; gap: 14px; }
.contact__item {
  display: flex; align-items: center; gap: 16px; padding: 20px; color: var(--text); text-decoration: none;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .3s, transform .3s;
}
a.contact__item:hover { color: var(--text); border-color: var(--olive); transform: translateY(-3px); }
.contact__item .ico { width: 28px; height: 28px; color: var(--olive); }
.contact__item strong { display: block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--clay-text); }

/* Pie */
.footer { padding: 44px 0; background: var(--text); text-align: center; color: #D9D6CA; font-size: .92rem; }
.footer__inner p { margin: 0 0 6px; }
.footer__name { font: 400 1.35rem var(--serif); color: #F6F4EE; }
.footer__demo {
  display: inline-block; margin-top: 12px !important; padding: 4px 14px; border-radius: 999px;
  border: 1px solid rgba(246,244,238,.3); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
}

/* Barra fija móvil */
.mobile-cta {
  position: fixed; inset: auto 0 0; z-index: 40; display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(246,244,238,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.mobile-cta__btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px;
  border-radius: 999px; font-weight: 700; color: var(--olive); border: 1.5px solid var(--olive); text-decoration: none;
}
.mobile-cta__btn--olive { background: var(--olive); color: #fff; }
.mobile-cta__btn--olive:hover { color: #fff; }

/* Animaciones al hacer scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Tablet */
@media (min-width: 600px) {
  .hero__actions, .booking__actions { flex-direction: row; justify-content: center; }
  .hero__actions { justify-content: flex-start; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: repeat(3, 1fr); }
  .contact__item { flex-direction: column; text-align: center; }
  .map { aspect-ratio: 16 / 9; }
}

/* Escritorio */
@media (min-width: 900px) {
  :root { --header-h: 80px; }
  body { padding-bottom: 0; }
  .mobile-cta { display: none; }
  .menu-btn { display: none; }
  .nav {
    position: static; flex-direction: row; align-items: center; gap: 30px; padding: 0;
    background: none; border: 0; transform: none; opacity: 1; visibility: visible;
  }
  .nav a:not(.btn) { border: 0; padding: 0; font-size: 1rem; }
  .nav .btn { margin: 0; }
  .hero { min-height: min(92vh, 860px); display: flex; align-items: center; }
  .hero__inner { grid-template-columns: 1.15fr 1fr; gap: 56px; }
  .hero__art { max-width: 460px; }
  .section { padding: 112px 0; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .about { grid-template-columns: 1fr 1.3fr; gap: 80px; }
  .about__art { max-width: 360px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
