/*
Theme Name: Pacarina del Sur Editorial
Theme URI: https://pacarinadelsur.com
Description: Editorial-Theme für historische und kulturelle Inhalte aus Lateinamerika. Alegreya + Rubik, Ocean-Palette, Comic-Porträt-Fokus.
Author: Pacarina del Sur
Version: 1.0.0
Template: astra
Text Domain: pds-editorial
*/

:root {
  --pds-lapis:       #1E3A52;
  --pds-lapis-2:     #2B4C6F;
  --pds-lapis-3:     #122838;
  --pds-gold:        #C9A24B;
  --pds-gold-2:      #B08A3A;
  --pds-sienna:      #7A3B2E;
  --pds-jade:        #3E6B5F;
  --pds-paper:       #F0E9DA;
  --pds-paper-2:     #E6DDC8;
  --pds-paper-3:     #F7F2E6;
  --pds-ink:         #1B1812;
  --pds-ink-soft:    #3A332A;
  --pds-stone:       #8A8275;
  --pds-stone-soft:  #B8B2A4;

  --pds-font-head:   "Alegreya", Georgia, "Times New Roman", serif;
  --pds-font-body:   "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;

  --pds-measure:     68ch;
  --pds-measure-wide:1080px;
  --pds-page-max:    1320px;
  --pds-gutter:      clamp(16px, 3vw, 40px);
  --pds-radius:      2px;
}

/* ---------- Base ---------- */
html,
html body,
body.ast-separate-container,
body.ast-plain-container,
body.ast-page-builder-template { background: var(--pds-paper) !important; background-color: var(--pds-paper) !important; }
body .site { background: var(--pds-paper) !important; }
body .ast-container,
body .ast-separate-container .ast-article-post,
body .ast-separate-container .ast-article-single,
body .ast-separate-container #primary,
body .site-content { background: transparent !important; }

body {
  font-family: var(--pds-font-body);
  color: var(--pds-ink);
  background: var(--pds-paper);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.11 0 0 0 0 0.09 0 0 0 0 0.07 0 0 0 0.03 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
  line-height: 1.7;
  font-size: 17px;
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6,
.pds-eyebrow, .pds-wordmark {
  font-family: var(--pds-font-head);
  color: var(--pds-ink);
  letter-spacing: -0.005em;
}
h1 { font-weight: 800; font-size: clamp(2rem, 4.2vw, 3.25rem); line-height: 1.1; }
h2 { font-weight: 700; font-size: clamp(1.5rem, 2.8vw, 2.25rem); line-height: 1.2; }
h3 { font-weight: 700; font-size: 1.5rem; line-height: 1.3; }
h4 { font-weight: 600; font-size: 1.15rem; line-height: 1.4; }

.pds-eyebrow {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8125rem;
  color: var(--pds-sienna);
}

a { color: var(--pds-lapis); text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--pds-sienna); }

/* ---------- Page frame ---------- */
.pds-wrap { max-width: var(--pds-page-max); margin-inline: auto; padding-inline: var(--pds-gutter); }
.pds-wrap--narrow { max-width: 760px; }
.pds-wrap--wide { max-width: 1080px; }

/* ---------- Header (glass) ---------- */
.pds-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(247, 242, 230, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 162, 75, 0.1);
  transition: padding 160ms ease, box-shadow 160ms ease;
}
.pds-header.is-compact { box-shadow: 0 20px 40px rgba(27, 24, 18, 0.06); }
.pds-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-block: 18px;
}
.pds-header.is-compact .pds-header__inner { padding-block: 10px; }
.pds-wordmark {
  font-weight: 800; font-size: 1.35rem; letter-spacing: -0.015em;
  color: var(--pds-ink); text-decoration: none;
  display: inline-flex; align-items: baseline; gap: 6px;
}
.pds-wordmark__accent { color: var(--pds-sienna); }

