/* Campañas públicas V31: aislado para no alterar las páginas existentes. */
.cp-page {
  font-family: inherit;
  background: #f4fafb;
  color: #123e4b;
  min-height: 60vh;
}
.cp-page * {
  box-sizing: border-box;
}
.cp-page [hidden] {
  display: none !important;
}
.cp-hero {
  padding: 76px 0;
  background: linear-gradient(120deg, #effbfb, #dff2f4);
  border-bottom: 1px solid #dbecef;
}
.cp-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.cp-hero h1 {
  font-family: Outfit, inherit;
  font-size: clamp(34px, 4.4vw, 58px);
  letter-spacing: -1.4px;
  line-height: 1.12;
  max-width: 750px;
  margin: 16px 0;
  color: #113e4d;
}
.cp-hero p {
  color: #5b7b86;
  font-size: 16px;
  line-height: 1.8;
}
.cp-hero-icon {
  height: 180px;
  width: 180px;
  border: 2px solid #c2e4e8;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #078298;
  background: white;
  font-size: 76px;
  flex-shrink: 0;
}
.cp-content {
  padding-top: 65px;
  padding-bottom: 75px;
}
.cp-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.cp-heading h2 {
  font-family: Outfit, inherit;
  font-size: 36px;
  margin: 7px 0;
}
.cp-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cp-filter {
  border: 1px solid #d5e9ed;
  background: white;
  color: #426977;
  padding: 11px 16px;
  border-radius: 10px;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.cp-filter.is-active,
.cp-filter:hover {
  background: #087e91;
  color: white;
  border-color: #087e91;
}
.cp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
  gap: 24px;
}
.cp-card {
  background: white;
  border: 1px solid #dfebef;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 14px 35px rgba(14, 70, 84, 0.05);
}
.cp-card-image {
  position: relative;
  height: 230px;
  background: #e3f5f7;
}
.cp-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cp-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 60px;
  color: #0c8395;
}
.cp-status {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 8px 12px;
  background: #dcf5ed;
  color: #166c54;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.cp-future {
  background: #e8f3ff;
  color: #235b8d;
}
.cp-past {
  background: #eff2f4;
  color: #5b6c75;
}
.cp-card-body {
  padding: 25px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 275px;
}
.cp-kicker {
  font-size: 10px;
  letter-spacing: 1.7px;
  color: #118496;
  font-weight: 800;
}
.cp-card-body h3 {
  margin: 0;
  font-family: Outfit, inherit;
  font-size: 24px;
}
.cp-card-body p {
  color: #65808a;
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}
.cp-details {
  display: grid;
  gap: 7px;
  color: #527783;
  font-size: 12px;
  margin-top: auto;
}
.cp-btn {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  background: #087b91;
  color: white !important;
  text-decoration: none;
  border-radius: 12px;
  padding: 14px 18px;
  font-weight: 800;
  font-size: 13px;
  margin-top: 12px;
  cursor: pointer;
}
.cp-btn:hover {
  background: #076477;
}
.cp-empty {
  background: white;
  border: 1px solid #deedf0;
  border-radius: 20px;
  padding: 42px;
  text-align: center;
  color: #64808a;
}
.cp-empty strong {
  display: block;
  color: #164353;
  font-size: 20px;
  margin-bottom: 8px;
}
.cp-detail {
  padding-top: 38px;
  padding-bottom: 80px;
}
.cp-back {
  color: #0b8294;
  font-weight: 800;
  text-decoration: none;
  font-size: 13px;
}
.cp-detail-layout {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}
.cp-detail-main,
.cp-detail-side {
  background: white;
  border: 1px solid #ddebef;
  border-radius: 22px;
  padding: 30px;
}
.cp-detail-main h1 {
  font-family: Outfit, inherit;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.15;
  margin: 20px 0;
}
.cp-detail-main h2,
.cp-detail-side h2 {
  font-family: Outfit, inherit;
  font-size: 23px;
  margin: 24px 0 12px;
}
.cp-lead {
  font-size: 16px;
  line-height: 1.8;
  color: #52717d;
}
.cp-detail-image {
  width: 100%;
  max-height: 430px;
  object-fit: cover;
  border-radius: 16px;
  margin: 22px 0;
}
.cp-status-inline {
  position: static;
  display: inline-block;
}
.cp-longtext {
  line-height: 1.85;
  color: #4e707c;
  font-size: 15px;
}
.cp-detail-side {
  position: sticky;
  top: 100px;
}
.cp-detail-side > div {
  display: grid;
  gap: 6px;
  padding: 13px 0;
  border-bottom: 1px solid #e5eff1;
}
.cp-detail-side strong {
  font-size: 12px;
  color: #164a59;
}
.cp-detail-side span,
.cp-detail-side small {
  font-size: 13px;
  color: #69838b;
  line-height: 1.6;
}
.cp-detail-side .cp-btn {
  width: 100%;
  margin-top: 22px;
}
@media (max-width: 900px) {
  .cp-hero-icon {
    display: none;
  }
  .cp-heading {
    align-items: start;
    flex-direction: column;
  }
  .cp-detail-layout {
    grid-template-columns: 1fr;
  }
  .cp-detail-side {
    position: static;
  }
}
@media (max-width: 600px) {
  .cp-hero {
    padding: 48px 0;
  }
  .cp-content {
    padding-top: 40px;
  }
  .cp-filter {
    padding: 9px 12px;
  }
  .cp-detail-main,
  .cp-detail-side {
    padding: 20px;
  }
}

