/* Irene Company Fisioterapia — icfisioterapia.es */
/* Self-hosted OFL fonts — no Google Fonts request */
@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/montserrat-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: Montserrat;
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/montserrat-latin-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/montserrat-latin-500.woff2") format("woff2");
}
@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/montserrat-latin-600.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/playfair-latin-500.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/playfair-latin-500-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/playfair-latin-600.woff2") format("woff2");
}

:root {
  --cream: #EFE7CD;
  --sand: #EACFAC;
  --tan: #AE8B5E;
  --sage: #B5AA80;
  --bg: #F7F3EA;
  --paper: #FEFBF2;
  --ink: #3A342C;
  --muted: #6B6458;
  --line: rgba(58, 52, 44, 0.12);
  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --header-h: 4.25rem;
  --ease: 0.22s ease;
  --wa: #25D366;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Montserrat, system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--ink);
  text-underline-offset: 0.18em;
}

a:hover { color: var(--tan); }

:focus-visible {
  outline: 2px solid var(--tan);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 1000;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.9rem;
  text-decoration: none;
  font-size: 0.875rem;
}

.skip-link:focus { top: 0.5rem; color: var(--paper); }

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

/* Type */
.eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tan);
  margin: 0 0 0.75rem;
}

h1, h2, h3, .serif {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 4.2vw, 3.35rem); margin: 0 0 0.75rem; }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); margin: 0 0 0.85rem; }
h3 { font-size: 1.35rem; margin: 0 0 0.5rem; }

.lede {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 40rem;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

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

hr.rule {
  border: 0;
  height: 1px;
  background: var(--sand);
  margin: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.35rem;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
  line-height: 1.2;
}

.btn:hover { color: var(--paper); }

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.btn-primary:hover { background: #2a251f; color: var(--paper); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--tan);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.btn-cta {
  background: var(--tan);
  color: var(--paper);
  border-color: var(--tan);
}

.btn-cta:hover {
  background: #9a784d;
  color: var(--paper);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}

.logo img {
  height: 3.25rem;
  width: auto;
  max-width: min(24rem, 72vw);
  object-fit: contain;
  object-position: left center;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--sand);
  background: var(--paper);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 1.15rem;
  height: 1.5px;
  background: var(--ink);
  transition: transform var(--ease), opacity var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-block;
  padding: 0.5rem 0.7rem;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--tan);
}

.site-nav a.is-active {
  box-shadow: inset 0 -2px 0 var(--sage);
}

.header-cta { flex: 0 0 auto; }

.site-nav .btn { display: none; }

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: min(78vh, 42rem);
  padding: clamp(3.25rem, 8vw, 6.75rem) 0;
  text-align: left;
  background: var(--cream);
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero .lede {
  margin-inline: 0;
  max-width: 28rem;
}

.hero h1 {
  margin-bottom: 0.4rem;
  max-width: 14ch;
}

.hero .btn-row { justify-content: flex-start; }

/* Sections */
.section {
  padding: clamp(3rem, 6vw, 5.25rem) 0;
}

.section-cream { background: var(--cream); }
.section-paper { background: var(--paper); }
.section-bg { background: var(--bg); }

.section-head {
  max-width: 42rem;
  margin-bottom: 2.25rem;
}

.section-head.center {
  text-align: center;
  margin-inline: auto;
}

.section-head.center .lede { margin-inline: auto; }

/* Intro */
.intro-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 840px) {
  .intro-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.prose {
  max-width: 40rem;
}

.prose p { margin-bottom: 1.05rem; }

.prose.wide { max-width: 46rem; }

.legal {
  max-width: 46rem;
  font-size: 0.98rem;
}

.legal h2 { margin-top: 2.25rem; font-size: 1.45rem; }
.legal h3 { margin-top: 1.6rem; font-size: 1.15rem; font-family: Montserrat, sans-serif; font-weight: 600; letter-spacing: 0; }
.legal ul { padding-left: 1.2rem; margin: 0 0 1rem; }
.legal li { margin-bottom: 0.4rem; }

/* Services grid (home) */
.svc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--sand);
  border: 1px solid var(--sand);
}

