/*
Theme Name: RedViva Cortegana
Theme URI: https://redvivacortegana.org
Author: RedViva Cortegana
Description: Tema WordPress para el Nivel 1 de RedViva: directorio de asociaciones y actividades. Usa CPT UI, ACF y bloques nativos de WordPress sin constructores externos.
Version: 1.1.0
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: redviva
*/

/*
==================================================
GUÍA RÁPIDA PARA ALUMNADO
==================================================
1. Para cambiar colores o fuentes, empieza por :root.
2. No dupliques reglas: busca primero la sección correspondiente.
3. Mantén los nombres de clases rv-* porque los usa el tema.
4. Si algo afecta al móvil, revisa también la sección RESPONSIVE.
5. Antes de grandes cambios, haz copia del archivo.
*/

/* ==================================================
   00. VARIABLES EDITABLES
   Cambia colores, tipografías, anchos y radios aquí.
   ================================================== */

:root {
  --rv-green: #1f5c2b;
  --rv-green-deep: #17451f;
  --rv-teal: #1F7A75;
  --rv-coral: #E86F5B;
  --rv-coral-deep: #c85d42;
  --rv-gold: #F2C66D;
  --rv-cream: #F7F5EF;
  --rv-sand: #F3E7D3;
  --rv-mint: #EEF6F5;
  --rv-ink: #243133;
  --rv-muted: #6B7E88;
  --rv-line: #E4E1D8;
  --rv-paper: #fffdf7;
  --rv-shadow: 0 18px 50px rgba(36,49,51,.10);
  --rv-radius: 22px;
  --rv-width: 1280px;
  --rv-serif: Georgia, 'Times New Roman', serif;
  --rv-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ==================================================
   01. BASE GENERAL Y ACCESIBILIDAD
   ================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--rv-ink);
  background: radial-gradient(circle at 12% -6%,rgba(242,198,109,.18),transparent 26rem),radial-gradient(circle at 100% 10%,rgba(31,122,117,.08),transparent 28rem),var(--rv-cream);
  font-family: var(--rv-sans);
  line-height: 1.55;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.screen-reader-text {
  position: absolute!important;
  clip: rect(1px,1px,1px,1px);
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}

/* ==================================================
   02. CONTENEDORES Y ESTRUCTURA GENERAL
   ================================================== */

.rv-container {
  width: min(var(--rv-width),calc(100% - 2rem));
  margin-inline: auto;
}

.rv-narrow {
  width: min(920px,calc(100% - 2rem));
  margin-inline: auto;
}

.rv-skip {
  position: absolute;
  left: -999px;
  top: 1rem;
  background: var(--rv-green);
  color: #fff;
  padding: .7rem 1rem;
  border-radius: 999px;
  z-index: 999;
}

.rv-skip:focus {
  left: 1rem;
}

.rv-site-shell {
  width: min(1460px,calc(100% - 1.4rem));
  margin: .7rem auto 1.4rem;
  background: rgba(255,253,247,.74);
  border: 1px solid rgba(36,49,51,.15);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(36,49,51,.10);
}

/* ==================================================
   03. CABECERA, LOGO Y MENÚ
   ================================================== */

.rv-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255,253,247,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rv-line);
}

.rv-header-inner {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.rv-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: .75rem;
}

.rv-brand img {
  width: 210px;
  max-height: 58px;
  object-fit: contain;
}

.rv-nav {
  display: flex;
  align-items: center;
  gap: .4rem;
}

.rv-nav a {
  font-weight: 720;
  text-decoration: none;
  padding: .7rem 1rem;
  border-radius: 999px;
  color: #161d1b;
}

.rv-nav a:hover,
.rv-nav a:focus,
.rv-nav .current-menu-item>a {
  color: var(--rv-green);
  background: rgba(31,92,43,.06);
  outline: 0;
}

.rv-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid #E4E1D8;
  background: #EEF6F5;
  color: #155E63;
  border-radius: 999px;
  padding: .75rem 1.1rem;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: none;
  cursor: pointer;
}

.rv-menu-toggle:hover,
.rv-menu-toggle:focus {
  background: #F7F5EF;
  border-color: rgba(21,94,99,.25);
  color: #155E63;
  outline: 3px solid rgba(31,122,117,.14);
  outline-offset: 2px;
}

.rv-logo-fallback {
  font-family: var(--rv-serif);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--rv-green);
  line-height: 1;
}

.rv-logo-fallback small {
  display: block;
  font-family: var(--rv-sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .02em;
}

/* ==================================================
   04. PORTADA, BUSCADOR, BOTONES Y SECCIONES
   ================================================== */

.rv-hero {
  position: relative;
  min-height: 360px;
  background: linear-gradient(90deg,rgba(255,253,247,.97) 0%,rgba(255,253,247,.92) 42%,rgba(255,253,247,.30) 74%),url('assets/img/hero-cortegana.svg') center/cover no-repeat;
  border-bottom: 1px solid var(--rv-line);
}

.rv-hero .rv-container {
  position: relative;
  z-index: 1;
  padding: clamp(2rem,5vw,4.4rem) 0;
}

.rv-kicker {
  font-weight: 800;
  color: var(--rv-coral-deep);
  margin: 0 0 .5rem;
}

.rv-hero h1,
.rv-page-title {
  font-family: var(--rv-serif);
  font-size: clamp(2.5rem,6.4vw,5rem);
  letter-spacing: .02em;
  line-height: .95;
  color: var(--rv-green-deep);
  margin: 0;
}

.rv-hero p {
  font-size: clamp(1.05rem,1.8vw,1.28rem);
  max-width: 700px;
  margin: 1.1rem 0;
  color: #23342a;
}

.rv-search {
  margin-top: 1.6rem;
  background: #fff;
  border: 1px solid var(--rv-line);
  border-radius: 12px;
  display: flex;
  gap: .6rem;
  max-width: 640px;
  padding: .45rem;
  box-shadow: 0 12px 32px rgba(36,49,51,.10);
}

.rv-search input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: .9rem 1rem;
  font-size: 1rem;
}

.rv-search input:focus {
  outline: 0;
}

.rv-home-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(520px,58vw,660px);
  background: #f7f5ef;
  border-bottom: 1px solid var(--rv-line);
}

.rv-home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,rgba(247,245,239,1) 0%,rgba(247,245,239,.92) 40%,rgba(247,245,239,.24) 62%,rgba(247,245,239,.03) 100%);
  pointer-events: none;
  z-index: 1;
}

.rv-home-hero::after {
  content: "";
  position: absolute;
  right: max(-10vw,-8rem);
  top: clamp(1rem,4vw,3rem);
  bottom: auto;
  z-index: 0;
  width: min(82vw,1160px);
  height: 98%;
  background-image: linear-gradient(90deg,rgba(247,245,239,1) 0%,rgba(247,245,239,.42) 14%,rgba(247,245,239,0) 31%),url('assets/img/home/home-hero-village.webp');
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: contain;
  -webkit-mask-image: linear-gradient(90deg,transparent 0%,rgba(0,0,0,.08) 10%,rgba(0,0,0,.45) 22%,#000 38%);
  mask-image: linear-gradient(90deg,transparent 0%,rgba(0,0,0,.08) 10%,rgba(0,0,0,.45) 22%,#000 38%);
  pointer-events: none;
}

.rv-home-hero-inner {
  position: relative;
  z-index: 2;
  min-height: inherit;
  display: flex;
  align-items: center;
  padding: clamp(2.8rem,6vw,4.8rem) 0 clamp(2.5rem,5vw,4rem);
}

.rv-home-hero-copy {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 1.05rem;
  max-width: 760px;
}

.rv-home-content,
.rv-home-content .rv-home-hero-copy {
  display: contents;
}

.rv-home-title,
.rv-home-hero-copy h1 {
  order: 1;
  max-width: 680px;
  font-family: var(--rv-serif);
  font-size: clamp(2.55rem,4.8vw,4.35rem);
  line-height: .96;
  letter-spacing: 0;
  color: var(--rv-green-deep);
  margin: 0;
}

.rv-home-title span,
.rv-home-hero-copy h1 span {
  color: #e86f5b;
}

.rv-home-lead,
.rv-home-hero-copy .rv-home-lead {
  order: 2;
  max-width: 660px;
  color: #314339;
  font-size: clamp(1.02rem,1.55vw,1.22rem);
  line-height: 1.56;
  margin: 0;
}

.rv-home-hero-search {
  order: 3;
  display: flex;
  gap: .5rem;
  max-width: 740px;
  margin-top: .35rem;
  padding: .42rem;
  background: rgba(255,253,247,.96);
  border: 1px solid var(--rv-line);
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(36,49,51,.085);
}

.rv-home-hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: .86rem 1rem;
  font-size: 1rem;
  color: #25312d;
}

.rv-home-hero-search input:focus {
  outline: 0;
}

.rv-home-quick-actions {
  order: 4;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: .72rem;
  max-width: 760px;
  margin-top: .25rem;
}

.rv-home-quick-actions a,
.rv-home-action-card {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  gap: .12rem .7rem;
  align-items: center;
  min-width: 0;
  padding: .92rem;
  background: rgba(255,253,247,.88);
  border: 1px solid rgba(228,225,216,.9);
  border-radius: 18px;
  color: #405148;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(36,49,51,.055);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.rv-home-quick-actions a::before,
.rv-home-action-card::before {
  content: none;
}

.rv-home-action-icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  background: #eef6e9;
  border: 1px solid rgba(47,107,54,.16);
}

.rv-home-action-icon img {
  width: 1.55rem;
  height: 1.55rem;
  object-fit: contain;
}

.rv-home-quick-actions a:hover,
.rv-home-action-card:hover {
  transform: translateY(-2px);
  border-color: rgba(47,107,54,.28);
  box-shadow: 0 12px 26px rgba(36,49,51,.08);
}

.rv-home-quick-actions strong,
.rv-home-action-card strong {
  color: var(--rv-green-deep);
  font-size: .98rem;
  line-height: 1.2;
}

.rv-home-quick-actions span,
.rv-home-action-card span {
  color: var(--rv-muted);
  font-size: .9rem;
  line-height: 1.35;
}

/* Home - Upcoming activities */

.rv-home-upcoming {
  background: #fffdf7;
  border-bottom: 1px solid var(--rv-line);
  padding: clamp(2.4rem,5vw,4rem) 0;
}

.rv-home-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.6rem;
}

