/* Diseño de la portada aplicado a las páginas interiores. */
body.page:not(.home)::before,
  body.page:not(.home)::after {
      display: none;
  }

  body.page:not(.home) #page.site {
      margin: 0;
      background: #e9e6e0;
  }

  body.page:not(.home) #page > .site-inner {
      max-width: none;
  }

  body.page:not(.home) #masthead {
      position: relative;
      isolation: isolate;
      padding: 0 !important;
      min-height: clamp(350px, 28vw, 510px);
      display: grid;
      place-items: center;
      background: #30465b;
  }

  body.page:not(.home) #masthead .header-image {
      position: absolute;
      inset: 0;
      height: 100%;
      z-index: -1;
  }

  body.page:not(.home) #masthead .header-image a,
  body.page:not(.home) #masthead .header-image img {
      display: block;
      width: 100%;
      height: 100% !important;
      object-fit: cover;
  }

  body.page:not(.home) #masthead .header-image::after {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      background: linear-gradient(180deg, #10213105 0%, #111f3038 42%, #111e2b20 100%);
  }

  body.page:not(.home) #masthead .site-header-main {
      display: grid !important;
      justify-content: center !important;
      justify-items: center;
      width: 100%;
      padding: clamp(40px,5vw,76px) 24px 56px;
      text-align: center;
  }

  body.page:not(.home) #masthead .site-branding,
  body.page:not(.home) #masthead #site-header-menu {
      margin: 0 !important;
      min-width: 0;
      display: block;
  }

  body.page:not(.home) #masthead #menu-toggle {
      display: none;
  }

  body.page:not(.home) #masthead .site-title,
  body.page:not(.home) #masthead .site-title a {
      color: #fff !important;
      font-family: Georgia, serif !important;
      font-size: clamp(2.15rem,5.1vw,6rem) !important;
      font-weight: 500 !important;
      letter-spacing: -.045em;
      line-height: 1.03 !important;
      text-wrap: balance;
      text-shadow: 0 2px 18px #0b1628aa;
  }

  body.page:not(.home) #masthead .site-description {
      display: block;
      color: #f8f2e5;
      font: italic 1rem/1.4 Georgia, serif;
    font-size: 21pt !important;
      margin: 17px 0 29px !important;
  }

  body.page:not(.home) #masthead .main-navigation {
      margin: 0 !important;
  }

  body.page:not(.home) #masthead .primary-menu {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 12px;
      border: 0;
      margin: 0;
  }

  body.page:not(.home) #masthead .primary-menu > li {
      float: none;
      border: 0;
  }

  body.page:not(.home) #masthead .primary-menu > li > a {
      display: grid !important;
      place-items: center;
      min-height: 48px;
      padding: 10px 20px !important;
      border: 1px solid #ffffff80;
      border-radius: 5px;
      background: #182534d9;
      color: #fff !important;
      font: 600 14px/1.3 system-ui, sans-serif;
  }

  body.page:not(.home) #masthead .primary-menu > li > a::before,
  body.page:not(.home) #masthead .primary-menu > li > a::after {
      content: none;
  }

  body.page:not(.home) #masthead .primary-menu > li > a:hover,
  body.page:not(.home) #masthead .primary-menu > li > a:focus-visible {
      background: #faf4e8;
      color: #1a2835 !important;
  }

  body.page:not(.home) #masthead .primary-menu > li > a:focus-visible,
  body.page:not(.home) #masthead .site-title a:focus-visible {
      outline: 2px solid #fff;
      outline-offset: 4px;
  }

  body.page:not(.home) #content.site-content {
      position: relative;
      z-index: 1;
      box-sizing: border-box;
      width: calc(100% - 2 * clamp(12px, 2.5vw, 40px) - 40px);
      max-width: 1400px;
      margin: clamp(-32px,-2.4vw,-16px) auto 32px;
      padding: 32px clamp(35px, 5vw, 60px) 44px;
      border: 1px solid #d8d2c8;
      background: #fffdfa;
      box-shadow: 0 4px 0 #ded9d0, 0 9px 24px #332b211a;
  }

  @media (max-width: 600px) {
      body.page:not(.home) #masthead .site-header-main {
          padding: 38px 20px 42px;
          min-width: 0;
      }

      body.page:not(.home) #masthead .primary-menu {
          display: grid;
          width: min(100%, 270px);
          margin: auto;
      }
  }
body.page:not(.home) #masthead .primary-menu > li > a {
    transition: background-color .6s ease-in-out, color .6s ease-in-out !important;
}
@media (prefers-reduced-motion: reduce) {
    body.page:not(.home) #masthead .primary-menu > li > a {
        transition: none !important;
    }
}
