/* ════════════════════════════════════════════════════
   PA NEW BLOCKS — Bloques 2-5 + placeholder
   Dark theme · Manrope · Creditpro
   ════════════════════════════════════════════════════ */

/* ── Shared container ──────────────────────────────── */
.pab2-inner, .pab4-inner, .pab5-inner, .pab6-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px;
  box-sizing: border-box;
}

/* ══════════════════════════════════════════════════
   BLOQUE 2 — BENEFICIOS
══════════════════════════════════════════════════ */
.pab2 {
  background: var(--pa-navy, #060C18);
  padding: clamp(72px, 9vw, 108px) 0;
}

.pab2-header {
  text-align: center;
  margin-bottom: 56px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.pab2-title {
  margin: 0 0 16px;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pab2-plain {
  font-size: 56px;
  font-weight: 800;
  color: #ffffff;
  display: block;
}

.pab2-grad {
  font-size: 56px;
  font-weight: 800;
  display: block;
  background: linear-gradient(135deg, #ffffff 0%, #2563EB 50%, #38BDF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-bottom: 4px; /* prevent clip on descenders */
}

.pab2-sub {
  font-size: 18px;
  color: #94A3B8;
  margin: 0;
  font-weight: 400;
  line-height: 1.6;
}

/* Dramatic spring animations for new sections (Flecto-style) */
.pab2 [data-rv],
.pab4 [data-rv] {
  transform: translateY(60px) scale(0.98) !important;
}
.pab2 [data-rv].pa-in,
.pab4 [data-rv].pa-in {
  opacity: 1 !important;
  transform: none !important;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.8s ease !important;
}

.pab2-accent-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #2563EB, #38BDF8);
  border-radius: 2px;
  margin: 0 auto 24px;
}

/* ── Manifesto list ──────────────────────────────── */
.pab2-manifest {
  display: flex;
  flex-direction: column;
}

.pab2-row {
  display: grid;
  grid-template-columns: 48px 1fr 1fr;
  align-items: center;
  gap: 0 48px;
  padding: 36px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  cursor: default;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity  0.6s cubic-bezier(0.16, 1, 0.3, 1) var(--stagger, 0ms),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) var(--stagger, 0ms);
}

.pab2-row:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.pab2-row--vis {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .pab2-row { opacity: 1 !important; transform: none !important; }
}

.pab2-row-num {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.25);
  line-height: 1;
  align-self: flex-start;
  padding-top: 5px;
  font-variant-numeric: tabular-nums;
}

.pab2-row-title {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  line-height: 1.25;
  transition: color 0.2s ease;
}

.pab2-row:hover .pab2-row-title {
  color: var(--pa-sky, #50C8FF);
}

.pab2-row-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
  line-height: 1.65;
  max-width: 420px;
}

/* ══════════════════════════════════════════════════
   BLOQUE 3 — MÉTRICAS NUEVAS
══════════════════════════════════════════════════ */
.pab3 {
  background: var(--pa-navy, #060C18);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 80px 0;
}

.pab3-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
}

.pab3-col {
  text-align: center;
  padding: 0 24px;
}

.pab3-sep {
  width: 1px;
  height: 60px;
  background: rgba(255, 255, 255, 0.08);
  align-self: center;
}

.pab3-num {
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 700;
  background: linear-gradient(135deg, #EAF7FF 0%, #8EDCFF 28%, #36C7FF 55%, #2F7BFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.pab3-count {
  font-variant-numeric: tabular-nums;
}

.pab3-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748B;
  margin-top: 10px;
  font-weight: 500;
}

/* ══════════════════════════════════════════════════
   BLOQUE 4 — INSTITUCIONES BENTO
══════════════════════════════════════════════════ */
.pab4 {
  background: var(--pa-navy, #060C18);
  padding: clamp(64px, 8vw, 100px) 0;
}
.pab4-bento {
  display: grid;
  grid-template-columns: 5fr 3.5fr 3.5fr;
  grid-template-areas:
    "main photo photo"
    "seg  doc   hist"
    "legal legal badge";
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px;
  box-sizing: border-box;
}
.pabi-card {
  border-radius: 24px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 24px rgba(0,0,0,0.22);
  transition: transform 0.32s cubic-bezier(.16,1,.3,1), box-shadow 0.32s ease;
  opacity: 0;
  transform: translateY(28px) scale(0.98);
}
.pabi-card.is-in { opacity: 1; transform: none; }
.pabi-card:hover { transform: translateY(-2px); box-shadow: 0 10px 44px rgba(0,0,0,0.34); }
.pabi-main  { grid-area: main;  background: linear-gradient(145deg,#071E3D 0%,#061430 100%); border: 1px solid rgba(49,183,255,0.12); }
.pabi-photo { grid-area: photo; border-radius: 24px; overflow: hidden; padding: 0; min-height: 320px; }
.pabi-seg   { grid-area: seg;   background: linear-gradient(135deg,#1466C8 0%,#31B7FF 100%); border: 1px solid rgba(255,255,255,0.14); }
.pabi-doc   { grid-area: doc;   background: #F4F8FF; border: 1px solid rgba(8,33,74,0.10); }
.pabi-hist  { grid-area: hist;  background: linear-gradient(145deg,#256DFF 0%,#1a50d0 100%); border: 1px solid rgba(255,255,255,0.14); }
.pabi-legal { grid-area: legal; background: #FFF2D8; border: 1px solid rgba(180,140,60,0.14); }
.pabi-badge { grid-area: badge; background: linear-gradient(145deg,#07162F 0%,#051227 100%); border: 1px solid rgba(49,183,255,0.18); display:flex; align-items:center; justify-content:center; flex-direction:column; gap:10px; min-height:160px; }

/* Main card */
.pabi-label {
  font-size: 9px; font-weight: 800; letter-spacing: 0.20em; text-transform: uppercase;
  color: #31B7FF; margin-bottom: 14px; display:flex; align-items:center; gap:8px;
}
.pabi-label::before { content:''; width:16px; height:1px; background:#31B7FF; display:inline-block; flex-shrink:0; }
.pabi-title { font-size: clamp(17px,2vw,24px); font-weight:700; color:#fff; line-height:1.22; letter-spacing:-0.02em; margin:0 0 12px; }
.pabi-body  { font-size:13px; line-height:1.70; color:rgba(255,255,255,0.62); margin:0 0 22px; text-wrap:pretty; }
.pabi-btn {
  display:inline-flex; align-items:center; gap:8px;
  background:#31B7FF; color:#061A35; font-family:var(--font);
  font-size:13px; font-weight:700; padding:11px 22px; border-radius:100px;
  border:none; cursor:pointer; transition:opacity .2s, transform .15s;
}
.pabi-btn:hover { opacity:.88; transform:translateY(-1px); }
.pabi-deco-dots { position:absolute; top:0; right:0; width:120px; height:120px; opacity:.07; pointer-events:none; }

/* Photo card */
.pabi-photo-img { width:100%; height:100%; min-height:320px; object-fit:cover; object-position:center 20%; display:block; }
.pabi-photo-overlay {
  position:absolute; inset:0;
  background:linear-gradient(160deg,rgba(6,12,24,.46) 0%,rgba(6,12,24,.10) 55%,rgba(6,12,24,.50) 100%);
  pointer-events:none;
}
.pabi-photo-chips { position:absolute; bottom:16px; left:16px; display:flex; gap:7px; flex-wrap:wrap; }
.pabi-chip { background:rgba(255,255,255,0.90); color:#08214A; font-size:10px; font-weight:700; letter-spacing:.05em; padding:5px 12px; border-radius:100px; backdrop-filter:blur(8px); }
.pabi-chip.cyan { background:rgba(49,183,255,0.88); color:#fff; }

/* Small cards shared */
.pabi-card-icon { margin-bottom:12px; }
.pabi-card-title { font-size:14px; font-weight:700; line-height:1.25; margin:0 0 7px; }
.pabi-card-desc  { font-size:12px; line-height:1.62; margin:0; }
.pabi-seg  .pabi-card-title { color:#fff; }
.pabi-seg  .pabi-card-desc  { color:rgba(255,255,255,0.72); }
.pabi-doc  .pabi-card-title { color:#08214A; }
.pabi-doc  .pabi-card-desc  { color:rgba(8,33,74,0.62); }
.pabi-hist .pabi-card-title { color:#fff; }
.pabi-hist .pabi-card-desc  { color:rgba(255,255,255,0.70); }
.pabi-legal .pabi-card-title { color:#08214A; font-size:16px; }
.pabi-legal .pabi-card-desc  { color:rgba(8,33,74,0.65); max-width:52ch; }
.pabi-legal-inner { display:flex; align-items:center; gap:28px; }

/* Badge card */
.pabi-badge-dot {
  width:8px; height:8px; border-radius:50%; background:#31B7FF;
  box-shadow:0 0 10px rgba(49,183,255,.8);
  animation:pabi-pulse 2.4s ease-in-out infinite;
}
@keyframes pabi-pulse {
  0%,100% { box-shadow:0 0 8px rgba(49,183,255,.8); }
  50%      { box-shadow:0 0 18px rgba(49,183,255,1); }
}
.pabi-badge-label { font-size:13px; font-weight:700; color:rgba(255,255,255,.88); text-align:center; letter-spacing:-.01em; }
.pabi-badge-sub   { font-size:10px; color:rgba(255,255,255,.40); text-align:center; letter-spacing:.06em; text-transform:uppercase; }

/* Responsive */
@media (max-width:960px) {
  .pab4-bento {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "main main" "photo photo" "seg doc" "hist legal" "badge badge";
  }
  .pabi-legal-inner { flex-direction:column; align-items:flex-start; gap:14px; }
}
@media (max-width:600px) {
  .pab4-bento {
    grid-template-columns: 1fr;
    grid-template-areas: "main" "photo" "seg" "doc" "hist" "legal" "badge";
    padding: 0 20px;
  }
  .pabi-photo { min-height:240px; }
}

/* ── Human transition — IMAGEN 1 (después del hero) ── */
.pa-human-transition {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #060C18;
  line-height: 0;
}
.pa-human-img {
  width: 100%;
  height: clamp(420px, 40vw, 580px);
  object-fit: cover;
  object-position: center center;
  display: block;
}
.pa-human-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 12, 24, 1)   0%,
    rgba(6, 12, 24, 0.20) 30%,
    rgba(6, 12, 24, 0.08) 55%,
    rgba(6, 12, 24, 1)   100%
  );
  pointer-events: none;
}
@media (max-width: 720px) {
  .pa-human-img { height: 320px; }
}

/* ── Merged dealer photo + stats overlay ── */
.proximo-aliado-visual {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
.proximo-aliado-visual > img {
  width: 100%;
  height: clamp(580px, 52vw, 720px);
  object-fit: cover;
  object-position: center center;
  display: block;
}
.proximo-aliado-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(3, 14, 40, 0.84) 0%,
    rgba(3, 14, 40, 0.44) 42%,
    rgba(3, 14, 40, 0.18) 100%
  );
  pointer-events: none;
}
.proximo-aliado-stats {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 2;
  line-height: 1.4;
}
.proximo-aliado-stats .pab3-inner {
  padding-top: 52px;
  padding-bottom: 0;
}
@media (max-width: 720px) {
  .proximo-aliado-visual > img { height: 520px; object-position: center top; }
  .proximo-aliado-stats .pab3-inner { padding-top: 32px; }
}

/* ── old dealer classes kept for badge ── */
.pa-dealer-wrap { display: none; } /* hidden — replaced by .proximo-aliado-visual */

.pa-dealer-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,18,42,0.75) 0%, transparent 55%);
  pointer-events: none;
}

.pa-dealer-badge {
  position: absolute;
  bottom: 32px;
  left: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 100px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  white-space: nowrap;
}

.pa-dealer-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pa-sky, #50C8FF);
  flex-shrink: 0;
  display: inline-block;
}

.pab4-img-wrap:hover .pab4-inst-img {
  transform: scale(1.015);
}

.pab4-inst-overlay {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0);
  transition: background 0.25s ease;
  pointer-events: none;
}

.pab4-img-wrap:hover .pab4-inst-overlay {
  background: rgba(255, 255, 255, 0.05);
}

/* ══════════════════════════════════════════════════
   BLOQUE 5 — PLUS TECNOLÓGICO
══════════════════════════════════════════════════ */
.pab5 {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.pab5.pab5-vis {
  opacity: 1;
}

.pab5-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 760px;
  padding: 24px 40px;
}

.pab5-text {
  font-size: 15px;
  color: #64748B;
  margin: 0;
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════
   BLOQUE 6 — PLACEHOLDER FOTO
══════════════════════════════════════════════════ */
.pab6-wrap {
  background: var(--pa-navy, #060C18);
  padding: 0 40px 0;
  box-sizing: border-box;
}

.pab6-block {
  max-width: 1180px;
  margin: 0 auto;
}

.pab6-hero {
  position: relative;
  margin: 0;
  height: 480px;
  border-radius: 16px;
  overflow: hidden;
}

.pab6-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

.pab6-hero-overlay {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(
    to top,
    rgba(15, 30, 58, 0.72) 0%,
    rgba(15, 30, 58, 0.0) 40%
  );
  pointer-events: none;
}

/* ── Form section: add top padding ─────────────── */
.pa-form-section {
  padding-top: 120px !important;
}

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 960px) {
  /* pab2-manifest responsive handled below */
  .pab2-plain,
  .pab2-grad { font-size: 44px; }
  .pab4-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .pab4-title { font-size: 34px; }
  .pab3-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px 0;
  }
  .pab3-sep { display: none; }
  .pab3-col { padding: 16px; border: 0; }
  .pab4-img-ph { height: 260px; }
}

@media (max-width: 640px) {
  .pab2-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 28px 0;
  }
  .pab2-row-num { align-self: auto; padding-top: 0; }
  .pab2-row-desc { max-width: 100%; }
  .pab2-plain, .pab2-grad { font-size: 34px; }
  .pab4-title { font-size: 28px; }
  .pab3-inner { grid-template-columns: 1fr; }
  .pab2-inner, .pab4-inner, .pab5-inner, .pab6-wrap {
    padding: 0 20px;
  }
  .pab3-inner { padding: 0 20px; }
  .pab2 { padding: 60px 0; }
  .pab3 { padding: 60px 0; }
  .pab4 { padding: 60px 0; }
  /* Dealer photo mobile */
  .pa-dealer-frame { height: 260px; }
  .pa-dealer-inner { padding: 0; }
  .pa-dealer-badge { bottom: 20px; left: 20px; font-size: 12px; }
  /* Institución image mobile */
  .pab4-img-ph { height: 260px; }
}
