.nav a[aria-current="page"] { color: #f4efe4; border-bottom: 1px solid #a89069; padding-bottom: .35rem; }

.page-hero { background: #282925; color: #f4f0e7; border-top: 1px solid rgba(236, 229, 212, .08); }
.page-hero-inner { padding-block: clamp(5.5rem, 9vw, 9rem) clamp(5rem, 7vw, 7rem); }
.page-hero h1 { max-width: 940px; margin: 1.65rem 0 1.6rem; font-size: clamp(3rem, 4.5vw, 5rem); line-height: 1.08; color: #fffaf0; text-wrap: balance; }
.page-lead { max-width: 720px; margin-bottom: 0; color: #e4e1d7; font-size: clamp(1.04rem, 1.3vw, 1.2rem); line-height: 1.78; }
.page-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.5rem 2rem; margin-top: 2.75rem; }
.page-hero-actions .text-link { font-size: .9rem; }

.detail-section { background: #f7f5ef; padding-block: clamp(6rem, 8.5vw, 9rem); }
.detail-heading { display: grid; grid-template-columns: minmax(0, .38fr) minmax(0, 1fr); align-items: start; gap: clamp(2rem, 6vw, 7rem); margin-bottom: 3.5rem; }
.detail-heading .eyebrow { padding-top: .75rem; }
.detail-heading h2 { margin: 0; max-width: 760px; }
.detail-list { border-top: 1px solid #cdc8ba; }
.detail-row { display: grid; grid-template-columns: 70px minmax(230px, .8fr) minmax(280px, 1fr); gap: clamp(1rem, 3vw, 4rem); padding: 2.7rem 0; border-bottom: 1px solid #cdc8ba; }
.detail-number { padding-top: .45rem; color: #8d7c5f; font: 600 .8rem 'DM Sans', sans-serif; letter-spacing: .17em; }
.detail-row h3 { max-width: 430px; margin: 0; color: #30342f; }
.detail-row p { max-width: 590px; margin: .1rem 0 0; color: #585f56; font-size: 1.04rem; line-height: 1.78; }
.detail-action { display: inline-flex; align-items: center; gap: 1.6rem; margin-top: 1.3rem; padding-bottom: .4rem; border-bottom: 1px solid #a89069; color: #303a30; font-weight: 600; overflow-wrap: anywhere; }
.detail-action:hover { color: #5b624f; }
.detail-row .detail-action[href^="mailto:info@domusveritas.es"] { white-space: nowrap; overflow-wrap: normal; gap: .5rem; max-width: 100%; }

.diagnostics-measures { background: #eeece5; padding-block: clamp(5rem, 7vw, 7rem); }
.diagnostics-measures-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .8fr); gap: clamp(2rem, 7vw, 8rem); align-items: end; margin-bottom: 3rem; }
.diagnostics-measures-heading h2 { max-width: 680px; margin: 1.2rem 0 0; }
.diagnostics-measures-heading > p { max-width: 520px; margin: 0; color: #585f56; font-size: 1.04rem; line-height: 1.78; }
.diagnostics-measures-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 6vw, 6rem); list-style: none; margin: 0; padding: 0; border-top: 1px solid #cdc8ba; }
.diagnostics-measures-list li { padding: 1.45rem 0; border-bottom: 1px solid #cdc8ba; color: #30342f; font-size: 1.04rem; line-height: 1.5; }

.detail-note { background: #2b2f2a; color: #f4f0e7; padding-block: clamp(6rem, 8vw, 8rem); }
.detail-note-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .82fr); gap: clamp(3rem, 9vw, 10rem); align-items: start; }
.detail-note h2 { max-width: 690px; margin: 1.5rem 0 0; color: #f4f0e7; }
.detail-note-grid > div:last-child { padding-top: 2.5rem; }
.detail-note-grid > div:last-child p { max-width: 560px; color: #e3e5dc; font-size: 1.08rem; line-height: 1.8; }
.note-link { display: inline-flex; justify-content: space-between; align-items: center; gap: 2rem; margin-top: 1.6rem; padding-bottom: .45rem; border-bottom: 1px solid #a89069; color: #f2ede2; font-weight: 600; }
.note-link:hover { color: #d8c9a9; }

@media (max-width: 900px) {
  .diagnostics-measures-heading { grid-template-columns: 1fr; gap: 1.2rem; }
  .detail-heading { grid-template-columns: 1fr; gap: 1.2rem; }
  .detail-heading .eyebrow { padding-top: 0; }
  .detail-row { grid-template-columns: 50px minmax(200px, .8fr) minmax(220px, 1fr); gap: 1rem; }
  .detail-note-grid { grid-template-columns: 1fr; gap: 1rem; }
  .detail-note-grid > div:last-child { padding-top: 0; }
}
@media (max-width: 650px) {
  .detail-row .detail-action[href^="mailto:info@domusveritas.es"] { font-size: clamp(.875rem, 4vw, 1rem); }
  .diagnostics-measures { padding-block: 5rem; }
  .diagnostics-measures-list { grid-template-columns: 1fr; }
  .page-hero-inner { padding-block: 5rem; }
  .page-hero h1 { font-size: clamp(2.55rem, 8vw, 3.7rem); overflow-wrap: break-word; }
  .page-hero-actions { align-items: flex-start; flex-direction: column; gap: 1.25rem; }
  .detail-section { padding-block: 5rem; }
  .detail-heading { margin-bottom: 2.5rem; }
  .detail-row { grid-template-columns: 32px 1fr; gap: .7rem 1rem; padding: 2rem 0; }
  .detail-row > div { grid-column: 2; }
  .detail-row p { font-size: 1rem; }
  .detail-note { padding-block: 5.5rem; }
}
