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

body[data-page="cuaderno"] {
  padding-top: var(--header-height) !important;
}

.blog-site-header .menu {
  display: contents;
}

.blog-site-header .menu-item {
  list-style: none;
}

.blog-site-header .menu-item > a {
  position: relative;
  padding: 0.45rem 0;
  color: inherit;
  font-weight: 600;
}

.blog-site-header .menu-item > a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0.18rem;
  left: 0;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.blog-site-header .menu-item > a:hover,
.blog-site-header .menu-item.current-menu-item > a,
.blog-site-header .menu-item > a.active {
  color: var(--color-ink);
}

.blog-site-header .menu-item > a:hover::after,
.blog-site-header .menu-item.current-menu-item > a::after,
.blog-site-header .menu-item > a.active::after {
  transform: scaleX(1);
}

.blog-site-header .menu-item.current-menu-item > a {
  font-weight: 700;
}

.blog-hero {
  width: min(100%, 1280px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.88fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
  margin: 0 auto;
  padding: clamp(1.8rem, 3.8vw, 3.4rem) var(--space-page) clamp(1.5rem, 3vw, 2.4rem);
}

.blog-hero-copy h1,
.blog-section-heading h1,
.blog-section-heading h2,
.blog-widget-title,
.blog-post-card h2,
.blog-single-header h1,
.blog-comments h2,
.blog-archive-header h1,
.blog-empty h2 {
  margin: 0;
  color: var(--color-ink);
  font-family: var(--font-title);
  line-height: 1.02;
}

.blog-hero-copy h1 {
  font-size: clamp(3.5rem, 6vw, 5rem);
}

.blog-hero-copy > span {
  display: block;
  width: 42px;
  height: 3px;
  margin: 1.35rem 0 1.25rem;
  background: var(--color-accent);
}

.blog-hero-copy p {
  max-width: 590px;
  margin: 0;
  color: var(--color-ink);
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
  line-height: 1.72;
}

.blog-hero-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-hero-illustration picture {
  display: block;
  width: min(520px, 100%);
}

.blog-hero-illustration img {
  width: min(520px, 100%);
  height: auto;
  object-fit: contain;
}

.blog-shell {
  width: min(100%, 1280px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 330px);
  gap: clamp(2rem, 4vw, 4.2rem);
  margin: 0 auto;
  padding: 0 var(--space-page) clamp(3rem, 6vw, 5rem);
}

.blog-main-column {
  min-width: 0;
}

.blog-journey-callout {
  grid-column: 1 / -1;
  min-width: 0;
}

.blog-journey-link {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
  min-height: 212px;
  overflow: hidden;
  padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1.75rem, 3.5vw, 3rem);
  border: 1px solid rgba(184, 150, 97, 0.45);
  border-radius: var(--radius);
  color: var(--color-text);
  background: #f8f2e8 url("../images/imagen_recorrido.webp") center / cover no-repeat;
  box-shadow: 0 14px 38px rgba(16, 24, 39, 0.035);
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.blog-journey-link:hover {
  border-color: rgba(184, 150, 97, 0.72);
  box-shadow: 0 18px 44px rgba(16, 24, 39, 0.075);
  transform: translateY(-2px);
}

.blog-journey-link:focus-visible {
  outline: 3px solid var(--color-accent-text);
  outline-offset: 4px;
}

.blog-journey-copy {
  position: relative;
  z-index: 1;
  display: flex;
  max-width: 690px;
  flex-direction: column;
  align-items: flex-start;
}

.blog-journey-kicker {
  margin-bottom: 0.55rem;
  color: var(--color-accent-text);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.blog-journey-title {
  color: var(--color-ink);
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 2.7vw, 2.35rem);
  font-weight: 700;
  line-height: 1.08;
}

.blog-journey-text {
  max-width: 680px;
  margin-top: 0.85rem;
  font-size: clamp(0.94rem, 1.15vw, 1.04rem);
  line-height: 1.62;
}

.blog-journey-cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 1.65rem;
  border-radius: 999px;
  color: var(--color-white);
  background: #886b43;
  font-size: 0.91rem;
  font-weight: 800;
  white-space: nowrap;
  transition: transform 180ms ease;
}

.blog-journey-link:hover .blog-journey-cta {
  transform: translateX(3px);
}