.rv-home-section-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.rv-home-section-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 999px;
  background: #f0ead8;
  border: 1px solid rgba(47,107,54,.12);
}

.rv-home-section-icon img {
  width: 1.75rem;
  height: 1.75rem;
}

.rv-home-section-head h2 {
  font-family: var(--rv-serif);
  font-size: clamp(1.9rem,3vw,2.7rem);
  line-height: 1.05;
  color: var(--rv-green-deep);
  margin: 0;
}

.rv-home-section-head p {
  color: #39473f;
  margin: .3rem 0 0;
}

.rv-home-section-link {
  flex: 0 0 auto;
  color: var(--rv-green);
  font-weight: 900;
  text-decoration: none;
}

.rv-home-section-link:hover {
  text-decoration: underline;
}

.rv-home-activity-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 1rem;
}

.rv-home-activity-card {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--rv-line);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(36,49,51,.07);
}

.rv-home-activity-image {
  position: relative;
  display: block;
  aspect-ratio: 1.45 / 1;
  background: #f7f5ef;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.rv-home-activity-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.rv-home-activity-date {
  position: absolute;
  top: .75rem;
  left: .75rem;
  display: grid;
  place-items: center;
  min-width: 3.5rem;
  padding: .4rem .5rem;
  background: rgba(255,253,247,.96);
  border: 1px solid rgba(228,225,216,.9);
  border-radius: 9px;
  box-shadow: 0 8px 18px rgba(36,49,51,.12);
  color: var(--rv-green-deep);
}

.rv-home-activity-date strong {
  font-size: 1.55rem;
  line-height: .95;
}

.rv-home-activity-date span {
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .04em;
}

.rv-home-activity-body {
  display: grid;
  gap: .55rem;
  padding: 1rem;
}

.rv-home-activity-term {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--rv-green);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.rv-home-activity-term .rv-home-interest-svg {
  width: 1rem;
  height: 1rem;
}

.rv-home-activity-body h3 {
  font-family: var(--rv-serif);
  font-size: 1.28rem;
  line-height: 1.15;
  margin: 0;
}

.rv-home-activity-body h3 a,
.rv-home-activity-organizer a {
  color: inherit;
  text-decoration: none;
}

.rv-home-activity-body h3 a:hover,
.rv-home-activity-organizer a:hover {
  text-decoration: underline;
}

.rv-home-activity-organizer {
  color: #425047;
  margin: 0;
}

.rv-home-activity-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  color: var(--rv-muted);
  font-size: .88rem;
}

.rv-home-activity-meta span {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  min-width: 0;
}

.rv-home-activity-meta img {
  width: 1rem;
  height: 1rem;
}

.rv-home-empty-state {
  background: rgba(255,253,247,.9);
  border: 1px solid var(--rv-line);
  border-radius: 16px;
  padding: 1.25rem;
}

.rv-home-empty-state p {
  margin: 0 0 1rem;
  color: #39473f;
}

.rv-home-empty-state div {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}

/* Home - Interests */

.rv-home-interests {
  background: #f4f8f3;
  border-bottom: 1px solid var(--rv-line);
  padding: clamp(2.4rem,5vw,4rem) 0;
}

.rv-home-interest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(210px,1fr));
  gap: .85rem;
}

.rv-home-interest-card {
  display: flex;
  align-items: center;
  gap: .85rem;
  min-height: 64px;
  padding: .85rem 1rem;
  background: rgba(255,253,247,.72);
  border: 1px solid rgba(228,225,216,.9);
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(36,49,51,.035);
  color: var(--rv-green-deep);
  text-align: left;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.rv-home-interest-card:hover {
  background: #eef6f5;
  border-color: rgba(31,122,117,.35);
  box-shadow: 0 10px 22px rgba(36,49,51,.055);
  transform: translateY(-1px);
}

.rv-home-interest-card:focus-visible {
  outline: 3px solid rgba(232,111,91,.45);
  outline-offset: 3px;
}

.rv-home-interest-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 2.4rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  background: #edf4ec;
  color: var(--rv-green);
}

.rv-home-interest-svg {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
  fill: currentColor;
}

.rv-home-interest-title {
  color: var(--rv-green-deep);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.25;
}

.rv-home-interest-more {
  margin: 1.25rem 0 0;
  text-align: center;
}

/* Home - Associations directory CTA */

.rv-home-associations {
  background: #fffdf7;
  border-bottom: 1px solid var(--rv-line);
  padding: clamp(2.6rem,5vw,4.4rem) 0;
}

.rv-home-associations-inner {
  display: grid;
  grid-template-columns: minmax(220px,.8fr) minmax(0,1.25fr);
  align-items: center;
  gap: clamp(2rem,5vw,4.5rem);
}

.rv-home-associations-visual {
  display: flex;
  justify-content: center;
}

.rv-home-associations-image {
  width: min(100%, 420px);
  height: auto;
  display: block;
  object-fit: contain;
}

.rv-home-associations-copy {
  max-width: 740px;
}

.rv-home-associations-title {
  font-family: var(--rv-serif);
  font-size: clamp(2rem,3.7vw,3.1rem);
  line-height: 1.05;
  color: var(--rv-green-deep);
  margin: 0;
}

.rv-home-associations-text {
  max-width: 680px;
  color: #39473f;
  font-size: 1.08rem;
  line-height: 1.65;
  margin: .85rem 0 1.35rem;
}

.rv-home-associations-button {
  min-width: 235px;
}

.rv-button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  text-decoration: none;
  border: 0;
  border-radius: 10px;
  padding: .86rem 1.1rem;
  background: var(--rv-green);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.rv-button:hover,
.wp-block-button__link:hover {
  filter: brightness(.95);
}

.rv-button.rv-coral {
  background: var(--rv-coral-deep);
}

.rv-button.rv-outline {
  background: #fff;
  color: var(--rv-green);
  border: 2px solid var(--rv-green);
}

.rv-link {
  font-weight: 800;
  color: var(--rv-green);
  text-decoration: none;
}

.rv-link:hover {
  text-decoration: underline;
}

.rv-section {
  padding: clamp(2rem,5vw,3.4rem) 0;
}

.rv-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.rv-section h2,
.rv-card-title {
  font-family: var(--rv-serif);
  font-size: clamp(1.7rem,3vw,2.4rem);
  line-height: 1.1;
  letter-spacing: .02em;
  color: var(--rv-green-deep);
  margin: 0;
}

.rv-section-lead {
  color: var(--rv-muted);
  max-width: 760px;
  margin: .5rem 0 0;
}

/* ==================================================
   05. TARJETAS DE TAXONOMÍAS / ÁMBITOS
   ================================================== */

.rv-tax-grid {
  display: grid;
  grid-template-columns: repeat(8,minmax(0,1fr));
  gap: .75rem;
  margin-top: 1.3rem;
}

.rv-tax-card {
  display: grid;
  place-items: center;
  text-align: center;
  gap: .42rem;
  min-height: 92px;
  background: rgba(255,255,255,.68);
  border: 1px solid var(--rv-line);
  border-radius: 12px;
  text-decoration: none;
  color: var(--rv-green-deep);
  box-shadow: 0 8px 22px rgba(36,49,51,.05);
}

.rv-tax-card:hover {
  background: #fff;
  transform: translateY(-1px);
}

.rv-tax-icon {
  width: 28px;
  height: 28px;
  color: #76853e;
}

.rv-tax-icon,
.rv-home-interest-svg {
  flex: 0 0 auto;
}

.rv-tax-card span:last-child {
  font-size: .88rem;
  font-weight: 800;
}

/* ==================================================
   06. TARJETAS, DIRECTORIO, EVENTOS Y CTA
   ================================================== */

.rv-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 330px;
  gap: 1.1rem;
}

.rv-card-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 1rem;
}

.rv-card {
  background: var(--rv-paper);
  border: 1px solid var(--rv-line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(36,49,51,.07);
  display: flex;
  flex-direction: column;
}

.rv-card-media {
  height: 180px;
  background: var(--rv-paper);
  position: relative;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.4rem 1.6rem 2rem;
}

.rv-card-media img {
  width: 100%;
  height: 100%;
  max-height: 125px;
  object-fit: contain;
  display: block;
}

.rv-card-icons {
  position: absolute;
  left: 1rem;
  bottom: -18px;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  max-width: calc(100% - 2rem);
}

.rv-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
}

.rv-card-icon .rv-home-interest-svg {
  display: block;
  width: 38px;
  height: 38px;
  color: #6f7b38;
}

.rv-card-body {
  padding: 1.55rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  flex: 1;
}

.rv-card h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.2;
  color: var(--rv-green-deep);
}

.rv-card p {
  margin: 0;
  color: #4d5b55;
  font-size: .94rem;
}

