/* —— Botones: verde (texto blanco) | blanco (texto + borde 1px corporativo) —— */
:root {
  --pn-btn-green: #4caf50;
  --pn-btn-corp: #682146;

  /* Eyebrows de sección (raya + texto). Cambia --pn-eyebrow-color para el tono. */
  --pn-eyebrow-color: #672146;
  --pn-eyebrow-size: 0.72rem;
  --pn-eyebrow-weight: 700;
  --pn-eyebrow-tracking: 0.12em;
  --pn-eyebrow-gap: 0.65rem;
  --pn-eyebrow-line-w: 1.75rem;
  --pn-eyebrow-line-h: 2px;
  --pn-eyebrow-margin: 0 0 0.85rem;
}

/**
 * Formato canónico de títulos de sección (home, fichas, listados):
 * pequeña línea horizontal + texto en mayúsculas.
 * Color: var(--pn-eyebrow-color) en :root.
 */
.casa-intro__eyebrow,
.pagina-intro__eyebrow,
.actividad-ficha__eyebrow,
.actividad-rel__eyebrow,
.pn-home-fundacion__eyebrow,
.pn-home-espacios__eyebrow,
.pn-home-news__eyebrow,
.pn-home-mapa__eyebrow,
.pn-home-videos__eyebrow,
.pn-home-proyectos__eyebrow,
.pn-home-redes__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--pn-eyebrow-gap);
  margin: var(--pn-eyebrow-margin);
  font-size: var(--pn-eyebrow-size);
  font-weight: var(--pn-eyebrow-weight);
  letter-spacing: var(--pn-eyebrow-tracking);
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--pn-eyebrow-color);
}

.casa-intro__eyebrow::before,
.actividad-ficha__eyebrow::before,
.actividad-rel__eyebrow::before,
.pn-home-fundacion__eyebrow::before,
.pn-home-espacios__eyebrow::before,
.pn-home-news__eyebrow::before,
.pn-home-mapa__eyebrow::before,
.pn-home-videos__eyebrow::before,
.pn-home-proyectos__eyebrow::before,
.pn-home-redes__eyebrow::before {
  content: "";
  width: var(--pn-eyebrow-line-w);
  height: var(--pn-eyebrow-line-h);
  background: currentColor;
  flex: 0 0 auto;
}

/* Página CMS: la raya es un span .pagina-intro__dash (no ::before) */
.pagina-intro__dash {
  display: inline-block;
  width: var(--pn-eyebrow-line-w);
  height: var(--pn-eyebrow-line-h);
  flex: 0 0 auto;
  background: currentColor;
  border-radius: 1px;
}

.tj-primary-btn,
a.tj-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.72rem 1.35rem;
  border-radius: 999px;
  line-height: 1;
  overflow: visible;
  white-space: nowrap;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--pn-btn-green);
  background-color: var(--pn-btn-green);
  color: #fff !important;
  box-shadow: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.tj-primary-btn:hover,
.tj-primary-btn:focus-visible,
a.tj-primary-btn:hover,
a.tj-primary-btn:focus-visible {
  background-color: #fff;
  border-color: var(--pn-btn-corp);
  color: var(--pn-btn-corp) !important;
  transform: translateY(-1px);
}

/* Variante blanca (texto + borde corporativo) */
.tj-primary-btn.btn-white,
.tj-primary-btn.transparent-btn,
a.tj-primary-btn.btn-white,
a.tj-primary-btn.transparent-btn {
  background-color: #fff;
  border: 1px solid var(--pn-btn-corp);
  color: var(--pn-btn-corp) !important;
}

.tj-primary-btn.btn-white:hover,
.tj-primary-btn.btn-white:focus-visible,
.tj-primary-btn.transparent-btn:hover,
.tj-primary-btn.transparent-btn:focus-visible,
a.tj-primary-btn.btn-white:hover,
a.tj-primary-btn.btn-white:focus-visible,
a.tj-primary-btn.transparent-btn:hover,
a.tj-primary-btn.transparent-btn:focus-visible {
  background-color: var(--pn-btn-corp);
  border-color: var(--pn-btn-corp);
  color: #fff !important;
}

.tj-primary-btn .btn-text,
.tj-primary-btn .btn-text span,
.tj-primary-btn .btn-icon,
.tj-primary-btn .btn-icon i {
  color: inherit !important;
}

.tj-primary-btn .btn-text {
  overflow: visible;
}

.tj-primary-btn .btn-text span {
  display: inline;
  line-height: 1;
  text-shadow: none;
  transform: none;
  backface-visibility: visible;
  transition: none;
}

.tj-primary-btn:hover .btn-text span {
  transform: none;
  text-shadow: none;
}

.tj-primary-btn .btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto !important;
  height: auto !important;
  min-width: 0;
  padding: 0;
  margin: 0;
  background: transparent !important;
  border-radius: 0;
  font-size: 1.05em;
  line-height: 1;
  overflow: visible;
}

.tj-primary-btn .btn-icon i {
  transform: none !important;
  transition: transform 0.2s ease;
}

.tj-primary-btn:hover .btn-icon i {
  transform: translateX(3px) !important;
}

.header-right-item .tj-primary-btn .btn-icon {
  width: auto !important;
  height: auto !important;
}

/* Canal ético (topbar): blanco → hover corporativo */
.pn-topbar__ethics {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--pn-btn-corp);
  background: #fff;
  color: var(--pn-btn-corp) !important;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pn-topbar__ethics:hover,
.pn-topbar__ethics:focus-visible {
  filter: none;
  background: var(--pn-btn-corp);
  border-color: var(--pn-btn-corp);
  color: #fff !important;
}

/* —— Header: caja visible + logo —— */

/* Ritmo vertical: menos aire vacío antes del footer (main.css deja 80–100px) */
.section-gap {
  padding-bottom: 2.75rem;
}
@media only screen and (min-width: 992px) and (max-width: 1199px) {
  .section-gap {
    padding-bottom: 2.5rem;
  }
}
@media only screen and (min-width: 768px) and (max-width: 991px),
  only screen and (min-width: 576px) and (max-width: 767px),
  (max-width: 575px) {
  .section-gap {
    padding-bottom: 2.25rem;
  }
}

.header-area.header-1 {
  margin-top: 12px;
  margin-bottom: 16px;
}

.header-area.header-1 .header-wrapper {
  border-radius: 14px;
  border: 1px solid rgba(26, 40, 36, 0.08);
  box-shadow: 0 8px 28px rgba(26, 40, 36, 0.1);
  padding-block: 2px;
}

.header-area.header-1 .site_logo .logo {
  max-width: 220px;
}

.header-area.header-1 .site_logo .logo img {
  width: 100%;
  height: auto;
  display: block;
}

.header-area.header-1 .hamburger_logo .mobile_logo img {
  max-width: 200px;
  height: auto;
}

.hamburger_logo .mobile_logo {
  max-width: 220px;
  padding: 6px;
  background: #fff;
  border-radius: 10px;
  border: 2px solid #fff;
  box-sizing: border-box;
}

.hamburger_logo .mobile_logo img {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

/* Offcanvas por encima del header (mega-menú usa z-index 10050) */
.tj-offcanvas-area,
.hamburger-area {
  z-index: 10100;
}
.body-overlay {
  z-index: 10090;
}

/* —— Preloader: logo SVG —— */
.tj-preloader-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}
.tj-preloader-logo {
  width: clamp(5.5rem, 14vw, 7.5rem);
  height: auto;
  display: block;
  animation: tj-preloader-logo-pulse 1.4s ease-in-out infinite;
}
.tj-preloader.is-loaded .tj-preloader-logo {
  animation: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
@keyframes tj-preloader-logo-pulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

.footer-logo {
  max-width: 200px;
}

.footer-logo img {
  width: 100%;
  height: auto;
  display: block;
}

/* Legacy Bexon footer shapes (ya no se usan en pn-footer) */
.tj-footer-section .bg-shape-1,
.tj-footer-section .bg-shape-2 {
  display: none;
}

/* —— Barra top —— */
.header-area.header-1 .pn-topbar {
  background: #682146;
  border-radius: 12px 12px 0 0;
  margin-bottom: 0;
  padding: 0 18px;
}

.header-area.header-1 .header-wrapper {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.pn-topbar__inner {
  gap: 12px;
  min-height: 40px;
  padding: 6px 0;
}

.pn-topbar__left,
.pn-topbar__right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.pn-topbar__social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.pn-topbar__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.pn-topbar__social a:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.pn-topbar__contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.pn-topbar__contact i {
  font-size: 14px;
  opacity: 0.9;
}

.pn-topbar__contact:hover {
  color: #fff;
}

@media (max-width: 575.98px) {
  .header-area.header-1 .pn-topbar {
    padding: 0 12px;
  }

  .pn-topbar__inner {
    justify-content: space-between;
  }

  .pn-topbar__contact span {
    display: none;
  }

  .pn-topbar__contact i {
    font-size: 15px;
  }
}

.tj-blog-nav-section {
  padding: 0 0 80px;
}

.tj-post__navigation.pn-thumbs {
  margin: 0;
  gap: 24px;
  align-items: stretch;
}

.tj-post__navigation.pn-thumbs .tj-nav__post {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
}

.tj-post__navigation.pn-thumbs .tj-nav__post.next {
  justify-content: flex-end;
}

.tj-post__navigation.pn-thumbs .tj-nav-post__grid {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.tj-post__navigation.pn-thumbs .pn-thumb-link {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--tj-color-heading-primary);
  max-width: 100%;
  min-width: 0;
}

.tj-post__navigation.pn-thumbs .pn-thumb-link--next {
  flex-direction: row;
  text-align: right;
}

.tj-post__navigation.pn-thumbs .pn-thumb {
  flex: 0 0 88px;
  width: 88px;
  height: 88px;
  border-radius: 10px;
  overflow: hidden;
  background: #e8e8e8;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.tj-post__navigation.pn-thumbs .pn-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.tj-post__navigation.pn-thumbs .pn-thumb-link:hover .pn-thumb img {
  transform: scale(1.06);
}

.tj-post__navigation.pn-thumbs .pn-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}

.tj-post__navigation.pn-thumbs .pn-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--tj-color-theme-primary, #0d5c63);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.tj-post__navigation.pn-thumbs .pn-thumb-link--next .pn-label {
  justify-content: flex-end;
}

.tj-post__navigation.pn-thumbs .pn-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--tj-color-heading-primary);
}

@media (max-width: 767px) {
  .tj-blog-nav-section {
    padding-bottom: 50px;
  }

  .tj-post__navigation.pn-thumbs {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .tj-post__navigation.pn-thumbs .tj-nav-post__grid {
    order: -1;
    justify-content: center;
  }

  .tj-post__navigation.pn-thumbs .tj-nav__post.next {
    justify-content: flex-start;
  }

  .tj-post__navigation.pn-thumbs .pn-thumb-link--next {
    flex-direction: row-reverse;
    text-align: left;
    width: 100%;
  }

  .tj-post__navigation.pn-thumbs .pn-thumb-link--next .pn-label {
    justify-content: flex-start;
  }

  .tj-post__navigation.pn-thumbs .pn-thumb {
    flex-basis: 72px;
    width: 72px;
    height: 72px;
  }
}

/* Filtros listados: caja verde clara + fila centrada */
.senderos-toolbar {
  margin-bottom: 40px;
  padding: 28px 32px;
  background: #e9efea;
  border-radius: 14px;
  box-shadow: none;
}

.senderos-filters > .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  column-gap: 1rem;
  row-gap: 1rem;
  --bs-gutter-x: 0;
  margin-left: 0;
  margin-right: 0;
}