.blog-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.blog-section-heading h1,
.blog-section-heading h2 {
  font-size: clamp(1.55rem, 2.2vw, 2rem);
}

.blog-section-heading a {
  color: var(--color-accent-text);
  font-size: 0.9rem;
  font-weight: 800;
}

.blog-section-heading a::after {
  content: " ->";
}

.blog-post-list {
  display: grid;
  gap: 1.25rem;
}

.blog-post-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(16, 24, 39, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.22);
}

.blog-post-thumb {
  min-height: 248px;
  background: var(--color-accent-soft);
}

.blog-post-thumb picture {
  display: block;
  width: 100%;
  height: 100%;
}

.blog-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-post-card-copy {
  min-width: 0;
  padding: clamp(1.15rem, 2.5vw, 1.75rem);
}

.blog-post-category {
  display: inline-block;
  margin-bottom: 0.65rem;
  color: var(--color-accent-text);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.blog-post-card h2 {
  max-width: 14ch;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.blog-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.65rem 0 0.85rem;
  color: var(--color-ink);
  font-size: 0.82rem;
  font-weight: 600;
}

.blog-post-card-copy > p:not(.blog-post-meta) {
  margin: 0 0 0.9rem;
  font-size: 0.92rem;
  line-height: 1.65;
}

.blog-sidebar {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding-left: clamp(1rem, 3vw, 2rem);
  border-left: 1px solid rgba(16, 24, 39, 0.08);
}

.blog-widget {
  padding: 1.25rem;
  border: 1px solid rgba(16, 24, 39, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.2);
}

.blog-widget-search {
  padding: 0;
  border: 0;
  background: transparent;
}

.blog-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  min-height: 58px;
  border: 1px solid rgba(16, 24, 39, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.25);
}

.blog-search-form input,
.blog-search-form button {
  border: 0;
  background: transparent;
  font: inherit;
}

.blog-search-form input {
  min-width: 0;
  padding: 0 1rem;
}

.blog-search-form button {
  display: grid;
  place-items: center;
  cursor: pointer;
}

.blog-search-form svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--color-ink);
  stroke-width: 1.7;
}

.blog-widget-title {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.blog-mini-list {
  display: grid;
  gap: 0.9rem;
}

.blog-mini-post {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
}

.blog-mini-post picture {
  display: block;
  width: 70px;
  height: 70px;
}

.blog-mini-post img {
  width: 70px;
  height: 70px;
  border-radius: 6px;
  object-fit: cover;
}

.blog-mini-post strong,
.blog-mini-post em {
  display: block;
}

.blog-mini-post strong {
  color: var(--color-ink);
  font-size: 0.88rem;
  line-height: 1.3;
}

.blog-mini-post em {
  margin-top: 0.25rem;
  color: var(--color-muted);
  font-size: 0.78rem;
  font-style: normal;
}

.blog-tax-list {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-tax-list a {
  color: var(--color-ink);
  font-size: 0.9rem;
  font-weight: 600;
}

.blog-tax-list a::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 11px;
  margin-right: 0.55rem;
  border: 1px solid var(--color-accent);
  border-radius: 2px;
}

.blog-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.blog-tag-cloud a {
  padding: 0.38rem 0.58rem;
  border: 1px solid rgba(16, 24, 39, 0.08);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.34);
  color: var(--color-ink);
  font-size: 0.78rem !important;
  font-weight: 600;
}

.blog-widget-note p {
  margin: 0 0 1rem;
  color: var(--color-text);
  font-size: 0.9rem;
  line-height: 1.62;
}

.blog-widget-note p:last-of-type {
  margin-bottom: 1.25rem;
}

.blog-widget-actions {
  display: grid;
  gap: 0.65rem;
}

.blog-widget-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 0.85rem;
  border: 1px solid rgba(151, 101, 38, 0.45);
  border-radius: 5px;
  color: var(--color-ink);
  background: rgba(255, 255, 255, 0.28);
  font-size: 0.82rem;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.blog-widget-link:hover {
  border-color: rgba(151, 101, 38, 0.72);
  background: rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
}

.blog-widget-link.blog-widget-link-primary,
.blog-widget-link.blog-widget-link-primary:visited {
  justify-content: space-between;
  border-color: var(--color-ink) !important;
  color: var(--color-white) !important;
  background: var(--color-ink) !important;
}