.pds-nav { display: flex; gap: clamp(10px, 2vw, 24px); align-items: center; }
.pds-nav__link {
  font-family: var(--pds-font-body);
  font-weight: 500; font-size: 0.9375rem;
  text-decoration: none; color: var(--pds-ink-soft);
  display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
  padding-inline: 2px;
}
.pds-nav__link:hover { color: var(--pds-sienna); }
.pds-nav__icon { width: 18px; height: 18px; display: block; opacity: 0.8; }

.pds-header__tools { display: flex; align-items: center; gap: 14px; }

/* ---------- Mobile hamburger + menu ---------- */
.pds-hamburger { display: none; background: transparent; border: 1px solid var(--pds-ink); cursor: pointer; padding: 12px 14px; margin-left: auto; position: relative; z-index: 60; }
.pds-hamburger span { display: block; width: 24px; height: 2.5px; background: var(--pds-ink); margin: 5px 0; transition: transform 180ms ease, opacity 180ms ease; }
.pds-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.pds-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.pds-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.pds-mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 88vw);
  background: var(--pds-paper); border-left: 1px solid var(--pds-paper-2);
  padding: 88px 28px 40px; z-index: 55;
  transform: translateX(100%); transition: transform 240ms ease;
  overflow-y: auto;
}
.pds-mobile-menu.is-open { transform: translateX(0); box-shadow: -20px 0 40px rgba(27,24,18,0.08); }
.pds-mobile-menu a {
  display: block; padding: 14px 0; font-family: var(--pds-font-head);
  font-weight: 600; font-size: 1.15rem; color: var(--pds-ink);
  text-decoration: none; border-bottom: 1px solid var(--pds-paper-2);
}
.pds-mobile-menu a:hover { color: var(--pds-sienna); }
.pds-mobile-menu__divider { height: 1px; background: var(--pds-paper-2); margin: 24px 0 16px; }
.pds-mobile-menu__label {
  font-family: var(--pds-font-head); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; font-size: 0.78rem; color: var(--pds-sienna);
  margin: 0 0 8px;
}
.pds-mobile-menu__region {
  padding: 10px 0 !important; font-size: 0.9375rem !important; font-weight: 500 !important;
  font-family: var(--pds-font-body) !important; color: var(--pds-ink-soft) !important;
  border-bottom: none !important;
}

@media (max-width: 960px) {
  .pds-nav { display: none !important; }
  .pds-header__tools { display: none !important; }
  .pds-hamburger { display: inline-flex !important; flex-direction: column; align-items: center; justify-content: center; }
  body.pds-mobile-open { overflow: hidden; }
}
@media (min-width: 961px) {
  .pds-mobile-menu { display: none; }
  .pds-hamburger { display: none !important; }
}
.pds-region-dropdown { position: relative; }
.pds-region-toggle,
.pds-search-toggle {
  background: transparent; border: 1px solid var(--pds-paper-2);
  padding: 6px 12px; border-radius: var(--pds-radius);
  font-family: var(--pds-font-body); font-size: 0.8125rem;
  color: var(--pds-ink-soft); cursor: pointer;
}
.pds-region-menu {
  display: none; position: absolute; top: calc(100% + 6px); right: 0;
  background: var(--pds-paper-3); border: 1px solid var(--pds-paper-2);
  min-width: 180px; padding: 8px 0; margin: 0; list-style: none; z-index: 90;
  box-shadow: 0 20px 40px rgba(27,24,18,0.08);
}
.pds-region-dropdown.is-open .pds-region-menu { display: block; }
.pds-region-menu li a {
  display: block; padding: 8px 14px; color: var(--pds-ink-soft);
  font-size: 0.875rem; text-decoration: none; font-family: var(--pds-font-body);
}
.pds-region-menu li a:hover { background: var(--pds-paper-2); color: var(--pds-sienna); }

