/* ============================================================
   InverPep - estilos compartidos
   Paleta:
     Azul  #0C5484
     Verde #30A36A
   Fondo: blanco (no se cambia)
   ============================================================ */

:root{
  --blue:#0C5484;
  --green:#30A36A;

  --bg:#ffffff;
  --card:#ffffff;
  --cardBorder: rgba(12,84,132,.10);
  --text:#0f172a;
  --muted:#52606d;

  --shadow: 0 14px 32px rgba(2,12,27,.10);
  --shadow2: 0 10px 24px rgba(2,12,27,.08);
  --shadowHover: 0 18px 44px rgba(2,12,27,.14);
}

*{ box-sizing:border-box; }

html, body{
  height:100%;
}

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a{ color: inherit; }

/* ===== Fallback grid (tipo Bootstrap básico) ===== */
.row{
  display:flex;
  flex-wrap:wrap;
  margin-left:-12px;
  margin-right:-12px;
}
[class*="col-"]{
  padding-left:12px;
  padding-right:12px;
  width:100%;
}
.col-xs-12{ width:100%; }
.col-sm-12{ width:100%; }
.col-md-12{ width:100%; }

@media (min-width: 992px){
  .col-md-7{ width:58.333333%; }
  .col-md-5{ width:41.666667%; }
}

/* ============================================================
   Layout base
   ============================================================ */
.inverpep-home{
  background: var(--bg);
}

.inverpep-wrap{
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 22px 70px;
}

@media (max-width: 991px){
  .inverpep-wrap{ padding: 14px 12px 52px; }
}

/* ===== Banner ===== */
.inverpep-bannerCard{
  width:100%;
  background: #fff;
  border-radius: 26px;
  border: 3px solid rgba(48,163,106,.30);
  box-shadow: var(--shadow);
  overflow:hidden;
  position: relative;
}
.inverpep-bannerCard:after{
  content:"";
  position:absolute;
  inset:10px;
  border-radius: 18px;
  border: 1px solid rgba(12,84,132,.18);
  pointer-events:none;
}
.inverpep-banner{
  width:100%;
  display:block;
  object-fit: cover;
  max-height: 190px;
}
@media (max-width: 991px){
  .inverpep-banner{ max-height: 160px; }
}

/* ===== SubRow ===== */
.inverpep-subRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin: 16px 2px 18px;
}
.inverpep-subPill{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(12,84,132,.14);
  box-shadow: var(--shadow2);
}
.inverpep-dot{
  width:10px;height:10px;border-radius:999px;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(48,163,106,.10);
}
.inverpep-subtitle{
  margin:0;
  font-weight: 900;
  color: var(--blue);
  letter-spacing:.1px;
  font-size: 16px;
}

/* Acciones top (Home/Help) */
.inverpep-actionsTop{ display:flex; gap:10px; align-items:center; }
.inverpep-topBtn{
  height:40px;
  border-radius: 14px;
  padding: 0 14px;
  border: 1px solid rgba(12,84,132,.16);
  background:#fff;
  color: var(--blue);
  font-weight: 900;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:10px;
  box-shadow: 0 10px 18px rgba(2,12,27,.06);
  transition: transform .18s ease, box-shadow .18s ease;
}
.inverpep-topBtn:hover{
  text-decoration:none;
  color: var(--blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow2);
}
.inverpep-topBtn--primary{
  border:0;
  color:#fff;
  background: linear-gradient(90deg, var(--green), var(--blue));
}

/* Botón ayuda flotante (Home/Stats) */
.inverpep-help{
  width:40px;height:40px;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--green), var(--blue));
  color:#fff;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight: 1000;
  box-shadow: var(--shadow2);
  transition: transform .18s ease, box-shadow .18s ease;
}
.inverpep-help:hover{
  color:#fff;
  text-decoration:none;
  transform: translateY(-2px);
  box-shadow: var(--shadowHover);
}

