/*
 * Reconstruir con Propósito (slug: reconstruir-con-proposito)
 * Loaded only on that page by includes/reconstruir-con-proposito.php.
 * Brand: naranja #ff702a, gris #5c636e (Guía de logotipo v1.0, sept. 2026).
 */

.rcp-page {
  --rcp-orange: #ff702a;
  --rcp-orange-dark: #e85a14;
  --rcp-orange-soft: #fff3ec;
  --rcp-orange-line: #ffd2bb;
  --rcp-gray: #5c636e;
  --rcp-ink: #5c636e;
  --rcp-muted: #7a808a;
  --rcp-surface: #f4f4f5;
  --rcp-radius: 18px;
  --rcp-shadow: 0 10px 30px rgba(92, 99, 110, 0.1);
  --rcp-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Header: white version, same as the other light-hero pages */
body.rcp-page .propacifico-header-transparent-bg {
  display: none;
}

body.rcp-page section#headerWhiteBg {
  display: block;
}

@media all and (max-width: 1120px) {
  body.rcp-page section#headerWhiteBg {
    display: none;
  }
}

body.rcp-page .propacifico-header-menu-mobile .oxy-nav-menu-hamburger-line {
  background-color: #fd6920 !important;
}

/* Both "white" mobile logos point to the white PNG, so use the color one */
body.rcp-page .propacifico-header-menu-mobile .logo-mobile-white {
  display: none !important;
}

body.rcp-page .propacifico-header-menu-mobile .logo-mobile-color {
  display: block;
}

/* Shared */
.rcp-page [class*="rcp-"] {
  box-sizing: border-box;
}

.rcp-section > .ct-section-inner-wrap {
  max-width: 1180px;
  padding: 96px 30px;
}

.rcp-sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.rcp-title {
  margin: 0;
  font-size: 40px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--rcp-ink);
}

.rcp-title span {
  color: var(--rcp-orange);
}

.rcp-title::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin-top: 18px;
  border-radius: 4px;
  background: var(--rcp-orange);
}

.rcp-section-header {
  width: 100%;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}

.rcp-pending {
  display: inline-block;
  padding: 1px 8px;
  border: 1px dashed var(--rcp-orange);
  border-radius: 999px;
  color: var(--rcp-orange-dark);
  background: #fff;
  font-size: 0.85em;
  font-weight: 600;
}

/* Buttons */
.rcp-btn.ct-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 26px;
  border: 2px solid var(--rcp-orange);
  border-radius: 999px;
  background: var(--rcp-orange);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.rcp-btn.ct-link-button:hover {
  background: var(--rcp-orange-dark);
  border-color: var(--rcp-orange-dark);
  color: #fff;
  transform: translateY(-1px);
}

.rcp-btn.ct-link-button:focus-visible {
  outline: 3px solid var(--rcp-ink);
  outline-offset: 3px;
}

.rcp-btn--outline.ct-link-button {
  background: #fff;
  border-color: var(--rcp-ink);
  color: var(--rcp-ink);
}

.rcp-btn--outline.ct-link-button:hover {
  background: var(--rcp-ink);
  border-color: var(--rcp-ink);
  color: #fff;
}

.rcp-btn--outline-orange.ct-link-button {
  background: transparent;
  color: var(--rcp-orange-dark);
}

.rcp-btn--outline-orange.ct-link-button:hover {
  background: var(--rcp-orange);
  color: #fff;
}

.rcp-btn--white.ct-link-button {
  background: #fff;
  border-color: #fff;
  color: var(--rcp-orange-dark);
}

.rcp-btn--white.ct-link-button:hover {
  background: var(--rcp-ink);
  border-color: var(--rcp-ink);
  color: #fff;
}

/* 01 Hero */
.rcp-hero {
  position: relative;
  overflow: hidden;
  background: #fff;
}

.rcp-hero::before {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -40px;
  width: 620px;
  height: 520px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 620 520' fill='none' stroke='%23ff702a' stroke-width='5' stroke-linecap='round'%3E%3Cpath d='M20 500C90 380 160 300 260 330C360 360 330 470 420 440C520 405 470 250 560 200C600 178 610 120 590 70'/%3E%3Cpath d='M300 520C320 470 370 450 420 470' opacity='.5'/%3E%3C/svg%3E") no-repeat center / contain;
  pointer-events: none;
}

.rcp-hero > .ct-section-inner-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
  padding-top: 170px;
  padding-bottom: 110px;
}

