/* Fondo fijo global (mapa + gradiente) */
.tm-about__fixedBg {
  position: fixed;
  inset: 0;
  z-index: 0;
  /* NO negativo */
  pointer-events: none;

  /* gradiente base */
  background: linear-gradient(180deg,
      #FFFFFF 0%,
      #FFF5F3 2%,
      #FFC3BB 14%,
      #FF9889 25%,
      #FF735F 37%,
      #FF553C 49%,
      #FF3E22 61%,
      #FF2E0F 74%,
      #FF2403 86%,
      #FF2100 100%);
}

/* mapa arriba del gradiente (con opacidad controlable) */
.tm-about__fixedBg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--tm-map);
  background-repeat: no-repeat;
  background-position: center top;
  background-size: min(1500px, 100vw);
  filter: saturate(1.1) contrast(1.05);
}

/* el contenido siempre por arriba del fondo fijo */
.tm-about,
.tm-about__bg,
.tm-about__paper {
  position: relative;
  z-index: 1;
  background: transparent;
}

/* NO recortes */
.tm-about__bg {
  min-height: 100vh;
  overflow: visible;
  /* importante */
}

/* importante: NO uses el mapa en la intro (evita duplicación) */
.tm-about__intro::before {
  content: none !important;
}



/* bloque texto */
:root {
  --tm-red: #FF2100;
}

/* bloque intro */
.tm-aboutIntro {
  max-width: 980px;
  margin: 0 auto;
  padding: 34px 48px 28px;
}

.tm-about__intro {
  padding: 8% 0 10%;
}