/* ===== Card ===== */
.inverpep-card{
  background: var(--card);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow2);
  border: 1px solid var(--cardBorder);
  position: relative;
  overflow: hidden;
  margin-bottom: 26px;
}
.inverpep-card:before{
  content:"";
  position:absolute;
  left:0; top:0; right:0;
  height: 6px;
  background: linear-gradient(90deg, var(--green), var(--blue));
}
.inverpep-cardTitle{
  margin: 2px 0 14px;
  font-size: 21px;
  font-weight: 1000;
  color: var(--blue);
  display:flex;
  align-items:center;
  gap:10px;
}
.inverpep-ico{
  width:30px;height:30px;border-radius:12px;
  display:inline-flex;align-items:center;justify-content:center;
  color:#fff;font-weight:1000;
  background: linear-gradient(180deg, var(--green), var(--blue));
  box-shadow: 0 10px 18px rgba(12,84,132,.12);
}
.inverpep-text{
  color: var(--text);
  font-size: 15px;
  line-height: 1.75;
  margin: 0 0 12px;
}
.inverpep-muted{ color: var(--muted); }
.inverpep-divider{
  height: 1px;
  background: rgba(12,84,132,.10);
  margin: 14px 0;
}

/* ============================================================
   HELP page
   ============================================================ */
.inverpep-how{
  border-radius: 18px;
  border: 1px solid rgba(48,163,106,.22);
  background: linear-gradient(90deg, rgba(48,163,106,.10), rgba(12,84,132,.08));
  padding: 14px 14px;
  margin-bottom: 14px;
}
.inverpep-steps{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top: 10px;
}
.inverpep-step{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 10px 12px;
  border-radius: 999px;
  background:#fff;
  border: 1px solid rgba(12,84,132,.14);
  box-shadow: 0 10px 18px rgba(2,12,27,.06);
  font-size: 13px;
  color: var(--muted);
}
.inverpep-step b{ color: var(--blue); }
.inverpep-stepDot{
  width:10px;height:10px;border-radius:999px;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(48,163,106,.12);
}

/* Tabs */
.inverpep-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin: 10px 0 16px;
  padding: 0;
  list-style:none;
}
.inverpep-tabs > li{ margin:0; }
.inverpep-tabBtn{
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(12,84,132,.16);
  background:#fff;
  color: var(--blue);
  font-weight: 1000;
  text-decoration:none !important;
  box-shadow: 0 10px 18px rgba(2,12,27,.06);
}
.inverpep-tabs > li.active .inverpep-tabBtn{
  color:#fff;
  border-color: transparent;
  background: linear-gradient(90deg, var(--green), var(--blue));
}

.inverpep-tabPanel{ display:none; }
.inverpep-tabPanel.active{ display:block; }

/* Search row */
.inverpep-searchRow{
  display:flex;
  gap: 12px;
  align-items:center;
  flex-wrap:wrap;
  margin: 10px 0 6px;
}
.inverpep-search{
  flex: 1 1 320px;
  position: relative;
}
.inverpep-search input{
  width:100%;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(12,84,132,.16);
  padding: 0 14px 0 42px;
  outline: none;
  box-shadow: 0 10px 18px rgba(2,12,27,.05);
}
.inverpep-search input:focus{
  border-color: rgba(48,163,106,.45);
  box-shadow: 0 16px 28px rgba(2,12,27,.10);
}
.inverpep-searchIcon{
  position:absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}
.inverpep-hintPill{
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(48,163,106,.22);
  background: rgba(48,163,106,.08);
  color: var(--green);
  font-weight: 1000;
  font-size: 12px;
}

/* Mini buttons */
.inverpep-miniBtns{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 10px;
}
.inverpep-miniBtn{
  border-radius: 999px;
  padding: 9px 12px;
  border: 1px solid rgba(12,84,132,.14);
  background:#fff;
  color: var(--blue);
  font-weight: 1000;
  font-size: 12.5px;
  text-decoration:none;
  box-shadow: 0 10px 18px rgba(2,12,27,.06);
}
.inverpep-miniBtn:hover{ text-decoration:none; color: var(--blue); }
.inverpep-miniBtn--primary{
  color:#fff;
  border:0;
  background: linear-gradient(90deg, var(--green), var(--blue));
}