.blog-widget-link.blog-widget-link-primary:hover,
.blog-widget-link.blog-widget-link-primary:focus-visible {
  border-color: #233249 !important;
  color: var(--color-white) !important;
  background: #233249 !important;
}

.blog-widget-link-primary span {
  margin-left: 0.75rem;
  transition: transform 180ms ease;
}

.blog-widget-link-primary:hover span {
  transform: translateX(3px);
}

.blog-pagination {
  margin-top: 2rem;
}

.blog-pagination ul {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-pagination a,
.blog-pagination span {
  display: grid;
  min-width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: var(--color-ink);
  font-weight: 700;
}

.blog-pagination .current {
  color: var(--color-white);
  background: var(--color-accent-action);
}

.blog-single-shell {
  width: min(100%, 880px);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) var(--space-page);
}

.blog-single-article {
  min-width: 0;
}

.blog-single-header {
  margin-bottom: 1.8rem;
}

.blog-single-header h1 {
  max-width: 13ch;
  margin-top: 0.4rem;
  font-size: clamp(3rem, 6vw, 5rem);
}

.blog-single-featured {
  margin: 0 0 2rem;
}

.blog-single-featured img {
  width: 100%;
  max-height: 560px;
  border-radius: var(--radius);
  object-fit: cover;
}

.blog-single-content {
  color: var(--color-ink);
  font-size: 1.04rem;
  line-height: 1.82;
}

.blog-single-content h2,
.blog-single-content h3 {
  color: var(--color-ink);
  font-family: var(--font-title);
  line-height: 1.12;
}

.blog-single-content a {
  color: var(--color-accent-text);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.blog-single-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(16, 24, 39, 0.1);
}

.blog-comments {
  margin-top: 2.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(16, 24, 39, 0.12);
}

.comments-title,
.comment-reply-title {
  font-size: 1.35rem;
}

.comment-reply-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
}

.comments-title span {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  color: var(--color-white);
  background: var(--color-accent-action);
  font-family: var(--font-body);
  font-size: 0.75rem;
}

.comment-list {
  display: grid;
  gap: 1rem;
  margin: 1rem 0 2rem;
  padding: 0;
  list-style: none;
}

.comment-list .children {
  margin: 1rem 0 0 4rem;
  padding: 0;
  list-style: none;
}

.jage-comment-body {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 1rem;
}

.jage-comment-avatar img {
  border-radius: 50%;
}

.jage-comment-content {
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(16, 24, 39, 0.1);
}

.jage-comment-meta {
  margin: 0 0 0.25rem;
  color: var(--color-muted);
  font-size: 0.82rem;
}

.jage-comment-meta strong {
  color: var(--color-ink);
}

.jage-comment-text p {
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
  line-height: 1.55;
}

.comment-reply-link {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(151, 101, 38, 0.35);
  border-radius: 999px;
  color: #8a622f;
  background: rgba(151, 101, 38, 0.08);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.comment-reply-link:hover {
  border-color: rgba(151, 101, 38, 0.65);
  background: rgba(151, 101, 38, 0.14);
  transform: translateY(-1px);
}

#cancel-comment-reply-link {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(16, 24, 39, 0.16);
  border-radius: 999px;
  color: var(--color-ink);
  background: rgba(255, 255, 255, 0.42);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

#cancel-comment-reply-link:hover {
  border-color: rgba(151, 101, 38, 0.45);
  color: #8a622f;
  background: rgba(151, 101, 38, 0.08);
}

.jage-comment-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.8rem;
}

.comment-moderation-notice,
.comment-form-comment,
.form-submit,
.logged-in-as {
  grid-column: 1 / -1;
}

.comment-moderation-notice {
  display: block;
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 1rem;
  padding: 0.7rem 0.85rem;
  border-left: 3px solid var(--color-accent);
  border-radius: 0 4px 4px 0;
  color: var(--color-ink);
  background: rgba(151, 101, 38, 0.08);
  font-size: 0.88rem;
  line-height: 1.5;
}

.jage-comment-form .comment-form-cookies-consent {
  display: none !important;
}

