/* Fisio Coruña — demo template */
:root {
  --bg: #fcfcfd;
  --bg-soft: #eeeff2;
  --ink: #141416;
  --ink-soft: #4a4a4e;
  --muted: #6d6d72;
  --line: #e6e6ea;
  --dark: #19191b;
  --dark-2: #1c1c1f;
  --hero-muted: #d6d9e2;
  --hero-sub: #9a9a9d;
  --hero-eye: #d0d2d6;
  --white: #fff;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --header-h: 76px;
  --max: 1180px;
  --pad: clamp(20px, 4vw, 48px);
  --font: Inter, "Inter var", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; }

.wrap {
  width: min(var(--max), calc(100% - 2 * var(--pad)));
  margin-inline: auto;
}

/* ---------- Header ---------- */
.header {
  background: var(--bg);
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--header-h);
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  color: var(--ink);
}
.logo-mark {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  overflow: visible;
}
.brand-name {
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #1a1a1c;
  white-space: nowrap;
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  justify-self: center;
}
.nav a {
  font-size: 14px;
  font-weight: 400;
  color: #3a3a3e;
  white-space: nowrap;
}
.nav a:hover { color: var(--ink); }
.header-cta { justify-self: end; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 13.5px;
  letter-spacing: -0.01em;
  line-height: 1;
  padding: 12px 20px;
  transition: transform .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-dark {
  background: #0f0f10;
  color: var(--white);
}
.btn-dark:hover { background: #000; }
.btn-light {
  background: var(--white);
  color: #111;
}
.btn-light:hover { background: #f3f3f3; }
.btn .arrow { width: 14px; height: 14px; display: block; flex: 0 0 14px; }
.hero-more .chevron { width: 10px; height: 10px; display: block; }

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  justify-self: end;
  grid-column: 3;
  grid-row: 1;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  border-radius: 2px;
}
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

/* ---------- Hero ---------- */
.hero-wrap {
  padding-bottom: 8px;
}
.hero {
  position: relative;
  background: var(--dark);
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 540px;
  color: var(--white);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.hero-photo {
  position: absolute;
  inset: 0 0 0 38%;
  z-index: 0;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 40%;
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--dark) 0%,
    rgba(25,25,27,.92) 12%,
    rgba(25,25,27,.55) 42%,
    rgba(25,25,27,.15) 70%,
    transparent 100%
  );
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: 64px 24px 48px 56px;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 540px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hero-eye);
  margin-bottom: 22px;
}
.eyebrow-line {
  display: block;
  width: 88px;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
  flex: 0 0 auto;
}
.eyebrow--ink { color: #8a8a90; }
.eyebrow--ink .eyebrow-line { background: #c8c8ce; opacity: 1; width: 72px; }

.hero h1 {
  font-size: clamp(2.6rem, 5.2vw, 4.15rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: #f7f7f8;
  margin-bottom: 22px;
}
.hero h1 .soft {
  color: var(--hero-muted);
  font-weight: 400;
}
.hero-lead {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--hero-sub);
  max-width: 22.5rem;
  font-weight: 400;
  margin-bottom: 32px;
}
.hero-actions { margin-bottom: 36px; }
.hero-more {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #8d8d91;
  font-size: 14px;
  font-weight: 400;
  width: fit-content;
}
.hero-more::before {
  content: "";
  width: 1px;
  height: 16px;
  background: #5a5a5e;
}
.hero-more .chevron { font-size: 10px; margin-left: 2px; }

/* ---------- Treatments ---------- */
.section { padding: 72px 0 24px; }
.treat-head {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 340px);
  gap: 40px 48px;
  align-items: end;
  margin-bottom: 40px;
}
.treat-head h2,
.about-copy h2,
.cta-copy h2,
.legal h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--ink);
}
.treat-intro {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  padding-bottom: 4px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.card {
  display: flex;
  flex-direction: column;
  min-height: 180px;
  padding: 22px 18px 18px;
  border: 1px solid #e8e8ec;
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.card:hover {
  border-color: #d2d2d6;
  box-shadow: 0 8px 20px rgba(16,16,20,.04);
}
.card-icon {
  width: 36px;
  height: 36px;
  color: #1a1a1c;
  margin-bottom: auto;
}
.card-icon svg { width: 100%; height: 100%; }
.card-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: 28px;
}
.card h3 {
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: #17171a;
}
.card-go {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border: 1px solid #e0e0e4;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #1a1a1c;
}

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 1.15fr 1.15fr 0.7fr;
  gap: 40px 36px;
  align-items: center;
  padding: 56px 0 48px;
}
.about-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1.25 / 1;
  background: #e8e8ea;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}