/* ---------- Hero (home) ---------- */
.pds-hero { padding-block: clamp(32px, 5vw, 72px); position: relative; }
.pds-hero__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 840px) { .pds-hero__grid { grid-template-columns: 1fr; } }
.pds-hero__featured .pds-eyebrow { margin-bottom: 12px; }
.pds-hero__title { margin: 0 0 18px; font-size: clamp(1.9rem, 3.6vw, 3rem); }
.pds-hero__excerpt { color: var(--pds-ink-soft); font-size: 1.0625rem; max-width: 48ch; }
.pds-hero__cta { display: inline-block; margin-top: 18px; padding: 12px 22px; background: var(--pds-lapis); color: var(--pds-paper); text-decoration: none; font-weight: 500; }
.pds-hero__cta:hover { background: var(--pds-lapis-2); color: var(--pds-paper); }

.pds-figura-spotlight { display: grid; justify-items: center; gap: 14px; }
.pds-figura-spotlight__portrait {
  width: min(360px, 100%); aspect-ratio: 1/1;
}

.pds-fret {
  display: block; width: 100%; height: 24px; opacity: 0.3;
  background-repeat: repeat-x; background-size: 24px 24px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><path d='M0 24V16H8V8H16V0H24V8H16V16H8V24H0Z' fill='%231E3A52'/></svg>");
}

/* ---------- Codex frame (portrait) ---------- */
.pds-codex {
  position: relative; background: #fff;
  padding: 4px; box-sizing: border-box;
  border: 1px solid var(--pds-gold);
}
.pds-codex::before, .pds-codex::after {
  content: ""; position: absolute; width: 8px; height: 8px;
  border: 1px solid var(--pds-gold); background: var(--pds-paper);
}
.pds-codex::before { top: -4px; left: -4px; border-right: none; border-bottom: none; }
.pds-codex::after  { bottom: -4px; right: -4px; border-left: none; border-top: none; }
.pds-codex img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Card grids ---------- */
.pds-grid { display: grid; gap: clamp(20px, 2.5vw, 32px); }
.pds-grid--3 { grid-template-columns: repeat(3, 1fr); }
.pds-grid--4 { grid-template-columns: repeat(4, 1fr); }
.pds-grid--6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 960px) { .pds-grid--3, .pds-grid--4, .pds-grid--6 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pds-grid--3, .pds-grid--4, .pds-grid--6 { grid-template-columns: 1fr; } }

.pds-card { display: flex; flex-direction: column; gap: 16px; text-decoration: none; color: inherit; }
.pds-card__media { aspect-ratio: 3/2; background: var(--pds-paper-2); overflow: hidden; }
.pds-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms ease; }
.pds-card:hover .pds-card__media img { transform: scale(1.05); }
.pds-card:hover .pds-card__title { color: var(--pds-sienna); }