.rv-small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  text-decoration: none;
  border: 1px solid rgba(31,92,43,.55);
  border-radius: 8px;
  padding: .5rem .8rem;
  color: var(--rv-green);
  font-weight: 800;
  background: #fff;
}

.rv-card-actions {
  margin-top: auto;
  padding-top: .7rem;
}

.rv-events-box {
  background: var(--rv-paper);
  border: 1px solid var(--rv-line);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 10px 28px rgba(36,49,51,.07);
}

.rv-events-box h2 {
  font-size: 1.25rem;
}

.rv-mini-event {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: .75rem;
  border-top: 1px solid var(--rv-line);
  padding: .8rem 0;
}

.rv-mini-event:first-of-type {
  border-top: 0;
}

.rv-date-badge {
  background: #f0f6e8;
  border-radius: 10px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--rv-green);
  font-weight: 900;
  min-height: 64px;
}

.rv-date-badge strong {
  font-size: 1.45rem;
  line-height: 1;
}

.rv-date-badge span {
  display: block;
  color: #4e5a4d;
  font-size: .72rem;
  text-transform: uppercase;
}

.rv-mini-event h3 {
  margin: 0;
  font-size: .98rem;
  line-height: 1.2;
}

.rv-mini-event p {
  margin: .2rem 0 0;
  font-size: .86rem;
  color: var(--rv-muted);
}

.rv-cta-strip {
  background: linear-gradient(90deg,rgba(31,92,43,.10),rgba(232,111,91,.10));
  border-top: 1px solid var(--rv-line);
  border-bottom: 1px solid var(--rv-line);
  padding: 1.4rem 0;
}

.rv-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.rv-cta-inner h2 {
  font-family: var(--rv-serif);
  color: var(--rv-green-deep);
  margin: 0;
}

/* Home - Join CTA */

.rv-home-join {
  background: #eef7f2;
  border-top: 1px solid rgba(47,107,54,.1);
  border-bottom: 1px solid rgba(47,107,54,.12);
  padding: clamp(1.5rem,3.2vw,2.4rem) 0;
}

.rv-home-join-inner {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: clamp(1rem,3vw,2rem);
}

.rv-home-join-visual {
  display: grid;
  place-items: center;
  width: 5.3rem;
  height: 5.3rem;
  border-radius: 999px;
  background: rgba(255,253,247,.95);
  border: 1px solid rgba(228,225,216,.85);
  box-shadow: 0 10px 24px rgba(36,49,51,.08);
  overflow: hidden;
}

.rv-home-join-image {
  width: 4.25rem;
  height: 4.25rem;
  display: block;
  object-fit: contain;
}

.rv-home-join-title {
  font-family: var(--rv-serif);
  color: var(--rv-green-deep);
  font-size: clamp(1.55rem,2.6vw,2.25rem);
  line-height: 1.08;
  margin: 0;
}

.rv-home-join-text {
  max-width: 780px;
  color: #39473f;
  line-height: 1.55;
  margin: .35rem 0 0;
}

.rv-home-join-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .75rem 1.2rem;
  border: 1px solid rgba(31,92,43,.55);
  border-radius: 10px;
  background: rgba(255,253,247,.72);
  color: var(--rv-green);
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}

.rv-home-join-action:hover {
  background: #fff;
  border-color: var(--rv-green);
  transform: translateY(-1px);
}

.rv-home-join-action:focus-visible {
  outline: 3px solid rgba(232,111,91,.45);
  outline-offset: 3px;
}

/* ==================================================
   SEARCH RESULTS
   ================================================== */

.rv-search-page {
  background: #fffdf7;
  padding: clamp(2rem,5vw,4rem) 0 clamp(2.6rem,6vw,5rem);
}

.rv-search-hero {
  max-width: 820px;
  margin-bottom: 2rem;
}

.rv-search-title {
  font-family: var(--rv-serif);
  color: var(--rv-green-deep);
  font-size: clamp(2.4rem,5vw,4.2rem);
  line-height: 1.02;
  margin: 0;
}

.rv-search-lead {
  color: #39473f;
  font-size: 1.1rem;
  margin: .75rem 0 1.25rem;
}

.rv-search-form {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: .6rem;
  width: min(100%, 720px);
  padding: .45rem;
  background: #fff;
  border: 1px solid var(--rv-line);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(36,49,51,.06);
}

.rv-search-form input {
  min-width: 0;
  border: 0;
  background: transparent;
  padding: .85rem .95rem;
  color: var(--rv-ink);
  font-size: 1rem;
}

.rv-search-form input:focus {
  outline: 0;
}

.rv-search-form button {
  border: 0;
  border-radius: 10px;
  background: var(--rv-green);
  color: #fff;
  font-weight: 900;
  padding: .8rem 1rem;
  cursor: pointer;
}

.rv-search-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.1rem;
}

.rv-search-tabs a {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 3rem;
  padding: .65rem 1rem;
  border: 1px solid rgba(228,225,216,.95);
  border-radius: 10px;
  background: rgba(255,253,247,.86);
  color: var(--rv-green-deep);
  font-weight: 900;
  text-decoration: none;
}

.rv-search-tabs a.is-active {
  background: var(--rv-green);
  border-color: var(--rv-green);
  color: #fff;
  box-shadow: 0 10px 24px rgba(31,92,43,.18);
}

.rv-search-tabs span {
  display: grid;
  place-items: center;
  min-width: 1.65rem;
  height: 1.65rem;
  padding: 0 .35rem;
  border-radius: 999px;
  background: rgba(47,107,54,.1);
  color: var(--rv-green-deep);
  font-size: .85rem;
}

.rv-search-tabs a.is-active span {
  background: rgba(255,255,255,.9);
}

.rv-search-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(260px,320px);
  align-items: start;
  gap: clamp(1.4rem,4vw,2.6rem);
}

.rv-search-main {
  display: grid;
  gap: 2rem;
}

.rv-search-section-title {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--rv-serif);
  color: var(--rv-green-deep);
  font-size: clamp(1.7rem,3vw,2.35rem);
  line-height: 1.05;
  margin: 0 0 1rem;
}

.rv-search-section-title .rv-tax-icon {
  width: 2.75rem;
  height: 2.75rem;
  padding: .65rem;
  border-radius: 999px;
  background: var(--rv-green);
}

.rv-search-section-title--activity .rv-tax-icon {
  background: var(--rv-coral);
}

.rv-search-grid {
  display: grid;
  gap: 1rem;
}

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

.rv-search-card {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--rv-line);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(36,49,51,.06);
}

.rv-search-card--association {
  display: grid;
  grid-template-columns: 132px minmax(0,1fr);
  gap: 1.25rem;
  padding: 1.2rem;
}

.rv-search-card--activity {
  display: grid;
  grid-template-columns: 190px 76px minmax(0,1fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem;
}

.rv-search-card-media {
  min-width: 0;
  overflow: hidden;
}

.rv-search-card-logo {
  display: grid;
  place-items: center;
  align-self: start;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  background: #f7f5ef;
}

.rv-search-card-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.rv-search-logo-fallback {
  display: grid;
  place-items: center;
  width: 5rem;
  height: 5rem;
  border-radius: 999px;
  background: #edf4ec;
  color: var(--rv-green);
  font-family: var(--rv-serif);
  font-size: 2.4rem;
  font-weight: 900;
}

.rv-search-card-image {
  display: block;
  aspect-ratio: 1.45 / 1;
  border-radius: 12px;
  background: #f7f5ef;
}

.rv-search-card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.rv-search-card-date {
  display: grid;
  place-items: center;
  align-self: center;
  min-height: 6.4rem;
  padding: .55rem;
  border: 1px solid var(--rv-line);
  border-radius: 12px;
  background: #fffdf7;
  color: var(--rv-green-deep);
  text-align: center;
}

.rv-search-card-date span {
  color: var(--rv-coral-deep);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.rv-search-card-date strong {
  font-size: 2.1rem;
  line-height: .95;
}

.rv-search-card-date small {
  color: #5b625e;
}

.rv-search-card-body {
  min-width: 0;
}

.rv-search-card-label {
  display: inline-flex;
  width: fit-content;
  margin-bottom: .45rem;
  padding: .28rem .65rem;
  border-radius: 999px;
  background: var(--rv-green);
  color: #fff;
  font-size: .82rem;
  font-weight: 900;
}

.rv-search-card--activity .rv-search-card-label {
  background: var(--rv-coral);
}

.rv-search-card h3 {
  font-family: var(--rv-serif);
  color: var(--rv-green-deep);
  font-size: 1.45rem;
  line-height: 1.15;
  margin: 0;
}

.rv-search-card h3 a,
.rv-search-card-meta a {
  color: inherit;
  text-decoration: none;
}

.rv-search-card h3 a:hover,
.rv-search-card-meta a:hover {
  text-decoration: underline;
}

.rv-search-card p {
  color: #39473f;
  line-height: 1.55;
  margin: .55rem 0 0;
}

.rv-search-term-row,
.rv-search-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .7rem;
}

.rv-search-term-row span,
.rv-search-term {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .25rem .55rem;
  border-radius: 999px;
  background: #edf4ec;
  color: var(--rv-green-deep);
  font-size: .82rem;
  font-weight: 800;
}

.rv-search-term .rv-home-interest-svg {
  display: block;
  width: 1rem;
  height: 1rem;
}

.rv-search-card-meta {
  color: #4d5b55;
  font-size: .92rem;
}

.rv-search-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  min-width: 0;
}

.rv-search-card-meta img {
  width: 1rem;
  height: 1rem;
}

.rv-search-card-link {
  display: inline-flex;
  margin-top: .9rem;
  color: var(--rv-green);
  font-weight: 900;
  text-decoration: none;
}