/* V31.1 · coherencia con las vistas públicas institucionales */
.cp-page {
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: #113b4a;
  background: #f5fafb;
  -webkit-font-smoothing: antialiased;
}
.cp-page button,
.cp-page input,
.cp-page select,
.cp-page textarea {
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 14px;
}
.cp-page a,
.cp-page button {
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}
.cp-hero {
  padding: 75px 0 70px;
  background: linear-gradient(115deg, #f3fcfd, #e4f6f7);
  border-bottom: 1px solid #dfeef1;
}
.cp-hero h1 {
  font-family: "Outfit", Arial, sans-serif;
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 750;
  letter-spacing: -1.3px;
  color: #103e50;
}
.cp-hero p {
  font-size: 15px;
  line-height: 1.85;
  color: #597b87;
  max-width: 630px;
}
.cp-hero-icon {
  height: 156px;
  width: 156px;
  color: #087f92;
  border: 1px solid #c8e5e9;
  box-shadow: 0 10px 40px rgba(13, 99, 120, 0.05);
}
.cp-heading h2 {
  font-family: "Outfit", Arial, sans-serif;
  font-weight: 750;
  font-size: clamp(28px, 3vw, 39px);
  letter-spacing: -0.7px;
  color: #113d4b;
}
.cp-heading {
  gap: 22px;
  flex-wrap: wrap;
}
.cp-filters {
  gap: 9px;
}
.cp-page .cp-filter {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 17px;
  border: 1px solid #cfe5eb;
  border-radius: 11px;
  background: #fff;
  color: #426978;
  box-shadow: 0 3px 12px rgba(12, 78, 96, 0.025);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.2;
  cursor: pointer;
}
.cp-page .cp-filter:hover {
  background: #eaf8f9;
  border-color: #0b91a2;
  color: #0a6f80;
  transform: translateY(-1px);
}
.cp-page .cp-filter.is-active,
.cp-page .cp-filter.is-active:hover {
  background: #0b8396;
  border-color: #0b8396;
  color: #fff;
  box-shadow: 0 7px 19px rgba(6, 114, 136, 0.16);
}
.cp-page .cp-filter:focus-visible,
.cp-page .cp-btn:focus-visible,
.cp-page .cp-back:focus-visible {
  outline: 3px solid #a6e5eb;
  outline-offset: 3px;
}
.cp-content {
  padding-top: 60px;
  padding-bottom: 80px;
}
.cp-card,
.cp-detail-main,
.cp-detail-side,
.cp-empty {
  border: 1px solid #dcebef;
  border-radius: 21px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(20, 85, 103, 0.045);
}
.cp-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.cp-card-image {
  height: 240px;
}
.cp-card-body {
  flex: 1;
  padding: 25px 25px 27px;
  gap: 13px;
}
.cp-card-body h3 {
  font-family: "Outfit", Arial, sans-serif;
  font-size: 25px;
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: -0.3px;
  color: #123d4c;
}
.cp-card-body p {
  font-size: 14px;
  line-height: 1.8;
  color: #627d88;
}
.cp-page .cp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 19px;
  min-height: 46px;
  background: #0b8093;
  border: 1px solid #0b8093;
  border-radius: 12px;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 800;
  color: #fff !important;
  box-shadow: 0 7px 20px rgba(7, 117, 135, 0.13);
  text-decoration: none;
}
.cp-page .cp-btn:hover {
  background: #09697b;
  border-color: #09697b;
  transform: translateY(-2px);
}
.cp-empty {
  padding: 42px 30px;
  color: #66838e;
}
.cp-empty strong {
  font-family: "Outfit", Arial, sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #103b4b;
}
.cp-detail-main h1 {
  font-family: "Outfit", Arial, sans-serif;
  font-weight: 750;
  color: #113d4b;
}
.cp-detail-main h2,
.cp-detail-side h2 {
  font-family: "Outfit", Arial, sans-serif;
  font-weight: 700;
  color: #113d4b;
}
.cp-back {
  color: #0a8296;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}
@media (max-width: 600px) {
  .cp-hero {
    padding: 48px 0;
  }
  .cp-filter {
    flex: 1 1 auto;
  }
  .cp-content {
    padding-top: 38px;
  }
  .cp-heading {
    align-items: stretch;
  }
  .cp-detail-main,
  .cp-detail-side {
    padding: 21px;
  }
}

/* V31.2 — mejor respiro de CTA en la ficha y enlaces accesibles */
.cp-detail-side {
  padding-bottom: 32px;
}
.cp-detail-side > div:last-of-type {
  margin-bottom: 12px;
}
.cp-page .cp-detail-side .cp-btn {
  display: flex;
  width: 100%;
  min-height: 50px;
  margin-top: 26px;
  margin-bottom: 16px;
  padding: 14px 19px;
  justify-content: center;
  text-align: center;
  line-height: 1.45;
  border-radius: 13px;
}
.cp-detail-side > small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.7;
  color: #69838b;
}
@media (max-width: 600px) {
  .cp-detail-side {
    padding-bottom: 26px;
  }
  .cp-page .cp-detail-side .cp-btn {
    margin-top: 22px;
  }
}
