/**
 * r3d.css — Estilos de visualización 3D y realidad aumentada
 */
.r3d-page, .r3d-page *, .r3d-page *::before, .r3d-page *::after { box-sizing: border-box; }
.r3d-page { width: 100% !important; max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; overflow-x: hidden; background: #f3f5f8; min-height: calc(100vh - 57px); color: #16202d; }
.r3d-shell { width: 100%; max-width: none; margin: 0; padding: 28px clamp(16px, 3vw, 48px) 40px; }
.r3d-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.r3d-eyebrow, .r3d-kicker { color: #667085; font-size: .68rem; font-weight: 800; letter-spacing: .16em; }
.r3d-heading h1 { margin: 4px 0 5px; font-size: clamp(2rem, 3.4vw, 3.55rem); font-weight: 800; letter-spacing: -.055em; }
.r3d-heading p { color: #667085; margin: 0; font-size: .96rem; }
.r3d-price-badge { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #e6e9ee; border-radius: 999px; padding: 10px 16px 10px 13px; box-shadow: 0 6px 20px rgba(18, 34, 54, .06); }
.r3d-price-badge strong { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: #16202d; color: #fff; font-size: .83rem; }
.r3d-price-badge span { color: #667085; font-size: .78rem; font-weight: 700; }
.r3d-workspace { display: grid; grid-template-columns: minmax(220px, 264px) minmax(0, 1fr) minmax(220px, 278px); gap: 16px; min-height: 650px; width: 100%; }
.r3d-panel, .r3d-viewer-panel { min-width: 0; background: #fff; border: 1px solid #e5e8ee; border-radius: 20px; box-shadow: 0 12px 38px rgba(25, 40, 60, .06); }
.r3d-panel { padding: 18px 14px; }
.r3d-panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 3px 5px 14px; }
.r3d-panel-heading h2 { margin: 4px 0 0; font-size: 1.06rem; font-weight: 800; letter-spacing: -.02em; }
.r3d-count { color: #667085; font-size: .75rem; font-weight: 800; padding-top: 4px; }
.r3d-heading-icon { color: #98a2b3; padding-top: 6px; }
.r3d-model-list { display: grid; gap: 7px; }
.r3d-model-card { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; background: #fff; border: 1px solid transparent; border-radius: 13px; padding: 7px; color: #16202d; cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.r3d-model-card:hover { background: #f8fafc; transform: translateX(2px); }
.r3d-model-card.is-active { border-color: #16202d; background: #f8fafc; box-shadow: inset 3px 0 #16202d; }
.r3d-model-thumb { width: 58px; height: 49px; border-radius: 9px; overflow: hidden; flex: 0 0 auto; background: #e9edf2; }
.r3d-model-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; }
.r3d-model-card-copy { min-width: 0; flex: 1; }
.r3d-model-card-copy strong, .r3d-model-card-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r3d-model-card-copy strong { font-size: .76rem; font-weight: 800; }
.r3d-model-card-copy small { color: #98a2b3; font-size: .62rem; margin-top: 3px; }
.r3d-model-card > i { color: #98a2b3; font-size: .62rem; }
.r3d-viewer-panel { display: flex; min-width: 0; flex-direction: column; overflow: hidden; background: radial-gradient(circle at 50% 40%, #fff 0%, #f6f8fa 64%, #edf0f4 100%); }
.r3d-viewer-toolbar { height: 54px; display: flex; align-items: center; gap: 8px; padding: 0 18px; border-bottom: 1px solid rgba(213, 219, 228, .7); font-size: .78rem; font-weight: 800; }
.r3d-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #14b87a; box-shadow: 0 0 0 4px rgba(20, 184, 122, .13); }
.r3d-mode-switch { margin-left: auto; display: inline-flex; gap: 4px; padding: 3px; border-radius: 9px; background: #eef1f5; }
.r3d-mode-button { border: 0; border-radius: 7px; padding: 6px 9px; background: transparent; color: #667085; font-size: .66rem; font-weight: 800; cursor: pointer; }
.r3d-mode-button.is-active { background: #fff; color: #16202d; box-shadow: 0 1px 4px rgba(22,32,45,.12); }
.r3d-viewer-stage { position: relative; flex: 1; min-width: 0; min-height: 530px; }
.r3d-product-photo { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #101214; }
.r3d-product-photo img { width: 100%; height: 100%; display: block; object-fit: contain; }
.r3d-photo-badge { position: absolute; left: 18px; bottom: 18px; border-radius: 999px; padding: 9px 12px; background: rgba(255,255,255,.92); color: #16202d; font-size: .68rem; font-weight: 800; box-shadow: 0 5px 18px rgba(0,0,0,.15); }
.r3d-photo-badge i { color: #14b87a; margin-right: 5px; }
.r3d-model-warning { position: absolute; z-index: 5; inset: 12%; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; padding: 28px; border: 1px solid rgba(255,255,255,.65); border-radius: 18px; background: rgba(255,255,255,.95); color: #16202d; text-align: center; box-shadow: 0 18px 48px rgba(20, 30, 45, .2); }
.r3d-model-warning > i { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: #eef1f5; color: #667085; font-size: 1.25rem; }
.r3d-model-warning strong { font-size: 1rem; }
.r3d-model-warning span { max-width: 410px; color: #667085; font-size: .75rem; line-height: 1.5; }
.r3d-warning-button { border: 0; border-radius: 999px; padding: 9px 14px; background: #16202d; color: #fff; font-size: .7rem; font-weight: 800; cursor: pointer; }
#r3dViewer { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 530px; visibility: hidden; opacity: 0; pointer-events: none; --poster-color: transparent; --progress-bar-color: #16202d; transition: opacity .2s; }
.r3d-viewer-stage.is-3d .r3d-product-photo { visibility: hidden; opacity: 0; }
.r3d-viewer-stage.is-3d #r3dViewer { visibility: visible; opacity: 1; pointer-events: auto; }
.r3d-ar-button { position: absolute; right: 18px; bottom: 18px; display: flex; gap: 8px; align-items: center; border: 0; border-radius: 999px; padding: 11px 15px; background: #16202d; color: #fff; font-size: .75rem; font-weight: 800; cursor: pointer; box-shadow: 0 7px 20px rgba(22, 32, 45, .2); }
.r3d-progress { position: absolute; left: 12%; right: 12%; bottom: 9px; height: 3px; border-radius: 4px; background: rgba(22, 32, 45, .1); overflow: hidden; }
.r3d-progress span { display: block; width: 0; height: 100%; background: #16202d; transition: width .2s; }
.r3d-viewer-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 9px; color: #667085; font-size: .78rem; pointer-events: none; }
.r3d-viewer-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding: 0 18px; border-top: 1px solid rgba(213, 219, 228, .7); color: #98a2b3; font-size: .68rem; }
.r3d-tool-button { border: 0; padding: 6px 0; background: transparent; color: #667085; font-size: .7rem; font-weight: 800; cursor: pointer; }
.r3d-tool-button:hover { color: #16202d; }
.r3d-controls { display: grid; gap: 18px; }
.r3d-control-group { border-bottom: 1px solid #eef0f3; padding: 0 5px 18px; }
.r3d-control-group:last-child { border-bottom: 0; }
.r3d-control-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.r3d-control-title strong { font-size: .78rem; }
.r3d-control-title span { color: #98a2b3; font-size: .65rem; }
.r3d-swatch-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.r3d-swatch { display: flex; align-items: center; gap: 7px; border: 1px solid #e6e9ee; border-radius: 8px; padding: 7px 6px; background: #fff; color: #475467; font-size: .65rem; font-weight: 700; cursor: pointer; }
.r3d-swatch:hover { border-color: #98a2b3; }
.r3d-swatch.is-active { border-color: #16202d; box-shadow: inset 0 0 0 1px #16202d; color: #16202d; }
.r3d-swatch-color { width: 17px; height: 17px; flex: 0 0 auto; border: 1px solid rgba(22, 32, 45, .12); border-radius: 50%; }
.r3d-tip { display: flex; gap: 9px; margin: 22px 5px 0; padding: 12px; border-radius: 10px; background: #f4f7fa; color: #667085; font-size: .67rem; line-height: 1.45; }
.r3d-tip i { color: #f5a524; padding-top: 2px; }
@media (max-width: 1200px) { .r3d-workspace { grid-template-columns: 230px minmax(320px, 1fr) 245px; } }
@media (max-width: 960px) { .r3d-workspace { grid-template-columns: 1fr 1.4fr; } .r3d-custom-panel { grid-column: 1 / -1; } .r3d-controls { grid-template-columns: repeat(3, 1fr); } .r3d-tip { display: none; } }
@media (max-width: 680px) { .r3d-shell { padding: 18px 12px 28px; } .r3d-heading { align-items: flex-start; } .r3d-price-badge { display: none; } .r3d-heading h1 { font-size: 2.2rem; } .r3d-workspace { display: flex; flex-direction: column; } .r3d-model-panel { order: 2; } .r3d-viewer-panel { order: 1; } .r3d-custom-panel { order: 3; } .r3d-model-list { grid-template-columns: repeat(2, 1fr); } .r3d-viewer-stage, #r3dViewer { min-height: 390px; } .r3d-controls { grid-template-columns: repeat(3, 1fr); } .r3d-mode-button { padding: 5px 6px; font-size: .6rem; } }
