/* Video «Así funciona el Analizador» en /medios/analizador:
   modal la primera vez (vz-modal) y miniaturas para verlo cuando quieras (vz-chip, vz-tarjeta). */

/* ---------- miniatura pequeña junto a la herramienta ---------- */
.vz-chip { display: inline-flex; align-items: center; gap: .6rem; padding: .25rem .8rem .25rem .25rem; border-radius: 999px; border: 1px solid var(--mr-linea-2, #d3cddc); background: #fff; color: var(--mr-tinta, #211a2c); font: inherit; font-size: .85rem; font-weight: 700; line-height: 1.2; cursor: pointer; text-align: left; transition: border-color .15s, box-shadow .15s, transform .15s; }
.vz-chip:hover, .vz-chip:focus-visible { border-color: var(--mr-cempa, #f2a541); box-shadow: 0 4px 14px rgba(21, 18, 43, .12); transform: translateY(-1px); }
.vz-chip-mini { position: relative; flex: 0 0 auto; width: 64px; height: 36px; border-radius: 999px 6px 6px 999px; overflow: hidden; background: var(--mr-noche, #15122b); }
.vz-chip-mini img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .85; }
.vz-chip-mini i { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 1rem; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.vz-chip small { display: block; font-weight: 600; color: var(--mr-piedra, #686173); font-size: .75rem; }

/* ---------- tarjeta grande en «Cómo funciona el motor» ---------- */
.vz-tarjeta { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.25rem 1.75rem; align-items: center; margin: 0 0 2rem; padding: 1rem; border-radius: var(--mr-radio-lg, 18px); background: var(--mr-noche, #15122b); color: #fff; box-shadow: var(--mr-sombra); }
.vz-poster { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: #000; cursor: pointer; }
.vz-poster img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease, opacity .2s; }
.vz-poster:hover img, .vz-poster:focus-visible img { transform: scale(1.03); opacity: .9; }
.vz-play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; display: grid; place-items: center; background: var(--mr-cempa, #f2a541); color: #15122b; font-size: 1.7rem; box-shadow: 0 6px 24px rgba(0, 0, 0, .45); transition: transform .2s; }
.vz-play i { margin-left: .2rem; }
.vz-poster:hover .vz-play, .vz-poster:focus-visible .vz-play { transform: scale(1.08); }
.vz-play::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(242, 165, 65, .7); animation: vz-onda 2s ease-out infinite; }
@keyframes vz-onda { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.vz-duracion { position: absolute; right: .6rem; bottom: .6rem; padding: .15rem .5rem; border-radius: 6px; background: rgba(0, 0, 0, .75); color: #fff; font-size: .78rem; font-weight: 700; }
.vz-tarjeta-texto { padding: .25rem .5rem .25rem 0; }
.vz-gorro { margin: 0 0 .35rem; color: var(--mr-cempa, #f2a541); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.vz-tarjeta h3 { margin: 0 0 .5rem; font-family: var(--mr-serif); font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.2; color: #fff; }
.vz-tarjeta p { color: rgba(255, 255, 255, .8); }
.vz-tarjeta .btn { margin-top: .25rem; }

/* ---------- modal ---------- */
.vz-modal { width: min(960px, calc(100vw - 1.5rem)); max-width: none; max-height: calc(100dvh - 1.5rem); margin: auto; padding: 0; border: 0; border-radius: var(--mr-radio-lg, 18px); background: var(--mr-noche, #15122b); color: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); overflow: auto; }
.vz-modal:not([open]) { display: none; }
.vz-modal[open] { animation: vz-entra .35s cubic-bezier(.2, .9, .3, 1.15); }
.vz-modal::backdrop { background: rgba(10, 8, 24, .78); backdrop-filter: blur(3px); }
@keyframes vz-entra { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
.vz-cab { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem .8rem; }
.vz-cab h2 { margin: 0; font-family: var(--mr-serif); font-size: clamp(1.2rem, 2.6vw, 1.6rem); line-height: 1.2; color: #fff; }
.vz-cab p.vz-sub { margin: .3rem 0 0; color: rgba(255, 255, 255, .75); font-size: .95rem; }
.vz-x { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff; font-size: 1.15rem; cursor: pointer; display: grid; place-items: center; transition: background-color .15s; }
.vz-x:hover, .vz-x:focus-visible { background: rgba(255, 255, 255, .2); }
.vz-marco { position: relative; margin: 0 1.25rem; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.vz-marco iframe, .vz-marco .vz-poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0; }
.vz-pie { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; padding: 1rem 1.25rem 1.2rem; }
.vz-pie p { margin: 0; color: rgba(255, 255, 255, .72); font-size: .9rem; max-width: 34rem; }
.vz-pie .btn { white-space: nowrap; }
body.vz-abierto { overflow: hidden; }

@media (max-width: 767.98px) {
  .vz-tarjeta { grid-template-columns: 1fr; }
  .vz-tarjeta-texto { padding: 0 .25rem .25rem; }
}
@media (max-width: 575.98px) {
  .vz-cab { padding: .9rem .9rem .7rem; }
  .vz-marco { margin: 0 .9rem; }
  .vz-pie { padding: .9rem; }
  .vz-pie .btn { width: 100%; white-space: normal; }
  .vz-play { width: 60px; height: 60px; margin: -30px 0 0 -30px; font-size: 1.35rem; }
}
@media (prefers-reduced-motion: reduce) {
  .vz-modal[open], .vz-play::after { animation: none; }
  .vz-poster img, .vz-chip { transition: none; }
}

/* ---------- cabecera de la herramienta a todo lo ancho (3 nov 2026) ----------
   Las pastillas (video, motor, reglas + IA) ocupan todo el ancho de la tarjeta y se estiran
   para llenarlo; el texto de privacidad ya no se queda en 70 caracteres de ancho. */
.az-herramienta-seccion .az-form-cab { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1rem; align-items: start; }
.az-herramienta-seccion .az-form-cab > div { display: contents; }
.az-herramienta-seccion .az-form-cab > .az-form-icono { grid-column: 1; grid-row: 1 / span 2; }
.az-herramienta-seccion .az-form-cab .az-form-titulo,
.az-herramienta-seccion .az-form-cab .az-form-sub { grid-column: 2; }
.az-herramienta-seccion .az-form-sub { max-width: none; }
.az-herramienta-seccion .az-motor-linea { grid-column: 1 / -1; align-items: stretch; gap: .6rem; margin-top: 1.15rem; }
.az-herramienta-seccion .az-motor-linea > * { flex: 1 1 auto; justify-content: center; }
.az-herramienta-seccion .az-motor-linea .vz-chip { justify-content: flex-start; }
.az-herramienta-seccion .az-motor-linea .vz-chip > span:last-child { flex: 1; text-align: center; }
.az-herramienta-seccion .az-capa-reglas, .az-herramienta-seccion .az-capa-ia { white-space: nowrap; }
.az-privacidad p { max-width: none; }
@media (max-width: 575.98px) {
  .az-herramienta-seccion .az-form-cab { grid-template-columns: minmax(0, 1fr); row-gap: .7rem; }
  .az-herramienta-seccion .az-form-cab > .az-form-icono { grid-row: auto; }
  .az-herramienta-seccion .az-form-cab .az-form-titulo,
  .az-herramienta-seccion .az-form-cab .az-form-sub { grid-column: 1; }
  .az-herramienta-seccion .az-form-sub { margin-top: -.3rem; }
  .az-herramienta-seccion .az-motor-linea { margin-top: .3rem; }
}

/* «Funciona con»: las pastillas de tipos (notas, PDF, redes) también llenan el ancho (3 nov 2026) */
.az-herramienta-seccion .az-fuentes-tipos { max-width: none; gap: .45rem; }
.az-herramienta-seccion .az-fuentes-tipos .az-tipo { flex: 1 1 auto; justify-content: center; white-space: nowrap; }
@media (max-width: 991.98px) {
  .az-herramienta-seccion .az-fuentes-tipos { gap: .35rem; }
  .az-herramienta-seccion .az-fuentes-tipos > span:first-child { flex: 1 0 100%; }
  .az-herramienta-seccion .az-fuentes-tipos .az-tipo { padding-inline: .5rem; }
}
@media (max-width: 575.98px) {
  .az-herramienta-seccion .az-fuentes-tipos { gap: .45rem; }
  .az-herramienta-seccion .az-fuentes-tipos .az-tipo { padding-inline: .65rem; }
}