.senderos-filters > .row > [class*="col-"] {
  flex: 0 1 220px;
  width: 220px;
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.senderos-filters > .row > .senderos-filters-actions {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
}

/* Senderos: más campos → un poco más estrechos, siguen centrados */
.senderos-filters--dense > .row > [class*="col-"]:not(.senderos-filters-actions):not(.senderos-filters__espacio) {
  flex: 0 1 180px;
  width: 180px;
}

.senderos-filters--dense > .row > .col-xl-3,
.senderos-filters > .row > .senderos-filters__espacio {
  flex: 1 1 280px;
  width: 280px;
  min-width: min(280px, 100%);
}

.senderos-filters .form-label {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--tj-color-heading-primary, #1a1a1a);
}

.senderos-filters .form-control,
.senderos-filters .form-select,
.senderos-filters .nice-select {
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background-color: #fff !important;
  font-size: 13px;
  line-height: 40px;
  box-shadow: none;
  box-sizing: border-box;
}

/* nice-select hereda .form-select → quitar flecha Bootstrap (doble chevron) */
.senderos-filters .nice-select,
.senderos-filters .nice-select.form-select {
  background-image: none !important;
  -webkit-appearance: none;
  appearance: none;
}

.senderos-filters .form-control {
  padding: 0 12px;
  line-height: 1.25;
}

.senderos-filters .form-control::placeholder {
  font-size: 13px;
  opacity: 0.65;
}

.senderos-filters .form-select:not(.nice-select) {
  padding: 0 2.2rem 0 12px;
  background-position: right 0.75rem center;
  background-size: 12px 10px;
}

.senderos-filters .nice-select {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0 32px 0 12px;
  float: none;
  line-height: 1.25;
}

.senderos-filters .nice-select:after {
  border-bottom-width: 2px;
  border-inline-end-width: 2px;
  width: 6px;
  height: 6px;
  margin-top: -4px;
  inset-inline-end: 12px;
  border-color: #6b0e47;
}

.senderos-filters .nice-select .current {
  line-height: 1.25;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

/* Listas largas (espacios, provincias…): scroll interno, sin alargar la página */
.senderos-filters .nice-select {
  overflow: visible;
  z-index: 2;
}
.senderos-filters .nice-select.open {
  z-index: 30;
}
.senderos-filters .nice-select .list {
  max-height: min(280px, 45vh);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  width: 100%;
  z-index: 40;
}
.senderos-filters .nice-select .list .option {
  line-height: 1.35;
  min-height: 2.25rem;
  padding-block: 0.45rem;
  white-space: normal;
}

/* Resto de nice-select del sitio (agenda, formularios…) */
.nice-select .list {
  max-height: min(280px, 45vh);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.agenda-filters .nice-select.open,
.senderos-filters .nice-select.open {
  z-index: 30;
}

.senderos-filters-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-height: 40px;
  padding-bottom: 0;
}

.senderos-filters-actions .tj-primary-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  padding: 0.55rem 1.1rem;
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
  white-space: nowrap;
  gap: 0.45rem;
  border: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.senderos-filters-actions .tj-primary-btn .btn-text {
  font-size: 13px;
}

.senderos-filters-actions .tj-primary-btn .btn-icon {
  flex-shrink: 0;
  width: auto;
  height: auto;
  font-size: 1em;
  border-radius: 0;
  background: transparent;
}

.senderos-clear {
  flex: 0 0 auto;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--tj-color-theme-primary, #672146);
  white-space: nowrap;
  line-height: 40px;
  margin: 0;
  padding: 0;
  text-decoration: none;
}

.senderos-clear:hover {
  color: var(--tj-color-theme-primary, #672146);
  text-decoration: underline;
}

.senderos-clear[hidden] {
  display: none !important;
}

@media (max-width: 991.98px) {
  .senderos-filters-actions {
    justify-content: flex-start;
  }
}

[data-live-results].is-loading {
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.senderos-toolbar-links {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.listado-cms-intro + .senderos-toolbar-links {
  margin-top: 0;
  margin-bottom: 2rem;
}

.pn-listado-mapa {
  scroll-margin-top: 120px;
}

.pn-listado-mapa__intro .pagina-intro__title {
  margin-bottom: 0.75rem;
}

.senderos-toolbar-links .tj-primary-btn {
  display: inline-flex;
  align-items: center;
  height: auto;
  min-height: 0;
  padding: 0.72rem 1.35rem;
  gap: 0.45rem;
}

.senderos-toolbar-links .tj-primary-btn .btn-icon {
  flex-shrink: 0;
  width: auto;
  height: auto;
  font-size: 1em;
  border-radius: 0;
  background: transparent;
}

.sendero-card {
  height: 100%;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
}

.sendero-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e8e8e8;
}

.sendero-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.sendero-card:hover .sendero-card__media img {
  transform: scale(1.05);
}

.sendero-card__badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(13, 92, 99, 0.92);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.sendero-card__body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.sendero-card__code {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--tj-color-theme-primary, #0d5c63);
}

.sendero-card__title {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
}

.sendero-card__title a {
  color: inherit;
  text-decoration: none;
}

.sendero-card__title a:hover {
  color: var(--tj-color-theme-primary, #0d5c63);
}

.sendero-card__meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sendero-card__meta li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  line-height: 1.4;
  color: #666;
}

.sendero-card__meta i {
  flex: 0 0 auto;
  margin-top: 1px;
  width: 1.1em;
  text-align: center;
  color: #8c3891;
  font-size: 14px;
}

.sendero-card__body .tj-primary-btn {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  height: auto;
  min-height: 0;
  padding: 0.65rem 1.2rem;
  gap: 0.45rem;
  font-size: 0.9rem;
}

.sendero-card__body .tj-primary-btn .btn-icon {
  width: auto;
  height: auto;
  font-size: 1em;
  border-radius: 0;
  background: transparent;
}

.senderos-mapa-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.senderos-mapa-frame {
  position: relative;
  width: 100%;
  min-height: 70vh;
  border-radius: 12px;
  overflow: hidden;
  background: #e8e8e8;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.senderos-mapa-frame iframe {
  display: block;
  width: 100%;
  height: 70vh;
  min-height: 480px;
  border: 0;
}

@media (max-width: 767px) {
  .senderos-toolbar {
    padding: 18px;
  }

  .senderos-mapa-frame,
  .senderos-mapa-frame iframe {
    min-height: 420px;
    height: 60vh;
  }
}

/* Ficha detalle sendero */
.sendero-detail {
  padding-top: 40px;
}

.sendero-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #0f2f33;
  height: 420px;
  margin-bottom: 28px;
}

.sendero-hero__media {
  height: 100%;
  min-height: 0;
  background: #1a4449;
  overflow: hidden;
}

.sendero-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.sendero-hero__panel {
  padding: 40px 36px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.sendero-hero__code {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sendero-hero__title {
  margin: 0;
  color: #fff;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  line-height: 1.2;
}

.sendero-hero__places {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  opacity: 0.92;
}

.sendero-hero__places span {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
}

.sendero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.sendero-stat {
  background: #fff;
  border-radius: 12px;
  padding: 18px 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.sendero-stat--wide {
  grid-column: span 1;
}

.sendero-stat__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #7a7a7a;
  margin-bottom: 6px;
}

.sendero-stat__value {
  display: block;
  font-size: 18px;
  line-height: 1.3;
  color: #122;
}

.sendero-main {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

.sendero-lead {
  font-size: 1.15rem;
  line-height: 1.55;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 24px;
}

.sendero-wikiloc {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  margin-bottom: 28px;
  border-radius: 12px;
  text-decoration: none;
  background: linear-gradient(90deg, #0d5c63 0%, #147a74 100%);
  color: #fff;
}

.sendero-wikiloc__label {
  font-weight: 700;
  font-size: 15px;
}

.sendero-wikiloc__hint {
  flex: 1;
  font-size: 13px;
  opacity: 0.85;
}

.sendero-wikiloc i {
  font-size: 18px;
}

.sendero-wikiloc:hover {
  color: #fff;
  filter: brightness(1.05);
}

.sendero-body {
  margin-bottom: 28px;
}

/* Zona de contenido HTML (CMS / fichas) — tipografía canónica del cuerpo */
.zonatexto {
  color: #364e52;
  font-size: 1rem; /* 16px */
  line-height: 1.65;
  overflow-wrap: anywhere;
  font-family: var(--tj-ff-body);
}

/* Anula tipografías y estilos pegados desde Word / CMS antiguo */
.zonatexto,
.zonatexto *:not(i):not(.fa):not([class^="fa-"]):not([class*=" fa-"]):not([class^="tji-"]):not([class*=" tji-"]),
.noticia-sumario,
.noticia-sumario * {
  font-family: var(--tj-ff-body) !important;
}

.zonatexto p,
.zonatexto span,
.zonatexto li,
.zonatexto td,
.zonatexto th,
.zonatexto div,
.zonatexto font {
  color: inherit;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  white-space: normal !important;
  letter-spacing: normal !important;
  word-spacing: normal !important;
  text-indent: 0 !important;
  text-align: inherit !important;
  float: none !important;
}

/* Párrafos del CMS: mismo tamaño e interlineado en todo el sitio */
.zonatexto p,
.zonatexto li,
.casa-territorio__body p,
.post-details-wrapper .blog-text.zonatexto p,
.pagina-body.zonatexto p,
.listado-cms-intro .zonatexto p {
  font-size: 1rem !important;
  line-height: 1.65 !important;
}

.zonatexto span,
.zonatexto font {
  font-size: inherit !important;
  line-height: inherit !important;
  font-weight: inherit;
}

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

.zonatexto > *:last-child {
  margin-bottom: 0;
}

.zonatexto p {
  margin: 0 0 1.1em;
}

.post-details-wrapper .blog-text.zonatexto p {
  margin-bottom: 1.1em;
}

.zonatexto a {
  color: var(--tj-color-theme-primary, #0d9488);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.zonatexto a:hover {
  color: #0f2f33;
}

.zonatexto h2,
.zonatexto h3,
.zonatexto h4,
.zonatexto h5,
.zonatexto h6 {
  color: #0f2f33;
  line-height: 1.3;
  margin: 1.4em 0 0.65em;
}

.zonatexto h2 {
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 700;
}

.zonatexto h3 {
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  font-weight: 700;
}

.zonatexto h4 {
  font-size: 1.1rem;
  font-weight: 600;
}

.zonatexto h5,
.zonatexto h6 {
  font-size: 1rem;
  font-weight: 600;
}

/* Listas CMS: misma viñeta en todas las fichas + sangría en todas las líneas */
.zonatexto ul,
.zonatexto ol,
.post-details-wrapper .blog-text.zonatexto ul,
.post-details-wrapper .blog-text.zonatexto ol,
.pagina-body.zonatexto ul,
.pagina-body.zonatexto ol,
.casa-territorio__body.zonatexto ul,
.casa-territorio__body.zonatexto ol {
  margin: 0 0 1.2em;
  padding-left: 0 !important;
  padding-inline-start: 0 !important;
  list-style: none !important;
  columns: auto !important;
  -webkit-columns: auto !important;
  -moz-columns: auto !important;
}

.zonatexto ul > li,
.zonatexto ol > li,
.post-details-wrapper .blog-text.zonatexto ul > li,
.post-details-wrapper .blog-text.zonatexto ol > li {
  position: relative;
  display: block;
  margin: 0 0 0.55em;
  padding-left: 1.35em;
  font-size: 1rem !important;
  line-height: 1.65 !important;
  color: inherit;
  font-weight: inherit;
}

.zonatexto ul > li:last-child,
.zonatexto ol > li:last-child {
  margin-bottom: 0;
}

.zonatexto ul > li::before {
  content: "";
  position: absolute;
  left: 0.2em;
  top: 0.62em;
  width: 0.38em;
  height: 0.38em;
  border-radius: 50%;
  background: #672146;
}

.zonatexto ol {
  counter-reset: zonatexto-ol;
}

.zonatexto ol > li {
  counter-increment: zonatexto-ol;
}

.zonatexto ol > li::before {
  content: counter(zonatexto-ol) ".";
  position: absolute;
  left: 0;
  top: 0;
  width: 1.2em;
  font-weight: 700;
  font-size: 0.95em;
  line-height: 1.65;
  color: #672146;
  text-align: start;
}

.zonatexto ul ul,
.zonatexto ol ol,
.zonatexto ul ol,
.zonatexto ol ul {
  margin: 0.45em 0 0.35em;
}

.zonatexto ul ul > li::before {
  background: #1a4d32;
  width: 0.3em;
  height: 0.3em;
  top: 0.68em;
}

.zonatexto strong,
.zonatexto b {
  /* color: #0f2f33; */
  font-weight: 700;
}

.zonatexto blockquote {
  margin: 1.2em 0;
  padding: 0.85em 1.1em;
  border-inline-start: 3px solid var(--tj-color-theme-primary, #672146);
  background: rgba(103, 33, 70, 0.06);
  border-radius: 0 10px 10px 0;
  color: #2f3a3f;
  font-size: 1.02rem;
  line-height: 1.65;
}

.zonatexto blockquote p {
  margin: 0 0 0.65em;
}

.zonatexto blockquote p:last-child {
  margin-bottom: 0;
}

.noticia-sumario {
  font-weight: 500;
}

.zonatexto img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 0.75em 0;
}

/* Noticias: imágenes de portada/cuerpo a ancho completo (no el logo del sumario) */
.post-details-wrapper .blog-images,
.post-details-wrapper .image-box,
.post-details-wrapper .images-wrap {
  width: 100%;
}
.post-details-wrapper .blog-images {
  position: relative;
  margin: 0 0 1.25rem;
  border-radius: 14px;
  overflow: hidden;
  background: #e8ecef;
}
.post-details-wrapper .blog-images img,
.post-details-wrapper .image-box img,
.post-details-wrapper .blog-text img:not(.pagina-quote__logo),
.post-details-wrapper .zonatexto img:not(.pagina-quote__logo) {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  object-fit: cover;
}
.post-details-wrapper .blog-images figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(40, 48, 52, 0.72);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  max-width: calc(100% - 28px);
}

/* Logo del sumario: tamaño fijo, no heredar el 100% de las fotos */
.post-details-wrapper .pagina-quote__logo,
.pagina-quote__logo {
  display: block;
  flex: 0 0 auto;
  width: 2.35rem !important;
  max-width: 2.35rem !important;
  height: auto !important;
  object-fit: contain !important;
  margin: 0.15em 0 0;
  border-radius: 0;
}

/* Tablas del CMS (TinyMCE / contenido legado) */
.zonatexto table {
  width: 100%;
  max-width: 100%;
  margin: 1.35em 0;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #2f3a3f;
  background: #fff;
  border: 1px solid #d9e2dc;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(26, 36, 40, 0.05);
}

.zonatexto table caption {
  caption-side: top;
  text-align: start;
  font-size: 0.8rem;
  font-weight: 600;
  color: #672146;
  margin-bottom: 0.45rem;
}

.zonatexto table th,
.zonatexto table td {
  padding: 0.45rem 0.65rem;
  border: 0;
  border-bottom: 1px solid #e4ebe6;
  border-inline-end: 1px solid #eef2ef;
  text-align: start;
  vertical-align: top;
}

.zonatexto table th:last-child,
.zonatexto table td:last-child {
  border-inline-end: 0;
}

.zonatexto table tr:last-child th,
.zonatexto table tr:last-child td {
  border-bottom: 0;
}

/* Encabezados reales */
.zonatexto table thead th,
.zonatexto table th {
  background: #f3eaef;
  color: #672146;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-bottom: 1px solid #e2d0da;
  border-inline-end-color: #e8d7e0;
  vertical-align: middle;
}

/* Primera fila como cabecera (contenido legado sin <th>) */
.zonatexto table:not(:has(thead)):not(:has(th)) > tbody > tr:first-child > td,
.zonatexto table:not(:has(thead)):not(:has(th)) > tr:first-child > td {
  background: #f3eaef;
  color: #672146;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-bottom: 1px solid #e2d0da;
  border-inline-end-color: #e8d7e0;
  vertical-align: middle;
}

.zonatexto table:not(:has(thead)):not(:has(th)) > tbody > tr:first-child > td strong,
.zonatexto table:not(:has(thead)):not(:has(th)) > tbody > tr:first-child > td b,
.zonatexto table:not(:has(thead)):not(:has(th)) > tr:first-child > td strong,
.zonatexto table:not(:has(thead)):not(:has(th)) > tr:first-child > td b {
  color: inherit;
  font-weight: 700;
}

.zonatexto table tbody tr:nth-child(even) td {
  background: #f7faf6;
}

.zonatexto table:not(:has(thead)):not(:has(th)) > tbody > tr:first-child:nth-child(even) > td,
.zonatexto table:not(:has(thead)):not(:has(th)) > tr:first-child:nth-child(even) > td {
  background: #f3eaef;
}

.zonatexto table tbody tr:hover td {
  background: #eef5ea;
}

.zonatexto table:not(:has(thead)):not(:has(th)) > tbody > tr:first-child:hover > td,
.zonatexto table:not(:has(thead)):not(:has(th)) > tr:first-child:hover > td {
  background: #f3eaef;
}

.zonatexto table ul,
.zonatexto table ol {
  margin: 0.15em 0 0.15em 1.1em;
  padding: 0;
}

.zonatexto table li {
  margin: 0.15em 0;
}

.zonatexto table p {
  margin: 0 0 0.4em;
}

.zonatexto table p:last-child {
  margin-bottom: 0;
}

@media (max-width: 767.98px) {
  .zonatexto {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .zonatexto table {
    font-size: 0.74rem;
    min-width: 28rem;
  }
}

.zonatexto iframe {
  max-width: 100%;
}

/* Meta Lugar/Fecha en ficha de noticia: caben textos largos (fecha completa) */
.post-details-wrapper .blog-category-two .category-item {
  width: auto;
  flex: 1 1 0;
  min-width: 0;
  flex-wrap: nowrap;
  align-items: flex-start;
}
.post-details-wrapper .blog-category-two .category-item .cate-icons {
  flex-shrink: 0;
}
.post-details-wrapper .blog-category-two .category-item .cate-text {
  min-width: 0;
  flex: 1 1 auto;
}
.post-details-wrapper .blog-category-two .category-item .text {
  line-height: 1.35;
  overflow-wrap: break-word;
  word-break: normal;
  white-space: normal;
}

@media only screen and (max-width: 767px) {
  .post-details-wrapper .blog-category-two .category-item {
    flex: 1 1 100%;
    width: 100%;
  }
}

/* Últimas noticias (sidebar ficha): miniatura cuadrada, arriba, título compacto */
.tj-sidebar-widget.tj-recent-posts ul li {
  align-items: flex-start;
}
.tj-sidebar-widget.tj-recent-posts .post-thumb {
  width: 72px;
  height: 72px;
  aspect-ratio: 1 / 1;
}
.tj-sidebar-widget.tj-recent-posts .post-thumb a {
  display: block;
  width: 100%;
  height: 100%;
}
.tj-sidebar-widget.tj-recent-posts .post-thumb a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tj-sidebar-widget.tj-recent-posts .post-content .post-title {
  font-size: 14px;
  line-height: 1.35;
  margin-bottom: 6px;
}

/* Evitar estilos de blog-text del template (listas en 2 columnas, sin bullets) */
.post-details-wrapper .blog-text.zonatexto ul,
.post-details-wrapper .blog-text.zonatexto ol {
  columns: auto !important;
}

.sendero-avri {
  margin: 28px 0 0;
  padding-top: 8px;
}

.sendero-avri .casa-territorio__title {
  margin-bottom: 14px;
}

.sendero-avri__embed {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: #e9efea;
}

.sendero-avri__embed iframe {
  display: block;
  width: 100% !important;
  max-width: 100%;
  min-height: 400px;
  border: 0;
  border-radius: 12px;
}

.sendero-avri h3,
.sendero-map-block__head h3,
.sendero-aside__title {
  margin: 0 0 14px;
  font-size: 1.15rem;
}

.sendero-map-section {
  padding: 0 0 40px;
}

.sendero-map-box {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

.sendero-map-section .sendero-map-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.sendero-map-section .sendero-map-block__head h3 {
  margin: 0;
  font-size: 1.15rem;
}

.sendero-map-section .sendero-map-block__head a {
  font-size: 14px;
  font-weight: 600;
  color: var(--tj-color-theme-primary, #0d5c63);
}

.sendero-map-frame {
  border-radius: 12px;
  overflow: hidden;
  background: #e8e8e8;
  min-height: 520px;
}

.sendero-map-frame iframe {
  display: block;
  width: 100%;
  height: 60vh;
  min-height: 520px;
  border: 0;
}

.sendero-aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sendero-aside__box {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

.sendero-resource-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sendero-resource-list li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f4f7f7;
  text-decoration: none;
  color: #1a1a1a;
  transition: background 0.2s ease, color 0.2s ease;
}

.sendero-resource-list li a:hover {
  background: #0d5c63;
  color: #fff;
}

.sendero-resource-list__icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 92, 99, 0.12);
  color: #0d5c63;
}

.sendero-resource-list li a:hover .sendero-resource-list__icon {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.sendero-resource-list__text {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.sendero-resource-list__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1;
}

.sendero-resource-list__meta {
  font-size: 0.78rem;
  color: #6a757c;
  font-weight: 500;
  line-height: 1.2;
}

.sendero-resource-list li a:hover .sendero-resource-list__meta {
  color: rgba(255, 255, 255, 0.8);
}

.sendero-aside__back {
  align-self: flex-start;
}

/* Banners centros relacionados (ficha espacio) */
.espacio-centros-box {
  padding-bottom: 18px;
}

.espacio-centros-banners {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.espacio-centro-banner {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #12343a;
  color: #fff;
  text-decoration: none;
  min-height: 96px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.espacio-centro-banner:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(18, 52, 58, 0.22);
}

.espacio-centro-banner__media {
  display: block;
  height: 100%;
  min-height: 96px;
  overflow: hidden;
  background: #1a4449;
}

.espacio-centro-banner__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.espacio-centro-banner__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 12px 14px;
  min-width: 0;
}

.espacio-centro-banner__cat {
  display: inline-flex;
  align-self: flex-start;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.espacio-centro-banner__title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}

.espacio-centro-banner__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  opacity: 0.85;
}

@media (max-width: 991px) {
  .sendero-hero {
    grid-template-columns: 1fr;
    height: auto;
  }

  .sendero-hero__media {
    height: 260px;
  }

  .sendero-hero__media img {
    height: 100%;
  }

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

@media (max-width: 575px) {
  .sendero-main {
    padding: 22px;
  }

  .sendero-stats {
    grid-template-columns: 1fr;
  }

  .sendero-wikiloc {
    flex-wrap: wrap;
  }

  .sendero-map-box {
    padding: 16px;
  }

  .sendero-map-frame,
  .sendero-map-frame iframe {
    min-height: 400px;
    height: 50vh;
  }
}

/* Proyectos cards + hero + mega feature */
.proyecto-card {
  height: 100%;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
}

.proyecto-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e8e8e8;
}

.proyecto-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.proyecto-card:hover .proyecto-card__media img {
  transform: scale(1.05);
}

.proyecto-card__badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(13, 92, 99, 0.92);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.proyecto-card__body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.proyecto-card__cat {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--tj-color-theme-primary, #0d5c63);
}

.proyecto-card__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.proyecto-card__title a {
  color: inherit;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.proyecto-card__title a:hover {
  color: var(--tj-color-theme-primary, #0d5c63);
}

.proyecto-card__meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: #666;
}

.proyecto-card__body .text-btn {
  margin-top: auto;
  padding-top: 8px;
}

.proyecto-hero {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #12343a;
  height: 420px;
  margin-bottom: 28px;
}

.proyecto-hero__media {
  position: relative;
  height: 100%;
  min-height: 0;
  background: #1a4449;
  overflow: hidden;
}

.proyecto-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.proyecto-hero__caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 13px;
}

.proyecto-hero__panel {
  padding: 36px 32px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.proyecto-hero__code {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.proyecto-hero__title {
  margin: 0;
  color: #fff;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  line-height: 1.25;
}

.proyecto-hero__places {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  opacity: 0.92;
}

.proyecto-hero__places span {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
}

.proyecto-hero__places a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mainmenu ul > li > .mega-menu-pn .proyectos-mega-feature,
.mobile_menu ul > li > .mega-menu-pn .proyectos-mega-feature {
  position: relative;
  min-height: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.mainmenu ul > li > .mega-menu-pn .proyectos-mega-feature--photo,
.mobile_menu ul > li > .mega-menu-pn .proyectos-mega-feature--photo {
  background: #1a2428;
}

.mainmenu ul > li > .mega-menu-pn .proyectos-mega-feature__bg,
.mobile_menu ul > li > .mega-menu-pn .proyectos-mega-feature__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.mainmenu ul > li > .mega-menu-pn .proyectos-mega-feature__bg img,
.mobile_menu ul > li > .mega-menu-pn .proyectos-mega-feature__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mainmenu ul > li > .mega-menu-pn .proyectos-mega-feature__bg::after,
.mobile_menu ul > li > .mega-menu-pn .proyectos-mega-feature__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 22, 20, 0.35) 0%,
    rgba(15, 22, 20, 0.55) 45%,
    rgba(15, 22, 20, 0.82) 100%
  );
}

.mainmenu ul > li > .mega-menu-pn .proyectos-mega-feature .feature-content,
.mobile_menu ul > li > .mega-menu-pn .proyectos-mega-feature .feature-content {
  position: relative;
  z-index: 1;
}

.mainmenu ul > li > .mega-menu-pn .proyectos-mega-feature .feature-content .title,
.mobile_menu ul > li > .mega-menu-pn .proyectos-mega-feature .feature-content .title {
  font-size: clamp(1.35rem, 1.7vw, 1.7rem);
  line-height: 1.15;
  margin-bottom: 8px;
  max-width: 100%;
  word-break: normal;
  overflow-wrap: anywhere;
}

.mainmenu ul > li > .mega-menu-pn .proyectos-mega-feature .feature-content > span,
.mobile_menu ul > li > .mega-menu-pn .proyectos-mega-feature .feature-content > span {
  display: block;
  font-size: 14px;
  line-height: 1.35;
  margin-bottom: 18px;
  max-width: 16em;
}

.mainmenu ul > li > .mega-menu-pn .proyectos-mega-feature .tj-primary-btn,
.mobile_menu ul > li > .mega-menu-pn .proyectos-mega-feature .tj-primary-btn {
  margin-top: 4px;
}

.mega-menu-list .mega-menu-badge {
  margin-left: 6px;
  vertical-align: middle;
  flex-shrink: 0;
}

.mainmenu ul > li > .mega-menu-pn .mega-menu-badge,
.mobile_menu ul > li > .mega-menu-pn .mega-menu-badge {
  padding: 4px 12px;
  border-radius: 6px;
}

/* Badges: colores distintos (como HOT/NEW de Bexon) */
.mainmenu ul > li > .mega-menu-pn .mega-menu-badge--t1,
.mobile_menu ul > li > .mega-menu-pn .mega-menu-badge--t1 {
  background-color: var(--tj-color-theme-primary, #0d9488);
}

.mainmenu ul > li > .mega-menu-pn .mega-menu-badge--t2,
.mobile_menu ul > li > .mega-menu-pn .mega-menu-badge--t2 {
  background-color: var(--tj-color-red-1, #e11d48);
}

.mainmenu ul > li > .mega-menu-pn .mega-menu-badge--t3,
.mobile_menu ul > li > .mega-menu-pn .mega-menu-badge--t3 {
  background-color: #7c3aed;
}

.mainmenu ul > li > .mega-menu-pn .mega-menu-badge--t4,
.mobile_menu ul > li > .mega-menu-pn .mega-menu-badge--t4 {
  background-color: #ca8a04;
}

.mainmenu ul > li > .mega-menu-pn .mega-menu-badge--t5,
.mobile_menu ul > li > .mega-menu-pn .mega-menu-badge--t5 {
  background-color: #2563eb;
}

.mainmenu ul > li > .mega-menu-pn .mega-menu-badge--t6,
.mobile_menu ul > li > .mega-menu-pn .mega-menu-badge--t6 {
  background-color: #15803d;
}

/* Mega menú PN: ancho Bexon (no full-width) + feature a la derecha */
.mainmenu ul > li > .mega-menu-pn,
.mobile_menu ul > li > .mega-menu-pn {
  width: calc(100% - 30px);
  max-width: 1320px;
  margin-inline: auto;
  z-index: 10050;
}

.header-area:has(.mega-menu-pn) {
  z-index: 10050;
}

.mega-menu-pn > li {
  display: block;
  width: 100%;
  padding: 0;
}

.mega-menu-pn .mega-menu-pn__grid {
  display: flex !important;
  width: 100%;
  gap: 0;
  align-items: stretch;
}

.mega-menu-pn .mega-menu-pn__col {
  flex: 1 1 0;
  width: auto !important;
  max-width: none !important;
  min-width: 0;
  border-inline-start: 1px solid var(--tj-color-border-1, #e8e8e8);
  padding: 26px 28px 20px !important;
}

.mega-menu-pn .mega-menu-pn__col:first-child {
  border-inline-start: 0;
}

.mega-menu-pn .mega-menu-pn__feature {
  flex: 0 0 340px;
  width: 340px !important;
  max-width: 340px !important;
  border-inline-start: 0 !important;
  padding: 15px !important;
  padding-inline-start: 0 !important;
}

.mega-menu-pn .mega-menu-pn__feature .mega-menu-pages-single-inner,
.mega-menu-pn .mega-menu-pn__feature .feature-box {
  height: 100%;
}

.mega-menu-pn .mega-menu-list a:has(.mega-menu-badge) {
  width: fit-content;
  max-width: 100%;
}

.mega-menu-pn .mega-menu-title--spacer {
  visibility: hidden;
}

.mega-menu-pn__block-gap {
  height: 22px;
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {
  .mega-menu-pn .mega-menu-pn__feature {
    flex-basis: 300px;
    width: 300px !important;
    max-width: 300px !important;
  }
}

@media (max-width: 991px) {
  .mega-menu-pn .mega-menu-pn__grid {
    flex-direction: column;
  }

  .mega-menu-pn .mega-menu-pn__col {
    border-inline-start: 0;
    border-top: 1px solid var(--tj-color-border-1, #e8e8e8);
  }

  .mega-menu-pn .mega-menu-pn__col:first-child {
    border-top: 0;
  }

  .mega-menu-pn .mega-menu-pn__feature {
    flex: 1 1 auto;
    width: 100% !important;
    max-width: none !important;
    padding: 12px !important;
  }
}

@media (max-width: 991px) {
  .proyecto-hero {
    grid-template-columns: 1fr;
    height: auto;
  }

  .proyecto-hero__media {
    height: 260px;
  }

  .proyecto-hero__media img {
    height: 100%;
  }
}

/* —— Page header (foto + overlay texto + franja fondo-header) ——
   Orden: foto → overlay (z1) → franja (z2) → texto (z4) → Unidos (z5).
   Overlay a altura completa; el mask vertical lo desvanece abajo (sin corte).
*/
.pn-page-header {
  position: relative;
  height: 430px;
  min-height: 440px;
  max-height: 440px;
  margin-bottom: 3.5rem;
  border-radius: 12px;
  overflow: visible;
  background-color: #1a4d32;
  background-position: center right;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  z-index: 1;
}

.pn-page-header__panel {
  position: absolute;
  inset: 0;
  width: 100%;
  border-radius: inherit;
  /* Degradado horizontal para el texto */
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.78) 28%,
    rgba(0, 0, 0, 0.48) 52%,
    rgba(0, 0, 0, 0) 72%
  );
  /* Desvanecido vertical suave: sin línea de corte; la franja inferior queda limpia */
  -webkit-mask-image: linear-gradient(
    180deg,
    #000 0%,
    #000 48%,
    rgba(0, 0, 0, 0.65) 62%,
    rgba(0, 0, 0, 0.25) 78%,
    transparent 100%
  );
  mask-image: linear-gradient(
    180deg,
    #000 0%,
    #000 48%,
    rgba(0, 0, 0, 0.65) 62%,
    rgba(0, 0, 0, 0.25) 78%,
    transparent 100%
  );
  z-index: 1;
  pointer-events: none;
}

.pn-page-header .container {
  position: relative;
  z-index: 4;
  width: 100%;
}

.pn-page-header__inner {
  max-width: 60%;
  width: 60%;
  padding: 1px 0;
  color: #fff;
  margin-top: 1px;
}

.pn-page-header__crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
  color: #fff;
  margin: 0 0 4px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75), 0 0 12px rgba(0, 0, 0, 0.35);
}

.pn-page-header__crumbs a {
  color: #fff;
  text-decoration: none;
}

.pn-page-header__crumbs a:hover {
  color: #fff;
  opacity: 0.9;
}

.pn-page-header__sep {
  opacity: 0.85;
}

.pn-page-header__accent {
  display: block;
  width: 48px;
  height: 3px;
  background: #b7d12a;
  border-radius: 2px;
  margin-top: 14px;
  margin-bottom: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.pn-page-header__title {
  margin: 0;
  color: #fff;
  font-size: clamp(1.5rem, 3.8vw, 3rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7), 0 0 18px rgba(0, 0, 0, 0.35);
}

/* Títulos largos: más ancho + tipografía ajustada a ~3 líneas */
.pn-page-header--title-long .pn-page-header__inner,
.pn-page-header--title-xlong .pn-page-header__inner {
  max-width: 70%;
  width: 70%;
}

.pn-page-header__title--long {
  font-size: clamp(1.4rem, 3.35vw, 2.55rem);
  line-height: 1.1;
}

.pn-page-header__title--xlong {
  font-size: clamp(1.3rem, 3.05vw, 2.35rem);
  line-height: 1.12;
}

.pn-page-header__subtitle {
  margin: 14px 0 0;
  color: #fff;
  font-size: clamp(1rem, 1.15vw, 1.25rem);
  font-weight: 400;
  line-height: 1.1;
  /* max-width: 36ch; */
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.7), 0 0 14px rgba(0, 0, 0, 0.3);
}

/* Franja decorativa inferior (fondo-header-blanco-2) */
.pn-page-header__fondo {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -64px;
  top: auto;
  width: 100%;
  z-index: 3;
  pointer-events: none;
  line-height: 0;
  opacity: 1;
}
.pn-page-header__fondo img {
  display: block;
  width: 100%;
  height: auto;
  transform: translateY(22%);
}

/* Banner Unidos: PNG ya recortado (alpha), sin clip CSS */
.pn-page-header__unidos {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(36%, 380px);
  z-index: 5;
  line-height: 0;
  pointer-events: none;
}

.pn-page-header__unidos img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 991.98px) {
  .pn-page-header {
    height: 300px;
    min-height: 300px;
    max-height: 300px;
    background-position: center;
  }

  .pn-page-header__panel {
    background: linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.78) 0%,
      rgba(0, 0, 0, 0.45) 42%,
      rgba(0, 0, 0, 0.12) 70%,
      rgba(0, 0, 0, 0) 100%
    );
  }

  .pn-page-header__inner {
    max-width: 100%;
    width: 100%;
  }

  .pn-page-header--title-long,
  .pn-page-header--title-xlong {
    height: auto;
    min-height: 300px;
    max-height: none;
    padding-block: 2rem 1.25rem;
  }

  .pn-page-header--title-long .pn-page-header__inner,
  .pn-page-header--title-xlong .pn-page-header__inner {
    max-width: 100%;
    width: 100%;
  }

  .pn-page-header__title--long {
    font-size: clamp(1.3rem, 3.4vw, 1.7rem);
  }

  .pn-page-header__title--xlong {
    font-size: clamp(1.2rem, 3.2vw, 1.55rem);
  }

  .pn-page-header__unidos {
    width: min(46%, 320px);
    right: 0;
    bottom: 0;
  }
}

@media (max-width: 575.98px) {
  .pn-page-header {
    height: 300px;
    min-height: 300px;
    max-height: 300px;
  }

  .pn-page-header__panel {
    background: linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.7) 0%,
      rgba(0, 0, 0, 0.4) 50%,
      rgba(0, 0, 0, 0) 100%
    );
  }

  .pn-page-header__inner {
    max-width: 100%;
    width: 100%;
    padding-bottom: 72px;
  }

  .pn-page-header__title {
    font-size: 1.45rem;
  }

  .pn-page-header__title--long {
    font-size: 1.3rem;
    line-height: 1.18;
  }

  .pn-page-header__title--xlong {
    font-size: 1.22rem;
    line-height: 1.2;
  }

  .pn-page-header__subtitle {
    font-size: 1.05rem;
    max-width: none;
  }

  .pn-page-header__unidos {
    width: min(72%, 280px);
    right: 0;
    bottom: 0;
  }
}

/* —— Aviso ficha (popup) —— */
.pn-aviso-modal {
  z-index: 10250 !important;
}
.pn-aviso-modal .modal-dialog {
  max-width: 32rem;
  pointer-events: auto;
}
/* Fondo suave (como el resto de modales): web visible pero atenuada */
body:has(.pn-aviso-modal.show) .modal-backdrop,
body.pn-aviso-open .modal-backdrop,
.modal-backdrop.pn-aviso-backdrop {
  background-color: rgba(26, 40, 36, 0.38);
  opacity: 1 !important;
  z-index: 10240 !important;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
body.pn-aviso-open {
  overflow: hidden;
}
.pn-aviso-modal__content {
  border: 1px solid #f0d9a8;
  border-radius: 14px;
  overflow: hidden;
  background: #fffaf0;
  box-shadow: 0 18px 48px rgba(40, 28, 8, 0.18);
  pointer-events: auto;
}
.pn-aviso-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(240, 217, 168, 0.85);
  background: #fff7e8;
  padding: 0.9rem 1.15rem;
}
.pn-aviso-modal__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a5a00;
}
.pn-aviso-modal__eyebrow i {
  font-size: 0.95rem;
}
.pn-aviso-modal__close {
  position: relative;
  z-index: 5;
  flex: 0 0 auto;
  margin: 0;
  padding: 0.5rem;
  box-sizing: content-box;
  width: 0.75rem;
  height: 0.75rem;
  cursor: pointer;
  pointer-events: auto !important;
  opacity: 0.7;
}
.pn-aviso-modal__close:hover {
  opacity: 1;
}
.pn-aviso-modal__body {
  padding: 1.15rem 1.25rem 0.85rem;
}
.pn-aviso-modal__title {
  margin: 0 0 0.55rem;
  font-size: 1.2rem;
  line-height: 1.3;
  color: #2a2218;
}
.pn-aviso-modal__text {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #3d3428;
}
.pn-aviso-modal__text p:last-child {
  margin-bottom: 0;
}
.pn-aviso-modal__file {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
  font-weight: 600;
  color: var(--tj-color-theme-primary, #1a4d32);
  text-decoration: none;
}
.pn-aviso-modal__file:hover {
  text-decoration: underline;
  color: var(--tj-color-theme-primary, #1a4d32);
}
.pn-aviso-modal__footer {
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  border-top: 0;
  padding: 0.35rem 1.25rem 1.2rem;
  background: transparent;
}
.pn-aviso-modal__progress {
  height: 3px;
  border-radius: 99px;
  background: rgba(138, 90, 0, 0.12);
  overflow: hidden;
}
.pn-aviso-modal__progress-bar {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(1);
  background: linear-gradient(90deg, #c4892a, #8a5a00);
}
.pn-aviso-modal__ok {
  align-self: flex-end;
  cursor: pointer;
  pointer-events: auto !important;
}
.pn-aviso-modal__ok .btn-text {
  padding-inline: 0.35rem;
}

/* legado (por si queda en alguna vista) */
.casa-aviso {
  padding: 20px 0 0;
  background: #fff;
}

.casa-aviso__box {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 18px 22px;
  border-radius: 12px;
  background: #fff7e8;
  border: 1px solid #f0d9a8;
}

.casa-aviso__label {
  flex: 0 0 auto;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8a5a00;
  padding-top: 4px;
}

.casa-aviso__title { margin: 0 0 6px; font-size: 1.15rem; }
.casa-aviso__text { font-size: 0.95rem; }
.casa-aviso__file {
  display: inline-block;
  margin-top: 8px;
  font-weight: 600;
  color: var(--tj-color-theme-primary, #1a4d32);
}

/* Anclas — mismo ancho/márgenes que el header (section-gap-x) */
.casa-vnav {
  background: #f2f4f3;
  border-radius: 12px;
  margin-top: 8em;
  position: sticky;
  top: 12px;
  z-index: 30;
  overflow: hidden;
}

.casa-vnav__track {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 0 0;
  overflow-x: auto;
}

.casa-vnav__item {
  flex: 1 1 0;
  min-width: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 14px;
  text-decoration: none;
  color: #5a656c;
  font-size: 13px;
  font-weight: 600;
  border-bottom: 3px solid transparent;
  text-align: center;
  white-space: nowrap;
}

.casa-vnav__item i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  width: 2.25rem;
  height: 2.25rem;
  color: #8c3891;
  font-size: 1.15rem;
  line-height: 1;
  background-color: white;
  border-radius: 8px;
}

.casa-practica__list i {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  width: 2.25rem;
  height: 2.25rem;
  color: #8c3891;
  font-size: 1.05rem;
  line-height: 1;
  background-color: white;
  border-radius: 8px;
}

.casa-vnav__item:hover {
  color: #1a4d32;
}

.casa-vnav__item.is-active {
  color: #1a4d32;
  border-bottom-color: #1a4d32;
}

body:has(.casa-page) {
  background: #fff;
}

.casa-page {
  padding: 42px 0 48px;
  background: #fff;
}

#casa-info,
#casa-agenda,
#casa-llegar,
#casa-practica,
#casa-materiales,
#espacio-info,
#espacio-descripcion,
#espacio-senderos,
#espacio-llegar,
#espacio-centros,
#espacio-practica,
#espacio-materiales,
#sendero-info,
#sendero-descripcion,
#sendero-llegar,
#sendero-espacio,
#sendero-centros,
#sendero-practica,
#sendero-materiales {
  scroll-margin-top: 120px;
}

.casa-intro__copy {
  margin-bottom: 22px;
  /* max-width: 42rem; */
}

.casa-intro__title {
  margin: 0 0 16px;
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  line-height: 1.2;
  color: #1a2428;
  font-weight: 700;
}

.casa-intro__sumario {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: #364e52;
}

.casa-features {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.casa-features li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 14px;
  border-radius: 12px;
  background: #f3f5f4;
  font-size: 13px;
  font-weight: 600;
  color: #1a2428;
  line-height: 1.3;
}

.casa-features i {
  color: #1a4d32;
  font-size: 20px;
}

.casa-intro__photo {
  position: relative;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #e8ecef;
}

.casa-intro__photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.casa-intro__photo--video {
  background: #0f1412;
}

.casa-intro__photo--video .casa-intro__video {
  aspect-ratio: 16 / 9;
}

.casa-intro__video {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f1412;
  overflow: hidden;
}

.casa-intro__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Proyectos: borde suave (logos con fondo blanco) + adapt según proporción */
.casa-intro__photo--adapt {
  border: 1px solid rgba(26, 40, 36, 0.12);
  background: #f3f5f4;
  box-shadow: 0 1px 0 rgba(26, 40, 36, 0.04);
}

.casa-intro__photo--adapt img {
  background: #fff;
  object-fit: contain; /* por defecto seguro hasta medir; is-photo pasa a cover */
}

.casa-intro__photo--adapt.is-photo img {
  object-fit: cover;
  background: transparent;
}

.casa-intro__photo--adapt.is-logo {
  background: #fff;
}

.casa-intro__photo--adapt.is-logo img {
  object-fit: contain;
  object-position: center;
  padding: 12px 16px;
  box-sizing: border-box;
}

.casa-intro__photo figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(40, 48, 52, 0.72);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.casa-intro__photo--adapt.is-logo figcaption {
  /* Evita tapar logos horizontales; el nombre ya está en el título */
  display: none;
}

/* Actividades destacadas */
.casa-destacadas {
  margin-top: 48px;
}

.casa-destacadas__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.casa-destacadas__title {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  /* color: #1a2428; */
  margin: 0 0 20px;
  /* font-size: 1.5rem; */
  color: #62bd3a;
  font-weight: 900;
}

.casa-destacadas__all {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  color: #1a4d32;
  text-decoration: none;
  white-space: nowrap;
}

.casa-destacadas__all:hover { text-decoration: underline; }

.casa-destacadas__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}

.casa-destacadas__slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.casa-destacadas__slider {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  padding: 4px 2px 20px;
  margin: -4px -2px 0;
}

.casa-destacadas__slider .swiper-wrapper {
  align-items: stretch;
}

.casa-destacadas__slider .swiper-slide {
  height: auto;
  box-sizing: border-box;
}

.casa-destacadas__slider .casa-act-card,
.casa-destacadas__slider .pn-wave-card,
.casa-destacadas__grid .pn-wave-card {
  height: 100%;
}

.casa-destacadas .pn-wave-card--soft,
.casa-destacadas .pn-wave-card--soft .pn-wave-card__content {
  background: #eef2ef;
}

.casa-destacadas .pn-wave-card--soft,
.casa-destacadas .pn-wave-card--soft.pn-wave-card,
.casa-destacadas .pn-wave-card--soft:hover {
  box-shadow: none;
}

.casa-destacadas .pn-wave-card--soft .pn-wave-card__rango {
  background: #fff;
}

.casa-destacadas .pn-wave-card--soft .pn-wave-card__rango.is-done {
  background: #fff;
}

.casa-destacadas .pn-wave-card--soft .pn-wave-card__go {
  background: #672146;
  color: #fff;
}

.casa-destacadas .pn-wave-card--soft:hover .pn-wave-card__go {
  background: #521836;
  color: #fff;
}

.casa-destacadas__nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.casa-destacadas__btn {
  flex: 0 0 auto;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #e9efea;
  color: #1a4d32;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.casa-destacadas__btn:hover {
  background: #1a4d32;
  color: #fff;
}

.casa-destacadas__btn.swiper-button-disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.casa-act-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #f3f6f4;
  border-radius: 14px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}
a.casa-act-card:hover {
  color: inherit;
  text-decoration: none;
}

.casa-act-card__media {
  position: relative;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  background: #dde3e7;
  flex: 0 0 auto;
}

.casa-act-card__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.casa-act-card.is-done .casa-act-card__media img {
  filter: grayscale(0.35);
  opacity: 0.92;
}

.casa-act-card__icon {
  position: absolute;
  left: 12px;
  bottom: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1a4d32;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 0 0 3px #f3f6f4;
}

.casa-act-card.is-done .casa-act-card__icon {
  background: #8a9499;
}

.casa-act-card__body {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 16px 16px 18px;
  min-height: 148px;
}

.casa-act-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.casa-act-card__date {
  font-size: 12px;
  font-weight: 700;
  color: #1a4d32;
}

.casa-act-card.is-done .casa-act-card__date {
  color: #6b7880;
}

.casa-act-card__status {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #1a4d32;
}

.casa-act-card.is-done .casa-act-card__status {
  color: #6b7880;
}

.casa-act-card__body h4 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.3;
  color: #672146;
  padding-right: 40px;
}

.casa-act-card__body p {
  margin: 0;
  padding-right: 40px;
  font-size: 13px;
  line-height: 1.45;
  color: #5a656c;
  flex: 1 1 auto;
}

.casa-act-card__go {
  position: absolute;
  right: 14px;
  bottom: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1a4d32;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.casa-act-card.is-done .casa-act-card__go {
  background: #8a9499;
}

.casa-empty {
  margin: 0;
  color: #6b7880;
  font-size: 15px;
}

/* Territorio + lema */
.casa-territorio {
  margin-top: 48px;
}

.casa-territorio__title {
  margin: 0 0 14px;
  font-size: 1.45rem;
  color: #1a2428;
}

.casa-territorio__body {
  color: #364e52;
  font-size: 1rem;
  line-height: 1.65;
}

.casa-territorio__body p:last-child { margin-bottom: 0; }

.casa-quote-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding: 18px 22px;
  border-radius: 12px;
  background: #e9efea;
}

.casa-quote-banner i {
  color: #1a4d32;
  font-size: 22px;
}

.casa-quote-banner p {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #1a2428;
}

.casa-cerca {
  margin-top: 48px;
}

.casa-cerca h3 {
  margin: 0 0 14px;
  font-size: 1.45rem;
  color: #1a2428;
}

.casa-gps { margin: 12px 0 0; font-size: 14px; color: #555; }

/* Sidebar */
.casa-sidebar {
  display: grid;
  gap: 32px;
}

@media (min-width: 992px) {
  .casa-sidebar {
    position: sticky;
    top: 88px;
  }
}

/* —— Wave card (listados + ficha casa) —— */
.pn-wave-card {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 24px rgba(26, 40, 36, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pn-wave-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(26, 40, 36, 0.12);
  color: inherit;
}

.pn-wave-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 12;
  overflow: hidden;
  background: #dde3e7;
  margin-bottom: -28px;
}

.pn-wave-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
  /* border: 4px solid white; */
}

.pn-wave-card:hover .pn-wave-card__media img {
  transform: scale(1.04);
}

/* Proyectos: logos anchos enteros + borde suave (fondo blanco) */
.pn-wave-card__media[data-photo-adapt] {
  background: #f3f5f4;
  box-shadow: inset 0 0 0 1px rgba(26, 40, 36, 0.1);
}

.pn-wave-card__media[data-photo-adapt] img {
  object-fit: contain;
  background: #fff;
}

.pn-wave-card__media[data-photo-adapt].is-photo img {
  object-fit: cover;
  background: transparent;
}

.pn-wave-card__media[data-photo-adapt].is-logo {
  background: #fff;
}

.pn-wave-card__media[data-photo-adapt].is-logo img {
  object-fit: contain;
  object-position: center;
  padding: 12px 16px;
  box-sizing: border-box;
}

.pn-wave-card:hover .pn-wave-card__media[data-photo-adapt].is-logo img {
  transform: none;
}

.pn-wave-card__tags {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  max-width: calc(100% - 60px);
}

.pn-wave-card__tags-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}

.pn-wave-card__tag {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  flex: 0 1 auto;
  gap: 4px;
  min-height: 26px;
  max-width: 100%;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  background-color: #ffffff94;
}

.pn-wave-card__tag--tipo {
  background: rgba(26, 77, 50, 0.92);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pn-wave-card__tag--tipo i {
  font-size: 11px;
  color: #fff;
  opacity: 0.95;
}

.pn-wave-card__tag--fecha {
  background: rgba(104, 33, 70, 0.94);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pn-wave-card__tag--fecha i {
  font-size: 11px;
  color: #fff;
  opacity: 0.95;
}

.pn-wave-card__tag--prov,
.pn-wave-card__tag--casa {
  background: rgba(255, 255, 255, 0.94);
  color: #8c3891;
}

.pn-wave-card__tag--prov i,
.pn-wave-card__tag--casa i {
  font-size: 11px;
  color: #8c3891;
  flex: 0 0 auto;
}

.pn-wave-card__tag--casa {
  max-width: 100%;
  white-space: normal;
  text-align: left;
  line-height: 1.25;
  padding-top: 6px;
  padding-bottom: 6px;
}

.pn-wave-card__estado {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  min-height: 28px;
  width: auto;
  height: auto;
  padding: 0.28rem 0.7rem 0.28rem 0.35rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.pn-wave-card__estado.is-curso {
  background: #60af37;
}

.pn-wave-card__estado.is-prox {
  background: #e67e22;
}

.pn-wave-card__estado.is-done {
  background: #c0392b;
}

.pn-wave-card__estado-ico {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.pn-wave-card__estado.is-curso .pn-wave-card__estado-ico {
  color: #60af37;
}

.pn-wave-card__estado.is-prox .pn-wave-card__estado-ico {
  color: #e67e22;
}

.pn-wave-card__estado.is-done .pn-wave-card__estado-ico {
  color: #c0392b;
}

.pn-wave-card__estado-ico i {
  font-size: 0.65rem;
  line-height: 1;
}

.pn-wave-card__estado-label {
  white-space: nowrap;
}

.pn-wave-card__content {
  position: relative;
  z-index: 1;
  display: block;
  padding: 10px 16px 18px;
  background: #fff;
  min-height: 0;
}

.pn-wave-card__wave {
  position: absolute;
  left: 0;
  right: 0;
  top: -48px;
  width: 100%;
  height: 64px;
  display: block;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}

.pn-wave-card__eyebrow {
  position: relative;
  z-index: 1;
  display: block;
  margin: 4px 44px 0 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7a72;
}

.pn-wave-card__topline {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  max-width: calc(100% - 44px);
  margin: 4px 44px 0 0;
}

.pn-wave-card__rango {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  margin: 0;
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
  background: #e9efea;
  color: #682146;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

.pn-wave-card__rango i {
  font-size: 0.85rem;
  color: #682146;
  flex: 0 0 auto;
}

.pn-wave-card__rango.is-done {
  background: #fddae2;
}

.pn-wave-card__rango--tipo {
  color: #1a4d32;
}

.pn-wave-card__logo {
  display: block;
  width: 18px;
  height: auto;
  flex: 0 0 auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.pn-wave-card__title {
  position: relative;
  z-index: 1;
  display: block;
  margin: 8px 44px 6px 0;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.25;
  color: #682146;
  letter-spacing: -.5px;
}

.pn-wave-card__text {
  position: relative;
  z-index: 1;
  display: block;
  margin: 0 44px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: #5a656c;
}

.pn-wave-card__foot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 12px 44px 0 0;
}

.pn-wave-card__chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
}

.pn-wave-card__chip i {
  flex: 0 0 auto;
  font-size: 0.78rem;
}

.pn-wave-card__chip--lugar {
  align-items: flex-start;
  background: #fff;
  color: #682146;
  border: 1px solid #682146;
  white-space: normal;
}

.pn-wave-card__chip--lugar i {
  margin-top: 0.15em;
  color: inherit;
  opacity: 0.9;
}

.pn-wave-card__meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0 44px 0.4rem 0;
  font-size: 0.75rem;
  line-height: 1.35;
  color: #682146;
  font-weight: 600;
}

.pn-wave-card__meta i {
  margin-right: 0.28rem;
  opacity: 0.85;
}

.pn-wave-card__badge {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: #60af37;
  color: #fff;
}

.pn-wave-card__badge--prox {
  background: #682146;
}

.pn-wave-card__go {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 1;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e9efea;
  color: #1a4d32;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.pn-wave-card:hover .pn-wave-card__go {
  background: #1a4d32;
  color: #fff;
}

.casa-espacio-side .pn-wave-card__media {
  aspect-ratio: 16 / 12;
  margin-bottom: -32px;
}

.pn-related-waves .casa-espacio-side + .casa-espacio-side {
  margin-top: 1rem;
}

.casa-espacio-side .pn-wave-card__content {
  padding-top: 10px;
}

.casa-espacio-side .pn-wave-card__wave {
  top: -52px;
  height: 68px;
}

.casa-practica {
  background: #e9efea;
  border-radius: 14px;
  padding: 26px 24px;
}

.casa-practica__title {
  margin: 0 0 20px;
  font-size: 1.5rem;
  color: #62bd3a;
  font-weight: 900;
}

.casa-practica__list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 16px;
}

.casa-practica__list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  color: #334;
  line-height: 1.4;
}

.casa-practica__list strong {
  display: block;
  font-size: 13px;
  color: #1a2428;
  margin-bottom: 2px;
}

.casa-practica__list a {
  color: inherit;
  word-break: break-word;
}

.casa-practica__horario p { margin: 0 0 0.25em; }
.casa-practica__horario p:last-child { margin-bottom: 0; }

.casa-practica__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 18px;
  border-radius: 999px;
  background: #1a4d32;
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.casa-practica__btn:hover {
  filter: brightness(1.08);
  color: #fff !important;
}

.casa-mapa-card {
  background: #e9efea;
  border-radius: 14px;
  padding: 26px 24px;
}

.casa-mapa-card .casa-practica__title {
  margin-bottom: 16px;
}

.casa-mapa-card__frame {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #dde3e7;
}

.casa-mapa-card__frame iframe,
.casa-mapa-card__leaflet {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.casa-mapa-card__leaflet {
  min-height: 220px;
  z-index: 0;
}

.pn-mapa-ficha-divicon {
  background: transparent;
  border: 0;
}

.pn-mapa-ficha-pin {
  display: block;
  width: 36px;
  height: 46px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.28));
}

.pn-mapa-ficha-pin img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.casa-mapa-card__frame--link a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 100%;
  min-height: 180px;
  color: #1a4d32;
  font-weight: 700;
  text-decoration: none;
}

