/* RedLAco Core — design for the Directorio and Publicaciones (markup printed
   by the "RedLAco Directorio" / "RedLAco Publicaciones" plugins), the
   publications explorer (.rl-pubs) and the posts grid (.rl-posts).

   Those plugins print their own inline <style> after the content, so every
   rule here that must beat them carries one more class (.gsc-grid .gsc-card…)
   and, where they use !important, !important too. */

:root {
  --rl-red: #a3191c;
  --rl-red-dark: #7a1214;
  --rl-red-soft: #fbefef;
  --rl-ink: #0f1c3f;
  --rl-text: #3b4458;
  --rl-muted: #6b7489;
  --rl-line: #e4e7ee;
  --rl-soft: #f6f7fa;
}

/* Same type as the navbar/footer/slider (Inter, loaded in inc/assets.php),
   instead of inheriting whatever the theme sets on body. */
.gsc-search,
.gsc-grid,
.rl-pubs,
.rl-posts {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  letter-spacing: normal;
}

/* While assets/redlaco-core.js turns the plain publications list into the
   explorer, keep the raw list out of sight. If the script never runs, the
   animation shows it anyway after 3s. */
html.rl-js .gsp-list,
html.rl-js .gsp-search {
  visibility: hidden;
  animation: rl-reveal 0s 3s forwards;
}
html.rl-js.rl-ready .gsp-list,
html.rl-js.rl-ready .gsp-search {
  visibility: visible;
  animation: none;
}
@keyframes rl-reveal {
  to { visibility: visible; }
}

/* ---------- Directorio: search box ---------- */
.gsc-search.gsc-search {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 460px;
  height: 52px;
  margin: 0 auto 8px;
  padding: 0 22px 0 50px;
  border: 1px solid var(--rl-line) !important;
  border-radius: 999px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236b7489' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242 1.656a5.5 5.5 0 1 1 0-11 5.5 5.5 0 0 1 0 11'/%3E%3C/svg%3E") no-repeat 20px center;
  box-shadow: 0 2px 10px -4px rgba(15, 28, 63, .12);
  color: var(--rl-ink);
  font: inherit;
  font-size: 15px;
  text-align: left;
  transition: border-color .15s, box-shadow .15s;
}
.gsc-search.gsc-search:focus {
  outline: none;
  border-color: var(--rl-red) !important;
  box-shadow: 0 0 0 4px var(--rl-red-soft);
}

