/* vtm-ads.css — VTM News Ad Cards
   Bunny CDN: zona-c.b-cdn.net/z_vtm/ads/vtm-ads.css */

/* Wrapper centrador */
.vtm-ad {
  margin: 24px 0;
  text-align: center;
}

/* Tarjeta: tamaño natural = imagen + texto, sin ancho forzado */
.vtm-ad-card {
  display: inline-flex;
  border: 1px solid #e2e2e2;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  font-family: Arial, sans-serif;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
  text-align: left;
  vertical-align: top;
}

/* Enlace principal */
.vtm-ad-card a {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  text-decoration: none;
  color: inherit;
}

/* Imagen: fija 130px, no crece ni encoge */
.vtm-ad-card .ad-img {
  flex: 0 0 130px;
  width: 130px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
  border-right: 1px solid #efefef;
}

.vtm-ad-card .ad-img img {
  width: 100%;
  height: auto;
  max-height: 100px;
  object-fit: contain;
  display: block;
}

/* Texto: ancho mínimo para que quepa bien */
.vtm-ad-card .ad-body {
  flex: 1 1 auto;
  min-width: 200px;
  max-width: 240px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.vtm-ad-card .ad-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #b0b0b0;
  margin: 0 0 5px;
}

.vtm-ad-card .ad-title {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
  margin: 0 0 4px;
}

.vtm-ad-card .ad-desc {
  font-size: 12px;
  color: #666;
  line-height: 1.4;
  margin: 0 0 10px;
}

.vtm-ad-card .ad-cta {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: #2e7d32;
  border-radius: 20px;
  padding: 5px 14px;
  white-space: nowrap;
  align-self: flex-start;
}

/* ── MOBILE ─────────────────────────────────── */
@media (max-width: 480px) {

  .vtm-ad-card {
    display: flex;
    width: 100%;
    max-width: 375px;
    flex-direction: column;
  }

  .vtm-ad-card a {
    flex-direction: column;
  }

  /* Imagen arriba, sin fondo gris, ancho completo */
  .vtm-ad-card .ad-img {
    flex: none;
    width: 100%;
    height: 160px;
    border-right: none;
    border-bottom: 1px solid #efefef;
    background: #fff;
    padding: 16px 24px;
  }

  .vtm-ad-card .ad-img img {
    width: auto;
    max-width: 100%;
    max-height: 120px;
  }

  /* Texto debajo, ancho libre */
  .vtm-ad-card .ad-body {
    min-width: unset;
    max-width: unset;
    width: 100%;
    padding: 14px 18px;
    box-sizing: border-box;
  }
}