/*
Theme Name: RelaxSalud
Theme URI: https://relaxsalud.es
Author: RelaxSalud
Description: Tema editorial ligero para una web de descanso y afiliación.
Version: 1.2.0
Text Domain: relaxsalud
*/

:root {
  --ink: #24312b;
  --forest: #334d3f;
  --sage: #82927d;
  --sage-soft: #e7ebe1;
  --clay: #a86643;
  --oat: #e7dccb;
  --linen: #f5efe5;
  --paper: #fffdf8;
  --line: #d8cdbc;
  --muted: #6e746f;
  --white: #fff;
  --content: 760px;
  --wide: 1180px;
  --shadow: 0 18px 50px rgba(51, 42, 31, .10);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--forest);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

h1,
h2,
h3,
h4 {
  margin: 1.5em 0 .55em;
  color: var(--forest);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 650;
  letter-spacing: -.025em;
  line-height: 1.14;
}

h1 {
  font-size: clamp(2.45rem, 6vw, 5.25rem);
}

h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.7rem);
}

h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
}

p,
ul,
ol {
  margin: 0 0 1.1rem;
}

blockquote {
  margin: 2rem 0;
  padding: 1.2rem 1.4rem;
  background: var(--linen);
  border-left: 4px solid var(--clay);
  border-radius: 0 12px 12px 0;
}

table {
  width: 100%;
  margin: 1.8rem 0;
  border-collapse: collapse;
  font-size: .92rem;
}

th,
td {
  padding: .8rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--forest);
  background: var(--linen);
}

.screen-reader-text,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.skip-link:focus {
  z-index: 10000;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  padding: .7rem 1rem;
  color: #fff;
  background: var(--forest);
  clip: auto;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: rgba(255, 253, 248, .94);
  border-bottom: 1px solid rgba(216, 205, 188, .82);
  backdrop-filter: blur(14px);
}

.header-inner,
.footer-inner {
  width: min(calc(100% - 2rem), var(--wide));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  min-height: 76px;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.site-branding {
  display: flex;
  flex: 0 0 auto;
  align-items: baseline;
  color: var(--forest);
  text-decoration: none;
}

.site-branding strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  letter-spacing: -.035em;
}

.site-branding span {
  margin-left: .42rem;
  color: var(--clay);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.primary-nav ul {
  display: flex;
  gap: clamp(.7rem, 2vw, 1.5rem);
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav a {
  color: var(--ink);
  font-size: .82rem;
  font-weight: 760;
  text-decoration: none;
}

.primary-nav .nav-configurator a {
  padding: .62rem .82rem;
  color: #fff;
  background: var(--forest);
  border-radius: 8px;
}

.site-main {
  min-height: 70vh;
}

.content-shell {
  width: min(calc(100% - 2rem), var(--content));
  margin-inline: auto;
}

.wide-shell {
  width: min(calc(100% - 2rem), var(--wide));
  margin-inline: auto;
}

.article-header,
.page-header {
  padding: clamp(3.5rem, 10vw, 7.5rem) 0 clamp(2rem, 5vw, 3.5rem);
  background:
    radial-gradient(circle at 80% 15%, rgba(231, 220, 203, .65), transparent 28%),
    linear-gradient(180deg, var(--linen), var(--paper));
}

.article-header .content-shell,
.page-header .content-shell {
  position: relative;
}

.article-header h1,
.page-header h1 {
  max-width: 950px;
  margin: .35rem 0 .8rem;
}

.article-header h1 {
  font-size: clamp(2.35rem, 5.2vw, 4.8rem);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1.2rem;
  color: var(--muted);
  font-size: .8rem;
}

.eyebrow {
  color: var(--clay);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.article-deck {
  max-width: 760px;
  margin-top: 1rem;
  color: #465149;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.12rem, 2vw, 1.4rem);
  line-height: 1.45;
}

.entry-content {
  padding: clamp(2.2rem, 6vw, 4.5rem) 0;
}

.entry-content > * {
  max-width: var(--content);
  margin-right: auto;
  margin-left: auto;
}

.entry-content > .alignwide,
.entry-content > .rs-product-grid,
.entry-content > .rs-product-card,
.entry-content > .rs-configurator,
.entry-content > .rs-article-image,
.entry-content > .rs-home-section,
.entry-content > .rs-journey-group,
.entry-content > .rs-comparison-table {
  max-width: var(--wide);
}

.entry-content > .alignfull {
  max-width: none;
}

.entry-content .rs-intro {
  color: #465149;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2.2vw, 1.42rem);
  line-height: 1.52;
}

.entry-content li + li {
  margin-top: .45rem;
}

.source-box {
  margin-top: 2.5rem;
  padding: 1.2rem 1.3rem;
  color: #4f5852;
  background: var(--linen);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: .85rem;
}

.source-box h2 {
  margin: 0 0 .65rem;
  font-family: inherit;
  font-size: .84rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.source-box ul {
  margin: 0;
}

.rs-home-hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  min-height: min(760px, 82vh);
  align-items: center;
  background: var(--linen);
}

.rs-home-hero-copy {
  max-width: 610px;
  padding: clamp(3rem, 8vw, 7rem) clamp(1rem, 5vw, 4rem);
  justify-self: end;
}

.rs-home-hero h1 {
  margin: .35rem 0 1rem;
  font-size: clamp(2.85rem, 4.6vw, 4.8rem);
  line-height: 1;
}

.rs-home-hero p {
  max-width: 540px;
  color: #455047;
  font-size: 1.08rem;
}

.rs-home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.5rem;
}

.rs-home-hero-media {
  min-height: 100%;
}

.rs-home-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
}

.rs-home-hero-media .rs-article-image {
  height: 100%;
  margin: 0;
}

.rs-home-hero-media .rs-article-image figcaption,
.rs-article-image figcaption:empty {
  display: none;
}

.rs-secondary-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  padding: .8rem 1.1rem;
  color: var(--forest);
  border: 2px solid var(--forest);
  border-radius: 10px;
  font-weight: 780;
  text-decoration: none;
}