/* ---------- Directorio: cards ---------- */
.gsc-grid.gsc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 24px;
  margin: 28px 0 48px;
}
/* [redlaco_directorio columnas="N"] (inc/directorio.php) */
.gsc-grid.gsc-grid--cols {
  grid-template-columns: repeat(var(--rl-dir-cols), minmax(0, 1fr));
}
@media (max-width: 1024px) {
  .gsc-grid.gsc-grid--cols { grid-template-columns: repeat(var(--rl-dir-cols-md), minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .gsc-grid.gsc-grid--cols { grid-template-columns: minmax(0, 1fr); }
}
.gsc-grid .gsc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  padding: 30px 22px 24px;
  border: 1px solid var(--rl-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 28, 63, .04);
  text-align: center;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.gsc-grid .gsc-card:hover {
  border-color: #d9dde6;
  box-shadow: 0 18px 40px -20px rgba(15, 28, 63, .3);
  transform: translateY(-3px);
}
/* The original search toggles display:block/none inline on each card. */
.gsc-grid .gsc-card[style*="display: block"] {
  display: flex !important;
}
.gsc-grid .gsc-card[style*="display: none"],
.gsc-grid .gsc-card[hidden] {
  display: none !important;
}
.gsc-grid .gsc-card .thumb-perfil {
  flex: none;
  width: 112px;
  height: 112px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background-color: var(--rl-soft);
  background-position: center;
  background-size: cover;
  box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--rl-line);
}
.gsc-grid .gsc-card h2 {
  margin: 0 0 10px;
  padding: 0;
  color: var(--rl-ink);
  font-size: 18px;
  line-height: 1.3;
}
.gsc-grid .gsc-card h4 {
  margin: 0;
  padding: 0;
  color: var(--rl-text);
  font-family: inherit !important;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}
/* Role (first line of h4) as a small label. */
.gsc-grid .gsc-card h4 b {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--rl-red-soft);
  color: var(--rl-red-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.gsc-grid .gsc-card h4 i {
  display: inline-block;
  margin-top: 4px;
  color: var(--rl-muted) !important;
  font-size: 13px;
  font-style: normal;
}
.gsc-grid .gsc-card .redes-sociales {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 18px 0 0;
}
.gsc-grid .gsc-card .redes-sociales > a {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 0;
  border: 1px solid var(--rl-line);
  border-radius: 50%;
  background: #fff;
  color: var(--rl-ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.gsc-grid .gsc-card .redes-sociales > a .bi {
  font-size: 16px;
}
.gsc-grid .gsc-card .redes-sociales > a:hover,
.gsc-grid .gsc-card .redes-sociales > a:focus-visible {
  border-color: var(--rl-red);
  background: var(--rl-red);
  color: #fff;
}
.gsc-grid .gsc-card .areas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--rl-line);
  width: 100%;
}
.gsc-grid .gsc-card .areas:empty {
  display: none;
}
.gsc-grid .gsc-card .areas > span {
  display: inline-block;
  margin: 0;
  padding: 3px 9px;
  border: 0;
  border-radius: 6px;
  background: var(--rl-soft);
  color: var(--rl-text);
  font-size: 12px;
  line-height: 1.4;
}
.gsc-grid .gsc-card .areas > span:empty {
  display: none;
}

/* =========================================================================
   Publications explorer (.rl-pubs) — built by assets/redlaco-core.js
   ========================================================================= */

.rl-pubs,
.rl-posts,
.rl-form {
  --rl-red: #a3191c;
  --rl-red-dark: #7a1214;
  --rl-red-soft: #fbefef;
  --rl-ink: #0f1c3f;
  --rl-text: #3b4458;
  --rl-muted: #6b7489;
  --rl-line: #e4e7ee;
  --rl-soft: #f6f7fa;
  --rl-radius: 14px;
}

/* Padding inside the 100% width, whatever the theme's global box-sizing is. */
.rl-pubs *,
.rl-pubs *::before,
.rl-pubs *::after,
.rl-posts *,
.rl-posts *::before,
.rl-posts *::after,
.rl-form,
.rl-form *,
.rl-form *::before,
.rl-form *::after {
  box-sizing: border-box;
}

.rl-pubs {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  margin: 24px 0 48px;
  color: var(--rl-text);
  font-size: 16px;
  line-height: 1.6;
  text-align: left;
}

/* Theme/Elementor resets: doubled class so it beats `.elementor-kit-* button` & co. */
.rl-pubs.rl-pubs button {
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: inherit;
  font: inherit;
  line-height: inherit;
  letter-spacing: normal;
  text-transform: none;
  min-height: 0;
  width: auto;
  cursor: pointer;
}
.rl-pubs.rl-pubs ol,
.rl-pubs.rl-pubs ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.rl-pubs.rl-pubs p {
  margin: 0;
}
.rl-pubs .screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.rl-pubs.rl-pubs :focus-visible {
  outline: 2px solid var(--rl-red);
  outline-offset: 2px;
}

/* medigo paints every button on hover AND focus:
     button:not(.btn):hover, button:not(.btn):focus { background-color: var(--secondary-color); color: #fff; }
   so a clicked button even stays navy. Our buttons take their colours from
   --rl-btn-bg / --rl-btn-fg through one rule that outranks it in every state;
   each component below only sets those two variables. */
.rl-pubs.rl-pubs button:not(.btn),
.rl-pubs.rl-pubs button:not(.btn):hover,
.rl-pubs.rl-pubs button:not(.btn):focus,
.rl-pubs.rl-pubs button:not(.btn):active {
  background-color: var(--rl-btn-bg, transparent);
  color: var(--rl-btn-fg, inherit);
  box-shadow: var(--rl-btn-shadow, none);
}
.rl-facet__more,
.rl-pubs__clear {
  --rl-btn-fg: var(--rl-red);
}
.rl-facet__more:hover,
.rl-facet__more:focus-visible,
.rl-pubs__clear:hover,
.rl-pubs__clear:focus-visible {
  --rl-btn-fg: var(--rl-red-dark);
}
.rl-pubs__filters-toggle {
  --rl-btn-bg: #fff;
  --rl-btn-fg: var(--rl-ink);
}
.rl-view button {
  --rl-btn-fg: var(--rl-muted);
}
.rl-view button:hover {
  --rl-btn-fg: var(--rl-ink);
}
.rl-view button[aria-pressed="true"] {
  --rl-btn-bg: #fff;
  --rl-btn-fg: var(--rl-red);
  --rl-btn-shadow: 0 1px 3px rgba(15, 28, 63, .12);
}
.rl-chip {
  --rl-btn-bg: var(--rl-red-soft);
  --rl-btn-fg: var(--rl-red-dark);
}
.rl-chip:hover {
  --rl-btn-bg: #f5dcdc;
}
.rl-page {
  --rl-btn-bg: #fff;
  --rl-btn-fg: var(--rl-ink);
}
.rl-page[aria-current="page"] {
  --rl-btn-bg: var(--rl-red);
  --rl-btn-fg: #fff;
}

/* ---------- Sidebar ---------- */
.rl-pubs__sidebar {
  position: sticky;
  top: 110px;
  max-height: calc(100vh - 130px);
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
}

.rl-search {
  position: relative;
  margin-bottom: 28px;
}
.rl-search .bi {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--rl-muted);
  pointer-events: none;
}
.rl-pubs.rl-pubs .rl-search__input {
  display: block;
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 0 16px 0 44px;
  border: 1px solid var(--rl-line);
  border-radius: 10px;
  background: #fff;
  color: var(--rl-ink);
  font: inherit;
  font-size: 15px;
  box-shadow: 0 1px 2px rgba(15, 28, 63, .04);
  transition: border-color .15s, box-shadow .15s;
}
.rl-pubs.rl-pubs .rl-search__input:focus {
  outline: none;
  border-color: var(--rl-red);
  box-shadow: 0 0 0 3px var(--rl-red-soft);
}

.rl-pubs.rl-pubs .rl-facet {
  margin: 0 0 26px;
  padding: 0 0 22px;
  border: 0;
  border-bottom: 1px solid var(--rl-line);
  min-width: 0;
}
.rl-pubs.rl-pubs .rl-facet__title {
  margin: 0 0 12px;
  padding: 0;
  color: var(--rl-ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.rl-facet__option label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 5px 0;
  color: var(--rl-text);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
  cursor: pointer;
}
.rl-facet__option input {
  flex: none;
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--rl-red);
  cursor: pointer;
}
.rl-facet__label {
  flex: 1;
}
.rl-facet__option label:hover .rl-facet__label {
  color: var(--rl-ink);
}
.rl-facet__count {
  flex: none;
  min-width: 26px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--rl-soft);
  color: var(--rl-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.rl-facet__option input:checked ~ .rl-facet__label {
  color: var(--rl-ink);
  font-weight: 600;
}
.rl-facet__option input:checked ~ .rl-facet__count {
  background: var(--rl-red);
  color: #fff;
}
.rl-facet__option.is-empty label {
  opacity: .4;
  cursor: default;
}
.rl-facet[data-collapsed] .rl-facet__option:nth-child(n+9):not(:has(input:checked)) {
  display: none;
}
.rl-pubs.rl-pubs .rl-facet__more {
  margin-top: 8px;
  color: var(--rl-red);
  font-size: 14px;
  font-weight: 600;
}


.rl-pubs.rl-pubs .rl-pubs__clear {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--rl-red);
  font-size: 14px;
  font-weight: 600;
}
.rl-pubs.rl-pubs .rl-pubs__clear[hidden] {
  display: none;
}
.rl-pubs.rl-pubs .rl-pubs__clear:hover {
  color: var(--rl-red-dark);
}

.rl-pubs.rl-pubs .rl-pubs__filters-toggle {
  display: none;
}

/* ---------- Toolbar ---------- */
.rl-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rl-line);
}
.rl-pubs.rl-pubs .rl-toolbar__count {
  color: var(--rl-ink);
  font-size: 15px;
  font-weight: 600;
}
.rl-toolbar__controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.rl-pubs.rl-pubs .rl-sort select {
  height: 40px;
  margin: 0;
  padding: 0 36px 0 14px;
  border: 1px solid var(--rl-line);
  border-radius: 10px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%236b7489' d='M1.6 5.1a.75.75 0 0 1 1.06 0L8 10.44l5.34-5.34a.75.75 0 1 1 1.06 1.06l-5.87 5.87a.75.75 0 0 1-1.06 0L1.6 6.16a.75.75 0 0 1 0-1.06z'/%3E%3C/svg%3E") no-repeat right 14px center;
  color: var(--rl-ink);
  font: inherit;
  font-size: 14px;
  appearance: none;
  cursor: pointer;
}
.rl-view {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--rl-line);
  border-radius: 10px;
  background: var(--rl-soft);
}
.rl-pubs.rl-pubs .rl-view button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 32px;
  border-radius: 7px;
  color: var(--rl-muted);
  font-size: 17px;
  transition: background .15s, color .15s;
}
.rl-pubs.rl-pubs .rl-view button:hover {
  color: var(--rl-ink);
}
.rl-pubs.rl-pubs .rl-view button[aria-pressed="true"] {
  background: #fff;
  color: var(--rl-red);
  box-shadow: 0 1px 3px rgba(15, 28, 63, .12);
}