.casa-mapa-card__llegar {
  margin-top: 16px;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #334;
}

.casa-mapa-card__llegar.zonatexto p,
.casa-mapa-card__llegar.zonatexto li,
.casa-mapa-card__llegar.zonatexto span,
.casa-mapa-card__llegar.zonatexto div,
.casa-mapa-card__llegar.zonatexto font {
  font-size: 0.875rem !important;
  line-height: 1.45 !important;
}

.casa-mapa-card__llegar.zonatexto h2,
.casa-mapa-card__llegar.zonatexto h3,
.casa-mapa-card__llegar.zonatexto h4,
.casa-mapa-card__llegar.zonatexto h5,
.casa-mapa-card__llegar.zonatexto h6 {
  font-size: 1rem !important;
  line-height: 1.4 !important;
}

.casa-mapa-card__llegar p:last-child {
  margin-bottom: 0;
}

.casa-mapa-card .casa-gps {
  margin-top: 12px;
}

.casa-mapa-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 999px;
  background: #fff;
  color: #1a2428 !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(26, 40, 36, 0.06);
}

.casa-mapa-card__btn:hover {
  color: #1a4d32 !important;
}

.casa-mapa-card__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.casa-mapa-card__actions--duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.casa-mapa-card__actions .casa-mapa-card__btn {
  margin-top: 10px;
}

.casa-mapa-card__actions .casa-mapa-card__btn + .casa-mapa-card__btn {
  margin-top: 0;
}

.casa-mapa-card__actions--duo .casa-mapa-card__btn {
  margin-top: 10px;
  padding: 11px 12px;
  font-size: 12px;
}

.casa-mapa-card__actions--duo .casa-mapa-card__btn + .casa-mapa-card__btn {
  margin-top: 10px;
}

.pn-mapa-ficha-popup-wrap .leaflet-popup-content-wrapper {
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(26, 40, 36, 0.14);
}

.pn-mapa-ficha-popup-wrap .leaflet-popup-content {
  margin: 12px 14px;
  min-width: 160px;
}

.pn-mapa-ficha-popup__title {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
  color: #1a2428;
}

.pn-mapa-ficha-popup__actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.pn-mapa-ficha-popup__btn {
  display: block;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(26, 77, 50, 0.22);
  background: #f3f7f4;
  color: #1a4d32 !important;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  line-height: 1.2;
}

.pn-mapa-ficha-popup__btn:hover {
  background: #e5efe8;
  color: #145239 !important;
}

.casa-rel-news {
  background: #e9efea;
  border-radius: 14px;
  padding: 20px 16px;
}

.casa-rel-news__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.casa-rel-news__title {
  margin: 0;
  font-size: 1.1rem;
  /* color: #1a2428; */
  margin: 0 0 20px;
  font-size: 1.5rem;
  color: #62bd3a;
  font-weight: 900;
}

.casa-rel-news__all {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  color: #1a4d32;
  text-decoration: none;
  white-space: nowrap;
}

.casa-rel-news__all:hover { text-decoration: underline; }

.casa-rel-news__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.casa-rel-news__item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  color: inherit;
}

.casa-rel-news__item:hover .casa-rel-news__item-title {
  color: #1a4d32;
}

.casa-rel-news__thumb {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  background: #dde3e7;
}

.casa-rel-news__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.casa-rel-news__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.casa-rel-news__item-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: #1a2428;
}

.casa-rel-news__date {
  font-size: 12px;
  color: #6b7880;
}

.casa-cite {
  position: relative;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #dde3e7;
}

.casa-cite img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.casa-cite figcaption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  color: #fff;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 600;
  line-height: 1.35;
  background: linear-gradient(180deg, rgba(20, 40, 30, 0.25), rgba(20, 40, 30, 0.55));
}

/* Materiales tabs + masonry */
.casa-multi {
  background: #f2f4f3;
  border-radius: 16px;
  padding: 8px 24px 28px;
  box-shadow: 0 6px 20px rgba(26, 40, 36, 0.04);
}

.casa-pager {
  background: #f2f4f3;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 6px 20px rgba(26, 40, 36, 0.04);
}

.casa-pager .tj-post__navigation.pn-thumbs {
  margin: 0;
  padding: 18px 20px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(26, 40, 36, 0.06);
}

.casa-tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(26, 77, 50, 0.1);
}

.casa-tabs__nav button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 700;
  color: #5a656c;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}

.casa-tabs__nav button i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  color: #8c3891;
  font-size: 22px;
  line-height: 1;
  background-color: white;
  padding: 6px;
  border-radius: 8px;
  width: 1.85em;
  height: 1.85em;
}

.casa-side-list i.fa-light {
  color: #8c3891;
}

.casa-tabs__nav button.is-active {
  color: #1a4d32;
  border-bottom-color: #1a4d32;
}

.casa-tabs__panel { display: none; }
.casa-tabs__panel.is-active { display: block; }

.casa-masonry {
  column-count: 5;
  column-gap: 12px;
}

.casa-masonry__item {
  position: relative;
  display: block;
  break-inside: avoid;
  margin: 0 0 14px;
  border-radius: 12px;
  overflow: hidden;
  background: #dde3e7;
}

.casa-masonry__item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.35s ease;
}

.casa-masonry__zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 77, 50, 0.42);
  color: #fff;
  font-size: 1.6rem;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.casa-masonry__zoom i {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}

.casa-masonry__item:hover img { transform: scale(1.04); }
.casa-masonry__item:hover .casa-masonry__zoom { opacity: 1; }

.casa-multi .casa-side-list--wide {
  background: #fff;
  border-color: transparent;
}

@media (max-width: 1399.98px) {
  .casa-masonry { column-count: 4; }
}

@media (max-width: 1199.98px) {
  .casa-masonry { column-count: 3; }
}

.casa-videos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.casa-videos__item {
  display: block;
  text-decoration: none;
  color: inherit;
}

.casa-videos__item:hover {
  color: inherit;
}

.casa-videos__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #111;
  display: block;
}

.casa-videos__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.casa-videos__item:hover .casa-videos__frame img {
  transform: scale(1.04);
}

.casa-videos__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 20, 18, 0.28);
  transition: background 0.2s ease;
}

