#index .header-nav {
  border-top: 3px solid transparent;
  border-image: repeating-linear-gradient(110deg, #a32338 0 18px, #f8dfae 18px 22px, #194c3d 22px 40px, #f8dfae 40px 44px) 1;
}

.copieste-navidad {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.07fr);
  width: min(1200px, 100%);
  margin: 12px auto 24px;
  overflow: hidden;
  border: 1px solid #b78a50;
  border-radius: 18px;
  background: radial-gradient(ellipse at 2% 110%, #305a46, transparent 56%), #102e25;
  box-shadow: 0 10px 24px #102e2520;
  color: #fff6e6;
}

.copieste-navidad-texto {
  padding: clamp(24px, 4vw, 52px);
  align-self: center;
}

.copieste-navidad .copieste-navidad-saludo {
  margin: 0 0 16px;
  color: #f5d490;
  font-size: .79rem;
  font-weight: 700;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.copieste-navidad-saludo span {
  margin-inline: .12em;
}

.copieste-navidad h2 {
  margin: 0 0 12px;
  color: #fff6e6;
  font-family: Georgia, serif;
  font-size: clamp(2.35rem, 4.1vw, 3.65rem);
  font-weight: 700;
  line-height: .96;
  letter-spacing: -.05em;
}

.copieste-navidad h2 em {
  color: #ffd889;
}

.copieste-navidad p {
  margin: 0;
  color: #fff6e6;
  line-height: 1.5;
}

.copieste-navidad-enlaces {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.copieste-navidad-enlaces a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  border: 1px solid #f6c880;
  border-radius: 8px;
  background: #991b2d;
  color: #fff8eb;
  font-weight: 700;
}

.copieste-navidad-enlaces a:hover {
  background-color: #b62438;
  color: #fff;
}

.copieste-navidad-enlaces a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.copieste-regalo {
  position: relative;
  display: block;
  width: 17px;
  height: 14px;
  margin-top: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent 40%, #ffe1a3 40% 60%, transparent 60%), #ea5260;
}

.copieste-regalo::before,
.copieste-regalo::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 7px;
  height: 5px;
  border: 1px solid #ffe1a3;
  border-radius: 60% 70% 8% 70%;
}

.copieste-regalo::before {
  left: 2px;
  transform: rotate(12deg);
}

.copieste-regalo::after {
  right: 2px;
  transform: scaleX(-1) rotate(12deg);
}

.copieste-navidad-foto {
  position: relative;
  display: block;
  min-height: 310px;
  background: #263d2c;
}

.copieste-navidad-foto img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
}

:where(
  #index .copieste-navidad,
  #index #content :is(
    .ch-2027-calendar, .ch-agenda, .ch-follow, .ch-print-directory-home,
    .cp-app, .cp-tariffs > div, .cp-services > div, .cp-receipt,
    .ch-school, .ch-binding, .cr-routes-link, .ch-season > a, .ch-raffle,
    .ch-hero, .ha-banner, .ch-cardstudio, .ss-banner,
    .ch-collection, .ch-product, .ch-process, .ch-memory,
    .ch-social, .ch-tiktok, .ch-review, .ch-help
  )
) {
  position: relative;

  &::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    box-sizing: border-box;
    padding: 2px;
    border-radius: inherit;
    /* A 31.11px diagonal period gives the header's 44px rhythm on both axes. */
    background: repeating-linear-gradient(
      45deg,
      #a32338 0 12.73px,
      #f8dfae 12.73px 15.56px,
      #194c3d 15.56px 28.28px,
      #f8dfae 28.28px 31.11px
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
  }
}

#index .ch-print-directory-home {
  padding: 14px 16px;
  border-radius: 12px;
}

@media (max-width: 760px) {
  #index #content .cp-receipt {
    position: relative;
  }
}

@media (max-width: 767px) {
  .copieste-navidad {
    grid-template-columns: 1fr;
    margin-bottom: 16px;
  }

  .copieste-navidad-texto {
    padding: 22px 18px;
  }

  .copieste-navidad-foto {
    min-height: clamp(176px, 50vw, 270px);
  }

  .copieste-navidad-foto img {
    object-position: center 30%;
  }
}
