/* Wizleep Configurator V3 · Destination UI 0.4.9
 * Mobile-first unified result page. Scoped to V3 destination roots only.
 */

.wizcfg3-destination-root{
  --wizcfg3-primary:#2d8c8c;
  --wizcfg3-accent:#f48967;
  --wizcfg3-ink:#0b1b2b;
  --wizcfg3-muted:#5c6b7a;
  --wizcfg3-surface:#fff;
  --wizcfg3-soft:#f6f9f9;
  --wizcfg3-radius:14px;
  --wizcfg3-max-width:1120px;
  width:100%;
  color:var(--wizcfg3-ink);
  font-family:inherit;
}
.wizcfg3-destination-root *{box-sizing:border-box}
.gform_wrapper .wizcfg3-retired-field{display:none!important}
.wizcfg3-destination-root img{max-width:100%}
.wizcfg3-dest-shell{width:100%;max-width:var(--wizcfg3-max-width);margin:0 auto 24px}
.wizcfg3-dest-loading,.wizcfg3-dest-error{padding:22px;border:1px solid rgba(11,27,43,.10);border-radius:var(--wizcfg3-radius);background:#fff;text-align:center}
.wizcfg3-dest-error h3{margin:0 0 8px!important;color:var(--wizcfg3-ink)!important}
.wizcfg3-dest-error p{margin:0!important;color:var(--wizcfg3-muted)!important}

/* Shared headings */
.wizcfg3-section-kicker{display:block;color:var(--wizcfg3-primary);font-size:.66rem;font-weight:800;letter-spacing:.105em;line-height:1.2;text-transform:uppercase}
.wizcfg3-section-heading{margin:0 0 14px;padding:0 2px}
.wizcfg3-section-heading h2{margin:4px 0 0!important;color:var(--wizcfg3-ink)!important;font-size:1.18rem!important;line-height:1.18!important;font-weight:750!important;letter-spacing:-.028em!important}
.wizcfg3-section-heading p{max-width:640px;margin:5px 0 0!important;color:#6b7b78!important;font-size:.8rem!important;line-height:1.45!important}

/* =========================================================
   FIRST BLOCK · personalized mattress
   ========================================================= */
.wizcfg3-result-card{overflow:hidden;border:1px solid #dfe8e6;border-radius:var(--wizcfg3-radius);background:#fff;box-shadow:0 5px 20px rgba(18,38,63,.04)}
.wizcfg3-result-head{display:block;padding:16px 13px 14px}
.wizcfg3-result-head h1{margin:4px 0 0!important;color:var(--wizcfg3-ink)!important;font-size:1.18rem!important;line-height:1.17!important;font-weight:760!important;letter-spacing:-.032em!important}
.wizcfg3-result-head p{max-width:680px;margin:6px 0 0!important;color:#667773!important;font-size:.79rem!important;line-height:1.46!important}

/* Two people stay in one row at every resolution. */
.wizcfg3-result-people{display:grid;align-items:stretch;border-top:1px solid #dfe8e6;border-bottom:1px solid #dfe8e6;background:#f8fbfa}
.wizcfg3-result-people.is-two{grid-template-columns:repeat(2,minmax(0,1fr))}
.wizcfg3-result-people.is-one{grid-template-columns:1fr}
.wizcfg3-result-person{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;padding:10px 5px 9px;text-align:center}
.wizcfg3-result-person+.wizcfg3-result-person{border-left:1px solid #dfe8e6}
.wizcfg3-result-person-side{margin-bottom:3px;color:#7c8986;font-size:.53rem;font-weight:800;letter-spacing:.065em;line-height:1.2;text-transform:uppercase}
.wizcfg3-result-person strong{max-width:100%;overflow:hidden;color:var(--wizcfg3-ink);font-size:.84rem;line-height:1.15;text-overflow:ellipsis;white-space:nowrap}
.wizcfg3-result-person-sensation{margin-top:3px;color:#647572;font-size:.63rem;line-height:1.3}
.wizcfg3-result-person a{margin-top:6px;color:var(--wizcfg3-primary);font-size:.63rem;font-weight:800;line-height:1.2;text-decoration:none}
.wizcfg3-result-person a::after{content:" ↓"}

.wizcfg3-front-visual{position:relative;padding:0;background:#fff}
.wizcfg3-stack{position:relative;width:100%;aspect-ratio:800/563;overflow:visible;background:transparent}
.wizcfg3-stack img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}
.wizcfg3-stack.is-side{aspect-ratio:800/563}
.wizcfg3-stack-empty{display:flex;align-items:center;justify-content:center;min-height:190px;border:1px dashed rgba(11,27,43,.15);border-radius:11px;background:var(--wizcfg3-soft);color:var(--wizcfg3-muted);font-size:.75rem}

/* =========================================================
   REAL PRODUCT GALLERY · WooCommerce gallery source
   ========================================================= */
.wizcfg3-gallery-section{margin-top:12px;padding:15px 10px 13px;border:1px solid #dfe8e6;border-radius:var(--wizcfg3-radius);background:#fff;box-shadow:0 5px 20px rgba(18,38,63,.035);overflow:hidden}
.wizcfg3-gallery-track{display:grid;grid-auto-flow:column;grid-auto-columns:min(86%,360px);gap:8px;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x mandatory;scroll-padding-inline:0;padding:0 18px 3px 0;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.wizcfg3-gallery-track::-webkit-scrollbar{display:none}
.wizcfg3-gallery-item{position:relative;overflow:hidden;min-width:0;margin:0;border:1px solid #e1e8e6;border-radius:10px;background:#f6f9f8;scroll-snap-align:start}
.wizcfg3-gallery-item img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover}
.wizcfg3-gallery-dots{display:flex;align-items:center;justify-content:center;gap:5px;margin-top:9px}
.wizcfg3-gallery-dots button{appearance:none;width:5px!important;height:5px!important;min-width:5px!important;min-height:5px!important;margin:0!important;padding:0!important;border:0!important;border-radius:50%!important;background:#cbd7d4!important;box-shadow:none!important;cursor:pointer!important}
.wizcfg3-gallery-dots button.is-active{width:14px!important;border-radius:999px!important;background:var(--wizcfg3-primary)!important}

/* =========================================================
   DETAILED CONFIGURATION
   ========================================================= */
.wizcfg3-details-section{margin-top:12px;padding:15px 10px;border:1px solid #dfe8e6;border-radius:var(--wizcfg3-radius);background:#fff;box-shadow:0 5px 20px rgba(18,38,63,.035)}
.wizcfg3-detail-grid{display:grid;grid-template-columns:1fr;gap:11px}
.wizcfg3-detail-card{scroll-margin-top:18px;overflow:hidden;border:1px solid #dfe8e6;border-radius:12px;background:#fff}
.wizcfg3-detail-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:13px 12px 7px}
.wizcfg3-detail-side{display:block;color:var(--wizcfg3-primary);font-size:.52rem;font-weight:800;letter-spacing:.09em;line-height:1.2;text-transform:uppercase}
.wizcfg3-detail-card-head h3{margin:4px 0 2px!important;color:var(--wizcfg3-ink)!important;font-size:1.12rem!important;line-height:1.15!important;font-weight:750!important;letter-spacing:-.02em!important}
.wizcfg3-detail-metrics{margin:0!important;color:#788683!important;font-size:.59rem!important;font-weight:600!important;line-height:1.35!important}
.wizcfg3-sensation{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;padding:5px 7px;border-radius:7px;font-size:.56rem;font-weight:800;line-height:1.2;white-space:nowrap}
.wizcfg3-sensation.is-soft{background:#eaf3fb;color:#3d6f96}
.wizcfg3-sensation.is-balanced{background:#e5f4f2;color:#257b78}
.wizcfg3-sensation.is-firm{background:#f7eee8;color:#8b5947}

/* No background box around the lateral mattress. */
.wizcfg3-side-visual{padding:0 2px;background:transparent}
.wizcfg3-layer-marker{position:absolute;z-index:100;display:flex;align-items:center;justify-content:center;width:21px;height:21px;border:2px solid #fff;border-radius:5px;background:var(--wizcfg3-primary);color:#fff;font-size:.58rem;font-weight:850;line-height:1;box-shadow:0 3px 10px rgba(11,27,43,.16);pointer-events:none}
.wizcfg3-layer-marker--cover{left:10%;top:17%}
.wizcfg3-layer-marker--visco{left:14%;top:26%}
.wizcfg3-layer-marker--comfort{left:18%;top:32%}
.wizcfg3-layer-marker--posture{left:24%;top:41.5%}
.wizcfg3-layer-marker--zone{left:30%;top:50%}
.wizcfg3-layer-marker--support{left:36%;top:70%}

.wizcfg3-personal-layers{padding:0 12px 11px}
.wizcfg3-personal-layers h4{margin:0 0 6px!important;color:var(--wizcfg3-ink)!important;font-size:.69rem!important;line-height:1.3!important;font-weight:750!important}
.wizcfg3-personal-layer{border-top:1px solid #edf1f0;background:#fff}
.wizcfg3-personal-layer:last-child{border-bottom:0}
.wizcfg3-structure-layer{display:grid;grid-template-columns:22px minmax(0,1fr);gap:8px;align-items:center;min-height:48px;padding:9px 0;border-top:1px solid #edf1f0}
.wizcfg3-structure-layer:last-child{border-bottom:0}
.wizcfg3-personal-layer summary{position:relative;display:grid;grid-template-columns:22px minmax(0,1fr) 22px;gap:8px;align-items:center;padding:9px 0;list-style:none;cursor:pointer}
.wizcfg3-personal-layer summary::-webkit-details-marker{display:none}
.wizcfg3-personal-layer summary::after{content:"+";display:flex;align-items:center;justify-content:center;width:22px;height:22px;border:1px solid #d5e3df;border-radius:6px;background:#fff;color:var(--wizcfg3-primary);font-size:15px;font-weight:600;line-height:1;transition:transform .18s ease,background-color .18s ease}
.wizcfg3-personal-layer[open] summary::after{transform:rotate(45deg);background:#eef8f6}
.wizcfg3-personal-layer-num{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:6px;background:color-mix(in srgb,var(--wizcfg3-layer-color,#2d8c8c) 12%,white);color:var(--wizcfg3-primary);font-size:.64rem;font-weight:850;line-height:1}
.wizcfg3-personal-layer-copy{display:grid;gap:2px;min-width:0;text-align:left}
.wizcfg3-personal-layer-copy strong{color:var(--wizcfg3-ink);font-size:.69rem;line-height:1.25;font-weight:740}
.wizcfg3-personal-layer-copy small{color:#73817f;font-size:.62rem;line-height:1.3;font-weight:500}
.wizcfg3-personal-layer-body{padding:0 27px 10px 30px;text-align:left}
.wizcfg3-personal-layer-body p{margin:0!important;color:#687875!important;font-size:.61rem!important;line-height:1.5!important}

/* =========================================================
   GENERAL MATTRESS CHARACTERISTICS
   ========================================================= */
.wizcfg3-general-card{margin-top:11px;padding:12px;border:1px solid rgba(45,140,140,.16);border-radius:11px;background:#f4faf8}
.wizcfg3-general-head h3{margin:4px 0 0!important;color:var(--wizcfg3-ink)!important;font-size:.9rem!important;line-height:1.2!important;font-weight:750!important;letter-spacing:-.018em!important}
.wizcfg3-general-head p{margin:5px 0 0!important;color:#71807c!important;font-size:.64rem!important;line-height:1.4!important}
.wizcfg3-general-list{display:grid;grid-template-columns:1fr;gap:6px;margin:11px 0 0!important;padding:0!important;list-style:none!important}
.wizcfg3-general-list li{display:grid;grid-template-columns:24px minmax(0,1fr);gap:8px;align-items:center;min-height:37px;margin:0!important;padding:6px 7px;border:1px solid #dbe8e4;border-radius:8px;background:#fff}
.wizcfg3-general-num{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:6px;background:#edf7f5;color:var(--wizcfg3-primary);font-size:.59rem;font-weight:850;line-height:1}
.wizcfg3-general-list li div{display:grid;gap:2px;min-width:0;text-align:left}
.wizcfg3-general-list strong{color:#344a46;font-size:.66rem;line-height:1.28;font-weight:700}
.wizcfg3-general-list li div span{color:#778581;font-size:.59rem;line-height:1.25}

/* =========================================================
   VIEWPORT ASSEMBLY ANIMATION
   ========================================================= */
.wizcfg3-has-result-animations [data-wizcfg3-assemble] img,
.wizcfg3-has-result-animations [data-wizcfg3-assemble] .wizcfg3-layer-marker{opacity:0}
.wizcfg3-has-result-animations [data-wizcfg3-assemble] img{transform:translateY(calc(var(--wizcfg3-layer-offset,0px) - 16px)) scale(.995)}
.wizcfg3-has-result-animations [data-wizcfg3-assemble] .wizcfg3-layer-marker{transform:translateY(-6px) scale(.88)}
.wizcfg3-has-result-animations [data-wizcfg3-assemble].is-visible img{animation:wizcfg3AssemblyLayer 1.05s cubic-bezier(.2,.72,.25,1) both;animation-delay:calc(300ms + (var(--wizcfg3-step,0) * 170ms))}
.wizcfg3-has-result-animations [data-wizcfg3-assemble].is-visible .wizcfg3-layer-marker{animation:wizcfg3AssemblyMarker .85s ease-out both;animation-delay:calc(300ms + (var(--wizcfg3-step,0) * 170ms) + 330ms)}
@keyframes wizcfg3AssemblyLayer{from{opacity:0;transform:translateY(calc(var(--wizcfg3-layer-offset,0px) - 16px)) scale(.995)}to{opacity:1;transform:translateY(var(--wizcfg3-layer-offset,0px)) scale(1)}}
@keyframes wizcfg3AssemblyMarker{from{opacity:0;transform:translateY(-6px) scale(.88)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(prefers-reduced-motion:reduce){
  .wizcfg3-destination-root [data-wizcfg3-assemble] img,
  .wizcfg3-destination-root [data-wizcfg3-assemble] .wizcfg3-layer-marker{opacity:1!important;transform:none!important;animation:none!important}
  .wizcfg3-destination-root [data-wizcfg3-assemble] img{transform:translateY(var(--wizcfg3-layer-offset,0px))!important}
}

/* =========================================================
   DESKTOP / TABLET ENHANCEMENTS
   ========================================================= */
@media(min-width:641px){
  .wizcfg3-dest-shell{margin-bottom:32px}
  .wizcfg3-result-head{padding:21px 22px 18px;gap:15px}
  .wizcfg3-result-head h1{font-size:1.45rem!important}
  .wizcfg3-result-head p{font-size:.9rem!important}
  .wizcfg3-purchase-head p{font-size:.84rem!important}
  .wizcfg3-result-person{padding:12px 10px 11px}
  .wizcfg3-result-person-side{font-size:.62rem}
  .wizcfg3-result-person strong{font-size:.98rem}
  .wizcfg3-result-person-sensation,.wizcfg3-result-person a{font-size:.72rem}
  .wizcfg3-front-visual{padding:0}

  .wizcfg3-gallery-section,.wizcfg3-details-section{margin-top:16px;padding:20px}
  .wizcfg3-section-heading{margin-bottom:18px}
  .wizcfg3-section-heading h2{font-size:1.36rem!important}
  .wizcfg3-section-heading p{font-size:.86rem!important}
  .wizcfg3-gallery-track{display:grid;grid-auto-flow:initial;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;overflow:visible;padding:0;scroll-snap-type:none}
  .wizcfg3-gallery-item{scroll-snap-align:none}
  .wizcfg3-gallery-dots{display:none}

  .wizcfg3-detail-card-head{padding:16px 16px 11px}
  .wizcfg3-detail-card-head h3{font-size:1.25rem!important}
  .wizcfg3-detail-metrics{font-size:.65rem!important}
  .wizcfg3-sensation{padding:6px 8px;font-size:.63rem}
  .wizcfg3-personal-layers{padding:2px 15px 13px}
  .wizcfg3-personal-layers h4{font-size:.75rem!important}
  .wizcfg3-personal-layer summary{grid-template-columns:24px minmax(0,1fr) 24px;gap:9px;padding:10px 0}
  .wizcfg3-personal-layer-copy strong{font-size:.75rem}
  .wizcfg3-personal-layer-copy small{font-size:.68rem}
  .wizcfg3-personal-layer-body{padding:0 30px 11px 33px}
  .wizcfg3-personal-layer-body p{font-size:.68rem!important}

  .wizcfg3-general-card{margin-top:14px;padding:16px}
  .wizcfg3-general-head h3{font-size:1rem!important}
  .wizcfg3-general-head p{font-size:.7rem!important}
  .wizcfg3-general-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 12px;margin-top:14px!important}
  .wizcfg3-general-list li{min-height:40px;padding:7px 8px}
  .wizcfg3-general-list strong{font-size:.7rem}
  .wizcfg3-general-list li div span{font-size:.64rem}
}

@media(min-width:920px){
  .wizcfg3-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  .wizcfg3-gallery-track{grid-template-columns:repeat(4,minmax(0,1fr))}
}


/* =========================================================
   0.4.1 · NO CONFIGURATION STATE
   ========================================================= */
.wizcfg3-no-data-card{width:min(680px,100%);margin:0 auto 22px;padding:27px 20px;border:1px solid rgba(45,140,140,.16);border-radius:14px;background:linear-gradient(180deg,#fff 0%,#f7fbfa 100%);box-shadow:0 8px 28px rgba(18,38,63,.045);text-align:center}
.wizcfg3-no-data-icon{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;margin:0 auto 13px;border-radius:10px;background:#edf7f5;color:var(--wizcfg3-primary);font-size:1rem;font-weight:800;line-height:1}
.wizcfg3-no-data-card h2{margin:0 0 9px!important;color:var(--wizcfg3-ink)!important;font-size:1.22rem!important;line-height:1.2!important;font-weight:780!important;letter-spacing:-.03em!important}
.wizcfg3-no-data-card p{max-width:510px;margin:0 auto 18px!important;color:var(--wizcfg3-muted)!important;font-size:.76rem!important;line-height:1.52!important}
.wizcfg3-no-data-button{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 18px;border-radius:9px;background:var(--wizcfg3-ink);color:#fff!important;font-size:.79rem;font-weight:800;line-height:1;text-decoration:none!important}
.wizcfg3-no-data-button:hover{background:#163047;color:#fff!important}
html.wizcfg3-no-data-mode .mfn-variations-wrapper,
html.wizcfg3-no-data-mode .woocommerce-variation.single_variation,
html.wizcfg3-no-data-mode .alma-product-eligibility,
html.wizcfg3-no-data-mode .wlr-manual,
html.wizcfg3-no-data-mode form.cart .single_add_to_cart_button,
html.wizcfg3-no-data-mode .wizcfg3-purchase-cart,
html.wizcfg3-no-data-mode .wizcfg3-sticky-cart{display:none!important}

/* =========================================================
   0.4.1 · PURCHASE BLOCK
   ========================================================= */
.wizcfg3-purchase-card{width:100%;margin:0;padding:16px 14px;border:1px solid #dce7e4;border-radius:var(--wizcfg3-radius);background:#fff;box-shadow:0 8px 26px rgba(18,38,63,.045)}
.wizcfg3-purchase-head{margin-bottom:14px}
.wizcfg3-purchase-head h2{margin:4px 0 0!important;color:var(--wizcfg3-ink)!important;font-size:1.06rem!important;line-height:1.2!important;font-weight:760!important;letter-spacing:-.025em!important}
.wizcfg3-purchase-head p{max-width:620px;margin:6px 0 0!important;color:#6b7b78!important;font-size:.76rem!important;line-height:1.48!important}
.wizcfg3-purchase-price{display:flex;align-items:baseline;min-height:42px;margin:0 0 12px;color:var(--wizcfg3-ink)}
.wizcfg3-price-line{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 9px}
.wizcfg3-price-line del{color:#929b99;font-size:.82rem;line-height:1}
.wizcfg3-price-line strong{color:var(--wizcfg3-primary);font-size:1.48rem;line-height:1;font-weight:800;letter-spacing:-.035em}
.wizcfg3-price-line small{color:#87928f;font-size:.58rem;line-height:1.2}
.wizcfg3-purchase-price>span{color:#7a8784;font-size:.72rem;font-weight:600}
.wizcfg3-purchase-measure-label{display:grid;gap:6px;margin:0;color:var(--wizcfg3-ink);font-size:.7rem;font-weight:750;line-height:1.2}
.wizcfg3-purchase-measure,.wizcfg3-sticky-measure{appearance:none;-webkit-appearance:none;width:100%;height:44px;padding:0 38px 0 12px;border:1px solid #ccd9d6;border-radius:9px;background-color:#fff;background-image:linear-gradient(45deg,transparent 50%,#60736e 50%),linear-gradient(135deg,#60736e 50%,transparent 50%);background-position:calc(100% - 17px) 19px,calc(100% - 12px) 19px;background-size:5px 5px,5px 5px;background-repeat:no-repeat;color:var(--wizcfg3-ink);font-family:inherit;font-size:.75rem;font-weight:650;line-height:1;box-shadow:none!important}
.wizcfg3-purchase-measure:focus,.wizcfg3-sticky-measure:focus{border-color:var(--wizcfg3-primary);outline:2px solid rgba(45,140,140,.12);outline-offset:1px}
.wizcfg3-purchase-cart{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-height:49px!important;margin:12px 0 0!important;padding:0 16px!important;border:1px solid var(--wizcfg3-ink)!important;border-radius:9px!important;background:var(--wizcfg3-ink)!important;color:#fff!important;font-family:inherit!important;font-size:.82rem!important;font-weight:800!important;line-height:1!important;box-shadow:none!important;cursor:pointer!important}
.wizcfg3-purchase-cart:hover:not(:disabled){background:#163047!important}
.wizcfg3-purchase-cart:disabled,.wizcfg3-sticky-button:disabled{opacity:.45!important;cursor:not-allowed!important}
.wizcfg3-micro-proof{display:flex;align-items:center;justify-content:flex-start;gap:5px;min-height:29px;margin:10px 0 0;padding-top:10px;border-top:1px solid #edf1f0;color:#536560!important;font-size:.68rem;line-height:1.3;text-align:left;text-decoration:none!important;cursor:pointer}
.wizcfg3-micro-proof-star{color:#e1b900;font-size:.78rem;line-height:1}
.wizcfg3-micro-proof strong{color:#304844;font-size:.7rem;font-weight:800}

#opiniones-wizleep{scroll-margin-top:90px}
.wizcfg3-alma-slot{width:100%;margin-top:11px;padding-top:11px;border-top:1px solid #edf1f0}
.wizcfg3-alma-slot[hidden]{display:none!important}
.wizcfg3-alma-slot .alma-product-eligibility{display:block!important;width:100%!important;max-width:100%!important;margin:0!important}

/* Native Woo controls remain functional as the source of truth, but their
   visible UI is replaced by the V3 purchase block once the proxy is ready. */
html.wizcfg3-purchase-proxy-active .mfn-variations-wrapper,
html.wizcfg3-purchase-proxy-active .woocommerce-variation.single_variation,
html.wizcfg3-purchase-proxy-active .alma-product-eligibility,
html.wizcfg3-purchase-proxy-active form.variations_form button.single_add_to_cart_button,
html.wizcfg3-purchase-proxy-active form.variations_form .woocommerce-variation-add-to-cart>.quantity{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important}

/* =========================================================
   0.4.1 · BOTTOM STICKY PURCHASE BAR
   ========================================================= */
.wizcfg3-sticky-cart{position:fixed;left:0;right:0;bottom:0;z-index:2147481000;display:flex;align-items:center;justify-content:center;min-height:64px;padding:8px max(10px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));background:rgba(255,255,255,.96);border-top:1px solid #dbe5e2;box-shadow:0 -8px 28px rgba(11,27,43,.10);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);transition:transform .2s ease,opacity .2s ease,visibility .2s ease}
.wizcfg3-sticky-cart.is-hidden{transform:translateY(calc(100% + 8px));opacity:0;visibility:hidden;pointer-events:none}
.wizcfg3-sticky-cart-inner{display:grid;grid-template-columns:84px minmax(118px,170px) minmax(132px,190px);gap:7px;align-items:center;justify-content:center;width:100%;max-width:500px;margin:0 auto}
.wizcfg3-sticky-price{display:flex;flex-direction:column;justify-content:center;min-width:0;height:44px;color:var(--wizcfg3-ink,#0b1b2b);font-size:.66rem;line-height:1.1;text-align:left}
.wizcfg3-sticky-price strong{display:block;overflow:hidden;color:var(--wizcfg3-primary,#2d8c8c);font-size:.92rem;font-weight:820;line-height:1.05;letter-spacing:-.02em;text-overflow:ellipsis;white-space:nowrap}
.wizcfg3-sticky-price span{color:#73817e;font-size:.59rem;font-weight:650}
.wizcfg3-sticky-measure{height:44px;margin-bottom:0;padding-left:9px;padding-right:30px;background-position:calc(100% - 14px) 19px,calc(100% - 9px) 19px;font-size:.68rem}
.wizcfg3-sticky-button{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;height:44px!important;min-height:44px!important;margin:0!important;padding:0 10px!important;border:1px solid var(--wizcfg3-ink,#0b1b2b)!important;border-radius:9px!important;background:var(--wizcfg3-ink,#0b1b2b)!important;color:#fff!important;font-family:inherit!important;font-size:.68rem!important;font-weight:800!important;line-height:1!important;box-shadow:none!important}
html.wizcfg3-has-sticky-cart body{padding-bottom:74px!important}

@media(min-width:641px){
  .wizcfg3-purchase-card{margin-top:0;padding:20px}
  .wizcfg3-purchase-head h2{font-size:1.22rem!important}
  .wizcfg3-purchase-head p{font-size:.76rem!important}
}

@media(max-width:430px){
  .wizcfg3-sticky-cart{padding-left:7px;padding-right:7px}
  .wizcfg3-sticky-button{font-size:.63rem!important;padding:0 6px!important}
  .wizcfg3-sticky-measure{font-size:.63rem;padding-left:7px;padding-right:25px}
  .wizcfg3-sticky-price strong{font-size:.84rem}
}


/* =========================================================
   DESTINATION LAYOUT · 0.4.9
   ========================================================= */

/* Full-screen boot overlay. CSS is loaded in <head> before wp_body_open renders it. */
body.wizcfg3-loading-active{overflow:hidden!important;background:#f7f7f3!important}
body.wizcfg3-loading-active>:not(#wizcfg3-loading-overlay){visibility:hidden!important}
#wizcfg3-loading-overlay{
  position:fixed;inset:0;z-index:2147482999;background:#f7f7f3;
  visibility:visible!important;opacity:1;
  transition:opacity 1s cubic-bezier(.4,0,.2,1);
}
#wizcfg3-loading-overlay.is-hidden{opacity:0;pointer-events:none}
body.wizcfg3-loading-active::before,
body.wizcfg3-loading-active::after,
body.wizcfg3-loading-leaving::before,
body.wizcfg3-loading-leaving::after{
  position:fixed;z-index:2147483000;pointer-events:none;visibility:visible!important;
  transition:opacity 1s cubic-bezier(.4,0,.2,1);
}
body.wizcfg3-loading-active::before,
body.wizcfg3-loading-leaving::before{
  content:"";left:50%;top:calc(50% - 34px);width:220px;height:82px;
  background:url("https://wizleep.com/wp-content/uploads/2025/05/logo-wizleep.svg") center/contain no-repeat;
  transform:translate(-50%,-50%) scale(1);
  transform-origin:center;
  will-change:transform,opacity;
}
body.wizcfg3-loading-active::before{animation:wizcfg3LogoPulse 1.9s cubic-bezier(.45,0,.55,1) infinite}
body.wizcfg3-loading-active::after,
body.wizcfg3-loading-leaving::after{
  content:"Cargando tu configuración personalizada...";left:50%;top:calc(50% + 44px);transform:translateX(-50%);
  width:min(88vw,420px);color:#32433f;font-size:.82rem;font-weight:650;line-height:1.45;text-align:center;
}
body.wizcfg3-loading-active::after{animation:wizcfg3LoadingText 1.9s ease-in-out infinite}
body.wizcfg3-loading-leaving::before,
body.wizcfg3-loading-leaving::after{opacity:0}
@keyframes wizcfg3LogoPulse{
  0%,100%{transform:translate(-50%,-50%) scale(1);opacity:.9}
  50%{transform:translate(-50%,-50%) scale(1.045);opacity:1}
}
@keyframes wizcfg3LoadingText{0%,100%{opacity:.58}50%{opacity:1}}
@media(max-width:480px){
  body.wizcfg3-loading-active::before{width:180px;height:68px}
  body.wizcfg3-loading-active::after{top:calc(50% + 38px);font-size:.78rem}
}

/* Height belongs to the visual, not the heading. */
.wizcfg3-destination-root .wizcfg3-front-visual>.wizcfg3-height-badge{left:auto;right:12px}

/* Page order: front -> detail -> photos -> purchase -> models. */
.wizcfg3-page-grid{
  display:grid;grid-template-columns:minmax(0,1fr);
  grid-template-areas:"result" "details" "gallery" "purchase" "models";
  gap:12px;align-items:start;
}
.wizcfg3-page-grid>.wizcfg3-result-card{grid-area:result;min-width:0}
.wizcfg3-page-grid.is-one-person{grid-template-areas:"details" "gallery" "purchase" "models"}
.wizcfg3-details-wrap{grid-area:details;min-width:0}
.wizcfg3-gallery-wrap{grid-area:gallery;min-width:0}
.wizcfg3-purchase-column{grid-area:purchase;min-width:0}
.wizcfg3-models-wrap{grid-area:models;min-width:0}
.wizcfg3-details-wrap>.wizcfg3-details-section,.wizcfg3-gallery-wrap>.wizcfg3-gallery-section{margin-top:0}

/* Standard models have no ZonePad. Markers follow the visible layers. */
.wizcfg3-stack.is-side.is-no-zone .wizcfg3-layer-marker--comfort{top:40%}
.wizcfg3-stack.is-side.is-no-zone .wizcfg3-layer-marker--posture{top:51%}

/* Personal layers */
.wizcfg3-personal-layers-title{
  margin:15px 0 9px!important;color:var(--wizcfg3-ink)!important;
  font-size:.73rem!important;line-height:1.42!important;font-weight:400!important;
}
.wizcfg3-firmness-mini{display:flex;align-items:center;gap:7px;margin-top:4px;color:#7a8885;font-size:.61rem;font-weight:600;line-height:1}
.wizcfg3-firmness-mini>i{position:relative;display:block;width:70px;height:5px;overflow:hidden;border-radius:999px;background:#e8eeee}
.wizcfg3-firmness-mini>i>b{position:absolute;inset:0 auto 0 0;display:block;height:100%;border-radius:inherit;background:var(--wizcfg3-layer-color,var(--wizcfg3-primary))}

/* Purchase microcopy */
.wizcfg3-promo-row{display:flex;align-items:center;gap:8px;min-height:27px;margin:0 0 9px}
.wizcfg3-promo-row[hidden]{display:none!important}
.wizcfg3-promo-row strong{display:inline-flex;align-items:center;justify-content:center;min-height:25px;padding:4px 8px;border-radius:7px;background:var(--wizcfg3-accent);color:#fff;font-size:.73rem;font-weight:850;line-height:1}
.wizcfg3-promo-row span{color:#75817e;font-size:.69rem;font-weight:750;line-height:1.25}
.wizcfg3-other-measure{display:inline-block;margin:7px 0 0;color:var(--wizcfg3-primary)!important;font-size:.68rem;font-weight:750;line-height:1.35;text-decoration:none!important}
.wizcfg3-other-measure:hover{text-decoration:underline!important}
.wizcfg3-purchase-exact{margin:8px 0 0!important;color:#85908d!important;font-size:.65rem!important;line-height:1.4!important;text-align:center!important}
.wizcfg3-purchase-benefits{display:grid;gap:7px;margin-top:13px;padding-top:13px;border-top:1px solid #dce5e3}
.wizcfg3-purchase-benefits span{display:block;color:#5e706c;font-size:.7rem;font-weight:680;line-height:1.35}
.wizcfg3-finance-label{display:grid;gap:3px;margin-top:11px;padding:10px 11px;border-radius:9px;background:#f2f7f6}
.wizcfg3-finance-label strong{color:#344844;font-size:.73rem;font-weight:800;line-height:1.3}
.wizcfg3-finance-label span{color:#778783;font-size:.65rem;line-height:1.35}

/* Model comparison */
.wizcfg3-model-selector{padding:15px 10px;border:1px solid #dfe8e6;border-radius:var(--wizcfg3-radius);background:#fff;box-shadow:0 5px 20px rgba(18,38,63,.035);overflow:hidden}
.wizcfg3-model-grid{display:grid;grid-template-columns:1fr;gap:10px;align-items:stretch}
.wizcfg3-model-card{position:relative;display:grid;grid-template-columns:38% minmax(0,62%);height:160px;overflow:hidden;border:1px solid #dfe8e6;border-radius:12px;background:#fff;transition:border-color .18s ease,box-shadow .18s ease}
.wizcfg3-model-card.is-current{border-color:rgba(45,140,140,.48);box-shadow:0 0 0 1px rgba(45,140,140,.11)}
.wizcfg3-model-image{position:relative;display:flex;align-items:center;justify-content:center;min-width:0;padding:10px;border-right:1px solid #edf1f0;background:#fff}
.wizcfg3-model-image img{display:block;width:100%;height:100%;object-fit:contain}
.wizcfg3-model-current{position:absolute;top:8px;left:8px;display:inline-flex;align-items:center;gap:4px;min-height:24px;padding:4px 7px;border-radius:999px;background:#fff;color:var(--wizcfg3-primary);font-size:.58rem;font-weight:800;line-height:1;box-shadow:0 4px 14px rgba(18,38,63,.10)}
.wizcfg3-model-current i{display:inline-flex;align-items:center;justify-content:center;width:15px;height:15px;border-radius:50%;background:var(--wizcfg3-primary);color:#fff;font-style:normal;font-size:.52rem}
.wizcfg3-model-body{display:flex;flex-direction:column;gap:4px;min-width:0;padding:10px 10px 9px}
.wizcfg3-model-body .wizcfg3-model-price{margin-top:5px}
.wizcfg3-model-body .wizcfg3-model-switch{margin-top:auto!important}
.wizcfg3-model-body h3{margin:0!important;color:var(--wizcfg3-ink)!important;font-size:.88rem!important;line-height:1.18!important;font-weight:780!important}
.wizcfg3-model-body ul{display:grid;align-content:start;gap:3px;margin:0!important;padding:0!important;list-style:none!important}
.wizcfg3-model-body li{position:relative;margin:0!important;padding-left:14px;color:#667773;font-size:.64rem;line-height:1.28}
.wizcfg3-model-body li::before{content:"✓";position:absolute;left:0;top:0;color:var(--wizcfg3-primary);font-weight:850}
.wizcfg3-model-price{display:flex;align-items:baseline;gap:5px;min-height:21px;margin:0}
.wizcfg3-model-price del{color:#909b98;font-size:.61rem}
.wizcfg3-model-price strong{color:var(--wizcfg3-primary);font-size:.94rem;font-weight:820}
.wizcfg3-model-price.is-unavailable{color:#899490;font-size:.62rem}
.wizcfg3-model-switch{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;height:32px!important;min-height:32px!important;margin:0!important;padding:0 8px!important;border:1px solid var(--wizcfg3-primary)!important;border-radius:7px!important;background:#f0f8f7!important;color:var(--wizcfg3-primary)!important;font-family:inherit!important;font-size:.63rem!important;font-weight:800!important;line-height:1!important;box-shadow:none!important;cursor:pointer!important;transition:background .16s ease,color .16s ease,border-color .16s ease}
.wizcfg3-model-switch:hover:not(:disabled){background:var(--wizcfg3-primary)!important;color:#fff!important}
.wizcfg3-model-switch:disabled:not(.is-selected){opacity:1;background:#eaf6f4!important;color:#247d79!important;border-color:#6fb2ae!important;cursor:not-allowed!important}
.wizcfg3-model-switch.is-selected{border-color:#d8e2df!important;background:#f4f6f6!important;color:#667773!important;opacity:1!important;cursor:default!important}

@media(max-width:640px){
  .wizcfg3-model-card{grid-template-columns:112px minmax(0,1fr);height:160px}
  .wizcfg3-model-image{padding:8px}
  .wizcfg3-model-body{padding:10px}
  .wizcfg3-model-body h3{font-size:.92rem!important}
  .wizcfg3-model-body li{font-size:.69rem}
}

@media(min-width:641px){
  .wizcfg3-model-selector{padding:20px}
  .wizcfg3-model-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
  .wizcfg3-model-card{grid-template-columns:1fr;grid-template-rows:148px minmax(0,1fr);height:330px}
  .wizcfg3-model-image{padding:14px;border-right:0;border-bottom:1px solid #edf1f0}
  .wizcfg3-model-image img{height:120px}
  .wizcfg3-model-body{padding:12px}
  .wizcfg3-model-body h3{font-size:.96rem!important}
  .wizcfg3-model-body li{font-size:.69rem}
  .wizcfg3-personal-layers-title{font-size:.8rem!important}
  .wizcfg3-firmness-mini{font-size:.66rem}
  .wizcfg3-promo-row span{font-size:.74rem}
  .wizcfg3-other-measure{font-size:.73rem}
  .wizcfg3-purchase-exact{font-size:.69rem!important}
  .wizcfg3-purchase-benefits span{font-size:.75rem}
  .wizcfg3-finance-label strong{font-size:.78rem}
  .wizcfg3-finance-label span{font-size:.7rem}
}

@media(min-width:920px){
  .wizcfg3-page-grid{
    grid-template-columns:minmax(0,1fr) minmax(300px,350px);
    grid-template-areas:"result purchase" "details purchase" "gallery purchase" "models purchase";
    gap:18px;
  }
  .wizcfg3-page-grid.is-one-person{grid-template-areas:"details purchase" "gallery purchase" "models purchase"}
  .wizcfg3-purchase-column{position:sticky;top:74px;align-self:start}
  .wizcfg3-detail-grid.is-one{grid-template-columns:1fr;gap:14px;align-items:start}
  .wizcfg3-detail-card.is-full-structure .wizcfg3-side-visual{max-width:760px;margin:0 auto}
  .wizcfg3-sticky-cart-inner{grid-template-columns:100px 180px 220px;max-width:540px;gap:9px}
}


/* Match the pre-test layer accordions without changing personalized materials. */
.wizcfg3-destination-root .wizcfg3-personal-layer{border:1px solid #dfe8e6;border-radius:10px;margin-top:8px;overflow:hidden;background:var(--wizcfg3-surface,#fff)}
.wizcfg3-destination-root .wizcfg3-personal-layer:last-child{border-bottom:1px solid #dfe8e6}
.wizcfg3-destination-root .wizcfg3-personal-layer summary{grid-template-columns:27px minmax(0,1fr) 16px;gap:8px;padding:13px}
.wizcfg3-destination-root .wizcfg3-personal-layer summary:after{content:'+';width:auto;height:auto;border:0;border-radius:0;background:transparent;color:var(--wizcfg3-primary);transform:none;font-size:17px}
.wizcfg3-destination-root .wizcfg3-personal-layer[open] summary:after{content:'−';background:transparent;transform:none}
.wizcfg3-destination-root .wizcfg3-personal-layer-num{width:27px;height:27px;border-radius:7px;background:#f6f9f9;font-size:11px;font-weight:600}
.wizcfg3-destination-root .wizcfg3-personal-layer-copy strong{font-size:13px;line-height:1.5;font-weight:650}
.wizcfg3-destination-root .wizcfg3-personal-layer-copy small{font-size:11px;line-height:1.5}
.wizcfg3-destination-root .wizcfg3-personal-layer-body{padding:0 14px 14px}
.wizcfg3-destination-root .wizcfg3-personal-layer-body p{font-size:12px!important;line-height:1.6!important}
.wizcfg3-destination-root .wizcfg3-density-badge{display:inline-flex;align-items:center;gap:6px;max-width:100%;box-sizing:border-box;border-radius:20px;background:#fff8df;color:#625127;font-size:10px;font-weight:600;line-height:1.5;padding:6px 10px;margin:10px 0 0}
.wizcfg3-destination-root .wizcfg3-density-badge>span{color:#dca900;font-size:15px;flex:none}
.wizcfg3-configuration-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.wizcfg3-details-section .wizcfg3-configuration-toolbar h2{margin:0!important;flex:1 1 220px;padding:0;background:transparent;font-size:20px!important;line-height:1.3!important;font-weight:500!important}
.wizcfg3-destination-root .wizcfg3-restart-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:10px 14px;box-sizing:border-box;border:1px solid #cddad7;border-radius:10px;background:transparent;color:#42645f!important;font-size:12px;font-weight:550;line-height:1.4;text-decoration:none!important}
.wizcfg3-restart-button>span{font-size:21px;line-height:1}
.wizcfg3-destination-root .wizcfg3-restart-button:hover{background:#f2f7f5;color:#294d46!important}
.wizcfg3-destination-root .wizcfg3-restart-button:focus-visible,.wizcfg3-comfort-toggle:focus-visible{outline:2px solid #2d8c8c;outline-offset:3px}
@media(max-width:640px){.wizcfg3-details-section .wizcfg3-configuration-toolbar h2{flex-basis:100%;font-size:18px!important}.wizcfg3-configuration-toolbar .wizcfg3-restart-button{width:100%}}


.wizcfg3-destination-root .wizcfg3-personal-layer summary{align-items:start}
.wizcfg3-layer-index{display:flex;flex-direction:column;align-items:center;gap:5px;align-self:start}
.wizcfg3-layer-star{display:grid;place-items:center;width:27px;height:24px;border-radius:7px;background:#fff8df;color:#dca900;font-size:16px;line-height:1}
.wizcfg3-destination-root .wizcfg3-personal-layer summary:after{align-self:start;margin-top:3px}
.wizcfg3-destination-root .wizcfg3-structure-layer{border:1px solid #dfe8e6;border-radius:10px;margin-top:8px;padding:13px;grid-template-columns:27px minmax(0,1fr)}
.wizcfg3-destination-root .wizcfg3-structure-layer:last-child{border-bottom:1px solid #dfe8e6}
.wizcfg3-general-list>li{display:block!important;padding:0!important;border:0!important;background:none!important}
.wizcfg3-destination-root .wizcfg3-restart-button{cursor:pointer}


/* Model artwork: native canvas, separate static background, mirrored half layers. */
.wizcfg3-stack.is-model-assets{aspect-ratio:908/639}
.wizcfg3-stack.is-model-assets img.wizcfg3-mirror-front{scale:-1 1}
.wizcfg3-stack.is-model-assets img.wizcfg3-stack-background{opacity:1!important;transform:none!important;animation:none!important}
.wizcfg3-stack.is-model-assets.is-side.is-left{transform:scaleX(-1)}
.wizcfg3-stack.is-model-assets.is-side.is-left>.wizcfg3-layer-marker{scale:-1 1}


/* Shared structural numbering for all mattress layers. */
.wizcfg3-layer-marker-number{display:grid;place-items:center;width:100%;height:100%}
.wizcfg3-layer-marker>.wizcfg3-marker-badge{position:absolute;left:calc(100% + 4px);top:50%;translate:0 -50%;display:grid;place-items:center;width:18px;height:18px;border:1px solid #fff;border-radius:5px;background:#fff8df;color:#dca900;font-size:13px;box-shadow:0 2px 5px #0b1b2b1a}
.wizcfg3-layer-marker>.wizcfg3-marker-badge.wizcfg3-layer-magic{background:#e5f4e9;color:#27804b}
#wizcfg3-unified-product .wizcfg3-layer-marker>.wizcfg3-marker-badge.wizcfg3-layer-magic i{font-size:11px}
.wizcfg3-layer-numbers{display:inline-flex;align-items:center;gap:3px;white-space:nowrap}
.wizcfg3-general-list .wizcfg3-layer-index{align-items:flex-start}
.wizcfg3-height-symbol{font-size:16px!important;font-weight:500!important}


/* Compact references in general features and aligned lateral marker centers. */
.wizcfg3-destination-root .wizcfg3-general-list .wizcfg3-personal-layer summary{grid-template-columns:27px minmax(0,1fr) 16px}
.wizcfg3-destination-root .wizcfg3-general-list .wizcfg3-structure-layer{grid-template-columns:27px minmax(0,1fr)}
.wizcfg3-group-symbol svg{display:block;width:21px;height:21px}
.wizcfg3-personal-layer-copy .wizcfg3-group-reference{color:#32776e}
.wizcfg3-destination-root .wizcfg3-side-visual>.wizcfg3-view-badge{left:auto;right:12px}
.wizcfg3-stack.is-model-assets.is-side{container-type:inline-size;--wizcfg3-marker-size:18px;--wizcfg3-marker-half:9px;--wizcfg3-marker-badge-size:14px;--wizcfg3-marker-gap:3px}
.wizcfg3-stack.is-model-assets.is-side>.wizcfg3-layer-marker{width:var(--wizcfg3-marker-size);height:var(--wizcfg3-marker-size);font-size:9px}
.wizcfg3-stack.is-model-assets.is-side .wizcfg3-marker-badge{width:var(--wizcfg3-marker-badge-size);height:var(--wizcfg3-marker-badge-size);left:calc(100% + var(--wizcfg3-marker-gap));font-size:calc(var(--wizcfg3-marker-badge-size)*.8)}
#wizcfg3-unified-product .wizcfg3-stack.is-model-assets.is-side .wizcfg3-marker-badge.wizcfg3-layer-magic i{font-size:calc(var(--wizcfg3-marker-badge-size)*.65)}
@supports(width:1cqw){
 .wizcfg3-stack.is-model-assets.is-side{--wizcfg3-marker-size:clamp(14px,5cqw,21px);--wizcfg3-marker-half:calc(var(--wizcfg3-marker-size)/2);--wizcfg3-marker-badge-size:clamp(11px,4cqw,16px);--wizcfg3-marker-gap:clamp(2px,.7cqw,4px)}
 .wizcfg3-stack.is-model-assets.is-side>.wizcfg3-layer-marker{font-size:clamp(8px,2.5cqw,10px)}
}


/* View labels remain above every layer of the assembled mattress. */
.wizcfg3-destination-root .wizcfg3-front-visual{position:relative}
.wizcfg3-destination-root .wizcfg3-front-visual>.wizcfg3-view-badge{position:absolute;z-index:110}