.casa-videos__play i {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  color: #1a4d32;
  font-size: 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.casa-videos__item:hover .casa-videos__play {
  background: rgba(15, 20, 18, 0.38);
}

.casa-videos__item:hover .casa-videos__play i {
  transform: scale(1.06);
}

.casa-videos__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.casa-videos__item h4 { margin: 10px 0 0; font-size: 1rem; }

.casa-side-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.casa-side-list li + li {
  border-top: 1px solid #e2e6e3;
}

.casa-side-list li a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 0.85rem 0.65rem;
  border-radius: 8px;
  color: #334;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.casa-side-list li a:hover { background: #f3f6f4; color: #1a4d32; }
.casa-side-list i { margin-top: 2px; color: #1a4d32; flex-shrink: 0; }

.casa-side-list__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1;
}

.casa-side-list__name {
  line-height: 1.35;
}

.casa-side-list__meta {
  font-size: 0.78rem;
  color: #6a757c;
  font-weight: 500;
  line-height: 1.2;
}

.casa-side-list li a:hover .casa-side-list__meta {
  color: #5a6a62;
}

.casa-side-list--wide {
  border: 1px solid #e8ecef;
  border-radius: 12px;
  padding: 4px 8px;
}

.casa-noticia-card {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: #f7f8f9;
  color: inherit;
  height: 100%;
}

.casa-noticia-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.casa-noticia-card span {
  display: block;
  padding: 12px 14px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.35;
}

@media (max-width: 991.98px) {
  .casa-vnav__track { justify-content: flex-start; }
  .casa-vnav__item { flex: 0 0 auto; }
  .casa-features { grid-template-columns: repeat(2, 1fr); }
  @media (max-width: 991.98px) {
  .casa-destacadas__grid { grid-template-columns: 1fr 1fr; }
  .casa-destacadas__head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 575.98px) {
  .casa-destacadas__grid { grid-template-columns: 1fr; }
  .casa-destacadas__btn { width: 36px; height: 36px; }
}
  .casa-masonry { column-count: 2; }
  .casa-videos { grid-template-columns: 1fr; }
  .casa-multi { padding: 4px 16px 22px; }
}

@media (max-width: 575.98px) {
  .casa-features { grid-template-columns: 1fr 1fr; }
  .casa-aviso__box { flex-direction: column; gap: 8px; }
  .casa-masonry { column-count: 1; }
}

/* Espacio ficha: grid de centros + listado senderos lateral */
.espacio-centros-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.espacio-centros-side:last-child {
  margin-bottom: 0;
}

.espacio-centros-side__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #62bd3a;
}

.espacio-centros-side .casa-espacio-side {
  margin: 0;
}

.espacio-centros-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 575.98px) {
  .espacio-centros-grid {
    grid-template-columns: 1fr;
  }
}

.espacio-senderos-side {
  /* background: #fff; */
  border-radius: 14px;
  padding: 22px 20px;
  box-shadow: 0 8px 24px rgba(26, 40, 36, 0.06);
  background: #e9efea;
}

.espacio-senderos-side__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.espacio-senderos-side__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: #62bd3a;
}

.espacio-senderos-side__all {
  font-size: 13px;
  font-weight: 600;
  color: #8c3891;
  text-decoration: none;
  white-space: nowrap;
}

.espacio-senderos-side__all:hover {
  text-decoration: underline;
  color: #8c3891;
}

.espacio-senderos-side__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.espacio-senderos-side__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s ease;
}

.espacio-senderos-side__item:hover {
  background: #e9efea;
  color: inherit;
}

.espacio-senderos-side__item > i {
  flex-shrink: 0;
  color: #1a4d32;
  font-size: 14px;
}

.espacio-senderos-side__thumb {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  background: #dde3e7;
}

.espacio-senderos-side__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.espacio-senderos-side__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.espacio-senderos-side__name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: #1a2428;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.espacio-senderos-side__meta {
  font-size: 12px;
  color: #5a656c;
}

.espacio-senderos-side__more {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 700;
  color: #1a4d32;
  text-decoration: none;
}

.espacio-senderos-side__more:hover {
  text-decoration: underline;
  color: #1a4d32;
}

.zonatexto h2 {
    display: flex;
    align-items: center;
    gap: 18px;

    margin: 2.6rem 0 1.15rem;

    font-size: 1.65rem;
    line-height: 1.2;
    font-weight: 700;

    color: #682146;
}

/* Línea que completa visualmente el encabezado */
.zonatexto h2::after {
    content: "";

    flex: 1;
    height: 1px;

    background: linear-gradient(90deg,
            rgba(104, 33, 70, .55),
            rgba(104, 33, 70, .08));
}
/* —— Contacto —— */
.pn-contact {
  padding-block: 48px 64px;
  background: #fff;
}
.pn-contact__lead {
  max-width: 720px;
  margin: 0 auto 2.25rem;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #3a4549;
}
.pn-contact__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  margin-bottom: 2.75rem;
}
.pn-contact-card {
  background: #f4f5f4;
  border-radius: 14px;
  padding: 1.5rem 1.15rem 1.35rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100%;
}
.pn-contact-card__icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #682146;
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
  box-shadow: 0 1px 0 rgba(26, 40, 36, 0.06);
}
.pn-contact-card__title {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #682146;
}
.pn-contact-card__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #1a2428;
}
.pn-contact-card__text a {
  color: #1a4d32;
  text-decoration: none;
  word-break: break-word;
}
.pn-contact-card__text a:hover {
  color: #682146;
  text-decoration: underline;
}
.pn-contact-card__hint {
  margin: 0.45rem 0 0;
  font-size: 0.85rem;
  color: #5a656c;
}
.pn-contact-card__link {
  margin-top: auto;
  padding-top: 0.85rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #682146;
  text-decoration: none;
}
.pn-contact-card__link:hover {
  text-decoration: underline;
  color: #1a4d32;
}
.pn-contact__block-title {
  margin: 0 0 0.35rem;
  font-size: 1.55rem;
  font-weight: 700;
  color: #1a4d32;
  display: flex;
  align-items: center;
  gap: 14px;
}
.pn-contact__block-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(104, 33, 70, 0.5), rgba(104, 33, 70, 0.06));
}
.pn-contact__block-lead {
  margin: 0 0 1.25rem;
  color: #5a656c;
  font-size: 0.95rem;
}
.pn-contact__form {
  background: #fafbfa;
  border: 1px solid #e6ebe7;
  border-radius: 14px;
  padding: 1rem 1rem 0.5rem;
  overflow: hidden;
}
.pn-contact__map {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e6ebe7;
  background: #f3f6f4;
  min-height: 530px;
}
.pn-contact__map iframe {
  display: block;
  width: 100% !important;
  min-height: 520px;
  height: 550px !important;
  border: 0;
}
.pn-contact__map--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.pn-contact__map--fallback a {
  color: #682146;
  font-weight: 700;
}
.pn-contact__map-card {
  margin-top: 0.85rem;
  background: #fff;
  border: 1px solid #e6ebe7;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
}
.pn-contact__map-card a {
  color: #682146;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.pn-contact__map-card a:hover {
  text-decoration: underline;
}
.pn-contact__legal {
  margin-top: 1rem;
  background: #eef5ef;
  border-radius: 12px;
  padding: 1rem 1.1rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.pn-contact__legal-icon {
  color: #1a4d32;
  font-size: 1.15rem;
  line-height: 1.4;
  flex-shrink: 0;
}
.pn-contact__legal p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #3a4549;
}
.pn-contact__legal a {
  color: #682146;
  font-weight: 600;
}
.pn-contact-cta {
  background: #f2f3f2;
  padding: 1.75rem 0;
  margin-top: 0.5rem;
}
.pn-contact-cta__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}
.pn-contact-cta__icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e3ebe4;
  color: #1a4d32;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pn-contact-cta__text {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1a4d32;
  max-width: 40rem;
  line-height: 1.4;
}
.pn-contact-cta__deco {
  margin-left: auto;
  width: 140px;
  height: 48px;
  flex-shrink: 0;
  opacity: 0.45;
  background:
    radial-gradient(ellipse 60% 80% at 20% 50%, rgba(74, 138, 77, 0.35) 0 28%, transparent 30%),
    radial-gradient(ellipse 55% 75% at 55% 50%, rgba(184, 206, 164, 0.55) 0 30%, transparent 32%),
    radial-gradient(ellipse 50% 70% at 88% 50%, rgba(74, 138, 77, 0.28) 0 26%, transparent 28%);
}

@media (max-width: 1199px) {
  .pn-contact__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .pn-contact {
    padding-block: 32px 48px;
  }
  .pn-contact__cards {
    grid-template-columns: 1fr;
  }
  .pn-contact-cta__inner {
    flex-wrap: wrap;
  }
  .pn-contact-cta__deco {
    display: none;
  }
}

/* —— Videoteca —— */
.videos-intro {
  margin-bottom: 1.25rem;
}
.videos-intro p {
  margin: 0;
  max-width: 52rem;
  color: #4a5560;
  font-size: 0.98rem;
  line-height: 1.55;
}
.videos-intro__count {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a4d32;
}
.pn-video-card__thumb {
  position: relative;
}
.pn-video-card__thumb > a {
  display: block;
  position: relative;
}
.pn-video-card__thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.pn-video-card__play {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 28, 18, 0.28);
  transition: background 0.25s ease;
  pointer-events: none;
}
.pn-video-card__play i {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #1a4d32;
  font-size: 1.15rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease;
}
.pn-wave-card.pn-video-card:hover .pn-video-card__play,
.pn-video-card__thumb > a:hover .pn-video-card__play {
  background: rgba(10, 28, 18, 0.4);
}
.pn-wave-card.pn-video-card:hover .pn-video-card__play i,
.pn-video-card__thumb > a:hover .pn-video-card__play i {
  transform: scale(1.06);
}
.pn-video-card__desc {
  margin: 0.35rem 0 0.75rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #5a6570;
}
.pn-wave-card.pn-video-card .pn-wave-card__media {
  aspect-ratio: 16 / 9;
}
.pn-wave-card.pn-video-card .pn-wave-card__go {
  background: #6b0e47;
  color: #fff;
}

/* ——— Páginas CMS (show) ——— */
.pagina-page .casa-intro__copy {
  margin-bottom: 1.25rem;
}
.pagina-body {
  /* font-size: 1.02rem; */
  /* line-height: 1.7; */
  /* color: #3a454c; */
}
.pagina-body-block {
  margin-bottom: 1.75rem;
}
.pagina-body-block:last-of-type {
  margin-bottom: 0;
  margin-top: 4rem;
}
.pagina-content-photo {
  margin: 0 0 1.15rem;
}
.pagina-content-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.35rem;
}
.pagina-body > *:first-child {
  margin-top: 0;
}
.listado-cms-intro {
  margin-bottom: 2.75rem;
}
.listado-cms-intro > :last-child {
  margin-bottom: 0;
}
.listado-cms-intro--con-logo {
  display: grid;
  gap: 1.5rem 2rem;
  align-items: start;
}
.listado-cms-intro__copy {
  min-width: 0;
}
.listado-cms-intro__logo {
  margin: 0;
  justify-self: center;
}
.listado-cms-intro__logo img {
  display: block;
  width: min(100%, 16rem);
  height: auto;
  object-fit: contain;
}
@media (min-width: 768px) {
  .listado-cms-intro--con-logo {
    grid-template-columns: minmax(0, 1fr) minmax(10rem, 16rem);
  }
  .listado-cms-intro__logo {
    justify-self: end;
    position: sticky;
    top: 6.5rem;
  }
}
@media (min-width: 992px) {
  .listado-cms-intro {
    margin-bottom: 3.25rem;
  }
}
.pagina-quote {
  position: relative;
  display: flex;
  margin-top: 0;
  margin-bottom: 1.75rem;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.15rem 1.35rem 1.15rem 1.2rem;
  border-radius: 12px;
  background: #eef3ef;
  border-inline-start: 5px solid #1a4d32;
  box-shadow: none;
}
.pagina-quote__logo {
  flex: 0 0 auto;
  width: 2.35rem;
  height: auto;
  margin-top: 0.15em;
  display: block;
  /* El SVG trae rellenos #fefefe (fondo opaco); multiply los funde con el banner */
  mix-blend-mode: multiply;
}
.pagina-quote p,
.pagina-quote__text {
  font-style: normal;
  font-weight: 500;
  color: #3a4549;
  line-height: 1.5;
}
.pagina-quote__text > *:first-child {
  margin-top: 0;
  font-weight: 700 !important;
  color: #1a4d32 !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
}
.pagina-quote__text > *:last-child {
  margin-bottom: 0;
}
.pagina-quote__text > * + * {
  margin-top: 0.65em;
  font-size: 0.95rem !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  color: #5a6569 !important;
}

/* Intro completa: título + subtítulo bajo el encabezado */
.pagina-intro {
  margin: 0 0 1.35rem;
}
.pagina-intro__title {
  margin: 0;
  color: #682146;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.casa-intro__sumario p:first-child,
.casa-intro__sumario > *:first-child {
  margin-top: 0;
}
.casa-intro__sumario p:last-child,
.casa-intro__sumario > *:last-child {
  margin-bottom: 0;
}
.casa-intro__photo figcaption i {
  margin-right: 0.35rem;
}

.pagina-aside {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}
.pagina-aside > * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.pagina-aside .casa-intro__photo {
  margin-bottom: 0;
}
.pagina-aside .pn-banners--aside,
.pagina-aside .pagina-faqs--derecha,
.pagina-aside .tj-sidebar-widget {
  margin: 0;
}

.pagina-side-card {
  background: #f4f5f4;
  border-radius: 14px;
  padding: 1.15rem 1.2rem 1rem;
}
.proyecto-side-recursos {
  display: grid;
  gap: 1rem;
}
.pagina-side-card__title {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a2428;
}

.pagina-doc-list,
.pagina-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pagina-doc-list li + li,
.pagina-link-list li + li {
  border-top: 1px solid #e2e6e3;
}
.pagina-doc-list li a,
.pagina-link-list li a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.15rem;
  color: #1a2428;
  text-decoration: none;
  transition: color 0.2s ease;
}
.pagina-doc-list li a:hover,
.pagina-link-list li a:hover {
  color: #6b0e47;
}
.pagina-doc-list__icon,
.pagina-link-list__icon {
  width: 1.75rem;
  flex-shrink: 0;
  color: #6b0e47;
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pagina-doc-list__text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
  flex: 1;
}
.pagina-doc-list__name,
.pagina-link-list__text {
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.35;
}
.pagina-doc-list__meta {
  font-size: 0.78rem;
  color: #6a757c;
  font-weight: 500;
}
.pagina-doc-list__dl,
.pagina-link-list__go {
  color: #6b0e47;
  flex-shrink: 0;
  opacity: 0.85;
}

.pagina-video-grid {
  display: grid;
  gap: 0.85rem;
}
.pagina-video-grid .pn-wave-card {
  margin: 0;
}

.pagina-banners {
  margin-top: 1.75rem;
  display: grid;
  gap: 1rem;
}
.pagina-related-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: #e9efea;
  min-height: 160px;
}
a.pagina-related-banner:hover {
  color: inherit;
}
.pagina-related-banner__media {
  display: block;
  min-height: 160px;
}
.pagina-related-banner__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pagina-related-banner__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  padding: 1.25rem 1.35rem;
}
.pagina-related-banner__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a2428;
  line-height: 1.3;
}
.pagina-related-banner__text {
  font-size: 0.92rem;
  color: #4a555c;
  line-height: 1.45;
}
.pagina-related-banner__cta {
  margin-top: 0.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  align-self: flex-start;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1.5px solid #6b0e47;
  color: #6b0e47;
  font-size: 0.85rem;
  font-weight: 700;
}

.pagina-related {
  margin-top: 3rem;
}
.pagina-related__title {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a2428;
}
.pagina-aside .tj-sidebar-widget.pagina-related-widget {
  margin-bottom: 1.15rem;
}
.pagina-aside .tj-sidebar-widget.pagina-related-widget:last-child {
  margin-bottom: 0;
}

@media (max-width: 991.98px) {
  .pagina-related-banner {
    grid-template-columns: 1fr;
  }
  .pagina-related-banner__media {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }
}

/* ——— Menú La Fundación ——— */
.mainmenu ul > li > .sub-menu.pn-submenu-fundacion {
  width: 320px;
}
.mainmenu ul > li > .sub-menu > li > .sub-menu {
  display: block;
  position: absolute;
  width: 240px;
  z-index: 100;
  text-align: start;
  background-color: var(--tj-color-common-white);
  box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  transform: scaleY(0);
  transform-origin: top;
  opacity: 0;
  visibility: hidden;
  gap: 0;
  padding: 10px 0;
  pointer-events: none;
  transition: 0.35s;
}
.mainmenu ul > li > .sub-menu > li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: scaleY(1);
  pointer-events: auto;
}
.mainmenu ul > li > .sub-menu > li > .sub-menu > li > a {
  position: relative;
  padding: 10px 20px;
  display: block;
  color: var(--tj-color-text-body);
}
.mainmenu ul > li > .sub-menu > li > .sub-menu > li:hover > a {
  color: var(--tj-color-theme-primary);
}

.pn-list-table {
  --bs-table-bg: transparent;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.pn-list-table thead th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5a6570;
  border-bottom: 1px solid #dfe6ea;
  white-space: nowrap;
}
.pn-list-table tbody td {
  padding: 0.9rem 0.75rem;
  border-bottom: 1px solid #eef2f4;
  vertical-align: top;
  font-size: 0.95rem;
  color: #2a343a;
}
.pn-list-table tbody tr:hover td {
  background: #f7faf6;
}

/* ——— Licitaciones listado + modal ——— */
.pn-lic-page .pagina-body {
  font-size: 0.95rem;
}
.pn-lic-table {
  font-size: 0.84rem;
}
.pn-lic-table thead th {
  font-size: 0.72rem;
  background: #f3f5f4;
  padding: 0.65rem 0.55rem;
}
.pn-lic-table tbody td {
  padding: 0.65rem 0.55rem;
  font-size: 0.84rem;
  line-height: 1.4;
  background: #fafbf6;
  border-bottom-color: #e8ece4;
}
.pn-lic-table tbody tr:nth-child(even) td {
  background: #f4f7f0;
}
.pn-lic-table tbody tr:hover td {
  background: #eef5ea;
}
.pn-lic-table__estado {
  width: 3rem;
  text-align: center;
}
.pn-lic-table__num {
  width: 4.2rem;
  white-space: nowrap;
  color: #5a6570;
  font-variant-numeric: tabular-nums;
}
.pn-lic-table__title-text {
  display: block;
  font-weight: 500;
  color: #1a2428;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}
.pn-lic-detail-btn.tj-primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.45rem;
  min-height: 0;
  padding: 0.55rem 1.1rem;
  font-size: 0.72rem;
  line-height: 1;
  vertical-align: middle;
  border-radius: 999px;
  overflow: visible;
}
.pn-lic-detail-btn.tj-primary-btn .btn-text {
  padding: 0;
  overflow: visible;
}
.pn-lic-detail-btn.tj-primary-btn .btn-text span {
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  text-shadow: none;
  transform: none;
  transition: opacity 0.2s ease;
}
.pn-lic-detail-btn.tj-primary-btn:hover .btn-text span {
  transform: none;
  text-shadow: none;
  opacity: 0.92;
}
.pn-lic-detail-btn.tj-primary-btn .btn-icon {
  width: auto;
  height: auto;
  min-width: 0;
  background-color: transparent;
  border-radius: 0;
  color: inherit;
}
.pn-lic-detail-btn.tj-primary-btn .btn-icon i {
  font-size: 0.9em;
  color: inherit;
  transform: none;
  transition: transform 0.2s ease;
}
.pn-lic-detail-btn.tj-primary-btn:hover .btn-icon i {
  transform: translateX(2px);
}
.pn-lic-detail-btn.tj-primary-btn:hover {
  text-decoration: none;
}