/* ---------- Active filter chips ---------- */
.rl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.rl-chips:empty {
  display: none;
}
.rl-pubs.rl-pubs .rl-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px 5px 12px;
  border-radius: 999px;
  background: var(--rl-red-soft);
  color: var(--rl-red-dark);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}
.rl-pubs.rl-pubs .rl-chip:hover {
  background: #f5dcdc;
}
.rl-chip .bi {
  font-size: 15px;
}

/* ---------- Results ---------- */
.rl-results {
  margin-top: 8px !important;
}
.rl-pubs:not(.is-ready) .rl-pub:nth-child(n+13) {
  display: none;
}
.rl-pub[hidden] {
  display: none !important;
}

.rl-pub__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-bottom: 8px;
}
.rl-pub__type {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--rl-red-soft);
  color: var(--rl-red-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.4;
}
.rl-pub__collection {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--rl-muted);
  font-size: 13px;
}
.rl-pub__collection::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: .5;
}
.rl-pubs.rl-pubs .rl-pub__authors {
  margin-bottom: 4px;
  color: var(--rl-ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}
.rl-pubs.rl-pubs .rl-pub__ref {
  color: var(--rl-text);
  font-size: 15px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.rl-pub__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.rl-pubs .rl-pub__links .rl-pub__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border: 1px solid var(--rl-line);
  border-radius: 8px;
  background: #fff;
  color: var(--rl-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transition: border-color .15s, color .15s, background .15s;
}
.rl-pubs .rl-pub__links .rl-pub__link .bi {
  color: var(--rl-red);
  font-size: 15px;
}
.rl-pubs .rl-pub__links .rl-pub__link:hover {
  border-color: var(--rl-red);
  background: var(--rl-red);
  color: #fff;
}
.rl-pubs .rl-pub__links .rl-pub__link:hover .bi {
  color: #fff;
}

/* List view: year column + body, separated by hairlines. */
.rl-results.is-list .rl-pub {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--rl-line);
}
.rl-results.is-list .rl-pub__year {
  color: var(--rl-ink);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}
.rl-results.is-list .rl-pub__year[aria-hidden="true"] {
  color: var(--rl-line);
}

/* Grid view: cards, links pinned to the bottom. */
.rl-results.is-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 20px;
  margin-top: 20px !important;
}
.rl-results.is-grid .rl-pub {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--rl-line);
  border-radius: var(--rl-radius);
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 28, 63, .04);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.rl-results.is-grid .rl-pub:hover {
  border-color: #d6dae4;
  box-shadow: 0 12px 28px -12px rgba(15, 28, 63, .18);
  transform: translateY(-2px);
}
.rl-results.is-grid .rl-pub__year {
  position: absolute;
  top: 22px;
  right: 24px;
  color: var(--rl-muted);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.rl-results.is-grid .rl-pub__year[aria-hidden="true"] {
  display: none;
}
.rl-results.is-grid .rl-pub__body {
  display: flex;
  flex: 1;
  flex-direction: column;
}
.rl-results.is-grid .rl-pub__meta {
  padding-right: 48px;
  margin-bottom: 14px;
}
.rl-results.is-grid .rl-pub__links {
  margin-top: auto;
  padding-top: 18px;
}

/* ---------- Empty state ---------- */
.rl-empty-state {
  padding: 64px 24px;
  text-align: center;
}
.rl-empty-state[hidden] {
  display: none;
}
.rl-empty-state > .bi {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--rl-soft);
  color: var(--rl-muted);
  font-size: 22px;
}
.rl-pubs.rl-pubs .rl-empty-state p {
  margin-bottom: 12px;
  color: var(--rl-ink);
  font-weight: 600;
}

