/*
Theme Name: EAsesores Blog
Theme URI: http://localhost:8080/blog
Author: EAsesores
Description: Tema ligero para el blog WordPress de EAsesores.
Version: 0.1.1
Text Domain: easesores-blog
*/

:root {
  /* Brand Core Colors (HSL) */
  --h-electric: 224;
  --h-electric-s: 100%;
  --h-electric-l: 58%;
  
  --h-indigo: 235;
  --h-indigo-s: 66%;
  --h-indigo-l: 30%;
  
  --h-violet: 255;
  --h-violet-s: 100%;
  --h-violet-l: 68%;
  
  --h-cyan: 199;
  --h-cyan-s: 100%;
  --h-cyan-l: 76%;
  
  --h-teal: 186;
  --h-teal-s: 96%;
  --h-teal-l: 28%;

  /* Hex / Computed Color Aliases */
  --white: #ffffff;
  --pearl: #fcfdfe;
  --ice: #f1f4fa;
  --electric: hsl(var(--h-electric), var(--h-electric-s), var(--h-electric-l));
  --indigo: hsl(var(--h-indigo), var(--h-indigo-s), var(--h-indigo-l));
  --lilac: #b39dff;
  --lavender: #e0b0ff;
  --cyan: hsl(var(--h-cyan), var(--h-cyan-s), var(--h-cyan-l));
  --violet: hsl(var(--h-violet), var(--h-violet-s), var(--h-violet-l));
  --teal: hsl(var(--h-teal), var(--h-teal-s), var(--h-teal-l));
  
  /* Cyber Slate / Dark Theme */
  --deep: #03071e;
  --ink: #070a24;
  --slate-900: #040718;
  --slate-850: #080d2d;
  --slate-800: #0f1545;
  --slate-700: #1c246b;
  
  /* Light Neutral Palette */
  --muted: #4e5e80;
  --soft: #f0f4ff;
  --line: rgba(221, 229, 243, 0.7);
  
  /* Glowing / Effects */
  --glow-blue: rgba(37, 99, 255, 0.15);
  --glow-violet: rgba(127, 91, 255, 0.15);
  --shadow: 0 20px 48px rgba(7, 10, 36, 0.08);
  --shadow-soft: 0 10px 30px rgba(7, 10, 36, 0.04);
  --shadow-neon-blue: 0 0 25px rgba(37, 99, 255, 0.2);
  --shadow-neon-violet: 0 0 25px rgba(127, 91, 255, 0.2);
  
  /* Layout Metrics */
  --radius: 12px;
  --radius-lg: 18px;
  --radius-sm: 8px;
  
  color-scheme: light;
  font-family:
    "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, var(--white) 0%, #fbfdff 45%, var(--ice) 100%);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--electric);
  outline-offset: 3px;
}

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

.skip-link:focus {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 100;
  width: auto;
  height: auto;
  clip: auto;
  border-radius: var(--radius-sm);
  background: var(--slate-900);
  color: var(--white);
  padding: 10px 14px;
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 78px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(221, 229, 243, 0.4);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 30px rgba(7, 10, 36, 0.02);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.scrolled {
  min-height: 68px;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(37, 99, 255, 0.12);
  box-shadow: 0 12px 35px rgba(7, 10, 36, 0.05);
}

.brand {
  width: min(218px, 48vw);
  transition: transform 200ms ease;
  flex: 0 0 auto;
}

.brand:hover {
  transform: scale(1.02);
}

.brand img {
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a,
.nav-dropdown-trigger {
  position: relative;
  min-height: 40px;
  border-radius: var(--radius-sm);
  color: #1b2552;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 0.94rem;
  transition: all 250ms ease;
  display: inline-flex;
  align-items: center;
}

.nav a::after,
.nav-dropdown-trigger::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--electric), var(--violet));
  transition: all 250ms ease;
  transform: translateX(-50%);
  border-radius: 99px;
}

.nav a:hover,
.nav-dropdown-trigger:hover {
  color: var(--electric);
}

.nav a:hover::after,
.nav-dropdown-trigger:hover::after {
  width: calc(100% - 28px);
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 14px;
}

.nav-dropdown-trigger {
  gap: 6px;
}