/* Quick links */
.inverpep-quickLinks{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin: 10px 0 0;
}
.inverpep-quickBtn{
  border-radius: 999px;
  padding: 9px 12px;
  border: 1px solid rgba(12,84,132,.14);
  background:#fff;
  color: var(--blue);
  font-weight: 1000;
  font-size: 12.5px;
  text-decoration:none;
  box-shadow: 0 10px 18px rgba(2,12,27,.06);
}
.inverpep-quickBtn:hover{ text-decoration:none; color: var(--blue); }
.inverpep-quickBtn span{ color: var(--green); }

/* Accordion usando <details> */
.inverpep-accordion{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.help-item{ display:block; }

.inverpep-accItem{
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(12,84,132,.12);
  background: #fff;
  box-shadow: 0 10px 18px rgba(2,12,27,.06);
}

.inverpep-accItem > summary{
  list-style:none;
}
.inverpep-accItem > summary::-webkit-details-marker{
  display:none;
}

.inverpep-accLink{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 14px 16px;
  cursor:pointer;
  user-select:none;
  background: linear-gradient(90deg, rgba(48,163,106,.10), rgba(12,84,132,.08));
}

.inverpep-accLeft{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}

.inverpep-accIcon{
  width:34px;height:34px;
  border-radius: 14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  background: linear-gradient(180deg, var(--green), var(--blue));
  box-shadow: 0 10px 18px rgba(12,84,132,.12);
  flex: 0 0 auto;
}

.inverpep-accTitle{
  margin:0;
  font-weight: 1000;
  color: var(--blue);
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inverpep-accMeta{
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
}

.inverpep-accChevron{
  width:34px;height:34px;
  border-radius: 12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  background: linear-gradient(180deg, var(--blue), var(--green));
  box-shadow: 0 10px 18px rgba(12,84,132,.10);
  flex: 0 0 auto;
  transition: transform .18s ease;
}

.inverpep-accItem[open] .inverpep-accChevron{ transform: rotate(180deg); }

.inverpep-accBody{
  padding: 0 16px 16px;
}
.inverpep-well{
  margin: 12px 0 0;
  border: 0;
  box-shadow: none;
  background: rgba(12,84,132,.03);
  border-radius: 14px;
  padding: 14px;
}

/* Figures */
.inverpep-figure{ margin: 12px 0 8px; }
.inverpep-figureImg{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  border: 1px solid rgba(12,84,132,.12);
  box-shadow: 0 12px 22px rgba(2,12,27,.08);
}

/* Link grid */
.inverpep-linkGrid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  margin-top: 10px;
}
.inverpep-linkCard{
  border-radius: 16px;
  border: 1px solid rgba(12,84,132,.12);
  background:#fff;
  padding: 12px 12px;
  box-shadow: 0 10px 18px rgba(2,12,27,.06);
}
.inverpep-linkTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom: 6px;
}
.inverpep-linkCard h4{
  margin: 0;
  font-size: 14.5px;
  font-weight: 1000;
  color: var(--blue);
}
.inverpep-badge{
  font-weight: 1000;
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 999px;
  color:#fff;
  background: linear-gradient(90deg, var(--green), var(--blue));
  white-space: nowrap;
}
.inverpep-linkCard p{
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.inverpep-linkCard a{
  font-weight: 1000;
  color: var(--green);
  text-decoration:none;
}
.inverpep-linkCard a:hover{
  color: var(--blue);
  text-decoration: underline;
}

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

/* ============================================================
   STATS page
   ============================================================ */
.inverpep-tableWrap{
  margin-top: 12px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(12,84,132,.12);
  box-shadow: 0 10px 18px rgba(2,12,27,.06);
}
.inverpep-table{
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
.inverpep-table thead th{
  background: rgba(48,163,106,.10);
  color: var(--blue);
  font-weight: 1000;
  border-bottom: 1px solid rgba(12,84,132,.12);
}
.inverpep-table th,
.inverpep-table td{
  padding: 12px 12px;
  vertical-align: middle;
  border: 1px solid rgba(12,84,132,.10);
}
.inverpep-rowLabel{
  font-weight: 1000;
  color: var(--blue);
  background: rgba(12,84,132,.03);
  white-space: nowrap;
}

.inverpep-statBox{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 12px;
  margin-top: 6px;
}
.inverpep-statLeft{
  display:flex;
  align-items:baseline;
  gap: 10px;
}
.inverpep-statValue{
  font-size: 56px;
  line-height: 1;
  font-weight: 1000;
  color: var(--blue);
  letter-spacing: -1px;
}
.inverpep-statLabel{
  font-size: 15px;
  font-weight: 1000;
  color: var(--green);
  padding-bottom: 6px;
}
.inverpep-tag{
  padding: 7px 10px;
  border-radius: 999px;
  font-weight: 1000;
  font-size: 11.5px;
  color:#fff;
  background: linear-gradient(90deg, var(--green), var(--blue));
  white-space: nowrap;
}

.inverpep-figcap{
  margin-top: 12px;
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.65;
}
.inverpep-figcap b{ color: var(--blue); }

/* ============================================================
   HOME page
   ============================================================ */
.inverpep-pills{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-top: 10px;
}
.inverpep-pill{
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  background: #fff;
  border: 1px solid rgba(48,163,106,.22);
  color: var(--green);
}

.inverpep-tiles{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
  margin: 14px 0 12px;
}
.inverpep-tile{
  display:block;
  border-radius: 18px;
  padding: 14px 14px;
  color:#0b1f1e;
  text-decoration:none;
  border: 1px solid rgba(12,84,132,.10);
  background: #fff;
  box-shadow: 0 10px 18px rgba(2,12,27,.06);
  transition: transform .18s ease, box-shadow .18s ease;
  position: relative;
  overflow:hidden;
}
.inverpep-tile:before{
  content:"";
  position:absolute;
  left:0; top:0; right:0;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--blue));
  opacity:.95;
}
.inverpep-tile:hover{
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(2,12,27,.12);
  text-decoration:none;
}
.inverpep-tile__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin: 6px 0 8px;
}
.inverpep-tile__title{
  font-weight: 1000;
  font-size: 14px;
  margin:0;
  color: var(--blue);
}
.inverpep-tile__desc{
  margin:0;
  font-size: 12.5px;
  color: var(--muted);
  line-height:1.4;
}
.inverpep-tile__badge{
  font-weight: 1000;
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 999px;
  color:#fff;
  background: linear-gradient(90deg, var(--green), var(--blue));
}

