/* ============================================================
   InverPep - Statistics
   Solo estilos propios de statistics
   ============================================================ */

.inverpep-wrap{
  max-width: 1320px;
  margin: 0 auto;
  padding: 26px 20px 56px;
}

/* ===== Subheader ===== */

.inverpep-subRow{
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 22px;
}

.inverpep-subPill{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #c7ebe1 0%, #afdfd1 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
}

.inverpep-dot{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2b8676;
  flex: 0 0 auto;
}

.inverpep-subtitle{
  margin: 0;
  color: #2b5b55;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.inverpep-help{
  display: none !important;
}

/* ===== Grid ===== */

.inverpep-grid{
  margin: 0;
}

/* ===== Card base ===== */

.inverpep-card{
  margin-bottom: 22px;
  background: #EFF2F1;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(22, 33, 42, .05);
}

.inverpep-cardTitle{
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 20px 24px 0;
  color: #2b8676;
  font-size: clamp(1.45rem, 1.7vw, 1.95rem);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -.02em;
}

.inverpep-ico{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  color: #2b5b55;
  font-size: 16px;
  font-weight: 900;
  background: linear-gradient(180deg, #c7ebe1 0%, #afdfd1 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
}

.inverpep-text{
  color: #16212a;
  font-size: 15px;
  line-height: 1.5;
}

.inverpep-muted{
  color: #344454;
  padding: 0 24px;
}

.inverpep-divider{
  height: 1px;
  margin: 18px 24px;
  background: rgba(22, 33, 42, .08);
}

/* ===== Stat summary ===== */

.inverpep-statBox{
  margin: 18px 24px 0;
  padding: 18px 18px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #fff;
  box-shadow:
    0 10px 24px rgba(22,33,42,.04),
    inset 0 1px 0 rgba(255,255,255,.72);
}

.inverpep-statLeft{
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.inverpep-statValue{
  color: #000;
  font-size: clamp(3rem, 5vw, 4.2rem);
  line-height: 1;
  font-weight: 1000;
  letter-spacing: -.04em;
}

.inverpep-statLabel{
  color: #1c2430;
  font-size: 1.05rem;
  line-height: 1.1;
  font-weight: 600;
}

.inverpep-tag{
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  color: #2b5b55;
  font-size: 13px;
  font-weight: 800;
  background: linear-gradient(180deg, #c7ebe1 0%, #afdfd1 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
}

/* ===== Table ===== */

.inverpep-tableWrap{
  width: calc(100% - 48px);
  margin: 0 24px 24px;
  overflow: auto;
  border-radius: 22px;
  border: 1px solid rgba(43, 134, 118, .10);
  background: #fff;
  box-shadow:
    0 14px 30px rgba(22, 33, 42, .06),
    inset 0 1px 0 rgba(255,255,255,.72);
}

.inverpep-table{
  width: 100%;
  min-width: 780px;
  border-collapse: separate;
  border-spacing: 0;
  background: transparent;
}

.inverpep-table th,
.inverpep-table td{
  padding: 16px 18px;
  border-bottom: 1px solid rgba(22, 33, 42, .07);
  color: #16212a;
  font-size: 14px;
  line-height: 1.45;
  text-align: left;
  vertical-align: middle;
}

.inverpep-table thead th{
  position: sticky;
  top: 0;
  z-index: 2;
  color: #2b8676;
  font-size: 13.5px;
  font-weight: 900;
  letter-spacing: .01em;
  white-space: nowrap;
  background: linear-gradient(180deg, #e6f4ef 0%, #d8eee7 100%);
  border-bottom: 1px solid rgba(43, 134, 118, .14);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.4);
}

.inverpep-table thead th:first-child{
  border-top-left-radius: 22px;
}

.inverpep-table thead th:last-child{
  border-top-right-radius: 22px;
}

.inverpep-table tbody tr:nth-child(even) td,
.inverpep-table tbody tr:nth-child(even) th{
  background: rgba(43, 134, 118, .035);
}

.inverpep-table tbody tr:hover td,
.inverpep-table tbody tr:hover th{
  background: rgba(43, 134, 118, .07);
}

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

.inverpep-rowLabel{
  min-width: 170px;
  color: #2b5b55;
  font-size: 14px;
  font-weight: 800;
  background: linear-gradient(180deg, rgba(199,235,225,.52) 0%, rgba(175,223,209,.34) 100%);
}

.inverpep-table tbody tr:hover .inverpep-rowLabel{
  background: linear-gradient(180deg, rgba(199,235,225,.82) 0%, rgba(175,223,209,.58) 100%);
}

/* ===== Scroll ===== */

.inverpep-tableWrap::-webkit-scrollbar{
  height: 10px;
}

.inverpep-tableWrap::-webkit-scrollbar-track{
  background: #edf2f1;
  border-radius: 999px;
}

.inverpep-tableWrap::-webkit-scrollbar-thumb{
  background: rgba(43, 134, 118, .35);
  border-radius: 999px;
}

.inverpep-tableWrap::-webkit-scrollbar-thumb:hover{
  background: rgba(43, 134, 118, .52);
}

/* ===== Layout de figuras ===== */

.inverpep-figGrid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 22px;
}

.inverpep-card--half{
  margin-bottom: 0;
}

.inverpep-card--full{
  margin-bottom: 22px;
  background: #EFF2F1;
}

/* ===== Figures ===== */

.inverpep-figure{
  margin: 0;
  padding: 18px 10px 24px;
  text-align: center;
}

.inverpep-card--full .inverpep-figure{
  padding-left: 6px;
  padding-right: 6px;
}

.inverpep-figureImg{
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 26px rgba(22,33,42,.06);
}

.inverpep-card--half .inverpep-figureImg{
  max-width: 100%;
  max-height: none;
}

.inverpep-card--full .inverpep-figureImg{
  width: min(100%, 1180px);
  max-width: 100%;
  max-height: none;
}

.inverpep-figcap{
  margin-top: 14px;
  padding: 0 4px;
  color: #344454;
  font-size: 14px;
  line-height: 1.6;
}

.inverpep-figcap b{
  color: #2b8676;
  font-weight: 900;
}

/* ===== Responsive ===== */

@media (max-width: 1100px){
  .inverpep-wrap{
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 960px){
  .inverpep-figGrid{
    grid-template-columns: 1fr;
  }

  .inverpep-card--half .inverpep-figureImg,
  .inverpep-card--full .inverpep-figureImg{
    max-width: 100%;
    max-height: none;
  }
}

@media (max-width: 860px){
  .inverpep-banner{
    max-width: 180px;
    max-height: 58px;
  }

  .inverpep-card{
    border-radius: 20px;
  }

  .inverpep-cardTitle{
    padding: 18px 18px 0;
    font-size: 1.5rem;
  }

  .inverpep-muted{
    padding: 0 18px;
  }

  .inverpep-divider{
    margin: 16px 18px;
  }

  .inverpep-statBox{
    margin: 16px 18px 0;
    padding: 16px;
  }

  .inverpep-tableWrap{
    width: calc(100% - 36px);
    margin: 0 18px 18px;
    border-radius: 18px;
  }

  .inverpep-table{
    min-width: 720px;
  }

  .inverpep-table th,
  .inverpep-table td{
    padding: 14px 14px;
    font-size: 13.5px;
  }

  .inverpep-table thead th{
    font-size: 13px;
  }

  .inverpep-figure{
    padding: 16px 8px 18px;
  }

  .inverpep-figcap{
    font-size: 13.5px;
  }
}

@media (max-width: 640px){
  .inverpep-subPill{
    min-height: 38px;
    padding: 0 14px;
  }

  .inverpep-subtitle{
    font-size: 14px;
  }

  .inverpep-card{
    border-radius: 18px;
  }

  .inverpep-cardTitle{
    gap: 10px;
    padding: 16px 16px 0;
    font-size: 1.3rem;
  }

  .inverpep-ico{
    width: 30px;
    height: 30px;
    border-radius: 10px;
    flex-basis: 30px;
    font-size: 14px;
  }

  .inverpep-text{
    font-size: 14px;
    line-height: 1.55;
  }

  .inverpep-muted{
    padding: 0 16px;
  }

  .inverpep-divider{
    margin: 14px 16px;
  }

  .inverpep-statBox{
    margin: 14px 16px 0;
    padding: 14px;
    flex-direction: column;
    align-items: flex-start;
  }

  .inverpep-statValue{
    font-size: 3.4rem;
  }

  .inverpep-statLabel{
    font-size: .98rem;
  }

  .inverpep-tableWrap{
    width: calc(100% - 32px);
    margin: 0 16px 16px;
  }

  .inverpep-table{
    min-width: 680px;
  }

  .inverpep-table th,
  .inverpep-table td{
    padding: 12px 12px;
    font-size: 13px;
  }

  .inverpep-table thead th:first-child{
    border-top-left-radius: 18px;
  }

  .inverpep-table thead th:last-child{
    border-top-right-radius: 18px;
  }

  .inverpep-rowLabel{
    font-size: 13px;
  }

  .inverpep-figure{
    padding: 14px 6px 16px;
  }

  .inverpep-figureImg{
    border-radius: 14px;
  }

  .inverpep-figGrid{
    gap: 16px;
    margin-bottom: 16px;
  }

  .inverpep-figcap{
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.55;
  }
}

/* ===== Vista ampliada de imágenes ===== */

.js-inverpep-zoom{
  cursor: zoom-in;
}

.inverpep-lightbox{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.inverpep-lightbox.is-open{
  display: block;
}

.inverpep-lightbox__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(18, 27, 34, .62);
  backdrop-filter: blur(2px);
}

.inverpep-lightbox__dialog{
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(92vw, 1100px);
  max-height: 88vh;
  transform: translate(-50%, -50%);
  padding: 18px;
  border-radius: 20px;
  background: #f7f9f8;
  box-shadow: 0 28px 70px rgba(0,0,0,.28);
  display: flex;
  align-items: center;
  justify-content: center;
}

.inverpep-lightbox__img{
  display: block;
  max-width: 100%;
  max-height: calc(88vh - 36px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
}

.inverpep-lightbox__close{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(22, 33, 42, .10);
  color: #18353a;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.inverpep-lightbox__close:hover{
  background: rgba(22, 33, 42, .16);
}

body.inverpep-noScroll{
  overflow: hidden;
}

@media (max-width: 640px){
  .inverpep-lightbox__dialog{
    width: min(94vw, 94vw);
    padding: 12px;
    border-radius: 16px;
  }

  .inverpep-lightbox__img{
    max-height: calc(84vh - 24px);
    border-radius: 12px;
  }

  .inverpep-lightbox__close{
    top: 8px;
    right: 8px;
    width: 38px;
    height: 38px;
    font-size: 24px;
  }
}