
:root{--key-purple:#6c4cf1;--key-yellow:#ffd54a;--key-ink:#24202f;--key-muted:#706b7b;--key-line:#e9e5f2;--key-soft:#f8f6ff;--key-good:#258a60;--key-bad:#a43e50}
.active-link{color:var(--key-purple)!important;font-weight:700}.key-hero{padding:64px 0 58px;background:radial-gradient(circle at 85% 12%,rgba(255,213,74,.32),transparent 28%),linear-gradient(180deg,#fbfaff,#fff)}
.key-hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:64px;align-items:center}.key-hero h1{margin:12px 0 18px;font-size:clamp(2.5rem,5vw,4.65rem);line-height:1.02;letter-spacing:-.05em}.back-link{display:inline-flex;margin-bottom:24px;color:var(--key-muted);font-size:.92rem;font-weight:600}
.hero-points{display:flex;flex-wrap:wrap;gap:10px;margin:25px 0}.hero-points span{padding:9px 13px;border:1px solid var(--key-line);border-radius:999px;background:#fff;font-size:.84rem;font-weight:600}
.key-showcase{position:relative;min-height:485px;border-radius:48px;background:linear-gradient(145deg,#f2edff,#7452e4);overflow:hidden;box-shadow:0 32px 70px rgba(74,50,173,.2)}.ring{position:absolute;width:55px;height:55px;border:8px solid #d8cfc1;border-radius:50%;box-shadow:inset 0 0 0 2px #8e8378}.ring-one{left:22%;top:9%}.ring-two{left:49%;top:4%}.ring-three{right:13%;top:15%}.keychain{position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:center;width:150px;height:170px;border-radius:45% 45% 48% 48%;background:linear-gradient(150deg,#d5aa73,#a97742);box-shadow:0 22px 38px rgba(42,24,5,.26);color:#553014}.keychain:before{content:"";position:absolute;top:-58px;width:4px;height:64px;background:#b8afa4}.keychain span{font-size:2.5rem}.keychain strong{font-size:.72rem;letter-spacing:.15em}.key-one{left:10%;top:26%;transform:rotate(-8deg)}.key-two{left:38%;top:18%;transform:rotate(5deg);background:linear-gradient(150deg,#deb987,#bc854f)}.key-three{right:8%;top:31%;transform:rotate(10deg);background:linear-gradient(150deg,#caa16f,#96663a)}.showcase-note{position:absolute;left:50%;bottom:22px;transform:translateX(-50%);min-width:315px;padding:14px 18px;border-radius:18px;background:rgba(255,255,255,.96);text-align:center}.showcase-note strong,.showcase-note small{display:block}.showcase-note small{color:var(--key-muted)}
.key-config-section{padding:76px 0 100px;background:#faf9fd}.key-layout{display:grid;grid-template-columns:minmax(0,1fr) 405px;gap:42px;align-items:start}.config-block{margin-top:26px;padding:30px;border:1px solid var(--key-line);border-radius:28px;background:#fff;box-shadow:0 10px 30px rgba(50,38,94,.045)}
.block-title{display:flex;gap:15px;align-items:flex-start;margin-bottom:24px}.block-title h3{margin:0 0 4px;font-size:1.22rem}.block-title p{margin:0;color:var(--key-muted);font-size:.93rem}.number-badge{display:grid;place-items:center;flex:0 0 auto;width:34px;height:34px;border-radius:11px;background:var(--key-purple);color:#fff;font-weight:800}
.type-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.type-card,.size-card,.finish-card{border:2px solid var(--key-line);border-radius:20px;background:#fff;color:var(--key-ink);font-family:inherit;text-align:left;cursor:pointer;transition:.2s}.type-card{padding:21px}.type-card span{display:grid;place-items:center;width:46px;height:46px;margin-bottom:13px;border-radius:15px;background:var(--key-soft);color:var(--key-purple);font-size:1.35rem}.type-card strong,.type-card small{display:block}.type-card small{margin-top:6px;color:var(--key-muted);line-height:1.5}.type-card:hover,.type-card.active,.size-card:hover,.size-card.active,.finish-card:hover,.finish-card.active{border-color:var(--key-purple);background:var(--key-soft);transform:translateY(-2px)}.type-card.active,.size-card.active,.finish-card.active{box-shadow:0 0 0 4px rgba(108,76,241,.1)}
.size-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.size-card{padding:18px;text-align:center}.size-card strong,.size-card small{display:block}.size-card strong{font-size:1.08rem}.size-card small{margin-top:5px;color:var(--key-muted)}
.finish-grid{display:grid;grid-template-columns:1fr}.finish-card{display:flex;align-items:center;gap:14px;padding:18px}.finish-swatch{display:grid;place-items:center;width:52px;height:52px;border-radius:16px;background:linear-gradient(145deg,#deb987,#a97442);color:#fff;font-weight:800}.finish-card strong,.finish-card small{display:block}.finish-card small{margin-top:4px;color:var(--key-muted)}
.package-card{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:21px;border-radius:21px;background:var(--key-soft);border:2px solid rgba(108,76,241,.17)}.package-card strong,.package-card span,.package-card small{display:block}.package-card strong{font-size:1.2rem}.package-card span{color:var(--key-purple);font-weight:700}.package-card small{color:var(--key-muted)}.package-badge{display:grid;place-items:center;min-width:90px;height:74px;border-radius:19px;background:var(--key-yellow);color:#4f3a00;font-weight:800;text-align:center}
.template-card{display:grid;grid-template-columns:90px 1fr auto;gap:17px;align-items:center;padding:18px;border-radius:21px;background:#fdfbf6;border:1px solid #eee5cf}.template-preview{display:grid;place-items:center;width:80px;height:90px;border:2px dashed #8e7bd8;border-radius:12px;background:#fff}.template-preview span,.template-preview small{display:block}.template-preview span{font-weight:800;color:var(--key-purple)}.template-preview small{font-size:.62rem;letter-spacing:.12em;color:var(--key-muted)}.template-card p{margin:4px 0 0;color:var(--key-muted);font-size:.8rem}
.progress-panel{padding:18px;border-radius:20px;background:var(--key-soft);margin-bottom:17px}.progress-copy{display:flex;align-items:center;justify-content:space-between;gap:14px}.progress-copy span{color:var(--key-muted);font-size:.82rem}.progress-track{height:9px;margin-top:12px;border-radius:999px;background:#e5e0f0;overflow:hidden}.progress-track span{display:block;width:0;height:100%;border-radius:inherit;background:var(--key-purple);transition:.25s}
.configurations{display:grid;gap:14px}.configuration-card{padding:19px;border:1px solid var(--key-line);border-radius:21px;background:#fff}.configuration-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.configuration-head strong{font-size:1rem}.remove-config{border:0;background:#fff0f2;color:var(--key-bad);border-radius:10px;padding:7px 10px;font-family:inherit;font-weight:600;cursor:pointer}.config-fields{display:grid;grid-template-columns:1.35fr 1fr .75fr;gap:11px}.field-label{display:block;font-size:.75rem;color:var(--key-muted);font-weight:600;margin-bottom:6px}.file-field{position:relative;display:flex;align-items:center;min-height:47px;padding:10px 12px;border:1px dashed #bfb6d4;border-radius:13px;background:#fcfbff;cursor:pointer}.file-field input{position:absolute;opacity:0;pointer-events:none}.file-field span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.8rem}.field-select{width:100%;height:47px;padding:0 11px;border:1px solid #d9d3e5;border-radius:13px;background:#fff;font-family:inherit;color:var(--key-ink)}.configuration-error{margin-top:10px;color:var(--key-bad);font-size:.75rem}.add-config-button{width:100%;margin-top:14px;padding:15px;border:2px dashed #c7bedc;border-radius:17px;background:#fbfaff;color:var(--key-purple);font-family:inherit;font-weight:700;cursor:pointer}.add-config-button:disabled{opacity:.45;cursor:not-allowed}
.validation-box{margin-top:17px;padding:16px;border-radius:17px;background:#fff7e1;color:#755a12}.validation-box.valid{background:#eafff3;color:#176744}.validation-box ul{margin:8px 0 0;padding-left:19px;font-size:.8rem}.safety-note{display:flex;gap:12px;align-items:center;margin-top:18px;padding:14px 16px;border-radius:15px;background:#f1eeff;color:#554582}.safety-note p{margin:0;font-size:.83rem}
.summary-sticky{position:sticky;top:104px;padding:26px;border:1px solid var(--key-line);border-radius:28px;background:#fff;box-shadow:0 20px 48px rgba(48,37,91,.1)}.summary-header{display:flex;justify-content:space-between;align-items:center;padding-bottom:18px;border-bottom:1px solid var(--key-line)}.summary-header h2{margin:3px 0 0;font-size:1.35rem}.summary-product-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:var(--key-yellow);color:var(--key-purple);font-size:1.5rem}.summary-list{margin:0;padding:12px 0;border-bottom:1px solid var(--key-line)}.summary-list div{display:flex;justify-content:space-between;gap:17px;padding:7px 0}.summary-list dt{color:var(--key-muted)}.summary-list dd{margin:0;text-align:right;font-weight:600}.summary-configurations{padding:17px 0;border-bottom:1px solid var(--key-line)}.summary-configurations>strong{display:block;margin-bottom:10px}.summary-config-item{padding:9px 10px;border-radius:11px;background:var(--key-soft);font-size:.75rem}.summary-config-item+.summary-config-item{margin-top:7px}.empty-summary{color:var(--key-muted);font-size:.8rem}.completion-message{margin-top:15px;padding:11px;border-radius:13px;background:#fff5d6;color:#765d19;text-align:center;font-size:.78rem;font-weight:700}.completion-message.complete{background:#e8fff2;color:#176744}
.price-card{margin:17px 0;padding:16px;border-radius:17px;background:var(--key-soft)}.price-card>div{display:flex;align-items:end;justify-content:space-between;gap:12px}.price-card span{color:var(--key-muted);font-size:.78rem}.price-card strong{font-size:1.18rem;color:var(--key-purple)}.price-card .total-row{margin-top:12px;padding-top:12px;border-top:1px solid var(--key-line)}#add-project:disabled{opacity:.45;cursor:not-allowed}.summary-hint{margin:8px 0 0;text-align:center;color:var(--key-muted);font-size:.76rem}
.key-info-section{padding:88px 0}.centered{text-align:center}.info-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:34px}.info-card{padding:25px;border:1px solid var(--key-line);border-radius:24px;background:#fff;box-shadow:0 12px 30px rgba(50,38,94,.06)}.info-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:var(--key-soft);color:var(--key-purple);font-weight:800}.info-card h3{margin:15px 0 10px}.info-card p{color:var(--key-muted);font-size:.86rem}.toast{position:fixed;right:24px;bottom:24px;z-index:1200;padding:14px 20px;border-radius:14px;background:#211a35;color:#fff;opacity:0;transform:translateY(15px);pointer-events:none;transition:.25s}.toast.show{opacity:1;transform:none}
@media(max-width:1060px){.key-layout{grid-template-columns:1fr}.summary-sticky{position:static}.info-grid{grid-template-columns:1fr 1fr}}
@media(max-width:820px){.key-hero-grid{grid-template-columns:1fr}.key-showcase{min-height:420px}.template-card{grid-template-columns:80px 1fr}.template-card .button{grid-column:1/-1}.config-fields{grid-template-columns:1fr}}
@media(max-width:620px){.type-grid,.size-grid{grid-template-columns:1fr}.config-block{padding:21px}.keychain{width:120px;height:145px}.progress-copy{align-items:flex-start;flex-direction:column}.info-grid{grid-template-columns:1fr}}

.hardware-catalog-card{display:flex;justify-content:space-between;gap:18px;align-items:center;margin-top:17px;padding:18px;border-radius:18px;background:linear-gradient(135deg,#f4f0ff,#fffaf0);border:1px solid #e9e1f4}.hardware-catalog-card strong,.hardware-catalog-card p,.catalog-kicker{display:block}.catalog-kicker{margin-bottom:4px;color:var(--key-purple);font-size:.69rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.hardware-catalog-card p{margin:5px 0 0;color:var(--key-muted);font-size:.78rem}
.modal-backdrop{position:fixed;inset:0;z-index:1500;display:grid;place-items:center;padding:24px;background:rgba(25,18,48,.66);backdrop-filter:blur(5px)}.modal-backdrop[hidden]{display:none}.modal-card{position:relative;width:min(720px,100%);max-height:88vh;overflow:auto;padding:32px;border-radius:28px;background:#fff;box-shadow:0 30px 90px rgba(20,14,42,.35)}.hardware-modal-card{width:min(980px,100%)}.modal-card h2{margin:7px 0 10px;font-size:1.8rem}.modal-close{position:absolute;right:18px;top:16px;width:38px;height:38px;border:0;border-radius:12px;background:#f3f0f8;color:#46395f;font-size:1.5rem;cursor:pointer}.modal-intro{color:var(--key-muted);font-size:.88rem}.hardware-catalog-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:15px;margin-top:22px}.hardware-group{padding:18px;border:1px solid var(--key-line);border-radius:20px;background:#fcfbff}.hardware-group h3{margin:0 0 5px;font-size:1rem}.hardware-group p{margin:0 0 13px;color:var(--key-muted);font-size:.75rem}.hardware-items{display:flex;flex-wrap:wrap;gap:8px}.hardware-chip{display:inline-flex;align-items:center;gap:7px;padding:8px 10px;border-radius:999px;background:#fff;border:1px solid #e2ddec;font-size:.72rem}.hardware-dot{width:14px;height:14px;border-radius:50%;border:1px solid rgba(0,0,0,.12);box-shadow:inset 0 0 0 2px rgba(255,255,255,.45)}.hardware-shape{font-size:1rem;color:var(--key-purple)}
@media(max-width:720px){.template-help-grid,.hardware-catalog-grid,.tutorial-example{grid-template-columns:1fr}.hardware-catalog-card{align-items:flex-start;flex-direction:column}.modal-card{padding:25px 19px}}

.hardware-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin-top:11px}.mixed-color-row{display:flex;align-items:center;gap:9px;margin-top:10px;padding:10px 12px;border-radius:12px;background:#f8f6ff;font-size:.77rem}.mixed-color-row input{accent-color:var(--key-purple)}.color-notes{margin-top:10px}.field-textarea{width:100%;min-height:72px;padding:11px 12px;border:1px solid #d9d3e5;border-radius:13px;background:#fff;font-family:inherit;color:var(--key-ink);resize:vertical}.field-help{display:block;margin-top:5px;color:var(--key-muted);font-size:.7rem;line-height:1.4}.price-impact{display:inline-block;margin-top:7px;padding:5px 8px;border-radius:999px;background:#eefbf5;color:#176744;font-size:.68rem;font-weight:700}
@media(max-width:720px){.hardware-choice-grid{grid-template-columns:1fr}}

.hardware-price-breakdown{display:block;margin-bottom:2px}
.hardware-price-breakdown[hidden]{display:none}
.breakdown-title{display:block;margin-bottom:9px;color:var(--key-muted);font-size:.76rem;font-weight:700}
.hardware-price-row{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;padding:9px 0;border-top:1px solid var(--key-line)}
.hardware-price-row:first-child{border-top:0}
.hardware-price-row-copy strong,.hardware-price-row-copy small{display:block}
.hardware-price-row-copy strong{font-size:.78rem;color:var(--key-ink)}
.hardware-price-row-copy small{margin-top:2px;color:var(--key-muted);font-size:.68rem}
.hardware-price-row-total{text-align:right}
.hardware-price-row-total strong,.hardware-price-row-total small{display:block}
.hardware-price-row-total strong{font-size:.9rem;color:var(--key-purple)}
.hardware-price-row-total small{margin-top:2px;color:var(--key-muted);font-size:.66rem}

.final-total-card{padding:18px}
.final-total-row{display:flex;align-items:flex-end;justify-content:space-between;gap:16px}
.final-total-row span{font-size:.84rem;font-weight:700;color:var(--key-ink)}
.final-total-row strong{font-size:1.55rem;color:var(--key-purple)}
.summary-config-item{display:grid;gap:6px}
.summary-config-main{line-height:1.45}
.summary-config-price{display:flex;justify-content:space-between;gap:12px;padding-top:7px;border-top:1px solid rgba(108,76,241,.12)}
.summary-config-price span{color:var(--key-muted);font-size:.7rem}
.summary-config-price strong{color:var(--key-purple);font-size:.78rem}


/* V15 — selector de tipo de producto y llaveros precortados */
.product-mode-grid,.precut-shape-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.product-mode-card,.precut-shape-card{display:flex;flex-direction:column;align-items:flex-start;gap:7px;min-height:142px;padding:20px;border:1px solid var(--key-line);border-radius:21px;background:#fff;text-align:left;font-family:inherit;color:var(--key-ink);cursor:pointer;transition:.2s}
.product-mode-card:hover,.precut-shape-card:hover{transform:translateY(-2px);border-color:#b7a8df}
.product-mode-card.active,.precut-shape-card.active{border:2px solid var(--key-purple);background:var(--key-soft);box-shadow:0 10px 24px rgba(108,76,241,.10)}
.product-mode-icon,.precut-shape-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:var(--key-yellow);color:var(--key-purple);font-size:1.35rem;font-weight:800}
.product-mode-card strong,.precut-shape-card strong{font-size:.94rem}
.product-mode-card small,.precut-shape-card small{color:var(--key-muted);line-height:1.45}
.precut-shape-card{min-height:165px}
.precut-shape-card .shape-price{margin-top:auto;padding:6px 9px;border-radius:999px;background:#eefbf5;color:#176744;font-size:.72rem;font-weight:800}
.precut-quantity-card{display:flex;align-items:center;justify-content:center;gap:14px;padding:22px;border:1px solid var(--key-line);border-radius:20px;background:var(--key-soft)}
.precut-quantity-card button{width:46px;height:46px;border:0;border-radius:14px;background:var(--key-purple);color:#fff;font-family:inherit;font-size:1.45rem;font-weight:700;cursor:pointer}
.precut-quantity-card label{display:grid;gap:6px;text-align:center;color:var(--key-muted);font-size:.75rem;font-weight:700}
.precut-quantity-card input{width:110px;height:48px;border:1px solid #d9d3e5;border-radius:13px;background:#fff;text-align:center;font:700 1rem Poppins,sans-serif;color:var(--key-ink)}
.precut-included-note{margin:14px 0 0;padding:13px 15px;border-radius:14px;background:#eefbf5;color:#176744;font-size:.8rem}
.precut-file-field{min-height:62px;justify-content:center}
@media(max-width:620px){.product-mode-grid,.precut-shape-grid{grid-template-columns:1fr}}
