/* ── En los medios ─────────────────────────────────────── */

.tm-press {
  background: var(--ground);
  padding: 72px 0 80px;
  border-top: 1px solid var(--rule);
}

.tm-press .tm-h2 {
  margin-bottom: 48px;
}

/* ── Grid ── */

.tm-press-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

/* ── Card ── */

.tm-press-card {
  text-decoration: none;
  background: #0a1155;
  border-radius: 12px;
  overflow: hidden;
  width: calc(33.333% - 16px);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.tm-press-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55);
}

/* ── Media area ── */

.tm-press-card-media {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  overflow: hidden;
  background: #06093a;
}

.tm-press-card-img,
.tm-press-card-skeleton,
.tm-press-card-nophoto {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.tm-press-card-img {
  object-fit: cover;
}

.tm-press-card-skeleton {
  background: linear-gradient(90deg, #0d1566 25%, #1a2580 50%, #0d1566 75%);
  background-size: 200% 100%;
  animation: tm-press-shimmer 1.5s infinite;
}

@keyframes tm-press-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.tm-press-card-nophoto {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.25);
  font-family: 'Raleway', var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
}

/* ── Hover overlay ── */

.tm-press-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 12, 67, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.tm-press-card:hover .tm-press-card-overlay {
  opacity: 1;
}

.tm-press-card-icon {
  color: #ffffff;
  font-size: 28px;
}

/* ── Card body ── */

.tm-press-card-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.tm-press-card-source {
  display: flex;
  align-items: center;
  gap: 7px;
}

.tm-press-card-source-logo {
  height: 16px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

.tm-press-card-source-name {
  font-family: 'Raleway', var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.tm-press-card-headline {
  font-family: 'Raleway', var(--font-display);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.45;
  color: #ffffff;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Responsive ── */

@media (max-width: 900px) {
  .tm-press-card {
    width: calc(50% - 12px);
  }
}

.tm-press-footer {
  text-align: center;
  margin-top: 40px;
}

@media (max-width: 560px) {
  .tm-press {
    padding: 56px 0 64px;
  }

  .tm-press-card {
    width: 100%;
  }

  .tm-press-grid {
    gap: 16px;
  }
}