.nav-dropdown-trigger::before {
  content: "";
  order: 2;
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: 0.72;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 200ms ease;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  z-index: 70;
  display: grid;
  width: min(390px, calc(100vw - 32px));
  gap: 6px;
  border: 1px solid rgba(221, 229, 243, 0.78);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 56px rgba(7, 10, 36, 0.12);
  padding: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: grid;
  gap: 2px;
  min-height: auto;
  border-radius: var(--radius-sm);
  padding: 12px;
}

.nav-dropdown-menu a::after {
  display: none;
}

.nav-dropdown-menu a:hover {
  background: rgba(37, 99, 255, 0.07);
}

.nav-dropdown-menu strong {
  color: var(--deep);
  font-size: 0.95rem;
}

.nav-dropdown-menu span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.nav .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--electric) 0%, var(--violet) 100%);
  color: var(--white);
  box-shadow: 0 12px 30px rgba(37, 99, 255, 0.22);
  font-weight: 800;
  padding: 8px 14px;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.nav .nav-cta:hover {
  background: linear-gradient(135deg, #174ee6, #6d49ed);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(37, 99, 255, 0.32);
  color: var(--white);
}

.nav .nav-cta:active {
  transform: translateY(0);
  box-shadow: 0 8px 20px rgba(37, 99, 255, 0.2);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid #cedaf1;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.86);
  color: var(--deep);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: all 200ms ease;
}

.nav-toggle:hover {
  background: #f4f8ff;
  border-color: var(--electric);
}

.blog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  padding: clamp(76px, 9vw, 132px) clamp(20px, 5vw, 72px) clamp(44px, 7vw, 86px);
  background:
    linear-gradient(135deg, rgba(41, 101, 255, 0.08), rgba(3, 130, 140, 0.08)),
    var(--pearl);
  border-bottom: 1px solid var(--line);
}

.blog-hero.compact {
  grid-template-columns: 1fr;
  padding-block: clamp(56px, 8vw, 92px);
}

.blog-hero-content {
  max-width: 830px;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-hero h1,
.single-header h1,
.not-found h1 {
  margin: 0;
  color: var(--deep);
  font-size: clamp(2.3rem, 5vw, 5.1rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.blog-hero p,
.single-excerpt,
.not-found p {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.2rem);
}

.search-form {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.search-form label {
  flex: 1;
}

.search-form input {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--soft);
  color: var(--ink);
  padding: 0 14px;
}

.search-form button,
.button,
.footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: var(--electric);
  color: var(--white);
  padding: 0 18px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(41, 101, 255, 0.18);
}

.button.ghost {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--indigo);
  box-shadow: var(--shadow-soft);
}

