/* "Explain me" — botón del hero que "suena" como una llamada entrante y abre el video explicativo.
   Basado en payzum.com (~/.claude/brag-kit/reference/site). */
.explain-btn {
  margin-top: 20px;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 8px 22px 8px 8px;
  border-radius: 999px;
  border: 1.5px solid rgba(0, 224, 182, .65);
  background: rgba(3, 19, 22, .66);
  color: #f5f7f8;
  font-family: Arial, Helvetica, sans-serif;
  cursor: pointer;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 0 0 5px rgba(0, 224, 182, .1), 0 18px 50px -14px rgba(0, 224, 182, .65);
  animation: explain-call 3.2s ease-in-out infinite;
  transition: background .2s ease, border-color .2s ease, box-shadow .25s ease;
  position: relative; z-index: 3;
  white-space: nowrap; width: max-content;
}
.explain-btn:hover, .explain-btn:focus-visible { animation-play-state: paused; background: rgba(3, 19, 22, .85); border-color: #00e0b6; box-shadow: 0 0 0 6px rgba(0, 224, 182, .17), 0 20px 56px -12px rgba(0, 224, 182, .85); }
.explain-btn:hover .explain-play, .explain-btn:focus-visible .explain-play { animation-play-state: paused; }
.explain-play {
  position: relative; flex: none;
  width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center;
  color: #001412;
  background: linear-gradient(180deg, #00e0b6, #00a888);
  box-shadow: 0 8px 22px -8px rgba(0, 224, 182, .9);
  animation: explain-handset 3.2s ease-in-out infinite;
}
.explain-play svg { width: 20px; height: 20px; margin-left: 3px; }
.explain-play::before, .explain-play::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #00e0b6;
  animation: explain-pulse 1.6s ease-out infinite;
}
.explain-play::after { animation-delay: .8s; }
.explain-txt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; text-align: left; }
.explain-txt strong { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.explain-txt small { font-size: 13px; color: #b9c7c9; }
@keyframes explain-call {
  0%, 14%, 20%, 34%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  1.4% { transform: translate3d(-4px, 0, 0) rotate(-2.4deg); }
  2.8% { transform: translate3d(3.8px, 0, 0) rotate(2.3deg); }
  4.2% { transform: translate3d(-3.6px, 0, 0) rotate(-2.2deg); }
  5.6% { transform: translate3d(3.4px, 0, 0) rotate(2deg); }
  7% { transform: translate3d(-3.2px, 0, 0) rotate(-1.9deg); }
  8.4% { transform: translate3d(3px, 0, 0) rotate(1.8deg); }
  9.8% { transform: translate3d(-2.8px, 0, 0) rotate(-1.7deg); }
  11.2% { transform: translate3d(2.6px, 0, 0) rotate(1.6deg); }
  12.6% { transform: translate3d(-2.4px, 0, 0) rotate(-1.4deg); }
  21.4% { transform: translate3d(-4px, 0, 0) rotate(-2.4deg); }
  22.8% { transform: translate3d(3.8px, 0, 0) rotate(2.3deg); }
  24.2% { transform: translate3d(-3.6px, 0, 0) rotate(-2.2deg); }
  25.6% { transform: translate3d(3.4px, 0, 0) rotate(2deg); }
  27% { transform: translate3d(-3.2px, 0, 0) rotate(-1.9deg); }
  28.4% { transform: translate3d(3px, 0, 0) rotate(1.8deg); }
  29.8% { transform: translate3d(-2.8px, 0, 0) rotate(-1.7deg); }
  31.2% { transform: translate3d(2.6px, 0, 0) rotate(1.6deg); }
  32.6% { transform: translate3d(-2.4px, 0, 0) rotate(-1.4deg); }
}
@keyframes explain-handset {
  0%, 14%, 20%, 34%, 100% { transform: rotate(0deg); }
  1.4% { transform: rotate(-18deg); } 2.8% { transform: rotate(17.1deg); } 4.2% { transform: rotate(-16.2deg); }
  5.6% { transform: rotate(15.3deg); } 7% { transform: rotate(-14.4deg); } 8.4% { transform: rotate(13.5deg); }
  9.8% { transform: rotate(-12.6deg); } 11.2% { transform: rotate(11.7deg); } 12.6% { transform: rotate(-10.8deg); }
  21.4% { transform: rotate(-18deg); } 22.8% { transform: rotate(17.1deg); } 24.2% { transform: rotate(-16.2deg); }
  25.6% { transform: rotate(15.3deg); } 27% { transform: rotate(-14.4deg); } 28.4% { transform: rotate(13.5deg); }
  29.8% { transform: rotate(-12.6deg); } 31.2% { transform: rotate(11.7deg); } 32.6% { transform: rotate(-10.8deg); }
}
@keyframes explain-pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(2); opacity: 0; } }
/* escritorio: explainer.js lo saca de la columna y lo estaciona junto al titular, sobre el arte */
.explain-btn.floating { position: absolute; margin-top: 0; }
@media (max-width: 1000px) { .explain-btn { margin-bottom: 8px; } }
@media (max-width: 700px) { .explain-btn { margin-top: 18px; } .explain-txt strong { font-size: 16px; } }

