/* El Album del Peloton - ajuste global crema/azul/rojo */
:root {
  --bd-ink: #102347;
  --bd-red: #C9342F;
  --bd-red-text: #B72E2A;
  --bd-paper: #F4E8CF;
  --bd-soft: #FFF8E8;
  --bd-muted: #607086;
  --bd-font-body: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bd-font-display: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --bd-content-wide: 1120px;
  --bd-space-1: 8px;
  --bd-space-2: 12px;
  --bd-space-3: 18px;
  --bd-space-4: 24px;
  --bd-space-5: 32px;
  --bd-space-6: 48px;
  --bd-radius-control: 999px;
  --bd-radius-card: 12px;
  --bd-shadow-card: 6px 6px 0 rgba(16, 35, 71, .13);
}

.bd-home,
.bd-album-root,
.bd-blog-page,
.bd-about {
  color: var(--bd-ink) !important;
  font-family: var(--bd-font-body) !important;
}

.bd-home,
.bd-album-root {
  box-sizing: border-box;
  width: min(calc(var(--bd-content-wide) + 48px), calc(100vw - 48px)) !important;
  max-width: none !important;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.bd-title,
.bd-blog-page h1,
.bd-about h1 {
  font-family: var(--bd-font-display) !important;
  font-size: clamp(42px, 7vw, 76px) !important;
  line-height: .92 !important;
  letter-spacing: 0 !important;
}

.bd-t {
  font-family: var(--bd-font-display) !important;
  font-size: clamp(38px, 6vw, 64px) !important;
  line-height: .95 !important;
}

.bd-primary,
.bd-secondary,
.bd-clear,
.bd-btn,
.bd-link,
.bd-blog-button,
.bd-about-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box !important;
  min-height: 52px !important;
  padding: 11px 20px !important;
  border: 3px solid var(--bd-ink) !important;
  border-radius: var(--bd-radius-control) !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
}

.bd-home .bd-card,
.bd-mini,
.bd-step,
.bd-note,
.bd-hero-card,
.bd-tools,
.bd-cromo,
.bd-blog-note,
.bd-topic-card,
.bd-about-card,
.bd-about-tile {
  border-width: 3px !important;
  border-radius: var(--bd-radius-card) !important;
}

.bd-home .bd-card,
.bd-mini,
.bd-hero-card,
.bd-cromo,
.bd-blog-note,
.bd-topic-card,
.bd-about-card,
.bd-about-tile {
  box-shadow: var(--bd-shadow-card) !important;
}

.bd-cromo {
  font-family: inherit !important;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #102347 !important;
  outline-offset: 4px !important;
}

body,
.wp-site-blocks,
main,
.wp-block-post-content,
.wp-block-query,
.wp-block-group {
  background-color: #F4E8CF !important;
}

body {
  color: #102347 !important;
}

header.wp-block-template-part,
.wp-block-template-part,
header.wp-block-template-part header {
  background-color: #F4E8CF !important;
  color: #102347 !important;
}

header.wp-block-template-part header {
  border-bottom-color: #102347 !important;
}

header.wp-block-template-part header a[href='/'] span {
  color: #102347 !important;
}

header.wp-block-template-part header a[href='/'] span span {
  color: #D63A35 !important;
}

header.wp-block-template-part header a[href='/'] svg g {
  fill: #102347 !important;
}

header.wp-block-template-part header a[href='/'] svg rect[fill='#0E0F12'] {
  fill: #D63A35 !important;
}

header.wp-block-template-part header a[href='/'] svg rect[fill='#E8FE5B'] {
  fill: #F4E8CF !important;
}

.wp-block-template-part .wp-block-navigation a,
.wp-block-template-part .wp-block-navigation-item__content {
  color: #102347 !important;
}

.wp-block-template-part .wp-block-navigation a:hover,
.wp-block-template-part .wp-block-navigation-item__content:hover,
.wp-block-template-part .wp-block-navigation .current-menu-item > a,
.wp-block-template-part .wp-block-navigation .current_page_item > a {
  color: #D63A35 !important;
}

.wp-block-template-part .wp-block-navigation .current-menu-item > a::after {
  background: #D63A35 !important;
}

.wp-block-template-part .wp-block-navigation__submenu-container {
  background: #FFF8E8 !important;
  border: 2px solid #102347 !important;
  border-radius: 9px !important;
  box-shadow: 0 6px 0 rgba(16, 35, 71, .16) !important;
}

