/* Areas page — sync with template/BPP_Areas.html */

.section-hero {
  height: 275px;
  background: var(--blue-xdk);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.sh-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.sh-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(27, 100, 200, 0.95) 0%,
    rgba(20, 80, 168, 0.82) 20%,
    rgba(10, 50, 130, 0.72) 50%,
    rgba(10, 40, 100, 0.62) 100%
  );
}

.sh-wave {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  pointer-events: none;
}

.sh-sq1 {
  position: absolute;
  top: 48px;
  right: 80px;
  width: 18px;
  height: 18px;
  background: var(--blue);
  opacity: 0.85;
  z-index: 3;
}

.sh-sq2 {
  position: absolute;
  top: 70px;
  right: 102px;
  width: 11px;
  height: 11px;
  background: rgba(255, 255, 255, 0.4);
  z-index: 3;
}

.sh-sq3 {
  position: absolute;
  top: 58px;
  right: 114px;
  width: 13px;
  height: 13px;
  background: var(--blue-md);
  opacity: 0.5;
  z-index: 3;
}

.sh-inner {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 80px 44px;
  display: flex;
  align-items: flex-end;
  gap: 80px;
}

.sh-left {
  flex: 0 0 320px;
}

.sh-title {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 500;
  color: #fff;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}

.sh-right {
  flex: 1;
  padding-bottom: 4px;
}

.sh-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
}

.sh-desc p {
  margin-bottom: 14px;
}

.sh-desc p:last-child {
  margin-bottom: 0;
}

/* ── Lista de Áreas (BPP_Areas.html) ── */
.areas-section {
  background: var(--gray-bg);
  padding: 20px 0 0;
}

.areas-list {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 80px 64px;
}

.area-row {
  display: flex;
  align-items: stretch;
  border-bottom: 0.5px solid #c4c0b8;
  height: 168px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s;
  margin-bottom: 16px;
}

.area-row:last-child {
  margin-bottom: 0;
}

.ar-light {
  background: #f0ede6;
}

.ar-dark {
  background: var(--blue-xdk);
}

.ar-left {
  width: 38%;
  padding: 24px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.ar-num {
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.ar-num-l {
  color: var(--blue-lt);
}

.ar-num-d {
  color: rgba(255, 255, 255, 0.28);
}

.ar-title {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 18px;
}

.ar-title-l {
  color: var(--blue-xdk);
}

.ar-title-d {
  color: #fff;
}

.ar-btn {
  display: inline-flex;
  align-items: center;
  height: 30px;
  border: 1.5px solid;
  width: fit-content;
  text-decoration: none;
  transition: background 0.2s;
}

.ar-btn-l {
  border-color: var(--blue);
}

.ar-btn-l:hover {
  background: var(--blue);
}

.ar-btn-l:hover .ar-btn-lbl {
  color: #fff;
}

.ar-btn-l:hover .ar-btn-sep {
  background: rgba(255, 255, 255, 0.4);
}

.ar-btn-l:hover .ar-btn-arr {
  color: #fff;
}

.ar-btn-d {
  border-color: rgba(255, 255, 255, 0.45);
}

.ar-btn-d:hover {
  background: rgba(255, 255, 255, 0.12);
}

.ar-btn-lbl {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0 12px;
  transition: color 0.2s;
}

.ar-btn-lbl-l {
  color: var(--blue-xdk);
}

.ar-btn-lbl-d {
  color: #fff;
}

.ar-btn-sep {
  width: 1.5px;
  height: 16px;
  transition: background 0.2s;
}

.ar-btn-sep-l {
  background: var(--blue);
}

.ar-btn-sep-d {
  background: rgba(255, 255, 255, 0.35);
}

.ar-btn-arr {
  font-size: 12px;
  padding: 0 10px;
  transition: color 0.2s;
}

.ar-btn-arr-l {
  color: var(--blue);
}

.ar-btn-arr-d {
  color: rgba(255, 255, 255, 0.65);
}

.ar-right {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.ar-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}

.area-row:hover .ar-img {
  transform: scale(1.04);
}

.ar-img-ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ar-ph-lbl {
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ar-ph-lbl-l {
  color: rgba(0, 0, 0, 0.18);
}

.ar-ph-lbl-d {
  color: rgba(255, 255, 255, 0.18);
}

.ar-sq {
  position: absolute;
  pointer-events: none;
}

.ar-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 79, 160, 0);
  transition: background 0.3s ease;
}

.area-row:hover .ar-hover-overlay {
  background: rgba(13, 79, 160, 0.18);
}

/* ── Sección p3 ── */
.p3-section {
  background: #f5f5f5;
  padding: 52px 0 80px;
}

.p3-header {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 80px 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.p3-eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.p3-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--blue-xdk);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.p3-count {
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  color: var(--gray-mid);
  letter-spacing: 0.1em;
}

.p3-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 80px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.p3-card--featured {
  grid-column: 1 / -1;
  min-height: 340px;
}

.p3-card--featured .p3-name {
  font-size: 19px;
}

.p3-card--featured .p3-desc {
  font-size: 13px;
  max-width: 480px;
}

.p3-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: flex-end;
  min-height: 210px;
}

.p3-card.is-layout-flow > * {
  margin-block-start: 0;
  margin-block-end: 0;
}

.p3-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}

.p3-card > .wp-block-image.p3-bg {
  position: absolute;
  inset: 0;
  margin: 0;
}

.p3-card > .wp-block-image.p3-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.p3-card:hover .p3-bg {
  transform: scale(1.05);
}

.p3-card:hover > .wp-block-image.p3-bg img {
  transform: scale(1.05);
}