/* ---------- Pagination ---------- */
.rl-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 36px;
}
.rl-pagination[hidden] {
  display: none;
}
.rl-pubs.rl-pubs .rl-page,
.rl-posts.rl-posts .rl-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--rl-line);
  border-radius: 10px;
  background: #fff;
  color: var(--rl-ink);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: border-color .15s, background .15s, color .15s;
}
.rl-pubs.rl-pubs .rl-page:hover:not(:disabled):not([aria-current]),
.rl-posts.rl-posts .rl-page:hover:not([aria-current]) {
  border-color: var(--rl-ink);
}
.rl-pubs.rl-pubs .rl-page[aria-current="page"],
.rl-posts.rl-posts .rl-page[aria-current="page"] {
  border-color: var(--rl-red);
  background: var(--rl-red);
  color: #fff;
}
.rl-pubs.rl-pubs .rl-page:disabled {
  opacity: .4;
  cursor: default;
}
.rl-page-gap {
  padding: 0 4px;
  color: var(--rl-muted);
}

/* ---------- Mobile: sidebar folds behind a "Filtros" button ---------- */
@media (max-width: 960px) {
  .rl-pubs {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .rl-pubs.rl-pubs .rl-pubs__filters-toggle {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 10px;
    height: 44px;
    padding: 0 18px;
    border: 1px solid var(--rl-line);
    border-radius: 10px;
    background: #fff;
    color: var(--rl-ink);
    font-size: 15px;
    font-weight: 600;
  }
  .rl-pubs__filters-count {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--rl-red);
    color: #fff;
    font-size: 12px;
  }
  .rl-pubs__filters-count[hidden] {
    display: none;
  }
  .rl-pubs__sidebar {
    position: static;
    display: none;
    max-height: none;
    padding: 20px;
    border: 1px solid var(--rl-line);
    border-radius: var(--rl-radius);
    background: var(--rl-soft);
  }
  .rl-pubs.is-filters-open .rl-pubs__sidebar {
    display: block;
  }
  .rl-results.is-list .rl-pub {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 22px 0;
  }
  .rl-results.is-list .rl-pub__year {
    font-size: 15px;
    color: var(--rl-muted);
  }
  .rl-results.is-list .rl-pub__year[aria-hidden="true"] {
    display: none;
  }
  .rl-page--prev span,
  .rl-page--next span {
    display: none;
  }
}

/* =========================================================================
   Posts grid (.rl-posts) — inc/entradas.php
   ========================================================================= */

.rl-posts {
  margin: 8px 0 40px;
  text-align: left;
}
/* ancho="pagina": break out of the Elementor container and line the cards up
   with cabecera/slider/cta/footer (1320px max, 32/24/20px gutters). body has
   overflow-x: clip further down (single post section). */
.rl-posts.rl-posts--pagina {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: max(32px, calc((100vw - 1256px) / 2));
  padding-right: max(32px, calc((100vw - 1256px) / 2));
}
@media (max-width: 1024px) {
  .rl-posts.rl-posts--pagina { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 767px) {
  .rl-posts.rl-posts--pagina { padding-left: 20px; padding-right: 20px; }
}
.rl-posts .rl-pagination {
  text-decoration: none;
}
.rl-posts.rl-posts .rl-page {
  text-decoration: none;
}
.rl-posts__grid {
  display: grid;
  grid-template-columns: repeat(var(--rl-cols, 3), minmax(0, 1fr));
  gap: 28px;
}

.rl-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--rl-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 28, 63, .04);
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.rl-card:hover,
.rl-card:focus-within {
  border-color: #d9dde6;
  box-shadow: 0 18px 40px -18px rgba(15, 28, 63, .28);
  transform: translateY(-3px);
}

.rl-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--rl-soft);
}
.rl-posts .rl-card__media .rl-card__img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  border-radius: 0;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.rl-card:hover .rl-card__img {
  transform: scale(1.04);
}
.rl-card__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--rl-red-soft), #f3f4f8);
  color: var(--rl-red);
  font-size: 36px;
  opacity: .8;
}

.rl-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 24px 24px;
}
.rl-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-bottom: 12px;
  font-size: 13px;
  line-height: 1.4;
}
.rl-card__cat {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--rl-red-soft);
  color: var(--rl-red-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}
.rl-card__date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--rl-muted);
}
.rl-card__cat + .rl-card__date::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: .6;
}

/* Title keeps the theme's heading font; size, colour and spacing are ours. */
.rl-posts.rl-posts .rl-card__title {
  display: -webkit-box;
  margin: 0 0 10px;
  padding: 0;
  overflow: hidden;
  color: var(--rl-ink);
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: normal;
  text-transform: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.rl-posts.rl-posts .rl-card__link {
  color: inherit;
  text-decoration: none;
  background: none;
}
/* The whole card is clickable through the title link. */
.rl-posts .rl-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.rl-posts .rl-card__link:focus-visible {
  outline: none;
}
.rl-card:has(.rl-card__link:focus-visible) {
  outline: 2px solid var(--rl-red);
  outline-offset: 3px;
}
.rl-posts.rl-posts .rl-card__excerpt {
  display: -webkit-box;
  margin: 0 0 18px;
  overflow: hidden;
  color: var(--rl-text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.rl-card__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--rl-red);
  font-size: 14px;
  font-weight: 700;
}
.rl-card__more .bi {
  transition: transform .2s;
}
.rl-card:hover .rl-card__more .bi {
  transform: translateX(4px);
}

/* Destacado: the first card spans the row, image beside the text. */
.rl-card--lead {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
}
.rl-card--lead .rl-card__media {
  aspect-ratio: auto;
  min-height: 340px;
}
.rl-card--lead .rl-card__body {
  justify-content: center;
  padding: 40px 44px;
}
.rl-posts.rl-posts .rl-card--lead .rl-card__title {
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.2;
  -webkit-line-clamp: 4;
}
.rl-posts.rl-posts .rl-card--lead .rl-card__excerpt {
  font-size: 16px;
  -webkit-line-clamp: 4;
}
.rl-card--lead .rl-card__more {
  margin-top: 6px;
}

/* Lista: one horizontal card per row. */
.rl-posts--lista .rl-posts__grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}
.rl-posts--lista .rl-card {
  display: grid;
  grid-template-columns: minmax(200px, 320px) minmax(0, 1fr);
}
.rl-posts--lista .rl-card__media {
  aspect-ratio: auto;
  min-height: 200px;
}