/* Versión clara (listados densos): blanco + borde corporativo */
.pn-lic-detail-btn--light.tj-primary-btn {
  background: #fff;
  border: 1px solid var(--pn-btn-corp, #682146);
  box-shadow: none;
  color: var(--pn-btn-corp, #682146) !important;
}
.pn-lic-detail-btn--light.tj-primary-btn .btn-text,
.pn-lic-detail-btn--light.tj-primary-btn .btn-text span {
  color: inherit;
  text-shadow: none;
}
.pn-lic-detail-btn--light.tj-primary-btn .btn-icon {
  background: transparent;
}
.pn-lic-detail-btn--light.tj-primary-btn .btn-icon i {
  color: inherit;
}
.pn-lic-detail-btn--light.tj-primary-btn:hover {
  background: var(--pn-btn-corp, #682146);
  border-color: var(--pn-btn-corp, #682146);
  color: #fff !important;
}
.pn-lic-detail-btn--light.tj-primary-btn:hover .btn-text span {
  color: inherit;
  opacity: 1;
}

.pn-lic-status {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  line-height: 1;
  background: #fff;
  color: #8c3891;
  box-shadow: 0 1px 3px rgba(26, 36, 40, 0.08);
}
.pn-lic-status--open,
.pn-lic-status--closed {
  background: #fff;
  color: #8c3891;
  box-shadow: 0 1px 3px rgba(26, 36, 40, 0.08);
}

.pn-lic-modal .modal-content {
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}
body > .pn-lic-modal {
  z-index: 1080;
}
body > .modal-backdrop {
  z-index: 1070;
}
.pn-lic-modal .modal-dialog {
  margin: 1.75rem auto;
}
.pn-lic-modal .modal-header {
  border-bottom: 1px solid #e8ece4;
  padding: 1.15rem 1.35rem;
  background: #fff;
}
.pn-lic-modal .modal-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: #1a2428;
  text-transform: uppercase;
  padding-right: 1rem;
}
.pn-lic-modal .modal-body {
  padding: 1.15rem 1.35rem 1.5rem;
  background: #f4f5f4;
}
.pn-lic-modal__estado-badge {
  display: inline-flex;
  align-items: center;
  margin: 0 0 1rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pn-lic-modal__estado-badge.is-open {
  background: #e3ebe4;
  color: #1a4d32;
}
.pn-lic-modal__estado-badge.is-closed {
  background: #f3e6ee;
  color: #6b0e47;
}
.pn-lic-modal__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pn-lic-modal__list li {
  display: grid;
  grid-template-columns: 2.25rem 9.5rem minmax(0, 1fr);
  gap: 0.5rem;
  align-items: start;
  padding: 0.25rem 0;
  border-bottom: 1px dashed #dde3df;
  font-size: 0.9rem;
}
.pn-lic-modal__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-top: 0;
  border-radius: 8px;
  background: #fff;
  color: #8c3891;
  font-size: 1.05rem;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(26, 36, 40, 0.08);
}
.pn-lic-modal__icon i {
  color: #8c3891;
}
.pn-lic-modal__label {
  font-weight: 700;
  color: #6b0e47;
  padding-top: 0.4rem;
}
.pn-lic-modal__value {
  color: #2a343a;
  line-height: 1.45;
  word-break: break-word;
  padding-top: 0.4rem;
  min-height: 1.2em;
}
.pn-lic-modal__value p:last-child {
  margin-bottom: 0;
}
.pn-lic-modal__block {
  margin-top: 1.25rem;
}
.pn-lic-modal__block h3 {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a2428;
}
.pn-lic-modal__docs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.pn-lic-modal__docs a {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.45rem;
  color: #6b0e47;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}
.pn-lic-modal__docs a:hover {
  color: #1a4d32;
  text-decoration: underline;
}
.pn-lic-doc__text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}
.pn-lic-doc__name {
  line-height: 1.35;
}
.pn-lic-doc__meta {
  font-size: 0.78rem;
  color: #6a757c;
  font-weight: 500;
  text-decoration: none;
}
.pn-lic-modal__docs a:hover .pn-lic-doc__meta {
  color: #5a6a62;
  text-decoration: none;
}

@media (max-width: 767.98px) {
  .pn-lic-modal__list li {
    grid-template-columns: 2.25rem minmax(0, 1fr);
  }
  .pn-lic-modal__label {
    grid-column: 2;
    padding-top: 0;
  }
  .pn-lic-modal__value {
    grid-column: 2;
    padding-top: 0;
  }
}

/* —— Ficha actividad —— */
body:has(.actividad-ficha) {
  background: #fff;
}
.actividad-ficha {
  padding-block: 2rem 3rem;
  background: #fff;
}
.actividad-ficha__eyebrow {
  margin-bottom: 0.35rem;
  /* Raya + color: bloque --pn-eyebrow-* */
}
.actividad-ficha__title {
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  color: #1a2824;
}
.actividad-ficha .pagina-quote {
  margin-bottom: 1.5rem;
}
.actividad-ficha__hero {
  position: relative;
  margin: 0 0 2rem;
  border-radius: 16px;
  overflow: hidden;
  background: #dde3e7;
}
.actividad-ficha__hero img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}
.actividad-ficha__hero figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(40, 48, 52, 0.72);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  max-width: calc(100% - 28px);
}
.actividad-ficha__hero figcaption a {
  color: #fff;
  text-decoration: none;
}
.actividad-ficha__hero figcaption a:hover {
  text-decoration: underline;
}
.actividad-ficha__countdown {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  background: rgba(26, 40, 36, 0.82);
  color: #fff;
}
.actividad-ficha__countdown.is-done {
  display: none;
}
.actividad-ficha__countdown-label {
  font-size: 0.85rem;
  font-weight: 600;
}
.actividad-ficha__countdown-grid {
  display: flex;
  gap: 0.75rem;
}
.actividad-ficha__countdown-grid span {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 2.4rem;
  line-height: 1.1;
}
.actividad-ficha__countdown-grid strong {
  font-size: 1.15rem;
  font-weight: 700;
}
.actividad-ficha__countdown-grid small {
  font-size: 0.65rem;
  text-transform: uppercase;
  opacity: 0.85;
}
.actividad-ficha__body {
  margin-bottom: 2.25rem;
}
.actividad-ficha__body > :first-child {
  margin-top: 0;
}
.actividad-ficha__body > :last-child {
  margin-bottom: 0;
}
.actividad-ficha__obs {
  margin-top: 0.5rem;
  padding-top: 0.25rem;
}
.actividad-ficha__obs-title {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #682146;
}
.actividad-ficha__obs-list {
  list-style: none;
  margin: 0;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: #e9efea;
  display: grid;
  gap: 0.65rem;
}
.actividad-ficha__obs-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: #1a4d32;
  font-size: 0.95rem;
  line-height: 1.4;
}
.actividad-ficha__obs-list i {
  margin-top: 0.2rem;
  color: #60af37;
}
.actividad-ficha__aviso {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border-left: 4px solid #c9a227;
  background: #fff8e1;
  color: #6b5300;
}
.actividad-ficha__aviso > i {
  flex: 0 0 auto;
  margin-top: 0.15rem;
  font-size: 1.05rem;
  color: #b8860b;
}
.actividad-ficha__aviso-text {
  font-size: 0.9rem;
  line-height: 1.4;
}
.actividad-ficha__aviso-text strong {
  font-weight: 700;
  margin-right: 0.25rem;
}
.actividad-ficha__agenda-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #eef6ea 0%, #f4faf1 100%);
  border: 1px solid #cfe3c4;
  color: #1a4d32;
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.actividad-ficha__agenda-cta:hover,
.actividad-ficha__agenda-cta:focus-visible {
  border-color: #60af37;
  box-shadow: 0 6px 18px rgba(26, 77, 50, 0.08);
  transform: translateY(-1px);
  color: #1a4d32;
}
.actividad-ficha__agenda-cta-ico {
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #fff;
  color: #60af37;
  font-size: 1.05rem;
}
.actividad-ficha__agenda-cta-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.25;
}
.actividad-ficha__agenda-cta-text strong {
  font-size: 0.95rem;
  font-weight: 700;
}
.actividad-ficha__agenda-cta-text span {
  font-size: 0.8rem;
  color: #4a6b55;
}
.actividad-ficha__agenda-cta-go {
  flex: 0 0 auto;
  color: #60af37;
  font-size: 0.95rem;
}
.actividad-ficha__jornadas > span {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.actividad-ficha__jornadas-hint {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: #6b7c70;
  line-height: 1.3;
}
.actividad-ficha__jornadas-list {
  list-style: none;
  margin: 0.15rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.actividad-ficha__jornadas-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.65rem;
  margin: 0;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  background: #f5f8f4;
  border: 0;
}
.actividad-ficha__jornada-dia {
  font-weight: 700;
  color: #1a4d32;
}
.actividad-ficha__jornada-hora {
  font-size: 0.85rem;
  color: #4a6b55;
}
.actividad-ficha__aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.actividad-ficha__estado {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
}
.actividad-ficha__estado.is-curso { background: #60af37; }
.actividad-ficha__estado.is-prox { background: #e67e22; }
.actividad-ficha__estado.is-done { background: #c0392b; }
.actividad-ficha__aside .casa-practica {
  margin: 0;
}
.actividad-ficha__programa {
  margin: 0.35rem 0 0.85rem;
  padding-top: 0.35rem;
  border-top: 1px solid #e2e6e3;
}
.actividad-ficha__galeria-box .casa-practica__list {
  margin-bottom: 0;
}
.actividad-ficha__galeria-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}
.actividad-ficha__galeria-item {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  background: #dde3e7;
  cursor: zoom-in;
}
.actividad-ficha__galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.actividad-ficha__galeria-item:hover img {
  transform: scale(1.04);
}
.actividad-ficha__galeria-item:hover .casa-masonry__zoom {
  opacity: 1;
}
.actividad-ficha .casa-espacio-side + .casa-espacio-side {
  margin-top: 0;
}

.actividad-rel {
  padding-block: 2.5rem 3.5rem;
  background: #fff;
}
.actividad-rel__box {
  background: #e9efea;
  border-radius: 14px;
  padding: 26px 24px 28px;
}
.actividad-rel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1.35rem;
}
.actividad-rel__eyebrow {
  margin-bottom: 0.25rem;
  /* Raya + color: bloque --pn-eyebrow-* */
}
.actividad-rel__title {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 700;
  color: #1a2824;
}
.actividad-rel__all {
  font-size: 0.92rem;
  font-weight: 600;
  color: #682146;
  text-decoration: none;
}
.actividad-rel__all:hover {
  color: #1a4d32;
}
.actividad-rel__slider-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.actividad-rel__slider {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}
.actividad-rel__slider .swiper-slide {
  height: auto;
}
.actividad-rel__slider .pn-wave-card {
  height: 100%;
}
.actividad-rel__btn {
  flex: 0 0 auto;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #1a4d32;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(26, 40, 36, 0.08);
}
.actividad-rel__btn:hover {
  background: #1a4d32;
  color: #fff;
}
.actividad-rel__btn.swiper-button-disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}
@media (max-width: 575.98px) {
  .actividad-rel__box {
    padding: 20px 14px 22px;
  }
  .actividad-rel__slider-wrap {
    gap: 0.35rem;
  }
  .actividad-rel__btn {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 991.98px) {
  .actividad-ficha__countdown {
    bottom: 3.2rem;
  }
}

/* ——— Banners por zona (CTA) ——— */
.pn-banners {
  display: grid;
  gap: 1rem;
}
.pn-banners--main {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

/* Bloque principal «De interés» (intermedia / final) */
.pn-banners-full {
  margin: 2.5rem 0 0;
  padding-bottom: 0;
}
.pn-banners-full::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 1.5rem;
  background: linear-gradient(90deg, rgba(104, 33, 70, 0.45), rgba(104, 33, 70, 0.06));
}
.pn-banners-full .pn-banners-full__label {
  margin: 0 0 1.35rem;
}
.pn-banners-full .pn-banners--main {
  margin-top: 0;
  margin-bottom: 0;
}

.pn-banners-full__label + .pn-banners--main {
  margin-top: 0;
}
.pagina-page > .container > .row + .row .pn-banners--main {
  margin-top: 0;
}
/* Fila final «De interés»: aire tras el contenido; si hay FAQs, el margen lo aporta el bloque FAQ */
.pagina-page > .container > .row + .row .pn-banners-full {
  margin-top: 2.5rem;
}
.pagina-page > .container:has(.pagina-faqs--abajo) > .row + .row .pn-banners-full {
  margin-top: 0.35rem;
}
.pn-banners-full__label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2.5rem 0 1.35rem;
  padding: 0;
  font-family: var(--tj-ff-title, var(--tj-ff-body, inherit));
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #682146;
  line-height: 1;
}
.pn-banners-full__label span {
  flex: 0 0 auto;
}
.pn-banners-full__label::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(104, 33, 70, 0.45), rgba(104, 33, 70, 0.06));
}

/* FAQs en ficha de página (Bexon tj-faq style-2) */
.pagina-faqs {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}
/* Debajo del contenido: más separación antes de «De interés» / siguiente bloque */
.pagina-faqs--abajo {
  margin-top: 2rem;
  margin-bottom: 3.25rem;
}
.pagina-faqs .pn-banners-full__label {
  margin-top: 0;
  margin-bottom: 1.35rem;
}
.pagina-faqs--derecha {
  margin-top: 0;
  margin-bottom: 0;
}
.pagina-faqs--derecha .pn-banners-full__label {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
}
.pagina-faqs--derecha .tj-faq .accordion-item {
  margin-bottom: 0.55rem;
}
.pagina-faqs--derecha .tj-faq .faq-title {
  font-size: 0.95rem;
  line-height: 1.35;
  padding-block: 0.85rem;
}
.pagina-faqs .tj-faq {
  padding-top: 0;
}
.pagina-faqs .tj-faq .accordion-item {
  background-color: #fff;
  box-shadow: 0 8px 24px rgba(15, 40, 28, 0.06);
  overflow: hidden;
}
.pagina-faqs .tj-faq .faq-title {
  background: transparent;
  border: 0;
  box-shadow: none;
  cursor: pointer;
  text-align: start;
}
.pagina-faqs .tj-faq.style-2 .accordion-item.active .accordion-body,
.pagina-faqs .tj-faq.style-2 .accordion-item.active .accordion-body :is(p, li, span, strong, em, a) {
  color: var(--tj-color-common-white);
}
.pagina-faqs .tj-faq.style-2 .accordion-item.active .accordion-body a {
  text-decoration: underline;
}

/* —— Página FAQs (temas + acordeón) —— */
.pn-faqs-page {
  background: #fff;
}
.pn-faqs-cats {
  position: sticky;
  top: 6.5rem;
  background: #f6f4f2;
  border-radius: 14px;
  padding: 1.35rem 1.15rem 1.15rem;
}
.pn-faqs-cats__title {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #682146;
}
.pn-faqs-cats__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.pn-faqs-cats__link {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  text-decoration: none;
  color: #1a2428;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.35;
  transition: background 0.2s ease, color 0.2s ease;
}
.pn-faqs-cats__link:hover {
  background: rgba(104, 33, 70, 0.08);
  color: #682146;
}
.pn-faqs-cats__link.is-active {
  background: #682146;
  color: #fff;
}
.pn-faqs-cats__name {
  min-width: 0;
  flex: 1;
}
.pn-faqs-cats__count {
  flex-shrink: 0;
  min-width: 1.6rem;
  height: 1.6rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.08);
  color: inherit;
}
.pn-faqs-cats__link.is-active .pn-faqs-cats__count {
  background: rgba(255, 255, 255, 0.2);
}
.pn-faqs-panel__title {
  margin: 0 0 1.25rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a2428;
  line-height: 1.3;
}
.pn-faqs-panel__empty {
  margin: 0;
  color: #6a757c;
}
.pn-faqs-panel .tj-faq .accordion-item {
  background-color: #fff;
  box-shadow: 0 8px 24px rgba(15, 40, 28, 0.06);
  overflow: hidden;
}
.pn-faqs-panel .tj-faq .faq-title {
  background: transparent;
  border: 0;
  box-shadow: none;
  cursor: pointer;
  text-align: start;
}
.pn-faqs-panel .tj-faq.style-2 .accordion-item.active .accordion-body,
.pn-faqs-panel .tj-faq.style-2 .accordion-item.active .accordion-body :is(p, li, span, strong, em, a) {
  color: var(--tj-color-common-white);
}
.pn-faqs-panel .tj-faq.style-2 .accordion-item.active .accordion-body a {
  text-decoration: underline;
}
@media (max-width: 991.98px) {
  .pn-faqs-cats {
    position: static;
    top: auto;
  }
}

.pn-banners--aside {
  margin: 0 0 1.25rem;
}
.pn-banners--aside .pn-banner-mapa {
  margin: 0;
}
.pn-banners--aside .pn-banner-mapa + .pn-banner-mapa {
  margin-top: 0;
}
.pn-banner-mapa__frame {
  aspect-ratio: auto;
  height: auto;
}
.pn-banner-mapa__frame a {
  display: block;
}
.pn-banner-mapa__frame img {
  width: 100%;
  height: auto;
  display: block;
}
.pn-banner-mapa .casa-practica__title {
  margin-bottom: 16px;
}
.pn-banner {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
a.pn-banner:hover {
  color: inherit;
}
.pn-banner--img img {
  display: block;
  width: 100%;
  height: auto;
}
.pn-banners--aside .pn-banner--img {
  border-radius: 12px;
}
.pn-banner--card {
  background: #e9efea;
  padding: 1.25rem 1.35rem;
}
.pn-banner__body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.pn-banner__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a2428;
  line-height: 1.3;
}
.pn-banner__text {
  font-size: 0.92rem;
  color: #4a555c;
  line-height: 1.45;
}
.pn-banner__cta {
  margin-top: 0.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  align-self: flex-start;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1.5px solid #6b0e47;
  color: #6b0e47;
  font-size: 0.85rem;
  font-weight: 600;
}
a.pn-banner--card:hover .pn-banner__cta {
  background: #6b0e47;
  color: #fff;
}
.casa-sidebar .pn-banners--aside,
.pagina-aside .pn-banners--aside,
.tj-main-sidebar .pn-banners--aside,
.sendero-aside .pn-banners--aside {
  margin-top: 0;
}

/* —— Footer redesigned —— */
.pn-footer {
  --pn-footer-burgundy: #682146;
  --pn-footer-green: #1a4d32;
  --pn-footer-ink: #243028;
  --pn-footer-muted: #5a6860;
  --pn-footer-surface: #f6f4f2;
  position: relative;
  margin-top: 0;
  background: #fff;
  color: var(--pn-footer-ink);
  overflow: hidden;
}
.pn-footer__top-bg {
  position: relative;
  z-index: 0;
  background: #fff;
  pointer-events: none;
  line-height: 0;
}
.pn-footer__top-bg img {
  display: block;
  width: 100%;
  height: auto;
}
.pn-footer__main {
  position: relative;
  z-index: 1;
  background: var(--pn-footer-surface);
  padding: 2.25rem 0 2.25rem;
}
.pn-footer__grid {
  display: grid;
  grid-template-columns: minmax(140px, 1.1fr) repeat(4, minmax(0, 1fr)) minmax(160px, 0.95fr);
  gap: 1.75rem 1.5rem;
  align-items: start;
}
.pn-footer__promo {
  margin: 0;
}
.pn-footer__promo-banner {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  line-height: 0;
  box-shadow: 0 10px 28px rgba(15, 40, 28, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
a.pn-footer__promo-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(15, 40, 28, 0.12);
}
.pn-footer__promo-banner img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}
.pn-footer__logo {
  display: inline-block;
  max-width: 168px;
  padding: 10px;
  background-color: white;
  border-radius: 10px;
}
.pn-footer__logo img {
  width: 100%;
  height: auto;
  display: block;
}
.pn-footer__heading {
  margin: 0 0 0.9rem;
  font-family: var(--tj-ff-title, var(--tj-ff-body, inherit));
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pn-footer-burgundy);
  line-height: 1.3;
}

/* Mapa web dinámico (masonry en 4 columnas) */
.pn-mapa-web {
  margin-top: 8px;
}

.pn-mapa-web__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.35rem;
  align-items: start;
}

.pn-mapa-web__lane {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  min-width: 0;
}

.pn-mapa-web__col {
  margin: 0;
  padding: 1.1rem 1.15rem 1.2rem;
  border-radius: 12px;
  background: #f7f8f6;
  border: 1px solid rgba(26, 40, 36, 0.08);
}

.pn-mapa-web__title {
  margin: 0 0 0.9rem;
  padding-bottom: 0.55rem;
  border-bottom: 2px solid rgba(107, 14, 71, 0.18);
  font-family: var(--tj-ff-title, var(--tj-ff-body, inherit));
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b0e47;
  line-height: 1.3;
}

.pn-mapa-web__block + .pn-mapa-web__block {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(26, 40, 36, 0.08);
}

.pn-mapa-web__subtitle {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1a4d32;
  line-height: 1.3;
}

.pn-mapa-web__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.pn-mapa-web__list a {
  display: inline-block;
  color: #2a3d36;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.15s ease;
}

.pn-mapa-web__list a:hover {
  color: #6b0e47;
}

@media (max-width: 991.98px) {
  .pn-mapa-web__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .pn-mapa-web__grid {
    grid-template-columns: 1fr;
  }
}
.pn-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.pn-footer__list a {
  color: var(--pn-footer-green);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.2s ease;
}
.pn-footer__list a:hover {
  color: var(--pn-footer-burgundy);
}
.pn-footer__shortcuts {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(26, 77, 50, 0.12);
  border-bottom: 1px solid rgba(26, 77, 50, 0.12);
  background: #f7f8f6;
  padding: 1rem 0;
}
.pn-footer__shortcuts-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.pn-footer__shortcut-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  flex: 1 1 auto;
}
.pn-footer__shortcut-list li {
  display: flex;
  align-items: center;
}
.pn-footer__shortcut-list li + li::before {
  content: "";
  width: 1px;
  height: 2rem;
  background: rgba(26, 77, 50, 0.18);
  margin: 0 0.15rem;
}
.pn-footer__shortcut-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.75rem;
  color: var(--pn-footer-green);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
}
.pn-footer__shortcut-list a:hover {
  color: var(--pn-footer-burgundy);
}
.pn-footer__shortcut-list i {
  font-size: 1.15rem;
  flex: 0 0 auto;
}
.pn-footer__social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.45rem;
  flex: 0 0 auto;
}
.pn-footer__social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--pn-footer-green);
  color: #fff;
  font-size: 0.9rem;
  transition: background 0.2s ease, transform 0.2s ease;
}
.pn-footer__social a:hover {
  background: var(--pn-footer-burgundy);
  color: #fff;
  transform: translateY(-1px);
}
.pn-footer__bottom {
  position: relative;
  z-index: 1;
  background: var(--pn-footer-burgundy);
  color: #fff;
  padding: 1.15rem 0 1.25rem;
}
.pn-footer__bottom-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}
.pn-footer__institutions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.pn-footer__jcyl {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  opacity: 0.92;
}
.pn-footer__jcyl:hover {
  color: #fff;
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pn-footer__institutions-sep {
  width: 1px;
  height: 1.6rem;
  background: rgba(255, 255, 255, 0.35);
}
.pn-footer__brand-mark {
  display: inline-flex;
  line-height: 0;
}
.pn-footer__brand-mark img {
  width: 34px;
  height: auto;
  display: block;
}
.pn-footer__tagline {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.95);
}
.pn-footer__tagline i {
  font-size: 0.85rem;
  opacity: 0.9;
}
.pn-footer__bottom-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.pn-footer__copy {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
  flex: 1 1 220px;
}
.pn-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.35rem 0.55rem;
  max-width: min(100%, 52rem);
  margin-left: auto;
}
.pn-footer__legal a {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.pn-footer__legal a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: #fff;
}
.pn-footer__legal-sep {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.72rem;
  user-select: none;
}

@media (max-width: 1199.98px) {
  .pn-footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .pn-footer__brand {
    grid-column: 1 / -1;
  }
  .pn-footer__promo {
    grid-column: 1 / -1;
    max-width: 280px;
  }
}
@media (max-width: 991.98px) {
  .pn-footer__shortcut-list li + li::before {
    display: none;
  }
  .pn-footer__shortcut-list {
    gap: 0.35rem 0.5rem;
  }
  .pn-footer__shortcut-list a {
    max-width: none;
    background: #fff;
    border-radius: 999px;
    border: 1px solid rgba(26, 77, 50, 0.12);
    padding: 0.4rem 0.75rem;
  }
}
@media (max-width: 767.98px) {
  .pn-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1.1rem;
  }
  .pn-footer__promo {
    max-width: 220px;
  }
  .pn-footer__legal {
    justify-content: flex-start;
    margin-left: 0;
  }
  .pn-footer__bottom-row {
    flex-direction: column;
  }
}
@media (max-width: 575.98px) {
  .pn-footer__grid {
    grid-template-columns: 1fr;
  }
}


/* —— Home: hero noticias + carrusel wave superpuesto —— */
.pn-home-news {
  position: relative;
  padding-bottom: 2.5rem;
  background-color: #f2f4ec;
}

.pn-home-news__stage {
  position: relative;
  isolation: isolate;
}

.pn-home-news__hero {
  position: relative;
  width: 100%;
  height: clamp(480px, 78vh, 820px);
  border-radius: 12px;
  overflow: hidden;
  background: #1a2824;
}

.pn-home-news__slide {
  position: relative;
  height: clamp(480px, 78vh, 820px);
  overflow: hidden;
}

.pn-home-news__bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.045);
  transition: transform 1.45s ease;
}

.pn-home-news__hero .swiper-slide-active .pn-home-news__bg {
  transform: scale(1);
}

.pn-home-news__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* Oscurece más hacia el centro: el copy del hero es más ancho */
  background:
    linear-gradient(90deg, rgba(12, 18, 16, 0.84) 0%, rgba(12, 18, 16, 0.62) 46%, rgba(12, 18, 16, 0.28) 72%, rgba(12, 18, 16, 0.08) 100%),
    linear-gradient(180deg, rgba(12, 18, 16, 0.15) 0%, transparent 28%, transparent 55%, rgba(12, 18, 16, 0.35) 100%);
}

.pn-home-news__inner {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  height: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 9.5rem;
}

.pn-home-news__copy {
  /* Títulos largos: más ancho que el 60% original (~1 línea menos en desktop) */
  max-width: min(76%, 54rem);
  width: min(76%, 54rem);
  color: #fff;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 0.15s, transform 0.8s ease 0.15s;
}

.pn-home-news__hero .swiper-slide-active .pn-home-news__copy {
  opacity: 1;
  transform: translateY(0);
}

.pn-home-news__eyebrow {
  margin: 0 0 0.55rem;
  /* En hero sobre foto: un poco más claro para contraste */
  color: #7ecf6a;
  letter-spacing: 0.14em;
}