.rv-search-card-link--activity {
  color: var(--rv-coral-deep);
}

.rv-search-card-link:hover {
  text-decoration: underline;
}

.rv-search-section-empty,
.rv-search-help,
.rv-search-counts,
.rv-search-empty {
  background: rgba(255,253,247,.88);
  border: 1px solid var(--rv-line);
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(36,49,51,.045);
}

.rv-search-section-empty {
  padding: 1rem;
  color: #39473f;
}

.rv-search-aside {
  display: grid;
  gap: 1rem;
  position: sticky;
  top: 1rem;
}

.rv-search-help,
.rv-search-counts {
  padding: 1.25rem;
}

.rv-search-help h2 {
  font-family: var(--rv-serif);
  color: var(--rv-green-deep);
  font-size: 1.25rem;
  margin: 0 0 .65rem;
}

.rv-search-help p,
.rv-search-counts span {
  color: #39473f;
  line-height: 1.55;
  margin: 0;
}

.rv-search-counts {
  display: grid;
  gap: .25rem;
}

.rv-search-counts strong {
  color: var(--rv-green-deep);
}

.rv-search-empty {
  padding: clamp(1.4rem,4vw,2rem);
}

.rv-search-empty h2 {
  font-family: var(--rv-serif);
  color: var(--rv-green-deep);
  margin: 0;
}

.rv-search-empty p {
  color: #39473f;
}

.rv-search-empty div {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

/* ==================================================
   07. FOOTER Y LOGOS INSTITUCIONALES
   ================================================== */

.rv-site-footer {
  background: #f4ead8;
  border-top: 1px solid var(--rv-line);
}

.rv-footer-main {
  padding: 2.4rem 0 2rem;
  display: grid;
  grid-template-columns: minmax(220px,1.35fr) minmax(300px,1.7fr) minmax(240px,1.1fr);
  gap: clamp(1.25rem,3vw,2.4rem);
  align-items: start;
}

.rv-footer-logo {
  width: min(190px,100%);
  height: auto;
}

.rv-footer-claim {
  max-width: 320px;
  margin: .9rem 0 1rem;
  color: #4d4031;
  font-weight: 700;
  line-height: 1.45;
}

.rv-footer-village {
  display: block;
  width: min(320px,100%);
  height: auto;
  border-radius: 16px;
  opacity: .95;
}

.rv-footer-navs {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: clamp(1rem,3vw,2rem);
}

.rv-footer-main h3 {
  color: var(--rv-green-deep);
  margin: .15rem 0 .85rem;
  font-size: 1.08rem;
}

.rv-footer-main p,
.rv-footer-main a {
  font-size: .94rem;
  color: #46554f;
}

.rv-footer-main p {
  margin-top: 0;
}

.rv-footer-main ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .45rem;
}

.rv-footer-links a {
  position: relative;
  display: inline-block;
  color: #236b62;
  font-weight: 700;
  text-decoration: none;
  transition: color .18s ease, transform .18s ease;
}

.rv-footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -.16rem;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  opacity: 0;
  transform: scaleX(.7);
  transform-origin: left;
  transition: opacity .18s ease, transform .18s ease;
}

.rv-footer-links a:hover {
  color: var(--rv-green-deep);
  transform: translateY(-1px);
}

.rv-footer-links a:hover::after {
  opacity: .34;
  transform: scaleX(1);
}

.rv-footer-links a:focus-visible {
  outline: 3px solid rgba(169,95,47,.35);
  outline-offset: 4px;
  border-radius: 6px;
}

.rv-footer-thanks p {
  line-height: 1.55;
}

.rv-footer-eracis-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: .25rem;
  padding: 1rem 1.2rem;
  background: rgba(255,253,247,.74);
  border: 1px solid var(--rv-line);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(36,49,51,.06);
}

.rv-footer-support-logos {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  min-width: 260px;
  max-width: 100%;
}

.rv-footer-support-logo {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.rv-footer-support-logo-eracis {
  max-height: 76px;
  max-width: 150px;
  width: auto;
}

.rv-footer-support-logo-cortegana {
  max-height: 82px;
  max-width: 96px;
  width: auto;
}

.rv-footer-institutional {
  border-top: 1px solid rgba(82,92,62,.2);
  padding: 1rem 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.rv-footer-institutional .rv-container {
  display: flex;
  justify-content: center;
}

.rv-footer-logos {
  display: block;
  width: min(100%,1060px);
  min-width: 620px;
  height: auto;
  flex: 0 0 auto;
}

.rv-footer-bottom {
  background: var(--rv-green-deep);
  color: #fff;
  text-align: center;
  padding: .82rem 1rem;
  font-size: .88rem;
}

.rv-footer-bottom p {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .32rem;
  margin: 0;
  line-height: 1.45;
}

.rv-footer-heart {
  width: 20px;
  height: 20px;
  object-fit: contain;
  vertical-align: text-bottom;
}

/* ==================================================
   08. FICHA INDIVIDUAL DE ASOCIACIÓN
   ================================================== */

.rv-assoc-hero {
  position: relative;
  background: linear-gradient(90deg,rgba(255,253,247,.98) 0%,rgba(255,253,247,.88) 45%,rgba(255,253,247,.24) 75%),url('assets/img/hero-cortegana.svg') center/cover no-repeat;
  border-bottom: 1px solid var(--rv-line);
}

.rv-hero-associations,
.rv-hero-activities {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: #f6efe2;
}

.rv-archive-header.rv-hero-associations,
.rv-assoc-hero.rv-hero-associations,
.rv-archive-header.rv-hero-activities {
  background-color: #f6efe2;
  background-image: none;
}

.rv-hero-associations::before,
.rv-hero-associations::after,
.rv-hero-activities::before,
.rv-hero-activities::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.rv-hero-associations::before,
.rv-hero-activities::before {
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg,rgba(255,253,247,.98) 0%,rgba(255,253,247,.9) 44%,rgba(255,253,247,.42) 74%,rgba(255,253,247,.18) 100%);
}

.rv-hero-associations::after,
.rv-hero-activities::after {
  right: 0;
  bottom: 0;
  z-index: 0;
  width: min(64vw,960px);
  height: 100%;
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: contain;
  opacity: .68;
}

.rv-hero-associations::after {
  background-image: url('assets/img/hero/hero-village-asociaciones.webp');
}

.rv-hero-activities::after {
  background-image: url('assets/img/hero/hero-village-actividades.webp');
}

.rv-hero-associations > *,
.rv-hero-activities > * {
  position: relative;
  z-index: 2;
}

.rv-archive-header.rv-hero-associations::after {
  width: min(58vw,860px);
  opacity: .62;
}

.rv-assoc-hero.rv-hero-associations::after {
  width: min(62vw,920px);
  opacity: .54;
}

.rv-archive-header.rv-hero-activities::after {
  width: min(60vw,900px);
  opacity: .6;
}

.rv-activity-archive-hero::after {
  width: min(68vw,980px);
  opacity: .58;
}

.rv-single-activity-hero::after {
  right: -1.5rem;
  bottom: -.9rem;
  width: min(62vw,900px);
  height: 82%;
  opacity: .3;
  background-position: right bottom;
}

.rv-single-activity-hero .rv-archive-card {
  position: relative;
  z-index: 3;
  background: rgba(255,253,247,.88);
  border-color: rgba(228,225,216,.72);
  box-shadow: 0 10px 26px rgba(36,49,51,.055);
}

.rv-single-activity-hero .rv-container {
  gap: clamp(1.5rem,4vw,3.2rem);
}

.rv-assoc-hero-inner {
  display: grid;
  grid-template-columns: 150px minmax(0,1fr);
  gap: 1.6rem;
  align-items: start;
  padding: clamp(2rem,5vw,3rem) 0;
}

.rv-assoc-logo {
  width: 150px;
  min-height: 120px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--rv-line);
  background: #fff;
  box-shadow: 0 12px 28px rgba(36,49,51,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.rv-assoc-logo img {
  width: 100%;
  height: auto;
  max-height: 92px;
  object-fit: contain;
  display: block;
}

.rv-assoc-title {
  font-family: var(--rv-serif);
  font-size: clamp(2.5rem,5.8vw,4.8rem);
  line-height: 1.02;
  letter-spacing: .03em;
  color: var(--rv-green-deep);
  margin: 0;
}

.rv-assoc-summary {
  font-size: clamp(1.05rem,1.8vw,1.35rem);
  margin: .5rem 0 1rem;
  color: #5b3e30;
}

.rv-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}

.rv-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: rgba(255,253,247,.88);
  border: 1px solid var(--rv-line);
  border-radius: 9px;
  padding: .5rem .85rem;
  color: var(--rv-green-deep);
  font-weight: 800;
}

.rv-pill svg,
.rv-pill img {
  width: 22px;
  height: 22px;
  color: #6f7b38;
}

.rv-pill .rv-home-interest-svg {
  display: block;
  width: 22px;
  height: 22px;
}

.rv-tag .rv-home-interest-svg {
  display: block;
  width: 1rem;
  height: 1rem;
}

.rv-single-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) 360px;
  gap: 1.25rem;
  align-items: start;
}

.rv-info-card,
.rv-quote-card {
  background: var(--rv-paper);
  border: 1px solid var(--rv-line);
  border-radius: 18px;
  padding: 1.6rem;
  box-shadow: 0 12px 32px rgba(36,49,51,.07);
}

