/* ==========================================================================
   Primible — Loader de envío y página «Solicitud recibida» (form-flow.php)
   ========================================================================== */

/* ---------- Loader a pantalla completa ---------- */
.pl-loader {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  background: rgba(22, 21, 25, .74);
  opacity: 0;
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  backdrop-filter: blur(10px) saturate(1.2);
  transition: opacity .3s ease;
}
.pl-loader[hidden] { display: none; }
.pl-loader.is-on { opacity: 1; }
html.pl-lock, html.pl-lock body { overflow: hidden; }

.pl-loader__box { position: relative; display: grid; justify-items: center; gap: 26px; }
.pl-loader__ring,
.pl-loader__logo { grid-area: 1 / 1; }
.pl-loader__ring {
  width: 150px;
  height: 150px;
  margin: -29px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(177, 20, 255, 0) 0deg, rgba(177, 20, 255, .15) 120deg, #b114ff 300deg, #e3b3ff 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  animation: plSpin 1.1s linear infinite;
}
.pl-loader__logo {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  box-shadow: 0 0 0 10px rgba(177, 20, 255, .12), 0 20px 50px -10px rgba(177, 20, 255, .7);
  animation: plPulse 1.6s ease-in-out infinite;
}
.pl-loader__txt { grid-area: 2 / 1; margin: 22px 0 0 !important; color: #fff; font-size: 16px; font-weight: 600; letter-spacing: .01em; }
.pl-loader__txt::after { display: inline-block; width: 1.2em; text-align: left; content: ""; animation: plDots 1.4s steps(4, end) infinite; }

@keyframes plSpin { to { transform: rotate(360deg); } }
@keyframes plPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@keyframes plDots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75%, 100% { content: "..."; } }

/* ---------- Página de éxito ---------- */
.ok-page { padding: clamp(32px, 6vw, 90px) 0 clamp(56px, 7vw, 110px); color: #fff; }
.ok-card {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 60px) clamp(22px, 5vw, 60px);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 32px;
  background: radial-gradient(70% 50% at 50% 0%, rgba(177, 20, 255, .28), transparent 70%), linear-gradient(180deg, #2c2a30, #232325);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .9);
  text-align: center;
}

.ok-badge { position: relative; display: inline-grid; place-items: center; margin-bottom: 22px; }
.ok-badge img { width: 88px; height: 88px; border-radius: 50%; animation: okPop .7s cubic-bezier(.2, 1.4, .4, 1) both; }
.ok-badge__ring {
  position: absolute;
  inset: -12px;
  border: 2px solid rgba(214, 107, 255, .55);
  border-radius: 50%;
  animation: okRing 2.4s ease-out .4s infinite;
}
.ok-badge__check {
  position: absolute;
  right: -6px;
  bottom: -2px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 3px solid #2a282e;
  border-radius: 50%;
  background: #3ccf91;
  color: #0d2a1d;
  animation: okPop .5s cubic-bezier(.2, 1.4, .4, 1) .45s both;
}
.ok-badge__check path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: okDraw .4s ease .8s forwards; }
@keyframes okPop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes okRing { 0% { opacity: .9; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.5); } }
@keyframes okDraw { to { stroke-dashoffset: 0; } }

.ok-num { display: inline-block; margin-bottom: 10px; padding: 6px 12px; border-radius: 999px; background: rgba(177, 20, 255, .18); color: #e3b3ff; font-size: 12px; letter-spacing: .14em; }
html .ok-page .ok-title { margin: 0 0 12px !important; color: #fff !important; font-size: clamp(30px, 3.6vw, 48px) !important; font-weight: 600 !important; line-height: 1.05 !important; letter-spacing: -.03em !important; }
.ok-page .ok-text { max-width: 48ch; margin: 0 auto 30px !important; color: rgba(255, 255, 255, .75); font-size: 16.5px; line-height: 1.6; }

.ok-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 30px !important; padding: 0 !important; list-style: none !important; text-align: left; }
.ok-steps li {
  display: grid;
  gap: 4px;
  margin: 0 !important;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  background: rgba(255, 255, 255, .03);
  animation: okUp .6s cubic-bezier(.2, .8, .2, 1) both;
  animation-delay: calc(.6s + var(--i) * .12s);
}
.ok-steps__n { display: grid; place-items: center; width: 26px; height: 26px; margin-bottom: 6px; border-radius: 50%; background: #b114ff; color: #fff; font-size: 12px; font-weight: 700; }
.ok-steps strong { color: #fff; font-size: 14.5px; }
.ok-steps li > span:last-child { color: rgba(255, 255, 255, .6); font-size: 13px; line-height: 1.45; }
@keyframes okUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.ok-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.ok-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  color: #fff !important;
  font-size: 15.5px;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
  transition: transform .2s ease, background-position .5s ease, background-color .2s ease;
}
html.primible-brand-ui .ok-page .ok-btn { display: inline-flex !important; flex-direction: row !important; align-items: center !important; }
.ok-btn:hover { transform: translateY(-1px); }
.ok-btn--wa { background: #25d366; color: #0b2e18 !important; box-shadow: 0 16px 36px -16px rgba(37, 211, 102, .8); }
.ok-btn--wa:hover { background: #2ee374; }
.ok-btn--primary { background: linear-gradient(90deg, #8d0dcc, #b114ff 55%, #c547ff); background-size: 200% 100%; box-shadow: 0 16px 36px -16px rgba(177, 20, 255, .9); }
.ok-btn--primary:hover { background-position: 100% 0; }

.ok-page .ok-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 22px 0 0 !important; color: rgba(255, 255, 255, .35); font-size: 14.5px; }
.ok-links a { color: rgba(255, 255, 255, .8) !important; text-decoration: underline !important; text-decoration-color: rgba(214, 107, 255, .5) !important; text-underline-offset: 4px; }
.ok-links a:hover { color: #fff !important; text-decoration-color: #d66bff !important; }

.ok-shop { margin-top: clamp(48px, 7vw, 90px); }
.ok-shop__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 22px; }
.ok-shop__head .sec-title { margin: 0 !important; }
.ok-shop__all { color: #d66bff !important; font-weight: 600; text-decoration: none !important; }

@media (max-width: 700px) {
  .ok-steps { grid-template-columns: 1fr; }
  .ok-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .pl-loader__ring { animation-duration: 3s; }
  .pl-loader__logo, .ok-badge__ring { animation: none; }
  .ok-badge img, .ok-badge__check, .ok-steps li { animation: none; }
  .ok-badge__check path { stroke-dashoffset: 0; animation: none; }
}

/* Grilla de «lo más vendido» (fuera de la tienda no hay grilla de WooCommerce) */
.ok-shop ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.ok-shop ul.products::before,
.ok-shop ul.products::after { display: none !important; }
.ok-shop ul.products li { width: auto !important; margin: 0 !important; float: none !important; }
@media (max-width: 1024px) {
  .ok-shop ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