.rl-posts__footer {
  margin-top: 32px;
  text-align: center;
}
.rl-posts.rl-posts .rl-posts__all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border: 1px solid var(--rl-ink);
  border-radius: 999px;
  color: var(--rl-ink);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.rl-posts.rl-posts .rl-posts__all:hover {
  background: var(--rl-ink);
  color: #fff;
}

@media (max-width: 1024px) {
  .rl-posts__grid {
    grid-template-columns: repeat(min(var(--rl-cols, 3), 2), minmax(0, 1fr));
  }
  .rl-card--lead .rl-card__body {
    padding: 28px;
  }
}
@media (max-width: 640px) {
  .rl-posts__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .rl-card--lead,
  .rl-posts--lista .rl-card {
    display: flex;
  }
  .rl-card--lead .rl-card__media,
  .rl-posts--lista .rl-card__media {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }
  .rl-card--lead .rl-card__body {
    padding: 22px 24px 24px;
  }
}

/* =========================================================================
   Application form (.rl-form) — inc/postulacion.php
   ========================================================================= */

.rl-form {
  max-width: 860px;
  margin: 24px auto 48px;
  color: var(--rl-text);
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
}
.rl-form.rl-form p {
  margin: 0;
}
.rl-form__note {
  margin-bottom: 8px !important;
  color: var(--rl-muted);
  font-size: 14px;
}

.rl-form__alert {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 14px 18px;
  border: 1px solid #f0c7c7;
  border-radius: 12px;
  background: var(--rl-red-soft);
  color: var(--rl-red-dark);
  font-weight: 600;
}
.rl-form__alert .bi {
  font-size: 20px;
}