.pn-home-news__date {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.85rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(26, 77, 50, 0.92);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.pn-home-news__title {
  margin: 0 0 0.85rem;
  color: #fff;
  /* Un poco más compacto: títulos largos caben mejor sin perder presencia */
  font-size: clamp(1.45rem, 2.35vw, 2.35rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: wrap;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
}

.pn-home-news__summary {
  margin: 0 0 1.35rem;
  max-width: none;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.92rem, 1.15vw, 1.05rem);
  line-height: 1.55;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.pn-home-news__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.72rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--pn-btn-corp, #682146);
  background: #fff;
  color: var(--pn-btn-corp, #682146);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.pn-home-news__cta:hover,
.pn-home-news__cta:focus-visible {
  background: var(--pn-btn-corp, #682146);
  border-color: var(--pn-btn-corp, #682146);
  color: #fff;
  transform: translateY(-1px);
}

.pn-home-news__nav {
  position: absolute;
  top: 42%;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  background: rgba(12, 18, 16, 0.28);
  color: #fff;
  backdrop-filter: blur(4px);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.pn-home-news__nav:hover,
.pn-home-news__nav:focus-visible {
  background: rgba(107, 14, 71, 0.88);
  border-color: #6b0e47;
  outline: none;
}

.pn-home-news__nav--prev {
  left: clamp(0.75rem, 2vw, 1.75rem);
}

.pn-home-news__nav--next {
  right: clamp(0.75rem, 2vw, 1.75rem);
}

.pn-home-news__nav i {
  font-size: 1rem;
  line-height: 1;
}

.pn-home-news__counter {
  position: absolute;
  left: clamp(1rem, 4vw, 3.5rem);
  bottom: 9.25rem;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.pn-home-news__counter-bar {
  position: relative;
  display: block;
  width: 3.25rem;
  height: 2px;
  margin-left: 0.65rem;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  overflow: hidden;
}

.pn-home-news__counter-bar::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--pn-home-progress, 25%);
  background: #7ecf6a;
  border-radius: inherit;
  transition: width 0.5s ease;
}

/* Remate inferior: mismas curvas que page header */
.pn-home-news__fondo {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  width: 100%;
  z-index: 3;
  pointer-events: none;
  line-height: 0;
  opacity: 0.8;
}

.pn-home-news__fondo--blanco {
  z-index: 3;
  opacity: 1;
}

.pn-home-news__fondo img {
  display: block;
  width: 100%;
  height: auto;
}

.pn-home-news__rail {
  position: relative;
  z-index: 5;
  margin-top: -9.75rem;
  padding: 0 0 1.25rem;
}

.pn-home-news__rail-row {
  display: flex;
  align-items: flex-end;
  gap: 1.15rem;
}

.pn-home-news__thumbs {
  flex: 1 1 auto;
  min-width: 0;
  width: calc(75% - 0.575rem);
  max-width: calc(75% - 0.575rem);
  overflow: visible;
  padding: 0.35rem 0.15rem 0.85rem;
}

.pn-home-news__more {
  flex: 0 0 calc(25% - 0.575rem);
  width: calc(25% - 0.575rem);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0 0.15rem 1.35rem 0;
  align-self: flex-end;
}

.pn-home-news__all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  max-width: 100%;
  padding: 0.78rem 1.15rem;
  border-radius: 999px;
  border: 1.5px solid #1a4d32;
  background: #fff;
  color: #1a4d32;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(26, 40, 36, 0.1);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.pn-home-news__all span {
  white-space: nowrap;
}

.pn-home-news__all i {
  font-size: 0.85rem;
  line-height: 1;
  flex: 0 0 auto;
}

.pn-home-news__all:hover,
.pn-home-news__all:focus-visible {
  background: #1a4d32;
  border-color: #1a4d32;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(26, 40, 36, 0.16);
  outline: none;
}

.pn-home-news__thumbs .swiper-slide {
  height: auto;
}

.pn-home-news__card {
  position: relative;
  cursor: pointer;
  height: 100%;
  /* border: 0; */
  box-shadow: 0 4px 14px rgba(26, 40, 36, 0.08);
  transform: scale(0.9);
  transition: transform 0.45s ease, box-shadow 0.45s ease, border-color 0.45s ease;
  border: 4px solid white;
}

.pn-home-news__card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: inherit;
  background: rgba(12, 18, 16, 0.18);
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.pn-home-news__card:hover {
  transform: scale(0.95) translateY(-4px);
  box-shadow: 0 6px 18px rgba(26, 40, 36, 0.12);
  color: inherit;
}

.pn-home-news__card:hover::after {
  opacity: 0.15;
}

.pn-home-news__card .pn-wave-card__media {
  aspect-ratio: 16 / 10;
  margin-bottom: -24px;
}

.pn-home-news__card .pn-wave-card__content {
  padding: 6px 14px 14px;
}

.pn-home-news__card .pn-wave-card__title {
  margin: 6px 0 0;
  font-size: 0.98rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  min-height: 3.7em;
}

.pn-home-news__card .pn-wave-card__tag--tipo {
  font-size: 0.68rem;
  letter-spacing: 0.05em;
}

.pn-home-news__thumbs .swiper-slide-thumb-active .pn-home-news__card {
  border: 8px solid #fff;
  opacity: 1;
  transform: scale(1.09) translateY(-12px);
  box-shadow: 0 6px 16px rgba(26, 40, 36, 0.12);
}

.pn-home-news__thumbs .swiper-slide-thumb-active .pn-home-news__card::after {
  opacity: 0;
}

.pn-home-news__thumbs .swiper-slide-thumb-active .pn-home-news__card:hover {
  transform: scale(1.09) translateY(-12px);
  opacity: 1;
  border-color: #fff;
}

@media (max-width: 1199.98px) {
  .pn-home-news__copy {
    max-width: min(88%, 48rem);
    width: min(88%, 48rem);
  }

  .pn-home-news__title {
    font-size: clamp(1.4rem, 2.5vw, 2.1rem);
  }
}

@media (max-width: 991.98px) {
  .pn-home-news__hero,
  .pn-home-news__slide {
    height: clamp(420px, 70vh, 640px);
  }

  .pn-home-news__inner {
    padding: 3rem 1rem 8.5rem;
  }

  .pn-home-news__copy {
    max-width: 100%;
    width: 100%;
    padding-right: 3.25rem; /* hueco para flechas laterales */
  }

  .pn-home-news__title {
    font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  }

  .pn-home-news__nav {
    top: auto;
    bottom: 9.5rem;
    width: 42px;
    height: 42px;
  }

  .pn-home-news__counter {
    bottom: 8.5rem;
    left: 1rem;
  }

  .pn-home-news__rail {
    margin-top: -8.25rem;
  }

  .pn-home-news__rail-row {
    flex-wrap: wrap;
  }

  .pn-home-news__thumbs {
    width: 100%;
    max-width: 100%;
    flex: 1 1 100%;
  }

  .pn-home-news__more {
    flex: 1 1 100%;
    width: 100%;
    justify-content: flex-end;
    align-items: flex-end;
    padding-top: 0.15rem;
    padding-bottom: 0.35rem;
    padding-right: 0.15rem;
  }
}

@media (max-width: 575.98px) {
  .pn-home-news {
    margin-bottom: 1.75rem;
  }

  .pn-home-news__hero,
  .pn-home-news__slide {
    height: min(72vh, 520px);
    min-height: 400px;
  }

  .pn-home-news__inner {
    align-items: center;
    padding: 2.75rem 0.9rem 7.5rem;
  }

  .pn-home-news__copy {
    padding-right: 2.75rem;
  }

  .pn-home-news__title {
    font-size: 1.28rem;
    line-height: 1.22;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    overflow: hidden;
  }

  .pn-home-news__summary {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin-bottom: 1rem;
  }

  .pn-home-news__nav--prev {
    left: 0.65rem;
  }

  .pn-home-news__nav--next {
    right: 0.65rem;
  }

  .pn-home-news__counter {
    left: 0.85rem;
    bottom: 7.5rem;
  }

  .pn-home-news__rail {
    margin-top: -7rem;
    padding-bottom: 0.5rem;
  }

  .pn-home-news__more {
    justify-content: center;
  }

  .pn-home-news__all {
    width: 100%;
    max-width: 280px;
  }

  .pn-home-news__card .pn-wave-card__title {
    font-size: 0.92rem;
    min-height: 3.5em;
    -webkit-line-clamp: 2;
  }

  .pn-home-news__thumbs .swiper-slide-thumb-active .pn-home-news__card {
    transform: scale(1.05) translateY(-6px);
  }

  .pn-home-news__thumbs .swiper-slide-thumb-active .pn-home-news__card:hover {
    transform: scale(1.05) translateY(-6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pn-home-news__bg,
  .pn-home-news__copy,
  .pn-home-news__card,
  .pn-home-news__card::after,
  .pn-home-news__counter-bar::after,
  .pn-home-news__cta,
  .pn-home-news__all {
    transition: none !important;
  }

  .pn-home-news__copy {
    opacity: 1;
    transform: none;
  }
}

/* —— Home: Fundación (página 62, full-width bajo el slide) —— */
.pn-home-fundacion {
  --pn-fundacion-green: #1a4d32;
  --pn-fundacion-muted: #3d5246;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 3.25rem 0 3.5rem;
  background-color: #eef3ee;
}

.pn-home-fundacion__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: #eef3ee;
  background-image: var(--pn-fundacion-bg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.pn-home-fundacion__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(246, 248, 245, 0.92) 0%,
    rgba(246, 248, 245, 0.82) 42%,
    rgba(246, 248, 245, 0.55) 72%,
    rgba(246, 248, 245, 0.28) 100%
  );
}

.pn-home-fundacion__inner {
  position: relative;
}

.pn-home-fundacion__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.2fr);
  gap: 2.5rem 3rem;
  align-items: center;
}

.pn-home-fundacion__title {
  margin: 0 0 1rem;
  max-width: 18ch;
  color: var(--pn-fundacion-green);
  font-size: clamp(1.65rem, 2.4vw, 2.35rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.pn-home-fundacion__sumario {
  margin: 0 0 1.5rem;
  max-width: 36rem;
  color: var(--pn-fundacion-muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.pn-home-fundacion__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.82rem 1.35rem;
  border-radius: 999px;
  border: 1.5px solid var(--pn-fundacion-green);
  background: var(--pn-fundacion-green);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(26, 77, 50, 0.22);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.pn-home-fundacion__cta:hover,
.pn-home-fundacion__cta:focus-visible {
  background: #6b0e47;
  border-color: #6b0e47;
  color: #fff;
  transform: translateY(-1px);
  outline: none;
}

.pn-home-fundacion__pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
  align-items: start;
  padding-left: 1.75rem;
  border-left: 1px solid rgba(26, 77, 50, 0.14);
}

.pn-home-fundacion__pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
  margin: 0;
  padding: 0.35rem 0.4rem;
}

.pn-home-fundacion__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(96, 175, 55, 0.12);
}

.pn-home-fundacion__icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pn-home-fundacion__pillar-title {
  margin: 0;
  color: var(--pn-fundacion-green);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.25;
}

.pn-home-fundacion__pillar-text {
  margin: 0;
  max-width: 14ch;
  color: var(--pn-fundacion-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

@media (max-width: 991.98px) {
  .pn-home-fundacion {
    padding: 2.75rem 0 3rem;
  }

  .pn-home-fundacion__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .pn-home-fundacion__title {
    max-width: none;
  }

  .pn-home-fundacion__pillars {
    padding-left: 0;
    border-left: 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(26, 77, 50, 0.14);
  }

  .pn-home-fundacion__bg::after {
    background: linear-gradient(
      180deg,
      rgba(246, 248, 245, 0.94) 0%,
      rgba(246, 248, 245, 0.78) 55%,
      rgba(246, 248, 245, 0.55) 100%
    );
  }
}

@media (max-width: 575.98px) {
  .pn-home-fundacion__pillars {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .pn-home-fundacion__pillar-text {
    max-width: 28ch;
  }

  .pn-home-fundacion__cta {
    width: 100%;
    justify-content: center;
  }
}

/* —— Home: espacios naturales (header + scroll 8 wave cards) —— */
.pn-home-espacios {
  padding-top: 3.5rem;
  padding-bottom: 3.75rem;
  background: #faf9f9;
}

.pn-home-espacios__intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-bottom: 1.75rem;
}

.pn-home-espacios__intro-copy {
  max-width: 36rem;
}

.pn-home-espacios__title {
  margin: 0 0 0.85rem;
  color: #1a1a1a;
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.pn-home-espacios__text {
  margin: 0;
  color: #5a656c;
  font-size: 1rem;
  line-height: 1.55;
}

.pn-home-espacios__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.78rem 1.3rem;
  border-radius: 999px;
  border: 1.5px solid #60af37;
  background: #60af37;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(96, 175, 55, 0.28);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.pn-home-espacios__cta:hover,
.pn-home-espacios__cta:focus-visible {
  background: #6b0e47;
  border-color: #6b0e47;
  color: #fff;
  transform: translateY(-1px);
  outline: none;
}

.pn-home-espacios__slider-wrap {
  position: relative;
}

.pn-home-espacios__slider {
  padding-bottom: 2.5rem; /* pb-40: deja ver la sombra de las cards */
}

.pn-home-espacios__slider .swiper-slide {
  height: auto;
}

.pn-home-espacios__card {
  height: 100%;
}

.pn-home-espacios__card .pn-wave-card__title {
  font-size: 1.02rem;
  margin-right: 2.2rem;
}

.pn-home-espacios__card .pn-wave-card__text {
  font-size: 0.8rem;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pn-home-espacios__pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  margin-top: -0.85rem;
  min-height: 0.7rem;
}

.pn-home-espacios__pagination .swiper-pagination-bullet {
  width: 0.55rem;
  height: 0.55rem;
  margin: 0 !important;
  border-radius: 999px;
  background: #c5cfc8;
  opacity: 1;
  transition: width 0.25s ease, background 0.25s ease;
}

.pn-home-espacios__pagination .swiper-pagination-bullet-active {
  width: 1.65rem;
  background: #60af37;
}

@media (max-width: 575.98px) {
  .pn-home-espacios {
    padding-top: 2rem;
    padding-bottom: 2.25rem;
  }

  .pn-home-espacios__intro {
    flex-direction: column;
    align-items: flex-start;
  }

  .pn-home-espacios__cta {
    width: 100%;
    justify-content: center;
  }
}

/* —— Home: CTA entre espacios y mapa —— */
.pn-home-cta {
  padding: 0.25rem 0 0.5rem;
  background: #fff;
}
.pn-home-cta--fullwidth {
  padding: 0;
}
.pn-home-cta--fullwidth .pn-home-cta__band {
  border-radius: 0;
  box-shadow: none;
  padding-left: clamp(1.25rem, 4vw, 3rem);
  padding-right: clamp(1.25rem, 4vw, 3rem);
  min-height: 14rem;
}
.pn-home-cta__band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  padding: 2rem 2rem;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(26, 77, 50, 0.94) 0%, rgba(45, 110, 62, 0.9) 48%, rgba(26, 77, 50, 0.96) 100%),
    radial-gradient(ellipse 70% 90% at 90% 20%, rgba(96, 175, 55, 0.35), transparent 55%);
  color: #fff;
  box-shadow: 0 14px 36px rgba(26, 77, 50, 0.18);
  overflow: hidden;
  position: relative;
  isolation: isolate;
}
.pn-home-cta__band--foto {
  background:
    linear-gradient(105deg, rgba(18, 48, 32, 0.88) 0%, rgba(26, 77, 50, 0.72) 42%, rgba(18, 48, 32, 0.55) 100%),
    var(--pn-cta-bg) center / cover no-repeat;
}
.pn-home-cta__band--foto.pn-home-cta__band--align-center {
  /* background:
    linear-gradient(180deg, rgba(18, 48, 32, 0.78) 0%, rgba(26, 77, 50, 0.72) 55%, rgba(18, 48, 32, 0.82) 100%),
    var(--pn-cta-bg) center / cover no-repeat; */
}
.pn-home-cta__copy {
  max-width: 38rem;
}
.pn-home-cta__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}
.pn-home-cta__eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  background: currentColor;
  flex: 0 0 auto;
}
.pn-home-cta__title {
  margin: 0 0 0.65rem;
  color: #fff;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.pn-home-cta__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
  line-height: 1.55;
}
.pn-home-cta__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  flex: 0 0 auto;
}
.pn-home-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  background: #fff;
  color: #1a4d32;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.pn-home-cta__btn:hover,
.pn-home-cta__btn:focus-visible {
  background: #6b0e47;
  color: #fff;
  transform: translateY(-1px);
  outline: none;
  border: 1px solid #fff;
}
.pn-home-cta__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.35rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.pn-home-cta__link:hover,
.pn-home-cta__link:focus-visible {
  color: #fff;
  outline: none;
}

/* Centrada: columna, texto y botones al centro (como el ejemplo con foto) */
.pn-home-cta__band--align-center {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.35rem;
  padding: 2.75rem 2rem;
}
.pn-home-cta__band--align-center .pn-home-cta__copy {
  max-width: 42rem;
}
.pn-home-cta__band--align-center .pn-home-cta__eyebrow {
  justify-content: center;
}
.pn-home-cta__band--align-center .pn-home-cta__eyebrow::after {
  content: "";
  width: 1.75rem;
  height: 2px;
  background: currentColor;
  flex: 0 0 auto;
}
.pn-home-cta__band--align-center .pn-home-cta__actions {
  align-items: center;
}
.pn-home-cta__band--align-center .pn-home-cta__link {
  margin-left: 0;
}

/* Derecha: columna alineada a la derecha */
.pn-home-cta__band--align-right {
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  text-align: right;
  gap: 1.35rem;
}
.pn-home-cta__band--align-right .pn-home-cta__copy {
  max-width: 38rem;
}
.pn-home-cta__band--align-right .pn-home-cta__eyebrow {
  justify-content: flex-end;
}
.pn-home-cta__band--align-right .pn-home-cta__eyebrow::before {
  display: none;
}
.pn-home-cta__band--align-right .pn-home-cta__eyebrow::after {
  content: "";
  width: 1.75rem;
  height: 2px;
  background: currentColor;
  flex: 0 0 auto;
}
.pn-home-cta__band--align-right .pn-home-cta__actions {
  align-items: flex-end;
}
.pn-home-cta__band--align-right .pn-home-cta__link {
  margin-left: 0;
  margin-right: 0.35rem;
}

@media (max-width: 767.98px) {
  .pn-home-cta__band {
    padding: 1.5rem 1.25rem;
  }
  .pn-home-cta__band--align-left {
    flex-direction: column;
    align-items: stretch;
  }
  .pn-home-cta__band--align-center {
    padding: 2rem 1.25rem;
  }
  .pn-home-cta__actions {
    width: 100%;
  }
  .pn-home-cta__band--align-left .pn-home-cta__actions,
  .pn-home-cta__band--align-center .pn-home-cta__actions {
    align-items: stretch;
  }
  .pn-home-cta__band--align-right .pn-home-cta__actions {
    width: 100%;
    align-items: stretch;
  }
  .pn-home-cta__btn {
    width: 100%;
    justify-content: center;
  }
  .pn-home-cta__band--align-right {
    align-items: stretch;
    text-align: right;
  }
}

/* —— Home: mapa interactivo —— */
.pn-home-mapa {
  background: #f9f8f8e6;
}

.pn-home-mapa__intro {
  max-width: 40rem;
  margin-bottom: 1.5rem;
}

.pn-home-mapa__title {
  margin: 0 0 0.65rem;
  font-family: var(--tj-ff-heading, 'Mona Sans', sans-serif);
  font-size: clamp(1.65rem, 2.4vw, 2.15rem);
  font-weight: 800;
  line-height: 1.15;
  color: #1a2428;
}

.pn-home-mapa__text {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--tj-color-text-body, #4a4a4a);
}

.pn-home-mapa .pn-mapa-app {
  margin-top: 0;
}

/* ==========================================================================
   Buscador global — página /buscar (Fase 3A)
   ========================================================================== */

.buscar-page .buscar-form {
  margin-bottom: 1.5rem;
}

.buscar-form__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: stretch;
}

.buscar-form__field {
  position: relative;
  flex: 1 1 16rem;
  min-width: 0;
}

.buscar-form__icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6b0e47;
  font-size: 1.05rem;
  pointer-events: none;
  z-index: 1;
}

.buscar-form__input {
  height: 3.25rem;
  padding-left: 2.75rem !important;
  border-radius: 999px;
  border: 1.5px solid rgba(107, 14, 71, 0.18);
  background: #fff;
  font-size: 1.05rem;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
}

.buscar-form__input:focus {
  border-color: #60af37;
  box-shadow: 0 0 0 3px rgba(96, 175, 55, 0.2);
  outline: none;
}

.buscar-form__submit {
  flex: 0 0 auto;
  height: 3.25rem;
  padding-inline: 1.35rem;
}

.buscar-form__submit:focus-visible {
  outline: 3px solid rgba(96, 175, 55, 0.45);
  outline-offset: 2px;
}

.buscar-meta {
  margin: 0 0 1.1rem;
  color: #4b5563;
  font-size: 1.02rem;
}

.buscar-meta strong {
  color: #6b0e47;
  font-weight: 700;
}

.buscar-meta__filter {
  color: #6b7280;
  font-size: 0.95em;
}

.buscar-filtros {
  margin-bottom: 1.75rem;
}

.buscar-filtros__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.55rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 0.25rem;
}

.buscar-filtros__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1.5px solid rgba(107, 14, 71, 0.16);
  background: #fff;
  color: #3f3f46;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.buscar-filtros__chip:hover,
.buscar-filtros__chip:focus-visible {
  border-color: #60af37;
  color: #6b0e47;
  outline: none;
}

.buscar-filtros__chip:focus-visible {
  box-shadow: 0 0 0 3px rgba(96, 175, 55, 0.25);
}

.buscar-filtros__chip.is-active {
  background: #6b0e47;
  border-color: #6b0e47;
  color: #fff;
}

.buscar-filtros__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  background: #60af37;
  color: #fff;
}