.rcp-hero__content {
  align-items: flex-start;
}

.rcp-hero__logo {
  width: 100%;
  max-width: 470px;
  height: auto;
  margin-bottom: 34px;
}

.rcp-hero__lead {
  max-width: 520px;
  margin-bottom: 26px;
  padding-left: 18px;
  border-left: 4px solid var(--rcp-orange);
  color: var(--rcp-muted);
  font-size: 15px;
  line-height: 1.6;
}

.rcp-chips {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.rcp-chip {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--rcp-orange-soft);
  color: var(--rcp-orange-dark);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.rcp-hero__actions {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
}

.rcp-hero__media {
  position: relative;
  width: 100%;
  padding: 0 0 48px 0;
}

.rcp-hero__photo {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: 64px 24px 64px 24px;
  box-shadow: var(--rcp-shadow);
}

.rcp-hero__photo-secondary {
  position: absolute;
  right: -18px;
  bottom: 0;
  width: 42%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 8px solid #fff;
  border-radius: 20px;
  box-shadow: var(--rcp-shadow);
  transform: rotate(4deg);
}

/* 02 Cifras */
.rcp-stats {
  position: relative;
  overflow: hidden;
  background: var(--rcp-orange);
  color: #fff;
}

.rcp-stats > .ct-section-inner-wrap {
  position: relative;
  z-index: 1;
  padding-top: 80px;
  padding-bottom: 80px;
}

.rcp-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  margin-bottom: 40px;
}

.rcp-stat {
  padding: 4px 28px 4px 24px;
  border-left: 2px solid rgba(255, 255, 255, 0.45);
}

.rcp-stat__number {
  font-variant-numeric: tabular-nums;
  font-size: 42px;
  white-space: nowrap;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.rcp-stat__label {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.rcp-stat__note {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.45;
  opacity: 0.9;
}

/* 03 En qué trabajaremos */
.rcp-ejes {
  background: var(--rcp-surface);
}

.rcp-ejes__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  align-items: start;
}

.rcp-eje {
  height: 100%;
  padding: 30px 28px 32px;
  border-radius: var(--rcp-radius);
  background: #fff;
  box-shadow: var(--rcp-shadow);
  transition: transform 0.35s var(--rcp-ease), box-shadow 0.35s var(--rcp-ease);
}

.rcp-eje:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(255, 112, 42, 0.18);
}

.rcp-eje__number {
  margin-bottom: 14px;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--rcp-orange);
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
  transition: color 0.3s ease;
}

.rcp-eje:hover .rcp-eje__number {
  color: var(--rcp-orange);
}