.blog-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(42px, 7vw, 82px) 0;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.post-card {
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.post-card:hover {
  transform: translateY(-3px);
  border-color: rgba(41, 101, 255, 0.22);
  box-shadow: var(--shadow);
}

.post-card-link {
  display: grid;
  min-height: 100%;
}

.post-card-media {
  aspect-ratio: 16 / 9;
  margin: 0;
  background: var(--soft);
  overflow: hidden;
}

.post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-body {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 22px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.post-card h2 {
  margin: 0;
  color: var(--deep);
  font-size: 1.24rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.post-card p {
  margin: 0;
  color: var(--muted);
}

.read-more,
.back-link {
  color: var(--electric);
  font-weight: 800;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
}

.pagination .page-numbers {
  display: inline-flex;
  min-width: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--indigo);
  padding: 0 12px;
  font-weight: 800;
}

.pagination .current {
  background: var(--indigo);
  color: var(--white);
}

.single-post {
  padding-bottom: clamp(54px, 8vw, 96px);
}

.single-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: clamp(26px, 5vw, 72px);
  align-items: center;
  padding: clamp(58px, 8vw, 108px) clamp(20px, 5vw, 72px);
  background:
    linear-gradient(135deg, rgba(41, 101, 255, 0.08), rgba(3, 130, 140, 0.08)),
    var(--pearl);
  border-bottom: 1px solid var(--line);
}

.single-header {
  display: grid;
  gap: 18px;
  max-width: 780px;
}

.featured-image {
  aspect-ratio: 16 / 10;
  margin: 0;
  border-radius: var(--radius);
  background: var(--soft);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-layout {
  display: grid;
  grid-template-columns: minmax(220px, 310px) minmax(0, 780px);
  gap: clamp(26px, 5vw, 64px);
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding-top: clamp(46px, 7vw, 82px);
}

.single-aside {
  display: grid;
  gap: 16px;
  align-content: start;
  position: sticky;
  top: 96px;
}

.aside-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
  padding: 20px;
}

.aside-card p {
  margin: 0;
  color: var(--muted);
}

.aside-card .button {
  width: 100%;
}

.post-content {
  min-width: 0;
  color: #24304f;
  font-size: clamp(1.02rem, 1.4vw, 1.12rem);
}

.post-content > *:first-child {
  margin-top: 0;
}

.post-content .lead {
  color: var(--muted);
  font-size: clamp(1.12rem, 1.7vw, 1.28rem);
  line-height: 1.55;
}

.post-content h2,
.post-content h3 {
  color: var(--deep);
  line-height: 1.16;
  letter-spacing: 0;
}

.post-content a {
  color: var(--electric);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-content img {
  border-radius: var(--radius);
}

.post-content figure {
  margin: 34px 0;
}

.post-content figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.post-content blockquote {
  margin: 34px 0;
  border-left: 4px solid var(--electric);
  border-radius: var(--radius-sm);
  background: var(--soft);
  padding: 22px 24px;
  color: var(--deep);
  font-size: 1.15rem;
  font-weight: 700;
}

.post-content .wp-block-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 30px 0;
}

.post-content .wp-block-column {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
  padding: 18px;
}

.post-content .wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.post-content .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  background: var(--electric);
  color: var(--white);
  padding: 0 18px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(41, 101, 255, 0.18);
}

.post-content .is-style-outline .wp-block-button__link {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--indigo);
}

