/* ── YOLK Configurador CSS ── */
.yolk-app { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; max-width: 960px; margin: 0 auto; }
.yolk-loading { padding: 40px; text-align: center; color: #888; }
.yolk-spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid #e0e0e0; border-top-color: #1D9E75; border-radius: 50%; animation: yolk-spin .7s linear infinite; vertical-align: middle; margin-right: 8px; }
@keyframes yolk-spin { to { transform: rotate(360deg); } }

/* Steps */
.yolk-steps { display: flex; gap: 0; margin-bottom: 28px; }
.yolk-step { flex: 1; padding: 10px 16px; font-size: 13px; color: #aaa; border-bottom: 2px solid #e0e0e0; cursor: default; }
.yolk-step.active { color: #1D9E75; border-color: #1D9E75; font-weight: 500; }
.yolk-step.done { color: #888; border-color: #C0DD97; }

/* Model Grid */
.yolk-model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.yolk-model-card { border: 1px solid #e0e0e0; border-radius: 10px; padding: 14px; cursor: pointer; transition: all .14s; }
.yolk-model-card:hover { border-color: #1D9E75; box-shadow: 0 4px 14px rgba(29,158,117,.14); transform: translateY(-1px); }
.yolk-model-card.selected { border-color: #1D9E75; background: #f0fdf8; }
/* Product photo inside model card */
.yolk-card-photo { width: 100%; height: 100px; display: flex; align-items: center; justify-content: center; background: #f8f8f8; border-radius: 7px; margin: 8px 0 10px; overflow: hidden; border: 1px solid #eee; }
.yolk-card-photo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; box-sizing: border-box; }
.yolk-card-photo-placeholder { background: #f0f0f0; }
.yolk-model-title { font-size: 14px; font-weight: 700; margin: 0 0 2px; color: #1a1a18; letter-spacing: .3px; }
.yolk-model-price { font-size: 17px; font-weight: 700; color: #1D9E75; margin: 5px 0 4px; }
.yolk-model-sub { font-size: 11px; color: #888; margin: 2px 0 6px; }
.yolk-slots-bar { height: 3px; background: #e0e0e0; border-radius: 2px; margin-bottom: 4px; overflow: hidden; }
.yolk-slots-fill { height: 100%; border-radius: 2px; }
.yolk-slots-text { font-size: 11px; color: #aaa; }
.yolk-fam-badge { font-size: 11px; padding: 2px 8px; border-radius: 20px; font-weight: 500; }

/* Configurator layout */
.yolk-cfg-layout { display: grid; grid-template-columns: 1fr 260px; gap: 20px; }
@media (max-width: 640px) { .yolk-cfg-layout { grid-template-columns: 1fr; } }

/* Housing */
.yolk-housing { background: #1e1e1c; border-radius: 12px; padding: 13px 15px 15px; border: 1.5px solid #3a3a38; }
.yolk-housing-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.yolk-housing-label { font-size: 11px; color: #686866; letter-spacing: 1.2px; }
.yolk-led { width: 6px; height: 6px; border-radius: 50%; background: #1D9E75; }
.yolk-face { display: flex; height: 76px; background: #111110; border-radius: 5px; overflow: hidden; border: 1px solid #2e2e2c; }
.yolk-ins-slot { transition: opacity .12s, transform .12s; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; min-width: 0; height: 100%; }
.yolk-ins-slot:hover { opacity: .75; transform: scale(.94); }
.yolk-ins-slot .rmh { position: absolute; top: 3px; right: 3px; opacity: 0; transition: opacity .1s; font-size: 14px; color: rgba(255,255,255,.9); }
.yolk-ins-slot:hover .rmh { opacity: 1; }
.yolk-ins-slot span { font-size: 11px; margin-top: 2px; opacity: .85; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; text-align: center; }
.yolk-face-empty { display: flex; align-items: center; justify-content: center; background: #111110; }
.yolk-face-empty span { font-size: 11px; color: #4a4a48; }
@keyframes yolk-pop { from { opacity: 0; transform: scaleX(.3); } to { opacity: 1; transform: scaleX(1); } }
.yolk-pop { animation: yolk-pop .18s ease; }

/* Space bar */
.yolk-space-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.yolk-space-track { flex: 1; height: 4px; background: #e0e0e0; border-radius: 2px; overflow: hidden; }
.yolk-space-fill { height: 100%; border-radius: 2px; transition: width .3s; }
.yolk-space-label { font-size: 12px; color: #888; white-space: nowrap; }

/* Catalog */
.yolk-catalog-title { font-size: 11px; color: #aaa; margin: 0 0 7px; letter-spacing: .5px; text-transform: uppercase; }
.yolk-catalog-list { display: flex; flex-direction: column; gap: 4px; }
.yolk-cat-row { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border: 1px solid #e8e8e8; border-radius: 8px; cursor: pointer; transition: background .12s; }
.yolk-cat-row:hover:not(.yolk-cat-off) { background: #f5f5f5; }
.yolk-cat-off { opacity: .3; pointer-events: none; }
.yolk-cat-icon { width: 28px; height: 28px; border-radius: 5px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 14px; }
.yolk-cat-name { font-size: 13px; font-weight: 500; margin: 0; color: #1a1a18; }
.yolk-cat-meta { font-size: 11px; color: #888; margin: 1px 0 0; }

/* Price box */
.yolk-price-box { background: #f9f9f9; border-radius: 8px; padding: 12px 14px; margin-top: 12px; display: flex; align-items: center; justify-content: space-between; }
.yolk-price-main { font-size: 22px; font-weight: 700; color: #1a1a18; }
.yolk-price-sub { font-size: 12px; color: #888; }
.yolk-price-warn { font-size: 11px; color: #BA7517; }

/* Selected chips */
.yolk-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.yolk-chip { display: inline-flex; align-items: center; gap: 4px; border-radius: 20px; padding: 3px 10px 3px 7px; font-size: 11px; cursor: pointer; }
.yolk-chip:hover { opacity: .75; }

/* Buttons */
.yolk-btn { display: inline-block; padding: 9px 18px; border-radius: 6px; font-size: 13px; font-weight: 500; cursor: pointer; transition: opacity .12s; border: none; }
.yolk-btn:hover { opacity: .85; }
.yolk-btn-primary { background: #1D9E75; color: #fff; }
.yolk-btn-secondary { background: #f0f0f0; color: #333; }
.yolk-btn-outline { background: transparent; border: 1px solid #e0e0e0; color: #555; }
.yolk-btn:disabled { opacity: .4; cursor: not-allowed; }
.yolk-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

/* Quote / Save modal */
.yolk-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 9990; display: flex; align-items: center; justify-content: center; padding: 16px; }
.yolk-modal { background: #fff; border-radius: 12px; padding: 24px 26px; width: 100%; max-width: 440px; max-height: 90vh; overflow-y: auto; }
.yolk-modal h3 { margin: 0 0 16px; font-size: 16px; }
.yolk-modal label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 12px; }
.yolk-modal input, .yolk-modal textarea { display: block; width: 100%; margin-top: 4px; padding: 8px 10px; border: 1px solid #ddd; border-radius: 6px; font-size: 13px; box-sizing: border-box; }
.yolk-modal input:focus, .yolk-modal textarea:focus { outline: none; border-color: #1D9E75; }
.yolk-modal-actions { display: flex; gap: 8px; margin-top: 18px; }

/* Saved config notice */
.yolk-saved-notice { background: #E1F5EE; border: 1px solid #5DCAA5; border-radius: 8px; padding: 12px 16px; margin-bottom: 20px; font-size: 13px; color: #0F6E56; }
.yolk-saved-notice a { color: #0F6E56; font-weight: 500; }

/* My configs */
.yolk-my-configs { margin-top: 30px; }
.yolk-my-configs h3 { font-size: 15px; margin-bottom: 12px; }
.yolk-config-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid #e0e0e0; border-radius: 8px; margin-bottom: 6px; }
.yolk-config-item:hover { border-color: #1D9E75; cursor: pointer; }
.yolk-config-item-name { font-size: 13px; font-weight: 500; flex: 1; }
.yolk-config-item-meta { font-size: 11px; color: #888; }

/* Warning */
.yolk-warn { background: #FEF3C7; border: 1px solid #FCD34D; border-radius: 6px; padding: 8px 12px; font-size: 12px; color: #92400E; margin-top: 8px; }


/* ── YC Configurador Styles (yc-*) ── */
#yolk-configurador-app { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; max-width: 980px; margin: 0 auto; padding: 0 16px 48px; }

/* Steps indicator */
.yc-steps { display: flex; align-items: center; gap: 0; margin-bottom: 28px; }
.yc-s { width: 32px; height: 32px; border-radius: 50%; border: 2px solid #555; color: #888; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.yc-s.yc-cur { border-color: #E08B20; color: #E08B20; }
.yc-s.yc-done { background: #E08B20; border-color: #E08B20; color: #1C1C1A; }
.yc-line { flex: 1; height: 2px; background: #444; }
.yc-line.yc-done { background: #E08B20; }

/* Hero text */
.yc-hero { margin-bottom: 28px; }
.yc-hero h2 { font-size: 1.6rem; font-weight: 700; color: #1C1C1A; margin: 0 0 4px; }
.yc-hero p { color: #666; margin: 0; font-size: 0.95rem; }
.yc-link { background: none; border: none; padding: 0; color: #E08B20; cursor: pointer; font-size: inherit; text-decoration: underline; }
.yc-link:hover { color: #c47a18; }

/* Model grid */
.yc-models { display: flex; flex-direction: column; gap: 24px; }
.yc-family { }
.yc-family-name { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: #888; margin-bottom: 10px; }
.yc-model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.yc-model-card { background: #fff; border: 2px solid #e8e8e5; border-radius: 12px; padding: 0; cursor: pointer; transition: border-color .18s, transform .15s; overflow: hidden; text-align: left; }
.yc-model-card:hover { border-color: #E08B20; transform: translateY(-2px); }
.yc-model-img { background: #f5f4f0; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.yc-model-img img { width: 100%; height: 100%; object-fit: cover; }
.yc-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.yc-ph-n { font-size: 2rem; font-weight: 700; color: #1C1C1A; line-height: 1; }
.yc-ph-l { font-size: 0.7rem; color: #888; text-transform: uppercase; letter-spacing: .06em; }
.yc-model-info { padding: 10px 12px 12px; }
.yc-model-name { font-size: 0.95rem; font-weight: 700; color: #1C1C1A; }
.yc-model-meta { font-size: 0.78rem; color: #888; margin-top: 2px; }

/* Step 2 config layout */
.yc-config { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 640px) { .yc-config { grid-template-columns: 1fr; } }
.yc-label { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: #888; margin-bottom: 10px; }
.yc-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; }
.yc-slot { border-radius: 8px; min-height: 72px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; transition: opacity .15s, box-shadow .15s; font-size: 0.75rem; font-weight: 500; padding: 8px 4px; position: relative; }
.yc-slot-empty { background: #f0ede5; border: 2px dashed #ccc; color: #aaa; }
.yc-slot-empty:hover { border-color: #E08B20; color: #E08B20; }
.yc-slot-empty.yc-slot-active { border-color: #E08B20; border-style: solid; background: #fef3e0; color: #E08B20; box-shadow: 0 0 0 3px rgba(224,139,32,.2); }
.yc-slot-filled { border: 2px solid transparent; }
.yc-plus { font-size: 1.4rem; line-height: 1; }
.yc-slot-name { font-size: 0.7rem; text-align: center; line-height: 1.2; }
.yc-slot-rm { position: absolute; top: 3px; right: 3px; background: rgba(0,0,0,.25); border: none; border-radius: 50%; width: 16px; height: 16px; font-size: 9px; cursor: pointer; color: #fff; display: flex; align-items: center; justify-content: center; padding: 0; }
.yc-slot .ti { font-size: 1.3rem; }
.yc-total { margin-top: 14px; font-size: 0.95rem; color: #444; font-weight: 500; }
.yc-total strong { color: #1C1C1A; }

/* Insert palette */
.yc-palette { display: flex; flex-wrap: wrap; gap: 6px; }
.yc-ins-btn { border: none; border-radius: 6px; padding: 6px 10px; font-size: 0.78rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 5px; transition: opacity .15s, transform .12s; }
.yc-ins-btn:hover { opacity: .85; transform: scale(1.04); }
.yc-ins-btn .ti { font-size: 1rem; }
.yc-hint { font-size: 0.75rem; color: #aaa; margin-top: 10px; margin-bottom: 0; }

/* Actions */
.yc-actions { margin-top: 24px; display: flex; justify-content: flex-end; }

/* Step 3 quote */
.yc-quote-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; }
@media (max-width: 640px) { .yc-quote-layout { grid-template-columns: 1fr; } }
.yc-quote-sum h3 { font-size: 1.2rem; font-weight: 700; color: #1C1C1A; margin: 0 0 12px; }
.yc-sum-slots { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 14px; }
.yc-sum-item { border-radius: 4px; padding: 4px 8px; font-size: 0.75rem; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.yc-sum-empty { color: #ccc; font-size: 0.75rem; }
.yc-quote-total { font-size: 1rem; color: #444; font-weight: 500; }
.yc-quote-total strong { color: #1C1C1A; font-size: 1.1rem; }
.yc-note { font-size: 0.75rem; color: #aaa; margin-top: 8px; }

/* Form */
.yc-form { display: flex; flex-direction: column; gap: 14px; }
.yc-fg { display: flex; flex-direction: column; gap: 4px; }
.yc-fg label { font-size: 0.8rem; font-weight: 600; color: #555; }
.yc-fg input, .yc-fg textarea { border: 1.5px solid #ddd; border-radius: 8px; padding: 9px 12px; font-size: 0.9rem; font-family: inherit; color: #1C1C1A; transition: border-color .15s; background: #fff; }
.yc-fg input:focus, .yc-fg textarea:focus { outline: none; border-color: #E08B20; }
.yc-fg textarea { resize: vertical; }
.yc-submit { width: 100%; margin-top: 4px; }
.yc-form-err { color: #c0392b; font-size: 0.82rem; background: #ffeee8; border-radius: 6px; padding: 8px 12px; }

/* Step 4 success */
.yc-success { text-align: center; padding: 48px 24px; }
.yc-success-icon { width: 64px; height: 64px; background: #E08B20; border-radius: 50%; font-size: 1.8rem; color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.yc-success h2 { font-size: 1.6rem; font-weight: 700; color: #1C1C1A; margin: 0 0 10px; }
.yc-success p { color: #666; margin: 0 0 6px; }

/* Error state */
.yc-error { text-align: center; padding: 40px; color: #c0392b; background: #ffeee8; border-radius: 10px; }
