/* ===============================
   NAV activo
================================= */
.header-nav .plataforma a{
  text-decoration: underline;
  color: var(--fid-primary);
  font-weight: bold;
}

/* ===============================
   HERO PLATAFORMA
================================= */
.hero-plataforma{
  background-image: url('../img_new/fondo_banner_plataforma.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  width: 100%;

  /* ✅ no fijar altura rígida: el contenido manda */
  height: auto;
  min-height: 50vh;
  padding: 48px 0;
}

.hero-content-plataforma{
  width: 100%;
  height: auto;
  display: flex;
  gap: 28px;
  align-items: center;
}

.hero-text{
  width: auto;
  max-width: 720px;
  color: #fff;
  margin-left: 5vw;
}

.hero-text h2{
  margin: 0 0 14px 0;
}

.hero-text span{
  display: block;
  line-height: 1.55;
  opacity: .95;
}

.hero-img{
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img img{
  width: min(520px, 40vw);
  height: auto;
  display: block;
}

.modulos-cta{
  margin-top: 8vh !important;
  margin-bottom: 8vh !important;
}

@media (max-width: 991.98px){
  .hero-content-plataforma{
    flex-direction: column;
    text-align: center;
    padding-left: 5vw;
    padding-right: 5vw;
  }

  .hero-text{
    margin-left: 0;
    max-width: 820px;
  }

  .hero-img img{
    width: min(520px, 90vw);
  }
}

/* ===============================
   SECCIONES BASE
================================= */
.plataforma-section{
  margin-top: 5vh;
  margin-bottom: 5vh;
  margin-left: 5vw;
  margin-right: 5vw;

  display: flex;
  align-items: center;
  gap: 48px;
}

.right-safe{
  margin-left: 5vw !important;
  margin-right: 0 !important;
}

/* Columna imagen / texto */
.section-img{
  flex: 0 0 45%;
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.section-right{
  flex: 0 0 55%;
  min-width: 0;
}

.section-content{
  width: 100%;
  min-width: 0;
}

/* Mobile/tablet: apilar */
@media (max-width: 991.98px){
  .plataforma-section{
    flex-direction: column;
    gap: 22px;
    margin-left: 5vw;
    margin-right: 5vw;
  }

  .right-safe{
    margin-left: 5vw !important;
    margin-right: 5vw !important;
  }

  .section-img,
  .section-right{
    flex: 0 0 auto;
    justify-content: center;
    width: 100%;
  }
  .section-content h3{
    text-align: center;
  }
}

/* ===============================
   BOTONES PILL
================================= */
.btn-plataforma-pill{
  align-self: center;
  border: 0;
  padding: 16px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  background: #EAF2FF;
  color: #2F6FDD;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.btn-plataforma-pill:hover{
  transform: translateY(-1px);
  box-shadow:
    0 2px 12px rgba(17, 24, 39, .10),
    inset 0 1px 0 rgba(255,255,255,.85);
  filter: saturate(1.05);
}

.btn-plataforma-pill:active{
  transform: translateY(0px);
  box-shadow:
    0 8px 14px rgba(17, 24, 39, .08),
    inset 0 2px 6px rgba(17,24,39,.06);
}

.btn-fidelitas-pill{
  align-self: center;
  border: 0;
  padding: 16px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  background: var(--fid-primary);
  color: #fff;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  text-decoration: none;
}

.btn-fidelitas-pill:hover{
  background-color: rgba(95, 138, 180, 0.2);
  color: var(--fid-primary);
  font-weight: bold;
  box-shadow: 0px 0px 8px var(--neutral-200) inset;
}

/* ===============================
   BENEFICIOS (3 cards)
================================= */
.beneficios-row{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  margin: 38px 5vw;
}

.beneficio-card{
  background:#fff;
  border: 3px solid #CFE0F6;
  border-radius: 18px;
  padding: 26px 26px 22px;
  text-align: center;
  box-shadow: 0 10px 26px rgba(17,24,39,.06);
}

.beneficio-icon{
  border-radius: 999px;
  display: grid;
  place-items: center;
}

.beneficio-icon img{
  width: 65px;
  height: 65px;
  object-fit: contain;
  display: block;
}

.beneficio-title{
  margin-top: 10px;
  margin-bottom: 8px;
  font-weight: 800;
  font-size: 16px;
  color: var(--fid-primary);
}

.beneficio-text{
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--fid-primary);
  margin-inline: auto;
}

@media (max-width: 991.98px){
  .beneficios-row{ grid-template-columns: 1fr; }
  .beneficio-card{ padding: 34px 22px 22px; }
}

/* ===============================
   GIF + ACCORDION (visualizar)
================================= */
.plataforma-section.plataforma-gif-acc{
  display: flex;
  flex-direction: column;    /* título arriba + body abajo */
  align-items: stretch;
  gap: 22px;
}

/* Título */
.mid-title{
  line-height: 1.2;
  color: var(--fid-primary);
}

/* Body: desktop 2 columnas, mobile 1 */
.plataforma-section.plataforma-gif-acc .plataforma-body{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.plataforma-section.plataforma-gif-acc .section-gif,
.plataforma-section.plataforma-gif-acc .section-content-gif{
  min-width: 0;
  width: 100%;
}

@media (max-width: 1199.98px){
  /* ✅ apilar antes (como en proveedores) */
  .plataforma-section.plataforma-gif-acc .plataforma-body{
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

/* Accordion: estilo cards */
.acc-fid{
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.acc-fid .accordion-item{
  border: 1px solid #E6EEF9;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  margin: 0;
}

.acc-fid .accordion-button{
  border: 0;
  box-shadow: none !important;
  border-radius: 12px;
  white-space: normal;
}

.acc-fid .accordion-button:not(.collapsed){
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.acc-fid .accordion-body{
  border-top: 1px solid #E6EEF9;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ===============================
   SCORING (sección gradiente)
================================= */
.plataforma-scoring{
  padding-bottom: 0 !important;
}

.plataforma-scoring .scoring-wrap{
  margin-left: 0;
  margin-right: 0;
}

.gradiante-fid{
  background: linear-gradient(90deg,
    rgba(234,242,255,.10) 50%,
    rgba(234,242,255,.10) 20%,
    var(--fid-100) 70%,
    var(--fid-100) 100%
  );
}

.scoring-visual{
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.scoring-nube{
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: -28px;
}

.scoring-text{
  margin-bottom: 0;
  height: 100%;
  padding: 2vw 5vw 0vw 0vw;
}

.scoring-band{
  background: var(--fid-100);
  padding: 40px 5vw;
  margin-top: 0 !important;
  position: relative;
  z-index: 1;
}

.scoring-band__inner{
  color: var(--fid-primary);
  font-weight: 800;
  text-align: center;
  line-height: 1.35;
}

@media (max-width: 991.98px){
  .scoring-visual{ margin-left: 5vw; margin-right: 5vw; }
  .scoring-text{ padding-left: 5vw; padding-right: 5vw; }
}

/* ===============================
   ANCHOR
================================= */
#legajos{
  scroll-margin-top: 30vh;
}


.img-bancos{
  max-width: 730px;
}

@media (max-width: 767.98px){
  .img-bancos{
    max-width: 90vw;
  }
}