/* Tarjetas de video («Webs a medida» en Livid, app.jemaic.com en MP4) y su ventana de reproducción. */
.web-video { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: center; gap: 34px; margin: 0 0 30px; padding: 14px 38px 14px 14px; border: 1px solid #ffffffed; border-radius: 30px; background: linear-gradient(130deg, #ffffffc9, #ffffffe0 45%, #ffffff87); box-shadow: 0 18px 50px #334f6a0d, 0 3px 9px #334f6a08, inset 0 1px 1px #fff; color: var(--ink); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); transition: transform .25s, box-shadow .25s; }
.web-video:hover { transform: translateY(-3px); box-shadow: 0 24px 56px #334f6a1f, inset 0 1px 1px #fff; }
.web-video-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 21px; background: #eef0f4; }
.web-video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.web-video-thumb { container-type: inline-size; }
/* botón en el hueco de la placa, debajo del título (donde el video muestra «Pedí tu presupuesto») */
.web-video-play { position: absolute; left: 41.4%; top: 64%; display: inline-flex; align-items: center; gap: .55em; padding: .75em 1.35em .75em 1.05em; border-radius: 999px; background: var(--accent); color: #fff; font-size: max(13px, 2.15cqw); font-weight: 650; line-height: 1; white-space: nowrap; box-shadow: 0 10px 26px #0003, 0 0 0 .45em #ffffff80; transition: transform .25s; }
.web-video-play:before { content: ''; border-style: solid; border-width: .45em 0 .45em .72em; border-color: transparent transparent transparent #fff; }
.web-video:hover .web-video-play { transform: scale(1.05); }
/* app.jemaic.com: el botón debajo de «¿Tu inmobiliaria vive repartida?», el título del video */
.web-video--app .web-video-play { left: 5.6%; top: 57%; background: linear-gradient(120deg, #00a88f, #1f55e8); }
.app-inmo .text-link { margin-top: 4px; }
.web-video-text { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; }
.web-video-text h3 { margin: 0; font-size: clamp(1.6rem, 2.4vw, 2.25rem); line-height: 1.15; font-weight: 700; }
.web-video-text p { margin: 0; line-height: 1.75; color: var(--muted); }
.wv-dialog { width: min(1040px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 22px; background: #fff; color: #1b262a; overflow: hidden; box-shadow: 0 30px 80px #0006; }
.wv-dialog.is-vertical { width: min(420px, calc(100% - 24px), calc((100dvh - 96px) * 9 / 16)); }
.wv-dialog::backdrop { background: #0b1418d9; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.wv-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 12px 20px; }
.wv-top strong { font-size: .9375rem; font-weight: 650; }
.wv-close { flex: 0 0 auto; min-height: 40px; padding: 8px 16px; border: 1px solid #d8ddda; border-radius: 999px; background: #fff; color: #1b262a; font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer; }
.wv-close:hover { border-color: var(--accent); }
.wv-frame { position: relative; aspect-ratio: 16 / 9; background: #0b1418; }
.wv-dialog.is-vertical .wv-frame { aspect-ratio: 9 / 16; }
.wv-frame iframe, .wv-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wv-frame video { object-fit: contain; background: #0b1418; }
@media (max-width: 900px) {
  .web-video { grid-template-columns: 1fr; gap: 20px; padding: 12px 12px 24px; }
  .web-video-text { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) { .web-video, .web-video-play { transition: none; } }
