/* Small progressive enhancements; the reference layout lives in the captured CSS. */
[hidden] { display: none !important; }
html { scroll-padding-top: 6rem; }
.site-shell { overflow-x: clip; }
main:focus { outline: none; }
.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 100;
  padding: 12px 18px; background: #f1eee5; color: #151411;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.article-byline { margin-top: 1.25rem; font-size: .875rem; color: #f1eee5b3; }
.article-byline a { text-underline-offset: 4px; }
.article-byline a:hover { color: #b69a65; text-decoration: underline; }
/* Consistent editorial crops for cards, related posts and compact article headers. */
.post-thumbnail {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--ink);
}
.post-thumbnail .post-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
.post-thumbnail .post-image--criminal { object-position: 50% 72%; }
.post-thumbnail .post-image--inheritance { object-position: 45% 50%; }
.post-thumbnail .post-image--electronic { object-position: 53% 55%; }
.post-featured { grid-template-columns: minmax(0, 1fr); align-items: center; }
.post-featured > div { min-width: 0; grid-column: auto; }
.post-featured .post-featured-copy { padding-top: 0; }
@media (min-width: 1024px) {
  .post-featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.article-header { padding-block: clamp(2.25rem, 5vw, 4rem); }
.article-hero {
  display: grid;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
}
.article-heading { min-width: 0; }
.article-heading .article-meta { margin-top: 0; flex-wrap: wrap; }
.article-heading h1 {
  margin-top: 1.25rem;
  max-width: 25ch;
  font-size: clamp(2rem, 3.35vw, 3rem);
  line-height: 1.12;
  overflow-wrap: break-word;
}
.article-heading .article-byline { line-height: 1.65; }
.article-hero-media {
  width: 100%;
  max-width: 440px;
  justify-self: center;
  margin: 0;
  border: 1px solid #f1eee51a;
}
.article-content { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.article-source-link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: .2em; }
.article-source-link:hover { text-decoration-color: currentColor; }
.article-notice { padding: 1.25rem 1.5rem; border-left: 2px solid var(--brass); background: #b69a650d; }
.article-list { margin-top: 1.25rem; padding-left: 1.5rem; list-style: disc; }
.article-list > li + li { margin-top: .65rem; }
.blog-post-grid { display: grid; gap: 3rem; }
@media (min-width: 768px) {
  .blog-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .article-hero { grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); column-gap: clamp(2rem, 5vw, 4.5rem); }
  .article-hero-media { justify-self: end; }
}
/* Keep the original header colour without translucent blur/compositing seams. */
header.sticky {
  background-color: color-mix(in srgb, var(--ink) 90%, var(--parchment) 10%);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.reveal { opacity: 1; transform: none; }
.mobile-navigation { border-top: 1px solid #f1eee51a; padding: 12px 20px 20px; max-height: calc(100dvh - 5rem); overflow-y: auto; overscroll-behavior: contain; }
.mobile-navigation-link { display: block; padding: 12px 0; color: #f1eee5; font-size: 14px; }
.mobile-navigation-link:hover, .mobile-navigation-link[aria-current="page"] { color: #b69a65; }
[data-menu-toggle] { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
a:focus-visible, button:focus-visible, summary:focus-visible, select:focus-visible {
  outline: 2px solid #b69a65; outline-offset: 5px;
}
.form-help { color: #f1eee580; font-size: 12px; }
.form-status { font-size: 14px; line-height: 1.6; }
.form-status:empty { display: none; }
.form-status[data-state="error"] { color: #f5b7ac; }
.form-status[data-state="success"] { color: #cbdab8; }
.form-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[data-contact-form] { position: relative; }
@media (min-width: 1024px) { .mobile-navigation { display: none !important; } }
@media (max-width: 359px) { header a[aria-label] span:first-child { font-size: 15px; } }
/* A single, restrained motion language; no continuous decorative animations. */
:root { --motion-ease: cubic-bezier(.22,.75,.25,1); }
header nav:not(.mobile-navigation) a:not(.inline-flex) {
  position: relative;
}
header nav:not(.mobile-navigation) a:not(.inline-flex)::after {
  content: ''; position: absolute; height: 1px; left: 0; right: 0; bottom: -7px;
  background: var(--brass); transform: scaleX(0); transform-origin: left;
  transition: transform 180ms var(--motion-ease);
}
header nav:not(.mobile-navigation) a:is(:hover, :focus-visible, [aria-current="page"])::after { transform: scaleX(1); }
a.inline-flex, button[type="submit"] {
  transition: transform 180ms var(--motion-ease), background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}
a.inline-flex svg, button[type="submit"] svg, main a.group > svg {
  transition: transform 220ms var(--motion-ease);
}
main a.group:has(.post-thumbnail), main a.reveal {
  transition: transform 260ms var(--motion-ease), background-color 200ms ease, color 200ms ease;
}
.post-thumbnail .post-image { transition: transform 600ms var(--motion-ease); }
#oferta a.group h3 { transition: transform 220ms var(--motion-ease), color 180ms ease; }
summary > span:last-child { transition: transform 220ms var(--motion-ease); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  a.inline-flex:hover, button[type="submit"]:not(:disabled):hover { transform: translateY(-2px); }
  a.inline-flex:hover svg, button[type="submit"]:not(:disabled):hover svg, main a.group:hover > svg { transform: translate(2px, -2px); }
  main a.group:has(.post-thumbnail):hover, main a.reveal:hover { transform: translateY(-4px); }
  a.group:hover .post-image { transform: scale(1.045); }
  #oferta a.group:hover h3 { transform: translateX(4px); }
}
@media (prefers-reduced-motion: no-preference) {
  a.inline-flex:active, button[type="submit"]:not(:disabled):active { transform: translateY(0) scale(.985); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  /* Also neutralise hover transforms inherited from the original captured CSS. */
  a.group:hover .post-image, #top img:hover { transform: none !important; }
}

/* Consent controls keep the website usable before choosing optional measurement. */
.consent-panel{position:fixed;z-index:10000;bottom:1rem;left:1rem;width:min(38rem,calc(100% - 2rem));max-height:85vh;overflow:auto;background:#292825;color:#fff;border:1px solid #b69a64;padding:1.25rem;box-shadow:0 10px 45px #0006;font:14px/1.55 Arial,sans-serif}.consent-panel[hidden]{display:none}.consent-panel h2{font:600 22px/1.2 Georgia,serif;margin:0 0 .7rem}.consent-panel p{margin:.6rem 0}.consent-panel a{color:#e0c493;text-decoration:underline}.consent-panel label{display:block;margin:.5rem 0}.consent-panel input{margin-right:.5rem;accent-color:#b69a64}.consent-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1rem}.consent-actions button,.consent-reopen{border:1px solid #b69a64;background:#292825;color:#fff;padding:.6rem .8rem;cursor:pointer;font:inherit}.consent-actions button:last-child{background:#b69a64;color:#191919}.consent-reopen{position:fixed;bottom:.5rem;left:.5rem;z-index:9999;font:12px Arial,sans-serif}.consent-actions button:focus-visible,.consent-reopen:focus-visible{outline:3px solid #fff;outline-offset:3px}