/* Conteos = misma paleta viva del mega-menú (badges t1–t6), texto blanco */
.buscar-filtros__count--noticia { background: #6b0e47; color: #fff; }
.buscar-filtros__count--casa { background: #60af37; color: #fff; }
.buscar-filtros__count--espacio { background: #15803d; color: #fff; }
.buscar-filtros__count--sendero { background: #ca8a04; color: #fff; }
.buscar-filtros__count--proyecto { background: #2563eb; color: #fff; }
.buscar-filtros__count--actividad { background: var(--tj-color-red-1, #e11d48); color: #fff; }
.buscar-filtros__count--pagina { background: #7c3aed; color: #fff; }
.buscar-filtros__count--video { background: #0d9488; color: #fff; }

.buscar-filtros__chip.is-active .buscar-filtros__count {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.buscar-results {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.buscar-result {
  margin: 0;
}

.buscar-result__link {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: #fff;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.buscar-result__link:hover,
.buscar-result__link:focus-visible {
  border-color: rgba(96, 175, 55, 0.55);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
  transform: translateY(-1px);
  outline: none;
}

.buscar-result__link:focus-visible {
  box-shadow: 0 0 0 3px rgba(96, 175, 55, 0.28), 0 10px 28px rgba(17, 24, 39, 0.08);
}

.buscar-result__media {
  display: block;
  width: 7.5rem;
  height: 5.5rem;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #f3f4f6;
}

.buscar-result__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.buscar-result__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.buscar-result__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
}

.buscar-result__tipo {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: #6b0e47;
  padding: 0.28rem 0.65rem;
  border-radius: 6px;
  line-height: 1.2;
}

/* Misma paleta que .mega-menu-badge--t1…t6 (+ marca) */
.buscar-result__tipo--noticia { color: #fff; background: #6b0e47; }
.buscar-result__tipo--casa { color: #fff; background: #60af37; }
.buscar-result__tipo--espacio { color: #fff; background: #15803d; }
.buscar-result__tipo--sendero { color: #fff; background: #ca8a04; }
.buscar-result__tipo--proyecto { color: #fff; background: #2563eb; }
.buscar-result__tipo--actividad { color: #fff; background: var(--tj-color-red-1, #e11d48); }
.buscar-result__tipo--pagina { color: #fff; background: #7c3aed; }
.buscar-result__tipo--video { color: #fff; background: #0d9488; }

.buscar-result__date {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: #6b7280;
}

.buscar-result__badge {
  display: inline-block;
  margin-left: 0.25rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(96, 175, 55, 0.16);
  color: #3f6b24;
}

.buscar-result__title {
  display: block;
  font-family: var(--tj-ff-heading, inherit);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.3;
  color: #1f2937;
}

.buscar-result__excerpt {
  display: block;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #4b5563;
}

.buscar-result__go {
  color: #60af37;
  font-size: 1.15rem;
  opacity: 0.85;
}

.buscar-hl {
  background: rgba(96, 175, 55, 0.28);
  color: inherit;
  padding: 0 0.12em;
  border-radius: 0.15em;
  font-weight: 600;
}

.buscar-empty {
  margin: 1.5rem 0 2rem;
  padding: 1.75rem 1.5rem;
  border-radius: 1rem;
  border: 1px dashed rgba(107, 14, 71, 0.22);
  background: rgba(107, 14, 71, 0.03);
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
}

.buscar-empty__title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #6b0e47;
}

.buscar-empty__text,
.buscar-empty__hint {
  margin: 0;
  color: #4b5563;
  line-height: 1.5;
}

.buscar-empty__hint {
  margin-top: 0.75rem;
  font-size: 0.92rem;
  color: #6b7280;
}

@media (max-width: 767.98px) {
  .buscar-form__submit {
    width: 100%;
    justify-content: center;
  }

  .buscar-result__link {
    grid-template-columns: 5.25rem minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.75rem;
  }

  .buscar-result__media {
    width: 5.25rem;
    height: 4.25rem;
  }

  .buscar-result__go {
    display: none;
  }

  .buscar-result__title {
    font-size: 1.02rem;
  }

  .buscar-result__excerpt {
    font-size: 0.88rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* ==========================================================================
   Buscador global — header AJAX (Fase 3B)
   ========================================================================== */

body.pn-buscar-open {
  overflow: hidden;
}

body.pn-buscar-open .header-area {
  z-index: 10060;
}

.search-popup-overlay.search-popup-overlay-open {
  z-index: 10050;
  background-color: rgba(12, 30, 33, 0.42);
}

.search_popup.pn-buscar-global {
  z-index: 10070;
}

.pn-header-mobile-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.pn-header-mobile-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #6b0e47;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.pn-header-mobile-search:focus-visible {
  outline: 3px solid rgba(96, 175, 55, 0.4);
  outline-offset: 2px;
}

/* Override tema: el popup estaba display:none en móvil */
.search_popup.pn-buscar-global {
  display: block;
  padding: 1.75rem 0 1.5rem;
  max-height: min(78vh, 40rem);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 18px 48px rgba(17, 24, 39, 0.14);
  border: 1px solid rgba(107, 14, 71, 0.08);
}

.search_popup.pn-buscar-global[hidden] {
  display: none !important;
}

.pn-buscar-global__wrap {
  display: block;
  min-height: 0;
  position: relative;
  width: 100%;
}

.pn-buscar-global__close-mobile {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: rgba(107, 14, 71, 0.06);
  color: #6b0e47;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pn-buscar-global__close-mobile:focus-visible {
  outline: 3px solid rgba(96, 175, 55, 0.4);
  outline-offset: 2px;
}

.pn-buscar-global__eyebrow {
  margin: 0 0 0.85rem;
  font-family: var(--tj-ff-heading, inherit);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 700;
  color: #6b0e47;
  line-height: 1.2;
}

.pn-buscar-global__field {
  position: relative;
  display: flex;
  align-items: center;
}

.pn-buscar-global__icon {
  position: absolute;
  left: 1.05rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6b0e47;
  font-size: 1.05rem;
  pointer-events: none;
  z-index: 1;
}

.pn-buscar-global__input,
.search_popup.pn-buscar-global .pn-buscar-global__input {
  width: 100%;
  height: 3.4rem;
  padding: 0 3.4rem 0 2.85rem !important;
  border-radius: 999px !important;
  border: 1.5px solid rgba(107, 14, 71, 0.18) !important;
  background: #fff !important;
  font-size: 1.05rem !important;
  color: #1f2937 !important;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
}

.pn-buscar-global__input:focus {
  border-color: #60af37 !important;
  box-shadow: 0 0 0 3px rgba(96, 175, 55, 0.22) !important;
  outline: none;
}

.pn-buscar-global__submit {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.7rem;
  height: 2.7rem;
  border: 0;
  border-radius: 999px;
  background: #60af37;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s ease;
}

.pn-buscar-global__submit:hover,
.pn-buscar-global__submit:focus-visible {
  background: #6b0e47;
  outline: none;
}

.pn-buscar-global__spinner {
  position: absolute;
  right: 3.35rem;
  top: 50%;
  width: 1rem;
  height: 1rem;
  margin-top: -0.5rem;
  border: 2px solid rgba(107, 14, 71, 0.15);
  border-top-color: #6b0e47;
  border-radius: 50%;
  animation: pn-buscar-spin 0.7s linear infinite;
}

@keyframes pn-buscar-spin {
  to { transform: rotate(360deg); }
}

.pn-buscar-global__hint {
  margin: 0.85rem 0 0;
  color: #6b7280;
  font-size: 0.92rem;
  line-height: 1.45;
}

.pn-buscar-global__panel {
  margin-top: 1.15rem;
}

.pn-buscar-global__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 0.9rem;
  overflow: hidden;
  background: #fff;
}

.pn-buscar-global__item + .pn-buscar-global__item {
  border-top: 1px solid rgba(17, 24, 39, 0.06);
}

.pn-buscar-global__link {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem 0.85rem;
  text-decoration: none;
  color: inherit;
  min-height: 3.4rem;
  transition: background 0.15s ease;
}

.pn-buscar-global__item.is-active .pn-buscar-global__link,
.pn-buscar-global__link:hover,
.pn-buscar-global__link:focus-visible {
  background: rgba(96, 175, 55, 0.08);
  outline: none;
}

.pn-buscar-global__media {
  display: block;
  width: 3.5rem;
  height: 2.65rem;
  border-radius: 0.45rem;
  overflow: hidden;
  background: #f3f4f6;
}

.pn-buscar-global__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pn-buscar-global__media--empty {
  background:
    linear-gradient(135deg, rgba(107, 14, 71, 0.08), rgba(96, 175, 55, 0.12));
}

.pn-buscar-global__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.pn-buscar-global__tipo {
  align-self: flex-start;
  font-size: 0.62rem !important;
  padding: 0.15rem 0.4rem !important;
}

.pn-buscar-global__title {
  display: block;
  font-family: var(--tj-ff-heading, inherit);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.25;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pn-buscar-global__excerpt {
  display: block;
  font-size: 0.8rem;
  line-height: 1.35;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pn-buscar-global__footer {
  margin-top: 0.75rem;
}

.pn-buscar-global__more {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: #6b0e47;
  text-decoration: none;
}

.pn-buscar-global__more:hover,
.pn-buscar-global__more:focus-visible {
  color: #60af37;
  outline: none;
}

.pn-buscar-global__empty {
  padding: 1rem 0.25rem 0.35rem;
  color: #4b5563;
  font-size: 0.95rem;
}

@media (max-width: 991.98px) {
  .search_popup.pn-buscar-global {
    position: fixed;
    inset: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 1.1rem 0 1.5rem;
    border-radius: 0;
    border: 0;
    z-index: 10060;
    transform: none !important;
    background: #fff;
  }

  .search_popup.pn-buscar-global:not(.search-opened) {
    visibility: hidden;
    pointer-events: none;
  }

  .pn-buscar-global__close-mobile {
    display: inline-flex;
  }

  .pn-buscar-global__eyebrow {
    padding-right: 3rem;
    margin-bottom: 1rem;
  }

  .pn-buscar-global__title,
  .pn-buscar-global__excerpt {
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .pn-buscar-global__title {
    -webkit-line-clamp: 2;
  }

  .pn-buscar-global__excerpt {
    -webkit-line-clamp: 2;
  }

  .search-popup-overlay.search-popup-overlay-open {
    z-index: 10055;
  }
}

/* ==========================================================================
   Agenda pública de actividades (/actividades) — Fase 2.1 UX
   ========================================================================== */
.agenda-section {
  --agenda-ink: #1a2e22;
  --agenda-muted: #5b6b73;
  --agenda-brand: #1a4d32;
  --agenda-brand-2: #0d5c63;
  --agenda-soft: #eef4ef;
  --agenda-soft-2: #f6f8f6;
  --agenda-line: rgba(26, 77, 50, 0.1);
  --agenda-weekend: rgba(26, 77, 50, 0.035);
}

.agenda-intro {
  max-width: 40rem;
  margin-bottom: 1.35rem;
}
.agenda-intro__text {
  color: var(--agenda-muted);
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
}

.agenda-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}
.agenda-toolbar__right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
}

.agenda-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.agenda-quick__btn {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--agenda-line);
  background: #fff;
  color: var(--agenda-ink);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.agenda-quick__btn:hover,
.agenda-quick__btn:focus-visible {
  border-color: var(--agenda-brand);
  color: var(--agenda-brand);
  outline: none;
}
.agenda-quick__btn.is-active {
  background: var(--agenda-brand);
  border-color: var(--agenda-brand);
  color: #fff;
}
.agenda-quick__btn--clear {
  font-weight: 500;
  color: var(--agenda-muted);
  border-style: dashed;
}

.agenda-mode-toggle {
  display: inline-flex;
  gap: 0;
  padding: 0.2rem;
  background: var(--agenda-soft);
  border: 1px solid var(--agenda-line);
  border-radius: 999px;
}
.agenda-mode-toggle__btn {
  border: 0;
  background: transparent;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--agenda-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.agenda-mode-toggle__btn.is-active {
  background: #fff;
  color: var(--agenda-brand);
  box-shadow: 0 1px 2px rgba(26, 46, 34, 0.08);
}
.agenda-mode-toggle__btn:focus-visible {
  outline: 2px solid var(--agenda-brand);
  outline-offset: 2px;
}

.agenda-en-curso-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(196, 92, 38, 0.28);
  background: rgba(196, 92, 38, 0.08);
  color: #9a4a1e;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.agenda-en-curso-btn:hover,
.agenda-en-curso-btn:focus-visible {
  background: rgba(196, 92, 38, 0.14);
  border-color: rgba(196, 92, 38, 0.45);
  color: #7a3a16;
  outline: none;
}
.agenda-en-curso-btn__n {
  font-variant-numeric: tabular-nums;
}

/* Filtros compactos */
.agenda-filters-wrap {
  margin-bottom: 1.35rem;
}
.agenda-filters-toggle {
  display: none;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  justify-content: center;
  padding: 0.65rem 1rem;
  border: 1px solid var(--agenda-line);
  border-radius: 0.75rem;
  background: #fff;
  color: var(--agenda-ink);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.65rem;
  position: relative;
}
.agenda-filters-toggle__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--agenda-brand);
}
.agenda-filters {
  margin: 0;
  padding: 0;
  background: transparent;
}
.agenda-filters__panel {
  padding: 0.75rem 0.9rem;
  background: var(--agenda-soft-2);
  border: 1px solid var(--agenda-line);
  border-radius: 0.85rem;
}
.agenda-filters__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 0.65rem 0.75rem;
  align-items: end;
}
.agenda-filters__field .form-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--agenda-muted);
  margin-bottom: 0.25rem;
}
.agenda-filters__field .form-select {
  min-height: 2.15rem;
  font-size: 0.9rem;
  border-color: var(--agenda-line);
  background-color: #fff;
}
.agenda-filters__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  padding-bottom: 0.1rem;
}
.agenda-filters__apply {
  border: 0;
  background: var(--agenda-brand);
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  cursor: pointer;
}
.agenda-filters__apply:hover {
  background: #143d28;
}
.agenda-filters__clear {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--agenda-muted);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.agenda-filters__clear:hover {
  color: var(--agenda-brand);
}

/* Bloque permanente de cards: eliminado (acceso vía botón + modal) */
.agenda-en-curso { display: none !important; }

.agenda-leyenda {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--agenda-line);
}
.agenda-leyenda__label {
  margin: 0 0 0.55rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--agenda-muted);
}
.agenda-leyenda__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.1rem;
}
.agenda-leyenda__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--agenda-ink);
  font-weight: 600;
}
.agenda-leyenda__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.agenda-month-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0 0 0.95rem;
  flex-wrap: wrap;
}
.agenda-month-nav__title {
  margin: 0;
  min-width: 11rem;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--agenda-ink);
  white-space: nowrap;
}
.agenda-month-nav__btn {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.55rem;
  border: 1px solid var(--agenda-line);
  background: var(--agenda-soft);
  color: var(--agenda-brand);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.agenda-month-nav__btn:hover,
.agenda-month-nav__btn:focus-visible {
  background: #fff;
  border-color: rgba(26, 77, 50, 0.35);
  outline: none;
}
.agenda-month-nav__hoy {
  margin-left: 0.35rem;
  border: 1px solid var(--agenda-line);
  background: #fff;
  color: var(--agenda-brand);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
}
.agenda-month-nav__hoy:hover,
.agenda-month-nav__hoy:focus-visible {
  background: var(--agenda-soft);
  outline: none;
}

/* Zona secundaria: propuestas mes/semana (una sola vez) */
.agenda-semana-curso {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0 0.35rem;
  background: transparent;
  border: none;
  border-radius: 0;
  position: relative;
}
.agenda-semana-curso__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}
.agenda-semana-curso__title {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--agenda-muted);
}
.agenda-semana-curso__nav {
  display: inline-flex;
  gap: 0.35rem;
  flex: 0 0 auto;
}
.agenda-semana-curso__btn {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  background: #e9efea;
  color: #1a4d32;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}
.agenda-semana-curso__btn:hover:not(:disabled):not(.is-disabled) {
  background: #1a4d32;
  color: #fff;
}
.agenda-semana-curso__btn:disabled,
.agenda-semana-curso__btn.is-disabled {
  opacity: 0.35;
  cursor: default;
}
.agenda-semana-curso__viewport {
  position: relative;
}
.agenda-programadas-title {
  margin: 0.35rem 0 0.65rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--agenda-muted);
}
#agenda-publica.is-semana .agenda-semana-curso {
  margin-bottom: 0.35rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--agenda-line);
}
.agenda-semana-curso__track {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.55rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.15rem 0.1rem 0.55rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-behavior: smooth;
}
.agenda-semana-curso__track::-webkit-scrollbar {
  display: none;
}
.agenda-curso-card {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: min(15.5rem, 78vw);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.18rem;
  padding: 0.55rem 0.7rem 0.6rem;
  background: #fff;
  border: 1px solid var(--agenda-line);
  border-left: 3px solid var(--agenda-act, #2f6b4f);
  border-radius: 0.55rem;
  text-align: left;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.agenda-curso-card:hover,
.agenda-curso-card:focus-visible {
  border-color: rgba(26, 77, 50, 0.28);
  box-shadow: 0 4px 14px rgba(26, 46, 34, 0.07);
  outline: none;
}
.agenda-curso-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 0.1rem;
}
.agenda-curso-card__badge {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.12rem 0.35rem;
  border-radius: 0.25rem;
  background: rgba(26, 77, 50, 0.08);
  color: var(--agenda-brand);
}
.agenda-curso-card__badge--cat {
  background: rgba(26, 46, 34, 0.05);
  color: var(--agenda-muted);
  font-weight: 700;
}
.agenda-curso-card__name {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--agenda-ink);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.agenda-curso-card__meta,
.agenda-curso-card__until {
  font-size: 0.72rem;
  color: var(--agenda-muted);
  line-height: 1.3;
}
@media (min-width: 768px) {
  .agenda-curso-card { width: 14.5rem; }
}
@media (min-width: 1100px) {
  .agenda-curso-card { width: 15rem; }
}

.agenda-fc-event--week {
  padding: 0.45rem 0.55rem 0.5rem 0.6rem;
  gap: 0.15rem;
  min-height: 0;
}
.agenda-fc-event--week .agenda-fc-event__title {
  font-size: 0.82rem;
  -webkit-line-clamp: 4;
  font-weight: 700;
  line-height: 1.25;
}
.agenda-fc-event--month .agenda-fc-event__title {
  -webkit-line-clamp: 2;
  order: 0;
}
.agenda-fc-event--month .agenda-fc-event__time {
  order: 1;
  font-weight: 700;
  opacity: 0.92;
}
.agenda-fc-event__casa {
  font-size: 0.68rem;
  color: var(--agenda-muted);
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.agenda-fc-event__cat {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--agenda-act, var(--agenda-brand));
  opacity: 0.9;
}

#agenda-publica.is-semana #agenda-calendar .fc .fc-daygrid-day-frame {
  min-height: 12rem;
}
#agenda-publica.is-mes #agenda-calendar .fc .fc-daygrid-day-frame {
  min-height: 6.5rem;
}
#agenda-calendar .fc .fc-daygrid-day-events { margin: 0; }
#agenda-calendar .fc .fc-daygrid-event { margin: 0.12rem 0.15rem; }
#agenda-calendar .fc .fc-daygrid-more-link { display: none !important; }

/* Minificha flotante (desktop) — estilo wave card */
.agenda-minificha {
  position: fixed;
  z-index: 1080;
  width: min(320px, calc(100vw - 24px));
  max-height: min(72vh, 560px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: none;
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(26, 46, 34, 0.28), 0 6px 16px rgba(26, 46, 34, 0.14);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  padding: 0;
}
.agenda-minificha.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.agenda-minificha__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
  border-radius: 16px;
}
.agenda-minificha__wave.pn-wave-card {
  height: auto;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  box-shadow: none;
  cursor: default;
  border-radius: 16px 16px 0 0;
}
.agenda-minificha__wave.pn-wave-card:hover {
  transform: none;
}
.agenda-minificha__actions {
  flex: 0 0 auto;
  margin-top: 0;
  padding: 0.55rem 0.75rem 0.75rem;
  background: #fff;
  border-radius: 0 0 16px 16px;
  box-shadow: none;
  display: flex;
  justify-content: center;
}
.agenda-minificha__close {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  z-index: 5;
  width: 1.75rem;
  height: 1.75rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #334;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
}
.agenda-minificha__wave .pn-wave-card__media {
  aspect-ratio: 16 / 10;
  margin-bottom: -24px;
}
/* Hueco para la X de cierre: el tag de tipo no queda debajo */
.agenda-minificha__wave .pn-wave-card__tags {
  right: 2.75rem;
  max-width: calc(100% - 5rem);
}
.agenda-minificha__wave .pn-wave-card__content {
  padding: 0.35rem 0.9rem 0.7rem;
}
.agenda-minificha__wave .pn-wave-card__title {
  font-size: 1rem;
  margin: 0.15rem 0 0.35rem;
  display: block;
}
.agenda-minificha__wave .pn-wave-card__text {
  margin: 0.3rem 0 0;
  font-size: 0.82rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.agenda-minificha__meta {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  margin: 0.1rem 0 0.15rem;
}
.agenda-minificha__meta-row {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--agenda-muted, #5b6b73);
  line-height: 1.3;
}
.agenda-minificha__meta-row i {
  margin-top: 0.15rem;
  opacity: 0.75;
  flex: 0 0 auto;
}
.agenda-minificha__meta-row strong {
  color: var(--agenda-ink, #1a2e22);
  font-weight: 700;
}

/* CTA compacto compartido V1 + V2 */
.agenda-mf-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  background: #1a4d32;
  color: #fff !important;
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(26, 46, 34, 0.14);
  transition: background 0.15s ease, transform 0.12s ease;
  pointer-events: auto;
}
.agenda-mf-cta:hover {
  background: #163f29;
  color: #fff !important;
  transform: translateY(-1px);
}
.agenda-mf-cta i {
  font-size: 0.72rem;
  line-height: 1;
  opacity: 0.95;
}

.agenda-quick-offcanvas {
  --bs-offcanvas-width: min(100vw, 26rem);
}
.agenda-quick-offcanvas .agenda-minificha__wave.pn-wave-card {
  box-shadow: none;
  border-radius: 0.75rem;
  border-bottom-left-radius: 0.75rem;
  border-bottom-right-radius: 0.75rem;
  overflow: visible;
}
.agenda-quick-offcanvas .agenda-minificha__actions {
  margin-top: 0.85rem;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.agenda-leyenda { display: none !important; }

.agenda-timeline__item {
  border-left: 3px solid var(--agenda-brand);
  padding-left: 0.65rem;
}

.agenda-panel[hidden] {
  display: none !important;
}
.agenda-panel--calendario {
  background: #fff;
  border: 1px solid var(--agenda-line);
  border-radius: 1.35rem;
  padding: 1.15rem 1.15rem 1.35rem;
  overflow-x: hidden;
}
#agenda-calendar {
  min-width: 0;
  max-width: 100%;
}

/* FullCalendar skin */
#agenda-calendar .fc {
  --fc-border-color: transparent;
  --fc-button-bg-color: transparent;
  --fc-button-border-color: transparent;
  --fc-button-hover-bg-color: var(--agenda-soft);
  --fc-button-hover-border-color: transparent;
  --fc-button-active-bg-color: var(--agenda-soft);
  --fc-button-active-border-color: transparent;
  --fc-button-text-color: var(--agenda-ink);
  --fc-today-bg-color: transparent;
  --fc-page-bg-color: transparent;
  --fc-neutral-bg-color: transparent;
  --fc-event-border-color: transparent;
  font-family: inherit;
}
#agenda-calendar .fc .fc-toolbar {
  margin-bottom: 1rem;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
}
#agenda-calendar .fc .fc-toolbar-chunk {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 0.35rem;
}
#agenda-calendar .fc .fc-toolbar-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--agenda-ink);
  margin: 0 0.35rem;
  min-width: auto;
  text-align: center;
  white-space: nowrap;
}
#agenda-calendar .fc .fc-button,
#agenda-calendar .fc .fc-button-primary,
#agenda-calendar .fc .fc-prev-button,
#agenda-calendar .fc .fc-next-button {
  border-radius: 0.55rem !important;
  text-transform: none !important;
  font-weight: 700 !important;
  font-size: 1.15rem !important;
  line-height: 1 !important;
  box-shadow: none !important;
  padding: 0 !important;
  width: 2.1rem;
  height: 2.1rem;
  min-width: 2.1rem;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  color: var(--agenda-brand) !important;
  background: var(--agenda-soft) !important;
  background-image: none !important;
  border: 1px solid var(--agenda-line) !important;
  outline: none !important;
}
#agenda-calendar .fc .fc-button:hover,
#agenda-calendar .fc .fc-button:focus,
#agenda-calendar .fc .fc-button-primary:not(:disabled):active,
#agenda-calendar .fc .fc-button-primary:not(:disabled).fc-button-active {
  background: #fff !important;
  color: var(--agenda-brand) !important;
  border-color: rgba(26, 77, 50, 0.35) !important;
  box-shadow: none !important;
}
#agenda-calendar .fc .fc-button:disabled {
  opacity: 0.35;
}
#agenda-calendar .fc .fc-icon {
  font-size: 1.1em;
}
#agenda-calendar .fc table,
#agenda-calendar .fc .fc-scrollgrid,
#agenda-calendar .fc .fc-scrollgrid-section > td,
#agenda-calendar .fc .fc-scrollgrid-section > th,
#agenda-calendar .fc td,
#agenda-calendar .fc th {
  border: 0 !important;
}
#agenda-calendar .fc .fc-scrollgrid {
  border: 0 !important;
}
#agenda-calendar .fc .fc-col-header-cell {
  background: transparent;
  border: 0 !important;
  padding-bottom: 0.45rem;
}
#agenda-calendar .fc .fc-col-header-cell-cushion {
  color: var(--agenda-muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.25rem;
}
#agenda-calendar .fc .fc-daygrid-day {
  border: 0 !important;
  background: transparent;
}
#agenda-calendar .fc .fc-daygrid-day-frame {
  min-height: 6.75rem;
  padding: 0.35rem 0.3rem 0.5rem;
  border-radius: 0.65rem;
  border: 1px solid transparent;
  transition: background 0.15s ease;
}
#agenda-calendar .fc .fc-daygrid-day:hover .fc-daygrid-day-frame {
  background: var(--agenda-soft-2);
}
#agenda-calendar .fc .fc-day-sat .fc-daygrid-day-frame,
#agenda-calendar .fc .fc-day-sun .fc-daygrid-day-frame {
  background: var(--agenda-weekend);
}
#agenda-calendar .fc .fc-day-other .fc-daygrid-day-frame {
  opacity: 0.42;
}
#agenda-calendar .fc .fc-daygrid-day-top {
  justify-content: flex-start !important;
  flex-direction: row !important;
  align-items: center;
  gap: 0.35rem;
}
#agenda-calendar .fc .fc-daygrid-day-number {
  color: var(--agenda-ink);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.1rem 0.2rem 0.25rem;
  float: none !important;
  margin-left: 0 !important;
  margin-right: auto !important;
}
#agenda-calendar .fc .fc-day-today {
  background: transparent !important;
}
#agenda-calendar .fc .fc-day-today .fc-daygrid-day-frame {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none;
}
#agenda-calendar .fc .fc-day-today .fc-daygrid-day-number {
  color: #fff !important;
  background: var(--agenda-brand) !important;
  border-radius: 999px;
  min-width: 1.65rem;
  height: 1.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  padding: 0 0.3rem;
  font-size: 0.85rem;
}
.agenda-fc-hoy {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--agenda-brand);
  background: rgba(26, 77, 50, 0.1);
  padding: 0.12rem 0.35rem;
  border-radius: 999px;
  line-height: 1;
}

/* Eventos: mini-tarjeta con color de categoría */
#agenda-calendar .fc .fc-daygrid-event {
  margin: 0 0 0.22rem;
  padding: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
#agenda-calendar .fc .fc-daygrid-block-event .fc-event-main,
#agenda-calendar .fc .fc-daygrid-dot-event {
  padding: 0;
  color: inherit;
}
.agenda-fc-event {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  padding: 0.28rem 0.4rem 0.3rem 0.45rem;
  border-radius: 0.4rem;
  border-left: 3px solid var(--agenda-brand);
  background: rgba(26, 77, 50, 0.1);
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  white-space: normal !important;
}
.agenda-fc-event__time {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: normal;
  word-break: break-word;
}
.agenda-fc-event__title {
  font-size: 0.7rem;
  font-weight: 650;
  color: var(--agenda-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  white-space: normal;
}
#agenda-publica.is-semana .agenda-fc-event--week {
  overflow: hidden;
  min-height: 0;
  gap: 0.2rem;
}
#agenda-publica.is-semana .agenda-fc-event--week .agenda-fc-event__title {
  -webkit-line-clamp: 4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.78rem;
  line-height: 1.25;
}
#agenda-publica.is-semana .agenda-fc-event--curso {
  opacity: 0.95;
}
#agenda-calendar .fc .fc-daygrid-event,
#agenda-calendar .fc .fc-daygrid-block-event,
#agenda-calendar .fc .fc-daygrid-dot-event {
  white-space: normal !important;
}

/* Indicador discreto ··· N más / ··· N propuestas */
#agenda-calendar .fc .agenda-fc-vermas {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: auto;
  margin-bottom: 0;
  padding: 0.05rem 0.28rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #8a968e;
  font-size: 0.58rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  max-width: 100%;
  letter-spacing: 0.01em;
  opacity: 0.85;
}
#agenda-calendar .fc .agenda-fc-vermas--propuestas {
  background: transparent;
  color: #9aa59d;
  font-weight: 600;
}
#agenda-calendar .fc .agenda-fc-vermas--past {
  opacity: 0.45;
}
#agenda-calendar .fc .agenda-fc-vermas:hover,
#agenda-calendar .fc .agenda-fc-vermas:focus-visible {
  background: rgba(26, 46, 34, 0.06);
  color: var(--agenda-brand);
  opacity: 1;
  outline: none;
}
#agenda-calendar .fc .agenda-fc-vermas--propuestas:hover,
#agenda-calendar .fc .agenda-fc-vermas--propuestas:focus-visible {
  background: rgba(26, 46, 34, 0.04);
}
#agenda-calendar .fc .fc-daygrid-day-events {
  margin-bottom: 0.1rem;
}
#agenda-calendar .fc .fc-daygrid-day-frame {
  display: flex;
  flex-direction: column;
}