.rs-home-section {
  padding: clamp(3.5rem, 8vw, 7rem) 0;
}

.rs-home-section--tint {
  max-width: none !important;
  background: var(--sage-soft);
}

.rs-home-section-inner {
  width: min(calc(100% - 2rem), var(--wide));
  margin-inline: auto;
}

.rs-section-heading {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 2rem;
  align-items: end;
  margin-bottom: 2.5rem;
}

.rs-section-heading h2 {
  margin: .25rem 0 0;
}

.rs-section-heading p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
}

.rs-route-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.rs-route-card {
  display: flex;
  min-height: 265px;
  flex-direction: column;
  padding: 1.4rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(51, 42, 31, .06);
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease;
}

.rs-route-card:hover {
  color: var(--ink);
  border-color: var(--clay);
  transform: translateY(-3px);
}

.rs-route-card span,
.rs-editorial-card > span,
.rs-journey-heading > span,
.rs-link-list span,
.rs-need-grid span,
.rs-article-journey-grid span {
  color: var(--clay);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.rs-route-card h3 {
  margin: .8rem 0 .6rem;
  font-size: 1.35rem;
}

.rs-route-card p {
  color: var(--muted);
  font-size: .86rem;
}

.rs-route-card strong {
  margin-top: auto;
  color: var(--forest);
  font-size: .82rem;
}

.rs-editorial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.rs-editorial-card {
  min-height: 240px;
  padding: 1.4rem;
  background: rgba(255, 253, 248, .82);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.rs-editorial-card--lead {
  grid-column: span 2;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, .94), rgba(231, 235, 225, .72));
}

.rs-editorial-card h3 {
  margin: .65rem 0 .7rem;
}

.rs-editorial-card h3 a {
  color: var(--forest);
  text-decoration: none;
}

.rs-editorial-card p {
  color: var(--muted);
  font-size: .88rem;
}

.rs-editorial-card > a {
  font-size: .82rem;
  font-weight: 780;
}

.rs-centered-action {
  margin-top: 2rem;
  text-align: center;
}

.rs-need-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.rs-need-grid a {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.3rem;
  color: var(--ink);
  background: var(--linen);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
}

.rs-need-grid a:hover {
  color: var(--forest);
  border-color: var(--clay);
}

.rs-need-grid strong {
  margin-top: 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  line-height: 1.3;
}

.rs-home-section--products {
  max-width: none !important;
  background: var(--linen);
}

.rs-journey-group {
  padding: clamp(2.5rem, 6vw, 5rem) 0;
  border-bottom: 1px solid var(--line);
}

.rs-journey-group:first-of-type {
  padding-top: 1rem;
}