/* modal */
.explainer-lock, .explainer-lock body { overflow: hidden; }
.explainer-modal {
  position: fixed; inset: 0; z-index: 10001;
  display: grid; place-items: center; padding: 24px;
  background: rgba(1, 10, 12, .86);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s;
}
.explainer-modal.open { opacity: 1; visibility: visible; }
.explainer-dialog { width: min(1120px, 100%); transform: translateY(18px) scale(.98); transition: transform .35s ease; }
.explainer-modal.open .explainer-dialog { transform: none; }
.explainer-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.explainer-langs { display: inline-flex; padding: 4px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); background: #0d2024; }
.explainer-langs button {
  font: 700 13px/1 Arial, Helvetica, sans-serif; letter-spacing: .08em;
  padding: 8px 14px; border-radius: 999px; border: 0;
  color: #86999c; background: transparent; cursor: pointer;
}
.explainer-langs button[aria-pressed="true"] { color: #001412; background: #00e0b6; }
.explainer-actions { display: flex; align-items: center; gap: 10px; }
.explainer-cta { padding: 11px 18px; font-size: 14.5px; border-radius: 10px; }
.explainer-close {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .16); background: #0d2024; color: #f5f7f8; cursor: pointer;
}
.explainer-close svg { width: 18px; height: 18px; }
.explainer-close:hover { background: rgba(255, 255, 255, .1); }
.explainer-frame {
  aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000;
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 224, 182, .1);
}
.explainer-frame video { display: block; width: 100%; height: 100%; }
.explainer-dialog.vertical { width: auto; }
.explainer-dialog.vertical .explainer-frame { aspect-ratio: 9 / 16; width: min(calc(100vw - 32px), calc((100dvh - 96px) * 9 / 16)); margin: 0 auto; }
/* móviles: en /fr/ y /pt/ hay 3 idiomas + "Télécharger Vexo" en la barra */
@media (max-width: 480px) {
  .explainer-modal { padding: 16px; }
  .explainer-langs button { padding: 8px 10px; }
  .explainer-cta { padding: 10px 13px; font-size: 13.5px; }
}

/* reduce-motion (Safari en Mac lo reporta a menudo): site.css apaga todas las animaciones; el "timbre"
   del botón es una señal de atención deliberada y queda exento (mayor especificidad + !important). */
@media (prefers-reduced-motion: reduce) {
  .explain-btn { animation: explain-call 3.2s ease-in-out infinite !important; }
  .explain-play { animation: explain-handset 3.2s ease-in-out infinite !important; }
  .explain-play::before, .explain-play::after { animation: explain-pulse 1.6s ease-out infinite !important; }
  .explain-play::after { animation-delay: .8s !important; }
}