/* Título grande + destacado rojo */
.tm-aboutIntro__h1 {
  margin: 0 0 1rem;
  line-height: 1;
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.tm-aboutIntro__h1--destacado {
  margin-bottom: 3.5rem;
}

.tm-aboutIntro__title {
  font-family: "SerialB";
  letter-spacing: .5px;
  text-transform: uppercase;
  font-size: clamp(44px, 6.2vw, 60px);
  color: #000;
}

.tm-aboutIntro__highlight {
  font-family: 'synt';
  font-style: italic;
  font-weight: 500;
  color: var(--tm-red);
  font-size: clamp(40px, 5.6vw, 64px);
  letter-spacing: 0;
  transform: translateY(38px) translateX(-55px);
  /* lo baja para que quede “pegado” como el mock */
}

.tm-aboutIntro__highlight--solo {
  transform: none;
}

/* Texto */
.tm-aboutIntro__content {
  padding-left: 3rem;
  padding-right: 2rem;
}

.tm-aboutIntro__content p {
  margin: 0 0 12px;
  font-family: "MD-IO";
  font-size: 14px;
  line-height: 1.75;
  color: #111;
}

.tm-aboutIntro__content strong {
  font-weight: 800;
}

/* Mobile */
@media (max-width: 680px) {
  .tm-aboutIntro {
    padding: 15px 18px 15px;
  }

  .tm-aboutIntro__content {
    max-width: 100%;
  }
}



/* =========================
   HORIZONTE: CONTENIDO LIBRE
   ========================= */

.tm-contentLibre {
  width: min(880px, calc(100% - 120px));
  margin: 0 auto;
  padding: 24px 0 6px;
  color: #111;
}

/* H2 (Revista digital / Travesías Terremoto) */
.tm-contentLibre h2 {
  margin: 34px 0 10px;
  font-family: 'synt';
  font-size: clamp(34px, 5.4vw, 74px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: #ff2100;
  font-weight: 100;
  /* rojo del diseño */
}

.tm-contentLibre h2:first-of-type {
  margin-top: 0;
}

/* H3 (Archivo..., Editorial...) */
.tm-contentLibre h3 {
  margin: 12px 0 10px;
  font-family: 'synt';
  font-weight: 100;
  font-size: 30px;
  line-height: 1.1;
  color: #111;
}

/* H4 (ARTÍCULOS, OPINIÓN, etc.) */
.tm-contentLibre h4 {
  margin: 0;
  font-family: "MD-IO";
  font-size: 14px !important;
  line-height: 1.75;
  color: #111;
  padding-left: 3rem;
  padding-right: 2rem;
  font-weight: 100;
}

/* Párrafos (cuerpo) */
.tm-contentLibre p {
  margin: 0 0 26px;
  font-family: "MD-IO";
  font-size: 14px;
  line-height: 1.75;
  color: #111;
  padding-left: 3rem;
  padding-right: 2rem;
}

/* Para que el “aire” entre secciones se parezca al mock */
.tm-contentLibre h3+p {
  margin-top: 0;
}

.tm-contentLibre h4+p {
  margin-top: 0;
}

.tm-contentLibre p+h3 {
  margin-top: 16px;
}

.tm-contentLibre p+h2 {
  margin-top: 44px;
}

/* Strong/B */
.tm-contentLibre strong,
.tm-contentLibre b {
  font-weight: 900;
}

/* Si te quedaron <p>&nbsp;</p> del editor, que no exploten el layout */
.tm-contentLibre p:has(> br) {
  margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 900px) {
  .tm-contentLibre {
    width: min(880px, calc(100% - 44px));
  }

  .tm-contentLibre p {
    max-width: 100%;
  }
}



/* =========================
   HORIZONTE: EQUIPO
   ========================= */

.tm-equipo {
  width: min(1080px, calc(100% - 80px));
  margin: 60px auto 100px;
}

.tm-equipo__title {
  margin: 0 0 30px;
  text-align: center;
  font-family: "SerialB";
  font-weight: 900;
  font-size: clamp(44px, 6vw, 60px);
  letter-spacing: .02em;
  color: #ff2100;
}

/* 5 columnas como la referencia */
.tm-equipo__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  align-items: start;
}

/* bloque meta arriba + foto abajo */
.tm-equipo__meta {
  margin-bottom: 1rem;
  font-family: "SerialB";
  font-size: 14px;
  line-height: 1.05;
  color: #111;
}

.tm-equipo__name {
  margin-bottom: 2px;
}

.tm-equipo__puesto {
  margin-bottom: 2px;
}

.tm-equipo__correo a {
  font-family: "SerialB";
  color: #111;
  text-decoration: none;
}

.tm-equipo__correo a:hover {
  text-decoration: underline;
}

/* “marco” gris + foto */
.tm-equipo__photo {
  background: #e9e9e9;
  width: 100%;
  aspect-ratio: 4 / 5;
  /* parecido al corte de la captura */
  overflow: hidden;
}

.tm-equipo__photo img {
  width: 205px;
  height: 260px;

  object-fit: cover;
  display: block;
}

/* placeholder si no hay imagen */
.tm-equipo__placeholder {
  width: 100%;
  height: 100%;
  background: #e9e9e9;
}

/* responsive */
@media (max-width: 1100px) {
  .tm-equipo__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 680px) {
  .tm-equipo {
    width: calc(100% - 28px);
  }

  .tm-equipo__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


@media (max-width: 800px) {
  .tm-about__intro {
    padding: 80px 0 4%;
  }

  .tm-aboutIntro__title {
    font-size: 30px;
  }

  .tm-aboutIntro__highlight {
    font-size: 22px;
    transform: none;
    color: black;
  }

  .tm-aboutIntro__h1 {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 0;
  }

  .tm-aboutIntro__h1--destacado {
    margin-bottom: 1rem;
  }

  .tm-aboutIntro__content {
    padding-left: 1.5rem;
    padding-right: 1rem;
  }

  .tm-contentLibre h2 {
    font-size: 30px;
    font-family: "SerialB";
    color: black;
  }

  .tm-contentLibre h3 {
    font-size: 18px;
    color: black;
    font-family: "SerialB";
  }

  .tm-contentLibre p {
    padding-left: 1.5rem;
    padding-right: 1rem;
    margin-bottom: 0;
  }

  .tm-equipo__title {
    line-height: normal;
    color: black;
    font-family: serialb;
    text-transform: none;
    font-size: 28px;
  }

  .tm-equipo__grid {
    display: flex;
    flex-direction: column;
  }

  .tm-equipo__card {
    display: flex;
    flex-direction: row-reverse;
    gap: 22px;
  }

  .tm-equipo__photo {
    background-color: transparent;
            aspect-ratio: unset;
        width: unset;
  }

  .tm-equipo__photo img {
    width: 150px;
    height: 200px;
  }

  .tm-equipo__puesto {
    font-family: 'md-io';
    margin: 8px 0 4px;
  }

  .tm-equipo__correo a{
    font-family: 'md-io';
    text-decoration: underline;
    font-weight: 100;
  }
  
  .tm-equipo__meta  {
    margin-top: 10px;
  }
}