/* Visor 3D online (recursos/herramientas/visor-3d.php). Colores y tipografía de marca: Inter, #0052CC, #F5A623 */
.v3 { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.25rem; margin: 1.5rem 0 2.5rem; align-items: start; }
.v3-caja { position: relative; height: clamp(420px, 68vh, 680px); border: 1px solid var(--color-border, #E2E8F0); border-radius: var(--radius-lg, 16px); overflow: hidden; background: #F1F4F9; touch-action: none; }
.v3-caja:fullscreen { height: 100vh; border-radius: 0; }
.v3-caja canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: none; cursor: grab; }
.v3-caja canvas:active { cursor: grabbing; }
.v3-vacio { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; padding: 1.5rem; text-align: center; color: #1A1A2E; }
.v3-vacio[hidden], .v3-carga[hidden], .v3-aviso[hidden], .v3-color-archivo[hidden] { display: none !important; }
.v3-vacio .v3-icono { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 20px; background: #E6F0FF; color: #0052CC; font-size: 1.9rem; }
.v3-vacio h2 { margin: .25rem 0 0; font-size: 1.35rem; }
.v3-vacio p { margin: 0; color: #5A6577; font-size: .95rem; max-width: 460px; }
.v3-vacio .v3-formatos { font-size: .8rem; letter-spacing: .02em; color: #5A6577; }
.v3-arrastra { outline: 3px dashed #0052CC; outline-offset: -10px; background: #E6F0FF; }
.v3-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.2rem; border: 0; border-radius: var(--radius-md, 10px); background: #0052CC; color: #fff; font: 600 .95rem var(--font-main, Inter, sans-serif); cursor: pointer; text-decoration: none; }
.v3-btn:hover { background: #003D99; color: #fff; }
.v3-btn-sec { background: #fff; color: #0052CC; border: 1px solid #0052CC; }
.v3-btn-sec:hover { background: #E6F0FF; color: #003D99; }
.v3-link { background: none; border: 0; padding: 0; color: #0052CC; font: 600 .9rem var(--font-main, Inter, sans-serif); text-decoration: underline; cursor: pointer; }
.v3-carga { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: .75rem; background: rgba(255, 255, 255, .85); font-weight: 600; z-index: 4; padding: 1rem; text-align: center; }
.v3-carga i { color: #0052CC; font-size: 1.4rem; }
.v3-aviso { margin: 0 0 1rem; padding: .7rem 1rem; border-left: 4px solid #E5484D; background: #FDECEC; border-radius: 0 10px 10px 0; font-size: .92rem; }
.v3-barra { position: absolute; left: .75rem; right: .75rem; bottom: .75rem; display: none; flex-wrap: wrap; gap: .4rem; justify-content: space-between; z-index: 3; pointer-events: none; }
.v3-con-modelo .v3-barra { display: flex; }
.v3-grupo { display: inline-flex; gap: 1px; background: rgba(255, 255, 255, .92); border: 1px solid var(--color-border, #E2E8F0); border-radius: 10px; overflow: hidden; pointer-events: auto; box-shadow: 0 2px 8px rgba(26, 26, 46, .08); }
.v3-grupo button { border: 0; background: transparent; padding: .5rem .7rem; font: 600 .8rem var(--font-main, Inter, sans-serif); color: #1A1A2E; cursor: pointer; }
.v3-grupo button:hover, .v3-grupo button[aria-pressed="true"] { background: #E6F0FF; color: #0052CC; }
.v3-oscuro .v3-vacio, .v3-oscuro .v3-vacio p, .v3-oscuro .v3-formatos { color: #E9EDF3; }
.v3-panel { display: flex; flex-direction: column; gap: 1rem; }
.v3-tarjeta { background: #fff; border: 1px solid var(--color-border, #E2E8F0); border-radius: var(--radius-lg, 16px); padding: 1.1rem 1.2rem; }
.v3-tarjeta h3 { margin: 0 0 .7rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: #5A6577; }
.v3-nombre { font-weight: 700; word-break: break-all; font-size: .95rem; margin: 0 0 .8rem; }
.v3-datos { margin: 0; display: grid; gap: .55rem; }
.v3-datos div { display: flex; flex-direction: column; gap: .1rem; }
.v3-datos dt { font-size: .75rem; color: #5A6577; }
.v3-dato-v { margin: 0; font-weight: 600; font-size: .95rem; color: #1A1A2E; }
.v3-ok { color: #1E8E3E; }
.v3-mal { color: #D93025; }
.v3-nota { font-size: .78rem; color: #5A6577; margin: .15rem 0 0; font-weight: 400; }
.v3-fila { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .8rem; }
.v3-fila label, .v3-fila > span { font-size: .8rem; font-weight: 600; }
.v3-fila select { width: 100%; padding: .55rem .7rem; border: 1px solid var(--color-border, #E2E8F0); border-radius: var(--radius-sm, 8px); font: .9rem var(--font-main, Inter, sans-serif); background: #fff; }
.v3-dos { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.v3-sws { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.v3-sw { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #CBD3E0; cursor: pointer; padding: 0; }
.v3-sw:hover { box-shadow: 0 0 0 2px #0052CC; }
.v3-sws input[type="color"] { width: 30px; height: 30px; border: 0; padding: 0; background: none; cursor: pointer; }
.v3-chk { display: flex; align-items: center; gap: .5rem; font-size: .88rem; margin: .35rem 0; cursor: pointer; }
.v3-chk input { accent-color: #0052CC; width: 16px; height: 16px; }
.v3-cta { background: #E6F0FF; border-color: #BFD6FA; }
.v3-cta p { margin: 0 0 .75rem; font-size: .9rem; }
.v3-priv { display: flex; gap: .6rem; align-items: flex-start; font-size: .85rem; color: #5A6577; margin: 0 0 1rem; }
.v3-priv i { color: #1E8E3E; margin-top: .2rem; }
.v3-panel:not(.v3-activo) .v3-solo-modelo { display: none; }
.v3-guia { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin: 1rem 0 2rem; }
.v3-guia > div { background: var(--color-bg-alt, #F5F7FA); border: 1px solid var(--color-border, #E2E8F0); border-radius: var(--radius-lg, 16px); padding: 1.1rem 1.2rem; }
.v3-guia h3 { margin: 0 0 .35rem; font-size: 1rem; }
.v3-guia p { margin: 0; font-size: .9rem; color: #5A6577; }
.v3-tabla { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 1rem 0 2rem; }
.v3-tabla th, .v3-tabla td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--color-border, #E2E8F0); vertical-align: top; }
.v3-tabla th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: #5A6577; }
.v3-tabla-wrap { overflow-x: auto; }
.v3-tabla-wrap table { min-width: 560px; }
.pc-ruta { font-size: .85rem; margin: 0 0 1rem; color: var(--color-text-secondary, #5A6577); }
.pc-ruta a { color: inherit; }
@media (max-width: 980px) {
  .v3 { grid-template-columns: 1fr; }
  .v3-caja { height: clamp(360px, 60vh, 560px); }
}
@media (max-width: 520px) {
  .v3-grupo button { padding: .5rem .55rem; font-size: .75rem; }
}