.p3-ov {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(30, 49, 93, 0.72) 0%,
    rgba(10, 26, 62, 0.38) 50%,
    rgba(128, 140, 165, 0.12) 100%
  );
  transition: background 0.3s;
  pointer-events: none;
}

.p3-card:hover .p3-ov {
  background: linear-gradient(
    to top,
    rgba(27, 100, 200, 0.8) 0%,
    rgba(27, 100, 200, 0.5) 50%,
    rgba(27, 100, 200, 0.25) 100%
  );
}

.p3-accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  z-index: 2;
  pointer-events: none;
}

.p3-body {
  position: relative;
  z-index: 2;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
}

.p3-body p {
  margin: 0;
}

.p3-body .wp-block-buttons {
  margin-top: 2px;
}

.p3-body .wp-block-button {
  margin: 0;
}

.p3-body .wp-block-button__link {
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.08em;
  background: transparent;
  padding: 0;
  border: 0;
  border-radius: 0;
}

.p3-card:hover .wp-block-button__link {
  color: rgba(255, 255, 255, 0.9);
}

.p3-num {
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.14em;
}

.p3-name {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.25;
}

.p3-desc {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.55;
}

.p3-cta {
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 0.2s,
    transform 0.2s;
  margin-top: 2px;
}

.p3-card:hover .p3-cta {
  opacity: 1;
  transform: translateY(0);
}

.pa-01 {
  background: #0a2a5e;
}

.pa-02 {
  background: #1b64c8;
}

.pa-03 {
  background: #1450a8;
}

.pa-04 {
  background: #3d7fd4;
}

.pa-05 {
  background: #5a90da;
}

.pa-06 {
  background: #85b7eb;
}

.pa-07 {
  background: #6b9cd4;
}

.pa-08 {
  background: #7aaed8;
}

.pa-09 {
  background: #8abcde;
}

.pa-10 {
  background: #9acae4;
}

/* Editor UX: keep frontend 1:1, but make cards easy to edit in Gutenberg */
.editor-styles-wrapper .p3-card {
  display: block !important;
  min-height: auto !important;
  border: 1px solid rgba(27, 100, 200, 0.2) !important;
  padding: 0 !important;
  margin-bottom: 16px;
}

.editor-styles-wrapper .p3-card:hover {
  border-color: rgba(27, 100, 200, 0.4);
}

.editor-styles-wrapper .p3-card > .wp-block-image.p3-bg {
  position: relative !important;
  inset: auto !important;
  margin: 0 !important;
  display: block !important;
  width: 100% !important;
  cursor: pointer;
}

.editor-styles-wrapper .p3-card > .wp-block-image.p3-bg:hover {
  opacity: 0.95;
  box-shadow: 0 0 0 2px #1b64c8;
}

.editor-styles-wrapper .p3-card > .wp-block-image.p3-bg figure {
  margin: 0 !important;
  display: block !important;
}

.editor-styles-wrapper .p3-card > .wp-block-image.p3-bg img {
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  min-height: 180px !important;
  object-fit: cover !important;
  display: block !important;
}

.editor-styles-wrapper .p3-ov,
.editor-styles-wrapper .p3-accent {
  display: none;
}

.editor-styles-wrapper .p3-body {
  position: relative;
  z-index: 1;
  padding: 14px 16px !important;
  background: rgba(10, 42, 94, 0.92) !important;
  margin-top: 0 !important;
}

.editor-styles-wrapper .p3-body > * {
  margin: 0 0 8px 0 !important;
}

.editor-styles-wrapper .p3-body > *:last-child {
  margin-bottom: 0 !important;
}

.editor-styles-wrapper .p3-body .wp-block-buttons {
  margin: 8px -16px -14px -16px !important;
  padding: 8px 16px 0 16px !important;
  background: rgba(0, 0, 0, 0.2) !important;
}

.editor-styles-wrapper .p3-body .wp-block-button__link {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  padding: 6px 12px !important;
  line-height: 1.3 !important;
  font-size: 13px !important;
}

.editor-styles-wrapper .p3-num {
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
}

.editor-styles-wrapper .p3-name {
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 600 !important;
}

.editor-styles-wrapper .p3-desc {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
}

@media (max-width: 1179px) {
  .sh-inner,
  .p3-header,
  .p3-grid {
    padding-left: 32px;
    padding-right: 32px;
  }

  .sh-inner {
    padding: 0 32px 36px;
    gap: 48px;
  }

  .areas-list {
    padding: 0 32px 48px;
  }

  .area-row {
    height: auto;
    min-height: 140px;
  }
}

@media (max-width: 767px) {
  .section-hero {
    min-height: 260px;
    height: auto;
  }

  .sh-inner {
    flex-direction: column;
    gap: 16px;
    padding: 0 20px 28px;
  }

  .sh-left {
    flex: none;
  }

  .sh-title {
    font-size: clamp(26px, 6vw, 38px);
  }

  .areas-list {
    padding: 0 20px 40px;
  }

  .area-row {
    height: auto;
    min-height: 130px;
    flex-direction: column;
  }

  .ar-left {
    width: 100%;
    padding: 20px 20px 16px;
  }

  .ar-right {
    min-height: 100px;
  }

  .p3-header,
  .p3-grid {
    padding-left: 20px;
    padding-right: 20px;
  }

  .p3-grid {
    grid-template-columns: 1fr;
  }

  .p3-card--featured {
    min-height: 210px;
  }

  .p3-card--featured .p3-name {
    font-size: 13px;
  }

  .p3-card--featured .p3-desc {
    font-size: 10.5px;
    max-width: none;
  }
}
