/* =========================================================
   SALA DE PRENSA - BIBLIOTECA VASCONCELOS
   Estilo editorial / institucional
   ========================================================= */

:root {
  --bv-vino: #6f1738;
  --bv-vino-oscuro: #4b0f27;
  --bv-negro: #242424;
  --bv-gris: #666666;
  --bv-gris-claro: #eeeeeb;
  --bv-fondo: #f7f7f4;
  --bv-blanco: #ffffff;
  --bv-linea: #d8d8d3;
}


/* =========================================================
   INTRO
   ========================================================= */

.prensa-intro {
  max-width: 760px;
  margin: 5px 0 45px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--bv-gris);
}


/* =========================================================
   GRID DE COMUNICADOS
   ========================================================= */

.prensa-grid {
  display: flex;
  flex-wrap: wrap;
  margin-left: -18px;
  margin-right: -18px;
}

.prensa-col {
  width: 50%;
  padding: 0 18px;
  margin-bottom: 58px;
  box-sizing: border-box;
}


/* =========================================================
   TARJETA
   ========================================================= */

.prensa-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: transparent;
}


/* Imagen */

.prensa-card-img-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  background: #ddd;
  aspect-ratio: 16 / 10;
}

.prensa-card-img-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--bv-vino);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}

.prensa-card-img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}

.prensa-card-img-wrap:hover .prensa-card-img {
  transform: scale(1.025);
}

.prensa-card-img-wrap:hover::after {
  transform: scaleX(1);
}


/* Fecha */

.prensa-fecha {
  margin-top: 23px;
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: .04em;
  font-weight: 600;
  color: var(--bv-gris);
}


/* Etiqueta */

.prensa-etiqueta {
  display: inline-block;
  width: auto;
  align-self: flex-start;

  margin: 0 0 17px;
  padding: 0;

  background: transparent;
  border-radius: 0;

  font-size: 13px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;

  color: var(--bv-vino);
}


/* Título */

.prensa-card h3 {
  margin: 0 0 22px;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  line-height: 1.3;
  font-weight: 600;

  text-transform: none;
  color: var(--bv-negro);
}

.prensa-card h3 a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}

.prensa-card h3 a:hover,
.prensa-card h3 a:focus {
  color: var(--bv-vino);
  text-decoration: none;
}


/* Línea inferior */

.prensa-card::after {
  content: "";
  display: block;
  height: 1px;
  background: var(--bv-linea);
  margin-top: 30px;
}


/* Pie */

.prensa-card-footer {
  margin-top: auto;
  text-align: left;
}


/* Botón convertido en enlace editorial */

.prensa-btn {
  position: relative;
  display: inline-block;

  padding: 3px 26px 5px 0;

  border: 0;
  border-radius: 0;
  background: transparent;

  color: var(--bv-vino) !important;
  text-decoration: none !important;

  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;

  transition: color .2s ease;
}

.prensa-btn::after {
  content: "→";
  position: absolute;
  right: 0;
  top: 1px;

  font-size: 20px;
  font-weight: 400;

  transition: transform .2s ease;
}

.prensa-btn:hover,
.prensa-btn:focus {
  background: transparent;
  color: var(--bv-vino-oscuro) !important;
}

.prensa-btn:hover::after {
  transform: translateX(5px);
}



/* =========================================================
   COMUNICADO INDIVIDUAL
   ========================================================= */

.comunicado-wrap {
  max-width: 930px;
  margin: 0 auto;
}


/* Meta superior */

.comunicado-meta {
  margin: 6px 0 14px;
  padding-bottom: 13px;

  border-bottom: 1px solid var(--bv-linea);
}

.comunicado-fecha {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--bv-gris);

  margin-right: 14px;
}

.comunicado-numero {
  font-size: 14px;
  color: #888;
}


/* Título */

.comunicado-titulo {
  max-width: 900px;

  margin: 26px 0 32px;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  line-height: 1.18;
  font-weight: 600;

  text-transform: none;
  color: var(--bv-negro);
}


/* Imagen principal */

.comunicado-hero {
  width: 100%;
  max-height: 610px;

  object-fit: cover;
  display: block;

  border-radius: 0;

  margin: 0 0 38px;
}


/* Entradilla / destacados */

.comunicado-destacados {
  margin: 0 0 38px;
  padding: 26px 32px;

  background: var(--bv-fondo);

  border: 0;
  border-left: 3px solid var(--bv-vino);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.6;

  color: #3b3b3b;
}

.comunicado-destacados li {
  margin-bottom: 10px;
}

.comunicado-destacados li:last-child {
  margin-bottom: 0;
}


/* Cuerpo */

.comunicado-cuerpo {
  max-width: 790px;
  margin: 0 auto;

  font-size: 18px;
  line-height: 1.82;

  color: #363636;
}

.comunicado-cuerpo p {
  margin: 0 0 25px;
}


/* Subtítulos */

.comunicado-cuerpo h2 {
  position: relative;

  margin: 48px 0 22px;
  padding-top: 21px;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 29px;
  line-height: 1.3;
  font-weight: 600;

  color: var(--bv-negro);
}

.comunicado-cuerpo h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;

  width: 45px;
  height: 3px;

  background: var(--bv-vino);
}


/* Fotografías */

.comunicado-foto {
  max-width: 930px;
  margin: 45px auto;
}

.comunicado-foto img {
  width: 100%;
  height: auto;

  display: block;

  border-radius: 0;
}


/* Regresar */

.comunicado-regresar {
  max-width: 790px;

  margin: 55px auto 15px;
  padding-top: 24px;

  border-top: 1px solid var(--bv-linea);
}

.comunicado-regresar .prensa-btn::before {
  content: "←";
  margin-right: 10px;
}

.comunicado-regresar .prensa-btn::after {
  display: none;
}


/* =========================================================
   SIN RESULTADOS / ERROR
   ========================================================= */

.prensa-vacio,
.comunicado-error {
  padding: 28px 30px;

  background: var(--bv-fondo);
  border-left: 3px solid var(--bv-vino);

  font-size: 16px;
  color: var(--bv-gris);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991px) {

  .prensa-card h3 {
    font-size: 24px;
  }

  .comunicado-titulo {
    font-size: 36px;
  }

}


@media (max-width: 767px) {

  .prensa-grid {
    margin-left: 0;
    margin-right: 0;
  }

  .prensa-col {
    width: 100%;
    padding: 0;
    margin-bottom: 48px;
  }

  .prensa-card-img {
    min-height: 210px;
  }

  .prensa-fecha {
    margin-top: 19px;
  }

  .prensa-card h3 {
    font-size: 24px;
    line-height: 1.32;
  }


  /* Comunicado */

  .comunicado-titulo {
    font-size: 31px;
    line-height: 1.22;
    margin-top: 22px;
  }

  .comunicado-hero {
    margin-bottom: 28px;
  }

  .comunicado-destacados {
    padding: 22px 22px;
    font-size: 17px;
  }

  .comunicado-cuerpo {
    font-size: 16.5px;
    line-height: 1.75;
  }

  .comunicado-cuerpo h2 {
    font-size: 25px;
  }

  .comunicado-foto {
    margin: 32px 0;
  }

}