.inverpep-list{
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.inverpep-list li{
  display:flex;
  gap:10px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(12,84,132,.14);
  font-size: 14.5px;
  line-height:1.55;
}
.inverpep-list li:last-child{ border-bottom:0; }

.inverpep-bullet{
  width:10px;height:10px;border-radius:999px;margin-top:7px;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(48,163,106,.10);
  flex: 0 0 auto;
}

.inverpep-actions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.inverpep-btn{
  background: linear-gradient(90deg, var(--green), var(--blue));
  color:#fff;
  text-decoration:none;
  border:0;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 1000;
  display:inline-flex;
  align-items:center;
  gap: 10px;
  box-shadow: 0 12px 22px rgba(12,84,132,.14);
  transition: transform .18s ease, box-shadow .18s ease;
}
.inverpep-btn:hover{
  color:#fff;
  text-decoration:none;
  transform: translateY(-2px);
  box-shadow: var(--shadowHover);
}
.inverpep-btn--ghost{
  background: #fff;
  color: var(--blue);
  border: 2px solid rgba(12,84,132,.22);
  box-shadow: none;
}
.inverpep-btn--ghost:hover{
  background: rgba(12,84,132,.04);
  color: var(--blue);
}

.inverpep-meta{
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 8px;
}

.inverpep-miniRow{
  display:flex;
  justify-content:space-between;
  gap:12px;
  font-size: 13px;
  color: var(--muted);
}
.inverpep-miniRow strong{ color: var(--text); }

.inverpep-citation{
  margin: 0;
  color: var(--text);
  line-height: 1.7;
  font-size: 14.5px;
}

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