.rcp-eje__title {
  margin: 0 0 12px;
  color: var(--rcp-ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.rcp-eje__text {
  color: var(--rcp-muted);
  font-size: 15px;
  line-height: 1.6;
}

.rcp-ejes__note {
  max-width: 760px;
  margin-top: 40px;
  padding-left: 18px;
  border-left: 4px solid var(--rcp-orange);
  color: var(--rcp-ink);
  font-size: 17px;
  line-height: 1.6;
}

/* 04 Avances y resultados */
.rcp-avances {
  background: var(--rcp-orange-soft);
}

.rcp-tabs__nav {
  flex-direction: row;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--rcp-shadow);
}

.rcp-tabs__button {
  padding: 10px 22px;
  border-radius: 999px;
  color: var(--rcp-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.rcp-tabs__button:hover {
  color: var(--rcp-orange-dark);
}

.rcp-tabs__button.is-active {
  background: var(--rcp-orange);
  color: #fff;
}

.rcp-tabs__button:focus-visible {
  outline: 3px solid var(--rcp-ink);
  outline-offset: 2px;
}

.rcp-tabs__panel {
  display: none;
  width: 100%;
}

.rcp-tabs__panel.is-active {
  display: flex;
  animation: rcpFade 0.3s ease both;
}

/* Keep both panels visible while editing in Oxygen */
.oxygen-builder-body .rcp-tabs__panel {
  display: flex;
  margin-bottom: 40px;
  outline: 2px dashed var(--rcp-orange-line);
}

@keyframes rcpFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.rcp-indicators {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
}

.rcp-indicators--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rcp-indicator {
  height: 100%;
  padding: 24px 22px;
  border-radius: var(--rcp-radius);
  background: #fff;
  box-shadow: var(--rcp-shadow);
  transition: background-color 0.3s ease, transform 0.35s var(--rcp-ease), box-shadow 0.35s var(--rcp-ease);
}

.rcp-indicator:hover {
  background: var(--rcp-orange);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(255, 112, 42, 0.25);
}

.rcp-indicator__number,
.rcp-indicator__label,
.rcp-indicator__note {
  transition: color 0.3s ease;
}

.rcp-indicator__number {
  color: var(--rcp-orange);
  font-size: 34px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.rcp-indicator:hover .rcp-indicator__number {
  color: #fff;
}

.rcp-indicator__label {
  margin-top: 10px;
  color: var(--rcp-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.rcp-indicator:hover .rcp-indicator__label {
  color: #fff;
}

.rcp-indicator__note {
  margin-top: 8px;
  color: var(--rcp-muted);
  font-size: 13px;
  line-height: 1.5;
}

.rcp-indicator:hover .rcp-indicator__note {
  color: rgba(255, 255, 255, 0.92);
}

.rcp-indicator:hover .rcp-ring {
  background: conic-gradient(#fff calc(var(--rcp-progress) * 1%), rgba(255, 255, 255, 0.35) 0);
}

.rcp-indicator:hover .rcp-ring::after {
  background: var(--rcp-orange);
}

.rcp-indicator:hover .rcp-ring__value {
  color: #fff;
}

/* Progress ring: value set from data-progress by the page script */
.rcp-ring {
  --rcp-progress: 0;
  position: relative;
  width: 110px;
  height: 110px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: conic-gradient(var(--rcp-orange) calc(var(--rcp-progress) * 1%), var(--rcp-orange-line) 0);
}

.rcp-ring::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: #fff;
  transition: background-color 0.3s ease;
}

.rcp-ring__value {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  transform: translate(-50%, -50%);
  color: var(--rcp-ink);
  font-size: 22px;
  font-weight: 800;
}

/* Result cards (ronda 2): indicator with text and a "Ver más" link at the bottom */
.rcp-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.rcp-card__eyebrow {
  margin-bottom: 10px;
  color: var(--rcp-ink);
  font-size: 15px;
  font-weight: 800;
  transition: color 0.3s ease;
}

.rcp-card__title {
  margin: 0;
  color: var(--rcp-orange);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  transition: color 0.3s ease;
}

.rcp-card__text,
.rcp-card__row,
.rcp-card__date {
  color: var(--rcp-ink);
  font-size: 15px;
  line-height: 1.5;
  transition: color 0.3s ease;
}

.rcp-card__text {
  margin-top: 10px;
}

.rcp-card__text strong,
.rcp-card__row strong {
  color: var(--rcp-orange);
  font-weight: 800;
  transition: color 0.3s ease;
}

.rcp-card__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--rcp-orange-line);
  transition: border-color 0.3s ease;
}

.rcp-card__date {
  margin-top: 6px;
  color: var(--rcp-muted);
  font-size: 13px;
}

.rcp-more.ct-link-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding: 18px 0 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--rcp-orange);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: color 0.3s ease, gap 0.3s var(--rcp-ease);
}

.rcp-more.ct-link-button::after {
  content: "→";
}

.rcp-more.ct-link-button:hover {
  gap: 10px;
}

.rcp-indicator:hover .rcp-card__eyebrow,
.rcp-indicator:hover .rcp-card__title,
.rcp-indicator:hover .rcp-card__text,
.rcp-indicator:hover .rcp-card__row,
.rcp-indicator:hover .rcp-card__text strong,
.rcp-indicator:hover .rcp-card__row strong,
.rcp-indicator:hover .rcp-more.ct-link-button {
  color: #fff;
}

.rcp-indicator:hover .rcp-card__date {
  color: rgba(255, 255, 255, 0.85);
}

.rcp-indicator:hover .rcp-card__list {
  border-color: rgba(255, 255, 255, 0.4);
}

/* Ejes de acción (Reconstrucción tab) */
.rcp-acciones {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-bottom: 32px;
}

.rcp-acciones__title {
  margin: 0 0 18px;
  color: var(--rcp-orange);
  font-family: "makayla", "Brush Script MT", cursive;
  font-size: 64px;
  font-weight: 400;
  line-height: 1;
  text-transform: none;
}

.rcp-acciones__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  max-width: 760px;
  border-radius: var(--rcp-radius);
  background: #fff;
  box-shadow: var(--rcp-shadow);
  overflow: hidden;
}

.rcp-acciones__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 84px;
  padding: 16px 20px;
  border-top: 1px solid var(--rcp-orange-line);
  color: var(--rcp-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.rcp-acciones__item:nth-child(odd) {
  border-right: 1px solid var(--rcp-orange-line);
}

/* First row: no top border. All four items share the white/gray style (MILPA, 19 nov.) */
.rcp-acciones__item:nth-child(-n+2) {
  border-top: 0;
}

.rcp-acciones__item:hover {
  background: var(--rcp-orange);
  color: #fff;
}

/* Hidden sections: remove the class in Oxygen to show them again */
.rcp-is-hidden {
  display: none !important;
}

.oxygen-builder-body .rcp-is-hidden {
  display: block !important;
  opacity: 0.35;
}

/* Territory bars: width set from data-value / data-max by the page script */
.rcp-territorios {
  width: 100%;
  margin-top: 28px;
  padding: 30px 32px;
  border-radius: var(--rcp-radius);
  background: #fff;
  box-shadow: var(--rcp-shadow);
}

.rcp-subtitle {
  margin: 0;
  color: var(--rcp-ink);
  font-size: 20px;
  font-weight: 700;
}

.rcp-territorios__note {
  margin: 4px 0 22px;
  color: var(--rcp-muted);
  font-size: 13px;
}

.rcp-bar {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 90px;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 8px 0;
}

.rcp-bar__label {
  color: var(--rcp-ink);
  font-size: 14px;
  font-weight: 600;
}

.rcp-bar__track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: var(--rcp-orange-soft);
  overflow: hidden;
}

.rcp-bar__fill {
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: var(--rcp-orange);
  transition: width 1.2s var(--rcp-ease);
}

.rcp-bar__value {
  color: var(--rcp-ink);
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}

.rcp-bar--total {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--rcp-orange-line);
}

