*{box-sizing:border-box;margin:0;padding:0}
body{font-family:'Inter',sans-serif;background:#f8fafc;color:#1e293b}
.app-header{background:#fff;border-bottom:1px solid #e2e8f0;padding:0 4%;height:64px;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:100}
.logo-wrap{display:flex;align-items:center;gap:10px;text-decoration:none}
.logo-dots{display:grid;grid-template-columns:repeat(3,5px);gap:2px}
.logo-dots span{width:5px;height:5px;background:#2563eb;border-radius:1px}
.logo-text-name{font-size:1.05rem;font-weight:900;color:#1e293b;letter-spacing:-0.5px}
.logo-text-sub{font-size:0.5rem;color:#64748b;text-transform:uppercase;letter-spacing:1px}
.hdr-nav{display:flex;align-items:center;gap:1.4rem}
.hdr-nav a{color:#475569;text-decoration:none;font-size:0.85rem;font-weight:500;display:flex;align-items:center;gap:3px}
.hdr-nav a.active{color:#2563eb;border-bottom:2px solid #2563eb;font-weight:700}
.hdr-cart{display:flex;align-items:center;gap:10px;font-weight:700;font-size:0.95rem}
.cart-rel{position:relative}
.cart-badge{position:absolute;top:-6px;right:-8px;background:#2563eb;color:#fff;border-radius:50%;width:16px;height:16px;font-size:.6rem;display:flex;align-items:center;justify-content:center;font-weight:700}
.stepper-bar{background:#fff;border-bottom:1px solid #e2e8f0;padding:0 4%;height:50px;display:flex;align-items:center;overflow-x:auto}
.stp{display:flex;align-items:center;gap:7px;padding:0 10px;font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.4px;color:#94a3b8;cursor:pointer;border:none;background:none;white-space:nowrap}
.stp.done,.stp.active{color:#2563eb}
.stp-num{width:22px;height:22px;border-radius:50%;background:#e2e8f0;color:#94a3b8;display:flex;align-items:center;justify-content:center;font-size:.68rem;font-weight:700}
.stp.done .stp-num,.stp.active .stp-num{background:#2563eb;color:#fff}
.stp-line{width:36px;height:1px;background:#e2e8f0;flex-shrink:0}
.stp-line.done{background:#2563eb}
.page-wrap{max-width:1280px;margin:0 auto;padding:1.5rem 4% 4rem;display:grid;grid-template-columns:1fr 320px;gap:1.5rem;align-items:start}
.main-card{background:#fff;border-radius:12px;border:1px solid #e2e8f0;box-shadow:0 2px 8px rgba(0,0,0,.06)}
.mc-title{padding:1.5rem 1.5rem 1rem;font-size:1.1rem;font-weight:700;border-bottom:1px solid #f1f5f9}
.two-col{display:grid;grid-template-columns:300px 1fr}
.sel-panel{padding:1.2rem 1.4rem;border-right:1px solid #f1f5f9}
.sel-label{font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:#64748b;margin-bottom:.6rem}
.use-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.4rem;margin-bottom:1.4rem}
.use-btn{border:1.5px solid #e2e8f0;border-radius:8px;padding:.55rem .3rem;text-align:center;cursor:pointer;background:#fff;transition:all .15s;position:relative}
.use-btn:hover{border-color:#93c5fd;background:#eff6ff}
.use-btn.active{border-color:#2563eb;background:#eff6ff}
.use-btn.active::after{content:'✓';position:absolute;top:3px;right:5px;color:#fff;background:#2563eb;border-radius:50%;width:14px;height:14px;font-size:.6rem;display:flex;align-items:center;justify-content:center;line-height:14px}
.use-btn i{font-size:1.1rem;color:#94a3b8;display:block;margin-bottom:.2rem}
.use-btn.active i{color:#2563eb}
.use-btn span{font-size:.63rem;font-weight:600;color:#475569;display:block;line-height:1.2}
.slider-wrap{margin-bottom:1.4rem}
.firmness-slider{-webkit-appearance:none;appearance:none;width:100%;height:4px;background:linear-gradient(to right,#2563eb 40%,#e2e8f0 40%);border-radius:2px;outline:none;margin:.5rem 0}
.firmness-slider::-webkit-slider-thumb{-webkit-appearance:none;width:18px;height:18px;border-radius:50%;background:#2563eb;cursor:pointer;border:2px solid #fff;box-shadow:0 1px 4px rgba(37,99,235,.4)}
.slider-labels{display:flex;justify-content:space-between;font-size:.62rem;color:#94a3b8;font-weight:600}
.slider-labels span.active-lbl{color:#2563eb}
.weight-group{display:flex;gap:.4rem;flex-wrap:wrap}
.wgt-btn{border:1.5px solid #e2e8f0;border-radius:6px;padding:.4rem .7rem;font-size:.75rem;font-weight:600;cursor:pointer;background:#fff;color:#475569;transition:all .15s}
.wgt-btn.active{border-color:#2563eb;background:#eff6ff;color:#2563eb}
.reco-panel{padding:1.2rem 1.4rem;display:flex;flex-direction:column;gap:1rem}
.reco-header{display:flex;align-items:center;gap:.6rem;font-size:.85rem;font-weight:700;color:#1e293b}
.badge-rec{background:#22c55e;color:#fff;font-size:.6rem;font-weight:700;padding:2px 8px;border-radius:10px;text-transform:uppercase}
.featured-card{border:1.5px solid #e2e8f0;border-radius:10px;padding:1.1rem;display:grid;grid-template-columns:110px 1fr;gap:1rem}
.foam-visual{height:80px;border-radius:8px;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}
.foam-visual::after{content:'';position:absolute;top:0;right:0;width:20px;height:100%;background:rgba(255,255,255,.2);border-radius:0 8px 8px 0}
.foam-visual::before{content:'';position:absolute;top:0;left:0;right:0;height:14px;background:rgba(255,255,255,.15);border-radius:8px 8px 0 0}
.foam-name{font-size:1.05rem;font-weight:800;margin-bottom:.2rem}
.stars{color:#f59e0b;font-size:.85rem;letter-spacing:1px;margin-bottom:.3rem}
.foam-desc{font-size:.75rem;color:#64748b;line-height:1.5;margin-bottom:.6rem}
.firmeza-row{display:flex;align-items:center;gap:.5rem;margin-bottom:.6rem}
.firmeza-label{font-size:.7rem;font-weight:700;color:#64748b}
.firmeza-bars{display:flex;gap:3px}
.f-bar{width:18px;height:6px;border-radius:2px;background:#e2e8f0}
.f-bar.on{background:#2563eb}
.firmeza-val{font-size:.75rem;font-weight:700;color:#1e293b}
.specs-list{list-style:none;display:flex;flex-direction:column;gap:.3rem}
.specs-list li{font-size:.75rem;color:#475569;display:flex;align-items:center;gap:.4rem}
.specs-list li i{color:#22c55e;font-size:.7rem}
.alts-title{font-size:.78rem;font-weight:700;color:#64748b;margin-bottom:.4rem}
.alt-card{border:1px solid #e2e8f0;border-radius:8px;padding:.7rem;display:grid;grid-template-columns:60px 1fr auto;align-items:center;gap:.7rem;margin-bottom:.5rem;cursor:pointer;transition:border-color .15s}
.alt-card:hover{border-color:#93c5fd}
.alt-foam-vis{height:44px;border-radius:6px}
.alt-name{font-size:.78rem;font-weight:700;margin-bottom:.1rem}
.alt-stars{color:#f59e0b;font-size:.65rem}
.alt-desc{font-size:.65rem;color:#94a3b8;margin-top:.1rem}
.alt-right{text-align:right}
.alt-firmeza{font-size:.65rem;color:#64748b;font-weight:600}
.alt-price-diff{font-size:.8rem;font-weight:700;color:#22c55e;white-space:nowrap}
.alt-price-sub{font-size:.6rem;color:#94a3b8}
.btn-use{width:100%;background:#2563eb;color:#fff;border:none;padding:.9rem;border-radius:8px;font-size:.95rem;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:.5rem;transition:background .2s}
.btn-use:hover{background:#1d4ed8}
.trust-bar{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid #f1f5f9;padding:1rem 1.5rem}
.trust-item{display:flex;align-items:flex-start;gap:.5rem;padding:.3rem}
.trust-item i{color:#94a3b8;font-size:1rem;margin-top:.1rem}
.trust-item h6{font-size:.72rem;font-weight:700;margin-bottom:.1rem}
.trust-item p{font-size:.65rem;color:#94a3b8;line-height:1.4}
/* SIDEBAR */
.sidebar{background:#fff;border-radius:12px;border:1px solid #e2e8f0;box-shadow:0 2px 8px rgba(0,0,0,.06);padding:1.2rem;position:sticky;top:80px}
.sb-title{font-size:.95rem;font-weight:700;margin-bottom:1rem;display:flex;justify-content:space-between;align-items:center}
.sb-edit{font-size:.75rem;color:#2563eb;font-weight:500;text-decoration:none}
.sb-shape-card{background:#f8fafc;border-radius:8px;padding:.8rem;display:flex;align-items:center;gap:.8rem;margin-bottom:1rem}
.sb-foam-3d{width:70px;height:50px;border-radius:6px;background:linear-gradient(135deg,#e2e8f0 0%,#cbd5e1 100%);position:relative;flex-shrink:0}
.sb-foam-3d::after{content:'';position:absolute;bottom:-6px;left:4px;right:-4px;height:6px;background:#94a3b8;border-radius:0 0 4px 4px;transform:perspective(10px) rotateX(5deg)}
.sb-shape-info h5{font-size:.82rem;font-weight:700;margin-bottom:.3rem}
.sb-shape-info p{font-size:.72rem;color:#64748b;line-height:1.6}
.sb-section{margin-bottom:.8rem}
.sb-section-title{font-size:.72rem;font-weight:700;color:#1e293b;margin-bottom:.4rem;text-transform:uppercase;letter-spacing:.3px}
.sb-row{display:flex;justify-content:space-between;align-items:center;font-size:.8rem;margin-bottom:.25rem}
.sb-row.muted{color:#64748b}
.sb-badge{width:8px;height:8px;border-radius:50%;background:#2563eb;display:inline-block;margin-right:4px}
.sb-divider{height:1px;background:#f1f5f9;margin:.8rem 0}
.sb-total-box{background:#f8fafc;border-radius:8px;padding:1rem;margin-bottom:1rem}
.sb-total-label{font-size:.72rem;font-weight:600;color:#64748b;text-transform:uppercase;margin-bottom:.3rem}
.sb-total-value{font-size:1.6rem;font-weight:800;color:#1e293b}
.sb-total-sub{font-size:.65rem;color:#94a3b8}
.btn-cart{width:100%;background:#22c55e;color:#fff;border:none;padding:.9rem;border-radius:8px;font-size:.9rem;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:.5rem;margin-bottom:.5rem;transition:background .2s}
.btn-cart:hover{background:#16a34a}
.secure-line{text-align:center;font-size:.7rem;color:#94a3b8;display:flex;align-items:center;justify-content:center;gap:.3rem}
@media(max-width:900px){.page-wrap{grid-template-columns:1fr}.two-col{grid-template-columns:1fr}.sel-panel{border-right:none;border-bottom:1px solid #f1f5f9}.trust-bar{grid-template-columns:repeat(2,1fr)}.hdr-nav{display:none}}

/* STEP NAVIGATION */
.step-content { display: none; animation: fadeIn 0.3s ease; }
.step-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

.step-footer { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem; border-top: 1px solid #f1f5f9; background: #fff; border-radius: 0 0 12px 12px; }
.btn-prev { background: #f8fafc; color: #64748b; border: 1px solid #e2e8f0; padding: 0.8rem 1.5rem; border-radius: 8px; font-size: 0.85rem; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: all 0.2s; }
.btn-prev:hover { background: #f1f5f9; color: #1e293b; }
.btn-next { background: #2563eb; color: #fff; border: none; padding: 0.8rem 2rem; border-radius: 8px; font-size: 0.85rem; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: all 0.2s; }
.btn-next:hover { background: #1d4ed8; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37,99,235,0.2); }

/* STEP 1: SHAPES */
.shapes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; padding: 1.5rem; }
.shape-card { border: 1.5px solid #e2e8f0; border-radius: 10px; padding: 1rem; text-align: center; cursor: pointer; transition: all 0.2s; }
.shape-card:hover { border-color: #93c5fd; background: #f0f7ff; }
.shape-card.active { border-color: #2563eb; background: #eff6ff; box-shadow: 0 0 0 1px #2563eb; }
.shape-img { height: 80px; margin-bottom: 0.8rem; display: flex; align-items: center; justify-content: center; }
.shape-img img { max-height: 100%; max-width: 100%; object-fit: contain; filter: hue-rotate(170deg) saturate(1.2) brightness(1.05); }
.shape-name { font-size: 0.8rem; font-weight: 700; color: #475569; }

/* STEP 2: DIMENSIONS */
.dim-container { padding: 1rem 2rem; max-width: 800px; margin: 0 auto; }
.dim-layout { display: flex; gap: 3rem; align-items: center; justify-content: center; margin: 2rem; flex-wrap: wrap; }
.dim-visual { flex: 1; min-width: 250px; text-align: center; background: #f8fafc; padding: 2rem; border-radius: 12px; border: 1px dashed #cbd5e1; }
.dim-visual img { max-width: 100%; max-height: 250px; mix-blend-mode: multiply; filter: hue-rotate(170deg) saturate(1.2) brightness(1.05); }
.dim-fields { flex: 1; min-width: 250px; display: flex; flex-direction: column; gap: 1rem; }
.dim-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.5rem; width: 100%; }
.dim-label { font-size: 0.85rem; font-weight: 700; color: #475569; min-width: 140px; }
.dim-input-wrap { position: relative; flex: 1; }
.dim-input-wrap input { width: 100%; padding: 0.8rem 1rem; border: 1.5px solid #e2e8f0; border-radius: 8px; font-size: 1rem; font-weight: 600; transition: border-color 0.2s; }
.dim-input-wrap input:focus { border-color: #2563eb; outline: none; }
.dim-unit { font-size: 0.85rem; font-weight: 600; color: #94a3b8; width: 40px; }

/* STEP 5: EXTRAS */
.extras-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; padding: 1.5rem; }
.extra-card { border: 1.5px solid #e2e8f0; border-radius: 12px; padding: 1.2rem; cursor: pointer; transition: all 0.2s; display: flex; align-items: flex-start; gap: 1rem; }
.extra-card:hover { border-color: #93c5fd; }
.extra-card.active { border-color: #2563eb; background: #f0f7ff; }
.extra-check { width: 20px; height: 20px; border: 2px solid #e2e8f0; border-radius: 4px; display: flex; align-items: center; justify-content: center; margin-top: 2px; flex-shrink: 0; }
.extra-card.active .extra-check { background: #2563eb; border-color: #2563eb; color: #fff; }
.extra-info h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.3rem; }
.extra-info p { font-size: 0.75rem; color: #64748b; line-height: 1.4; }
.extra-price { margin-top: 0.5rem; font-size: 0.85rem; font-weight: 700; color: #2563eb; }

/* STEP 6: RESUMEN */
.resumen-step { padding: 2rem; }
.resumen-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.resumen-col h3 { font-size: 0.9rem; font-weight: 800; margin-bottom: 1rem; text-transform: uppercase; color: #64748b; }
.resumen-item { display: flex; justify-content: space-between; margin-bottom: 0.8rem; font-size: 0.9rem; }
.resumen-item .label { color: #64748b; }
.resumen-item .value { font-weight: 700; color: #1e293b; }