.pds-card--figura .pds-card__media { aspect-ratio: 4/5; background: #fff; padding: 4px; border: 1px solid var(--pds-gold); position: relative; }
.pds-card--figura .pds-card__media::before,
.pds-card--figura .pds-card__media::after { content: ""; position: absolute; width: 8px; height: 8px; border: 1px solid var(--pds-gold); background: var(--pds-paper); }
.pds-card--figura .pds-card__media::before { top: -4px; left: -4px; border-right: none; border-bottom: none; }
.pds-card--figura .pds-card__media::after { bottom: -4px; right: -4px; border-left: none; border-top: none; }
.pds-card--figura .pds-card__media img { filter: grayscale(0.55) contrast(1.05) brightness(0.98); mix-blend-mode: multiply; }
.pds-card__media--infografia { display: grid; place-items: center; background: var(--pds-paper-2); position: relative; }
.pds-card__media--infografia::after {
  content: "Infografía"; position: absolute; top: 10px; left: 10px;
  background: var(--pds-lapis); color: var(--pds-paper); font-size: 0.7rem; font-weight: 500;
  padding: 4px 10px; letter-spacing: 0.06em;
}
.pds-card__kicker { font-family: var(--pds-font-head); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; color: var(--pds-jade); }
.pds-card__title { font-family: var(--pds-font-head); font-weight: 700; font-size: 1.4rem; line-height: 1.25; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color 200ms ease; }
.pds-card__excerpt { color: var(--pds-ink-soft); font-size: 0.9375rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pds-card__meta { font-size: 0.8125rem; color: var(--pds-stone); display: flex; gap: 10px; flex-wrap: wrap; }
.pds-card__meta span + span::before { content: "·"; margin-right: 10px; color: var(--pds-stone-soft); }

.pds-card__media--archive img { filter: grayscale(0.6) contrast(1.05) brightness(0.95); mix-blend-mode: multiply; background: var(--pds-paper-3); }

/* Intentional asymmetry — staggered figura grid */
.pds-grid--figura-stagger > :nth-child(3n + 2) { margin-top: clamp(16px, 3vw, 48px); }
.pds-grid--figura-stagger > :nth-child(3n + 3) { margin-top: clamp(32px, 5vw, 96px); }
@media (max-width: 960px) { .pds-grid--figura-stagger > :nth-child(n) { margin-top: 0; } }

/* Section heading with gold bar prefix (Stitch signature) */
.pds-section-head { display: flex; align-items: center; gap: 16px; margin: 0 0 clamp(24px, 3vw, 48px); color: var(--pds-lapis); }
.pds-section-head::before { content: ""; display: block; width: 48px; height: 2px; background: var(--pds-gold); }

/* Primary button with stepped-fret glyph */
.pds-btn { display: inline-flex; align-items: center; gap: 12px; padding: 14px 28px; background: var(--pds-lapis); color: var(--pds-paper); text-decoration: none; font-family: var(--pds-font-body); font-weight: 500; border: none; cursor: pointer; }
.pds-btn:hover { background: var(--pds-lapis-2); color: var(--pds-paper); }
.pds-btn__fret { width: 12px; height: 12px; display: block; }

/* ---------- Figura profile ---------- */
.pds-figura-hero { background: var(--pds-paper-2); padding-block: clamp(36px, 5vw, 64px); }
.pds-figura-hero__grid { display: grid; grid-template-columns: 420px 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 900px) { .pds-figura-hero__grid { grid-template-columns: 1fr; } }
.pds-figura-hero__name { font-size: clamp(2rem, 4vw, 3.25rem); margin: 10px 0 6px; }
.pds-figura-hero__dates { font-family: var(--pds-font-head); font-style: italic; color: var(--pds-stone); font-size: 1.25rem; margin-bottom: 18px; }
.pds-figura-hero__tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.pds-pill { display: inline-block; padding: 5px 12px; font-size: 0.8125rem; border: 1px solid var(--pds-stone-soft); color: var(--pds-ink-soft); border-radius: var(--pds-radius); background: var(--pds-paper-3); }
.pds-pill--region { background: var(--pds-sienna); color: var(--pds-paper); border-color: var(--pds-sienna); }
.pds-pill--era { background: transparent; }

.pds-figura-body { display: grid; grid-template-columns: 1fr 300px; gap: clamp(32px, 4vw, 64px); padding-block: clamp(36px, 5vw, 72px); }
@media (max-width: 900px) { .pds-figura-body { grid-template-columns: 1fr; } }

/* Quick facts sidebar */
.pds-ficha { background: var(--pds-paper-3); border: 1px solid var(--pds-ink); box-shadow: inset 0 0 0 3px var(--pds-paper-3), inset 0 0 0 4px var(--pds-gold); padding: 28px 24px; position: sticky; top: 110px; align-self: start; }
.pds-ficha__title { font-family: var(--pds-font-head); font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.85rem; color: var(--pds-sienna); margin: 0 0 16px; }
.pds-ficha__row { display: grid; grid-template-columns: 100px 1fr; gap: 8px 14px; padding: 8px 0; border-bottom: 1px solid var(--pds-paper-2); font-size: 0.875rem; }
.pds-ficha__row:last-child { border: none; }
.pds-ficha__label { color: var(--pds-stone); font-weight: 500; }
.pds-ficha__value { color: var(--pds-ink); }

/* Timeline */
.pds-timeline { background: var(--pds-paper-2); padding-block: clamp(36px, 5vw, 64px); }
.pds-timeline__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
.pds-timeline__event { position: relative; padding-top: 36px; }
.pds-timeline__event::before { content: ""; position: absolute; top: 10px; left: 0; width: 14px; height: 14px; background: var(--pds-gold); border: 2px solid var(--pds-ink); border-radius: 50%; }
.pds-timeline__year { font-family: var(--pds-font-head); font-weight: 700; font-size: 1.35rem; margin: 0 0 4px; }
.pds-timeline__text { font-size: 0.875rem; color: var(--pds-ink-soft); }

/* ---------- Article ---------- */
.pds-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--pds-sienna); z-index: 90; transition: width 80ms linear; }

