/* ================================
   CAROLTEMP — Bloques de imagen
   Insertar vía catálogo de bloques
================================ */

/* ================================
   IMAGEN CON PIE DE FOTO
================================ */
.bloque-img {
  margin: 2.5rem auto;
  max-width: 820px;
  text-align: center;
}
.bloque-img img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(11,36,71,.10);
  display: block;
}
.bloque-img figcaption {
  margin-top: 0.875rem;
  font-size: 13px;
  color: #8FA3B8;
  font-style: italic;
  line-height: 1.6;
}

/* ================================
   GALERÍA 3 COLUMNAS
================================ */
.bloque-galeria {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.875rem;
  margin: 2.5rem 0;
}
.bloque-galeria figure {
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(11,36,71,.07);
  border: 1px solid #E8EFF8;
}
.bloque-galeria img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.bloque-galeria figure:hover img {
  transform: scale(1.04);
}
.bloque-galeria figcaption {
  padding: 0.5rem 0.75rem 0.625rem;
  font-size: 12px;
  color: #8FA3B8;
  text-align: center;
  background: #fff;
}

/* ================================
   GALERÍA ANTES / DESPUÉS
================================ */
.bloque-antesdespues {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 2.5rem 0;
}
.bloque-antesdespues figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(11,36,71,.10);
}
.bloque-antesdespues img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  display: block;
}
.bloque-antesdespues figcaption {
  padding: 0.625rem 0.875rem 0.75rem;
  font-size: 13px;
  color: #576574;
  text-align: center;
  background: #fff;
  font-weight: 500;
}
.bloque-ad-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 100px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  backdrop-filter: blur(4px);
}
.bloque-ad-badge.antes {
  background: rgba(6,22,40,.65);
  color: #fff;
}
.bloque-ad-badge.despues {
  background: rgba(25,118,210,.90);
  color: #fff;
}

/* ================================
   IMAGEN ANCHA CON TÍTULO
================================ */
.bloque-img-ancha {
  margin: 2.5rem 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(11,36,71,.10);
  border: 1px solid #E8EFF8;
}
.bloque-img-ancha img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}
.bloque-img-ancha-footer {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  background: #fff;
}
.bloque-img-ancha-footer p {
  font-size: 15px;
  font-weight: 700;
  color: #0B2447;
  margin: 0 0 0.25rem;
  line-height: 1.3;
}
.bloque-img-ancha-footer span:not(.bloque-img-ancha-badge) {
  font-size: 13px;
  color: #8FA3B8;
  display: block;
}
.bloque-img-ancha-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #E3F0FB;
  color: #1976D2;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ================================
   PLANTILLA ARTÍCULO / PROYECTO
   Clase única: ct-tpl-art-v1
================================ */
.ct-tpl-intro {
  font-size: 16px;
  line-height: 1.8;
  color: #576574;
  border-left: 3px solid #1976D2;
  padding-left: 1.25rem;
  margin: 1.5rem 0 2rem;
}
.ct-tpl-lista {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.ct-tpl-lista li {
  padding-left: 1.5rem;
  position: relative;
  font-size: 15px;
  color: #576574;
  line-height: 1.6;
}
.ct-tpl-lista li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1976D2;
}
.ct-tpl-cta {
  background: #F5F8FC;
  border: 1px solid #D6E2F0;
  border-radius: 14px;
  padding: 1.75rem 2rem;
  margin: 2.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.ct-tpl-cta p {
  margin: 0;
  font-size: 15px;
  color: #0B2447;
  font-weight: 600;
  flex: 1;
  line-height: 1.5;
}
.ct-tpl-cta-btn {
  display: inline-flex;
  align-items: center;
  background: #1976D2;
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 100px;
  text-decoration: none !important;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.ct-tpl-cta-btn:hover {
  background: #1565C0;
  box-shadow: 0 4px 16px rgba(25,118,210,.35);
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
  .bloque-galeria {
    grid-template-columns: repeat(2, 1fr);
  }
  .bloque-antesdespues {
    grid-template-columns: 1fr;
  }
  .bloque-img img {
    height: 260px;
  }
  .bloque-img-ancha img {
    height: 240px;
  }
}
@media (max-width: 480px) {
  .bloque-galeria {
    grid-template-columns: 1fr;
  }
  .bloque-img-ancha-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.875rem;
  }
  .ct-tpl-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Resaltado de puntos clave para el cliente ─────────────── */
.ct-hl {
  background: linear-gradient(120deg, rgba(25,118,210,.14) 0%, rgba(25,118,210,.08) 100%);
  color: #0B2447;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  border-bottom: 2px solid rgba(25,118,210,.35);
}
