/* =========================
   publicaciones.css
   ========================= */

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root{
  --blue: #2B5E8F;
  --text: #4D4C4C;
  --bg: #F5FAFF;
}

/* =========================
   HERO
   ========================= */
.pubp-hero{
  width: 100%;
  height: 268px;
  position: relative;
  overflow: hidden;
  margin-top: 47px;
}

.pubp-hero__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95);
}

.pubp-hero__title{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;

  font-family: "Cardo", serif;
  font-weight: 700;
  font-size: 64px;
  color: #ffffff;

  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}

/* =========================
   CONTENEDOR
   ========================= */
.pubp-main{
  width: 100%;
}

.pubp-container{
  width: 1150px;
  margin: 0 auto;
}

/* =========================
   Título (SIN bg)
   ========================= */
.pubp-h2{
  margin-top: 108px;
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-size: 48px;
  color: var(--blue);
  line-height: 1.2;
}

/* =========================
   BLOQUE TEXTOS con bg
   ========================= */
.pubp-body{
  margin-top: 161px;
  background: var(--bg);
  padding-top: 0;
  padding-bottom: 0;
}

/* lead */
.pubp-lead{
  padding-top: 0;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 32px;
  color: var(--text);
  text-align: justify;
  line-height: 1.35;
}

/* Imagen secundaria */
.pubp-img2{
  display: block;
  width: 100%;
  height: 491px;
  object-fit: cover;
  margin-top: 94px;
}

/* Texto cuerpo */
.pubp-text{
  margin-top: 109px;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 30px;
  color: var(--text);
  line-height: 1.55;
}

.pubp-text + .pubp-text{
  margin-top: 28px;
}

/* =========================
   AUTOR
   ========================= */
.pubp-author{
  margin-top: 162px;
  padding-bottom: 40px;
}

.pubp-author__inner{
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.pubp-author__name{
  display: block;
  width: 100%;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.15;
  color: #4D4C4C;
}

.pubp-author__role{
  display: block;
  width: 100%;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-style: italic;
  font-size: 20px;
  line-height: 1.15;
  color: #7A7A7A;
}

.pubp-author__org{
  display: block;
  width: 100%;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-style: italic;
  font-size: 20px;
  line-height: 1.15;
  color: #7A7A7A;
}

/* =========================
   MOBILE (<=700px)
   Container max 700 + tamaños móviles
   ========================= */
@media (max-width: 700px){

  .pubp-hero{
    margin-top: 0;
    height: 220px;
  }

  .pubp-hero__title{
    font-size: 36px;
    padding: 0 16px;
    text-align: center;
  }

  .pubp-container{
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 16px;
  }

  .pubp-h2{
    margin-top: 28px;
    font-size: 28px;
    line-height: 1.2;
  }

  .pubp-body{
    margin-top: 22px;
    padding: 20px 0;
  }

  .pubp-lead{
    font-size: 16px;
    line-height: 1.6;
    text-align: left;
  }

  .pubp-img2{
    height: 240px;
    margin-top: 16px;
  }

  .pubp-text{
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.7;
  }

  .pubp-author{
    margin-top: 28px;
    padding-bottom: 30px;
  }

  .pubp-author__inner{
    gap: 1px;
  }

  .pubp-author__name{
    font-size: 18px;
    line-height: 1.15;
  }

  .pubp-author__role,
  .pubp-author__org{
    font-size: 16px;
    line-height: 1.15;
  }
}