.svc-grid a {
  background: var(--paper);
  padding: 1.35rem 1.4rem;
  text-decoration: none;
  color: var(--ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.15rem;
  transition: background var(--ease), color var(--ease);
}

.svc-grid a:hover {
  background: var(--cream);
  color: var(--ink);
}

.svc-grid a span {
  display: block;
  margin-top: 0.35rem;
  font-family: Montserrat, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (min-width: 640px) {
  .svc-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .svc-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Service detail blocks (grouped) */
.svc-block {
  padding: clamp(2.25rem, 4.5vw, 3.75rem) 0;
  scroll-margin-top: calc(var(--header-h) + 1rem);
  border-bottom: 1px solid var(--sand);
}

.svc-block:last-of-type { border-bottom: 0; }

.svc-block > h2 { margin-bottom: 0.35rem; }

.svc-item {
  padding: 1.35rem 0 0.15rem;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.svc-item h3 {
  font-size: 1.28rem;
  margin-bottom: 0.55rem;
}

.svc-block .more {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--tan);
  border-bottom: 1px solid var(--sand);
  padding-bottom: 0.1rem;
}

.svc-block .more:hover { color: var(--ink); border-color: var(--ink); }

/* Prices */
.price-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .price-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
}

.price-card {
  background: var(--paper);
  border: 1px solid var(--sand);
  padding: 2.25rem 1.75rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.price-card.is-featured {
  border-color: var(--sage);
  background: var(--cream);
}

.price-card .badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tan);
  margin-bottom: 0.9rem;
}

.price-card h2,
.price-card h3 {
  font-family: Montserrat, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.85rem;
}

.price-card .amount {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.4rem, 4vw, 3.1rem);
  font-weight: 500;
  line-height: 1;
  margin: 0 0 0.65rem;
}

.price-card .note {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
  flex: 1;
}

/* Contact facts */
.facts {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .facts { grid-template-columns: repeat(3, 1fr); }
}

.fact {
  padding: 0;
}

.fact h3 {
  font-family: Montserrat, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tan);
  margin: 0 0 0.45rem;
}

.fact p, .fact a {
  font-size: 1rem;
  text-decoration: none;
}

.fact a:hover { text-decoration: underline; }

.split {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
}

.map-wrap {
  border: 1px solid var(--sand);
  background: var(--cream);
  min-height: 320px;
}

.map-wrap iframe {
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
}

.map-caption {
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.map-caption a { color: var(--ink); }

/* Forms */
.form {
  display: grid;
  gap: 1rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.form input,
.form textarea {
  font: inherit;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--sand);
  padding: 0.7rem 0.85rem;
  width: 100%;
}

.form textarea { min-height: 8.5rem; resize: vertical; }

.form input:focus,
.form textarea:focus {
  outline: 2px solid var(--sage);
  outline-offset: 0;
  border-color: var(--sage);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--ink);
  text-transform: none;
}

.check input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
  flex: 0 0 auto;
  accent-color: var(--tan);
}

.form-status {
  display: none;
  padding: 0.9rem 1rem;
  font-size: 0.95rem;
  border: 1px solid var(--sage);
  background: var(--cream);
}

.form-status.is-visible { display: block; }

.form-status.is-error {
  border-color: #a65b4a;
  background: #f8ece8;
}

/* Page hero (inner pages) */
.page-hero {
  padding: clamp(2.5rem, 5vw, 4rem) 0 2rem;
  background: var(--cream);
}

.page-hero .lede { margin-top: 0.35rem; }

/* Assist */
.assist {
  text-align: center;
  padding: clamp(3rem, 5vw, 4.5rem) 0;
}

.assist .phone {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  text-decoration: none;
  display: inline-block;
  margin: 0.5rem 0 1.25rem;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 3.25rem 0 1.5rem;
  margin-top: 0;
}

.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: var(--sand); }

.footer-grid {
  display: grid;
  gap: 2rem 1.5rem;
}