.rcp-bar--total .rcp-bar__label,
.rcp-bar--total .rcp-bar__value {
  font-weight: 800;
}

.rcp-panel-note {
  margin-top: 18px;
  color: var(--rcp-muted);
  font-size: 13px;
}

.rcp-gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 18px;
  width: 100%;
  margin-top: 48px;
}

.rcp-gallery__image {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
  border: 6px solid #fff;
  border-radius: var(--rcp-radius);
  box-shadow: var(--rcp-shadow);
}

.rcp-gallery__image:nth-child(1) { transform: rotate(-1.5deg); }
.rcp-gallery__image:nth-child(3) { transform: rotate(1.5deg); }

/* 05 El camino */
.rcp-camino {
  background: #fff;
}

.rcp-legend {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 18px;
}

.rcp-legend__item {
  position: relative;
  padding-left: 18px;
  color: var(--rcp-muted);
  font-size: 13px;
  font-weight: 600;
}

.rcp-legend__item::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translateY(-50%);
}

.rcp-legend__item--done::before { background: var(--rcp-orange); }
.rcp-legend__item--current::before { background: #fff; border: 3px solid var(--rcp-orange); width: 12px; height: 12px; }
.rcp-legend__item--next::before { background: #c9cdd2; }

.rcp-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  grid-template-rows: auto 40px auto;
  column-gap: 0;
  width: 100%;
}

/* Line through the middle row */
.rcp-timeline::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 0;
  border-top: 3px dashed #c9cdd2;
}

.rcp-timeline::after {
  content: "";
  position: absolute;
  top: calc(50% - 1px);
  left: 0;
  width: var(--rcp-timeline-progress, 62.5%);
  height: 3px;
  background: var(--rcp-orange);
  transition: width 1.6s var(--rcp-ease), height 1.6s var(--rcp-ease);
}

.rcp-js .rcp-timeline:not(.is-visible)::after {
  width: 0;
}

.rcp-milestone {
  position: relative;
  grid-row: 1;
  align-self: end;
  align-items: center;
  padding: 0 8px 26px;
  text-align: center;
}

.rcp-milestone:nth-child(even) {
  grid-row: 3;
  align-self: start;
  padding: 26px 8px 0;
}

.rcp-milestone:nth-child(1) { grid-column: 1; }
.rcp-milestone:nth-child(2) { grid-column: 2; }
.rcp-milestone:nth-child(3) { grid-column: 3; }
.rcp-milestone:nth-child(4) { grid-column: 4; }
.rcp-milestone:nth-child(5) { grid-column: 5; }
.rcp-milestone:nth-child(6) { grid-column: 6; }
.rcp-milestone:nth-child(7) { grid-column: 7; }
.rcp-milestone:nth-child(8) { grid-column: 8; }

