/* ===================================================
   COMPROMISO — Pesquera La Pequeña Roma
   Photo cards: full image + title overlay only
   =================================================== */

.compromiso-seccion {
  background: linear-gradient(135deg, #071529 0%, #0a1f3d 100%);
}

.compromiso-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ── Full-image card ── */
.comp-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: default;
  box-shadow: 0 8px 32px rgba(0,0,0,0.40);
  transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94),
              box-shadow 0.4s ease;
}

.comp-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
}

/* ── Image fills card ── */
.comp-card-img-wrap {
  position: absolute;
  inset: 0;
}

.comp-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
  filter: brightness(0.80);
}

.comp-card:hover .comp-card-img {
  transform: scale(1.07);
  filter: brightness(0.65);
}

/* ── Gradient overlay ── */
.comp-card-body {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(5, 15, 35, 0.92) 0%,
    rgba(5, 15, 35, 0.40) 45%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 24px;
}

/* ── Hide description text ── */
.comp-card-body p {
  display: none;
}

/* ── Title ── */
.comp-card h4 {
  font-family: var(--fuente-titulo);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.25;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
  transform: translateY(4px);
  transition: transform 0.35s ease;
}

.comp-card:hover h4 {
  transform: translateY(0);
  color: var(--dorado, #d4a843);
}

/* ── Gold accent line that appears on hover ── */
.comp-card h4::before {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--dorado, #d4a843);
  border-radius: 2px;
  margin-bottom: 8px;
  transition: width 0.4s ease;
}

.comp-card:hover h4::before {
  width: 36px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .compromiso-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .compromiso-grid { grid-template-columns: 1fr; }
  .comp-card { aspect-ratio: 3/2; }
}