#agenda-calendar .fc .fc-daygrid-more-link {
  display: none !important;
}

/* Listado / timeline */
.agenda-listado__header {
  margin-bottom: 1.15rem;
}
.agenda-listado__heading {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--agenda-ink);
  margin: 0 0 0.2rem;
}
.agenda-listado__count {
  margin: 0;
  color: var(--agenda-muted);
  font-size: 0.95rem;
}
.agenda-empty {
  color: var(--agenda-muted);
  padding: 2rem 0;
  text-align: center;
}
.agenda-timeline__day,
.agenda-timeline__period {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--agenda-line);
}
.agenda-timeline__datecol {
  text-align: center;
  color: var(--agenda-brand);
}
.agenda-timeline__dow {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--agenda-muted);
}
.agenda-timeline__daynum {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--agenda-ink);
}
.agenda-timeline__month {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--agenda-muted);
}
.agenda-timeline__rango-label,
.agenda-timeline__rango-sep {
  display: block;
  font-size: 0.7rem;
  color: var(--agenda-muted);
}
.agenda-timeline__item {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 0.85rem;
  padding: 0.65rem 0;
}
.agenda-timeline__time {
  font-weight: 800;
  color: var(--agenda-brand);
  font-size: 0.95rem;
}
.agenda-timeline__time--empty {
  color: var(--agenda-line);
}
.agenda-timeline__cat,
.agenda-timeline__badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--agenda-brand);
  background: var(--agenda-soft);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  margin-bottom: 0.25rem;
  margin-right: 0.35rem;
}
.agenda-timeline__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: var(--agenda-ink);
}
.agenda-timeline__title a {
  color: inherit;
  text-decoration: none;
}
.agenda-timeline__title a:hover,
.agenda-timeline__title a:focus-visible {
  color: var(--agenda-brand);
  text-decoration: underline;
}
.agenda-timeline__meta {
  margin: 0 0 0.35rem;
  color: var(--agenda-muted);
  font-size: 0.92rem;
}
.agenda-timeline__link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--agenda-brand);
  text-decoration: none;
}
.agenda-timeline__link:hover {
  text-decoration: underline;
}

/* Archivo secundario */
.agenda-archivo-foot {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--agenda-line);
  text-align: center;
}
.agenda-archivo-foot__q {
  margin: 0 0 0.35rem;
  color: var(--agenda-muted);
  font-size: 0.95rem;
}
.agenda-archivo-foot__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--agenda-brand);
  text-decoration: none;
}
.agenda-archivo-foot__link:hover {
  text-decoration: underline;
}

/* Modal día (popup; fuera de ScrollSmoother vía JS → body) */
.agenda-day-modal {
  --agenda-ink: #1a2e22;
  --agenda-muted: #5b6b73;
  --agenda-brand: #1a4d32;
  --agenda-brand-2: #0d5c63;
  --agenda-soft: #eef4ef;
  --agenda-line: rgba(26, 77, 50, 0.1);
  z-index: 10060;
}
.agenda-day-modal .modal-content {
  border: 0;
  border-radius: 1.15rem;
  box-shadow: 0 18px 48px rgba(26, 46, 34, 0.18);
  overflow: hidden;
}
.agenda-day-modal .modal-dialog {
  max-width: min(640px, calc(100vw - 1.5rem));
  margin: 1rem auto;
}
.agenda-day-modal__header {
  align-items: flex-start;
  border-bottom: 1px solid var(--agenda-line);
  padding: 1.15rem 1.25rem 1rem;
}
.agenda-day-modal__dow {
  margin: 0 0 0.15rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--agenda-brand);
}
.agenda-day-modal .modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--agenda-ink);
  margin: 0;
}
.agenda-day-modal .modal-body {
  padding: 0.85rem 1.25rem 1.25rem;
  max-height: min(70vh, 560px);
}
.agenda-curso-modal {
  --agenda-ink: #1a2e22;
  --agenda-muted: #5b6b73;
  --agenda-brand: #1a4d32;
  --agenda-brand-2: #0d5c63;
  --agenda-soft: #eef4ef;
  --agenda-line: rgba(26, 77, 50, 0.1);
  z-index: 10060;
}
.agenda-curso-modal .modal-content {
  border: 0;
  border-radius: 1.15rem;
  box-shadow: 0 18px 48px rgba(26, 46, 34, 0.18);
  overflow: hidden;
}
.agenda-curso-modal .modal-dialog {
  max-width: min(680px, calc(100vw - 1.5rem));
  margin: 1rem auto;
}
.agenda-curso-modal .modal-body {
  padding: 0.85rem 1.25rem 1.25rem;
  max-height: min(75vh, 640px);
}
.agenda-curso-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.agenda-curso-list__item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.95rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--agenda-line);
}
.agenda-curso-list__item:last-child { border-bottom: 0; }
.agenda-curso-list__media {
  display: block;
  border-radius: 0.65rem;
  overflow: hidden;
  background: var(--agenda-soft);
  aspect-ratio: 4 / 3;
}
.agenda-curso-list__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.agenda-curso-list__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}
.agenda-curso-list__tipo {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #9a4a1e;
}
.agenda-curso-list__cat {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--agenda-brand-2);
}
.agenda-curso-list__title {
  margin: 0.1rem 0 0;
  font-size: 1.05rem;
  font-weight: 750;
  line-height: 1.3;
  color: var(--agenda-ink);
}
.agenda-curso-list__meta,
.agenda-curso-list__hasta {
  margin: 0;
  font-size: 0.88rem;
  color: var(--agenda-muted);
}
.agenda-curso-list__link {
  margin-top: 0.35rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--agenda-brand);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.agenda-curso-list__link:hover { text-decoration: underline; }
.agenda-day-group__title {
  margin: 0.35rem 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--agenda-brand);
}
.agenda-day-group__title + .agenda-day-list {
  margin-bottom: 1rem;
}
.agenda-day-list__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0 0 0.4rem;
}
.agenda-day-list__badge {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.12rem 0.4rem;
  border-radius: 0.25rem;
  background: rgba(26, 77, 50, 0.1);
  color: var(--agenda-brand);
}
.agenda-day-list__badge--cat {
  background: rgba(26, 46, 34, 0.06);
  color: var(--agenda-muted);
}
.agenda-day-list__item--curso {
  background: rgba(196, 92, 38, 0.04);
  margin: 0 -0.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  border-radius: 0.5rem;
}
.agenda-day-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.agenda-day-list__item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0.9rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--agenda-line);
}
.agenda-day-list__item:last-child {
  border-bottom: 0;
}
.agenda-day-list__item--no-thumb,
.agenda-day-list__item:not(:has(.agenda-day-list__thumb)) {
  grid-template-columns: 1fr;
}
.agenda-day-list__thumb {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 0.55rem;
  background: var(--agenda-soft);
}
.agenda-day-list__time {
  display: block;
  font-weight: 800;
  color: var(--agenda-brand);
  margin-bottom: 0.2rem;
  font-size: 0.92rem;
}
.agenda-day-list__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: var(--agenda-ink);
}
.agenda-day-list__meta {
  margin: 0 0 0.2rem;
  color: var(--agenda-muted);
  font-size: 0.88rem;
}
.agenda-day-list__meta--cat {
  font-weight: 600;
  color: var(--agenda-brand-2);
}
.agenda-day-list__sumario {
  margin: 0.35rem 0 0.2rem;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--agenda-muted);
}
.agenda-day-list__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.45rem;
  font-weight: 700;
  color: var(--agenda-brand);
  text-decoration: none;
}
.agenda-day-list__link:hover {
  text-decoration: underline;
}

@media (max-width: 991.98px) {
  .agenda-filters__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .agenda-filters__actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767.98px) {
  .agenda-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .agenda-mode-toggle {
    width: 100%;
    justify-content: stretch;
  }
  .agenda-mode-toggle__btn {
    flex: 1;
    justify-content: center;
  }
  .agenda-quick {
    width: 100%;
  }
  .agenda-quick__btn {
    flex: 1 1 auto;
    justify-content: center;
    min-height: 2.6rem;
  }
  .agenda-filters-toggle {
    display: inline-flex;
  }
  .agenda-filters:not(.is-open) .agenda-filters__panel {
    display: none;
  }
  .agenda-filters__grid {
    grid-template-columns: 1fr;
  }
  .agenda-timeline__day,
  .agenda-timeline__period {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .agenda-timeline__datecol {
    text-align: left;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.4rem;
  }
  .agenda-timeline__daynum {
    font-size: 1.5rem;
  }
  .agenda-timeline__item {
    grid-template-columns: 3.25rem 1fr;
  }
  .agenda-panel--calendario {
    padding: 0.85rem 0.7rem 1rem;
    border-radius: 1rem;
  }
  #agenda-calendar .fc .fc-toolbar-title {
    font-size: 0.95rem;
    letter-spacing: 0.04em;
  }
  #agenda-calendar .fc .fc-daygrid-day-frame {
    min-height: 4.5rem;
    padding: 0.2rem 0.15rem 0.35rem;
  }
  #agenda-calendar .fc .fc-daygrid-day-number {
    font-size: 0.88rem;
  }
  .agenda-fc-event__text {
    font-size: 0.65rem;
    -webkit-line-clamp: 1;
  }
  .agenda-day-modal .modal-dialog,
  .agenda-curso-modal .modal-dialog {
    margin: 0.75rem;
    max-width: calc(100vw - 1.5rem);
  }
  .agenda-day-modal .modal-body,
  .agenda-curso-modal .modal-body {
    max-height: 75vh;
  }
  .agenda-curso-list__item {
    grid-template-columns: 88px 1fr;
    gap: 0.75rem;
  }
  .agenda-toolbar__right {
    width: 100%;
    justify-content: space-between;
  }
  #agenda-calendar .fc .agenda-fc-vermas {
    font-size: 0.55rem;
    padding: 0.06rem 0.28rem;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  #agenda-calendar .fc .fc-toolbar-title {
    min-width: 10rem;
    font-size: 0.95rem;
  }
}

/* —— Home: vídeos (mosaico asimétrico) —— */
.pn-home-videos {
  background: #fff;
}
.pn-home-videos__intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-bottom: 1.75rem;
}
.pn-home-videos__intro-copy {
  max-width: 36rem;
}
.pn-home-videos__title {
  margin: 0 0 0.85rem;
  color: #1a1a1a;
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.pn-home-videos__text {
  margin: 0;
  color: #5a656c;
  font-size: 1rem;
  line-height: 1.55;
}
.pn-home-videos__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.78rem 1.3rem;
  border-radius: 999px;
  border: 1.5px solid #60af37;
  background: #60af37;
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.pn-home-videos__cta:hover,
.pn-home-videos__cta:focus-visible {
  background: #4f942c;
  border-color: #4f942c;
  color: #fff;
}
.pn-home-videos__mosaic {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr 1.2fr;
  grid-template-rows: minmax(240px, 26vw) minmax(220px, 24vw);
  gap: 0.9rem;
  align-items: stretch;
}
.pn-home-videos__tile {
  position: relative;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  background: #111;
  text-decoration: none;
  color: #fff;
  min-height: 0;
  height: 100%;
}
.pn-home-videos__tile--a {
  grid-column: 1 / 3;
  grid-row: 1;
}
.pn-home-videos__tile--b {
  grid-column: 3;
  grid-row: 1;
}
.pn-home-videos__tile--c {
  grid-column: 1;
  grid-row: 2;
}
.pn-home-videos__tile--d {
  grid-column: 2 / 4;
  grid-row: 2;
}
.pn-home-videos__wave.pn-home-videos__tile--b,
.pn-home-videos__wave.pn-home-videos__tile--c {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.pn-home-videos__wave.pn-video-card .pn-wave-card__media {
  flex: 1 1 auto;
  min-height: 7.5rem;
  aspect-ratio: auto;
  margin-bottom: -28px;
}
.pn-home-videos__wave .pn-wave-card__content {
  flex: 0 0 auto;
}
.pn-home-videos__wave .pn-wave-card__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 0.92rem;
}
.pn-home-videos__wave .pn-wave-card__text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 0.84rem;
}
.pn-home-videos__wave .pn-video-card__play i {
  width: 48px;
  height: 48px;
  font-size: 1rem;
}
.pn-home-videos__tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s ease;
}
.pn-home-videos__tile:hover img {
  transform: scale(1.04);
}
.pn-home-videos__tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.08) 18%,
    rgba(0, 0, 0, 0.28) 55%,
    rgba(0, 0, 0, 0.72) 100%
  );
  pointer-events: none;
}
.pn-home-videos__tile-play {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.94);
  color: #682146;
  font-size: 1rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, background 0.2s ease;
}
.pn-home-videos__tile--a .pn-home-videos__tile-play {
  width: 3.75rem;
  height: 3.75rem;
  font-size: 1.1rem;
}
.pn-home-videos__tile:hover .pn-home-videos__tile-play {
  transform: translate(-50%, -50%) scale(1.06);
  background: #fff;
}
.pn-home-videos__tile-tags {
  position: absolute;
  z-index: 2;
  top: 0.85rem;
  left: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.pn-home-videos__tile-tag {
  display: inline-block;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(26, 77, 50, 0.88);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pn-home-videos__tile-meta {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 3.2rem;
  bottom: 0;
  padding: 1rem 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.pn-home-videos__tile-title {
  font-size: clamp(0.95rem, 1.35vw, 1.15rem);
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.pn-home-videos__tile--a .pn-home-videos__tile-title {
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  -webkit-line-clamp: 3;
}
.pn-home-videos__tile-desc {
  font-size: 0.86rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.pn-home-videos__tile-go {
  position: absolute;
  z-index: 2;
  right: 0.9rem;
  bottom: 0.9rem;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 24, 20, 0.72);
  color: #fff;
  font-size: 0.85rem;
  transition: background 0.2s ease, transform 0.2s ease;
}
.pn-home-videos__tile:hover .pn-home-videos__tile-go {
  background: #6b0e47;
  transform: translateY(-1px);
}
@media (max-width: 991.98px) {
  .pn-home-videos__mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
  }
  .pn-home-videos__tile--a,
  .pn-home-videos__tile--b,
  .pn-home-videos__tile--c,
  .pn-home-videos__tile--d {
    grid-column: auto;
    grid-row: auto;
  }
  .pn-home-videos__tile--a {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
    height: auto;
  }
  .pn-home-videos__tile--d {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 10;
    height: auto;
  }
  .pn-home-videos__wave.pn-home-videos__tile--b,
  .pn-home-videos__wave.pn-home-videos__tile--c {
    height: auto;
  }
  .pn-home-videos__wave.pn-video-card .pn-wave-card__media {
    flex: 0 0 auto;
    aspect-ratio: 16 / 9;
  }
}
@media (max-width: 575.98px) {
  .pn-home-videos__intro {
    flex-direction: column;
    align-items: flex-start;
  }
  .pn-home-videos__mosaic {
    grid-template-columns: 1fr;
  }
  .pn-home-videos__tile--a,
  .pn-home-videos__tile--d {
    grid-column: auto;
  }
}

/* —— Home: proyectos (hero + intro pág.63 + wave thumbs) —— */
.pn-home-proyectos {
  background: #f4f7f4;
  padding-block: clamp(2.5rem, 5vw, 3.75rem);
}
.pn-home-proyectos__top {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(1.35rem, 3vw, 2.5rem);
  align-items: stretch;
  margin-bottom: 1.5rem;
}
.pn-home-proyectos__stage {
  min-width: 0;
}
.pn-home-proyectos__hero {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #12261a;
}
.pn-home-proyectos__slide {
  position: relative;
  min-height: clamp(320px, 42vw, 460px);
  color: #fff;
}
.pn-home-proyectos__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.pn-home-proyectos__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 20, 14, 0.12) 15%,
    rgba(8, 20, 14, 0.45) 55%,
    rgba(8, 20, 14, 0.78) 100%
  );
  pointer-events: none;
}
.pn-home-proyectos__slide-copy {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem 1.5rem 1.4rem;
  max-width: 36rem;
}
.pn-home-proyectos__counter {
  position: absolute;
  z-index: 3;
  top: 1rem;
  right: 1rem;
  margin: 0;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(12, 24, 18, 0.72);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.pn-home-proyectos__badge {
  display: inline-block;
  margin: 0 0 0.55rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: rgba(104, 33, 70, 0.92);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pn-home-proyectos__name {
  margin: 0 0 0.5rem;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}
.pn-home-proyectos__sumario {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.5;
}
.pn-home-proyectos__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.72rem 1.2rem;
  border-radius: 999px;
  background: #fff;
  color: #12261a;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.pn-home-proyectos__btn:hover,
.pn-home-proyectos__btn:focus-visible {
  background: #6b0e47;
  color: #fff;
}
.pn-home-proyectos__nav {
  position: absolute;
  z-index: 3;
  bottom: 1.25rem;
  right: 1.25rem;
  width: 2.65rem;
  height: 2.65rem;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  color: #1a4d32;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.pn-home-proyectos__nav--prev {
  right: 4.2rem;
}
.pn-home-proyectos__nav:hover,
.pn-home-proyectos__nav:focus-visible {
  background: #1a4d32;
  color: #fff;
  outline: none;
}
.pn-home-proyectos__aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.35rem 0;
}
.pn-home-proyectos__heading {
  margin: 0 0 0.9rem;
  color: #1a4d32;
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.pn-home-proyectos__lead {
  margin: 0 0 1.35rem;
  color: #3d5346;
  font-size: 1rem;
  line-height: 1.55;
}
.pn-home-proyectos__pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.pn-home-proyectos__pillar {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: flex-start;
}
.pn-home-proyectos__pillar-icon {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(96, 175, 55, 0.14);
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.pn-home-proyectos__pillar-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pn-home-proyectos__pillar-icon--mark::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: #60af37;
}
.pn-home-proyectos__pillar-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.pn-home-proyectos__pillar-copy strong {
  color: #1a4d32;
  font-size: 0.98rem;
  line-height: 1.3;
}
.pn-home-proyectos__pillar-copy span {
  color: #5a6b60;
  font-size: 0.9rem;
  line-height: 1.4;
}
.pn-home-proyectos__thumbs-wrap {
  padding-bottom: 2.5rem;
}
.pn-home-proyectos__thumbs {
  padding-bottom: 0.35rem;
}
.pn-home-proyectos__thumbs .swiper-slide {
  height: auto;
}
.pn-home-proyectos__card {
  height: 100%;
  cursor: pointer;
  opacity: 0.84;
  transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.pn-home-proyectos__thumbs .swiper-slide-thumb-active .pn-home-proyectos__card {
  opacity: 1;
  box-shadow: 0 0 0 3px #60af37, 0 10px 24px rgba(26, 40, 36, 0.12);
}
.pn-home-proyectos__card .pn-wave-card__title {
  font-size: 0.95rem;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pn-home-proyectos__card .pn-wave-card__text {
  font-size: 0.8rem;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pn-home-proyectos__thumbs-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  margin-top: 1rem;
}
.pn-home-proyectos__dots {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 0.55rem;
}
.pn-home-proyectos__dots .swiper-pagination-bullet {
  width: 1.35rem;
  height: 3px;
  margin: 0 !important;
  border-radius: 999px;
  background: #c5cfc8;
  opacity: 1;
  transition: background 0.2s ease, width 0.2s ease;
}
.pn-home-proyectos__dots .swiper-pagination-bullet-active {
  width: 2rem;
  background: #1a4d32;
}
.pn-home-proyectos__all {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #60af37;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
}
.pn-home-proyectos__all:hover {
  color: #6b0e47;
}
@media (max-width: 991.98px) {
  .pn-home-proyectos__top {
    grid-template-columns: 1fr;
  }
  .pn-home-proyectos__slide {
    min-height: 300px;
  }
  .pn-home-proyectos__slide-copy {
    padding-right: 5.5rem;
  }
}
@media (max-width: 575.98px) {
  .pn-home-proyectos__thumbs-foot {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* —— Home: instituciones —— */
.pn-instituciones {
  background: #fff;
  padding-top: 0.5rem;
  padding-bottom: 2.5rem;
}
.pn-instituciones .pn-banners-full__label {
  margin-top: 0;
  margin-bottom: 1.75rem;
}
.pn-instituciones__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 1.25rem 1.5rem;
}
.pn-instituciones__item {
  flex: 1 1 240px;
  max-width: 340px;
}
.pn-instituciones__card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 148px;
  padding: 1.35rem 1.5rem;
  background: #fff;
  border: 1px solid #e2e6e3;
  border-radius: 14px;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
a.pn-instituciones__card:hover {
  border-color: rgba(104, 33, 70, 0.35);
  box-shadow: 0 8px 24px rgba(15, 40, 28, 0.06);
}
.pn-instituciones__card img {
  display: block;
  max-width: 100%;
  max-height: 110px;
  width: auto;
  height: auto;
  object-fit: contain;
}
@media (max-width: 575.98px) {
  .pn-instituciones__item {
    flex-basis: 100%;
    max-width: 360px;
  }
  .pn-instituciones__card {
    min-height: 128px;
  }
  .pn-instituciones__card img {
    max-height: 96px;
  }
}

/* —— Home: bandas Miradores / BTT (full-width, filas alternas) —— */
.pn-home-redes {
  --pn-redes-green: #1a4d32;
  --pn-redes-accent: #62bd3a;
  --pn-redes-tint: color-mix(in srgb, var(--tj-color-theme-primary, #672146) 6%, #f7f5f3);
  --pn-redes-muted: #5c6560;
  margin: 0;
}

.pn-home-redes__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: clamp(22rem, 42vw, 30rem);
  align-items: stretch;
}

.pn-home-redes__row--flip .pn-home-redes__copy {
  order: 2;
}

.pn-home-redes__row--flip .pn-home-redes__media {
  order: 1;
}

.pn-home-redes__row--noimg {
  grid-template-columns: 1fr;
}

.pn-home-redes__copy {
  background: var(--pn-redes-tint);
  display: flex;
  align-items: center;
}

.pn-home-redes__copy-inner {
  width: min(100%, 36rem);
  margin-inline: auto;
  padding: clamp(2rem, 4.5vw, 3.75rem) clamp(1.5rem, 4vw, 3.5rem);
}

.pn-home-redes__title {
  margin: 0 0 1rem;
  font-family: var(--tj-ff-heading, 'Mona Sans', sans-serif);
  font-size: clamp(1.7rem, 2.6vw, 2.35rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--tj-color-heading-primary, #1a1a1a);
}

.pn-home-redes__text {
  margin: 0 0 1.5rem;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--pn-redes-muted);
}

.pn-home-redes__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  border-top: 1px solid rgba(26, 77, 50, 0.12);
  border-bottom: 1px solid rgba(26, 77, 50, 0.12);
}

.pn-home-redes__stat {
  flex: 1 1 0;
  min-width: 8rem;
  padding: 1rem 1.25rem 1rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.pn-home-redes__stat + .pn-home-redes__stat {
  padding-left: 1.25rem;
  border-left: 1px solid rgba(26, 77, 50, 0.12);
}

.pn-home-redes__stat-icon {
  flex: 0 0 auto;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: white;
  color: var(--pn-redes-green);
  font-size: 1.05rem;
  line-height: 1;
}

.pn-home-redes__stat-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.pn-home-redes__stat-value {
  font-family: var(--tj-ff-heading, 'Mona Sans', sans-serif);
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--pn-redes-green);
  white-space: nowrap;
}

.pn-home-redes__stat-label {
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--pn-redes-muted);
}

.pn-home-redes__copy .tj-primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.pn-home-redes__media {
  background-color: #d9e2dc;
  background-image: var(--pn-redes-img);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 18rem;
}

@media (max-width: 991.98px) {
  .pn-home-redes__row,
  .pn-home-redes__row--flip {
    grid-template-columns: 1fr;
  }

  .pn-home-redes__row--flip .pn-home-redes__copy,
  .pn-home-redes__row--flip .pn-home-redes__media {
    order: unset;
  }

  .pn-home-redes__media {
    min-height: 16rem;
    order: -1;
  }

  .pn-home-redes__row--flip .pn-home-redes__media {
    order: -1;
  }
}

@media (max-width: 575.98px) {
  .pn-home-redes__stats {
    flex-direction: column;
  }

  .pn-home-redes__stat,
  .pn-home-redes__stat + .pn-home-redes__stat {
    padding: 0.85rem 0;
    border-left: 0;
    border-top: 1px solid rgba(26, 77, 50, 0.1);
  }

  .pn-home-redes__stat:first-child {
    border-top: 0;
  }
}