.rv-block-card {
  display: grid;
  grid-template-columns: 82px minmax(0,1fr);
  gap: 1.2rem;
  background: rgba(255,253,247,.88);
  border: 1px solid var(--rv-line);
  border-radius: 18px;
  padding: 1.35rem;
  margin-bottom: 1rem;
  box-shadow: 0 8px 24px rgba(36,49,51,.05);
}

.rv-block-icon {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: #f0f6e8;
  color: var(--rv-green);
  display: grid;
  place-items: center;
}

.rv-block-icon svg {
  width: 34px;
  height: 34px;
}

.rv-block-card h2 {
  font-family: var(--rv-serif);
  font-size: 2rem;
  line-height: 1.1;
  color: var(--rv-green-deep);
  margin: 0 0 .35rem;
}

.rv-block-card p {
  margin: .35rem 0;
  color: #25312d;
}

.rv-assoc-content {
  margin: 1rem 0;
}

.rv-assoc-content h2 {
  font-family: var(--rv-serif);
  font-size: 2rem;
  line-height: 1.1;
  color: var(--rv-green-deep);
  margin: 0 0 1rem;
}

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

.rv-assoc-content > *:last-child {
  margin-bottom: 0;
}

.rv-assoc-content img {
  border-radius: 12px;
}

.rv-assoc-content .wp-block-gallery {
  gap: 1rem;
  margin: 1.5rem 0;
}

.rv-assoc-content .wp-block-gallery .wp-block-image {
  background: var(--rv-cream);
  border: 1px solid var(--rv-line);
  border-radius: 18px;
  padding: .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rv-assoc-content .wp-block-gallery img {
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(36,49,51,.08);
}

.rv-service-row {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rv-line);
}

.rv-service-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border: 1px solid var(--rv-line);
  background: #fff;
  border-radius: 9px;
  padding: .55rem .8rem;
  font-weight: 700;
  color: #4c5136;
}

.rv-services-list {
  display: grid;
  gap: .75rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.rv-services-list li {
  position: relative;
  padding: .9rem 1.1rem .9rem 2.35rem;
  border: 1px solid var(--rv-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .58);
  color: #3f4a34;
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: break-word;
}

.rv-services-list li::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 1.35rem;
  width: .52rem;
  height: .52rem;
  border-radius: 999px;
  background: var(--rv-green);
}

.rv-assoc-subsection {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(21, 94, 99, .16);
}

.rv-assoc-subsection-title {
  margin: 0 0 .75rem;
  color: var(--rv-green-deep);
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  font-weight: 800;
  line-height: 1.2;
}

.rv-assoc-subsection-content {
  color: #25312d;
}

.rv-assoc-subsection-content > *:first-child {
  margin-top: 0;
}

.rv-assoc-subsection-content > *:last-child {
  margin-bottom: 0;
}

.rv-assoc-subsection .rv-service-row {
  margin-top: .85rem;
  padding-top: 0;
  border-top: 0;
}

.rv-participation-cards {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: .8rem;
  margin-top: 1rem;
}

.rv-participation-card {
  display: flex;
  gap: .65rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--rv-line);
  border-radius: 12px;
  padding: .75rem;
}

.rv-participation-card svg {
  width: 28px;
  height: 28px;
  color: var(--rv-green);
}

.rv-info-title {
  font-family: var(--rv-serif);
  font-size: 1.7rem;
  color: var(--rv-green-deep);
  margin: 0 0 1rem;
}

.rv-info-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: .8rem;
  border-top: 1px dashed #dbcbb3;
  padding: .85rem 0;
}

.rv-info-item:first-of-type {
  border-top: 0;
}

.rv-info-item svg {
  width: 26px;
  height: 26px;
  color: var(--rv-green);
}

.rv-info-item strong {
  display: block;
  color: var(--rv-green-deep);
}

.rv-info-item a:not(.rv-assoc-link) {
  color: #243133;
  font-weight: 700;
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
  overflow-wrap: anywhere;
}

.rv-assoc-links {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  max-width: 100%;
}

.rv-assoc-link {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: .38rem .65rem;
  border: 1px solid var(--rv-line);
  border-radius: 999px;
  background: var(--rv-cream);
  color: var(--rv-teal);
  font-size: .9rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.rv-assoc-link:hover {
  background: var(--rv-mint);
  color: var(--rv-green-deep);
}

.rv-assoc-link:focus-visible {
  outline: 3px solid rgba(232,111,91,.4);
  outline-offset: 2px;
}

.rv-assoc-link--text {
  color: #4d5b55;
}

.rv-sidebar-actions {
  display: grid;
  gap: .7rem;
  margin-top: 1rem;
}

.rv-quote-card {
  margin-top: 1.2rem;
  background: linear-gradient(135deg,#fbf7ea,#eee4ca);
  position: relative;
  overflow: hidden;
}

.rv-quote-card:before {
  content: '“';
  font-family: var(--rv-serif);
  font-size: 5.5rem;
  line-height: 1;
  color: var(--rv-green);
  opacity: .55;
  position: absolute;
  left: 1.2rem;
  top: .4rem;
}

.rv-quote-card blockquote {
  font-family: var(--rv-serif);
  font-style: italic;
  color: var(--rv-green-deep);
  font-size: 1.55rem;
  line-height: 1.35;
  margin: 1.9rem 0 0 3.2rem;
}

.rv-assoc-events {
  background: var(--rv-paper);
  border: 1px solid var(--rv-line);
  border-radius: 18px;
  padding: 1rem;
  margin-top: 1rem;
  box-shadow: 0 8px 24px rgba(36,49,51,.05);
}

.rv-assoc-events-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: .5rem;
}

.rv-assoc-events-head h2 {
  font-family: var(--rv-serif);
  color: var(--rv-green-deep);
  margin: 0;
}

.rv-assoc-event {
  display: grid;
  grid-template-columns: 64px 120px minmax(0,1fr) auto;
  gap: .8rem;
  align-items: center;
  border-top: 1px solid var(--rv-line);
  padding: .8rem 0;
}

.rv-assoc-event:first-of-type {
  border-top: 0;
}

.rv-assoc-event img {
  width: 120px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
}

.rv-assoc-event h3 {
  margin: 0;
  color: var(--rv-green-deep);
  font-size: 1rem;
}

.rv-assoc-event p {
  margin: .15rem 0 0;
  color: var(--rv-muted);
  font-size: .9rem;
}

.rv-tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .65rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: .82rem;
  background: #eef4e5;
  color: var(--rv-green);
}

.rv-tag.coral {
  background: #f9e1de;
  color: #a84634;
}

.rv-tag.purple {
  background: #efe4fb;
  color: #5b3a86;
}

/* ==================================================
   09. ARCHIVOS: ASOCIACIONES Y ACTIVIDADES
   ================================================== */

.rv-archive-header {
  background: linear-gradient(90deg,rgba(255,253,247,.95),rgba(255,253,247,.65)),url('assets/img/hero-cortegana.svg') center/cover no-repeat;
  border-bottom: 1px solid var(--rv-line);
  padding: clamp(3rem,7vw,5rem) 0;
}

.rv-archive-header .rv-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.rv-archive-card {
  background: rgba(255,253,247,.92);
  border: 1px solid var(--rv-line);
  border-radius: 18px;
  padding: 1.5rem;
  min-width: 340px;
  box-shadow: 0 16px 36px rgba(36,49,51,.09);
}

.rv-activity-summary {
  background: rgba(255,253,247,.82);
  display: grid;
  gap: .7rem;
  padding: 1.25rem;
  box-shadow: 0 10px 28px rgba(36,49,51,.06);
}

.rv-activity-summary-main,
.rv-activity-summary-status {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.rv-activity-summary-main .rv-pill {
  background: #f0f6e8;
  border-color: rgba(31,92,43,.25);
  color: var(--rv-green-deep);
  font-size: 1rem;
  font-weight: 900;
}

.rv-activity-summary-public,
.rv-activity-summary-organizer {
  color: var(--rv-muted);
  font-size: .88rem;
  line-height: 1.35;
  margin: 0;
}

.rv-activity-summary-organizer a {
  color: var(--rv-green);
  font-weight: 800;
  text-decoration: none;
}

.rv-activity-summary-organizer a:hover {
  text-decoration: underline;
}

.rv-activity-organizers {
  display: inline;
  overflow-wrap: break-word;
}

.rv-activity-organizers a {
  font-weight: 800;
}

.rv-organizer-separator {
  color: var(--rv-muted);
  font-weight: 400;
}

.rv-pill-status {
  background: rgba(240,246,232,.86);
  border-color: rgba(31,92,43,.18);
  color: var(--rv-green);
  font-weight: 800;
}

.rv-more-info {
  border-top: 1px solid var(--rv-line);
  margin-top: 1rem;
  padding-top: 1rem;
}

.rv-more-info h3 {
  color: var(--rv-green-deep);
  font-size: 1.05rem;
  margin: 0 0 .7rem;
}

.rv-filters {
  background: rgba(255,253,247,.95);
  border: 1px solid var(--rv-line);
  border-radius: 14px;
  margin-top: -2.1rem;
  padding: 1rem;
  box-shadow: 0 14px 35px rgba(36,49,51,.08);
  display: grid;
  grid-template-columns: 1.2fr repeat(3,1fr) auto;
  gap: 1rem;
  align-items: end;
}

.rv-hero-associations + .rv-container .rv-filters,
.rv-hero-activities + .rv-container .rv-filters,
.rv-archive-filters {
  position: relative;
  z-index: 3;
}

.rv-activity-publish-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0 0;
  padding: 1rem 1.15rem;
  background: rgba(255,253,247,.82);
  border: 1px solid var(--rv-line);
  border-radius: 14px;
  color: #3f4c45;
  box-shadow: 0 8px 22px rgba(36,49,51,.05);
}