.pds-article { padding-block: clamp(28px, 4vw, 56px); }
.pds-article__header { max-width: var(--pds-measure); margin: 0 auto 24px; }
.pds-article__breadcrumb { font-family: var(--pds-font-head); font-weight: 500; font-size: 0.875rem; color: var(--pds-stone); margin-bottom: 18px; }
.pds-article__breadcrumb a { color: var(--pds-stone); }
.pds-article__title { font-size: clamp(2rem, 4.2vw, 3.25rem); margin: 0 0 14px; }
.pds-article__dek { font-family: var(--pds-font-head); font-style: italic; font-weight: 400; font-size: 1.375rem; line-height: 1.45; color: var(--pds-ink-soft); margin: 0 0 20px; }
.pds-article__meta { font-size: 0.875rem; color: var(--pds-stone); display: flex; gap: 12px; flex-wrap: wrap; }

.pds-article__lead-image { max-width: var(--pds-measure-wide); margin: 28px auto 0; }
.pds-article__lead-image figcaption { font-size: 0.875rem; color: var(--pds-stone); margin-top: 8px; font-weight: 500; }

.pds-article__body {
  max-width: var(--pds-measure); margin: 40px auto 0;
  font-size: 1.0625rem; line-height: 1.75;
}
.pds-article__body p { margin: 0 0 1.25em; }
.pds-article__body > p:first-of-type::first-letter {
  font-family: var(--pds-font-head); font-weight: 800; font-size: 5.25rem; line-height: 0.85;
  float: left; margin: 0.04em 0.14em 0 0; color: var(--pds-sienna);
}
.pds-article__body h2 { margin: 2em 0 0.6em; }
.pds-article__body h3 { margin: 1.6em 0 0.4em; }

.pds-toc {
  max-width: var(--pds-measure);
  margin: 2em auto;
  font-size: 0.9375rem;
  background: var(--pds-paper-3);
  padding: 28px 36px;
  border: 1px solid var(--pds-paper-2);
}
.pds-toc__title { font-family: var(--pds-font-head); font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; color: var(--pds-stone); margin: 0 0 14px; }
.pds-toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.pds-toc li { counter-increment: toc; padding: 6px 0; border-left: 2px solid var(--pds-paper-2); padding-left: 12px; }
.pds-toc li::before { content: counter(toc, decimal-leading-zero); color: var(--pds-stone-soft); margin-right: 8px; }
.pds-toc li.is-active { border-left-color: var(--pds-sienna); }
.pds-toc li.is-active a { color: var(--pds-sienna); }
.pds-toc a { text-decoration: none; color: var(--pds-ink-soft); }

.pds-quipu { display: flex; justify-content: center; gap: 14px; margin: 2.4em 0; opacity: 0.45; }
.pds-quipu svg { width: 16px; height: 16px; }