@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr 1.3fr; }
}

.footer-grid h2 {
  font-family: Montserrat, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sand);
  margin: 0 0 0.85rem;
}

.footer-grid p { margin: 0 0 0.4rem; font-size: 0.92rem; }

.social {
  display: flex;
  gap: 0.75rem;
}

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(239, 231, 205, 0.35);
}

.social a:hover { border-color: var(--sand); }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin: 2.25rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(239, 231, 205, 0.18);
  font-size: 0.8rem;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 0.85rem;
}
.footer-logo img {
  height: 5.5rem;
  width: auto;
}

.copy {
  font-size: 0.8rem;
  color: var(--sage);
  margin: 0;
}

/* WhatsApp float */
.wa-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 40;
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(37, 52, 44, 0.22);
  text-decoration: none;
}

.wa-float:hover { color: #fff; filter: brightness(1.05); }

.wa-float svg { width: 1.7rem; height: 1.7rem; fill: currentColor; }

/* Mobile nav */
@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }

  .header-cta { display: none; }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.25rem;
  }

  .site-nav.is-open { display: block; }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav a {
    display: block;
    padding: 0.85rem 0.2rem;
    font-size: 1rem;
  }

  .site-nav a.is-active { box-shadow: none; }

  .site-nav .btn {
    display: inline-flex;
    width: 100%;
    margin-top: 0.6rem;
  }

  :root { --header-h: 3.75rem; }
  .logo img { height: 2.75rem; }

}

@media (max-width: 390px) {
  .btn { width: 100%; }
  .btn-row .btn { flex: 1 1 100%; }
}

.split .facts { grid-template-columns: 1fr; }
@media (min-width: 560px) {
  .split .facts { grid-template-columns: 1fr 1fr; }
}

/* Photos */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 50%;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(105deg,
      color-mix(in srgb, var(--cream) 22%, transparent) 0%,
      color-mix(in srgb, var(--cream) 8%, transparent) 36%,
      transparent 70%);
}
.frame {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--sand);
  background: var(--cream);
}
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.intro-grid .frame {
  min-height: 320px;
  max-height: 420px;
}
.photo-band {
  padding: 0;
}
.photo-band .frame {
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  height: min(42vw, 380px);
}
.page-hero.has-photo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--ink);
}
.page-hero.has-photo .page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.page-hero.has-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      color-mix(in srgb, var(--cream) 90%, transparent) 0%,
      color-mix(in srgb, var(--cream) 84%, transparent) 38%,
      color-mix(in srgb, var(--cream) 28%, transparent) 58%,
      transparent 80%);
}
.split-photo {
  display: grid;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 840px) {
  .split-photo {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    align-items: stretch;
  }
  .split-photo .frame { min-height: 100%; }
}

/* Mobile: photo as a band, copy on cream — no overlay. Desktop unchanged. */
@media (max-width: 799px) {
  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding: 0;
    background: var(--cream);
  }
  .hero-bg {
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    height: clamp(10.5rem, 42vw, 16rem);
    z-index: 0;
    object-fit: cover;
    object-position: 72% 50%;
  }
  .hero::after { content: none; }
  .hero .wrap {
    padding: 1.75rem 0 2.35rem;
  }
  .hero h1 { max-width: 14ch; }

  .page-hero.has-photo {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    background: var(--cream);
  }
  .page-hero.has-photo .page-hero-bg {
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    height: clamp(10.5rem, 42vw, 16rem);
    z-index: 0;
    object-fit: cover;
  }
  .page-hero.has-photo::after { content: none; }
  .page-hero.has-photo .wrap {
    padding: 1.75rem 0 2.1rem;
  }
}


.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 1.25rem 0 1.75rem;
}
.legal-table th,
.legal-table td {
  border: 1px solid var(--sand);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}
.legal-table th {
  background: var(--cream);
  font-weight: 600;
}
.legal .legal-end {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.iva-note {
  margin: 1.5rem 0 0;
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 42rem;
}

.map-placeholder {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 1.5rem 1rem;
  text-align: center;
}
