/* Videos: reproductor + lista para elegir (widget me_videos) */
.me-videos .me-head { margin-bottom: 1.5rem; }
.me-videos__grid { display: grid; gap: 1.25rem; }
.me-videos__player {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--me-radius); background: #000;
}
.me-videos__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* MP4 del sitio (3-nov): el video entero dentro del 16:9 (si es vertical, con franjas negras). */
.me-videos__player > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
/* Su miniatura: el mismo video detenido en un cuadro, recortado como las de YouTube. */
.me-videos__cuadro { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.me-videos__poster {
  position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0;
  background: #000; cursor: pointer;
}
.me-videos__poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, opacity .3s ease; }
.me-videos__poster:hover img { transform: scale(1.03); opacity: .9; }
.me-videos__play {
  position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px;
  border-radius: 50%; background: var(--me-color-cta); box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  transition: transform .2s ease;
}
.me-videos__play::after {
  content: ""; position: absolute; left: 31px; top: 24px;
  border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent #fff;
}
.me-videos__poster:hover .me-videos__play, .me-videos__poster:focus-visible .me-videos__play { transform: scale(1.08); }
.me-videos__poster:focus-visible { outline: 3px solid var(--me-color-cta); outline-offset: -3px; }

.me-videos__lista { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; align-content: start; }
.me-videos__item {
  display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: .9rem; align-items: center;
  width: 100%; padding: .6rem; text-align: left; cursor: pointer;
  border: 2px solid transparent; border-radius: var(--me-radius-sm);
  background: var(--me-color-bg-alt); color: inherit; font: inherit;
  transition: border-color .2s ease, background-color .2s ease;
}
.me-videos__item:hover { border-color: var(--me-color-border, rgba(0, 0, 0, .12)); }
.me-videos__item.is-active { border-color: var(--me-color-cta); background: #fff; }
.me-videos__item:focus-visible { outline: 3px solid var(--me-color-cta); outline-offset: 2px; }
.me-videos__thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: calc(var(--me-radius-sm) - 2px); background: #000; }
.me-videos__thumb img { width: 100%; height: 100%; object-fit: cover; }
.me-videos__grid.is-playing .me-videos__item.is-active .me-videos__thumb::after {
  content: "Reproduciendo"; position: absolute; left: 6px; bottom: 6px; padding: 2px 6px;
  border-radius: 4px; background: var(--me-color-cta); color: #fff; font-size: .7rem; font-weight: 600;
}
.me-videos__texto { font-size: var(--me-fs-small); font-weight: var(--me-fw-semibold); line-height: 1.35; }
.me-section--gris .me-videos__item { background: #fff; }

@media (min-width: 1025px) {
  .me-videos__grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1.5rem; }
  .me-videos__grid--solo { grid-template-columns: 1fr; max-width: 960px; }
}
@media (max-width: 480px) {
  .me-videos__item { grid-template-columns: 112px minmax(0, 1fr); }
  .me-videos__play { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
  .me-videos__play::after { left: 24px; top: 18px; border-width: 12px 0 12px 18px; }
}