.comment-form-author {
  width: min(100%, 34rem);
  margin: 0;
}

.jage-comment-form label {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.jage-comment-form input:not([type="checkbox"]):not([type="submit"]),
.jage-comment-form textarea {
  width: 100%;
  border: 1px solid rgba(16, 24, 39, 0.45);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.32);
  font: inherit;
}

.jage-comment-form input:not([type="checkbox"]):not([type="submit"]) {
  min-height: 38px;
  padding: 0 0.7rem;
}

.jage-comment-form textarea {
  min-height: 150px;
  padding: 0.75rem;
}

.form-submit {
  margin: 0.2rem 0 0;
}

.comment-submit {
  width: auto;
  min-width: 150px;
  min-height: 38px;
  padding: 0 1rem;
  border: 1px solid rgba(151, 101, 38, 0.55);
  border-radius: 5px;
  color: var(--color-white);
  background: linear-gradient(180deg, #886b43 0%, #76562f 100%);
  box-shadow: 0 8px 18px rgba(151, 101, 38, 0.14);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.comment-submit:hover {
  background: linear-gradient(180deg, #80623a 0%, #684824 100%);
  box-shadow: 0 10px 22px rgba(151, 101, 38, 0.2);
  transform: translateY(-1px);
}

main.blog-shell.blog-archive-shell {
  padding-top: clamp(3.5rem, 6vw, 5rem) !important;
}

.blog-archive-header {
  margin-bottom: 1.6rem;
}

.blog-archive-header h1 {
  font-size: clamp(2.7rem, 5vw, 4.2rem);
}

.archive-description {
  max-width: 620px;
}

.blog-empty {
  padding: 2rem;
  border: 1px solid rgba(16, 24, 39, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.22);
}

.blog-not-found-page {
  display: grid;
}

.blog-not-found {
  width: min(100%, 1360px);
  display: grid;
  grid-template-columns: minmax(330px, 0.74fr) minmax(0, 1.26fr);
  gap: clamp(2.25rem, 4.2vw, 5rem);
  align-items: center;
  margin: 0 auto;
  padding: clamp(1.75rem, 4vh, 3rem) var(--space-page) clamp(2.2rem, 4.8vh, 3.4rem);
  min-height: calc(100vh - var(--header-height) - 5rem);
}

.blog-not-found-copy {
  max-width: 520px;
}

.blog-not-found-code {
  margin: 0;
  color: var(--color-accent);
  font-family: var(--font-title);
  font-size: clamp(3.9rem, 5.9vw, 5.8rem);
  line-height: 0.9;
  opacity: 0.92;
}

.blog-not-found h1 {
  margin: clamp(0.6rem, 1.4vh, 1rem) 0 0;
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: clamp(1.65rem, 2.05vw, 2.25rem);
  font-weight: 760;
  line-height: 1.12;
  white-space: nowrap;
}

.blog-not-found-rule {
  display: block;
  width: 52px;
  height: 2px;
  margin: clamp(1rem, 2vh, 1.35rem) 0;
  background: var(--color-accent);
}

.blog-not-found-copy > p:not(.blog-not-found-code) {
  max-width: 470px;
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  line-height: 1.48;
}

.blog-not-found-note {
  margin-top: 0.15rem;
  color: var(--color-accent-text);
  font-weight: 700;
}

.blog-not-found .hero-actions {
  gap: 0.8rem;
  margin-top: clamp(1rem, 2vh, 1.35rem);
}

.blog-not-found .button {
  min-height: 46px;
  padding: 0 1.25rem;
  font-size: 0.9rem;
}

.blog-not-found-art,
.blog-not-found-art picture {
  display: block;
  width: 100%;
}

.blog-not-found-art img {
  width: 100%;
  max-height: calc(100vh - var(--header-height) - 10.5rem);
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

body[data-page="cuaderno"] .cookie-banner {
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: clamp(0.7rem, 1.25vw, 0.95rem) !important;
  width: 600px !important;
  max-width: calc(100vw - (var(--space-page) * 2)) !important;
  padding: clamp(0.7rem, 1.2vw, 0.88rem) !important;
}

body[data-page="cuaderno"] .cookie-kicker {
  margin: 0 0 0.2rem !important;
  font-size: 0.78rem !important;
  line-height: 1.1 !important;
  letter-spacing: 0.18em !important;
}

body[data-page="cuaderno"] .cookie-banner h2 {
  margin: 0 !important;
  font-size: clamp(1.12rem, 1.35vw, 1.36rem) !important;
  line-height: 1.08 !important;
}

body[data-page="cuaderno"] .cookie-banner p {
  margin: 0.35rem 0 0 !important;
  font-size: 0.8rem !important;
  line-height: 1.4 !important;
}

body[data-page="cuaderno"] .cookie-banner a {
  margin-top: 0.45rem !important;
  font-size: 0.78rem !important;
  line-height: 1.3 !important;
}

body[data-page="cuaderno"] .cookie-banner-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.45rem !important;
  align-content: center !important;
  min-width: 220px !important;
}

body[data-page="cuaderno"] .cookie-banner-actions .button {
  min-width: 0 !important;
  min-height: 36px !important;
  width: 100% !important;
  padding: 0 0.85rem !important;
  font-size: 0.84rem !important;
  line-height: 1 !important;
}

body[data-page="cuaderno"] .cookie-config-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  grid-column: 1 / -1 !important;
  min-height: 38px !important;
  width: 100% !important;
  padding: 0.45rem 0.9rem !important;
  border: 1px solid rgba(184, 150, 97, 0.55) !important;
  border-radius: 999px !important;
  color: var(--color-ink) !important;
  background: rgba(184, 150, 97, 0.12) !important;
  font: inherit !important;
  font-size: 0.86rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

/* Keep the fixed site header below WordPress' toolbar for signed-in editors. */
body.admin-bar .blog-site-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .blog-site-header {
    top: 46px;
  }
}

@media (max-width: 980px) {
  .blog-hero,
  .blog-shell {
    grid-template-columns: 1fr;
  }

  .blog-not-found {
    grid-template-columns: 1fr;
    gap: clamp(2.2rem, 7vw, 4rem);
    min-height: 0;
  }

  .blog-not-found-copy {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
  }

  .blog-not-found-copy > p:not(.blog-not-found-code),
  .blog-not-found-rule {
    margin-right: auto;
    margin-left: auto;
  }

  .blog-not-found .hero-actions {
    justify-content: center;
  }

  .blog-not-found-art {
    width: min(100%, 760px);
    margin: 0 auto;
  }

  .blog-sidebar {
    padding-left: 0;
    border-left: 0;
  }

  .blog-journey-link {
    grid-template-columns: 1fr;
    gap: 1.35rem;
    align-items: start;
    background-position: 62% center;
  }

  .blog-journey-cta {
    justify-self: start;
  }

  .blog-site-header .menu-item > a {
    display: block;
    padding: 0.8rem 0.35rem;
    border-bottom: 1px solid rgba(16, 24, 39, 0.07);
  }

  .blog-site-header .menu-item:last-child > a {
    border-bottom: 0;
  }
}

@media (max-width: 720px) {
  body[data-page="cuaderno"] .cookie-banner {
    grid-template-columns: 1fr !important;
    right: auto !important;
    bottom: 1rem !important;
    left: 1rem !important;
    width: 340px !important;
    max-width: calc(100vw - 2rem) !important;
    padding: 0.75rem !important;
  }

  body[data-page="cuaderno"] .cookie-banner-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    min-width: 0 !important;
    gap: 0.4rem !important;
  }

  body[data-page="cuaderno"] .cookie-banner-actions .button {
    min-height: 34px !important;
    padding: 0 0.55rem !important;
    font-size: 0.8rem !important;
  }

  body[data-page="cuaderno"] .cookie-config-button {
    min-height: 36px !important;
    padding: 0.4rem 0.75rem !important;
    font-size: 0.8rem !important;
  }

  .blog-hero {
    padding-top: 2rem;
  }

  .blog-journey-link {
    min-height: 0;
    padding: 1.5rem;
    background-position: 70% center;
  }

  .blog-journey-cta {
    width: 100%;
    padding-inline: 1rem;
    white-space: normal;
  }

  .blog-not-found {
    padding: 3rem 1.25rem 2.5rem;
  }

  .blog-not-found-code {
    font-size: clamp(4.8rem, 27vw, 7rem);
  }

  .blog-not-found h1 {
    margin-top: 1.5rem;
    font-size: clamp(2.15rem, 10vw, 3rem);
    white-space: normal;
  }

  .blog-not-found-rule {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .blog-not-found .hero-actions,
  .blog-not-found .button {
    width: 100%;
  }

  .blog-hero-copy h1 {
    font-size: clamp(3.1rem, 15vw, 4.2rem);
  }

  .blog-post-card {
    grid-template-columns: 1fr;
  }

  .blog-post-thumb {
    min-height: 220px;
  }

  .blog-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .blog-single-header h1 {
    font-size: clamp(2.7rem, 14vw, 4rem);
  }

  .jage-comment-form {
    grid-template-columns: 1fr;
  }

  .comment-list .children {
    margin-left: 1.2rem;
  }
}

/* Página editorial: El camino hasta aquí. */
.journey-page {
  padding: clamp(1.5rem, 3vw, 3rem) var(--space-page) clamp(3rem, 6vw, 5rem);
  color: var(--color-ink);
}

.journey-article {
  width: min(100%, 1280px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(16, 24, 39, 0.1);
  background: #f7f3eb;
  box-shadow: 0 18px 50px rgba(48, 38, 25, 0.08);
}

.journey-hero,
.journey-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.journey-hero {
  min-height: 560px;
  border-bottom: 1px solid rgba(16, 24, 39, 0.22);
}

.journey-hero-copy,
.journey-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 3.4vw, 3.8rem) clamp(2rem, 4vw, 4.5rem);
}

.journey-hero-copy h1,
.journey-copy h2,
.journey-arrival h2 {
  margin: 0;
  color: var(--color-ink);
  font-family: var(--font-title);
  line-height: 1.05;
}

.journey-hero-copy h1 {
  font-size: clamp(3.4rem, 6vw, 5.6rem);
  letter-spacing: -0.035em;
}

.journey-rule {
  width: 54px;
  height: 3px;
  margin: 1.5rem 0 1.35rem;
  background: var(--color-accent);
}

.journey-copy h2,
.journey-arrival h2 {
  margin-bottom: 1.2rem;
  font-size: clamp(1.75rem, 2.5vw, 2.4rem);
}

.journey-hero-copy p,
.journey-copy p,
.journey-copy li,
.journey-arrival p {
  margin: 0 0 0.9rem;
  font-size: clamp(0.94rem, 1.1vw, 1.04rem);
  line-height: 1.72;
}

.journey-hero-copy p:last-child,
.journey-copy p:last-child,
.journey-arrival p:last-child {
  margin-bottom: 0;
}

.journey-copy ul {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.journey-copy li {
  margin: 0;
  padding-left: 0.15rem;
}

.journey-hero-image,
.journey-image {
  min-width: 0;
  min-height: 0;
  display: flex;
  align-self: center;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #eee7dc;
}

.journey-hero-image {
  margin: clamp(1rem, 2vw, 1.5rem) clamp(1.5rem, 4vw, 4rem) clamp(1rem, 2vw, 1.5rem) 0;
}

.journey-image {
  aspect-ratio: auto;
}

.journey-row-copy-first .journey-image {
  width: calc(100% - clamp(1.5rem, 4vw, 4rem));
  margin: 0 clamp(1.5rem, 4vw, 4rem) 0 0;
}

.journey-row-image-first .journey-image {
  width: calc(100% - clamp(3rem, 6vw, 6rem));
  margin: 0 clamp(1.5rem, 3vw, 3rem);
}

.journey-row-image-first .journey-copy {
  padding-left: clamp(2.5rem, 5vw, 5rem);
}

.journey-hero-image picture,
.journey-image picture {
  display: block;
  width: 100%;
  height: auto;
}

.journey-hero-image img,
.journey-image img {
  display: block;
  width: 100%;
  height: auto;
}

.journey-image-gallery {
  aspect-ratio: auto;
  flex-direction: column;
  justify-content: center;
  gap: clamp(0.45rem, 1vw, 0.75rem);
  overflow: visible;
  background: transparent;
}

.journey-image-gallery picture {
  aspect-ratio: auto;
  overflow: hidden;
  background: #eee7dc;
}

.journey-image-gallery picture + picture {
  border-top: 0;
}

.journey-row {
  padding-block: clamp(0.75rem, 1.4vw, 1.1rem);
  border-bottom: 1px solid rgba(16, 24, 39, 0.22);
}

.journey-row-image-first .journey-image,
.journey-row-copy-first .journey-copy {
  border-right: 0;
}

.journey-arrival {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  border-bottom: 1px solid rgba(16, 24, 39, 0.14);
  background-color: #c9c2b8;
  background-image: none !important;
}

.journey-arrival-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.4rem, 4.5vw, 4.6rem);
}