.about-copy .eyebrow { margin-bottom: 14px; }
.about-copy h2 { margin-bottom: 18px; }
.about-copy p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 22px;
  max-width: 38ch;
}
.checks { display: grid; gap: 12px; }
.checks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 400;
  color: #1c1c1f;
}
.check-icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  color: #2a2a2e;
}
.stats {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 8px;
}
.stat strong {
  display: block;
  font-size: clamp(2rem, 3vw, 2.55rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--ink);
  white-space: nowrap;
}
.stat span {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
}

/* ---------- Testimonials ---------- */
.quotes-band {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 36px 44px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 128px;
}
.quote-slide { display: none; }
.quote-slide.is-on { display: block; }
.quote-text {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.45;
  color: #1b1b1e;
  max-width: 36rem;
}
.quote-who {
  margin-top: 10px;
  font-size: 13.5px;
  color: #7a7a80;
}
.quote-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dots { display: flex; gap: 6px; margin-right: 6px; }
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c6c6cc;
}
.dot.is-on { background: #1a1a1c; }
.qbtn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #d0d0d6;
  background: transparent;
  display: grid;
  place-items: center;
  color: #1a1a1c;
  transition: background .15s ease;
}
.qbtn:hover { background: #fff; }

/* ---------- CTA ---------- */
.cta-wrap { padding: 28px 0 16px; }
.cta {
  position: relative;
  background: var(--dark);
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 280px;
  color: var(--white);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
}
.cta-photo {
  position: absolute;
  inset: 0 0 0 36%;
  z-index: 0;
}
.cta-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.cta-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--dark) 0%,
    rgba(25,25,27,.88) 18%,
    rgba(25,25,27,.45) 48%,
    rgba(25,25,27,.1) 72%,
    transparent 100%
  );
}
.cta-copy {
  position: relative;
  z-index: 1;
  padding: 48px 24px 48px 56px;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cta-copy .eyebrow { color: var(--hero-eye); margin-bottom: 14px; }
.cta-copy h2 {
  color: #f7f7f8;
  font-weight: 400;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.cta-copy p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--hero-sub);
  max-width: 28rem;
  margin-bottom: 28px;
}

/* ---------- Footer ---------- */
.footer {
  padding: 36px 0 40px;
  border-top: 1px solid #ececef;
  margin-top: 28px;
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 28px 32px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.footer-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-size: 13.5px;
  color: #3e3e42;
}
.footer-meta a:hover { color: var(--ink); }
.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.meta-item svg,
.ig-link svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  color: #2a2a2e;
}
.footer-legal {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13.5px;
  color: #3e3e42;
}
.ig-link {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
}

/* ---------- Legal ---------- */
.legal {
  padding: 8px 0 20px;
  max-width: 720px;
}
.legal h2 {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.legal p { color: var(--muted); font-size: 13px; margin-bottom: 8px; line-height: 1.5; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .about { grid-template-columns: 1fr 1fr; }
  .stats { grid-column: 1 / -1; flex-direction: row; gap: 40px; }
  .hero-copy, .cta-copy { padding-left: 36px; }
}
@media (max-width: 860px) {
  .header-inner { grid-template-columns: auto 1fr auto auto; }
  .brand { grid-column: 1; }
  .header-cta { grid-column: 3; justify-self: end; }
  .menu-toggle { grid-column: 4; grid-row: 1; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px var(--pad) 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    z-index: 20;
  }
  .nav.is-open { display: flex; }
  .menu-toggle { display: inline-flex; }
  .header { position: relative; }
  .hero, .cta { grid-template-columns: 1fr; min-height: 0; }
  .hero { min-height: 620px; }
  .hero-photo, .cta-photo { inset: 0; }
  .hero-photo::after {
    background: linear-gradient(
      180deg,
      rgba(25,25,27,.55) 0%,
      rgba(25,25,27,.72) 40%,
      var(--dark) 78%
    );
  }
  .cta-photo::after {
    background: linear-gradient(
      180deg,
      rgba(25,25,27,.3) 0%,
      rgba(25,25,27,.7) 45%,
      var(--dark) 82%
    );
  }
  .hero-copy, .cta-copy {
    padding: 48px 24px 36px;
    max-width: none;
    min-height: 0;
    justify-content: flex-end;
  }
  .cta { min-height: 460px; }
  .treat-head { grid-template-columns: 1fr; gap: 16px; }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .about { grid-template-columns: 1fr; gap: 28px; }
  .about-photo { aspect-ratio: 16/11; }
  .quotes-band {
    grid-template-columns: 1fr;
    padding: 28px 22px;
    gap: 18px;
  }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 18px; }
}
@media (max-width: 560px) {
  .cards {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }
  .card {
    flex: 0 0 72%;
    min-height: 170px;
    scroll-snap-align: start;
  }
  .hero { min-height: 580px; }
  .hero h1 { font-size: 2.45rem; }
}
