/* =========================
   PRENSA HERO
========================= */

.prensa-hero {
  position: relative;
  height: 55vh;
  min-height: 350px;
  background: url('../assets/images/institucional/prensa.jpg') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prensa-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.7));
}

.prensa-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.prensa-hero h1 {
  font-family: 'GT Walsheim Bold', sans-serif;
  font-size: clamp(48px, 6vw, 72px);
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* =========================
   PRENSA SECTION
========================= */

.prensa-seccion {
  padding: 3% 15%;
  background-color: #1C2249;
}

.prensa-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  align-items: stretch;
}

.prensa-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.prensa-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.prensa-card > img {
  width: 100%;
  object-fit: cover;
  height: 160px;
  display: block;
}

.prensa-card .prensa-content {
  padding: 15px 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.prensa-card .prensa-content p {
  font-size: 1rem;
  color: #333;
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prensa-card .prensa-content a.prensa-btn {
  display: inline-block;
  text-align: center;
  padding: 6px 12px;
  background-color: #007BFF;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.85rem;
  transition: background 0.3s;
}

.prensa-card .prensa-content a.prensa-btn:hover {
  background-color: #0056b3;
}

.prensa-titulo {
  display: grid;
  grid-template-columns: 1fr auto; 
  align-items: center;           
  gap: 8px;
  margin-bottom: 10px;
}

.prensa-titulo-texto {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prensa-icono {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 4px;
  background: #fff;
}


/* Responsive */
@media screen and (max-width: 425px) {

  .prensa-titulo {
    display: flex;            
    align-items: flex-start;  
    gap: 6px;                   
    height: 80px;              
    overflow: hidden;
    padding: 0 2px;
    margin-bottom: 0;
  }

  .prensa-titulo-texto {
    font-size: 0.82rem;      
    line-height: 1.15;         
    display: -webkit-box;
    -webkit-line-clamp: 2;    
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    flex: 1 1 auto;
  }

  .prensa-icono {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }

  .prensa-card .prensa-content p {
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 12px;
  }

  .prensa-card .prensa-content a.prensa-btn {
    font-size: 0.8rem;
    padding: 5px 10px;
    margin-top: auto;
  }

  .prensa-card .prensa-content {
    justify-content: flex-start;
    gap: 6px;
  }

}

@media screen and (max-width: 1024px) {
  .prensa-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 600px) {
  .prensa-grid {
    grid-template-columns: 1fr;
  }
}