.pds-pullquote {
  font-family: var(--pds-font-head); font-style: italic; font-size: 1.75rem; line-height: 1.35;
  border-left: 4px solid var(--pds-sienna); padding: 8px 0 8px 28px;
  max-width: 900px; margin: 2em auto; color: var(--pds-ink);
}
.pds-pullquote__attr { display: block; font-style: normal; font-family: var(--pds-font-body); font-size: 1rem; color: var(--pds-stone); margin-top: 14px; font-weight: 500; }

.pds-infografia-embed { max-width: var(--pds-measure-wide); margin: 2em auto; background: var(--pds-paper-2); padding: 28px; }
.pds-infografia-embed figcaption { margin-top: 14px; font-size: 0.9375rem; color: var(--pds-stone); font-weight: 500; }

.pds-article__tags { max-width: var(--pds-measure); margin: 36px auto 0; padding-top: 20px; border-top: 1px solid var(--pds-paper-2); display: flex; gap: 10px; flex-wrap: wrap; }

.pds-share { max-width: var(--pds-measure); margin: 24px auto 0; display: flex; gap: 14px; align-items: center; }
.pds-share__label { font-family: var(--pds-font-head); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; color: var(--pds-stone); }
.pds-share__link { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--pds-paper-2); color: var(--pds-ink-soft); text-decoration: none; }
.pds-share__link:hover { background: var(--pds-sienna); color: var(--pds-paper); border-color: var(--pds-sienna); }

.pds-related { background: var(--pds-paper-2); padding-block: clamp(32px, 4vw, 56px); margin-top: 48px; }
.pds-related__title { margin: 0 0 24px; }

/* ---------- Archive / Regional ---------- */
.pds-archive-hero { padding-block: clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--pds-paper-2); }
.pds-archive-hero__title { margin: 4px 0 10px; font-size: clamp(2rem, 4vw, 3.5rem); }
.pds-archive-hero__desc { max-width: 62ch; color: var(--pds-ink-soft); font-size: 1.0625rem; line-height: 1.65; }
.pds-archive-hero__desc p { margin: 0 0 0.75em; }
.pds-archive-hero__desc h2, .pds-archive-hero__desc h3 { display: none; }
.pds-archive-hero__desc > *:nth-child(n+3) { display: none; }
.pds-regionfilter { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.pds-regionfilter a { padding: 7px 14px; border: 1px solid var(--pds-paper-2); text-decoration: none; color: var(--pds-ink-soft); font-size: 0.875rem; font-weight: 500; background: var(--pds-paper-3); }
.pds-regionfilter a.is-active { background: var(--pds-sienna); color: var(--pds-paper); border-color: var(--pds-sienna); }

/* ---------- Country tiles ---------- */
.pds-countries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 840px) { .pds-countries { grid-template-columns: repeat(2, 1fr); } }
.pds-country { background: var(--pds-paper-3); padding: 22px 20px; text-align: center; text-decoration: none; color: inherit; border: 1px solid var(--pds-paper-2); transition: background 140ms ease, border-color 140ms ease; }
.pds-country:hover { background: var(--pds-paper-2); border-color: var(--pds-sienna); color: var(--pds-sienna); }
.pds-country__glyph { display: block; margin: 0 auto 12px; width: 40px; height: 40px; opacity: 0.8; }
.pds-country__name { font-family: var(--pds-font-head); font-weight: 700; font-size: 1.15rem; display: block; }
.pds-country__count { font-size: 0.8125rem; color: var(--pds-stone); display: block; margin-top: 4px; }