.wp-block-template-part .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  color: #102347 !important;
}

h1,
h2,
h3,
h4,
.wp-block-post-title,
.wp-block-post-title a,
.wp-block-query-title {
  color: #102347 !important;
}

p,
.wp-block-post-excerpt,
.wp-block-post-excerpt p,
.wp-block-post-date,
.wp-block-term-description {
  color: #314260 !important;
}

a,
.wp-block-read-more {
  color: #B72E2A !important;
}

.wp-block-post-terms,
.wp-block-post-terms a {
  color: #B72E2A !important;
  font-weight: 900 !important;
  letter-spacing: .14em !important;
  text-transform: uppercase !important;
}

.wp-block-post-template {
  gap: 18px !important;
}

.wp-block-post-template > li,
.wp-block-query .wp-block-post {
  background: #FFF8E8 !important;
  border: 3px solid #102347 !important;
  border-radius: 9px !important;
  box-shadow: 0 6px 0 rgba(16, 35, 71, .16) !important;
  padding: 24px !important;
}

.wp-block-post-template > li .wp-block-group {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.bd-primary,
.bd-primary:visited,
.bd-home .bd-primary,
.bd-home .bd-primary:visited,
.bd-blog-button.is-primary,
.bd-blog-button.is-primary:visited,
.bd-about-button.is-primary,
.bd-about-button.is-primary:visited,
.bd-bottom-strip a,
.bd-bottom-strip a:visited {
  color: #FFF8E8 !important;
}

.bd-primary,
.bd-primary:visited,
.bd-clear,
.bd-blog-button.is-primary,
.bd-blog-button.is-primary:visited,
.bd-about-button.is-primary,
.bd-about-button.is-primary:visited,
.bd-bottom-strip a,
.bd-bottom-strip a:visited,
.bd-about-band a,
.bd-about-band a:visited {
  background: #C9342F !important;
  color: #FFF8E8 !important;
}

.bd-home .bd-k,
.bd-home .bd-card span,
.bd-mini-type,
.bd-album-root .bd-k,
.bd-hero-card span,
.bd-group-h .gc,
.bd-type,
.bd-s,
.bd-section h3,
.bd-blog-kicker,
.bd-blog-page .wp-block-post-terms,
.bd-blog-page .wp-block-post-terms a,
.bd-blog-page .wp-block-post-excerpt__more-link,
.bd-topic-card span,
.bd-about-kicker,
.bd-about-tile span {
  color: #B72E2A !important;
}

.bd-blog-polish .has-lima-color,
.bd-blog-polish .has-lima-color a,
.bd-blog-polish .wp-block-read-more {
  color: #B72E2A !important;
}

.bd-blog-polish .has-gris-color {
  color: #314260 !important;
}

body.home main .has-gris-color {
  color: #314260 !important;
}

body .bd-blog-page .wp-block-post-terms,
body .bd-blog-page .wp-block-post-terms a,
body .bd-blog-page .wp-block-post-excerpt__more-link {
  color: #B72E2A !important;
}

body .bd-about .bd-about-band a,
body .bd-about .bd-about-band a:visited {
  color: #FFF8E8 !important;
}

.bd-blog-polish .wp-block-post-template > li {
  padding: 24px !important;
}

.bd-blog-polish .wp-block-post-template > li > .wp-block-group {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

footer,
footer.wp-block-template-part {
  background: #F4E8CF !important;
  border-top-color: #102347 !important;
  color: #102347 !important;
}

footer p,
footer .has-gris-color,
footer.wp-block-template-part p,
footer.wp-block-template-part .has-gris-color {
  color: #4B5870 !important;
}

/* Archivos de blog y entradas: acabado editorial */
body.archive main,
body.category main,
body.single-post main {
  background: #F4E8CF !important;
}

body.archive main > .wp-block-group,
body.category main > .wp-block-group,
body.single-post main > .wp-block-group {
  max-width: 1120px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}

body.category .wp-block-query-title,
body.archive .wp-block-query-title {
  border-top: 3px solid #102347 !important;
  padding-top: 34px !important;
  margin-top: 42px !important;
  margin-bottom: 28px !important;
  font-size: clamp(36px, 5.5vw, 60px) !important;
  line-height: .95 !important;
  letter-spacing: 0 !important;
}

body.category .wp-block-query-title::before,
body.archive .wp-block-query-title::before {
  content: 'Archivo del blog';
  display: block;
  margin-bottom: 12px;
  color: #D63A35;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .16em;
  line-height: 1.2;
  text-transform: uppercase;
}

body.category-coleccionismo .wp-block-query-title,
body.category-objetos .wp-block-query-title,
body.category-curiosidades .wp-block-query-title,
body.category-actualidad .wp-block-query-title,
body.category-historia .wp-block-query-title {
  font-size: 0 !important;
}

body.category-coleccionismo .wp-block-query-title::after,
body.category-objetos .wp-block-query-title::after,
body.category-curiosidades .wp-block-query-title::after,
body.category-actualidad .wp-block-query-title::after,
body.category-historia .wp-block-query-title::after {
  display: block;
  color: #102347;
  font-size: clamp(36px, 5.5vw, 60px);
  font-weight: 900;
  line-height: .95;
}

body.category-coleccionismo .wp-block-query-title::after {
  content: 'Coleccionismo';
}

body.category-objetos .wp-block-query-title::after {
  content: 'Objetos';
}

body.category-curiosidades .wp-block-query-title::after {
  content: 'Curiosidades';
}

body.category-actualidad .wp-block-query-title::after {
  content: 'Actualidad';
}

body.category-historia .wp-block-query-title::after {
  content: 'Historia';
}

body.category .wp-block-term-description,
body.archive .wp-block-term-description {
  max-width: 680px !important;
  margin-bottom: 26px !important;
  font-size: 18px !important;
  line-height: 1.6 !important;
}

body.category .wp-block-query,
body.archive .wp-block-query {
  max-width: 1040px !important;
  width: calc(100% - 48px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.category .wp-block-post-template,
body.archive .wp-block-post-template {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 22px !important;
  margin-top: 28px !important;
  max-width: none !important;
  width: 100% !important;
}

body.category .wp-block-post-template > li,
body.archive .wp-block-post-template > li {
  min-height: 280px !important;
  border-radius: 12px !important;
  box-shadow: 7px 7px 0 rgba(16, 35, 71, .12) !important;
}

body.category .wp-block-post-title,
body.archive .wp-block-post-title {
  font-size: clamp(24px, 2.3vw, 32px) !important;
  line-height: 1.08 !important;
  margin-bottom: 16px !important;
}

body.category .wp-block-post-date,
body.archive .wp-block-post-date {
  color: #607086 !important;
  font-size: 13px !important;
}

body.category .wp-block-post-excerpt,
body.archive .wp-block-post-excerpt {
  font-size: 16px !important;
  line-height: 1.62 !important;
}

body.single-post .wp-block-post-title {
  max-width: 900px !important;
  margin-top: 44px !important;
  margin-bottom: 18px !important;
  border-top: 3px solid #102347 !important;
  padding-top: 34px !important;
  font-size: clamp(38px, 5.4vw, 66px) !important;
  line-height: .98 !important;
}

body.single-post .wp-block-post-date,
body.single-post .wp-block-post-terms {
  max-width: 760px !important;
}

body.single-post .wp-block-post-content {
  max-width: 780px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  font-size: 18px !important;
  line-height: 1.78 !important;
}

body.single-post .wp-block-post-content p,
body.single-post .wp-block-post-content li {
  color: #243755 !important;
}

body.single-post .wp-block-post-content > p:first-of-type {
  color: #102347 !important;
  font-size: 20px !important;
  line-height: 1.68 !important;
}

body.single-post .wp-block-post-content h2,
body.single-post .wp-block-post-content h3 {
  margin-top: 42px !important;
  line-height: 1.08 !important;
}

body.single-post .wp-block-post-content a {
  font-weight: 800 !important;
}

body.single-post .wp-block-post-content p a,
body.single-post .wp-block-post-content li a {
  text-decoration-thickness: 2px !important;
  text-underline-offset: 3px !important;
}

body.single-post .wp-block-post-navigation-link,
body.single-post .wp-block-comments,
body.single-post .wp-block-post-comments-form {
  max-width: 780px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.single-post .wp-block-post-navigation-link:has(a) {
  margin-top: 48px !important;
  border-top: 2px solid #102347 !important;
  padding-top: 24px !important;
}

body.single-post .wp-block-post-navigation-link a {
  display: inline-flex !important;
  align-items: center;
  box-sizing: border-box !important;
  min-height: 52px !important;
  border: 3px solid #102347 !important;
  border-radius: 999px;
  padding: 11px 20px;
  color: #102347 !important;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none !important;
}

body.single-post .post-navigation-link-previous a::before {
  content: '←';
  margin-right: 8px;
}

body.single-post .post-navigation-link-next {
  text-align: right;
}

body.single-post .post-navigation-link-next a::after {
  content: '→';
  margin-left: 8px;
}

/* Recolorea las infografias antiguas del blog a la paleta actual. */
body.single-post .wp-block-post-content svg {
  border-radius: 14px !important;
  box-shadow: 0 7px 0 rgba(16, 35, 71, .12) !important;
}

body.single-post .wp-block-post-content svg [fill="#17181C"],
body.single-post .wp-block-post-content svg [fill="#0E0F12"],
body.single-post .wp-block-post-content svg [fill="#141519"],
body.single-post .wp-block-post-content svg [fill="#15161A"] {
  fill: #102347 !important;
}

body.single-post .wp-block-post-content svg text[fill="#F2D400"],
body.single-post .wp-block-post-content svg text[fill="#E8FE5B"] {
  fill: #FFF8E8 !important;
}

body.single-post .wp-block-post-content svg [fill="#A8A8A4"],
body.single-post .wp-block-post-content svg text[fill="#A8A8A4"] {
  fill: #E7EDF7 !important;
}

body.single-post .wp-block-post-content svg line[stroke="#A8A8A4"],
body.single-post .wp-block-post-content svg path[stroke="#A8A8A4"],
body.single-post .wp-block-post-content svg rect[stroke="#A8A8A4"] {
  stroke: #E7EDF7 !important;
}

body.single-post .wp-block-post-content svg circle[fill="#F2D400"],
body.single-post .wp-block-post-content svg rect[fill="#F2D400"],
body.single-post .wp-block-post-content svg path[fill="#F2D400"] {
  fill: #D63A35 !important;
}

body.single-post .wp-block-post-content svg circle[fill="#E8FE5B"],
body.single-post .wp-block-post-content svg rect[fill="#E8FE5B"],
body.single-post .wp-block-post-content svg path[fill="#E8FE5B"] {
  fill: #FFF8E8 !important;
}

body.single-post .wp-block-post-content svg [stroke="#F2D400"] {
  stroke: #D63A35 !important;
}

body.single-post .wp-block-post-content svg [stroke="#E8FE5B"] {
  stroke: #FFF8E8 !important;
}

@media (max-width: 760px) {
  .bd-home,
  .bd-album-root {
    width: 100% !important;
    left: auto;
    transform: none;
  }

  header.wp-block-template-part header {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  header.wp-block-template-part .wp-block-navigation__responsive-container-open {
    padding: 10px !important;
    margin: -10px !important;
  }

  body.category .wp-block-post-template,
  body.archive .wp-block-post-template {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  body.category main > .wp-block-group,
  body.archive main > .wp-block-group,
  body.single-post main > .wp-block-group {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  body.category .wp-block-query,
  body.archive .wp-block-query {
    width: calc(100% - 32px) !important;
  }

  body.category .wp-block-query-title,
  body.archive .wp-block-query-title {
    margin-top: 28px !important;
    padding-top: 24px !important;
  }

  body.category-coleccionismo .wp-block-query-title::after,
  body.category-objetos .wp-block-query-title::after,
  body.category-curiosidades .wp-block-query-title::after,
  body.category-actualidad .wp-block-query-title::after,
  body.category-historia .wp-block-query-title::after {
    font-size: clamp(34px, 11vw, 46px);
  }

  body.category .wp-block-post-template > li,
  body.archive .wp-block-post-template > li {
    min-height: 0 !important;
    padding: 20px !important;
    box-shadow: 5px 5px 0 rgba(16, 35, 71, .12) !important;
  }

  body.category .wp-block-post-title,
  body.archive .wp-block-post-title {
    font-size: clamp(24px, 7.5vw, 30px) !important;
  }

  body.single-post .wp-block-post-title {
    margin-top: 28px !important;
    padding-top: 24px !important;
    font-size: clamp(34px, 10.5vw, 48px) !important;
  }

  body.single-post .wp-block-post-content {
    font-size: 17px !important;
    line-height: 1.72 !important;
  }

  body.single-post .wp-block-post-content .has-drop-cap:not(:focus)::first-letter {
    font-size: 4.2em !important;
  }
}