.rv-activity-publish-cta strong {
  display: block;
  color: var(--rv-green-deep);
  font-size: 1rem;
  margin-bottom: .18rem;
}

.rv-activity-publish-cta p {
  margin: 0;
  color: var(--rv-muted);
  font-size: .94rem;
}

.rv-activity-publish-cta .rv-small-button {
  flex: 0 0 auto;
}

.rv-filter-field label {
  display: block;
  font-size: .88rem;
  font-weight: 700;
  margin-bottom: .2rem;
}

.rv-filter-field input,
.rv-filter-field select {
  width: 100%;
  border: 1px solid var(--rv-line);
  border-radius: 8px;
  background: #fff;
  padding: .75rem .85rem;
  font: inherit;
}

.rv-filter-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .75rem 1rem;
  border: 1px solid rgba(21,94,99,.35);
  border-radius: 10px;
  background: #fff;
  color: var(--rv-green-deep);
  font-weight: 800;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.rv-filter-reset:hover,
.rv-filter-reset:focus {
  background: #eef6f5;
  border-color: rgba(21,94,99,.52);
  transform: translateY(-1px);
}

#resultados-actividades {
  scroll-margin-top: clamp(6rem,10vw,8rem);
}

#resultados-asociaciones {
  scroll-margin-top: clamp(6rem,10vw,8rem);
}

.rv-activity-list {
  display: grid;
  gap: .8rem;
}

.rv-view-switch {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .5rem;
}

.rv-view-switch .rv-small-button {
  text-decoration: none;
}

.rv-view-switch .rv-small-button:not(.is-active) {
  background: #fffdf7;
  color: var(--rv-green-deep);
  border-color: var(--rv-line);
}

.rv-view-switch .rv-small-button.is-active {
  box-shadow: 0 10px 20px rgba(21,94,99,.16);
}

.rv-activity-card {
  display: grid;
  grid-template-columns: 80px 145px minmax(260px,1.3fr) minmax(210px,.8fr) minmax(190px,.8fr) 150px auto;
  gap: 1rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--rv-line);
  border-radius: 14px;
  padding: .75rem 1rem;
  box-shadow: 0 9px 24px rgba(36,49,51,.055);
}

.rv-activity-card img {
  width: 145px;
  height: 74px;
  object-fit: cover;
  border-radius: 8px;
}

.rv-activity-title h3 {
  margin: 0;
  color: var(--rv-green-deep);
  font-size: 1.2rem;
}

.rv-activity-title p,
.rv-activity-meta p {
  margin: .2rem 0 0;
  color: #444;
  font-size: .93rem;
}

.rv-activity-meta strong {
  display: block;
  color: #333;
}

.rv-activity-arrow {
  font-size: 1.5rem;
  text-decoration: none;
  color: #111;
}

.rv-calendar {
  display: grid;
  gap: 1rem;
}

.rv-calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 1rem;
  background: rgba(255,253,247,.82);
  border: 1px solid var(--rv-line);
  border-radius: 14px;
}

.rv-calendar-head h3 {
  margin: 0;
  color: var(--rv-green-deep);
  font-size: clamp(1.35rem,2vw,1.8rem);
  text-align: center;
}

.rv-calendar-nav {
  color: var(--rv-green-deep);
  font-weight: 800;
  text-decoration: none;
}

.rv-calendar-nav:hover {
  color: var(--rv-coral);
}

.rv-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7,minmax(0,1fr));
  gap: .65rem;
}

.rv-calendar-weekday {
  color: var(--rv-muted);
  font-size: .82rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.rv-calendar-day {
  min-height: 138px;
  padding: .7rem;
  background: #fff;
  border: 1px solid var(--rv-line);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(36,49,51,.045);
  overflow: hidden;
}

.rv-calendar-day--empty {
  background: rgba(255,253,247,.45);
  box-shadow: none;
}

.rv-calendar-day.is-today {
  border-color: rgba(31,122,117,.42);
  box-shadow: 0 10px 24px rgba(31,122,117,.11);
}

.rv-calendar-day-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: .5rem;
  border-radius: 999px;
  color: var(--rv-green-deep);
  background: #eef6f5;
  font-weight: 900;
}

.rv-calendar-event {
  display: block;
  padding: .55rem .6rem;
  margin-top: .45rem;
  border-radius: 10px;
  background: rgba(232,111,91,.1);
  color: #243133;
  text-decoration: none;
  transition: background .18s ease, transform .18s ease;
}

.rv-calendar-event:hover {
  background: rgba(232,111,91,.16);
  transform: translateY(-1px);
}

.rv-calendar-event strong {
  display: block;
  color: var(--rv-green-deep);
  font-size: .88rem;
  line-height: 1.2;
}

.rv-calendar-event span {
  display: block;
  margin-top: .18rem;
  color: var(--rv-muted);
  font-size: .78rem;
  line-height: 1.25;
}

.rv-calendar-empty {
  margin: 0;
  padding: 1rem 1.15rem;
  border: 1px dashed var(--rv-line);
  border-radius: 14px;
  background: rgba(255,253,247,.72);
  color: var(--rv-muted);
}

.rv-page-content {
  width: 100%;
  padding: 0;
}

.rv-page-main {
  background: var(--rv-cream);
}

.rv-page-container {
  width: min(100% - 2rem,1280px);
  margin-inline: auto;
  padding-top: clamp(2.5rem,4vw,4rem);
  padding-bottom: clamp(4rem,6vw,6rem);
  box-sizing: border-box;
}

.rv-page-container > *,
.rv-page-content > * {
  max-width: 100%;
}

.rv-page-container,
.rv-page-container .wp-block-group,
.rv-page-container .wp-block-columns {
  max-width: 100%;
  box-sizing: border-box;
}

.rv-page-container img,
.rv-page-container figure {
  max-width: 100%;
}

.rv-page-container img {
  display: block;
  height: auto;
}

.rv-page-container > p,
.rv-page-container > ul,
.rv-page-container > ol,
.rv-page-content > p,
.rv-page-content > ul,
.rv-page-content > ol {
  max-width: 820px;
}

.rv-page-container > p,
.rv-page-container > ul,
.rv-page-container > ol,
.rv-page-container > h1,
.rv-page-container > h2,
.rv-page-container > h3,
.rv-page-container > h4,
.rv-page-container > h5,
.rv-page-container > h6,
.rv-page-content > p,
.rv-page-content > ul,
.rv-page-content > ol,
.rv-page-content > h1,
.rv-page-content > h2,
.rv-page-content > h3,
.rv-page-content > h4,
.rv-page-content > h5,
.rv-page-content > h6 {
  margin-left: 0;
  margin-right: auto;
}

.rv-page-container > h1:first-child,
.rv-page-container > .wp-block-heading:first-child,
.rv-page-container > .wp-block-group:first-child h1:first-child,
.rv-page-content > h1:first-child,
.rv-page-content > .wp-block-heading:first-child,
.rv-page-content > .wp-block-group:first-child h1:first-child {
  color: #155E63;
  font-family: var(--rv-font-heading, var(--rv-serif));
  font-weight: 800;
  font-size: clamp(3rem,6vw,5.5rem);
  line-height: .98;
  letter-spacing: -.035em;
  margin-top: 0;
  margin-bottom: clamp(1.25rem,2vw,2rem);
}

.rv-page .alignwide,
.rv-page .alignfull,
.rv-page .wp-block-group.alignwide,
.rv-page .wp-block-group.alignfull,
.rv-page .wp-block-image.alignwide,
.rv-page .wp-block-image.alignfull {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.wp-site-blocks {
  padding: 0!important;
}

/* ==================================================
   10. PAGINACIÓN
   ================================================== */

.rv-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .45rem;
  margin: 2.5rem 0 1rem;
  flex-wrap: wrap;
}