/* ---------- Footer ---------- */
.pds-footer { background: var(--pds-lapis-3); color: var(--pds-paper); padding-block: clamp(40px, 5vw, 72px) 32px; margin-top: 64px; }
.pds-footer__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
@media (max-width: 840px) { .pds-footer__inner { grid-template-columns: repeat(2, 1fr); } }
.pds-footer h4 { color: var(--pds-gold); font-family: var(--pds-font-head); font-size: 1rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; margin: 0 0 14px; }
.pds-footer a { color: var(--pds-paper-3); text-decoration: none; display: block; padding: 4px 0; font-size: 0.9375rem; }
.pds-footer a:hover { color: var(--pds-gold); }
.pds-footer__bottom { max-width: var(--pds-page-max); margin: 48px auto 0; padding: 20px var(--pds-gutter) 0; border-top: 1px solid rgba(201,162,75,0.2); font-size: 0.8125rem; color: rgba(240,233,218,0.6); display: flex; justify-content: space-between; gap: 20px; }

/* ---------- Accessibility ---------- */
.pds-screen-reader { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--pds-sienna); outline-offset: 2px; }

/* ---------- UAG post-carousel overrides (Ultimate Addons for Gutenberg) ---------- */
.uagb-post-carousel .uagb-post__inner-wrap {
  border: 1px solid var(--pds-paper-2);
  background: var(--pds-paper-3);
  overflow: hidden;
}
.uagb-post-carousel .uagb-post__image img {
  filter: grayscale(0.4) contrast(1.05);
  mix-blend-mode: multiply;
}
.uagb-post-carousel .uagb-post__title,
.uagb-post-grid .uagb-post__title { font-family: var(--pds-font-head) !important; font-weight: 700 !important; color: var(--pds-ink) !important; }
.uagb-post-carousel .uagb-post__title a,
.uagb-post-grid .uagb-post__title a { color: var(--pds-ink) !important; }
.uagb-post-carousel .uagb-post__title a:hover,
.uagb-post-grid .uagb-post__title a:hover { color: var(--pds-sienna) !important; }
.uagb-post-carousel .uagb-post__excerpt,
.uagb-post-grid .uagb-post__excerpt { font-family: var(--pds-font-body) !important; color: var(--pds-ink-soft) !important; }
.uagb-post-carousel .uagb-post__meta,
.uagb-post-grid .uagb-post__meta { color: var(--pds-stone) !important; font-family: var(--pds-font-body) !important; }

/* UAG "Leer más" button → Ocean-palette */
.uagb-post .wp-block-button__link.uagb-text-link,
.uagb-post-carousel .wp-block-button__link,
.uagb-post-grid .wp-block-button__link,
body .wp-block-button .wp-block-button__link {
  background-color: var(--pds-lapis) !important;
  border-color: var(--pds-lapis) !important;
  color: var(--pds-paper) !important;
  border-radius: var(--pds-radius) !important;
  font-family: var(--pds-font-body) !important;
  font-weight: 500 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.uagb-post .wp-block-button__link.uagb-text-link:hover,
.uagb-post-carousel .wp-block-button__link:hover,
.uagb-post-grid .wp-block-button__link:hover,
body .wp-block-button .wp-block-button__link:hover {
  background-color: var(--pds-lapis-2) !important;
  border-color: var(--pds-lapis-2) !important;
  color: var(--pds-paper) !important;
}

/* Slick carousel dots (page indicators) */
.slick-dots li button:before,
.uagb-slick-dots li button:before { color: var(--pds-stone) !important; opacity: 0.4 !important; font-size: 8px !important; }
.slick-dots li.slick-active button:before,
.uagb-slick-dots li.slick-active button:before { color: var(--pds-sienna) !important; opacity: 1 !important; }

/* Slick arrows */
.slick-prev:before, .slick-next:before { color: var(--pds-lapis) !important; }

/* ---------- Reset astra-heavy surfaces so child theme shapes the page ---------- */
body .ast-container { max-width: 100%; padding: 0; }
body .site-content { padding: 0; }
.ast-site-identity, .site-branding, .ast-header-break-point .main-header-bar { display: none !important; }
.ast-sticky-header-wrap { display: none !important; }