.rs-journey-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.rs-journey-heading h2 {
  margin: .4rem 0 .6rem;
}

.rs-journey-heading p {
  color: var(--muted);
}

.rs-link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.rs-link-list a {
  display: grid;
  gap: .35rem;
  padding: 1.1rem 1.2rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
}

.rs-link-list a:hover {
  border-color: var(--clay);
}

.rs-link-list strong {
  color: var(--forest);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
}

.rs-link-list small {
  color: var(--muted);
  font-size: .78rem;
}

.rs-article-journey {
  padding: clamp(3rem, 7vw, 5rem) 0;
  background: var(--sage-soft);
}

.rs-article-journey-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.rs-article-journey-grid a {
  display: grid;
  gap: .55rem;
  padding: 1.35rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
}

.rs-article-journey-grid strong {
  color: var(--forest);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
}

.rs-article-journey-grid small {
  color: var(--muted);
  font-size: .8rem;
}

.rs-benefit-grid,
.post-grid,
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.rs-benefit {
  min-height: 240px;
  padding: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.rs-benefit span {
  display: grid;
  width: 40px;
  height: 40px;
  color: #fff;
  background: var(--clay);
  border-radius: 50%;
  font-weight: 850;
  place-items: center;
}

.rs-benefit h3 {
  margin: 1.5rem 0 .6rem;
}

.rs-method {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.rs-method img {
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.rs-method-list {
  display: grid;
  gap: 1rem;
  padding: 0;
  list-style: none;
}

.rs-method-list li {
  padding: 1rem 1.15rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.post-listing,
.related-posts {
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.post-card {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 35px rgba(51, 42, 31, .06);
}

.post-card-content {
  padding: 1.25rem;
}

.post-card h2,
.post-card h3 {
  margin: .35rem 0 .65rem;
  font-size: 1.35rem;
}

.post-card h2 a,
.post-card h3 a {
  color: var(--forest);
  text-decoration: none;
}

.post-card p {
  color: var(--muted);
  font-size: .88rem;
}

.author-note {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1rem;
  max-width: var(--content);
  margin: 1rem auto 4rem;
  padding: 1.25rem;
  background: var(--linen);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.author-note-mark {
  display: grid;
  width: 56px;
  height: 56px;
  color: #fff;
  background: var(--forest);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 1.35rem;
  place-items: center;
}

.author-note h2 {
  margin: 0 0 .25rem;
  font-family: inherit;
  font-size: 1rem;
}

.author-note p {
  margin: 0;
  color: var(--muted);
  font-size: .85rem;
}

.site-footer {
  color: #e7e1d6;
  background: var(--ink);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 2rem;
  padding: 3.5rem 0;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 .75rem;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
}

.site-footer p,
.site-footer a {
  color: #c9c4ba;
  font-size: .82rem;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li + li {
  margin-top: .35rem;
}

.footer-bottom {
  padding: 1rem;
  color: #a9a49b;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .74rem;
  text-align: center;
}

.pagination {
  display: flex;
  gap: .5rem;
  justify-content: center;
  margin-top: 2rem;
}

.pagination .page-numbers {
  padding: .5rem .75rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  text-decoration: none;
}

@media (max-width: 900px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: .6rem;
    padding: .8rem 0;
  }

  .site-header {
    position: static;
  }

  .primary-nav ul {
    flex-wrap: wrap;
  }

  .rs-home-hero,
  .rs-section-heading,
  .rs-method,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .rs-route-grid,
  .rs-editorial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rs-editorial-card--lead {
    grid-column: span 2;
  }

  .rs-home-hero-copy {
    max-width: none;
    justify-self: stretch;
  }

  .rs-home-hero-media img {
    min-height: 420px;
  }

  .rs-benefit-grid,
  .post-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .site-branding span {
    display: none;
  }

  .primary-nav ul {
    gap: .55rem 1rem;
  }

  .primary-nav a {
    font-size: .78rem;
  }

  .rs-home-hero-copy {
    padding-inline: 1rem;
  }

  .rs-home-hero-media img {
    min-height: 320px;
  }

  .rs-benefit-grid,
  .post-grid,
  .related-grid,
  .rs-route-grid,
  .rs-editorial-grid,
  .rs-need-grid,
  .rs-link-list,
  .rs-article-journey-grid {
    grid-template-columns: 1fr;
  }

  .rs-editorial-card--lead {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
