/* ============ CASOS DE ÉXITO ============ */
.tm-casos {
  background: linear-gradient(180deg, #fafafa 0%, #ececec 100%);
  padding: 70px 0 80px;
}
.tm-casos .tm-casos__title {
  margin: 0 0 28px;
  text-align: center;
  font-weight: 800;
  font-size: clamp(34px, 4vw, 48px);
  color: #e4831f;
}
.tm-casos .tm-casos__sub {
  margin: 0 auto 1rem;
  max-width: 900px;
  text-align: center;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
  color: #505050;
}
.tm-casos__sub strong { font-weight: 700; }
.tm-casos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 40px 30px;
  margin-bottom: 56px;
}
.tm-caso { text-align: center; }
.tm-caso__thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: #000;
  position: relative;
  aspect-ratio: 16 / 9;
}
.tm-caso__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.tm-caso__thumb:hover img { transform: scale(1.04); }
.tm-caso__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s;
  pointer-events: none;
}
.tm-caso__thumb:hover .tm-caso__play { background: #ee7c26; }
.tm-caso__play svg { width: 26px; height: 26px; fill: #fff; }
.tm-casos .tm-caso__city {
  margin: 22px 0 8px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #ee7c26;
}
.tm-casos .tm-caso__desc {
  margin: 0 auto;
  max-width: 420px;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.4;
  color: #666666;
}
.tm-casos__cta {
  display: flex;
  width: fit-content;
  max-width: 92%;
  margin: 0 auto;
  padding: 22px 36px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  text-align: center;
  font-weight: 800;
  font-size: clamp(20px, 2.4vw, 24px);
  line-height: 1.25;
  color: #ee7c26;
  
}
.tm-casos__cta svg { width: 36px; height: 36px; stroke: #ee7c26; flex: 0 0 auto; }

/* modal */
.tm-video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0,0,0,.85);
}
.tm-video-modal[hidden] { display: none; }
.tm-video-modal__box {
  position: relative;
  width: min(1060px, 100%);
}
.tm-video-modal__close {
  position: absolute;
  right: 0;
  top: -44px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.tm-video-modal__close:hover { background: #ee7c26; }
.tm-video-modal__frame {
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}
.tm-video-modal__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
@media (max-width: 640px) {
  .tm-casos { padding: 50px 0 60px; }
  .tm-casos__grid { gap: 34px; margin-bottom: 44px; }
  .tm-caso__city { margin-top: 16px; }
}