.rv-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: .55rem .85rem;
  border-radius: 999px;
  border: 1px solid var(--rv-line, #e4e1d8);
  background: #fffdf7;
  color: var(--rv-green-dark, #1f4f2d);
  text-decoration: none;
  font-weight: 700;
}

.rv-pagination .page-numbers:hover,
.rv-pagination .page-numbers:focus {
  background: #eef6e9;
  border-color: var(--rv-green, #2f6b36);
}

.rv-pagination .page-numbers.current {
  background: var(--rv-green, #2f6b36);
  color: #fff;
  border-color: var(--rv-green, #2f6b36);
}

@media (max-width: 1180px) {

  .rv-tax-grid {
    grid-template-columns: repeat(4,1fr);
  }

  .rv-card-grid {
    grid-template-columns: repeat(2,1fr);
  }

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

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

  .rv-activity-card {
    grid-template-columns: 76px 130px minmax(0,1fr);
  }

  .rv-activity-card .rv-activity-meta,
  .rv-activity-card .rv-tag,
  .rv-activity-card .rv-activity-arrow {
    grid-column: 3;
  }

  .rv-filters {
    grid-template-columns: repeat(2,1fr);
  }

  .rv-calendar-grid {
    gap: .45rem;
  }

  .rv-calendar-day {
    min-height: 120px;
    padding: .55rem;
  }

  .rv-calendar-event strong {
    font-size: .82rem;
  }

}

@media (max-width: 760px) {

  .rv-site-shell {
    width: 100%;
    margin: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .rv-header-inner {
    min-height: 74px;
    flex-wrap: wrap;
    gap: .75rem 1rem;
    padding-block: .6rem;
  }

  .rv-brand img {
    width: 150px;
  }

  .rv-menu-toggle {
    display: inline-flex;
  }

  .rv-nav {
    display: none;
    position: static;
    order: 3;
    flex: 0 0 100%;
    width: min(100%,520px);
    margin: .25rem auto .35rem;
    background: rgba(247,245,239,.98);
    border: 1px solid #E4E1D8;
    border-radius: 22px;
    padding: .75rem;
    box-shadow: 0 18px 45px rgba(21,94,99,.10);
    flex-direction: column;
    align-items: stretch;
    gap: .15rem;
  }

  .rv-nav.is-open {
    display: flex;
  }

  .rv-nav a {
    display: block;
    text-align: left;
    padding: .78rem .95rem;
    border-radius: 15px;
    color: #243133;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.25;
    text-decoration: none;
  }

  .rv-nav a:hover,
  .rv-nav a:focus,
  .rv-nav .current-menu-item > a,
  .rv-nav .current_page_item > a {
    color: #155E63;
    background: #EEF6F5;
    outline: 0;
  }

  .rv-hero {
    min-height: auto;
  }

  .rv-home-hero::before {
    background: linear-gradient(180deg,rgba(255,253,247,.98) 0%,rgba(255,253,247,.94) 64%,rgba(255,253,247,.78) 100%);
  }

  .rv-home-hero {
    min-height: auto;
  }

  .rv-home-hero::after {
    top: auto;
    right: -30%;
    bottom: -1.2rem;
    width: 128%;
    height: 44%;
    opacity: .2;
    -webkit-mask-image: linear-gradient(90deg,transparent 0%,rgba(0,0,0,.18) 16%,#000 36%);
    mask-image: linear-gradient(90deg,transparent 0%,rgba(0,0,0,.18) 16%,#000 36%);
  }

  .rv-home-hero-inner {
    display: flex;
    min-height: 0;
    padding: 2.4rem 0 2rem;
  }

  .rv-home-hero-copy {
    max-width: none;
  }

  .rv-home-title,
  .rv-home-hero-copy h1 {
    font-size: 2.38rem;
    line-height: .99;
  }

  .rv-home-hero-search {
    display: grid;
    max-width: none;
    margin-top: .2rem;
  }

  .rv-home-quick-actions {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .rv-home-quick-actions a,
  .rv-home-action-card {
    grid-template-columns: auto minmax(0,1fr);
  }

  .rv-home-section-head {
    align-items: flex-start;
    display: grid;
  }

  .rv-home-section-title {
    align-items: flex-start;
  }

  .rv-home-section-link {
    justify-self: start;
  }

  .rv-home-activity-grid {
    grid-template-columns: 1fr;
  }

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

  .rv-home-associations-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .rv-home-associations-visual {
    justify-content: flex-start;
  }

  .rv-home-associations-image {
    width: min(100%, 320px);
  }

  .rv-home-join-inner {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .rv-home-join-action {
    width: 100%;
    max-width: 22rem;
  }

  .rv-search {
    border-radius: 14px;
    display: grid;
  }

  .rv-search-layout {
    grid-template-columns: 1fr;
  }

  .rv-search-aside {
    position: static;
  }

  .rv-search-grid--associations {
    grid-template-columns: 1fr;
  }

  .rv-search-card--association,
  .rv-search-card--activity {
    grid-template-columns: 1fr;
  }

  .rv-search-card-logo {
    width: 8rem;
  }

  .rv-search-card-date {
    width: 5.8rem;
    min-height: 5.8rem;
  }

  .rv-search-card-image {
    width: 100%;
  }

  .rv-tax-grid {
    grid-template-columns: repeat(2,1fr);
  }

  .rv-section-head,
  .rv-cta-inner,
  .rv-archive-header .rv-container {
    display: block;
  }

  .rv-card-grid {
    grid-template-columns: 1fr;
  }

  .rv-footer-main {
    grid-template-columns: 1fr;
    gap: 1.35rem;
    padding: 2rem 0 1.8rem;
  }

  .rv-footer-navs {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 1rem;
  }

  .rv-footer-main h3 {
    margin-bottom: .55rem;
    font-size: 1rem;
  }

  .rv-footer-main ul {
    gap: .32rem;
  }

  .rv-footer-links a {
    padding: .18rem 0;
    font-size: .9rem;
    line-height: 1.25;
  }

  .rv-footer-village {
    width: 100%;
    max-width: 100%;
    margin-top: .85rem;
    border-radius: 14px;
  }

  .rv-footer-support-logos {
    gap: .9rem;
    min-width: 0;
  }

  .rv-footer-support-logo-eracis {
    max-height: 68px;
    max-width: 138px;
  }

  .rv-footer-support-logo-cortegana {
    max-height: 74px;
    max-width: 88px;
  }

  .rv-footer-institutional {
    padding: .9rem 0;
  }

  .rv-footer-institutional .rv-container {
    justify-content: flex-start;
  }

  .rv-footer-logos {
    width: 620px;
    max-width: none;
  }

  .rv-footer-bottom p {
    max-width: 26rem;
  }

  .rv-assoc-hero-inner {
    grid-template-columns: 1fr;
  }

  .rv-hero-associations::before,
  .rv-hero-activities::before {
    background: linear-gradient(180deg,rgba(255,253,247,.98) 0%,rgba(255,253,247,.94) 58%,rgba(255,253,247,.78) 100%);
  }

  .rv-hero-associations::after,
  .rv-hero-activities::after,
  .rv-archive-header.rv-hero-associations::after,
  .rv-assoc-hero.rv-hero-associations::after,
  .rv-archive-header.rv-hero-activities::after {
    width: 100%;
    height: 46%;
    opacity: .22;
    background-position: right bottom;
  }

  .rv-single-activity-hero::after {
    right: 0;
    bottom: -.4rem;
    height: 34%;
    opacity: .13;
  }

  .rv-single-activity-hero .rv-archive-card {
    margin-top: 1rem;
  }

  .rv-activity-publish-cta {
    display: block;
    margin-top: 1rem;
  }

  .rv-activity-publish-cta .rv-small-button {
    margin-top: .85rem;
    width: 100%;
  }

  .rv-single-grid {
    display: block;
  }

  .rv-single-grid > *,
  .rv-single-grid aside,
  .rv-info-card,
  .rv-block-card,
  .rv-assoc-content,
  .rv-assoc-events {
    min-width: 0;
    max-width: 100%;
  }

  .rv-info-card,
  .rv-block-card,
  .rv-assoc-content,
  .rv-assoc-events,
  .rv-pill,
  .rv-service-chip,
  .rv-participation-card {
    overflow-wrap: anywhere;
  }

  .rv-pill,
  .rv-service-chip {
    max-width: 100%;
    white-space: normal;
  }

.rv-assoc-logo {
  width: 130px;
  min-height: 105px;
  padding: .85rem;
}

.rv-assoc-logo img {
  max-height: 78px;
}

  .rv-block-card {
    grid-template-columns: 1fr;
  }

  .rv-participation-cards {
    grid-template-columns: 1fr;
  }

  .rv-assoc-event {
    grid-template-columns: 64px minmax(0,1fr);
  }

  .rv-assoc-event img {
    display: none;
  }

  .rv-assoc-content h2,
  .rv-assoc-content .wp-block-heading {
    font-size: 1.65rem;
  }

  .rv-assoc-content .wp-block-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 100%;
  }

  .rv-assoc-content figure,
  .rv-assoc-content img,
  .rv-assoc-content .wp-block-gallery .wp-block-image,
  .rv-assoc-content .wp-block-gallery.has-nested-images figure.wp-block-image {
    max-width: 100%;
    min-width: 0;
  }

  .rv-assoc-content .wp-block-gallery .wp-block-image,
  .rv-assoc-content .wp-block-gallery.has-nested-images figure.wp-block-image {
    width: 100%;
    margin: 0;
    padding: .75rem;
    border-radius: 18px;
  }

  .rv-assoc-content .wp-block-gallery img,
  .rv-assoc-content .wp-block-gallery .wp-block-image img {
    width: 100%;
    height: auto;
    max-height: 190px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
  }

  .rv-filters {
    grid-template-columns: 1fr;
    margin-top: 1rem;
  }

  .rv-view-switch {
    justify-content: stretch;
    width: 100%;
  }

  .rv-view-switch .rv-small-button {
    flex: 1 1 100%;
    text-align: center;
  }

  .rv-calendar-head {
    align-items: stretch;
    flex-direction: column;
    text-align: center;
  }

  .rv-calendar-grid {
    grid-template-columns: 1fr;
    gap: .75rem;
  }

  .rv-calendar-weekday,
  .rv-calendar-day--empty {
    display: none;
  }

  .rv-calendar-day {
    min-height: auto;
  }

  .rv-calendar-day-number {
    margin-bottom: .25rem;
  }

  .rv-archive-card {
    min-width: 0;
    margin-top: 1rem;
  }

  .rv-activity-card {
    grid-template-columns: 64px minmax(0,1fr);
    gap: .8rem;
  }

  .rv-activity-card img {
    display: none;
  }

  .rv-activity-card .rv-activity-meta,
  .rv-activity-card .rv-tag,
  .rv-activity-card .rv-activity-arrow {
    grid-column: 2;
  }

  .rv-page-title,
  .rv-hero h1,
  .rv-assoc-title {
    font-size: 2.6rem;
  }

}

@media (max-width: 640px) {
  .rv-home-interest-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  .rv-footer-navs {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================
   Page: Contact
   ========================================================== */

.rv-contact-page {
  padding: clamp(2.5rem, 5vw, 5rem) 0 clamp(3rem, 5vw, 5rem);
  background:
    radial-gradient(circle at 85% 18%, rgba(242, 198, 109, 0.12), transparent 28rem),
    linear-gradient(180deg, #F7F5EF 0%, #F7F5EF 100%);
}

.rv-contact-intro {
  max-width: 820px;
  margin-bottom: clamp(1.75rem, 3vw, 2.75rem);
}

.rv-contact-title {
  margin: 0 0 1rem;
  color: #155E63;
  font-family: var(--rv-font-heading, inherit);
  font-size: clamp(4rem, 8vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.rv-contact-lead {
  max-width: 980px;
  margin: 0;
  color: #243133;
  font-size: clamp(1.05rem, 1.25vw, 1.25rem);
  line-height: 1.6;
}

.rv-contact-layout {
  align-items: flex-start;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: clamp(1.6rem, 3vw, 2.4rem);
}

.rv-contact-left,
.rv-contact-right {
  min-width: 0;
}

.rv-contact-info-card,
.rv-contact-mail-card,
.rv-contact-form-card,
.rv-contact-note {
  border: 1px solid #E4E1D8;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 50px rgba(21, 94, 99, 0.08);
}

.rv-contact-info-card {
  padding: clamp(1.4rem, 2.4vw, 2.1rem);
  margin-bottom: 1rem;
}

.rv-contact-section-title,
.rv-contact-form-title,
.rv-contact-mail-title {
  margin: 0;
  color: #155E63;
  font-family: var(--rv-font-heading, inherit);
  font-weight: 800;
  line-height: 1.08;
}

.rv-contact-section-title {
  margin-bottom: 1.2rem;
  font-size: clamp(1.7rem, 2.4vw, 2.25rem);
}

.rv-contact-list {
  display: grid;
  gap: 0;
}

.rv-contact-list-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0;
  border-bottom: 1px dashed #D9CDB9;
}

.rv-contact-list-item:first-child {
  padding-top: 0;
}

.rv-contact-list-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.rv-contact-list-item p {
  margin: 0;
  color: #243133;
  font-size: 1.02rem;
  line-height: 1.5;
}

.rv-contact-list-icon,
.rv-contact-mail-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 999px;
  color: #155E63;
  background: #EEF6F5;
}

.rv-contact-list-icon {
  width: 44px;
  height: 44px;
}

.rv-contact-mail-card {
  padding: clamp(1.25rem, 2vw, 1.8rem);
  background: linear-gradient(135deg, rgba(238, 246, 245, 0.9), rgba(247, 245, 239, 0.92));
}

.rv-contact-mail-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.rv-contact-mail-icon {
  width: 58px;
  height: 58px;
}

.rv-contact-mail-title {
  font-size: clamp(1.45rem, 2vw, 1.9rem);
}

.rv-contact-mail-link {
  margin: 0.75rem 0 0.6rem;
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  font-weight: 800;
}

.rv-contact-mail-link a {
  color: #E86F5B;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}

.rv-contact-mail-text {
  margin: 0;
  color: #526266;
  font-size: 1rem;
  line-height: 1.6;
}

.rv-contact-form-card {
  padding: clamp(1.4rem, 2.4vw, 2.1rem);
}

.rv-contact-form-title {
  margin-bottom: 0.65rem;
  font-size: clamp(1.8rem, 2.6vw, 2.45rem);
}

.rv-contact-form-intro {
  margin: 0 0 1.2rem;
  color: #526266;
  font-size: 1rem;
  line-height: 1.65;
}

/* WPForms inside contact card */

.rv-contact-form-card .wpforms-container {
  margin: 0;
}

.rv-contact-form-card .wpforms-error-noscript,
.rv-contact-form-card #wpforms-error-noscript {
  display: none !important;
}

.rv-contact-form-card [id^="wpforms-"][id$="-field_4-container"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.rv-contact-form-card [id^="wpforms-"][id$="-field_4-container"] input {
  visibility: hidden;
}

.rv-contact-form-card .wpforms-field {
  padding: 0.4rem 0;
}

.rv-contact-form-card .wpforms-field-label {
  color: #243133;
  font-weight: 800;
  font-size: 0.98rem;
  margin-bottom: 0.3rem;
}

.rv-contact-form-card input[type="text"],
.rv-contact-form-card input[type="email"],
.rv-contact-form-card input[type="tel"],
.rv-contact-form-card input[type="url"],
.rv-contact-form-card select,
.rv-contact-form-card textarea {
  width: 100%;
  border: 1px solid #D7D0C2;
  border-radius: 10px;
  background: #FDFBF7;
  color: #243133;
  font-size: 1rem;
  min-height: 44px;
  box-shadow: none;
}

.rv-contact-form-card textarea {
  min-height: 150px;
}

.rv-contact-form-card input[type="text"]:focus,
.rv-contact-form-card input[type="email"]:focus,
.rv-contact-form-card input[type="tel"]:focus,
.rv-contact-form-card input[type="url"]:focus,
.rv-contact-form-card select:focus,
.rv-contact-form-card textarea:focus {
  border-color: #1F7A75;
  outline: 3px solid rgba(31, 122, 117, 0.16);
}

.rv-contact-form-card .wpforms-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.4rem;
  border: 0;
  border-radius: 10px;
  background: #E86F5B;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.rv-contact-form-card .wpforms-submit:hover {
  background: #d95f4d;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(232, 111, 91, 0.22);
}

.rv-contact-note {
  position: relative;
  padding: clamp(1.4rem, 2.5vw, 2rem) clamp(1.5rem, 3vw, 2.25rem);
  background:
    linear-gradient(90deg, rgba(238, 246, 245, 0.95), rgba(247, 245, 239, 0.95));
}

.rv-contact-note p {
  max-width: 980px;
  margin: 0;
  color: #243133;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.7;
}

.rv-contact-note strong {
  color: #155E63;
}

/* ==========================================================
   Legal pages
   ========================================================== */

.rv-legal-page {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
}

.rv-page-content .rv-legal-page,
.rv-page-content > .wp-block-group.rv-legal-page,
.rv-page-container > .wp-block-group.rv-legal-page {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
}

.rv-legal-title {
  max-width: 1100px;
  margin: 0 0 clamp(1.25rem, 2vw, 2rem);
  color: #155E63;
  font-family: var(--rv-font-heading, inherit);
  font-size: clamp(3.4rem, 7vw, 6.4rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.rv-legal-lead {
  max-width: 940px;
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  color: #526266;
  font-size: clamp(1.08rem, 1.4vw, 1.28rem);
  line-height: 1.65;
}

.rv-legal-section-title {
  max-width: 1100px;
  margin-top: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.85rem;
  color: #155E63;
  font-family: var(--rv-font-heading, inherit);
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  font-weight: 800;
  line-height: 1.15;
}

.rv-legal-subsection-title {
  max-width: 1100px;
  margin-top: 1.5rem;
  margin-bottom: .65rem;
  color: #155E63;
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  font-weight: 800;
  line-height: 1.25;
}

.rv-legal-page p,
.rv-legal-page li {
  color: #243133;
  font-size: 1.04rem;
  line-height: 1.72;
}

.rv-legal-page p,
.rv-legal-page ul,
.rv-legal-page ol {
  max-width: 940px;
}

.rv-page-content .rv-legal-page > .rv-legal-title,
.rv-page-content .rv-legal-page > .rv-legal-section-title,
.rv-page-content .rv-legal-page > .rv-legal-subsection-title {
  max-width: 1100px;
}

.rv-page-content .rv-legal-page > .rv-legal-lead,
.rv-page-content .rv-legal-page > p,
.rv-page-content .rv-legal-page > ul,
.rv-page-content .rv-legal-page > ol,
.rv-page-content .rv-legal-page > .rv-legal-list,
.rv-page-content .rv-legal-page > .rv-legal-updated {
  max-width: 940px;
}

.rv-legal-page p {
  margin-top: 0;
  margin-bottom: 1rem;
}

.rv-legal-list {
  max-width: 940px;
  padding-left: 1.4rem;
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
}

.rv-legal-list li {
  margin-bottom: 0.45rem;
}

.rv-legal-page a {
  color: #1F7A75;
  font-weight: 700;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}

.rv-legal-updated {
  max-width: 940px;
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  border: 1px solid #E4E1D8;
  border-radius: 16px;
  background: #EEF6F5;
}

/* Responsive */

@media (max-width: 900px) {
  .rv-contact-layout {
    flex-direction: column;
  }

  .rv-contact-left,
  .rv-contact-right {
    flex-basis: 100% !important;
    width: 100%;
  }

  .rv-contact-title {
    font-size: clamp(3.2rem, 16vw, 5.5rem);
  }
}

@media (max-width: 600px) {
  .rv-page-container {
    width: min(100% - 1.25rem,1280px);
  }

  .rv-legal-page h1,
  .rv-legal-title {
    font-size: clamp(3rem,15vw,4.8rem);
  }

  .rv-legal-page p,
  .rv-legal-page li {
    font-size: 1rem;
  }

  .rv-legal-list {
    padding-left: 1.15rem;
  }

  .rv-contact-page {
    padding-top: 2.5rem;
  }

  .rv-contact-info-card,
  .rv-contact-mail-card,
  .rv-contact-form-card,
  .rv-contact-note {
    border-radius: 18px;
  }

  .rv-contact-list-item {
    align-items: flex-start;
  }

  .rv-contact-list-icon {
    width: 44px;
    height: 44px;
  }

  .rv-contact-mail-head {
    align-items: flex-start;
  }

  .rv-contact-form-card .wpforms-field-row {
    display: block;
  }

  .rv-contact-form-card .wpforms-field-row-block {
    width: 100% !important;
    padding: 0 !important;
  }
}