.rl-form.rl-form .rl-form__section {
  margin: 0;
  padding: 32px 0 8px;
  border: 0;
  border-top: 1px solid var(--rl-line);
  min-width: 0;
}
.rl-form.rl-form .rl-form__section:first-of-type {
  border-top: 0;
}
.rl-form.rl-form .rl-form__legend {
  float: left;
  width: 100%;
  margin: 0 0 20px;
  padding: 0;
  color: var(--rl-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.rl-form__grid {
  clear: both;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}
.rl-field {
  grid-column: span 6;
  min-width: 0;
}
.rl-field--half {
  grid-column: span 3;
}
.rl-field--third {
  grid-column: span 2;
}

.rl-form.rl-form .rl-field__label {
  display: block;
  margin: 0 0 7px;
  padding: 0;
  color: var(--rl-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: normal;
}
.rl-field__req {
  color: var(--rl-red);
}

.rl-form.rl-form input[type="text"],
.rl-form.rl-form input[type="email"],
.rl-form.rl-form input[type="url"],
.rl-form.rl-form input[type="number"],
.rl-form.rl-form textarea {
  display: block;
  width: 100%;
  height: auto;
  min-height: 48px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--rl-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 28, 63, .04);
  color: var(--rl-ink);
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
  transition: border-color .15s, box-shadow .15s;
}
.rl-form.rl-form textarea {
  resize: vertical;
}
.rl-form.rl-form input:focus,
.rl-form.rl-form textarea:focus {
  outline: none;
  border-color: var(--rl-red);
  box-shadow: 0 0 0 3px var(--rl-red-soft);
}
.rl-form.rl-form .has-error input,
.rl-form.rl-form .has-error textarea {
  border-color: var(--rl-red);
}
.rl-form.rl-form ::placeholder {
  color: #a3a9b8;
}

.rl-form.rl-form input[type="file"] {
  display: block;
  width: 100%;
  padding: 18px;
  border: 1.5px dashed #cdd2dc;
  border-radius: 12px;
  background: var(--rl-soft);
  color: var(--rl-text);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.rl-form.rl-form input[type="file"]::file-selector-button {
  margin-right: 14px;
  padding: 8px 16px;
  border: 1px solid var(--rl-line);
  border-radius: 8px;
  background: #fff;
  color: var(--rl-ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.rl-form.rl-form .rl-field__help {
  margin-top: 6px;
  color: var(--rl-muted);
  font-size: 13px;
}
.rl-form.rl-form .rl-field__error {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: var(--rl-red);
  font-size: 13px;
  font-weight: 600;
}

.rl-form.rl-form .rl-consent {
  margin: 0;
  padding: 20px;
  border: 1px solid var(--rl-line);
  border-radius: 12px;
  background: var(--rl-soft);
}
.rl-form.rl-form .rl-consent .rl-field__label {
  float: left;
  width: 100%;
  margin-bottom: 14px;
  font-weight: 500;
  line-height: 1.55;
}
.rl-consent__options {
  clear: both;
  display: flex;
  gap: 12px;
}
.rl-form.rl-form .rl-consent__option {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 18px;
  border: 1px solid var(--rl-line);
  border-radius: 10px;
  background: #fff;
  color: var(--rl-ink);
  font-weight: 600;
  cursor: pointer;
}
.rl-consent__option:has(input:checked) {
  border-color: var(--rl-red);
  box-shadow: 0 0 0 3px var(--rl-red-soft);
}
.rl-consent__option input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--rl-red);
}
.has-error .rl-consent {
  border-color: var(--rl-red);
}

.rl-form__hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.rl-form__actions {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--rl-line);
}
/* Same medigo button:hover/:focus override as the explorer (see .rl-pubs). */
.rl-form.rl-form button.rl-form__submit:not(.btn),
.rl-form.rl-form button.rl-form__submit:not(.btn):hover,
.rl-form.rl-form button.rl-form__submit:not(.btn):focus {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 15px 30px;
  border: 0;
  border-radius: 999px;
  background-color: var(--rl-btn-bg, var(--rl-red));
  box-shadow: none;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
  transition: background-color .2s;
}
.rl-form__submit:hover {
  --rl-btn-bg: var(--rl-red-dark);
}
.rl-form__submit .bi {
  transition: transform .2s;
}
.rl-form__submit:hover .bi {
  transform: translateX(4px);
}

.rl-form--done {
  padding: 56px 32px;
  border: 1px solid var(--rl-line);
  border-radius: 16px;
  background: #fff;
  text-align: center;
}
.rl-form--done > .bi {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #e9f6ee;
  color: #1c7c45;
  font-size: 30px;
}
.rl-form.rl-form--done h3 {
  margin: 0 0 8px;
  color: var(--rl-ink);
  font-size: 24px;
}
.rl-form.rl-form--done p {
  color: var(--rl-text);
}

@media (max-width: 640px) {
  .rl-field--half,
  .rl-field--third {
    grid-column: span 6;
  }
  .rl-form.rl-form button.rl-form__submit:not(.btn) {
    justify-content: center;
    width: 100%;
  }
}

/* ---------- Contact form: [redlaco_contacto] (inc/contacto.php) ---------- */
.rl-form {
  --rl-form-red: #a3191c;
  --rl-form-red-bright: #d0262a;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  letter-spacing: normal;
  color: var(--rl-text);
}
.rl-form *, .rl-form *::before, .rl-form *::after { box-sizing: border-box; }
.rl-form .rl-form__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.rl-form .rl-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
}
.rl-form .rl-form__field { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.rl-form .rl-form__field--full { grid-column: 1 / -1; }
.rl-form .rl-form__field label {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--rl-ink);
}
.rl-form .rl-form__field label span { color: var(--rl-form-red); }
.rl-form.rl-form input[type="text"],
.rl-form.rl-form input[type="email"],
.rl-form.rl-form select,
.rl-form.rl-form textarea {
  width: 100%;
  min-height: 50px;
  margin: 0;
  padding: 12px 16px;
  border: 1px solid #dfe3ea;
  border-radius: 14px;
  background: var(--rl-soft);
  font: inherit;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--rl-ink);
  box-shadow: none;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.rl-form.rl-form select {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%236b7489' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
}
.rl-form.rl-form textarea { min-height: 150px; resize: vertical; }
.rl-form.rl-form input:focus,
.rl-form.rl-form select:focus,
.rl-form.rl-form textarea:focus {
  outline: none;
  border-color: var(--rl-form-red);
  background-color: #fff;
  box-shadow: 0 0 0 4px var(--rl-red-soft);
}
.rl-form .rl-form__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 24px;
}
.rl-form.rl-form .rl-form__submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  margin: 0;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rl-form-red-bright), var(--rl-form-red));
  color: #fff;
  font: inherit;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1;
  text-transform: none;
  cursor: pointer;
  box-shadow: 0 12px 26px -12px rgba(163, 25, 28, .7);
  transition: transform .3s, box-shadow .3s, opacity .2s;
}
.rl-form.rl-form .rl-form__submit:hover,
.rl-form.rl-form .rl-form__submit:focus { background: linear-gradient(135deg, var(--rl-form-red-bright), var(--rl-form-red)); color: #fff; transform: translateY(-2px); box-shadow: 0 18px 32px -12px rgba(163, 25, 28, .8); }
.rl-form.rl-form .rl-form__submit:focus-visible { outline: 2px solid var(--rl-form-red); outline-offset: 3px; }
.rl-form.rl-form .rl-form__submit:disabled { opacity: .7; cursor: progress; transform: none; }
.rl-form .rl-form__submit svg { width: 16px; height: 16px; transition: transform .3s; }
.rl-form .rl-form__submit:hover svg { transform: translateX(4px); }
.rl-form .rl-form__privacy { margin: 0; font-size: 13.5px; color: var(--rl-muted); }
.rl-form .rl-form__notice {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.5;
}
.rl-form .rl-form__notice[hidden] { display: none; }
.rl-form .rl-form__notice--success { background: #ecfdf3; border: 1px solid #b7ebcb; color: #11643a; }
.rl-form .rl-form__notice--error { background: var(--rl-red-soft); border: 1px solid #f1c9c9; color: var(--rl-red-dark); }
@media (max-width: 640px) {
  .rl-form .rl-form__grid { grid-template-columns: minmax(0, 1fr); }
  .rl-form.rl-form .rl-form__submit { width: 100%; justify-content: center; }
}

/* ---------- Single post: [redlaco_entrada] (inc/entrada.php) ---------- */
body { overflow-x: clip; }
/* Like the page header: the block spans the whole screen whatever the Elementor
   container (boxed or full width); its content is centred at 1320px inside. */
.rl-post { position: relative; width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.rl-post {
  --rl-red-bright: #d0262a;
  --rl-ease: cubic-bezier(.22, .61, .36, 1);
  --rl-text-w: 760px;
  color: var(--rl-text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  letter-spacing: normal;
  -webkit-font-smoothing: antialiased;
}
.rl-post *, .rl-post *::before, .rl-post *::after { box-sizing: border-box; }
.rl-post :where(h1, h2, figure, figcaption, nav, aside) { margin: 0; padding: 0; font-family: inherit; }
.rl-post a:focus-visible, .rl-post button:focus-visible { outline: 2px solid var(--rl-red); outline-offset: 3px; border-radius: 8px; }

/* Same layout as every RedLAco block: 1320px, gutters 32 / 24 / 20 */
.rl-post__wrap { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
.rl-post__wrap--text { max-width: calc(var(--rl-text-w) + 64px); }

/* Reading progress */
.rl-post__progress { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: 3px; pointer-events: none; }
.rl-post__progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--rl-red-bright), var(--rl-red)); transform: scaleX(0); transform-origin: left; }
.admin-bar .rl-post__progress { top: 32px; }

/* Header: red band (same as the page headers), cover card overlapping it */
.rl-post__band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  padding: 64px 0 72px;
  color: #fff;
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(255, 80, 80, .35) 0%, rgba(255, 80, 80, 0) 60%),
    radial-gradient(50% 70% at 0% 100%, rgba(40, 0, 6, .45) 0%, rgba(40, 0, 6, 0) 70%),
    linear-gradient(135deg, #c8141c 0%, #a3191c 45%, #7a1214 100%);
}
.rl-post__band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("redlaco-network.svg") right center / cover no-repeat;
  opacity: .8;
  -webkit-mask-image: linear-gradient(90deg, transparent 15%, #000 75%);
  mask-image: linear-gradient(90deg, transparent 15%, #000 75%);
}
.rl-post__head--cover .rl-post__band { padding-bottom: 200px; }
.rl-post__wrap--head { max-width: 1320px; }
.rl-post__wrap--head > * { max-width: 920px; }
.rl-post .rl-post__crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.rl-post .rl-post__crumbs a { color: rgba(255, 255, 255, .85); text-decoration: none; box-shadow: none; }
.rl-post .rl-post__crumbs a:hover { color: #fff; }
.rl-post .rl-post__crumbs span { color: rgba(255, 255, 255, .45); }
.rl-post .rl-post__title {
  margin-top: 18px;
  font-size: clamp(30px, 3.8vw, 52px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.035em;
  color: #fff;
  text-wrap: balance;
}
.rl-post .rl-post__excerpt { margin: 18px 0 0; font-size: 19px; line-height: 1.55; color: rgba(255, 255, 255, .88); text-wrap: pretty; }
.rl-post .rl-post__meta { display: flex; flex-wrap: wrap; gap: 8px 12px; margin: 26px 0 0; font-size: 14px; }
.rl-post__meta span { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); color: #fff; }
.rl-post__meta svg { width: 15px; height: 15px; }

/* Cover: shown whole over a blurred copy (flyers come in every ratio) */
.rl-post__wrap--cover { max-width: calc(var(--rl-text-w) + 2 * 56px + 2 * 32px + 64px); margin-top: -160px; position: relative; }
.rl-post__cover {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: var(--rl-soft);
  border: 6px solid #fff;
  box-shadow: 0 40px 80px -36px rgba(15, 28, 63, .55);
}
.rl-post .rl-post__cover-blur { position: absolute; inset: -10%; width: 120%; height: 120%; max-width: none; object-fit: cover; filter: blur(32px) brightness(.9); }
.rl-post .rl-post__cover-img { position: relative; display: block; width: auto; max-width: 100%; height: auto; max-height: 560px; object-fit: contain; margin: 0 auto; border-radius: 0; }
.rl-post .rl-post__cover figcaption { position: relative; padding: 10px 16px; background: rgba(255, 255, 255, .92); font-size: 13.5px; color: var(--rl-muted); }

/* Body: share rail + text */
.rl-post__body { display: grid; grid-template-columns: 56px minmax(0, var(--rl-text-w)) 56px; justify-content: center; gap: 0 32px; padding-top: 64px; padding-bottom: 32px; }
.rl-post__share { position: sticky; top: 140px; align-self: start; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.rl-post .rl-post__share-label { writing-mode: vertical-rl; transform: rotate(180deg); margin-bottom: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--rl-muted); }
.rl-post .rl-post__share a,
.rl-post.rl-post .rl-post__copy {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 1px solid var(--rl-line);
  border-radius: 50%;
  background: #fff;
  color: var(--rl-ink);
  box-shadow: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s, transform .25s var(--rl-ease);
}
.rl-post .rl-post__share a:hover,
.rl-post.rl-post .rl-post__copy:hover { background: var(--rl-red); border-color: var(--rl-red); color: #fff; transform: translateY(-2px); }
.rl-post.rl-post .rl-post__copy.is-done { background: #16a34a; border-color: #16a34a; color: #fff; }
.rl-post__share svg { width: 18px; height: 18px; }

/* ---------- .rl-prose: typography for post content ---------- */
.rl-prose { font-size: 17.5px; line-height: 1.75; color: var(--rl-text); overflow-wrap: break-word; }
.rl-prose > :first-child { margin-top: 0 !important; }
.rl-prose :where(p, ul, ol, figure, blockquote, table, pre, .wp-caption, .wp-block-image, .wp-block-embed, iframe) { margin: 0 0 1.4em; }
.rl-prose :where(h2, h3, h4, h5, h6) { margin: 1.8em 0 .6em; font-family: inherit; font-weight: 700; line-height: 1.25; letter-spacing: -.02em; color: var(--rl-ink); }
.rl-prose h2 { font-size: 1.6em; }
.rl-prose h3 { font-size: 1.3em; }
.rl-prose h4 { font-size: 1.1em; }
.rl-prose strong, .rl-prose b { color: var(--rl-ink); font-weight: 650; }
.rl-prose a { color: var(--rl-red); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; box-shadow: none; overflow-wrap: anywhere; }
.rl-prose a:hover { color: var(--rl-red-dark); text-decoration-thickness: 2px; }
.rl-prose :where(ul, ol) { padding-left: 1.3em; }
.rl-prose ul { list-style: disc; }
.rl-prose ol { list-style: decimal; }
.rl-prose li { margin: .35em 0; }
.rl-prose li::marker { color: var(--rl-red); }
.rl-prose img { display: block; max-width: 100%; height: auto; border-radius: 16px; }
.rl-prose :where(figure, .wp-caption) { max-width: 100% !important; }
.rl-prose :where(figure img, .wp-caption img, p > img) { margin: 0 auto; box-shadow: 0 24px 48px -32px rgba(15, 28, 63, .45); border: 1px solid var(--rl-line); }
.rl-prose :where(figcaption, .wp-caption-text) { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--rl-muted); text-align: center; }
.rl-prose .aligncenter { margin-left: auto; margin-right: auto; }
.rl-prose .alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 50%; }
.rl-prose .alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 50%; }
.rl-prose blockquote {
  position: relative;
  padding: 20px 24px 20px 28px;
  border-left: 4px solid var(--rl-red);
  border-radius: 0 16px 16px 0;
  background: var(--rl-red-soft);
  font-size: 1.08em;
  font-style: italic;
  color: var(--rl-ink);
}
.rl-prose blockquote > :last-child { margin-bottom: 0; }
.rl-prose hr { margin: 2.4em auto; border: 0; height: 1px; background: var(--rl-line); }
.rl-prose table { width: 100%; border-collapse: collapse; font-size: .92em; }
.rl-prose :where(th, td) { padding: 10px 12px; border: 1px solid var(--rl-line); text-align: left; }
.rl-prose th { background: var(--rl-soft); color: var(--rl-ink); }
.rl-prose :where(iframe, video) { display: block; width: 100%; max-width: 100%; border: 0; border-radius: 16px; }
.rl-prose iframe[src*="youtube"], .rl-prose iframe[src*="vimeo"] { height: auto; aspect-ratio: 16 / 9; }
.rl-prose p:empty, .rl-prose p:has(> br:only-child) { display: none; }
.rl-prose::after { content: ""; display: block; clear: both; }

/* Footer: tags, previous / next, related */
.rl-post__foot { padding-bottom: 24px; }
.rl-post .rl-post__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; }
.rl-post .rl-post__tags a { padding: 6px 12px; border-radius: 999px; background: var(--rl-soft); border: 1px solid var(--rl-line); font-size: 13.5px; font-weight: 600; color: var(--rl-text); text-decoration: none; box-shadow: none; }
.rl-post .rl-post__tags a:hover { color: var(--rl-red); border-color: var(--rl-red); }
.rl-post__adjacent { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding-top: 32px; border-top: 1px solid var(--rl-line); }
.rl-post .rl-post__adj {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--rl-line);
  text-decoration: none;
  box-shadow: none;
  transition: border-color .25s, box-shadow .3s var(--rl-ease), transform .3s var(--rl-ease);
}
.rl-post .rl-post__adj:hover { border-color: #f0d6d6; box-shadow: 0 20px 40px -28px rgba(163, 25, 28, .45); transform: translateY(-2px); }
.rl-post .rl-post__adj--next { grid-column: 2; text-align: right; }
.rl-post .rl-post__adj span { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--rl-red); }
.rl-post .rl-post__adj--next span { justify-content: flex-end; }
.rl-post .rl-post__adj svg { width: 16px; height: 16px; }
.rl-post .rl-post__adj strong { font-size: 16px; font-weight: 700; line-height: 1.35; color: var(--rl-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rl-post__related { margin-top: 72px; padding: 72px 0 48px; background: var(--rl-soft); width: 100%; }
.rl-post .rl-post__related-title { margin-bottom: 8px; font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; letter-spacing: -.03em; color: var(--rl-ink); }

@media (max-width: 1024px) {
  .rl-post__wrap { padding: 0 24px; }
  .rl-post__wrap--text { max-width: calc(var(--rl-text-w) + 48px); }
  .rl-post__body { grid-template-columns: minmax(0, var(--rl-text-w)); }
  .rl-post__share { position: static; order: 2; flex-direction: row; justify-content: flex-start; margin-top: 8px; padding-top: 24px; border-top: 1px solid var(--rl-line); }
  .rl-post .rl-post__share-label { writing-mode: horizontal-tb; transform: none; margin: 0 6px 0 0; }
}
@media (max-width: 640px) {
  .rl-post__wrap { padding: 0 20px; }
  .rl-post__wrap--text { max-width: none; }
  .rl-post__band { padding: 44px 0 52px; }
  .rl-post__head--cover .rl-post__band { padding-bottom: 120px; }
  .rl-post__wrap--cover { margin-top: -96px; }
  .rl-post .rl-post__excerpt { font-size: 17px; }
  .rl-post__cover { border-radius: 18px; border-width: 4px; }
  .rl-post__body { padding-top: 36px; }
  .rl-prose { font-size: 16.5px; }
  .rl-prose :where(.alignleft, .alignright) { float: none; margin: 0 0 1.4em; max-width: 100%; }
  .rl-post__adjacent { grid-template-columns: minmax(0, 1fr); }
  .rl-post .rl-post__adj--next { grid-column: auto; }
  .admin-bar .rl-post__progress { top: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .rl-post *, .rl-post *::before { transition: none !important; }
}

/* ---------- Shortcodes placed directly in an Elementor Shortcode widget ----------
   ([redlaco_entradas], [redlaco_directorio], [redlaco_publicaciones]): same
   content width as every RedLAco block (1320px, gutters 32 / 24 / 20), so they
   never stretch edge to edge in a full-width container. Inside our page blocks
   they're nested deeper and keep the block's own layout. */
.elementor-shortcode > :is(.rl-posts, .gsc-grid, .rl-pubs, .gsp-list) {
  box-sizing: border-box;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
}
@media (max-width: 1024px) {
  .elementor-shortcode > :is(.rl-posts, .gsc-grid, .rl-pubs, .gsp-list) { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 640px) {
  .elementor-shortcode > :is(.rl-posts, .gsc-grid, .rl-pubs, .gsp-list) { padding-left: 20px; padding-right: 20px; }
}