/* Dot on the line */
.rcp-milestone::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -27px;
  z-index: 1;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #c9cdd2;
  box-shadow: 0 0 0 5px #fff;
  transform: translateX(-50%);
}

.rcp-milestone:nth-child(even)::after {
  top: -27px;
  bottom: auto;
}

.rcp-milestone--done::after {
  background: var(--rcp-orange);
}

.rcp-milestone--current::after {
  width: 20px;
  height: 20px;
  border: 4px solid var(--rcp-orange);
  background: #fff;
  box-shadow: 0 0 0 5px #fff, 0 0 0 9px var(--rcp-orange-line);
}

.rcp-milestone__date {
  color: var(--rcp-orange-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.rcp-milestone__title {
  margin: 4px 0 6px;
  color: var(--rcp-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.rcp-milestone__text {
  color: var(--rcp-muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.rcp-milestone--next .rcp-milestone__title {
  color: var(--rcp-muted);
}

/* 06 Noticias (shortcode [rcp_noticias]) */
.rcp-noticias {
  background: #fff;
}

.rcp-noticias > .ct-section-inner-wrap {
  padding-top: 40px;
}

.rcp-noticias .ct-shortcode {
  width: 100%;
}

.rcp-news {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 24px;
  width: 100%;
}

.rcp-news a {
  text-decoration: none;
}

.rcp-news__featured {
  position: relative;
  display: block;
  min-height: 420px;
  overflow: hidden;
  border-radius: 28px;
  background: var(--rcp-surface);
}

.rcp-news__featured-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.rcp-news__featured:hover .rcp-news__featured-image {
  transform: scale(1.04);
}

.rcp-news__featured-card {
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--rcp-shadow);
}

.rcp-news__badge {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--rcp-orange);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rcp-news__date {
  color: var(--rcp-orange-dark);
  font-size: 12px;
  font-weight: 700;
}

.rcp-news__featured-title {
  color: var(--rcp-ink);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
}

.rcp-news__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rcp-news__item {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 18px;
  background: var(--rcp-surface);
  transition: background-color 0.2s ease;
}

.rcp-news__item:hover {
  background: var(--rcp-orange-soft);
}

.rcp-news__item-image {
  flex: 0 0 104px;
  width: 104px;
  height: 92px;
  object-fit: cover;
  border-radius: 12px;
  background: #e3e5e8;
}

.rcp-news__item-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rcp-news__item-title {
  color: var(--rcp-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.rcp-news__empty {
  color: var(--rcp-muted);
}

/* 07 Súmate: photo with the wave used across the site (home, above the footer) */
.rcp-cta {
  position: relative;
  overflow: hidden;
  background-color: var(--rcp-gray);
  background-image:
    linear-gradient(180deg, rgba(52, 58, 66, 0.5) 0%, rgba(92, 99, 110, 0.35) 45%, rgba(232, 90, 20, 0.8) 100%),
    url("/wp-content/uploads/2026/08/whatsapp-image-2026-08-20-at-1.45.30-pm-4-scaled.jpeg");
  background-position: center 40%;
  background-size: cover;
  text-align: center;
}

/* Wave: white (the section above) cut over the photo */
.rcp-cta::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 7vw;
  min-height: 48px;
  max-height: 110px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 110' preserveAspectRatio='none'%3E%3Cpath fill='%23fff' d='M0 0H1440V22C1340 14 1230 22 1130 34C1000 50 900 58 820 52C700 42 600 18 470 8C360 0 250 -2 150 8C90 14 40 20 0 22Z'/%3E%3C/svg%3E") no-repeat top / 100% 100%;
  pointer-events: none;
}

.rcp-cta > .ct-section-inner-wrap {
  position: relative;
  z-index: 2;
  align-items: center;
  padding-top: 190px;
  padding-bottom: 150px;
}

.rcp-cta__title {
  margin: 0 0 18px;
  color: #fff;
  font-family: "makayla", "Brush Script MT", cursive;
  font-size: 104px;
  font-weight: 400;
  line-height: 1;
  text-transform: none;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}

.rcp-cta__text {
  margin-bottom: 32px;
  color: #fff;
  font-size: 19px;
  font-weight: 500;
}

.rcp-cta .rcp-btn--white.ct-link-button:hover {
  background: var(--rcp-orange);
  border-color: var(--rcp-orange);
  color: #fff;
}

/* Motion: elements get .rcp-reveal from the page script, so without JS nothing hides */
.rcp-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--rcp-ease), transform 0.8s var(--rcp-ease);
  transition-delay: var(--rcp-delay, 0s);
}

.rcp-reveal.is-visible {
  opacity: 1;
  transform: none;
}

.rcp-gallery__image.rcp-reveal.is-visible:nth-child(1) { transform: rotate(-1.5deg); }
.rcp-gallery__image.rcp-reveal.is-visible:nth-child(3) { transform: rotate(1.5deg); }

.rcp-hero__photo {
  animation: rcpRise 1s var(--rcp-ease) 0.15s both;
}

.rcp-hero__photo-secondary {
  animation: rcpPop 1s var(--rcp-ease) 0.45s both;
}

.rcp-hero__logo {
  animation: rcpRise 0.9s var(--rcp-ease) both;
}

.rcp-gallery__image {
  transition: transform 0.5s var(--rcp-ease), opacity 0.8s var(--rcp-ease);
}

.rcp-gallery__image.rcp-reveal.is-visible:hover {
  transform: rotate(0) scale(1.03);
}

@keyframes rcpRise {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: none; }
}

@keyframes rcpPop {
  from { opacity: 0; transform: translateY(30px) rotate(0); }
  to { opacity: 1; transform: rotate(4deg); }
}

.oxygen-builder-body .rcp-reveal {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 1120px) {
  .rcp-hero > .ct-section-inner-wrap {
    padding-top: 130px;
  }

  .rcp-stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 32px;
  }

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

  /* Timeline turns vertical */
  .rcp-timeline {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    row-gap: 22px;
    padding-left: 34px;
  }

  .rcp-timeline::before {
    top: 0;
    bottom: 0;
    left: 9px;
    right: auto;
    height: auto;
    border-top: 0;
    border-left: 3px dashed #c9cdd2;
  }

  .rcp-timeline::after {
    top: 0;
    left: 9px;
    width: 3px;
    height: var(--rcp-timeline-progress, 62.5%);
  }

  .rcp-js .rcp-timeline:not(.is-visible)::after {
    width: 3px;
    height: 0;
  }

  .rcp-milestone,
  .rcp-milestone:nth-child(even) {
    grid-row: auto;
    grid-column: 1 !important;
    align-self: auto;
    align-items: flex-start;
    padding: 0;
    text-align: left;
  }

  .rcp-milestone::after,
  .rcp-milestone:nth-child(even)::after {
    top: 4px;
    bottom: auto;
    left: -25px;
    transform: translateX(-50%);
  }

  .rcp-milestone__text {
    font-size: 14px;
  }
}

@media (max-width: 860px) {
  .rcp-section > .ct-section-inner-wrap {
    padding: 72px 20px;
  }

  .rcp-hero > .ct-section-inner-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 120px;
  }

  .rcp-hero::before {
    width: 360px;
    height: 300px;
    opacity: 0.6;
  }

  .rcp-title {
    font-size: 30px;
  }

  .rcp-ejes__grid,
  .rcp-indicators--three,
  .rcp-news {
    grid-template-columns: 1fr;
  }

  .rcp-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .rcp-gallery__image:nth-child(1) {
    grid-column: 1 / -1;
  }

  .rcp-news__featured {
    min-height: 340px;
  }

  .rcp-cta__title {
    font-size: 68px;
  }

  .rcp-cta > .ct-section-inner-wrap {
    padding-top: 120px;
    padding-bottom: 100px;
  }
}

@media (max-width: 560px) {
  .rcp-stats__grid,
  .rcp-indicators {
    grid-template-columns: 1fr;
  }

  .rcp-acciones__title {
    font-size: 48px;
  }

  .rcp-acciones__item {
    min-height: 72px;
    padding: 12px;
    font-size: 14px;
  }

  .rcp-stat__number {
    font-size: 40px;
  }

  .rcp-bar {
    grid-template-columns: 1fr 80px;
    row-gap: 6px;
  }

  .rcp-bar__track {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .rcp-gallery {
    grid-template-columns: 1fr;
  }

  .rcp-gallery__image {
    height: 220px;
  }

  .rcp-hero__photo-secondary {
    right: 0;
  }
}

@media (max-width: 560px) {
  .rcp-cta__title {
    font-size: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rcp-page * {
    animation: none !important;
    transition: none !important;
  }

  .rcp-reveal {
    opacity: 1;
    transform: none;
  }
}