.single-footer {
  grid-column: 2;
  margin-top: 10px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.post-taxonomy {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.post-taxonomy a {
  border-radius: 999px;
  background: var(--soft);
  color: var(--indigo);
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 800;
}

.empty-state,
.not-found {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(64px, 10vw, 120px) 0;
  text-align: center;
}

.empty-state h2 {
  margin: 0 0 12px;
  color: var(--deep);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
}

.empty-state p {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

.site-footer {
  background: linear-gradient(135deg, var(--slate-900) 0%, var(--slate-850) 55%, var(--slate-800) 100%);
  color: rgba(255, 255, 255, 0.8);
  padding: clamp(46px, 8vw, 86px) clamp(20px, 5vw, 72px) 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(160px, 1fr));
  gap: 34px;
}

.footer-brand img {
  width: min(230px, 70vw);
  margin-bottom: 18px;
}

.footer-brand p {
  max-width: 390px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 0.92rem;
  text-transform: uppercase;
}

.site-footer ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

@media (max-width: 1180px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100vh - 78px);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: none;
    padding: 30px 24px;
    z-index: 100;
    overflow-y: auto;
  }

  .site-header.scrolled .nav {
    top: 68px;
    height: calc(100vh - 68px);
  }

  .nav[data-open] {
    display: flex;
  }

  .nav a,
  .nav-dropdown-trigger {
    width: auto;
    font-size: 1.5rem;
    padding: 14px 28px;
    justify-content: center;
    font-weight: 800;
    letter-spacing: -0.01em;
  }

  .nav-dropdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .nav-dropdown-trigger {
    width: auto;
    justify-content: center;
  }

  /* Animate dropdown indicator arrow on mobile when expanded */
  .nav-dropdown[data-dropdown-open] .nav-dropdown-trigger::before {
    transform: rotate(-135deg) translateY(-1px);
  }

  .nav-dropdown-menu {
    display: none; /* Collapsed by default on mobile/tablet */
    position: static;
    width: 100%;
    margin-top: 6px;
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: 0;
    pointer-events: none;
    transform: none;
    gap: 6px;
    justify-content: center;
    align-items: center;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav-dropdown[data-dropdown-open] .nav-dropdown-menu {
    display: grid; /* Expand on click/tap toggle */
    opacity: 1;
    pointer-events: auto;
  }

  .nav-dropdown-menu a {
    text-align: center;
    justify-content: center;
    padding: 8px 20px;
  }

  .nav-dropdown-menu strong {
    font-size: 1.15rem;
    color: var(--electric);
  }

  .nav-dropdown-menu span {
    display: none; /* Hides subtitle description inside mobile menu for ultra-clean spacing */
  }

  .nav .nav-cta {
    margin-top: 20px;
    font-size: 1.24rem;
    padding: 14px 36px;
    width: auto;
    min-height: 54px;
    border-radius: var(--radius);
  }

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

  .single-hero,
  .single-layout {
    grid-template-columns: 1fr;
  }

  .single-aside {
    position: static;
    order: 2;
  }

  .post-content {
    order: 1;
  }

  .single-footer {
    grid-column: 1;
    order: 3;
  }

  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 68px;
  }

  .brand {
    width: min(190px, 58vw);
  }

  .blog-hero {
    padding-inline: 20px;
  }

  .single-hero {
    padding-inline: 20px;
  }

  .post-content .wp-block-columns {
    grid-template-columns: 1fr;
  }

  .search-form {
    flex-direction: column;
    align-items: stretch;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

/* === CTA final, newsletter y posts relacionados (single) === */

.single-cta-band {
  margin-top: 2rem;
  padding: 1.8rem;
  border-radius: 18px;
  background: linear-gradient(120deg, var(--indigo, #1e1b4b), var(--electric, #2563ff));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.single-cta-band h2 {
  margin: 0 0 0.4rem;
  font-size: 1.3rem;
  color: #fff;
}

.single-cta-band p {
  margin: 0;
  opacity: 0.85;
  max-width: 48ch;
}

.newsletter-inline {
  margin-top: 1.6rem;
  padding: 1.5rem 1.8rem;
  border-radius: 18px;
  border: 1px solid rgba(37, 99, 255, 0.16);
  background: rgba(37, 99, 255, 0.05);
}

.newsletter-inline label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.newsletter-inline-controls {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.newsletter-inline-controls input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 0.65rem 0.95rem;
  border-radius: 10px;
  border: 1px solid rgba(30, 27, 75, 0.2);
  font: inherit;
}

.newsletter-inline-note {
  margin: 0.6rem 0 0;
  font-size: 0.85rem;
  min-height: 1.2em;
}

.related-posts {
  max-width: 1180px;
  margin: 3rem auto 4rem;
  padding: 0 1.5rem;
}

.related-posts h2 {
  margin: 0.3rem 0 1.6rem;
}
.footer-legal {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-legal button {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.consent-banner {
  position: fixed;
  z-index: 1200;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  max-width: 1080px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem;
  border: 1px solid #cbd8f3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 50px rgb(5 15 55 / 22%);
  color: #07102f;
}

.consent-banner[hidden] { display: none; }
.consent-banner h2 { margin: 0 0 .35rem; font-size: 1.1rem; }
.consent-banner p { max-width: 650px; margin: 0; color: #42557d; font-size: .92rem; }
.consent-actions { display: flex; flex: 0 0 auto; gap: .65rem; }
.consent-actions .button { min-height: 44px; padding: .65rem 1rem; }
.consent-dialog { width: min(620px, calc(100% - 2rem)); padding: 0; border: 1px solid #cbd8f3; border-radius: 8px; color: #07102f; box-shadow: 0 24px 80px rgb(5 15 55 / 28%); }
.consent-dialog::backdrop { background: rgb(2 7 26 / 58%); }
.consent-dialog form { padding: 1.5rem; }
.consent-dialog-heading, .consent-dialog-actions, .consent-option { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.consent-close { border: 0; background: transparent; font-size: 2rem; cursor: pointer; }
.consent-option { padding: 1rem 0; border-top: 1px solid #dfe6f5; }
.consent-option span { display: grid; gap: .2rem; }
.consent-option small { color: #526487; }
.consent-option input { width: 1.2rem; height: 1.2rem; }
.consent-dialog-actions { margin-top: 1rem; }

@media (max-width: 760px) {
  .consent-banner { align-items: stretch; flex-direction: column; }
  .consent-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .consent-actions [data-consent-action="accept"] { grid-column: 1 / -1; }
  .consent-dialog-actions, .footer-legal { align-items: flex-start; flex-direction: column; }
}