.journey-arrival strong {
  font-weight: 800;
}

.journey-arrival-media {
  position: relative;
  min-width: 0;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: #d5c8b8;
}

.journey-arrival-media::before {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  left: 0;
  width: clamp(70px, 12vw, 170px);
  background: linear-gradient(90deg, #c9c2b8 0%, rgba(201, 194, 184, 0.82) 30%, rgba(201, 194, 184, 0) 100%);
  pointer-events: none;
  content: '';
}

.journey-arrival-media picture,
.journey-arrival-media img {
  display: block;
  width: 100%;
  height: 100%;
}

.journey-arrival-media img {
  object-fit: cover;
  object-position: 62% center;
}

.journey-cta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1.2rem;
  align-items: center;
  padding: 1.4rem clamp(1.5rem, 4vw, 4rem);
  background: #fbf9f4;
}

.journey-cta svg {
  width: 46px;
  height: 46px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.journey-cta p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.journey-cta-button {
  min-height: 46px;
  padding: 0 1.25rem;
  border-color: var(--color-ink);
  color: #fff;
  background: var(--color-ink);
  white-space: nowrap;
}

.journey-cta-button:hover {
  color: #fff;
  background: #233249;
  transform: translateY(-1px);
}

@media (max-width: 980px) {
  .journey-page {
    padding-right: 0;
    padding-left: 0;
  }

  .journey-article {
    border-right: 0;
    border-left: 0;
  }

  .journey-hero,
  .journey-row {
    grid-template-columns: 1fr;
  }

  .journey-hero-copy {
    min-height: 0;
  }

  .journey-hero-image,
  .journey-image {
    min-height: auto;
    width: calc(100% - 2.7rem);
    margin: 0 auto 1rem;
    aspect-ratio: auto;
  }

  .journey-image-gallery {
    aspect-ratio: auto;
  }

  .journey-row-copy-first .journey-copy,
  .journey-row-image-first .journey-image {
    border-right: 0;
    border-bottom: 0;
  }

  .journey-row-copy-first .journey-copy {
    order: 1;
  }

  .journey-row-copy-first .journey-image {
    order: 2;
  }

  .journey-row-copy-first .journey-image,
  .journey-row-image-first .journey-image {
    width: calc(100% - 2.7rem);
    margin: 0 auto 1rem;
  }

  .journey-row-image-first .journey-copy {
    padding-left: clamp(1.35rem, 6vw, 3.2rem);
  }

  .journey-arrival {
    grid-template-columns: 1fr;
  }

  .journey-arrival-copy {
    width: 100%;
    padding: clamp(2.2rem, 7vw, 3.6rem) clamp(1.35rem, 6vw, 3.2rem);
  }

  .journey-arrival-media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .journey-arrival-media::before {
    top: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: clamp(54px, 16vw, 110px);
    background: linear-gradient(180deg, #c9c2b8 0%, rgba(201, 194, 184, 0.72) 35%, rgba(201, 194, 184, 0) 100%);
  }

  .journey-cta {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .journey-cta-button {
    grid-column: 1 / -1;
    justify-self: stretch;
  }
}

@media (max-width: 560px) {
  .journey-hero-copy,
  .journey-copy {
    padding: 2rem 1.35rem;
  }

  .journey-hero-copy h1 {
    font-size: clamp(3rem, 16vw, 4.4rem);
  }

  .journey-arrival {
    min-height: 0;
  }

  .journey-arrival-copy {
    padding: 2.2rem 1.35rem;
  }

  .journey-arrival-media {
    aspect-ratio: 4 / 3;
  }

  .journey-cta {
    gap: 0.9rem;
    padding: 1.35rem;
  }

  .journey-cta svg {
    width: 40px;
    height: 40px;
  }
}
