/* Videos demo: el cuadro en cada producto y la ventana que abren los botones "Ver el video demo". Lógica en video.js. */
.vd { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.vd-copy { display: grid; gap: 14px; justify-items: start; }
.vd-copy h2 { margin: 0; }
.vd-copy p { margin: 0; color: var(--ink-2); font-size: 1.08rem; max-width: 30em; }
.vd-copy .actions { margin-top: 6px; }

.vd-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 26px; overflow: hidden; background: #0B1834;
  box-shadow: 0 50px 90px -44px rgb(8 18 40 / .6), 0 0 0 1px rgb(255 255 255 / .5); }
.vd-frame iframe, .vd-modal iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

/* portada propia: no se carga nada de YouTube ni Vimeo hasta que se toca play */
.vd-poster { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; cursor: pointer; color: #fff; overflow: hidden;
  background: radial-gradient(110% 120% at 20% 0%, #2A4C8E 0%, #13295A 48%, #0B1834 100%); }
.vd-poster:disabled { cursor: default; }
.vd-glow { position: absolute; width: 60%; aspect-ratio: 1; right: -12%; bottom: -40%; border-radius: 50%; background: radial-gradient(closest-side, rgb(255 114 0 / .45), transparent); filter: blur(10px); }
.vd-gulls { position: absolute; right: 5%; top: 8%; width: 26%; opacity: .14; color: #fff; }
.vd-gulls svg { width: 100%; height: auto; display: block; fill: currentColor; }
.vd-logo { position: absolute; left: 6%; top: 9%; display: inline-flex; padding: 9px 13px; border-radius: 12px; background: #fff; box-shadow: 0 12px 24px -14px rgb(0 0 0 / .6); }
.vd-logo img { height: 26px; width: auto; display: block; }
.vd-play { position: absolute; left: 50%; top: 50%; width: clamp(64px, 9vw, 92px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: #fff;
  box-shadow: 0 0 0 10px rgb(255 114 0 / .18), 0 0 0 22px rgb(255 114 0 / .08), 0 20px 40px -12px rgb(255 114 0 / .7);
  transition: transform .4s cubic-bezier(.16, 1, .3, 1), box-shadow .4s; }
.vd-play svg { width: 40%; display: block; }   /* el triángulo ya está centrado por su centro óptico: sin corrimiento extra */
.vd-poster:not(:disabled):hover .vd-play, .vd-poster:focus-visible .vd-play { transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 0 0 14px rgb(255 114 0 / .22), 0 0 0 30px rgb(255 114 0 / .08), 0 24px 44px -12px rgb(255 114 0 / .75); }
.vd-poster:disabled .vd-play { background: rgb(255 255 255 / .16); box-shadow: none; }
.vd-poster:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.vd-cap { position: absolute; left: 6%; bottom: 9%; font: 700 .95rem var(--head); letter-spacing: -.01em; color: #DCE4F5; }

/* botones "Ver el video demo" en el resto del sitio */
.vd-link { display: inline-flex; align-items: center; gap: 9px; padding: 0; border: 0; background: none; cursor: pointer; font: 700 1rem var(--head); color: #0F1E3D; }
.vd-link svg { width: 30px; height: 30px; padding: 8px; border-radius: 50%; color: #fff; background: var(--accent); box-shadow: 0 0 0 4px rgb(255 114 0 / .16); flex: none; transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
.vd-link:hover svg, .vd-link:focus-visible svg { transform: scale(1.1); }
.vd-link:hover span { text-decoration: underline; text-underline-offset: 3px; }
.vd-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 8px; }
.vd-btn svg { width: 18px; height: 18px; }
.p-links { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 26px; }

/* ventana */
.vd-modal { width: min(1100px, calc(100vw - 32px)); max-width: none; padding: 0; border: 0; border-radius: 22px; background: #000; overflow: visible; color: #fff; }
.vd-modal::backdrop { background: rgb(8 16 36 / .82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.vd-modal[open] { animation: vdIn .35s cubic-bezier(.16, 1, .3, 1); }
@keyframes vdIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.vd-modal-in { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; }
.vd-modal-hd { position: absolute; left: 0; right: 0; bottom: calc(100% + 10px); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vd-modal-hd b { font: 700 1rem var(--head); color: #fff; }
.vd-close { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border-radius: 50%; border: 1px solid rgb(255 255 255 / .3); background: rgb(255 255 255 / .1); color: #fff; cursor: pointer; }
.vd-close:hover { background: #fff; color: #0F1E3D; }
.vd-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.vd-close svg { width: 18px; height: 18px; }
body.vd-open { overflow: hidden; }

@media (max-width: 900px) {
  .vd { grid-template-columns: 1fr; }
  .vd-frame { order: -1; }
}
@media (max-width: 640px) {
  .vd-frame { border-radius: 18px; }
  .vd-logo { padding: 6px 9px; } .vd-logo img { height: 18px; }
  .vd-cap { font-size: .82rem; }
  .vd-modal { width: 100vw; border-radius: 0; }
  .vd-modal-in { border-radius: 0; }
  .vd-modal-hd { padding-inline: 14px; }
}
@media (prefers-reduced-motion: reduce) { .vd-modal[open] { animation: none; } }
/* en la tarjeta oscura de la portada del producto */
.pd-card-head .vd-link { color: #fff; padding-block: 10px; }
.pd-card-head .actions { align-items: center; column-gap: 22px; }
