.fm-aboutpage{
  padding: 56px 0 24px;
}

.fm-aboutpage__head{
  margin-bottom: 18px;
}

.fm-aboutpage__title{
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
}

.fm-aboutpage__body{
  max-width: 960px;
}

/* Tipografía legible para textos largos */
.fm-aboutpage .rte-content p{
  line-height: 1.7;
  margin: 0 0 14px;
}

/* Títulos dentro del contenido */
.fm-aboutpage .rte-content h2{
  margin: 30px 0 12px;
  font-weight: 800;
}

.fm-aboutpage .rte-content h3{
  margin: 22px 0 10px;
  font-weight: 800;
}

/* =========================
   TEAM GRID (container-friendly)
========================= */

.fm-team{
  display: grid;
  gap: 28px;
  margin-top: 32px;

  /* Usa todo el ancho del container global (1320) */
  width: 100%;
}

/* Base: cards fluidas, sin romper responsive */
.fm-team__card{
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,.06);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
}

.fm-team__card:hover{
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,.10);
}

.fm-team__photo{
  height: 240px;
  overflow: hidden;
  background: #f3f4f6;
}

.fm-team__photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fm-team__info{
  padding: 20px 18px;
  text-align: center;
}

.fm-team__info h4{
  margin: 0 0 8px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: .4px;
}

.fm-team__info p{
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #6b7280;
}

/* =========================
   Responsive grid logic
   - mobile: 1
   - tablet: 2
   - desktop: 3
   - wide desktop: 4 (si entra)
========================= */

/* Mobile first */
.fm-team{ grid-template-columns: 1fr; }

@media (min-width: 576px){
  .fm-team{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 992px){
  .fm-team{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Wide desktop: 4 en una fila */
@media (min-width: 1320px){
  .fm-team{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}